configure revision f1ee322d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXi 1.7.1. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='libXi' 653PACKAGE_TARNAME='libXi' 654PACKAGE_VERSION='1.7.1' 655PACKAGE_STRING='libXi 1.7.1' 656PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_subst_vars='am__EXEEXT_FALSE 697am__EXEEXT_TRUE 698LTLIBOBJS 699LIBOBJS 700INSTALL_MANPAGES_FALSE 701INSTALL_MANPAGES_TRUE 702HAVE_DOCTOOLS_FALSE 703HAVE_DOCTOOLS_TRUE 704XFIXES_LIBS 705XFIXES_CFLAGS 706XI_LIBS 707XI_CFLAGS 708XTMALLOC_ZERO_CFLAGS 709XMALLOC_ZERO_CFLAGS 710MALLOC_ZERO_CFLAGS 711HAVE_ASCIIDOC_FALSE 712HAVE_ASCIIDOC_TRUE 713ASCIIDOC 714HAVE_STYLESHEETS_FALSE 715HAVE_STYLESHEETS_TRUE 716XSL_STYLESHEET 717STYLESHEET_SRCDIR 718XORG_SGML_PATH 719HAVE_XSLTPROC_FALSE 720HAVE_XSLTPROC_TRUE 721XSLTPROC 722HAVE_FOP_FALSE 723HAVE_FOP_TRUE 724FOP 725HAVE_XMLTO_FALSE 726HAVE_XMLTO_TRUE 727HAVE_XMLTO_TEXT_FALSE 728HAVE_XMLTO_TEXT_TRUE 729XMLTO 730ENABLE_SPECS_FALSE 731ENABLE_SPECS_TRUE 732ENABLE_DOCS_FALSE 733ENABLE_DOCS_TRUE 734AM_BACKSLASH 735AM_DEFAULT_VERBOSITY 736AM_DEFAULT_V 737AM_V 738MAN_SUBSTS 739XORG_MAN_PAGE 740ADMIN_MAN_DIR 741DRIVER_MAN_DIR 742MISC_MAN_DIR 743FILE_MAN_DIR 744LIB_MAN_DIR 745APP_MAN_DIR 746ADMIN_MAN_SUFFIX 747DRIVER_MAN_SUFFIX 748MISC_MAN_SUFFIX 749FILE_MAN_SUFFIX 750LIB_MAN_SUFFIX 751APP_MAN_SUFFIX 752INSTALL_CMD 753PKG_CONFIG_LIBDIR 754PKG_CONFIG_PATH 755PKG_CONFIG 756CHANGELOG_CMD 757STRICT_CFLAGS 758CWARNFLAGS 759BASE_CFLAGS 760CPP 761OTOOL64 762OTOOL 763LIPO 764NMEDIT 765DSYMUTIL 766MANIFEST_TOOL 767RANLIB 768ac_ct_AR 769AR 770DLLTOOL 771OBJDUMP 772LN_S 773NM 774ac_ct_DUMPBIN 775DUMPBIN 776LD 777FGREP 778EGREP 779GREP 780SED 781am__fastdepCC_FALSE 782am__fastdepCC_TRUE 783CCDEPMODE 784am__nodep 785AMDEPBACKSLASH 786AMDEP_FALSE 787AMDEP_TRUE 788am__quote 789am__include 790DEPDIR 791OBJEXT 792EXEEXT 793ac_ct_CC 794CPPFLAGS 795LDFLAGS 796CFLAGS 797CC 798host_os 799host_vendor 800host_cpu 801host 802build_os 803build_vendor 804build_cpu 805build 806LIBTOOL 807am__untar 808am__tar 809AMTAR 810am__leading_dot 811SET_MAKE 812AWK 813mkdir_p 814MKDIR_P 815INSTALL_STRIP_PROGRAM 816STRIP 817install_sh 818MAKEINFO 819AUTOHEADER 820AUTOMAKE 821AUTOCONF 822ACLOCAL 823VERSION 824PACKAGE 825CYGPATH_W 826am__isrc 827INSTALL_DATA 828INSTALL_SCRIPT 829INSTALL_PROGRAM 830target_alias 831host_alias 832build_alias 833LIBS 834ECHO_T 835ECHO_N 836ECHO_C 837DEFS 838mandir 839localedir 840libdir 841psdir 842pdfdir 843dvidir 844htmldir 845infodir 846docdir 847oldincludedir 848includedir 849localstatedir 850sharedstatedir 851sysconfdir 852datadir 853datarootdir 854libexecdir 855sbindir 856bindir 857program_transform_name 858prefix 859exec_prefix 860PACKAGE_URL 861PACKAGE_BUGREPORT 862PACKAGE_STRING 863PACKAGE_VERSION 864PACKAGE_TARNAME 865PACKAGE_NAME 866PATH_SEPARATOR 867SHELL' 868ac_subst_files='' 869ac_user_opts=' 870enable_option_checking 871enable_shared 872enable_static 873with_pic 874enable_fast_install 875enable_dependency_tracking 876with_gnu_ld 877with_sysroot 878enable_libtool_lock 879enable_selective_werror 880enable_strict_compilation 881enable_silent_rules 882enable_docs 883enable_specs 884with_xmlto 885with_fop 886with_xsltproc 887with_asciidoc 888enable_malloc0returnsnull 889' 890 ac_precious_vars='build_alias 891host_alias 892target_alias 893CC 894CFLAGS 895LDFLAGS 896LIBS 897CPPFLAGS 898CPP 899PKG_CONFIG 900PKG_CONFIG_PATH 901PKG_CONFIG_LIBDIR 902XMLTO 903FOP 904XSLTPROC 905ASCIIDOC 906XI_CFLAGS 907XI_LIBS 908XFIXES_CFLAGS 909XFIXES_LIBS' 910 911 912# Initialize some variables set by options. 913ac_init_help= 914ac_init_version=false 915ac_unrecognized_opts= 916ac_unrecognized_sep= 917# The variables have the same names as the options, with 918# dashes changed to underlines. 919cache_file=/dev/null 920exec_prefix=NONE 921no_create= 922no_recursion= 923prefix=NONE 924program_prefix=NONE 925program_suffix=NONE 926program_transform_name=s,x,x, 927silent= 928site= 929srcdir= 930verbose= 931x_includes=NONE 932x_libraries=NONE 933 934# Installation directory options. 935# These are left unexpanded so users can "make install exec_prefix=/foo" 936# and all the variables that are supposed to be based on exec_prefix 937# by default will actually change. 938# Use braces instead of parens because sh, perl, etc. also accept them. 939# (The list follows the same order as the GNU Coding Standards.) 940bindir='${exec_prefix}/bin' 941sbindir='${exec_prefix}/sbin' 942libexecdir='${exec_prefix}/libexec' 943datarootdir='${prefix}/share' 944datadir='${datarootdir}' 945sysconfdir='${prefix}/etc' 946sharedstatedir='${prefix}/com' 947localstatedir='${prefix}/var' 948includedir='${prefix}/include' 949oldincludedir='/usr/include' 950docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 951infodir='${datarootdir}/info' 952htmldir='${docdir}' 953dvidir='${docdir}' 954pdfdir='${docdir}' 955psdir='${docdir}' 956libdir='${exec_prefix}/lib' 957localedir='${datarootdir}/locale' 958mandir='${datarootdir}/man' 959 960ac_prev= 961ac_dashdash= 962for ac_option 963do 964 # If the previous option needs an argument, assign it. 965 if test -n "$ac_prev"; then 966 eval $ac_prev=\$ac_option 967 ac_prev= 968 continue 969 fi 970 971 case $ac_option in 972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 973 *=) ac_optarg= ;; 974 *) ac_optarg=yes ;; 975 esac 976 977 # Accept the important Cygnus configure options, so we can diagnose typos. 978 979 case $ac_dashdash$ac_option in 980 --) 981 ac_dashdash=yes ;; 982 983 -bindir | --bindir | --bindi | --bind | --bin | --bi) 984 ac_prev=bindir ;; 985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 986 bindir=$ac_optarg ;; 987 988 -build | --build | --buil | --bui | --bu) 989 ac_prev=build_alias ;; 990 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 991 build_alias=$ac_optarg ;; 992 993 -cache-file | --cache-file | --cache-fil | --cache-fi \ 994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 995 ac_prev=cache_file ;; 996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 998 cache_file=$ac_optarg ;; 999 1000 --config-cache | -C) 1001 cache_file=config.cache ;; 1002 1003 -datadir | --datadir | --datadi | --datad) 1004 ac_prev=datadir ;; 1005 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1006 datadir=$ac_optarg ;; 1007 1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1009 | --dataroo | --dataro | --datar) 1010 ac_prev=datarootdir ;; 1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1013 datarootdir=$ac_optarg ;; 1014 1015 -disable-* | --disable-*) 1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1017 # Reject names that are not valid shell variable names. 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1019 as_fn_error $? "invalid feature name: $ac_useropt" 1020 ac_useropt_orig=$ac_useropt 1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1022 case $ac_user_opts in 1023 *" 1024"enable_$ac_useropt" 1025"*) ;; 1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1027 ac_unrecognized_sep=', ';; 1028 esac 1029 eval enable_$ac_useropt=no ;; 1030 1031 -docdir | --docdir | --docdi | --doc | --do) 1032 ac_prev=docdir ;; 1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1034 docdir=$ac_optarg ;; 1035 1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1037 ac_prev=dvidir ;; 1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1039 dvidir=$ac_optarg ;; 1040 1041 -enable-* | --enable-*) 1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1045 as_fn_error $? "invalid feature name: $ac_useropt" 1046 ac_useropt_orig=$ac_useropt 1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1048 case $ac_user_opts in 1049 *" 1050"enable_$ac_useropt" 1051"*) ;; 1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1053 ac_unrecognized_sep=', ';; 1054 esac 1055 eval enable_$ac_useropt=\$ac_optarg ;; 1056 1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1059 | --exec | --exe | --ex) 1060 ac_prev=exec_prefix ;; 1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1063 | --exec=* | --exe=* | --ex=*) 1064 exec_prefix=$ac_optarg ;; 1065 1066 -gas | --gas | --ga | --g) 1067 # Obsolete; use --with-gas. 1068 with_gas=yes ;; 1069 1070 -help | --help | --hel | --he | -h) 1071 ac_init_help=long ;; 1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1073 ac_init_help=recursive ;; 1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1075 ac_init_help=short ;; 1076 1077 -host | --host | --hos | --ho) 1078 ac_prev=host_alias ;; 1079 -host=* | --host=* | --hos=* | --ho=*) 1080 host_alias=$ac_optarg ;; 1081 1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1083 ac_prev=htmldir ;; 1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1085 | --ht=*) 1086 htmldir=$ac_optarg ;; 1087 1088 -includedir | --includedir | --includedi | --included | --include \ 1089 | --includ | --inclu | --incl | --inc) 1090 ac_prev=includedir ;; 1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1092 | --includ=* | --inclu=* | --incl=* | --inc=*) 1093 includedir=$ac_optarg ;; 1094 1095 -infodir | --infodir | --infodi | --infod | --info | --inf) 1096 ac_prev=infodir ;; 1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1098 infodir=$ac_optarg ;; 1099 1100 -libdir | --libdir | --libdi | --libd) 1101 ac_prev=libdir ;; 1102 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1103 libdir=$ac_optarg ;; 1104 1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1106 | --libexe | --libex | --libe) 1107 ac_prev=libexecdir ;; 1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1109 | --libexe=* | --libex=* | --libe=*) 1110 libexecdir=$ac_optarg ;; 1111 1112 -localedir | --localedir | --localedi | --localed | --locale) 1113 ac_prev=localedir ;; 1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1115 localedir=$ac_optarg ;; 1116 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1118 | --localstate | --localstat | --localsta | --localst | --locals) 1119 ac_prev=localstatedir ;; 1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1122 localstatedir=$ac_optarg ;; 1123 1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1125 ac_prev=mandir ;; 1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1127 mandir=$ac_optarg ;; 1128 1129 -nfp | --nfp | --nf) 1130 # Obsolete; use --without-fp. 1131 with_fp=no ;; 1132 1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1134 | --no-cr | --no-c | -n) 1135 no_create=yes ;; 1136 1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1139 no_recursion=yes ;; 1140 1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1143 | --oldin | --oldi | --old | --ol | --o) 1144 ac_prev=oldincludedir ;; 1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1148 oldincludedir=$ac_optarg ;; 1149 1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1151 ac_prev=prefix ;; 1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1153 prefix=$ac_optarg ;; 1154 1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1156 | --program-pre | --program-pr | --program-p) 1157 ac_prev=program_prefix ;; 1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1160 program_prefix=$ac_optarg ;; 1161 1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1163 | --program-suf | --program-su | --program-s) 1164 ac_prev=program_suffix ;; 1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1167 program_suffix=$ac_optarg ;; 1168 1169 -program-transform-name | --program-transform-name \ 1170 | --program-transform-nam | --program-transform-na \ 1171 | --program-transform-n | --program-transform- \ 1172 | --program-transform | --program-transfor \ 1173 | --program-transfo | --program-transf \ 1174 | --program-trans | --program-tran \ 1175 | --progr-tra | --program-tr | --program-t) 1176 ac_prev=program_transform_name ;; 1177 -program-transform-name=* | --program-transform-name=* \ 1178 | --program-transform-nam=* | --program-transform-na=* \ 1179 | --program-transform-n=* | --program-transform-=* \ 1180 | --program-transform=* | --program-transfor=* \ 1181 | --program-transfo=* | --program-transf=* \ 1182 | --program-trans=* | --program-tran=* \ 1183 | --progr-tra=* | --program-tr=* | --program-t=*) 1184 program_transform_name=$ac_optarg ;; 1185 1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1187 ac_prev=pdfdir ;; 1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1189 pdfdir=$ac_optarg ;; 1190 1191 -psdir | --psdir | --psdi | --psd | --ps) 1192 ac_prev=psdir ;; 1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1194 psdir=$ac_optarg ;; 1195 1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1197 | -silent | --silent | --silen | --sile | --sil) 1198 silent=yes ;; 1199 1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1201 ac_prev=sbindir ;; 1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1203 | --sbi=* | --sb=*) 1204 sbindir=$ac_optarg ;; 1205 1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1208 | --sharedst | --shareds | --shared | --share | --shar \ 1209 | --sha | --sh) 1210 ac_prev=sharedstatedir ;; 1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1214 | --sha=* | --sh=*) 1215 sharedstatedir=$ac_optarg ;; 1216 1217 -site | --site | --sit) 1218 ac_prev=site ;; 1219 -site=* | --site=* | --sit=*) 1220 site=$ac_optarg ;; 1221 1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1223 ac_prev=srcdir ;; 1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1225 srcdir=$ac_optarg ;; 1226 1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1228 | --syscon | --sysco | --sysc | --sys | --sy) 1229 ac_prev=sysconfdir ;; 1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1232 sysconfdir=$ac_optarg ;; 1233 1234 -target | --target | --targe | --targ | --tar | --ta | --t) 1235 ac_prev=target_alias ;; 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1237 target_alias=$ac_optarg ;; 1238 1239 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1240 verbose=yes ;; 1241 1242 -version | --version | --versio | --versi | --vers | -V) 1243 ac_init_version=: ;; 1244 1245 -with-* | --with-*) 1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1247 # Reject names that are not valid shell variable names. 1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1249 as_fn_error $? "invalid package name: $ac_useropt" 1250 ac_useropt_orig=$ac_useropt 1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1252 case $ac_user_opts in 1253 *" 1254"with_$ac_useropt" 1255"*) ;; 1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1257 ac_unrecognized_sep=', ';; 1258 esac 1259 eval with_$ac_useropt=\$ac_optarg ;; 1260 1261 -without-* | --without-*) 1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1263 # Reject names that are not valid shell variable names. 1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1265 as_fn_error $? "invalid package name: $ac_useropt" 1266 ac_useropt_orig=$ac_useropt 1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1268 case $ac_user_opts in 1269 *" 1270"with_$ac_useropt" 1271"*) ;; 1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1273 ac_unrecognized_sep=', ';; 1274 esac 1275 eval with_$ac_useropt=no ;; 1276 1277 --x) 1278 # Obsolete; use --with-x. 1279 with_x=yes ;; 1280 1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1282 | --x-incl | --x-inc | --x-in | --x-i) 1283 ac_prev=x_includes ;; 1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1286 x_includes=$ac_optarg ;; 1287 1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1290 ac_prev=x_libraries ;; 1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1293 x_libraries=$ac_optarg ;; 1294 1295 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1296Try \`$0 --help' for more information" 1297 ;; 1298 1299 *=*) 1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1301 # Reject names that are not valid shell variable names. 1302 case $ac_envvar in #( 1303 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1305 esac 1306 eval $ac_envvar=\$ac_optarg 1307 export $ac_envvar ;; 1308 1309 *) 1310 # FIXME: should be removed in autoconf 3.0. 1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1315 ;; 1316 1317 esac 1318done 1319 1320if test -n "$ac_prev"; then 1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1322 as_fn_error $? "missing argument to $ac_option" 1323fi 1324 1325if test -n "$ac_unrecognized_opts"; then 1326 case $enable_option_checking in 1327 no) ;; 1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1330 esac 1331fi 1332 1333# Check all directory arguments for consistency. 1334for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1335 datadir sysconfdir sharedstatedir localstatedir includedir \ 1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1337 libdir localedir mandir 1338do 1339 eval ac_val=\$$ac_var 1340 # Remove trailing slashes. 1341 case $ac_val in 1342 */ ) 1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1344 eval $ac_var=\$ac_val;; 1345 esac 1346 # Be sure to have absolute directory names. 1347 case $ac_val in 1348 [\\/$]* | ?:[\\/]* ) continue;; 1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1350 esac 1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1352done 1353 1354# There might be people who depend on the old broken behavior: `$host' 1355# used to hold the argument of --host etc. 1356# FIXME: To remove some day. 1357build=$build_alias 1358host=$host_alias 1359target=$target_alias 1360 1361# FIXME: To remove some day. 1362if test "x$host_alias" != x; then 1363 if test "x$build_alias" = x; then 1364 cross_compiling=maybe 1365 elif test "x$build_alias" != "x$host_alias"; then 1366 cross_compiling=yes 1367 fi 1368fi 1369 1370ac_tool_prefix= 1371test -n "$host_alias" && ac_tool_prefix=$host_alias- 1372 1373test "$silent" = yes && exec 6>/dev/null 1374 1375 1376ac_pwd=`pwd` && test -n "$ac_pwd" && 1377ac_ls_di=`ls -di .` && 1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1379 as_fn_error $? "working directory cannot be determined" 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1381 as_fn_error $? "pwd does not report name of working directory" 1382 1383 1384# Find the source files, if location was not specified. 1385if test -z "$srcdir"; then 1386 ac_srcdir_defaulted=yes 1387 # Try the directory containing this script, then the parent directory. 1388 ac_confdir=`$as_dirname -- "$as_myself" || 1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1390 X"$as_myself" : 'X\(//\)[^/]' \| \ 1391 X"$as_myself" : 'X\(//\)$' \| \ 1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1393$as_echo X"$as_myself" | 1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)[^/].*/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)$/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\).*/{ 1407 s//\1/ 1408 q 1409 } 1410 s/.*/./; q'` 1411 srcdir=$ac_confdir 1412 if test ! -r "$srcdir/$ac_unique_file"; then 1413 srcdir=.. 1414 fi 1415else 1416 ac_srcdir_defaulted=no 1417fi 1418if test ! -r "$srcdir/$ac_unique_file"; then 1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1421fi 1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1423ac_abs_confdir=`( 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1425 pwd)` 1426# When building in place, set srcdir=. 1427if test "$ac_abs_confdir" = "$ac_pwd"; then 1428 srcdir=. 1429fi 1430# Remove unnecessary trailing slashes from srcdir. 1431# Double slashes in file names in object file debugging info 1432# mess up M-x gdb in Emacs. 1433case $srcdir in 1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1435esac 1436for ac_var in $ac_precious_vars; do 1437 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_env_${ac_var}_value=\$${ac_var} 1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1440 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1441done 1442 1443# 1444# Report the --help message. 1445# 1446if test "$ac_init_help" = "long"; then 1447 # Omit some internal or obsolete options to make the list less imposing. 1448 # This message is too long to be a string in the A/UX 3.1 sh. 1449 cat <<_ACEOF 1450\`configure' configures libXi 1.7.1 to adapt to many kinds of systems. 1451 1452Usage: $0 [OPTION]... [VAR=VALUE]... 1453 1454To assign environment variables (e.g., CC, CFLAGS...), specify them as 1455VAR=VALUE. See below for descriptions of some of the useful variables. 1456 1457Defaults for the options are specified in brackets. 1458 1459Configuration: 1460 -h, --help display this help and exit 1461 --help=short display options specific to this package 1462 --help=recursive display the short help of all the included packages 1463 -V, --version display version information and exit 1464 -q, --quiet, --silent do not print \`checking ...' messages 1465 --cache-file=FILE cache test results in FILE [disabled] 1466 -C, --config-cache alias for \`--cache-file=config.cache' 1467 -n, --no-create do not create output files 1468 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1469 1470Installation directories: 1471 --prefix=PREFIX install architecture-independent files in PREFIX 1472 [$ac_default_prefix] 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1474 [PREFIX] 1475 1476By default, \`make install' will install all the files in 1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1478an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1479for instance \`--prefix=\$HOME'. 1480 1481For better control, use the options below. 1482 1483Fine tuning of the installation directories: 1484 --bindir=DIR user executables [EPREFIX/bin] 1485 --sbindir=DIR system admin executables [EPREFIX/sbin] 1486 --libexecdir=DIR program executables [EPREFIX/libexec] 1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1490 --libdir=DIR object code libraries [EPREFIX/lib] 1491 --includedir=DIR C header files [PREFIX/include] 1492 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1495 --infodir=DIR info documentation [DATAROOTDIR/info] 1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1497 --mandir=DIR man documentation [DATAROOTDIR/man] 1498 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi] 1499 --htmldir=DIR html documentation [DOCDIR] 1500 --dvidir=DIR dvi documentation [DOCDIR] 1501 --pdfdir=DIR pdf documentation [DOCDIR] 1502 --psdir=DIR ps documentation [DOCDIR] 1503_ACEOF 1504 1505 cat <<\_ACEOF 1506 1507Program names: 1508 --program-prefix=PREFIX prepend PREFIX to installed program names 1509 --program-suffix=SUFFIX append SUFFIX to installed program names 1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1511 1512System types: 1513 --build=BUILD configure for building on BUILD [guessed] 1514 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1515_ACEOF 1516fi 1517 1518if test -n "$ac_init_help"; then 1519 case $ac_init_help in 1520 short | recursive ) echo "Configuration of libXi 1.7.1:";; 1521 esac 1522 cat <<\_ACEOF 1523 1524Optional Features: 1525 --disable-option-checking ignore unrecognized --enable/--with options 1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1528 --enable-shared[=PKGS] build shared libraries [default=yes] 1529 --enable-static[=PKGS] build static libraries [default=yes] 1530 --enable-fast-install[=PKGS] 1531 optimize for fast installation [default=yes] 1532 --enable-dependency-tracking 1533 do not reject slow dependency extractors 1534 --disable-dependency-tracking 1535 speeds up one-time build 1536 --disable-libtool-lock avoid locking (might break parallel builds) 1537 --disable-selective-werror 1538 Turn off selective compiler errors. (default: 1539 enabled) 1540 --enable-strict-compilation 1541 Enable all warnings from compiler and make them 1542 errors (default: disabled) 1543 --enable-silent-rules less verbose build output (undo: "make V=1") 1544 --disable-silent-rules verbose build output (undo: "make V=0") 1545 --enable-docs Enable building the documentation (default: yes) 1546 --enable-specs Enable building the specs (default: yes) 1547 --enable-malloc0returnsnull 1548 malloc(0) returns NULL (default: auto) 1549 1550Optional Packages: 1551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1553 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1554 both] 1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1556 --with-sysroot=DIR Search for dependent libraries within DIR 1557 (or the compiler's sysroot if not specified). 1558 --with-xmlto Use xmlto to regenerate documentation (default: 1559 auto) 1560 --with-fop Use fop to regenerate documentation (default: auto) 1561 --with-xsltproc Use xsltproc for the transformation of XML documents 1562 (default: auto) 1563 --with-asciidoc Use asciidoc to regenerate documentation (default: 1564 auto) 1565 1566Some influential environment variables: 1567 CC C compiler command 1568 CFLAGS C compiler flags 1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1570 nonstandard directory <lib dir> 1571 LIBS libraries to pass to the linker, e.g. -l<library> 1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1573 you have headers in a nonstandard directory <include dir> 1574 CPP C preprocessor 1575 PKG_CONFIG path to pkg-config utility 1576 PKG_CONFIG_PATH 1577 directories to add to pkg-config's search path 1578 PKG_CONFIG_LIBDIR 1579 path overriding pkg-config's built-in search path 1580 XMLTO Path to xmlto command 1581 FOP Path to fop command 1582 XSLTPROC Path to xsltproc command 1583 ASCIIDOC Path to asciidoc command 1584 XI_CFLAGS C compiler flags for XI, overriding pkg-config 1585 XI_LIBS linker flags for XI, overriding pkg-config 1586 XFIXES_CFLAGS 1587 C compiler flags for XFIXES, overriding pkg-config 1588 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config 1589 1590Use these variables to override the choices made by `configure' or to help 1591it to find libraries and programs with nonstandard names/locations. 1592 1593Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1594_ACEOF 1595ac_status=$? 1596fi 1597 1598if test "$ac_init_help" = "recursive"; then 1599 # If there are subdirs, report their specific --help. 1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1601 test -d "$ac_dir" || 1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1603 continue 1604 ac_builddir=. 1605 1606case "$ac_dir" in 1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1608*) 1609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1610 # A ".." for each directory in $ac_dir_suffix. 1611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1612 case $ac_top_builddir_sub in 1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1615 esac ;; 1616esac 1617ac_abs_top_builddir=$ac_pwd 1618ac_abs_builddir=$ac_pwd$ac_dir_suffix 1619# for backward compatibility: 1620ac_top_builddir=$ac_top_build_prefix 1621 1622case $srcdir in 1623 .) # We are building in place. 1624 ac_srcdir=. 1625 ac_top_srcdir=$ac_top_builddir_sub 1626 ac_abs_top_srcdir=$ac_pwd ;; 1627 [\\/]* | ?:[\\/]* ) # Absolute name. 1628 ac_srcdir=$srcdir$ac_dir_suffix; 1629 ac_top_srcdir=$srcdir 1630 ac_abs_top_srcdir=$srcdir ;; 1631 *) # Relative name. 1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1633 ac_top_srcdir=$ac_top_build_prefix$srcdir 1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1635esac 1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1637 1638 cd "$ac_dir" || { ac_status=$?; continue; } 1639 # Check for guested configure. 1640 if test -f "$ac_srcdir/configure.gnu"; then 1641 echo && 1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1643 elif test -f "$ac_srcdir/configure"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure" --help=recursive 1646 else 1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1648 fi || ac_status=$? 1649 cd "$ac_pwd" || { ac_status=$?; break; } 1650 done 1651fi 1652 1653test -n "$ac_init_help" && exit $ac_status 1654if $ac_init_version; then 1655 cat <<\_ACEOF 1656libXi configure 1.7.1 1657generated by GNU Autoconf 2.69 1658 1659Copyright (C) 2012 Free Software Foundation, Inc. 1660This configure script is free software; the Free Software Foundation 1661gives unlimited permission to copy, distribute and modify it. 1662_ACEOF 1663 exit 1664fi 1665 1666## ------------------------ ## 1667## Autoconf initialization. ## 1668## ------------------------ ## 1669 1670# ac_fn_c_try_compile LINENO 1671# -------------------------- 1672# Try to compile conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_compile () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 rm -f conftest.$ac_objext 1677 if { { ac_try="$ac_compile" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_compile") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest.$ac_objext; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_compile 1707 1708# ac_fn_c_try_link LINENO 1709# ----------------------- 1710# Try to link conftest.$ac_ext, and return whether this succeeded. 1711ac_fn_c_try_link () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext conftest$ac_exeext 1715 if { { ac_try="$ac_link" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_link") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_c_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest$ac_exeext && { 1734 test "$cross_compiling" = yes || 1735 test -x conftest$ac_exeext 1736 }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1746 # interfere with the next link command; also delete a directory that is 1747 # left behind by Apple's compiler. We do this before executing the actions. 1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_c_try_link 1753 1754# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1755# ------------------------------------------------------- 1756# Tests whether HEADER exists and can be compiled using the include files in 1757# INCLUDES, setting the cache variable VAR accordingly. 1758ac_fn_c_check_header_compile () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768$4 1769#include <$2> 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO"; then : 1772 eval "$3=yes" 1773else 1774 eval "$3=no" 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_header_compile 1784 1785# ac_fn_c_try_cpp LINENO 1786# ---------------------- 1787# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1788ac_fn_c_try_cpp () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if { { ac_try="$ac_cpp conftest.$ac_ext" 1792case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1799 ac_status=$? 1800 if test -s conftest.err; then 1801 grep -v '^ *+' conftest.err >conftest.er1 1802 cat conftest.er1 >&5 1803 mv -f conftest.er1 conftest.err 1804 fi 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } > conftest.i && { 1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1808 test ! -s conftest.err 1809 }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: failed program was:" >&5 1813sed 's/^/| /' conftest.$ac_ext >&5 1814 1815 ac_retval=1 1816fi 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 as_fn_set_status $ac_retval 1819 1820} # ac_fn_c_try_cpp 1821 1822# ac_fn_c_try_run LINENO 1823# ---------------------- 1824# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1825# that executables *can* be run. 1826ac_fn_c_try_run () 1827{ 1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1829 if { { ac_try="$ac_link" 1830case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833esac 1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1835$as_echo "$ac_try_echo"; } >&5 1836 (eval "$ac_link") 2>&5 1837 ac_status=$? 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1840 { { case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_try") 2>&5 1847 ac_status=$? 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; }; }; then : 1850 ac_retval=0 1851else 1852 $as_echo "$as_me: program exited with status $ac_status" >&5 1853 $as_echo "$as_me: failed program was:" >&5 1854sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=$ac_status 1857fi 1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1860 as_fn_set_status $ac_retval 1861 1862} # ac_fn_c_try_run 1863 1864# ac_fn_c_check_func LINENO FUNC VAR 1865# ---------------------------------- 1866# Tests whether FUNC exists, setting the cache variable VAR accordingly 1867ac_fn_c_check_func () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1871$as_echo_n "checking for $2... " >&6; } 1872if eval \${$3+:} false; then : 1873 $as_echo_n "(cached) " >&6 1874else 1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1878 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1879#define $2 innocuous_$2 1880 1881/* System header to define __stub macros and hopefully few prototypes, 1882 which can conflict with char $2 (); below. 1883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1884 <limits.h> exists even on freestanding compilers. */ 1885 1886#ifdef __STDC__ 1887# include <limits.h> 1888#else 1889# include <assert.h> 1890#endif 1891 1892#undef $2 1893 1894/* Override any GCC internal prototype to avoid an error. 1895 Use char because int might match the return type of a GCC 1896 builtin and then its argument prototype would still apply. */ 1897#ifdef __cplusplus 1898extern "C" 1899#endif 1900char $2 (); 1901/* The GNU C library defines this for functions which it implements 1902 to always fail with ENOSYS. Some functions are actually named 1903 something starting with __ and the normal name is an alias. */ 1904#if defined __stub_$2 || defined __stub___$2 1905choke me 1906#endif 1907 1908int 1909main () 1910{ 1911return $2 (); 1912 ; 1913 return 0; 1914} 1915_ACEOF 1916if ac_fn_c_try_link "$LINENO"; then : 1917 eval "$3=yes" 1918else 1919 eval "$3=no" 1920fi 1921rm -f core conftest.err conftest.$ac_objext \ 1922 conftest$ac_exeext conftest.$ac_ext 1923fi 1924eval ac_res=\$$3 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1926$as_echo "$ac_res" >&6; } 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 1929} # ac_fn_c_check_func 1930 1931# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1932# --------------------------------------------- 1933# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1934# accordingly. 1935ac_fn_c_check_decl () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 as_decl_name=`echo $2|sed 's/ *(.*//'` 1939 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1941$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944else 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948int 1949main () 1950{ 1951#ifndef $as_decl_name 1952#ifdef __cplusplus 1953 (void) $as_decl_use; 1954#else 1955 (void) $as_decl_name; 1956#endif 1957#endif 1958 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 eval "$3=yes" 1965else 1966 eval "$3=no" 1967fi 1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1969fi 1970eval ac_res=\$$3 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1972$as_echo "$ac_res" >&6; } 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 1975} # ac_fn_c_check_decl 1976cat >config.log <<_ACEOF 1977This file contains any messages produced by compilers while 1978running configure, to aid debugging if configure makes a mistake. 1979 1980It was created by libXi $as_me 1.7.1, which was 1981generated by GNU Autoconf 2.69. Invocation command line was 1982 1983 $ $0 $@ 1984 1985_ACEOF 1986exec 5>>config.log 1987{ 1988cat <<_ASUNAME 1989## --------- ## 1990## Platform. ## 1991## --------- ## 1992 1993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1994uname -m = `(uname -m) 2>/dev/null || echo unknown` 1995uname -r = `(uname -r) 2>/dev/null || echo unknown` 1996uname -s = `(uname -s) 2>/dev/null || echo unknown` 1997uname -v = `(uname -v) 2>/dev/null || echo unknown` 1998 1999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2000/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2001 2002/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2003/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2005/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2006/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2007/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2008/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2009 2010_ASUNAME 2011 2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2013for as_dir in $PATH 2014do 2015 IFS=$as_save_IFS 2016 test -z "$as_dir" && as_dir=. 2017 $as_echo "PATH: $as_dir" 2018 done 2019IFS=$as_save_IFS 2020 2021} >&5 2022 2023cat >&5 <<_ACEOF 2024 2025 2026## ----------- ## 2027## Core tests. ## 2028## ----------- ## 2029 2030_ACEOF 2031 2032 2033# Keep a trace of the command line. 2034# Strip out --no-create and --no-recursion so they do not pile up. 2035# Strip out --silent because we don't want to record it for future runs. 2036# Also quote any args containing shell meta-characters. 2037# Make two passes to allow for proper duplicate-argument suppression. 2038ac_configure_args= 2039ac_configure_args0= 2040ac_configure_args1= 2041ac_must_keep_next=false 2042for ac_pass in 1 2 2043do 2044 for ac_arg 2045 do 2046 case $ac_arg in 2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2049 | -silent | --silent | --silen | --sile | --sil) 2050 continue ;; 2051 *\'*) 2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2053 esac 2054 case $ac_pass in 2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2056 2) 2057 as_fn_append ac_configure_args1 " '$ac_arg'" 2058 if test $ac_must_keep_next = true; then 2059 ac_must_keep_next=false # Got value, back to normal. 2060 else 2061 case $ac_arg in 2062 *=* | --config-cache | -C | -disable-* | --disable-* \ 2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2065 | -with-* | --with-* | -without-* | --without-* | --x) 2066 case "$ac_configure_args0 " in 2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2068 esac 2069 ;; 2070 -* ) ac_must_keep_next=true ;; 2071 esac 2072 fi 2073 as_fn_append ac_configure_args " '$ac_arg'" 2074 ;; 2075 esac 2076 done 2077done 2078{ ac_configure_args0=; unset ac_configure_args0;} 2079{ ac_configure_args1=; unset ac_configure_args1;} 2080 2081# When interrupted or exit'd, cleanup temporary files, and complete 2082# config.log. We remove comments because anyway the quotes in there 2083# would cause problems or look ugly. 2084# WARNING: Use '\'' to represent an apostrophe within the trap. 2085# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2086trap 'exit_status=$? 2087 # Save into config.log some information that might help in debugging. 2088 { 2089 echo 2090 2091 $as_echo "## ---------------- ## 2092## Cache variables. ## 2093## ---------------- ##" 2094 echo 2095 # The following way of writing the cache mishandles newlines in values, 2096( 2097 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2098 eval ac_val=\$$ac_var 2099 case $ac_val in #( 2100 *${as_nl}*) 2101 case $ac_var in #( 2102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2103$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2104 esac 2105 case $ac_var in #( 2106 _ | IFS | as_nl) ;; #( 2107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2108 *) { eval $ac_var=; unset $ac_var;} ;; 2109 esac ;; 2110 esac 2111 done 2112 (set) 2>&1 | 2113 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2114 *${as_nl}ac_space=\ *) 2115 sed -n \ 2116 "s/'\''/'\''\\\\'\'''\''/g; 2117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2118 ;; #( 2119 *) 2120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2121 ;; 2122 esac | 2123 sort 2124) 2125 echo 2126 2127 $as_echo "## ----------------- ## 2128## Output variables. ## 2129## ----------------- ##" 2130 echo 2131 for ac_var in $ac_subst_vars 2132 do 2133 eval ac_val=\$$ac_var 2134 case $ac_val in 2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2136 esac 2137 $as_echo "$ac_var='\''$ac_val'\''" 2138 done | sort 2139 echo 2140 2141 if test -n "$ac_subst_files"; then 2142 $as_echo "## ------------------- ## 2143## File substitutions. ## 2144## ------------------- ##" 2145 echo 2146 for ac_var in $ac_subst_files 2147 do 2148 eval ac_val=\$$ac_var 2149 case $ac_val in 2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2151 esac 2152 $as_echo "$ac_var='\''$ac_val'\''" 2153 done | sort 2154 echo 2155 fi 2156 2157 if test -s confdefs.h; then 2158 $as_echo "## ----------- ## 2159## confdefs.h. ## 2160## ----------- ##" 2161 echo 2162 cat confdefs.h 2163 echo 2164 fi 2165 test "$ac_signal" != 0 && 2166 $as_echo "$as_me: caught signal $ac_signal" 2167 $as_echo "$as_me: exit $exit_status" 2168 } >&5 2169 rm -f core *.core core.conftest.* && 2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2171 exit $exit_status 2172' 0 2173for ac_signal in 1 2 13 15; do 2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2175done 2176ac_signal=0 2177 2178# confdefs.h avoids OS command line length limits that DEFS can exceed. 2179rm -f -r conftest* confdefs.h 2180 2181$as_echo "/* confdefs.h */" > confdefs.h 2182 2183# Predefined preprocessor variables. 2184 2185cat >>confdefs.h <<_ACEOF 2186#define PACKAGE_NAME "$PACKAGE_NAME" 2187_ACEOF 2188 2189cat >>confdefs.h <<_ACEOF 2190#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2191_ACEOF 2192 2193cat >>confdefs.h <<_ACEOF 2194#define PACKAGE_VERSION "$PACKAGE_VERSION" 2195_ACEOF 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_STRING "$PACKAGE_STRING" 2199_ACEOF 2200 2201cat >>confdefs.h <<_ACEOF 2202#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2203_ACEOF 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_URL "$PACKAGE_URL" 2207_ACEOF 2208 2209 2210# Let the site file select an alternate cache file if it wants to. 2211# Prefer an explicitly selected file to automatically selected ones. 2212ac_site_file1=NONE 2213ac_site_file2=NONE 2214if test -n "$CONFIG_SITE"; then 2215 # We do not want a PATH search for config.site. 2216 case $CONFIG_SITE in #(( 2217 -*) ac_site_file1=./$CONFIG_SITE;; 2218 */*) ac_site_file1=$CONFIG_SITE;; 2219 *) ac_site_file1=./$CONFIG_SITE;; 2220 esac 2221elif test "x$prefix" != xNONE; then 2222 ac_site_file1=$prefix/share/config.site 2223 ac_site_file2=$prefix/etc/config.site 2224else 2225 ac_site_file1=$ac_default_prefix/share/config.site 2226 ac_site_file2=$ac_default_prefix/etc/config.site 2227fi 2228for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2229do 2230 test "x$ac_site_file" = xNONE && continue 2231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2233$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2234 sed 's/^/| /' "$ac_site_file" >&5 2235 . "$ac_site_file" \ 2236 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2238as_fn_error $? "failed to load site script $ac_site_file 2239See \`config.log' for more details" "$LINENO" 5; } 2240 fi 2241done 2242 2243if test -r "$cache_file"; then 2244 # Some versions of bash will fail to source /dev/null (special files 2245 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2248$as_echo "$as_me: loading cache $cache_file" >&6;} 2249 case $cache_file in 2250 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2251 *) . "./$cache_file";; 2252 esac 2253 fi 2254else 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2256$as_echo "$as_me: creating cache $cache_file" >&6;} 2257 >$cache_file 2258fi 2259 2260# Check that the precious variables saved in the cache have kept the same 2261# value. 2262ac_cache_corrupted=false 2263for ac_var in $ac_precious_vars; do 2264 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2265 eval ac_new_set=\$ac_env_${ac_var}_set 2266 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2267 eval ac_new_val=\$ac_env_${ac_var}_value 2268 case $ac_old_set,$ac_new_set in 2269 set,) 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2271$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2272 ac_cache_corrupted=: ;; 2273 ,set) 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2275$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2276 ac_cache_corrupted=: ;; 2277 ,);; 2278 *) 2279 if test "x$ac_old_val" != "x$ac_new_val"; then 2280 # differences in whitespace do not lead to failure. 2281 ac_old_val_w=`echo x $ac_old_val` 2282 ac_new_val_w=`echo x $ac_new_val` 2283 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2285$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2286 ac_cache_corrupted=: 2287 else 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2289$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2290 eval $ac_var=\$ac_old_val 2291 fi 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2293$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2295$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2296 fi;; 2297 esac 2298 # Pass precious variables to config.status. 2299 if test "$ac_new_set" = set; then 2300 case $ac_new_val in 2301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2302 *) ac_arg=$ac_var=$ac_new_val ;; 2303 esac 2304 case " $ac_configure_args " in 2305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2306 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2307 esac 2308 fi 2309done 2310if $ac_cache_corrupted; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2314$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2315 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2316fi 2317## -------------------- ## 2318## Main body of script. ## 2319## -------------------- ## 2320 2321ac_ext=c 2322ac_cpp='$CPP $CPPFLAGS' 2323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2325ac_compiler_gnu=$ac_cv_c_compiler_gnu 2326 2327 2328 2329ac_config_headers="$ac_config_headers src/config.h" 2330 2331 2332# Initialize Automake 2333am__api_version='1.12' 2334 2335ac_aux_dir= 2336for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2337 if test -f "$ac_dir/install-sh"; then 2338 ac_aux_dir=$ac_dir 2339 ac_install_sh="$ac_aux_dir/install-sh -c" 2340 break 2341 elif test -f "$ac_dir/install.sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install.sh -c" 2344 break 2345 elif test -f "$ac_dir/shtool"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/shtool install -c" 2348 break 2349 fi 2350done 2351if test -z "$ac_aux_dir"; then 2352 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2353fi 2354 2355# These three variables are undocumented and unsupported, 2356# and are intended to be withdrawn in a future Autoconf release. 2357# They can cause serious problems if a builder's source tree is in a directory 2358# whose full name contains unusual characters. 2359ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2360ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2361ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2362 2363 2364# Find a good install program. We prefer a C program (faster), 2365# so one script is as good as another. But avoid the broken or 2366# incompatible versions: 2367# SysV /etc/install, /usr/sbin/install 2368# SunOS /usr/etc/install 2369# IRIX /sbin/install 2370# AIX /bin/install 2371# AmigaOS /C/install, which installs bootblocks on floppy discs 2372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2373# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2375# OS/2's system install, which has a completely different semantic 2376# ./install, which can be erroneously created by make from ./install.sh. 2377# Reject install programs that cannot install multiple files. 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2379$as_echo_n "checking for a BSD-compatible install... " >&6; } 2380if test -z "$INSTALL"; then 2381if ${ac_cv_path_install+:} false; then : 2382 $as_echo_n "(cached) " >&6 2383else 2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2385for as_dir in $PATH 2386do 2387 IFS=$as_save_IFS 2388 test -z "$as_dir" && as_dir=. 2389 # Account for people who put trailing slashes in PATH elements. 2390case $as_dir/ in #(( 2391 ./ | .// | /[cC]/* | \ 2392 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2393 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2394 /usr/ucb/* ) ;; 2395 *) 2396 # OSF1 and SCO ODT 3.0 have their own names for install. 2397 # Don't use installbsd from OSF since it installs stuff as root 2398 # by default. 2399 for ac_prog in ginstall scoinst install; do 2400 for ac_exec_ext in '' $ac_executable_extensions; do 2401 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2402 if test $ac_prog = install && 2403 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2404 # AIX install. It has an incompatible calling convention. 2405 : 2406 elif test $ac_prog = install && 2407 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2408 # program-specific install script used by HP pwplus--don't use. 2409 : 2410 else 2411 rm -rf conftest.one conftest.two conftest.dir 2412 echo one > conftest.one 2413 echo two > conftest.two 2414 mkdir conftest.dir 2415 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2416 test -s conftest.one && test -s conftest.two && 2417 test -s conftest.dir/conftest.one && 2418 test -s conftest.dir/conftest.two 2419 then 2420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2421 break 3 2422 fi 2423 fi 2424 fi 2425 done 2426 done 2427 ;; 2428esac 2429 2430 done 2431IFS=$as_save_IFS 2432 2433rm -rf conftest.one conftest.two conftest.dir 2434 2435fi 2436 if test "${ac_cv_path_install+set}" = set; then 2437 INSTALL=$ac_cv_path_install 2438 else 2439 # As a last resort, use the slow shell script. Don't cache a 2440 # value for INSTALL within a source directory, because that will 2441 # break other packages using the cache if that directory is 2442 # removed, or if the value is a relative name. 2443 INSTALL=$ac_install_sh 2444 fi 2445fi 2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2447$as_echo "$INSTALL" >&6; } 2448 2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2450# It thinks the first close brace ends the variable substitution. 2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2452 2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2454 2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2456 2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2458$as_echo_n "checking whether build environment is sane... " >&6; } 2459# Reject unsafe characters in $srcdir or the absolute working directory 2460# name. Accept space and tab only in the latter. 2461am_lf=' 2462' 2463case `pwd` in 2464 *[\\\"\#\$\&\'\`$am_lf]*) 2465 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2466esac 2467case $srcdir in 2468 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2469 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2470esac 2471 2472# Do 'set' in a subshell so we don't clobber the current shell's 2473# arguments. Must try -L first in case configure is actually a 2474# symlink; some systems play weird games with the mod time of symlinks 2475# (eg FreeBSD returns the mod time of the symlink's containing 2476# directory). 2477if ( 2478 am_has_slept=no 2479 for am_try in 1 2; do 2480 echo "timestamp, slept: $am_has_slept" > conftest.file 2481 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2482 if test "$*" = "X"; then 2483 # -L didn't work. 2484 set X `ls -t "$srcdir/configure" conftest.file` 2485 fi 2486 if test "$*" != "X $srcdir/configure conftest.file" \ 2487 && test "$*" != "X conftest.file $srcdir/configure"; then 2488 2489 # If neither matched, then we have a broken ls. This can happen 2490 # if, for instance, CONFIG_SHELL is bash and it inherits a 2491 # broken ls alias from the environment. This has actually 2492 # happened. Such a system could not be considered "sane". 2493 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2494 alias in your environment" "$LINENO" 5 2495 fi 2496 if test "$2" = conftest.file || test $am_try -eq 2; then 2497 break 2498 fi 2499 # Just in case. 2500 sleep 1 2501 am_has_slept=yes 2502 done 2503 test "$2" = conftest.file 2504 ) 2505then 2506 # Ok. 2507 : 2508else 2509 as_fn_error $? "newly created file is older than distributed files! 2510Check your system clock" "$LINENO" 5 2511fi 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2513$as_echo "yes" >&6; } 2514# If we didn't sleep, we still need to ensure time stamps of config.status and 2515# generated files are strictly newer. 2516am_sleep_pid= 2517if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2518 ( sleep 1 ) & 2519 am_sleep_pid=$! 2520fi 2521 2522rm -f conftest.file 2523 2524test "$program_prefix" != NONE && 2525 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2526# Use a double $ so make ignores it. 2527test "$program_suffix" != NONE && 2528 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2529# Double any \ or $. 2530# By default was `s,x,x', remove it if useless. 2531ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2532program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2533 2534# expand $ac_aux_dir to an absolute path 2535am_aux_dir=`cd $ac_aux_dir && pwd` 2536 2537if test x"${MISSING+set}" != xset; then 2538 case $am_aux_dir in 2539 *\ * | *\ *) 2540 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2541 *) 2542 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2543 esac 2544fi 2545# Use eval to expand $SHELL 2546if eval "$MISSING --run true"; then 2547 am_missing_run="$MISSING --run " 2548else 2549 am_missing_run= 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2551$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2552fi 2553 2554if test x"${install_sh}" != xset; then 2555 case $am_aux_dir in 2556 *\ * | *\ *) 2557 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2558 *) 2559 install_sh="\${SHELL} $am_aux_dir/install-sh" 2560 esac 2561fi 2562 2563# Installed binaries are usually stripped using 'strip' when the user 2564# run "make install-strip". However 'strip' might not be the right 2565# tool to use in cross-compilation environments, therefore Automake 2566# will honor the 'STRIP' environment variable to overrule this program. 2567if test "$cross_compiling" != no; then 2568 if test -n "$ac_tool_prefix"; then 2569 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2570set dummy ${ac_tool_prefix}strip; ac_word=$2 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2572$as_echo_n "checking for $ac_word... " >&6; } 2573if ${ac_cv_prog_STRIP+:} false; then : 2574 $as_echo_n "(cached) " >&6 2575else 2576 if test -n "$STRIP"; then 2577 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2578else 2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2580for as_dir in $PATH 2581do 2582 IFS=$as_save_IFS 2583 test -z "$as_dir" && as_dir=. 2584 for ac_exec_ext in '' $ac_executable_extensions; do 2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2586 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2588 break 2 2589 fi 2590done 2591 done 2592IFS=$as_save_IFS 2593 2594fi 2595fi 2596STRIP=$ac_cv_prog_STRIP 2597if test -n "$STRIP"; then 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2599$as_echo "$STRIP" >&6; } 2600else 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2602$as_echo "no" >&6; } 2603fi 2604 2605 2606fi 2607if test -z "$ac_cv_prog_STRIP"; then 2608 ac_ct_STRIP=$STRIP 2609 # Extract the first word of "strip", so it can be a program name with args. 2610set dummy strip; ac_word=$2 2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2612$as_echo_n "checking for $ac_word... " >&6; } 2613if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2614 $as_echo_n "(cached) " >&6 2615else 2616 if test -n "$ac_ct_STRIP"; then 2617 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2618else 2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 for ac_exec_ext in '' $ac_executable_extensions; do 2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2626 ac_cv_prog_ac_ct_STRIP="strip" 2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2628 break 2 2629 fi 2630done 2631 done 2632IFS=$as_save_IFS 2633 2634fi 2635fi 2636ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2637if test -n "$ac_ct_STRIP"; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2639$as_echo "$ac_ct_STRIP" >&6; } 2640else 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2642$as_echo "no" >&6; } 2643fi 2644 2645 if test "x$ac_ct_STRIP" = x; then 2646 STRIP=":" 2647 else 2648 case $cross_compiling:$ac_tool_warned in 2649yes:) 2650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2652ac_tool_warned=yes ;; 2653esac 2654 STRIP=$ac_ct_STRIP 2655 fi 2656else 2657 STRIP="$ac_cv_prog_STRIP" 2658fi 2659 2660fi 2661INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2662 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2664$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2665if test -z "$MKDIR_P"; then 2666 if ${ac_cv_path_mkdir+:} false; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_prog in mkdir gmkdir; do 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2677 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2678 'mkdir (GNU coreutils) '* | \ 2679 'mkdir (coreutils) '* | \ 2680 'mkdir (fileutils) '4.1*) 2681 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2682 break 3;; 2683 esac 2684 done 2685 done 2686 done 2687IFS=$as_save_IFS 2688 2689fi 2690 2691 test -d ./--version && rmdir ./--version 2692 if test "${ac_cv_path_mkdir+set}" = set; then 2693 MKDIR_P="$ac_cv_path_mkdir -p" 2694 else 2695 # As a last resort, use the slow shell script. Don't cache a 2696 # value for MKDIR_P within a source directory, because that will 2697 # break other packages using the cache if that directory is 2698 # removed, or if the value is a relative name. 2699 MKDIR_P="$ac_install_sh -d" 2700 fi 2701fi 2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2703$as_echo "$MKDIR_P" >&6; } 2704 2705for ac_prog in gawk mawk nawk awk 2706do 2707 # Extract the first word of "$ac_prog", so it can be a program name with args. 2708set dummy $ac_prog; ac_word=$2 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2710$as_echo_n "checking for $ac_word... " >&6; } 2711if ${ac_cv_prog_AWK+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 if test -n "$AWK"; then 2715 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 test -z "$as_dir" && as_dir=. 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2724 ac_cv_prog_AWK="$ac_prog" 2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2726 break 2 2727 fi 2728done 2729 done 2730IFS=$as_save_IFS 2731 2732fi 2733fi 2734AWK=$ac_cv_prog_AWK 2735if test -n "$AWK"; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2737$as_echo "$AWK" >&6; } 2738else 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2740$as_echo "no" >&6; } 2741fi 2742 2743 2744 test -n "$AWK" && break 2745done 2746 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2748$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2749set x ${MAKE-make} 2750ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2751if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2752 $as_echo_n "(cached) " >&6 2753else 2754 cat >conftest.make <<\_ACEOF 2755SHELL = /bin/sh 2756all: 2757 @echo '@@@%%%=$(MAKE)=@@@%%%' 2758_ACEOF 2759# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2760case `${MAKE-make} -f conftest.make 2>/dev/null` in 2761 *@@@%%%=?*=@@@%%%*) 2762 eval ac_cv_prog_make_${ac_make}_set=yes;; 2763 *) 2764 eval ac_cv_prog_make_${ac_make}_set=no;; 2765esac 2766rm -f conftest.make 2767fi 2768if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2770$as_echo "yes" >&6; } 2771 SET_MAKE= 2772else 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2774$as_echo "no" >&6; } 2775 SET_MAKE="MAKE=${MAKE-make}" 2776fi 2777 2778rm -rf .tst 2>/dev/null 2779mkdir .tst 2>/dev/null 2780if test -d .tst; then 2781 am__leading_dot=. 2782else 2783 am__leading_dot=_ 2784fi 2785rmdir .tst 2>/dev/null 2786 2787if test "`cd $srcdir && pwd`" != "`pwd`"; then 2788 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2789 # is not polluted with repeated "-I." 2790 am__isrc=' -I$(srcdir)' 2791 # test to see if srcdir already configured 2792 if test -f $srcdir/config.status; then 2793 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2794 fi 2795fi 2796 2797# test whether we have cygpath 2798if test -z "$CYGPATH_W"; then 2799 if (cygpath --version) >/dev/null 2>/dev/null; then 2800 CYGPATH_W='cygpath -w' 2801 else 2802 CYGPATH_W=echo 2803 fi 2804fi 2805 2806 2807# Define the identity of the package. 2808 PACKAGE='libXi' 2809 VERSION='1.7.1' 2810 2811 2812cat >>confdefs.h <<_ACEOF 2813#define PACKAGE "$PACKAGE" 2814_ACEOF 2815 2816 2817cat >>confdefs.h <<_ACEOF 2818#define VERSION "$VERSION" 2819_ACEOF 2820 2821# Some tools Automake needs. 2822 2823ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2824 2825 2826AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2827 2828 2829AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2830 2831 2832AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2833 2834 2835MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2836 2837# For better backward compatibility. To be removed once Automake 1.9.x 2838# dies out for good. For more background, see: 2839# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2840# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2841mkdir_p='$(MKDIR_P)' 2842 2843# We need awk for the "check" target. The system "awk" is bad on 2844# some platforms. 2845# Always define AMTAR for backward compatibility. Yes, it's still used 2846# in the wild :-( We should find a proper way to deprecate it ... 2847AMTAR='$${TAR-tar}' 2848 2849am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2850 2851 2852 2853 2854 2855 2856# Initialize libtool 2857case `pwd` in 2858 *\ * | *\ *) 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2860$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2861esac 2862 2863 2864 2865macro_version='2.4.2' 2866macro_revision='1.3337' 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880ltmain="$ac_aux_dir/ltmain.sh" 2881 2882# Make sure we can run config.sub. 2883$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2884 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2885 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2887$as_echo_n "checking build system type... " >&6; } 2888if ${ac_cv_build+:} false; then : 2889 $as_echo_n "(cached) " >&6 2890else 2891 ac_build_alias=$build_alias 2892test "x$ac_build_alias" = x && 2893 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2894test "x$ac_build_alias" = x && 2895 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2896ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2897 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2898 2899fi 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2901$as_echo "$ac_cv_build" >&6; } 2902case $ac_cv_build in 2903*-*-*) ;; 2904*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2905esac 2906build=$ac_cv_build 2907ac_save_IFS=$IFS; IFS='-' 2908set x $ac_cv_build 2909shift 2910build_cpu=$1 2911build_vendor=$2 2912shift; shift 2913# Remember, the first character of IFS is used to create $*, 2914# except with old shells: 2915build_os=$* 2916IFS=$ac_save_IFS 2917case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2918 2919 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2921$as_echo_n "checking host system type... " >&6; } 2922if ${ac_cv_host+:} false; then : 2923 $as_echo_n "(cached) " >&6 2924else 2925 if test "x$host_alias" = x; then 2926 ac_cv_host=$ac_cv_build 2927else 2928 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2929 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2930fi 2931 2932fi 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2934$as_echo "$ac_cv_host" >&6; } 2935case $ac_cv_host in 2936*-*-*) ;; 2937*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2938esac 2939host=$ac_cv_host 2940ac_save_IFS=$IFS; IFS='-' 2941set x $ac_cv_host 2942shift 2943host_cpu=$1 2944host_vendor=$2 2945shift; shift 2946# Remember, the first character of IFS is used to create $*, 2947# except with old shells: 2948host_os=$* 2949IFS=$ac_save_IFS 2950case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2951 2952 2953# Backslashify metacharacters that are still active within 2954# double-quoted strings. 2955sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2956 2957# Same as above, but do not quote variable references. 2958double_quote_subst='s/\(["`\\]\)/\\\1/g' 2959 2960# Sed substitution to delay expansion of an escaped shell variable in a 2961# double_quote_subst'ed string. 2962delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2963 2964# Sed substitution to delay expansion of an escaped single quote. 2965delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2966 2967# Sed substitution to avoid accidental globbing in evaled expressions 2968no_glob_subst='s/\*/\\\*/g' 2969 2970ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2971ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2972ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2973 2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2975$as_echo_n "checking how to print strings... " >&6; } 2976# Test print first, because it will be a builtin if present. 2977if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2978 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2979 ECHO='print -r --' 2980elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2981 ECHO='printf %s\n' 2982else 2983 # Use this function as a fallback that always works. 2984 func_fallback_echo () 2985 { 2986 eval 'cat <<_LTECHO_EOF 2987$1 2988_LTECHO_EOF' 2989 } 2990 ECHO='func_fallback_echo' 2991fi 2992 2993# func_echo_all arg... 2994# Invoke $ECHO with all args, space-separated. 2995func_echo_all () 2996{ 2997 $ECHO "" 2998} 2999 3000case "$ECHO" in 3001 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3002$as_echo "printf" >&6; } ;; 3003 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3004$as_echo "print -r" >&6; } ;; 3005 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3006$as_echo "cat" >&6; } ;; 3007esac 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022DEPDIR="${am__leading_dot}deps" 3023 3024ac_config_commands="$ac_config_commands depfiles" 3025 3026 3027am_make=${MAKE-make} 3028cat > confinc << 'END' 3029am__doit: 3030 @echo this is the am__doit target 3031.PHONY: am__doit 3032END 3033# If we don't find an include directive, just comment out the code. 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3035$as_echo_n "checking for style of include used by $am_make... " >&6; } 3036am__include="#" 3037am__quote= 3038_am_result=none 3039# First try GNU make style include. 3040echo "include confinc" > confmf 3041# Ignore all kinds of additional output from 'make'. 3042case `$am_make -s -f confmf 2> /dev/null` in #( 3043*the\ am__doit\ target*) 3044 am__include=include 3045 am__quote= 3046 _am_result=GNU 3047 ;; 3048esac 3049# Now try BSD make style include. 3050if test "$am__include" = "#"; then 3051 echo '.include "confinc"' > confmf 3052 case `$am_make -s -f confmf 2> /dev/null` in #( 3053 *the\ am__doit\ target*) 3054 am__include=.include 3055 am__quote="\"" 3056 _am_result=BSD 3057 ;; 3058 esac 3059fi 3060 3061 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3063$as_echo "$_am_result" >&6; } 3064rm -f confinc confmf 3065 3066# Check whether --enable-dependency-tracking was given. 3067if test "${enable_dependency_tracking+set}" = set; then : 3068 enableval=$enable_dependency_tracking; 3069fi 3070 3071if test "x$enable_dependency_tracking" != xno; then 3072 am_depcomp="$ac_aux_dir/depcomp" 3073 AMDEPBACKSLASH='\' 3074 am__nodep='_no' 3075fi 3076 if test "x$enable_dependency_tracking" != xno; then 3077 AMDEP_TRUE= 3078 AMDEP_FALSE='#' 3079else 3080 AMDEP_TRUE='#' 3081 AMDEP_FALSE= 3082fi 3083 3084 3085ac_ext=c 3086ac_cpp='$CPP $CPPFLAGS' 3087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3089ac_compiler_gnu=$ac_cv_c_compiler_gnu 3090if test -n "$ac_tool_prefix"; then 3091 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3092set dummy ${ac_tool_prefix}gcc; ac_word=$2 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3094$as_echo_n "checking for $ac_word... " >&6; } 3095if ${ac_cv_prog_CC+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 if test -n "$CC"; then 3099 ac_cv_prog_CC="$CC" # Let the user override the test. 3100else 3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3102for as_dir in $PATH 3103do 3104 IFS=$as_save_IFS 3105 test -z "$as_dir" && as_dir=. 3106 for ac_exec_ext in '' $ac_executable_extensions; do 3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3108 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3110 break 2 3111 fi 3112done 3113 done 3114IFS=$as_save_IFS 3115 3116fi 3117fi 3118CC=$ac_cv_prog_CC 3119if test -n "$CC"; then 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3121$as_echo "$CC" >&6; } 3122else 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3124$as_echo "no" >&6; } 3125fi 3126 3127 3128fi 3129if test -z "$ac_cv_prog_CC"; then 3130 ac_ct_CC=$CC 3131 # Extract the first word of "gcc", so it can be a program name with args. 3132set dummy gcc; ac_word=$2 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3134$as_echo_n "checking for $ac_word... " >&6; } 3135if ${ac_cv_prog_ac_ct_CC+:} false; then : 3136 $as_echo_n "(cached) " >&6 3137else 3138 if test -n "$ac_ct_CC"; then 3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3140else 3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3142for as_dir in $PATH 3143do 3144 IFS=$as_save_IFS 3145 test -z "$as_dir" && as_dir=. 3146 for ac_exec_ext in '' $ac_executable_extensions; do 3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3148 ac_cv_prog_ac_ct_CC="gcc" 3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3150 break 2 3151 fi 3152done 3153 done 3154IFS=$as_save_IFS 3155 3156fi 3157fi 3158ac_ct_CC=$ac_cv_prog_ac_ct_CC 3159if test -n "$ac_ct_CC"; then 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3161$as_echo "$ac_ct_CC" >&6; } 3162else 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164$as_echo "no" >&6; } 3165fi 3166 3167 if test "x$ac_ct_CC" = x; then 3168 CC="" 3169 else 3170 case $cross_compiling:$ac_tool_warned in 3171yes:) 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3174ac_tool_warned=yes ;; 3175esac 3176 CC=$ac_ct_CC 3177 fi 3178else 3179 CC="$ac_cv_prog_CC" 3180fi 3181 3182if test -z "$CC"; then 3183 if test -n "$ac_tool_prefix"; then 3184 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3185set dummy ${ac_tool_prefix}cc; ac_word=$2 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3187$as_echo_n "checking for $ac_word... " >&6; } 3188if ${ac_cv_prog_CC+:} false; then : 3189 $as_echo_n "(cached) " >&6 3190else 3191 if test -n "$CC"; then 3192 ac_cv_prog_CC="$CC" # Let the user override the test. 3193else 3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195for as_dir in $PATH 3196do 3197 IFS=$as_save_IFS 3198 test -z "$as_dir" && as_dir=. 3199 for ac_exec_ext in '' $ac_executable_extensions; do 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3201 ac_cv_prog_CC="${ac_tool_prefix}cc" 3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3203 break 2 3204 fi 3205done 3206 done 3207IFS=$as_save_IFS 3208 3209fi 3210fi 3211CC=$ac_cv_prog_CC 3212if test -n "$CC"; then 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3214$as_echo "$CC" >&6; } 3215else 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3217$as_echo "no" >&6; } 3218fi 3219 3220 3221 fi 3222fi 3223if test -z "$CC"; then 3224 # Extract the first word of "cc", so it can be a program name with args. 3225set dummy cc; ac_word=$2 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3227$as_echo_n "checking for $ac_word... " >&6; } 3228if ${ac_cv_prog_CC+:} false; then : 3229 $as_echo_n "(cached) " >&6 3230else 3231 if test -n "$CC"; then 3232 ac_cv_prog_CC="$CC" # Let the user override the test. 3233else 3234 ac_prog_rejected=no 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3242 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3243 ac_prog_rejected=yes 3244 continue 3245 fi 3246 ac_cv_prog_CC="cc" 3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3248 break 2 3249 fi 3250done 3251 done 3252IFS=$as_save_IFS 3253 3254if test $ac_prog_rejected = yes; then 3255 # We found a bogon in the path, so make sure we never use it. 3256 set dummy $ac_cv_prog_CC 3257 shift 3258 if test $# != 0; then 3259 # We chose a different compiler from the bogus one. 3260 # However, it has the same basename, so the bogon will be chosen 3261 # first if we set CC to just the basename; use the full file name. 3262 shift 3263 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3264 fi 3265fi 3266fi 3267fi 3268CC=$ac_cv_prog_CC 3269if test -n "$CC"; then 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3271$as_echo "$CC" >&6; } 3272else 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3274$as_echo "no" >&6; } 3275fi 3276 3277 3278fi 3279if test -z "$CC"; then 3280 if test -n "$ac_tool_prefix"; then 3281 for ac_prog in cl.exe 3282 do 3283 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3284set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3286$as_echo_n "checking for $ac_word... " >&6; } 3287if ${ac_cv_prog_CC+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 if test -n "$CC"; then 3291 ac_cv_prog_CC="$CC" # Let the user override the test. 3292else 3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3294for as_dir in $PATH 3295do 3296 IFS=$as_save_IFS 3297 test -z "$as_dir" && as_dir=. 3298 for ac_exec_ext in '' $ac_executable_extensions; do 3299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3300 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304done 3305 done 3306IFS=$as_save_IFS 3307 3308fi 3309fi 3310CC=$ac_cv_prog_CC 3311if test -n "$CC"; then 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3313$as_echo "$CC" >&6; } 3314else 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3316$as_echo "no" >&6; } 3317fi 3318 3319 3320 test -n "$CC" && break 3321 done 3322fi 3323if test -z "$CC"; then 3324 ac_ct_CC=$CC 3325 for ac_prog in cl.exe 3326do 3327 # Extract the first word of "$ac_prog", so it can be a program name with args. 3328set dummy $ac_prog; ac_word=$2 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3330$as_echo_n "checking for $ac_word... " >&6; } 3331if ${ac_cv_prog_ac_ct_CC+:} false; then : 3332 $as_echo_n "(cached) " >&6 3333else 3334 if test -n "$ac_ct_CC"; then 3335 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3336else 3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3338for as_dir in $PATH 3339do 3340 IFS=$as_save_IFS 3341 test -z "$as_dir" && as_dir=. 3342 for ac_exec_ext in '' $ac_executable_extensions; do 3343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3344 ac_cv_prog_ac_ct_CC="$ac_prog" 3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3346 break 2 3347 fi 3348done 3349 done 3350IFS=$as_save_IFS 3351 3352fi 3353fi 3354ac_ct_CC=$ac_cv_prog_ac_ct_CC 3355if test -n "$ac_ct_CC"; then 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3357$as_echo "$ac_ct_CC" >&6; } 3358else 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3360$as_echo "no" >&6; } 3361fi 3362 3363 3364 test -n "$ac_ct_CC" && break 3365done 3366 3367 if test "x$ac_ct_CC" = x; then 3368 CC="" 3369 else 3370 case $cross_compiling:$ac_tool_warned in 3371yes:) 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3374ac_tool_warned=yes ;; 3375esac 3376 CC=$ac_ct_CC 3377 fi 3378fi 3379 3380fi 3381 3382 3383test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3385as_fn_error $? "no acceptable C compiler found in \$PATH 3386See \`config.log' for more details" "$LINENO" 5; } 3387 3388# Provide some information about the compiler. 3389$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3390set X $ac_compile 3391ac_compiler=$2 3392for ac_option in --version -v -V -qversion; do 3393 { { ac_try="$ac_compiler $ac_option >&5" 3394case "(($ac_try" in 3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3396 *) ac_try_echo=$ac_try;; 3397esac 3398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3399$as_echo "$ac_try_echo"; } >&5 3400 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3401 ac_status=$? 3402 if test -s conftest.err; then 3403 sed '10a\ 3404... rest of stderr output deleted ... 3405 10q' conftest.err >conftest.er1 3406 cat conftest.er1 >&5 3407 fi 3408 rm -f conftest.er1 conftest.err 3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3410 test $ac_status = 0; } 3411done 3412 3413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414/* end confdefs.h. */ 3415 3416int 3417main () 3418{ 3419 3420 ; 3421 return 0; 3422} 3423_ACEOF 3424ac_clean_files_save=$ac_clean_files 3425ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3426# Try to create an executable without -o first, disregard a.out. 3427# It will help us diagnose broken compilers, and finding out an intuition 3428# of exeext. 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3430$as_echo_n "checking whether the C compiler works... " >&6; } 3431ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3432 3433# The possible output files: 3434ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3435 3436ac_rmfiles= 3437for ac_file in $ac_files 3438do 3439 case $ac_file in 3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3441 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3442 esac 3443done 3444rm -f $ac_rmfiles 3445 3446if { { ac_try="$ac_link_default" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3452$as_echo "$ac_try_echo"; } >&5 3453 (eval "$ac_link_default") 2>&5 3454 ac_status=$? 3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3456 test $ac_status = 0; }; then : 3457 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3458# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3459# in a Makefile. We should not override ac_cv_exeext if it was cached, 3460# so that the user can short-circuit this test for compilers unknown to 3461# Autoconf. 3462for ac_file in $ac_files '' 3463do 3464 test -f "$ac_file" || continue 3465 case $ac_file in 3466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3467 ;; 3468 [ab].out ) 3469 # We found the default executable, but exeext='' is most 3470 # certainly right. 3471 break;; 3472 *.* ) 3473 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3474 then :; else 3475 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3476 fi 3477 # We set ac_cv_exeext here because the later test for it is not 3478 # safe: cross compilers may not add the suffix if given an `-o' 3479 # argument, so we may need to know it at that point already. 3480 # Even if this section looks crufty: it has the advantage of 3481 # actually working. 3482 break;; 3483 * ) 3484 break;; 3485 esac 3486done 3487test "$ac_cv_exeext" = no && ac_cv_exeext= 3488 3489else 3490 ac_file='' 3491fi 3492if test -z "$ac_file"; then : 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3494$as_echo "no" >&6; } 3495$as_echo "$as_me: failed program was:" >&5 3496sed 's/^/| /' conftest.$ac_ext >&5 3497 3498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3500as_fn_error 77 "C compiler cannot create executables 3501See \`config.log' for more details" "$LINENO" 5; } 3502else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3504$as_echo "yes" >&6; } 3505fi 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3507$as_echo_n "checking for C compiler default output file name... " >&6; } 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3509$as_echo "$ac_file" >&6; } 3510ac_exeext=$ac_cv_exeext 3511 3512rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3513ac_clean_files=$ac_clean_files_save 3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3515$as_echo_n "checking for suffix of executables... " >&6; } 3516if { { ac_try="$ac_link" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3522$as_echo "$ac_try_echo"; } >&5 3523 (eval "$ac_link") 2>&5 3524 ac_status=$? 3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3526 test $ac_status = 0; }; then : 3527 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3528# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3529# work properly (i.e., refer to `conftest.exe'), while it won't with 3530# `rm'. 3531for ac_file in conftest.exe conftest conftest.*; do 3532 test -f "$ac_file" || continue 3533 case $ac_file in 3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3536 break;; 3537 * ) break;; 3538 esac 3539done 3540else 3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3542$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3543as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3544See \`config.log' for more details" "$LINENO" 5; } 3545fi 3546rm -f conftest conftest$ac_cv_exeext 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3548$as_echo "$ac_cv_exeext" >&6; } 3549 3550rm -f conftest.$ac_ext 3551EXEEXT=$ac_cv_exeext 3552ac_exeext=$EXEEXT 3553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3554/* end confdefs.h. */ 3555#include <stdio.h> 3556int 3557main () 3558{ 3559FILE *f = fopen ("conftest.out", "w"); 3560 return ferror (f) || fclose (f) != 0; 3561 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566ac_clean_files="$ac_clean_files conftest.out" 3567# Check that the compiler produces executables we can run. If not, either 3568# the compiler is broken, or we cross compile. 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3570$as_echo_n "checking whether we are cross compiling... " >&6; } 3571if test "$cross_compiling" != yes; then 3572 { { ac_try="$ac_link" 3573case "(($ac_try" in 3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3575 *) ac_try_echo=$ac_try;; 3576esac 3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3578$as_echo "$ac_try_echo"; } >&5 3579 (eval "$ac_link") 2>&5 3580 ac_status=$? 3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3582 test $ac_status = 0; } 3583 if { ac_try='./conftest$ac_cv_exeext' 3584 { { case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3589$as_echo "$ac_try_echo"; } >&5 3590 (eval "$ac_try") 2>&5 3591 ac_status=$? 3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3593 test $ac_status = 0; }; }; then 3594 cross_compiling=no 3595 else 3596 if test "$cross_compiling" = maybe; then 3597 cross_compiling=yes 3598 else 3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3601as_fn_error $? "cannot run C compiled programs. 3602If you meant to cross compile, use \`--host'. 3603See \`config.log' for more details" "$LINENO" 5; } 3604 fi 3605 fi 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3608$as_echo "$cross_compiling" >&6; } 3609 3610rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3611ac_clean_files=$ac_clean_files_save 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3613$as_echo_n "checking for suffix of object files... " >&6; } 3614if ${ac_cv_objext+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618/* end confdefs.h. */ 3619 3620int 3621main () 3622{ 3623 3624 ; 3625 return 0; 3626} 3627_ACEOF 3628rm -f conftest.o conftest.obj 3629if { { ac_try="$ac_compile" 3630case "(($ac_try" in 3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3632 *) ac_try_echo=$ac_try;; 3633esac 3634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3635$as_echo "$ac_try_echo"; } >&5 3636 (eval "$ac_compile") 2>&5 3637 ac_status=$? 3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3639 test $ac_status = 0; }; then : 3640 for ac_file in conftest.o conftest.obj conftest.*; do 3641 test -f "$ac_file" || continue; 3642 case $ac_file in 3643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3645 break;; 3646 esac 3647done 3648else 3649 $as_echo "$as_me: failed program was:" >&5 3650sed 's/^/| /' conftest.$ac_ext >&5 3651 3652{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3654as_fn_error $? "cannot compute suffix of object files: cannot compile 3655See \`config.log' for more details" "$LINENO" 5; } 3656fi 3657rm -f conftest.$ac_cv_objext conftest.$ac_ext 3658fi 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3660$as_echo "$ac_cv_objext" >&6; } 3661OBJEXT=$ac_cv_objext 3662ac_objext=$OBJEXT 3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3664$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3665if ${ac_cv_c_compiler_gnu+:} false; then : 3666 $as_echo_n "(cached) " >&6 3667else 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669/* end confdefs.h. */ 3670 3671int 3672main () 3673{ 3674#ifndef __GNUC__ 3675 choke me 3676#endif 3677 3678 ; 3679 return 0; 3680} 3681_ACEOF 3682if ac_fn_c_try_compile "$LINENO"; then : 3683 ac_compiler_gnu=yes 3684else 3685 ac_compiler_gnu=no 3686fi 3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3688ac_cv_c_compiler_gnu=$ac_compiler_gnu 3689 3690fi 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3692$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3693if test $ac_compiler_gnu = yes; then 3694 GCC=yes 3695else 3696 GCC= 3697fi 3698ac_test_CFLAGS=${CFLAGS+set} 3699ac_save_CFLAGS=$CFLAGS 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3701$as_echo_n "checking whether $CC accepts -g... " >&6; } 3702if ${ac_cv_prog_cc_g+:} false; then : 3703 $as_echo_n "(cached) " >&6 3704else 3705 ac_save_c_werror_flag=$ac_c_werror_flag 3706 ac_c_werror_flag=yes 3707 ac_cv_prog_cc_g=no 3708 CFLAGS="-g" 3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3710/* end confdefs.h. */ 3711 3712int 3713main () 3714{ 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO"; then : 3721 ac_cv_prog_cc_g=yes 3722else 3723 CFLAGS="" 3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726 3727int 3728main () 3729{ 3730 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735if ac_fn_c_try_compile "$LINENO"; then : 3736 3737else 3738 ac_c_werror_flag=$ac_save_c_werror_flag 3739 CFLAGS="-g" 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742 3743int 3744main () 3745{ 3746 3747 ; 3748 return 0; 3749} 3750_ACEOF 3751if ac_fn_c_try_compile "$LINENO"; then : 3752 ac_cv_prog_cc_g=yes 3753fi 3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3755fi 3756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3757fi 3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3759 ac_c_werror_flag=$ac_save_c_werror_flag 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3762$as_echo "$ac_cv_prog_cc_g" >&6; } 3763if test "$ac_test_CFLAGS" = set; then 3764 CFLAGS=$ac_save_CFLAGS 3765elif test $ac_cv_prog_cc_g = yes; then 3766 if test "$GCC" = yes; then 3767 CFLAGS="-g -O2" 3768 else 3769 CFLAGS="-g" 3770 fi 3771else 3772 if test "$GCC" = yes; then 3773 CFLAGS="-O2" 3774 else 3775 CFLAGS= 3776 fi 3777fi 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3779$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3780if ${ac_cv_prog_cc_c89+:} false; then : 3781 $as_echo_n "(cached) " >&6 3782else 3783 ac_cv_prog_cc_c89=no 3784ac_save_CC=$CC 3785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786/* end confdefs.h. */ 3787#include <stdarg.h> 3788#include <stdio.h> 3789struct stat; 3790/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3791struct buf { int x; }; 3792FILE * (*rcsopen) (struct buf *, struct stat *, int); 3793static char *e (p, i) 3794 char **p; 3795 int i; 3796{ 3797 return p[i]; 3798} 3799static char *f (char * (*g) (char **, int), char **p, ...) 3800{ 3801 char *s; 3802 va_list v; 3803 va_start (v,p); 3804 s = g (p, va_arg (v,int)); 3805 va_end (v); 3806 return s; 3807} 3808 3809/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3810 function prototypes and stuff, but not '\xHH' hex character constants. 3811 These don't provoke an error unfortunately, instead are silently treated 3812 as 'x'. The following induces an error, until -std is added to get 3813 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3814 array size at least. It's necessary to write '\x00'==0 to get something 3815 that's true only with -std. */ 3816int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3817 3818/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3819 inside strings and character constants. */ 3820#define FOO(x) 'x' 3821int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3822 3823int test (int i, double x); 3824struct s1 {int (*f) (int a);}; 3825struct s2 {int (*f) (double a);}; 3826int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3827int argc; 3828char **argv; 3829int 3830main () 3831{ 3832return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3838 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3839do 3840 CC="$ac_save_CC $ac_arg" 3841 if ac_fn_c_try_compile "$LINENO"; then : 3842 ac_cv_prog_cc_c89=$ac_arg 3843fi 3844rm -f core conftest.err conftest.$ac_objext 3845 test "x$ac_cv_prog_cc_c89" != "xno" && break 3846done 3847rm -f conftest.$ac_ext 3848CC=$ac_save_CC 3849 3850fi 3851# AC_CACHE_VAL 3852case "x$ac_cv_prog_cc_c89" in 3853 x) 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3855$as_echo "none needed" >&6; } ;; 3856 xno) 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3858$as_echo "unsupported" >&6; } ;; 3859 *) 3860 CC="$CC $ac_cv_prog_cc_c89" 3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3862$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3863esac 3864if test "x$ac_cv_prog_cc_c89" != xno; then : 3865 3866fi 3867 3868ac_ext=c 3869ac_cpp='$CPP $CPPFLAGS' 3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3872ac_compiler_gnu=$ac_cv_c_compiler_gnu 3873 3874depcc="$CC" am_compiler_list= 3875 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3877$as_echo_n "checking dependency style of $depcc... " >&6; } 3878if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3879 $as_echo_n "(cached) " >&6 3880else 3881 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3882 # We make a subdir and do the tests there. Otherwise we can end up 3883 # making bogus files that we don't know about and never remove. For 3884 # instance it was reported that on HP-UX the gcc test will end up 3885 # making a dummy file named 'D' -- because '-MD' means "put the output 3886 # in D". 3887 rm -rf conftest.dir 3888 mkdir conftest.dir 3889 # Copy depcomp to subdir because otherwise we won't find it if we're 3890 # using a relative directory. 3891 cp "$am_depcomp" conftest.dir 3892 cd conftest.dir 3893 # We will build objects and dependencies in a subdirectory because 3894 # it helps to detect inapplicable dependency modes. For instance 3895 # both Tru64's cc and ICC support -MD to output dependencies as a 3896 # side effect of compilation, but ICC will put the dependencies in 3897 # the current directory while Tru64 will put them in the object 3898 # directory. 3899 mkdir sub 3900 3901 am_cv_CC_dependencies_compiler_type=none 3902 if test "$am_compiler_list" = ""; then 3903 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3904 fi 3905 am__universal=false 3906 case " $depcc " in #( 3907 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3908 esac 3909 3910 for depmode in $am_compiler_list; do 3911 # Setup a source with many dependencies, because some compilers 3912 # like to wrap large dependency lists on column 80 (with \), and 3913 # we should not choose a depcomp mode which is confused by this. 3914 # 3915 # We need to recreate these files for each test, as the compiler may 3916 # overwrite some of them when testing with obscure command lines. 3917 # This happens at least with the AIX C compiler. 3918 : > sub/conftest.c 3919 for i in 1 2 3 4 5 6; do 3920 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3921 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3922 # Solaris 10 /bin/sh. 3923 echo '/* dummy */' > sub/conftst$i.h 3924 done 3925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3926 3927 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3928 # mode. It turns out that the SunPro C++ compiler does not properly 3929 # handle '-M -o', and we need to detect this. Also, some Intel 3930 # versions had trouble with output in subdirs. 3931 am__obj=sub/conftest.${OBJEXT-o} 3932 am__minus_obj="-o $am__obj" 3933 case $depmode in 3934 gcc) 3935 # This depmode causes a compiler race in universal mode. 3936 test "$am__universal" = false || continue 3937 ;; 3938 nosideeffect) 3939 # After this tag, mechanisms are not by side-effect, so they'll 3940 # only be used when explicitly requested. 3941 if test "x$enable_dependency_tracking" = xyes; then 3942 continue 3943 else 3944 break 3945 fi 3946 ;; 3947 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3948 # This compiler won't grok '-c -o', but also, the minuso test has 3949 # not run yet. These depmodes are late enough in the game, and 3950 # so weak that their functioning should not be impacted. 3951 am__obj=conftest.${OBJEXT-o} 3952 am__minus_obj= 3953 ;; 3954 none) break ;; 3955 esac 3956 if depmode=$depmode \ 3957 source=sub/conftest.c object=$am__obj \ 3958 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3959 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3960 >/dev/null 2>conftest.err && 3961 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3962 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3963 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3964 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3965 # icc doesn't choke on unknown options, it will just issue warnings 3966 # or remarks (even with -Werror). So we grep stderr for any message 3967 # that says an option was ignored or not supported. 3968 # When given -MP, icc 7.0 and 7.1 complain thusly: 3969 # icc: Command line warning: ignoring option '-M'; no argument required 3970 # The diagnosis changed in icc 8.0: 3971 # icc: Command line remark: option '-MP' not supported 3972 if (grep 'ignoring option' conftest.err || 3973 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3974 am_cv_CC_dependencies_compiler_type=$depmode 3975 break 3976 fi 3977 fi 3978 done 3979 3980 cd .. 3981 rm -rf conftest.dir 3982else 3983 am_cv_CC_dependencies_compiler_type=none 3984fi 3985 3986fi 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3988$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3989CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3990 3991 if 3992 test "x$enable_dependency_tracking" != xno \ 3993 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3994 am__fastdepCC_TRUE= 3995 am__fastdepCC_FALSE='#' 3996else 3997 am__fastdepCC_TRUE='#' 3998 am__fastdepCC_FALSE= 3999fi 4000 4001 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4003$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4004if ${ac_cv_path_SED+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006else 4007 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4008 for ac_i in 1 2 3 4 5 6 7; do 4009 ac_script="$ac_script$as_nl$ac_script" 4010 done 4011 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4012 { ac_script=; unset ac_script;} 4013 if test -z "$SED"; then 4014 ac_path_SED_found=false 4015 # Loop through the user's path and test for each of PROGNAME-LIST 4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017for as_dir in $PATH 4018do 4019 IFS=$as_save_IFS 4020 test -z "$as_dir" && as_dir=. 4021 for ac_prog in sed gsed; do 4022 for ac_exec_ext in '' $ac_executable_extensions; do 4023 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4024 as_fn_executable_p "$ac_path_SED" || continue 4025# Check for GNU ac_path_SED and select it if it is found. 4026 # Check for GNU $ac_path_SED 4027case `"$ac_path_SED" --version 2>&1` in 4028*GNU*) 4029 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4030*) 4031 ac_count=0 4032 $as_echo_n 0123456789 >"conftest.in" 4033 while : 4034 do 4035 cat "conftest.in" "conftest.in" >"conftest.tmp" 4036 mv "conftest.tmp" "conftest.in" 4037 cp "conftest.in" "conftest.nl" 4038 $as_echo '' >> "conftest.nl" 4039 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4041 as_fn_arith $ac_count + 1 && ac_count=$as_val 4042 if test $ac_count -gt ${ac_path_SED_max-0}; then 4043 # Best one so far, save it but keep looking for a better one 4044 ac_cv_path_SED="$ac_path_SED" 4045 ac_path_SED_max=$ac_count 4046 fi 4047 # 10*(2^10) chars as input seems more than enough 4048 test $ac_count -gt 10 && break 4049 done 4050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4051esac 4052 4053 $ac_path_SED_found && break 3 4054 done 4055 done 4056 done 4057IFS=$as_save_IFS 4058 if test -z "$ac_cv_path_SED"; then 4059 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4060 fi 4061else 4062 ac_cv_path_SED=$SED 4063fi 4064 4065fi 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4067$as_echo "$ac_cv_path_SED" >&6; } 4068 SED="$ac_cv_path_SED" 4069 rm -f conftest.sed 4070 4071test -z "$SED" && SED=sed 4072Xsed="$SED -e 1s/^X//" 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4085$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4086if ${ac_cv_path_GREP+:} false; then : 4087 $as_echo_n "(cached) " >&6 4088else 4089 if test -z "$GREP"; then 4090 ac_path_GREP_found=false 4091 # Loop through the user's path and test for each of PROGNAME-LIST 4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4094do 4095 IFS=$as_save_IFS 4096 test -z "$as_dir" && as_dir=. 4097 for ac_prog in grep ggrep; do 4098 for ac_exec_ext in '' $ac_executable_extensions; do 4099 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4100 as_fn_executable_p "$ac_path_GREP" || continue 4101# Check for GNU ac_path_GREP and select it if it is found. 4102 # Check for GNU $ac_path_GREP 4103case `"$ac_path_GREP" --version 2>&1` in 4104*GNU*) 4105 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4106*) 4107 ac_count=0 4108 $as_echo_n 0123456789 >"conftest.in" 4109 while : 4110 do 4111 cat "conftest.in" "conftest.in" >"conftest.tmp" 4112 mv "conftest.tmp" "conftest.in" 4113 cp "conftest.in" "conftest.nl" 4114 $as_echo 'GREP' >> "conftest.nl" 4115 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4117 as_fn_arith $ac_count + 1 && ac_count=$as_val 4118 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4119 # Best one so far, save it but keep looking for a better one 4120 ac_cv_path_GREP="$ac_path_GREP" 4121 ac_path_GREP_max=$ac_count 4122 fi 4123 # 10*(2^10) chars as input seems more than enough 4124 test $ac_count -gt 10 && break 4125 done 4126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4127esac 4128 4129 $ac_path_GREP_found && break 3 4130 done 4131 done 4132 done 4133IFS=$as_save_IFS 4134 if test -z "$ac_cv_path_GREP"; then 4135 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4136 fi 4137else 4138 ac_cv_path_GREP=$GREP 4139fi 4140 4141fi 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4143$as_echo "$ac_cv_path_GREP" >&6; } 4144 GREP="$ac_cv_path_GREP" 4145 4146 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4148$as_echo_n "checking for egrep... " >&6; } 4149if ${ac_cv_path_EGREP+:} false; then : 4150 $as_echo_n "(cached) " >&6 4151else 4152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4153 then ac_cv_path_EGREP="$GREP -E" 4154 else 4155 if test -z "$EGREP"; then 4156 ac_path_EGREP_found=false 4157 # Loop through the user's path and test for each of PROGNAME-LIST 4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4159for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4160do 4161 IFS=$as_save_IFS 4162 test -z "$as_dir" && as_dir=. 4163 for ac_prog in egrep; do 4164 for ac_exec_ext in '' $ac_executable_extensions; do 4165 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4166 as_fn_executable_p "$ac_path_EGREP" || continue 4167# Check for GNU ac_path_EGREP and select it if it is found. 4168 # Check for GNU $ac_path_EGREP 4169case `"$ac_path_EGREP" --version 2>&1` in 4170*GNU*) 4171 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4172*) 4173 ac_count=0 4174 $as_echo_n 0123456789 >"conftest.in" 4175 while : 4176 do 4177 cat "conftest.in" "conftest.in" >"conftest.tmp" 4178 mv "conftest.tmp" "conftest.in" 4179 cp "conftest.in" "conftest.nl" 4180 $as_echo 'EGREP' >> "conftest.nl" 4181 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4183 as_fn_arith $ac_count + 1 && ac_count=$as_val 4184 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4185 # Best one so far, save it but keep looking for a better one 4186 ac_cv_path_EGREP="$ac_path_EGREP" 4187 ac_path_EGREP_max=$ac_count 4188 fi 4189 # 10*(2^10) chars as input seems more than enough 4190 test $ac_count -gt 10 && break 4191 done 4192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4193esac 4194 4195 $ac_path_EGREP_found && break 3 4196 done 4197 done 4198 done 4199IFS=$as_save_IFS 4200 if test -z "$ac_cv_path_EGREP"; then 4201 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4202 fi 4203else 4204 ac_cv_path_EGREP=$EGREP 4205fi 4206 4207 fi 4208fi 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4210$as_echo "$ac_cv_path_EGREP" >&6; } 4211 EGREP="$ac_cv_path_EGREP" 4212 4213 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4215$as_echo_n "checking for fgrep... " >&6; } 4216if ${ac_cv_path_FGREP+:} false; then : 4217 $as_echo_n "(cached) " >&6 4218else 4219 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4220 then ac_cv_path_FGREP="$GREP -F" 4221 else 4222 if test -z "$FGREP"; then 4223 ac_path_FGREP_found=false 4224 # Loop through the user's path and test for each of PROGNAME-LIST 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4227do 4228 IFS=$as_save_IFS 4229 test -z "$as_dir" && as_dir=. 4230 for ac_prog in fgrep; do 4231 for ac_exec_ext in '' $ac_executable_extensions; do 4232 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4233 as_fn_executable_p "$ac_path_FGREP" || continue 4234# Check for GNU ac_path_FGREP and select it if it is found. 4235 # Check for GNU $ac_path_FGREP 4236case `"$ac_path_FGREP" --version 2>&1` in 4237*GNU*) 4238 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4239*) 4240 ac_count=0 4241 $as_echo_n 0123456789 >"conftest.in" 4242 while : 4243 do 4244 cat "conftest.in" "conftest.in" >"conftest.tmp" 4245 mv "conftest.tmp" "conftest.in" 4246 cp "conftest.in" "conftest.nl" 4247 $as_echo 'FGREP' >> "conftest.nl" 4248 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4250 as_fn_arith $ac_count + 1 && ac_count=$as_val 4251 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4252 # Best one so far, save it but keep looking for a better one 4253 ac_cv_path_FGREP="$ac_path_FGREP" 4254 ac_path_FGREP_max=$ac_count 4255 fi 4256 # 10*(2^10) chars as input seems more than enough 4257 test $ac_count -gt 10 && break 4258 done 4259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4260esac 4261 4262 $ac_path_FGREP_found && break 3 4263 done 4264 done 4265 done 4266IFS=$as_save_IFS 4267 if test -z "$ac_cv_path_FGREP"; then 4268 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4269 fi 4270else 4271 ac_cv_path_FGREP=$FGREP 4272fi 4273 4274 fi 4275fi 4276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4277$as_echo "$ac_cv_path_FGREP" >&6; } 4278 FGREP="$ac_cv_path_FGREP" 4279 4280 4281test -z "$GREP" && GREP=grep 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301# Check whether --with-gnu-ld was given. 4302if test "${with_gnu_ld+set}" = set; then : 4303 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4304else 4305 with_gnu_ld=no 4306fi 4307 4308ac_prog=ld 4309if test "$GCC" = yes; then 4310 # Check if gcc -print-prog-name=ld gives a path. 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4312$as_echo_n "checking for ld used by $CC... " >&6; } 4313 case $host in 4314 *-*-mingw*) 4315 # gcc leaves a trailing carriage return which upsets mingw 4316 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4317 *) 4318 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4319 esac 4320 case $ac_prog in 4321 # Accept absolute paths. 4322 [\\/]* | ?:[\\/]*) 4323 re_direlt='/[^/][^/]*/\.\./' 4324 # Canonicalize the pathname of ld 4325 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4326 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4327 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4328 done 4329 test -z "$LD" && LD="$ac_prog" 4330 ;; 4331 "") 4332 # If it fails, then pretend we aren't using GCC. 4333 ac_prog=ld 4334 ;; 4335 *) 4336 # If it is relative, then search for the first ld in PATH. 4337 with_gnu_ld=unknown 4338 ;; 4339 esac 4340elif test "$with_gnu_ld" = yes; then 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4342$as_echo_n "checking for GNU ld... " >&6; } 4343else 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4345$as_echo_n "checking for non-GNU ld... " >&6; } 4346fi 4347if ${lt_cv_path_LD+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 if test -z "$LD"; then 4351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4352 for ac_dir in $PATH; do 4353 IFS="$lt_save_ifs" 4354 test -z "$ac_dir" && ac_dir=. 4355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4356 lt_cv_path_LD="$ac_dir/$ac_prog" 4357 # Check to see if the program is GNU ld. I'd rather use --version, 4358 # but apparently some variants of GNU ld only accept -v. 4359 # Break only if it was the GNU/non-GNU ld that we prefer. 4360 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4361 *GNU* | *'with BFD'*) 4362 test "$with_gnu_ld" != no && break 4363 ;; 4364 *) 4365 test "$with_gnu_ld" != yes && break 4366 ;; 4367 esac 4368 fi 4369 done 4370 IFS="$lt_save_ifs" 4371else 4372 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4373fi 4374fi 4375 4376LD="$lt_cv_path_LD" 4377if test -n "$LD"; then 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4379$as_echo "$LD" >&6; } 4380else 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4382$as_echo "no" >&6; } 4383fi 4384test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4386$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4387if ${lt_cv_prog_gnu_ld+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4391case `$LD -v 2>&1 </dev/null` in 4392*GNU* | *'with BFD'*) 4393 lt_cv_prog_gnu_ld=yes 4394 ;; 4395*) 4396 lt_cv_prog_gnu_ld=no 4397 ;; 4398esac 4399fi 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4401$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4402with_gnu_ld=$lt_cv_prog_gnu_ld 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4413$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4414if ${lt_cv_path_NM+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 if test -n "$NM"; then 4418 # Let the user override the test. 4419 lt_cv_path_NM="$NM" 4420else 4421 lt_nm_to_check="${ac_tool_prefix}nm" 4422 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4423 lt_nm_to_check="$lt_nm_to_check nm" 4424 fi 4425 for lt_tmp_nm in $lt_nm_to_check; do 4426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4427 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4428 IFS="$lt_save_ifs" 4429 test -z "$ac_dir" && ac_dir=. 4430 tmp_nm="$ac_dir/$lt_tmp_nm" 4431 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4432 # Check to see if the nm accepts a BSD-compat flag. 4433 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4434 # nm: unknown option "B" ignored 4435 # Tru64's nm complains that /dev/null is an invalid object file 4436 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4437 */dev/null* | *'Invalid file or object type'*) 4438 lt_cv_path_NM="$tmp_nm -B" 4439 break 4440 ;; 4441 *) 4442 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4443 */dev/null*) 4444 lt_cv_path_NM="$tmp_nm -p" 4445 break 4446 ;; 4447 *) 4448 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4449 continue # so that we can try to find one that supports BSD flags 4450 ;; 4451 esac 4452 ;; 4453 esac 4454 fi 4455 done 4456 IFS="$lt_save_ifs" 4457 done 4458 : ${lt_cv_path_NM=no} 4459fi 4460fi 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4462$as_echo "$lt_cv_path_NM" >&6; } 4463if test "$lt_cv_path_NM" != "no"; then 4464 NM="$lt_cv_path_NM" 4465else 4466 # Didn't find any BSD compatible name lister, look for dumpbin. 4467 if test -n "$DUMPBIN"; then : 4468 # Let the user override the test. 4469 else 4470 if test -n "$ac_tool_prefix"; then 4471 for ac_prog in dumpbin "link -dump" 4472 do 4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4474set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4476$as_echo_n "checking for $ac_word... " >&6; } 4477if ${ac_cv_prog_DUMPBIN+:} false; then : 4478 $as_echo_n "(cached) " >&6 4479else 4480 if test -n "$DUMPBIN"; then 4481 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4482else 4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4484for as_dir in $PATH 4485do 4486 IFS=$as_save_IFS 4487 test -z "$as_dir" && as_dir=. 4488 for ac_exec_ext in '' $ac_executable_extensions; do 4489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4490 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4492 break 2 4493 fi 4494done 4495 done 4496IFS=$as_save_IFS 4497 4498fi 4499fi 4500DUMPBIN=$ac_cv_prog_DUMPBIN 4501if test -n "$DUMPBIN"; then 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4503$as_echo "$DUMPBIN" >&6; } 4504else 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4506$as_echo "no" >&6; } 4507fi 4508 4509 4510 test -n "$DUMPBIN" && break 4511 done 4512fi 4513if test -z "$DUMPBIN"; then 4514 ac_ct_DUMPBIN=$DUMPBIN 4515 for ac_prog in dumpbin "link -dump" 4516do 4517 # Extract the first word of "$ac_prog", so it can be a program name with args. 4518set dummy $ac_prog; ac_word=$2 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4520$as_echo_n "checking for $ac_word... " >&6; } 4521if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 if test -n "$ac_ct_DUMPBIN"; then 4525 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4526else 4527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4528for as_dir in $PATH 4529do 4530 IFS=$as_save_IFS 4531 test -z "$as_dir" && as_dir=. 4532 for ac_exec_ext in '' $ac_executable_extensions; do 4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4534 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4536 break 2 4537 fi 4538done 4539 done 4540IFS=$as_save_IFS 4541 4542fi 4543fi 4544ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4545if test -n "$ac_ct_DUMPBIN"; then 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4547$as_echo "$ac_ct_DUMPBIN" >&6; } 4548else 4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4550$as_echo "no" >&6; } 4551fi 4552 4553 4554 test -n "$ac_ct_DUMPBIN" && break 4555done 4556 4557 if test "x$ac_ct_DUMPBIN" = x; then 4558 DUMPBIN=":" 4559 else 4560 case $cross_compiling:$ac_tool_warned in 4561yes:) 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4564ac_tool_warned=yes ;; 4565esac 4566 DUMPBIN=$ac_ct_DUMPBIN 4567 fi 4568fi 4569 4570 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4571 *COFF*) 4572 DUMPBIN="$DUMPBIN -symbols" 4573 ;; 4574 *) 4575 DUMPBIN=: 4576 ;; 4577 esac 4578 fi 4579 4580 if test "$DUMPBIN" != ":"; then 4581 NM="$DUMPBIN" 4582 fi 4583fi 4584test -z "$NM" && NM=nm 4585 4586 4587 4588 4589 4590 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4592$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4593if ${lt_cv_nm_interface+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 lt_cv_nm_interface="BSD nm" 4597 echo "int some_variable = 0;" > conftest.$ac_ext 4598 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4599 (eval "$ac_compile" 2>conftest.err) 4600 cat conftest.err >&5 4601 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4602 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4603 cat conftest.err >&5 4604 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4605 cat conftest.out >&5 4606 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4607 lt_cv_nm_interface="MS dumpbin" 4608 fi 4609 rm -f conftest* 4610fi 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4612$as_echo "$lt_cv_nm_interface" >&6; } 4613 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4615$as_echo_n "checking whether ln -s works... " >&6; } 4616LN_S=$as_ln_s 4617if test "$LN_S" = "ln -s"; then 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4619$as_echo "yes" >&6; } 4620else 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4622$as_echo "no, using $LN_S" >&6; } 4623fi 4624 4625# find the maximum length of command line arguments 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4627$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4628if ${lt_cv_sys_max_cmd_len+:} false; then : 4629 $as_echo_n "(cached) " >&6 4630else 4631 i=0 4632 teststring="ABCD" 4633 4634 case $build_os in 4635 msdosdjgpp*) 4636 # On DJGPP, this test can blow up pretty badly due to problems in libc 4637 # (any single argument exceeding 2000 bytes causes a buffer overrun 4638 # during glob expansion). Even if it were fixed, the result of this 4639 # check would be larger than it should be. 4640 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4641 ;; 4642 4643 gnu*) 4644 # Under GNU Hurd, this test is not required because there is 4645 # no limit to the length of command line arguments. 4646 # Libtool will interpret -1 as no limit whatsoever 4647 lt_cv_sys_max_cmd_len=-1; 4648 ;; 4649 4650 cygwin* | mingw* | cegcc*) 4651 # On Win9x/ME, this test blows up -- it succeeds, but takes 4652 # about 5 minutes as the teststring grows exponentially. 4653 # Worse, since 9x/ME are not pre-emptively multitasking, 4654 # you end up with a "frozen" computer, even though with patience 4655 # the test eventually succeeds (with a max line length of 256k). 4656 # Instead, let's just punt: use the minimum linelength reported by 4657 # all of the supported platforms: 8192 (on NT/2K/XP). 4658 lt_cv_sys_max_cmd_len=8192; 4659 ;; 4660 4661 mint*) 4662 # On MiNT this can take a long time and run out of memory. 4663 lt_cv_sys_max_cmd_len=8192; 4664 ;; 4665 4666 amigaos*) 4667 # On AmigaOS with pdksh, this test takes hours, literally. 4668 # So we just punt and use a minimum line length of 8192. 4669 lt_cv_sys_max_cmd_len=8192; 4670 ;; 4671 4672 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4673 # This has been around since 386BSD, at least. Likely further. 4674 if test -x /sbin/sysctl; then 4675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4676 elif test -x /usr/sbin/sysctl; then 4677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4678 else 4679 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4680 fi 4681 # And add a safety zone 4682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4683 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4684 ;; 4685 4686 interix*) 4687 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4688 lt_cv_sys_max_cmd_len=196608 4689 ;; 4690 4691 os2*) 4692 # The test takes a long time on OS/2. 4693 lt_cv_sys_max_cmd_len=8192 4694 ;; 4695 4696 osf*) 4697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4699 # nice to cause kernel panics so lets avoid the loop below. 4700 # First set a reasonable default. 4701 lt_cv_sys_max_cmd_len=16384 4702 # 4703 if test -x /sbin/sysconfig; then 4704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4705 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4706 esac 4707 fi 4708 ;; 4709 sco3.2v5*) 4710 lt_cv_sys_max_cmd_len=102400 4711 ;; 4712 sysv5* | sco5v6* | sysv4.2uw2*) 4713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4714 if test -n "$kargmax"; then 4715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4716 else 4717 lt_cv_sys_max_cmd_len=32768 4718 fi 4719 ;; 4720 *) 4721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4722 if test -n "$lt_cv_sys_max_cmd_len"; then 4723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4725 else 4726 # Make teststring a little bigger before we do anything with it. 4727 # a 1K string should be a reasonable start. 4728 for i in 1 2 3 4 5 6 7 8 ; do 4729 teststring=$teststring$teststring 4730 done 4731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4732 # If test is not a shell built-in, we'll probably end up computing a 4733 # maximum length that is only half of the actual maximum length, but 4734 # we can't tell. 4735 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4736 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4737 test $i != 17 # 1/2 MB should be enough 4738 do 4739 i=`expr $i + 1` 4740 teststring=$teststring$teststring 4741 done 4742 # Only check the string length outside the loop. 4743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4744 teststring= 4745 # Add a significant safety factor because C++ compilers can tack on 4746 # massive amounts of additional arguments before passing them to the 4747 # linker. It appears as though 1/2 is a usable value. 4748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4749 fi 4750 ;; 4751 esac 4752 4753fi 4754 4755if test -n $lt_cv_sys_max_cmd_len ; then 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4757$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4758else 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4760$as_echo "none" >&6; } 4761fi 4762max_cmd_len=$lt_cv_sys_max_cmd_len 4763 4764 4765 4766 4767 4768 4769: ${CP="cp -f"} 4770: ${MV="mv -f"} 4771: ${RM="rm -f"} 4772 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4774$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4775# Try some XSI features 4776xsi_shell=no 4777( _lt_dummy="a/b/c" 4778 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4779 = c,a/b,b/c, \ 4780 && eval 'test $(( 1 + 1 )) -eq 2 \ 4781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4782 && xsi_shell=yes 4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4784$as_echo "$xsi_shell" >&6; } 4785 4786 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4788$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4789lt_shell_append=no 4790( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4791 >/dev/null 2>&1 \ 4792 && lt_shell_append=yes 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4794$as_echo "$lt_shell_append" >&6; } 4795 4796 4797if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4798 lt_unset=unset 4799else 4800 lt_unset=false 4801fi 4802 4803 4804 4805 4806 4807# test EBCDIC or ASCII 4808case `echo X|tr X '\101'` in 4809 A) # ASCII based system 4810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4811 lt_SP2NL='tr \040 \012' 4812 lt_NL2SP='tr \015\012 \040\040' 4813 ;; 4814 *) # EBCDIC based system 4815 lt_SP2NL='tr \100 \n' 4816 lt_NL2SP='tr \r\n \100\100' 4817 ;; 4818esac 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4829$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4830if ${lt_cv_to_host_file_cmd+:} false; then : 4831 $as_echo_n "(cached) " >&6 4832else 4833 case $host in 4834 *-*-mingw* ) 4835 case $build in 4836 *-*-mingw* ) # actually msys 4837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4838 ;; 4839 *-*-cygwin* ) 4840 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4841 ;; 4842 * ) # otherwise, assume *nix 4843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4844 ;; 4845 esac 4846 ;; 4847 *-*-cygwin* ) 4848 case $build in 4849 *-*-mingw* ) # actually msys 4850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4851 ;; 4852 *-*-cygwin* ) 4853 lt_cv_to_host_file_cmd=func_convert_file_noop 4854 ;; 4855 * ) # otherwise, assume *nix 4856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4857 ;; 4858 esac 4859 ;; 4860 * ) # unhandled hosts (and "normal" native builds) 4861 lt_cv_to_host_file_cmd=func_convert_file_noop 4862 ;; 4863esac 4864 4865fi 4866 4867to_host_file_cmd=$lt_cv_to_host_file_cmd 4868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4869$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4870 4871 4872 4873 4874 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4876$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4877if ${lt_cv_to_tool_file_cmd+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879else 4880 #assume ordinary cross tools, or native build. 4881lt_cv_to_tool_file_cmd=func_convert_file_noop 4882case $host in 4883 *-*-mingw* ) 4884 case $build in 4885 *-*-mingw* ) # actually msys 4886 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4887 ;; 4888 esac 4889 ;; 4890esac 4891 4892fi 4893 4894to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4896$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4897 4898 4899 4900 4901 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4903$as_echo_n "checking for $LD option to reload object files... " >&6; } 4904if ${lt_cv_ld_reload_flag+:} false; then : 4905 $as_echo_n "(cached) " >&6 4906else 4907 lt_cv_ld_reload_flag='-r' 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4910$as_echo "$lt_cv_ld_reload_flag" >&6; } 4911reload_flag=$lt_cv_ld_reload_flag 4912case $reload_flag in 4913"" | " "*) ;; 4914*) reload_flag=" $reload_flag" ;; 4915esac 4916reload_cmds='$LD$reload_flag -o $output$reload_objs' 4917case $host_os in 4918 cygwin* | mingw* | pw32* | cegcc*) 4919 if test "$GCC" != yes; then 4920 reload_cmds=false 4921 fi 4922 ;; 4923 darwin*) 4924 if test "$GCC" = yes; then 4925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4926 else 4927 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4928 fi 4929 ;; 4930esac 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940if test -n "$ac_tool_prefix"; then 4941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4942set dummy ${ac_tool_prefix}objdump; ac_word=$2 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4944$as_echo_n "checking for $ac_word... " >&6; } 4945if ${ac_cv_prog_OBJDUMP+:} false; then : 4946 $as_echo_n "(cached) " >&6 4947else 4948 if test -n "$OBJDUMP"; then 4949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4950else 4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4952for as_dir in $PATH 4953do 4954 IFS=$as_save_IFS 4955 test -z "$as_dir" && as_dir=. 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4960 break 2 4961 fi 4962done 4963 done 4964IFS=$as_save_IFS 4965 4966fi 4967fi 4968OBJDUMP=$ac_cv_prog_OBJDUMP 4969if test -n "$OBJDUMP"; then 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4971$as_echo "$OBJDUMP" >&6; } 4972else 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4974$as_echo "no" >&6; } 4975fi 4976 4977 4978fi 4979if test -z "$ac_cv_prog_OBJDUMP"; then 4980 ac_ct_OBJDUMP=$OBJDUMP 4981 # Extract the first word of "objdump", so it can be a program name with args. 4982set dummy objdump; ac_word=$2 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984$as_echo_n "checking for $ac_word... " >&6; } 4985if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987else 4988 if test -n "$ac_ct_OBJDUMP"; then 4989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4990else 4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4992for as_dir in $PATH 4993do 4994 IFS=$as_save_IFS 4995 test -z "$as_dir" && as_dir=. 4996 for ac_exec_ext in '' $ac_executable_extensions; do 4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4998 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5000 break 2 5001 fi 5002done 5003 done 5004IFS=$as_save_IFS 5005 5006fi 5007fi 5008ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5009if test -n "$ac_ct_OBJDUMP"; then 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5011$as_echo "$ac_ct_OBJDUMP" >&6; } 5012else 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5014$as_echo "no" >&6; } 5015fi 5016 5017 if test "x$ac_ct_OBJDUMP" = x; then 5018 OBJDUMP="false" 5019 else 5020 case $cross_compiling:$ac_tool_warned in 5021yes:) 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5024ac_tool_warned=yes ;; 5025esac 5026 OBJDUMP=$ac_ct_OBJDUMP 5027 fi 5028else 5029 OBJDUMP="$ac_cv_prog_OBJDUMP" 5030fi 5031 5032test -z "$OBJDUMP" && OBJDUMP=objdump 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5043$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5044if ${lt_cv_deplibs_check_method+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 lt_cv_file_magic_cmd='$MAGIC_CMD' 5048lt_cv_file_magic_test_file= 5049lt_cv_deplibs_check_method='unknown' 5050# Need to set the preceding variable on all platforms that support 5051# interlibrary dependencies. 5052# 'none' -- dependencies not supported. 5053# `unknown' -- same as none, but documents that we really don't know. 5054# 'pass_all' -- all dependencies passed with no checks. 5055# 'test_compile' -- check by making test program. 5056# 'file_magic [[regex]]' -- check by looking for files in library path 5057# which responds to the $file_magic_cmd with a given extended regex. 5058# If you have `file' or equivalent on your system and you're not sure 5059# whether `pass_all' will *always* work, you probably want this one. 5060 5061case $host_os in 5062aix[4-9]*) 5063 lt_cv_deplibs_check_method=pass_all 5064 ;; 5065 5066beos*) 5067 lt_cv_deplibs_check_method=pass_all 5068 ;; 5069 5070bsdi[45]*) 5071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5072 lt_cv_file_magic_cmd='/usr/bin/file -L' 5073 lt_cv_file_magic_test_file=/shlib/libc.so 5074 ;; 5075 5076cygwin*) 5077 # func_win32_libid is a shell function defined in ltmain.sh 5078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5079 lt_cv_file_magic_cmd='func_win32_libid' 5080 ;; 5081 5082mingw* | pw32*) 5083 # Base MSYS/MinGW do not provide the 'file' command needed by 5084 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5085 # unless we find 'file', for example because we are cross-compiling. 5086 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5087 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5089 lt_cv_file_magic_cmd='func_win32_libid' 5090 else 5091 # Keep this pattern in sync with the one in func_win32_libid. 5092 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5093 lt_cv_file_magic_cmd='$OBJDUMP -f' 5094 fi 5095 ;; 5096 5097cegcc*) 5098 # use the weaker test based on 'objdump'. See mingw*. 5099 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5100 lt_cv_file_magic_cmd='$OBJDUMP -f' 5101 ;; 5102 5103darwin* | rhapsody*) 5104 lt_cv_deplibs_check_method=pass_all 5105 ;; 5106 5107freebsd* | dragonfly*) 5108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5109 case $host_cpu in 5110 i*86 ) 5111 # Not sure whether the presence of OpenBSD here was a mistake. 5112 # Let's accept both of them until this is cleared up. 5113 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5114 lt_cv_file_magic_cmd=/usr/bin/file 5115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5116 ;; 5117 esac 5118 else 5119 lt_cv_deplibs_check_method=pass_all 5120 fi 5121 ;; 5122 5123gnu*) 5124 lt_cv_deplibs_check_method=pass_all 5125 ;; 5126 5127haiku*) 5128 lt_cv_deplibs_check_method=pass_all 5129 ;; 5130 5131hpux10.20* | hpux11*) 5132 lt_cv_file_magic_cmd=/usr/bin/file 5133 case $host_cpu in 5134 ia64*) 5135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5136 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5137 ;; 5138 hppa*64*) 5139 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]' 5140 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5141 ;; 5142 *) 5143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5144 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5145 ;; 5146 esac 5147 ;; 5148 5149interix[3-9]*) 5150 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5152 ;; 5153 5154irix5* | irix6* | nonstopux*) 5155 case $LD in 5156 *-32|*"-32 ") libmagic=32-bit;; 5157 *-n32|*"-n32 ") libmagic=N32;; 5158 *-64|*"-64 ") libmagic=64-bit;; 5159 *) libmagic=never-match;; 5160 esac 5161 lt_cv_deplibs_check_method=pass_all 5162 ;; 5163 5164# This must be glibc/ELF. 5165linux* | k*bsd*-gnu | kopensolaris*-gnu) 5166 lt_cv_deplibs_check_method=pass_all 5167 ;; 5168 5169netbsd*) 5170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5172 else 5173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5174 fi 5175 ;; 5176 5177newos6*) 5178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5179 lt_cv_file_magic_cmd=/usr/bin/file 5180 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5181 ;; 5182 5183*nto* | *qnx*) 5184 lt_cv_deplibs_check_method=pass_all 5185 ;; 5186 5187openbsd*) 5188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5190 else 5191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5192 fi 5193 ;; 5194 5195osf3* | osf4* | osf5*) 5196 lt_cv_deplibs_check_method=pass_all 5197 ;; 5198 5199rdos*) 5200 lt_cv_deplibs_check_method=pass_all 5201 ;; 5202 5203solaris*) 5204 lt_cv_deplibs_check_method=pass_all 5205 ;; 5206 5207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5208 lt_cv_deplibs_check_method=pass_all 5209 ;; 5210 5211sysv4 | sysv4.3*) 5212 case $host_vendor in 5213 motorola) 5214 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]' 5215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5216 ;; 5217 ncr) 5218 lt_cv_deplibs_check_method=pass_all 5219 ;; 5220 sequent) 5221 lt_cv_file_magic_cmd='/bin/file' 5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5223 ;; 5224 sni) 5225 lt_cv_file_magic_cmd='/bin/file' 5226 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5227 lt_cv_file_magic_test_file=/lib/libc.so 5228 ;; 5229 siemens) 5230 lt_cv_deplibs_check_method=pass_all 5231 ;; 5232 pc) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 esac 5236 ;; 5237 5238tpf*) 5239 lt_cv_deplibs_check_method=pass_all 5240 ;; 5241esac 5242 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5245$as_echo "$lt_cv_deplibs_check_method" >&6; } 5246 5247file_magic_glob= 5248want_nocaseglob=no 5249if test "$build" = "$host"; then 5250 case $host_os in 5251 mingw* | pw32*) 5252 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5253 want_nocaseglob=yes 5254 else 5255 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5256 fi 5257 ;; 5258 esac 5259fi 5260 5261file_magic_cmd=$lt_cv_file_magic_cmd 5262deplibs_check_method=$lt_cv_deplibs_check_method 5263test -z "$deplibs_check_method" && deplibs_check_method=unknown 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286if test -n "$ac_tool_prefix"; then 5287 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5288set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5290$as_echo_n "checking for $ac_word... " >&6; } 5291if ${ac_cv_prog_DLLTOOL+:} false; then : 5292 $as_echo_n "(cached) " >&6 5293else 5294 if test -n "$DLLTOOL"; then 5295 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5296else 5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5298for as_dir in $PATH 5299do 5300 IFS=$as_save_IFS 5301 test -z "$as_dir" && as_dir=. 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5304 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5306 break 2 5307 fi 5308done 5309 done 5310IFS=$as_save_IFS 5311 5312fi 5313fi 5314DLLTOOL=$ac_cv_prog_DLLTOOL 5315if test -n "$DLLTOOL"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5317$as_echo "$DLLTOOL" >&6; } 5318else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320$as_echo "no" >&6; } 5321fi 5322 5323 5324fi 5325if test -z "$ac_cv_prog_DLLTOOL"; then 5326 ac_ct_DLLTOOL=$DLLTOOL 5327 # Extract the first word of "dlltool", so it can be a program name with args. 5328set dummy dlltool; ac_word=$2 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5330$as_echo_n "checking for $ac_word... " >&6; } 5331if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 if test -n "$ac_ct_DLLTOOL"; then 5335 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5336else 5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5338for as_dir in $PATH 5339do 5340 IFS=$as_save_IFS 5341 test -z "$as_dir" && as_dir=. 5342 for ac_exec_ext in '' $ac_executable_extensions; do 5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5344 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5346 break 2 5347 fi 5348done 5349 done 5350IFS=$as_save_IFS 5351 5352fi 5353fi 5354ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5355if test -n "$ac_ct_DLLTOOL"; then 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5357$as_echo "$ac_ct_DLLTOOL" >&6; } 5358else 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5360$as_echo "no" >&6; } 5361fi 5362 5363 if test "x$ac_ct_DLLTOOL" = x; then 5364 DLLTOOL="false" 5365 else 5366 case $cross_compiling:$ac_tool_warned in 5367yes:) 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5370ac_tool_warned=yes ;; 5371esac 5372 DLLTOOL=$ac_ct_DLLTOOL 5373 fi 5374else 5375 DLLTOOL="$ac_cv_prog_DLLTOOL" 5376fi 5377 5378test -z "$DLLTOOL" && DLLTOOL=dlltool 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5390$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5391if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393else 5394 lt_cv_sharedlib_from_linklib_cmd='unknown' 5395 5396case $host_os in 5397cygwin* | mingw* | pw32* | cegcc*) 5398 # two different shell functions defined in ltmain.sh 5399 # decide which to use based on capabilities of $DLLTOOL 5400 case `$DLLTOOL --help 2>&1` in 5401 *--identify-strict*) 5402 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5403 ;; 5404 *) 5405 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5406 ;; 5407 esac 5408 ;; 5409*) 5410 # fallback: assume linklib IS sharedlib 5411 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5412 ;; 5413esac 5414 5415fi 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5417$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5418sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5419test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5420 5421 5422 5423 5424 5425 5426 5427 5428if test -n "$ac_tool_prefix"; then 5429 for ac_prog in ar 5430 do 5431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5432set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5434$as_echo_n "checking for $ac_word... " >&6; } 5435if ${ac_cv_prog_AR+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 if test -n "$AR"; then 5439 ac_cv_prog_AR="$AR" # Let the user override the test. 5440else 5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5442for as_dir in $PATH 5443do 5444 IFS=$as_save_IFS 5445 test -z "$as_dir" && as_dir=. 5446 for ac_exec_ext in '' $ac_executable_extensions; do 5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5448 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5450 break 2 5451 fi 5452done 5453 done 5454IFS=$as_save_IFS 5455 5456fi 5457fi 5458AR=$ac_cv_prog_AR 5459if test -n "$AR"; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5461$as_echo "$AR" >&6; } 5462else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5464$as_echo "no" >&6; } 5465fi 5466 5467 5468 test -n "$AR" && break 5469 done 5470fi 5471if test -z "$AR"; then 5472 ac_ct_AR=$AR 5473 for ac_prog in ar 5474do 5475 # Extract the first word of "$ac_prog", so it can be a program name with args. 5476set dummy $ac_prog; ac_word=$2 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5478$as_echo_n "checking for $ac_word... " >&6; } 5479if ${ac_cv_prog_ac_ct_AR+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 if test -n "$ac_ct_AR"; then 5483 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5484else 5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5486for as_dir in $PATH 5487do 5488 IFS=$as_save_IFS 5489 test -z "$as_dir" && as_dir=. 5490 for ac_exec_ext in '' $ac_executable_extensions; do 5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5492 ac_cv_prog_ac_ct_AR="$ac_prog" 5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5494 break 2 5495 fi 5496done 5497 done 5498IFS=$as_save_IFS 5499 5500fi 5501fi 5502ac_ct_AR=$ac_cv_prog_ac_ct_AR 5503if test -n "$ac_ct_AR"; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5505$as_echo "$ac_ct_AR" >&6; } 5506else 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5508$as_echo "no" >&6; } 5509fi 5510 5511 5512 test -n "$ac_ct_AR" && break 5513done 5514 5515 if test "x$ac_ct_AR" = x; then 5516 AR="false" 5517 else 5518 case $cross_compiling:$ac_tool_warned in 5519yes:) 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5522ac_tool_warned=yes ;; 5523esac 5524 AR=$ac_ct_AR 5525 fi 5526fi 5527 5528: ${AR=ar} 5529: ${AR_FLAGS=cru} 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5542$as_echo_n "checking for archiver @FILE support... " >&6; } 5543if ${lt_cv_ar_at_file+:} false; then : 5544 $as_echo_n "(cached) " >&6 5545else 5546 lt_cv_ar_at_file=no 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549 5550int 5551main () 5552{ 5553 5554 ; 5555 return 0; 5556} 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO"; then : 5559 echo conftest.$ac_objext > conftest.lst 5560 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5562 (eval $lt_ar_try) 2>&5 5563 ac_status=$? 5564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5565 test $ac_status = 0; } 5566 if test "$ac_status" -eq 0; then 5567 # Ensure the archiver fails upon bogus file names. 5568 rm -f conftest.$ac_objext libconftest.a 5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5570 (eval $lt_ar_try) 2>&5 5571 ac_status=$? 5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5573 test $ac_status = 0; } 5574 if test "$ac_status" -ne 0; then 5575 lt_cv_ar_at_file=@ 5576 fi 5577 fi 5578 rm -f conftest.* libconftest.a 5579 5580fi 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5582 5583fi 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5585$as_echo "$lt_cv_ar_at_file" >&6; } 5586 5587if test "x$lt_cv_ar_at_file" = xno; then 5588 archiver_list_spec= 5589else 5590 archiver_list_spec=$lt_cv_ar_at_file 5591fi 5592 5593 5594 5595 5596 5597 5598 5599if test -n "$ac_tool_prefix"; then 5600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5601set dummy ${ac_tool_prefix}strip; ac_word=$2 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5603$as_echo_n "checking for $ac_word... " >&6; } 5604if ${ac_cv_prog_STRIP+:} false; then : 5605 $as_echo_n "(cached) " >&6 5606else 5607 if test -n "$STRIP"; then 5608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5609else 5610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5611for as_dir in $PATH 5612do 5613 IFS=$as_save_IFS 5614 test -z "$as_dir" && as_dir=. 5615 for ac_exec_ext in '' $ac_executable_extensions; do 5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5617 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5619 break 2 5620 fi 5621done 5622 done 5623IFS=$as_save_IFS 5624 5625fi 5626fi 5627STRIP=$ac_cv_prog_STRIP 5628if test -n "$STRIP"; then 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5630$as_echo "$STRIP" >&6; } 5631else 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5633$as_echo "no" >&6; } 5634fi 5635 5636 5637fi 5638if test -z "$ac_cv_prog_STRIP"; then 5639 ac_ct_STRIP=$STRIP 5640 # Extract the first word of "strip", so it can be a program name with args. 5641set dummy strip; ac_word=$2 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5643$as_echo_n "checking for $ac_word... " >&6; } 5644if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 if test -n "$ac_ct_STRIP"; then 5648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5649else 5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651for as_dir in $PATH 5652do 5653 IFS=$as_save_IFS 5654 test -z "$as_dir" && as_dir=. 5655 for ac_exec_ext in '' $ac_executable_extensions; do 5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5657 ac_cv_prog_ac_ct_STRIP="strip" 5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5659 break 2 5660 fi 5661done 5662 done 5663IFS=$as_save_IFS 5664 5665fi 5666fi 5667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5668if test -n "$ac_ct_STRIP"; then 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5670$as_echo "$ac_ct_STRIP" >&6; } 5671else 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5673$as_echo "no" >&6; } 5674fi 5675 5676 if test "x$ac_ct_STRIP" = x; then 5677 STRIP=":" 5678 else 5679 case $cross_compiling:$ac_tool_warned in 5680yes:) 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5683ac_tool_warned=yes ;; 5684esac 5685 STRIP=$ac_ct_STRIP 5686 fi 5687else 5688 STRIP="$ac_cv_prog_STRIP" 5689fi 5690 5691test -z "$STRIP" && STRIP=: 5692 5693 5694 5695 5696 5697 5698if test -n "$ac_tool_prefix"; then 5699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5700set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5702$as_echo_n "checking for $ac_word... " >&6; } 5703if ${ac_cv_prog_RANLIB+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 if test -n "$RANLIB"; then 5707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5708else 5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5710for as_dir in $PATH 5711do 5712 IFS=$as_save_IFS 5713 test -z "$as_dir" && as_dir=. 5714 for ac_exec_ext in '' $ac_executable_extensions; do 5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5718 break 2 5719 fi 5720done 5721 done 5722IFS=$as_save_IFS 5723 5724fi 5725fi 5726RANLIB=$ac_cv_prog_RANLIB 5727if test -n "$RANLIB"; then 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5729$as_echo "$RANLIB" >&6; } 5730else 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5732$as_echo "no" >&6; } 5733fi 5734 5735 5736fi 5737if test -z "$ac_cv_prog_RANLIB"; then 5738 ac_ct_RANLIB=$RANLIB 5739 # Extract the first word of "ranlib", so it can be a program name with args. 5740set dummy ranlib; ac_word=$2 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5742$as_echo_n "checking for $ac_word... " >&6; } 5743if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 if test -n "$ac_ct_RANLIB"; then 5747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5748else 5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5750for as_dir in $PATH 5751do 5752 IFS=$as_save_IFS 5753 test -z "$as_dir" && as_dir=. 5754 for ac_exec_ext in '' $ac_executable_extensions; do 5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5756 ac_cv_prog_ac_ct_RANLIB="ranlib" 5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5758 break 2 5759 fi 5760done 5761 done 5762IFS=$as_save_IFS 5763 5764fi 5765fi 5766ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5767if test -n "$ac_ct_RANLIB"; then 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5769$as_echo "$ac_ct_RANLIB" >&6; } 5770else 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5772$as_echo "no" >&6; } 5773fi 5774 5775 if test "x$ac_ct_RANLIB" = x; then 5776 RANLIB=":" 5777 else 5778 case $cross_compiling:$ac_tool_warned in 5779yes:) 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5782ac_tool_warned=yes ;; 5783esac 5784 RANLIB=$ac_ct_RANLIB 5785 fi 5786else 5787 RANLIB="$ac_cv_prog_RANLIB" 5788fi 5789 5790test -z "$RANLIB" && RANLIB=: 5791 5792 5793 5794 5795 5796 5797# Determine commands to create old-style static archives. 5798old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5799old_postinstall_cmds='chmod 644 $oldlib' 5800old_postuninstall_cmds= 5801 5802if test -n "$RANLIB"; then 5803 case $host_os in 5804 openbsd*) 5805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5806 ;; 5807 *) 5808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5809 ;; 5810 esac 5811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5812fi 5813 5814case $host_os in 5815 darwin*) 5816 lock_old_archive_extraction=yes ;; 5817 *) 5818 lock_old_archive_extraction=no ;; 5819esac 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859# If no C compiler was specified, use CC. 5860LTCC=${LTCC-"$CC"} 5861 5862# If no C compiler flags were specified, use CFLAGS. 5863LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5864 5865# Allow CC to be a program name with arguments. 5866compiler=$CC 5867 5868 5869# Check for command to grab the raw symbol name followed by C symbol from nm. 5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5871$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5872if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5873 $as_echo_n "(cached) " >&6 5874else 5875 5876# These are sane defaults that work on at least a few old systems. 5877# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5878 5879# Character class describing NM global symbol codes. 5880symcode='[BCDEGRST]' 5881 5882# Regexp to match symbols that can be accessed directly from C. 5883sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5884 5885# Define system-specific variables. 5886case $host_os in 5887aix*) 5888 symcode='[BCDT]' 5889 ;; 5890cygwin* | mingw* | pw32* | cegcc*) 5891 symcode='[ABCDGISTW]' 5892 ;; 5893hpux*) 5894 if test "$host_cpu" = ia64; then 5895 symcode='[ABCDEGRST]' 5896 fi 5897 ;; 5898irix* | nonstopux*) 5899 symcode='[BCDEGRST]' 5900 ;; 5901osf*) 5902 symcode='[BCDEGQRST]' 5903 ;; 5904solaris*) 5905 symcode='[BDRT]' 5906 ;; 5907sco3.2v5*) 5908 symcode='[DT]' 5909 ;; 5910sysv4.2uw2*) 5911 symcode='[DT]' 5912 ;; 5913sysv5* | sco5v6* | unixware* | OpenUNIX*) 5914 symcode='[ABDT]' 5915 ;; 5916sysv4) 5917 symcode='[DFNSTU]' 5918 ;; 5919esac 5920 5921# If we're using GNU nm, then use its standard symbol codes. 5922case `$NM -V 2>&1` in 5923*GNU* | *'with BFD'*) 5924 symcode='[ABCDGIRSTW]' ;; 5925esac 5926 5927# Transform an extracted symbol line into a proper C declaration. 5928# Some systems (esp. on ia64) link data and code symbols differently, 5929# so use this general approach. 5930lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5931 5932# Transform an extracted symbol line into symbol name and symbol address 5933lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5934lt_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'" 5935 5936# Handle CRLF in mingw tool chain 5937opt_cr= 5938case $build_os in 5939mingw*) 5940 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5941 ;; 5942esac 5943 5944# Try without a prefix underscore, then with it. 5945for ac_symprfx in "" "_"; do 5946 5947 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5948 symxfrm="\\1 $ac_symprfx\\2 \\2" 5949 5950 # Write the raw and C identifiers. 5951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5952 # Fake it for dumpbin and say T for any non-static function 5953 # and D for any global variable. 5954 # Also find C++ and __fastcall symbols from MSVC++, 5955 # which start with @ or ?. 5956 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5957" {last_section=section; section=\$ 3};"\ 5958" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5959" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5960" \$ 0!~/External *\|/{next};"\ 5961" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5962" {if(hide[section]) next};"\ 5963" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5964" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5965" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5966" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5967" ' prfx=^$ac_symprfx" 5968 else 5969 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5970 fi 5971 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5972 5973 # Check to see that the pipe works correctly. 5974 pipe_works=no 5975 5976 rm -f conftest* 5977 cat > conftest.$ac_ext <<_LT_EOF 5978#ifdef __cplusplus 5979extern "C" { 5980#endif 5981char nm_test_var; 5982void nm_test_func(void); 5983void nm_test_func(void){} 5984#ifdef __cplusplus 5985} 5986#endif 5987int main(){nm_test_var='a';nm_test_func();return(0);} 5988_LT_EOF 5989 5990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5991 (eval $ac_compile) 2>&5 5992 ac_status=$? 5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5994 test $ac_status = 0; }; then 5995 # Now try to grab the symbols. 5996 nlist=conftest.nm 5997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5998 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5999 ac_status=$? 6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6001 test $ac_status = 0; } && test -s "$nlist"; then 6002 # Try sorting and uniquifying the output. 6003 if sort "$nlist" | uniq > "$nlist"T; then 6004 mv -f "$nlist"T "$nlist" 6005 else 6006 rm -f "$nlist"T 6007 fi 6008 6009 # Make sure that we snagged all the symbols we need. 6010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6012 cat <<_LT_EOF > conftest.$ac_ext 6013/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6014#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6015/* DATA imports from DLLs on WIN32 con't be const, because runtime 6016 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6017# define LT_DLSYM_CONST 6018#elif defined(__osf__) 6019/* This system does not cope well with relocations in const data. */ 6020# define LT_DLSYM_CONST 6021#else 6022# define LT_DLSYM_CONST const 6023#endif 6024 6025#ifdef __cplusplus 6026extern "C" { 6027#endif 6028 6029_LT_EOF 6030 # Now generate the symbol file. 6031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6032 6033 cat <<_LT_EOF >> conftest.$ac_ext 6034 6035/* The mapping between symbol names and symbols. */ 6036LT_DLSYM_CONST struct { 6037 const char *name; 6038 void *address; 6039} 6040lt__PROGRAM__LTX_preloaded_symbols[] = 6041{ 6042 { "@PROGRAM@", (void *) 0 }, 6043_LT_EOF 6044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6045 cat <<\_LT_EOF >> conftest.$ac_ext 6046 {0, (void *) 0} 6047}; 6048 6049/* This works around a problem in FreeBSD linker */ 6050#ifdef FREEBSD_WORKAROUND 6051static const void *lt_preloaded_setup() { 6052 return lt__PROGRAM__LTX_preloaded_symbols; 6053} 6054#endif 6055 6056#ifdef __cplusplus 6057} 6058#endif 6059_LT_EOF 6060 # Now try linking the two files. 6061 mv conftest.$ac_objext conftstm.$ac_objext 6062 lt_globsym_save_LIBS=$LIBS 6063 lt_globsym_save_CFLAGS=$CFLAGS 6064 LIBS="conftstm.$ac_objext" 6065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6067 (eval $ac_link) 2>&5 6068 ac_status=$? 6069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6071 pipe_works=yes 6072 fi 6073 LIBS=$lt_globsym_save_LIBS 6074 CFLAGS=$lt_globsym_save_CFLAGS 6075 else 6076 echo "cannot find nm_test_func in $nlist" >&5 6077 fi 6078 else 6079 echo "cannot find nm_test_var in $nlist" >&5 6080 fi 6081 else 6082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6083 fi 6084 else 6085 echo "$progname: failed program was:" >&5 6086 cat conftest.$ac_ext >&5 6087 fi 6088 rm -rf conftest* conftst* 6089 6090 # Do not use the global_symbol_pipe unless it works. 6091 if test "$pipe_works" = yes; then 6092 break 6093 else 6094 lt_cv_sys_global_symbol_pipe= 6095 fi 6096done 6097 6098fi 6099 6100if test -z "$lt_cv_sys_global_symbol_pipe"; then 6101 lt_cv_sys_global_symbol_to_cdecl= 6102fi 6103if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6105$as_echo "failed" >&6; } 6106else 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6108$as_echo "ok" >&6; } 6109fi 6110 6111# Response file support. 6112if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6113 nm_file_list_spec='@' 6114elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6115 nm_file_list_spec='@' 6116fi 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6145$as_echo_n "checking for sysroot... " >&6; } 6146 6147# Check whether --with-sysroot was given. 6148if test "${with_sysroot+set}" = set; then : 6149 withval=$with_sysroot; 6150else 6151 with_sysroot=no 6152fi 6153 6154 6155lt_sysroot= 6156case ${with_sysroot} in #( 6157 yes) 6158 if test "$GCC" = yes; then 6159 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6160 fi 6161 ;; #( 6162 /*) 6163 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6164 ;; #( 6165 no|'') 6166 ;; #( 6167 *) 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6169$as_echo "${with_sysroot}" >&6; } 6170 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6171 ;; 6172esac 6173 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6175$as_echo "${lt_sysroot:-no}" >&6; } 6176 6177 6178 6179 6180 6181# Check whether --enable-libtool-lock was given. 6182if test "${enable_libtool_lock+set}" = set; then : 6183 enableval=$enable_libtool_lock; 6184fi 6185 6186test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6187 6188# Some flags need to be propagated to the compiler or linker for good 6189# libtool support. 6190case $host in 6191ia64-*-hpux*) 6192 # Find out which ABI we are using. 6193 echo 'int i;' > conftest.$ac_ext 6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6195 (eval $ac_compile) 2>&5 6196 ac_status=$? 6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6198 test $ac_status = 0; }; then 6199 case `/usr/bin/file conftest.$ac_objext` in 6200 *ELF-32*) 6201 HPUX_IA64_MODE="32" 6202 ;; 6203 *ELF-64*) 6204 HPUX_IA64_MODE="64" 6205 ;; 6206 esac 6207 fi 6208 rm -rf conftest* 6209 ;; 6210*-*-irix6*) 6211 # Find out which ABI we are using. 6212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6214 (eval $ac_compile) 2>&5 6215 ac_status=$? 6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6217 test $ac_status = 0; }; then 6218 if test "$lt_cv_prog_gnu_ld" = yes; then 6219 case `/usr/bin/file conftest.$ac_objext` in 6220 *32-bit*) 6221 LD="${LD-ld} -melf32bsmip" 6222 ;; 6223 *N32*) 6224 LD="${LD-ld} -melf32bmipn32" 6225 ;; 6226 *64-bit*) 6227 LD="${LD-ld} -melf64bmip" 6228 ;; 6229 esac 6230 else 6231 case `/usr/bin/file conftest.$ac_objext` in 6232 *32-bit*) 6233 LD="${LD-ld} -32" 6234 ;; 6235 *N32*) 6236 LD="${LD-ld} -n32" 6237 ;; 6238 *64-bit*) 6239 LD="${LD-ld} -64" 6240 ;; 6241 esac 6242 fi 6243 fi 6244 rm -rf conftest* 6245 ;; 6246 6247x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6248s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6249 # Find out which ABI we are using. 6250 echo 'int i;' > conftest.$ac_ext 6251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6252 (eval $ac_compile) 2>&5 6253 ac_status=$? 6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6255 test $ac_status = 0; }; then 6256 case `/usr/bin/file conftest.o` in 6257 *32-bit*) 6258 case $host in 6259 x86_64-*kfreebsd*-gnu) 6260 LD="${LD-ld} -m elf_i386_fbsd" 6261 ;; 6262 x86_64-*linux*) 6263 LD="${LD-ld} -m elf_i386" 6264 ;; 6265 ppc64-*linux*|powerpc64-*linux*) 6266 LD="${LD-ld} -m elf32ppclinux" 6267 ;; 6268 s390x-*linux*) 6269 LD="${LD-ld} -m elf_s390" 6270 ;; 6271 sparc64-*linux*) 6272 LD="${LD-ld} -m elf32_sparc" 6273 ;; 6274 esac 6275 ;; 6276 *64-bit*) 6277 case $host in 6278 x86_64-*kfreebsd*-gnu) 6279 LD="${LD-ld} -m elf_x86_64_fbsd" 6280 ;; 6281 x86_64-*linux*) 6282 LD="${LD-ld} -m elf_x86_64" 6283 ;; 6284 ppc*-*linux*|powerpc*-*linux*) 6285 LD="${LD-ld} -m elf64ppc" 6286 ;; 6287 s390*-*linux*|s390*-*tpf*) 6288 LD="${LD-ld} -m elf64_s390" 6289 ;; 6290 sparc*-*linux*) 6291 LD="${LD-ld} -m elf64_sparc" 6292 ;; 6293 esac 6294 ;; 6295 esac 6296 fi 6297 rm -rf conftest* 6298 ;; 6299 6300*-*-sco3.2v5*) 6301 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6302 SAVE_CFLAGS="$CFLAGS" 6303 CFLAGS="$CFLAGS -belf" 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6305$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6306if ${lt_cv_cc_needs_belf+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308else 6309 ac_ext=c 6310ac_cpp='$CPP $CPPFLAGS' 6311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6313ac_compiler_gnu=$ac_cv_c_compiler_gnu 6314 6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6316/* end confdefs.h. */ 6317 6318int 6319main () 6320{ 6321 6322 ; 6323 return 0; 6324} 6325_ACEOF 6326if ac_fn_c_try_link "$LINENO"; then : 6327 lt_cv_cc_needs_belf=yes 6328else 6329 lt_cv_cc_needs_belf=no 6330fi 6331rm -f core conftest.err conftest.$ac_objext \ 6332 conftest$ac_exeext conftest.$ac_ext 6333 ac_ext=c 6334ac_cpp='$CPP $CPPFLAGS' 6335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6337ac_compiler_gnu=$ac_cv_c_compiler_gnu 6338 6339fi 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6341$as_echo "$lt_cv_cc_needs_belf" >&6; } 6342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6344 CFLAGS="$SAVE_CFLAGS" 6345 fi 6346 ;; 6347*-*solaris*) 6348 # Find out which ABI we are using. 6349 echo 'int i;' > conftest.$ac_ext 6350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6351 (eval $ac_compile) 2>&5 6352 ac_status=$? 6353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6354 test $ac_status = 0; }; then 6355 case `/usr/bin/file conftest.o` in 6356 *64-bit*) 6357 case $lt_cv_prog_gnu_ld in 6358 yes*) 6359 case $host in 6360 i?86-*-solaris*) 6361 LD="${LD-ld} -m elf_x86_64" 6362 ;; 6363 sparc*-*-solaris*) 6364 LD="${LD-ld} -m elf64_sparc" 6365 ;; 6366 esac 6367 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6368 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6369 LD="${LD-ld}_sol2" 6370 fi 6371 ;; 6372 *) 6373 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6374 LD="${LD-ld} -64" 6375 fi 6376 ;; 6377 esac 6378 ;; 6379 esac 6380 fi 6381 rm -rf conftest* 6382 ;; 6383esac 6384 6385need_locks="$enable_libtool_lock" 6386 6387if test -n "$ac_tool_prefix"; then 6388 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6389set dummy ${ac_tool_prefix}mt; ac_word=$2 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6391$as_echo_n "checking for $ac_word... " >&6; } 6392if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 if test -n "$MANIFEST_TOOL"; then 6396 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6397else 6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6399for as_dir in $PATH 6400do 6401 IFS=$as_save_IFS 6402 test -z "$as_dir" && as_dir=. 6403 for ac_exec_ext in '' $ac_executable_extensions; do 6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6405 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6407 break 2 6408 fi 6409done 6410 done 6411IFS=$as_save_IFS 6412 6413fi 6414fi 6415MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6416if test -n "$MANIFEST_TOOL"; then 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6418$as_echo "$MANIFEST_TOOL" >&6; } 6419else 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6421$as_echo "no" >&6; } 6422fi 6423 6424 6425fi 6426if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6427 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6428 # Extract the first word of "mt", so it can be a program name with args. 6429set dummy mt; ac_word=$2 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6431$as_echo_n "checking for $ac_word... " >&6; } 6432if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 if test -n "$ac_ct_MANIFEST_TOOL"; then 6436 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6437else 6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450 done 6451IFS=$as_save_IFS 6452 6453fi 6454fi 6455ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6456if test -n "$ac_ct_MANIFEST_TOOL"; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6458$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6459else 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461$as_echo "no" >&6; } 6462fi 6463 6464 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6465 MANIFEST_TOOL=":" 6466 else 6467 case $cross_compiling:$ac_tool_warned in 6468yes:) 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6471ac_tool_warned=yes ;; 6472esac 6473 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6474 fi 6475else 6476 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6477fi 6478 6479test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6481$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6482if ${lt_cv_path_mainfest_tool+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 lt_cv_path_mainfest_tool=no 6486 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6487 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6488 cat conftest.err >&5 6489 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6490 lt_cv_path_mainfest_tool=yes 6491 fi 6492 rm -f conftest* 6493fi 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6495$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6496if test "x$lt_cv_path_mainfest_tool" != xyes; then 6497 MANIFEST_TOOL=: 6498fi 6499 6500 6501 6502 6503 6504 6505 case $host_os in 6506 rhapsody* | darwin*) 6507 if test -n "$ac_tool_prefix"; then 6508 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6509set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6511$as_echo_n "checking for $ac_word... " >&6; } 6512if ${ac_cv_prog_DSYMUTIL+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 if test -n "$DSYMUTIL"; then 6516 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6517else 6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519for as_dir in $PATH 6520do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6525 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529done 6530 done 6531IFS=$as_save_IFS 6532 6533fi 6534fi 6535DSYMUTIL=$ac_cv_prog_DSYMUTIL 6536if test -n "$DSYMUTIL"; then 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6538$as_echo "$DSYMUTIL" >&6; } 6539else 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6541$as_echo "no" >&6; } 6542fi 6543 6544 6545fi 6546if test -z "$ac_cv_prog_DSYMUTIL"; then 6547 ac_ct_DSYMUTIL=$DSYMUTIL 6548 # Extract the first word of "dsymutil", so it can be a program name with args. 6549set dummy dsymutil; ac_word=$2 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6551$as_echo_n "checking for $ac_word... " >&6; } 6552if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6553 $as_echo_n "(cached) " >&6 6554else 6555 if test -n "$ac_ct_DSYMUTIL"; then 6556 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6557else 6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6559for as_dir in $PATH 6560do 6561 IFS=$as_save_IFS 6562 test -z "$as_dir" && as_dir=. 6563 for ac_exec_ext in '' $ac_executable_extensions; do 6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6565 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6567 break 2 6568 fi 6569done 6570 done 6571IFS=$as_save_IFS 6572 6573fi 6574fi 6575ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6576if test -n "$ac_ct_DSYMUTIL"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6578$as_echo "$ac_ct_DSYMUTIL" >&6; } 6579else 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581$as_echo "no" >&6; } 6582fi 6583 6584 if test "x$ac_ct_DSYMUTIL" = x; then 6585 DSYMUTIL=":" 6586 else 6587 case $cross_compiling:$ac_tool_warned in 6588yes:) 6589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6591ac_tool_warned=yes ;; 6592esac 6593 DSYMUTIL=$ac_ct_DSYMUTIL 6594 fi 6595else 6596 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6597fi 6598 6599 if test -n "$ac_tool_prefix"; then 6600 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6601set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6603$as_echo_n "checking for $ac_word... " >&6; } 6604if ${ac_cv_prog_NMEDIT+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 if test -n "$NMEDIT"; then 6608 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6609else 6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611for as_dir in $PATH 6612do 6613 IFS=$as_save_IFS 6614 test -z "$as_dir" && as_dir=. 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6617 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6619 break 2 6620 fi 6621done 6622 done 6623IFS=$as_save_IFS 6624 6625fi 6626fi 6627NMEDIT=$ac_cv_prog_NMEDIT 6628if test -n "$NMEDIT"; then 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6630$as_echo "$NMEDIT" >&6; } 6631else 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6633$as_echo "no" >&6; } 6634fi 6635 6636 6637fi 6638if test -z "$ac_cv_prog_NMEDIT"; then 6639 ac_ct_NMEDIT=$NMEDIT 6640 # Extract the first word of "nmedit", so it can be a program name with args. 6641set dummy nmedit; ac_word=$2 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6643$as_echo_n "checking for $ac_word... " >&6; } 6644if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 if test -n "$ac_ct_NMEDIT"; then 6648 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6649else 6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6657 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661done 6662 done 6663IFS=$as_save_IFS 6664 6665fi 6666fi 6667ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6668if test -n "$ac_ct_NMEDIT"; then 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6670$as_echo "$ac_ct_NMEDIT" >&6; } 6671else 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6673$as_echo "no" >&6; } 6674fi 6675 6676 if test "x$ac_ct_NMEDIT" = x; then 6677 NMEDIT=":" 6678 else 6679 case $cross_compiling:$ac_tool_warned in 6680yes:) 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6683ac_tool_warned=yes ;; 6684esac 6685 NMEDIT=$ac_ct_NMEDIT 6686 fi 6687else 6688 NMEDIT="$ac_cv_prog_NMEDIT" 6689fi 6690 6691 if test -n "$ac_tool_prefix"; then 6692 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6693set dummy ${ac_tool_prefix}lipo; ac_word=$2 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6695$as_echo_n "checking for $ac_word... " >&6; } 6696if ${ac_cv_prog_LIPO+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 if test -n "$LIPO"; then 6700 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6701else 6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703for as_dir in $PATH 6704do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for ac_exec_ext in '' $ac_executable_extensions; do 6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6709 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6711 break 2 6712 fi 6713done 6714 done 6715IFS=$as_save_IFS 6716 6717fi 6718fi 6719LIPO=$ac_cv_prog_LIPO 6720if test -n "$LIPO"; then 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6722$as_echo "$LIPO" >&6; } 6723else 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725$as_echo "no" >&6; } 6726fi 6727 6728 6729fi 6730if test -z "$ac_cv_prog_LIPO"; then 6731 ac_ct_LIPO=$LIPO 6732 # Extract the first word of "lipo", so it can be a program name with args. 6733set dummy lipo; ac_word=$2 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735$as_echo_n "checking for $ac_word... " >&6; } 6736if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 if test -n "$ac_ct_LIPO"; then 6740 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6741else 6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6743for as_dir in $PATH 6744do 6745 IFS=$as_save_IFS 6746 test -z "$as_dir" && as_dir=. 6747 for ac_exec_ext in '' $ac_executable_extensions; do 6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6749 ac_cv_prog_ac_ct_LIPO="lipo" 6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6751 break 2 6752 fi 6753done 6754 done 6755IFS=$as_save_IFS 6756 6757fi 6758fi 6759ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6760if test -n "$ac_ct_LIPO"; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6762$as_echo "$ac_ct_LIPO" >&6; } 6763else 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6765$as_echo "no" >&6; } 6766fi 6767 6768 if test "x$ac_ct_LIPO" = x; then 6769 LIPO=":" 6770 else 6771 case $cross_compiling:$ac_tool_warned in 6772yes:) 6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6775ac_tool_warned=yes ;; 6776esac 6777 LIPO=$ac_ct_LIPO 6778 fi 6779else 6780 LIPO="$ac_cv_prog_LIPO" 6781fi 6782 6783 if test -n "$ac_tool_prefix"; then 6784 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6785set dummy ${ac_tool_prefix}otool; ac_word=$2 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6787$as_echo_n "checking for $ac_word... " >&6; } 6788if ${ac_cv_prog_OTOOL+:} false; then : 6789 $as_echo_n "(cached) " >&6 6790else 6791 if test -n "$OTOOL"; then 6792 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6793else 6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6795for as_dir in $PATH 6796do 6797 IFS=$as_save_IFS 6798 test -z "$as_dir" && as_dir=. 6799 for ac_exec_ext in '' $ac_executable_extensions; do 6800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6801 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6803 break 2 6804 fi 6805done 6806 done 6807IFS=$as_save_IFS 6808 6809fi 6810fi 6811OTOOL=$ac_cv_prog_OTOOL 6812if test -n "$OTOOL"; then 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6814$as_echo "$OTOOL" >&6; } 6815else 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6817$as_echo "no" >&6; } 6818fi 6819 6820 6821fi 6822if test -z "$ac_cv_prog_OTOOL"; then 6823 ac_ct_OTOOL=$OTOOL 6824 # Extract the first word of "otool", so it can be a program name with args. 6825set dummy otool; ac_word=$2 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6827$as_echo_n "checking for $ac_word... " >&6; } 6828if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 if test -n "$ac_ct_OTOOL"; then 6832 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6833else 6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6835for as_dir in $PATH 6836do 6837 IFS=$as_save_IFS 6838 test -z "$as_dir" && as_dir=. 6839 for ac_exec_ext in '' $ac_executable_extensions; do 6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6841 ac_cv_prog_ac_ct_OTOOL="otool" 6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6843 break 2 6844 fi 6845done 6846 done 6847IFS=$as_save_IFS 6848 6849fi 6850fi 6851ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6852if test -n "$ac_ct_OTOOL"; then 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6854$as_echo "$ac_ct_OTOOL" >&6; } 6855else 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6857$as_echo "no" >&6; } 6858fi 6859 6860 if test "x$ac_ct_OTOOL" = x; then 6861 OTOOL=":" 6862 else 6863 case $cross_compiling:$ac_tool_warned in 6864yes:) 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6867ac_tool_warned=yes ;; 6868esac 6869 OTOOL=$ac_ct_OTOOL 6870 fi 6871else 6872 OTOOL="$ac_cv_prog_OTOOL" 6873fi 6874 6875 if test -n "$ac_tool_prefix"; then 6876 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6877set dummy ${ac_tool_prefix}otool64; ac_word=$2 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6879$as_echo_n "checking for $ac_word... " >&6; } 6880if ${ac_cv_prog_OTOOL64+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 if test -n "$OTOOL64"; then 6884 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6885else 6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6887for as_dir in $PATH 6888do 6889 IFS=$as_save_IFS 6890 test -z "$as_dir" && as_dir=. 6891 for ac_exec_ext in '' $ac_executable_extensions; do 6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6893 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6895 break 2 6896 fi 6897done 6898 done 6899IFS=$as_save_IFS 6900 6901fi 6902fi 6903OTOOL64=$ac_cv_prog_OTOOL64 6904if test -n "$OTOOL64"; then 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6906$as_echo "$OTOOL64" >&6; } 6907else 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6909$as_echo "no" >&6; } 6910fi 6911 6912 6913fi 6914if test -z "$ac_cv_prog_OTOOL64"; then 6915 ac_ct_OTOOL64=$OTOOL64 6916 # Extract the first word of "otool64", so it can be a program name with args. 6917set dummy otool64; ac_word=$2 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6919$as_echo_n "checking for $ac_word... " >&6; } 6920if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 if test -n "$ac_ct_OTOOL64"; then 6924 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6925else 6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927for as_dir in $PATH 6928do 6929 IFS=$as_save_IFS 6930 test -z "$as_dir" && as_dir=. 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6933 ac_cv_prog_ac_ct_OTOOL64="otool64" 6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938 done 6939IFS=$as_save_IFS 6940 6941fi 6942fi 6943ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6944if test -n "$ac_ct_OTOOL64"; then 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6946$as_echo "$ac_ct_OTOOL64" >&6; } 6947else 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6949$as_echo "no" >&6; } 6950fi 6951 6952 if test "x$ac_ct_OTOOL64" = x; then 6953 OTOOL64=":" 6954 else 6955 case $cross_compiling:$ac_tool_warned in 6956yes:) 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6959ac_tool_warned=yes ;; 6960esac 6961 OTOOL64=$ac_ct_OTOOL64 6962 fi 6963else 6964 OTOOL64="$ac_cv_prog_OTOOL64" 6965fi 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6994$as_echo_n "checking for -single_module linker flag... " >&6; } 6995if ${lt_cv_apple_cc_single_mod+:} false; then : 6996 $as_echo_n "(cached) " >&6 6997else 6998 lt_cv_apple_cc_single_mod=no 6999 if test -z "${LT_MULTI_MODULE}"; then 7000 # By default we will add the -single_module flag. You can override 7001 # by either setting the environment variable LT_MULTI_MODULE 7002 # non-empty at configure time, or by adding -multi_module to the 7003 # link flags. 7004 rm -rf libconftest.dylib* 7005 echo "int foo(void){return 1;}" > conftest.c 7006 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7007-dynamiclib -Wl,-single_module conftest.c" >&5 7008 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7009 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7010 _lt_result=$? 7011 # If there is a non-empty error log, and "single_module" 7012 # appears in it, assume the flag caused a linker warning 7013 if test -s conftest.err && $GREP single_module conftest.err; then 7014 cat conftest.err >&5 7015 # Otherwise, if the output was created with a 0 exit code from 7016 # the compiler, it worked. 7017 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7018 lt_cv_apple_cc_single_mod=yes 7019 else 7020 cat conftest.err >&5 7021 fi 7022 rm -rf libconftest.dylib* 7023 rm -f conftest.* 7024 fi 7025fi 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7027$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7028 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7030$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7031if ${lt_cv_ld_exported_symbols_list+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 lt_cv_ld_exported_symbols_list=no 7035 save_LDFLAGS=$LDFLAGS 7036 echo "_main" > conftest.sym 7037 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7039/* end confdefs.h. */ 7040 7041int 7042main () 7043{ 7044 7045 ; 7046 return 0; 7047} 7048_ACEOF 7049if ac_fn_c_try_link "$LINENO"; then : 7050 lt_cv_ld_exported_symbols_list=yes 7051else 7052 lt_cv_ld_exported_symbols_list=no 7053fi 7054rm -f core conftest.err conftest.$ac_objext \ 7055 conftest$ac_exeext conftest.$ac_ext 7056 LDFLAGS="$save_LDFLAGS" 7057 7058fi 7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7060$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7061 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7063$as_echo_n "checking for -force_load linker flag... " >&6; } 7064if ${lt_cv_ld_force_load+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 lt_cv_ld_force_load=no 7068 cat > conftest.c << _LT_EOF 7069int forced_loaded() { return 2;} 7070_LT_EOF 7071 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7072 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7073 echo "$AR cru libconftest.a conftest.o" >&5 7074 $AR cru libconftest.a conftest.o 2>&5 7075 echo "$RANLIB libconftest.a" >&5 7076 $RANLIB libconftest.a 2>&5 7077 cat > conftest.c << _LT_EOF 7078int main() { return 0;} 7079_LT_EOF 7080 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7081 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7082 _lt_result=$? 7083 if test -s conftest.err && $GREP force_load conftest.err; then 7084 cat conftest.err >&5 7085 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7086 lt_cv_ld_force_load=yes 7087 else 7088 cat conftest.err >&5 7089 fi 7090 rm -f conftest.err libconftest.a conftest conftest.c 7091 rm -rf conftest.dSYM 7092 7093fi 7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7095$as_echo "$lt_cv_ld_force_load" >&6; } 7096 case $host_os in 7097 rhapsody* | darwin1.[012]) 7098 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7099 darwin1.*) 7100 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7101 darwin*) # darwin 5.x on 7102 # if running on 10.5 or later, the deployment target defaults 7103 # to the OS version, if on x86, and 10.4, the deployment 7104 # target defaults to 10.4. Don't you love it? 7105 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7106 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7107 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7108 10.[012]*) 7109 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7110 10.*) 7111 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7112 esac 7113 ;; 7114 esac 7115 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7116 _lt_dar_single_mod='$single_module' 7117 fi 7118 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7119 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7120 else 7121 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7122 fi 7123 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7124 _lt_dsymutil='~$DSYMUTIL $lib || :' 7125 else 7126 _lt_dsymutil= 7127 fi 7128 ;; 7129 esac 7130 7131ac_ext=c 7132ac_cpp='$CPP $CPPFLAGS' 7133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7135ac_compiler_gnu=$ac_cv_c_compiler_gnu 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7137$as_echo_n "checking how to run the C preprocessor... " >&6; } 7138# On Suns, sometimes $CPP names a directory. 7139if test -n "$CPP" && test -d "$CPP"; then 7140 CPP= 7141fi 7142if test -z "$CPP"; then 7143 if ${ac_cv_prog_CPP+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 # Double quotes because CPP needs to be expanded 7147 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7148 do 7149 ac_preproc_ok=false 7150for ac_c_preproc_warn_flag in '' yes 7151do 7152 # Use a header file that comes with gcc, so configuring glibc 7153 # with a fresh cross-compiler works. 7154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7155 # <limits.h> exists even on freestanding compilers. 7156 # On the NeXT, cc -E runs the code through the compiler's parser, 7157 # not just through cpp. "Syntax error" is here to catch this case. 7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7159/* end confdefs.h. */ 7160#ifdef __STDC__ 7161# include <limits.h> 7162#else 7163# include <assert.h> 7164#endif 7165 Syntax error 7166_ACEOF 7167if ac_fn_c_try_cpp "$LINENO"; then : 7168 7169else 7170 # Broken: fails on valid input. 7171continue 7172fi 7173rm -f conftest.err conftest.i conftest.$ac_ext 7174 7175 # OK, works on sane cases. Now check whether nonexistent headers 7176 # can be detected and how. 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178/* end confdefs.h. */ 7179#include <ac_nonexistent.h> 7180_ACEOF 7181if ac_fn_c_try_cpp "$LINENO"; then : 7182 # Broken: success on invalid input. 7183continue 7184else 7185 # Passes both tests. 7186ac_preproc_ok=: 7187break 7188fi 7189rm -f conftest.err conftest.i conftest.$ac_ext 7190 7191done 7192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7193rm -f conftest.i conftest.err conftest.$ac_ext 7194if $ac_preproc_ok; then : 7195 break 7196fi 7197 7198 done 7199 ac_cv_prog_CPP=$CPP 7200 7201fi 7202 CPP=$ac_cv_prog_CPP 7203else 7204 ac_cv_prog_CPP=$CPP 7205fi 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7207$as_echo "$CPP" >&6; } 7208ac_preproc_ok=false 7209for ac_c_preproc_warn_flag in '' yes 7210do 7211 # Use a header file that comes with gcc, so configuring glibc 7212 # with a fresh cross-compiler works. 7213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7214 # <limits.h> exists even on freestanding compilers. 7215 # On the NeXT, cc -E runs the code through the compiler's parser, 7216 # not just through cpp. "Syntax error" is here to catch this case. 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219#ifdef __STDC__ 7220# include <limits.h> 7221#else 7222# include <assert.h> 7223#endif 7224 Syntax error 7225_ACEOF 7226if ac_fn_c_try_cpp "$LINENO"; then : 7227 7228else 7229 # Broken: fails on valid input. 7230continue 7231fi 7232rm -f conftest.err conftest.i conftest.$ac_ext 7233 7234 # OK, works on sane cases. Now check whether nonexistent headers 7235 # can be detected and how. 7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237/* end confdefs.h. */ 7238#include <ac_nonexistent.h> 7239_ACEOF 7240if ac_fn_c_try_cpp "$LINENO"; then : 7241 # Broken: success on invalid input. 7242continue 7243else 7244 # Passes both tests. 7245ac_preproc_ok=: 7246break 7247fi 7248rm -f conftest.err conftest.i conftest.$ac_ext 7249 7250done 7251# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7252rm -f conftest.i conftest.err conftest.$ac_ext 7253if $ac_preproc_ok; then : 7254 7255else 7256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7258as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7259See \`config.log' for more details" "$LINENO" 5; } 7260fi 7261 7262ac_ext=c 7263ac_cpp='$CPP $CPPFLAGS' 7264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7266ac_compiler_gnu=$ac_cv_c_compiler_gnu 7267 7268 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7270$as_echo_n "checking for ANSI C header files... " >&6; } 7271if ${ac_cv_header_stdc+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276#include <stdlib.h> 7277#include <stdarg.h> 7278#include <string.h> 7279#include <float.h> 7280 7281int 7282main () 7283{ 7284 7285 ; 7286 return 0; 7287} 7288_ACEOF 7289if ac_fn_c_try_compile "$LINENO"; then : 7290 ac_cv_header_stdc=yes 7291else 7292 ac_cv_header_stdc=no 7293fi 7294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7295 7296if test $ac_cv_header_stdc = yes; then 7297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7299/* end confdefs.h. */ 7300#include <string.h> 7301 7302_ACEOF 7303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7304 $EGREP "memchr" >/dev/null 2>&1; then : 7305 7306else 7307 ac_cv_header_stdc=no 7308fi 7309rm -f conftest* 7310 7311fi 7312 7313if test $ac_cv_header_stdc = yes; then 7314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317#include <stdlib.h> 7318 7319_ACEOF 7320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7321 $EGREP "free" >/dev/null 2>&1; then : 7322 7323else 7324 ac_cv_header_stdc=no 7325fi 7326rm -f conftest* 7327 7328fi 7329 7330if test $ac_cv_header_stdc = yes; then 7331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7332 if test "$cross_compiling" = yes; then : 7333 : 7334else 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337#include <ctype.h> 7338#include <stdlib.h> 7339#if ((' ' & 0x0FF) == 0x020) 7340# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7341# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7342#else 7343# define ISLOWER(c) \ 7344 (('a' <= (c) && (c) <= 'i') \ 7345 || ('j' <= (c) && (c) <= 'r') \ 7346 || ('s' <= (c) && (c) <= 'z')) 7347# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7348#endif 7349 7350#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7351int 7352main () 7353{ 7354 int i; 7355 for (i = 0; i < 256; i++) 7356 if (XOR (islower (i), ISLOWER (i)) 7357 || toupper (i) != TOUPPER (i)) 7358 return 2; 7359 return 0; 7360} 7361_ACEOF 7362if ac_fn_c_try_run "$LINENO"; then : 7363 7364else 7365 ac_cv_header_stdc=no 7366fi 7367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7368 conftest.$ac_objext conftest.beam conftest.$ac_ext 7369fi 7370 7371fi 7372fi 7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7374$as_echo "$ac_cv_header_stdc" >&6; } 7375if test $ac_cv_header_stdc = yes; then 7376 7377$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7378 7379fi 7380 7381# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7382for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7383 inttypes.h stdint.h unistd.h 7384do : 7385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7386ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7387" 7388if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7389 cat >>confdefs.h <<_ACEOF 7390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7391_ACEOF 7392 7393fi 7394 7395done 7396 7397 7398for ac_header in dlfcn.h 7399do : 7400 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7401" 7402if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7403 cat >>confdefs.h <<_ACEOF 7404#define HAVE_DLFCN_H 1 7405_ACEOF 7406 7407fi 7408 7409done 7410 7411 7412 7413 7414 7415# Set options 7416 7417 7418 7419 enable_dlopen=no 7420 7421 7422 enable_win32_dll=no 7423 7424 7425 # Check whether --enable-shared was given. 7426if test "${enable_shared+set}" = set; then : 7427 enableval=$enable_shared; p=${PACKAGE-default} 7428 case $enableval in 7429 yes) enable_shared=yes ;; 7430 no) enable_shared=no ;; 7431 *) 7432 enable_shared=no 7433 # Look at the argument we got. We use all the common list separators. 7434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7435 for pkg in $enableval; do 7436 IFS="$lt_save_ifs" 7437 if test "X$pkg" = "X$p"; then 7438 enable_shared=yes 7439 fi 7440 done 7441 IFS="$lt_save_ifs" 7442 ;; 7443 esac 7444else 7445 enable_shared=yes 7446fi 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 # Check whether --enable-static was given. 7457if test "${enable_static+set}" = set; then : 7458 enableval=$enable_static; p=${PACKAGE-default} 7459 case $enableval in 7460 yes) enable_static=yes ;; 7461 no) enable_static=no ;; 7462 *) 7463 enable_static=no 7464 # Look at the argument we got. We use all the common list separators. 7465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7466 for pkg in $enableval; do 7467 IFS="$lt_save_ifs" 7468 if test "X$pkg" = "X$p"; then 7469 enable_static=yes 7470 fi 7471 done 7472 IFS="$lt_save_ifs" 7473 ;; 7474 esac 7475else 7476 enable_static=yes 7477fi 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488# Check whether --with-pic was given. 7489if test "${with_pic+set}" = set; then : 7490 withval=$with_pic; lt_p=${PACKAGE-default} 7491 case $withval in 7492 yes|no) pic_mode=$withval ;; 7493 *) 7494 pic_mode=default 7495 # Look at the argument we got. We use all the common list separators. 7496 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7497 for lt_pkg in $withval; do 7498 IFS="$lt_save_ifs" 7499 if test "X$lt_pkg" = "X$lt_p"; then 7500 pic_mode=yes 7501 fi 7502 done 7503 IFS="$lt_save_ifs" 7504 ;; 7505 esac 7506else 7507 pic_mode=default 7508fi 7509 7510 7511test -z "$pic_mode" && pic_mode=default 7512 7513 7514 7515 7516 7517 7518 7519 # Check whether --enable-fast-install was given. 7520if test "${enable_fast_install+set}" = set; then : 7521 enableval=$enable_fast_install; p=${PACKAGE-default} 7522 case $enableval in 7523 yes) enable_fast_install=yes ;; 7524 no) enable_fast_install=no ;; 7525 *) 7526 enable_fast_install=no 7527 # Look at the argument we got. We use all the common list separators. 7528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7529 for pkg in $enableval; do 7530 IFS="$lt_save_ifs" 7531 if test "X$pkg" = "X$p"; then 7532 enable_fast_install=yes 7533 fi 7534 done 7535 IFS="$lt_save_ifs" 7536 ;; 7537 esac 7538else 7539 enable_fast_install=yes 7540fi 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552# This can be used to rebuild libtool when needed 7553LIBTOOL_DEPS="$ltmain" 7554 7555# Always use our own libtool. 7556LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587test -z "$LN_S" && LN_S="ln -s" 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602if test -n "${ZSH_VERSION+set}" ; then 7603 setopt NO_GLOB_SUBST 7604fi 7605 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7607$as_echo_n "checking for objdir... " >&6; } 7608if ${lt_cv_objdir+:} false; then : 7609 $as_echo_n "(cached) " >&6 7610else 7611 rm -f .libs 2>/dev/null 7612mkdir .libs 2>/dev/null 7613if test -d .libs; then 7614 lt_cv_objdir=.libs 7615else 7616 # MS-DOS does not allow filenames that begin with a dot. 7617 lt_cv_objdir=_libs 7618fi 7619rmdir .libs 2>/dev/null 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7622$as_echo "$lt_cv_objdir" >&6; } 7623objdir=$lt_cv_objdir 7624 7625 7626 7627 7628 7629cat >>confdefs.h <<_ACEOF 7630#define LT_OBJDIR "$lt_cv_objdir/" 7631_ACEOF 7632 7633 7634 7635 7636case $host_os in 7637aix3*) 7638 # AIX sometimes has problems with the GCC collect2 program. For some 7639 # reason, if we set the COLLECT_NAMES environment variable, the problems 7640 # vanish in a puff of smoke. 7641 if test "X${COLLECT_NAMES+set}" != Xset; then 7642 COLLECT_NAMES= 7643 export COLLECT_NAMES 7644 fi 7645 ;; 7646esac 7647 7648# Global variables: 7649ofile=libtool 7650can_build_shared=yes 7651 7652# All known linkers require a `.a' archive for static linking (except MSVC, 7653# which needs '.lib'). 7654libext=a 7655 7656with_gnu_ld="$lt_cv_prog_gnu_ld" 7657 7658old_CC="$CC" 7659old_CFLAGS="$CFLAGS" 7660 7661# Set sane defaults for various variables 7662test -z "$CC" && CC=cc 7663test -z "$LTCC" && LTCC=$CC 7664test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7665test -z "$LD" && LD=ld 7666test -z "$ac_objext" && ac_objext=o 7667 7668for cc_temp in $compiler""; do 7669 case $cc_temp in 7670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7672 \-*) ;; 7673 *) break;; 7674 esac 7675done 7676cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7677 7678 7679# Only perform the check for file, if the check method requires it 7680test -z "$MAGIC_CMD" && MAGIC_CMD=file 7681case $deplibs_check_method in 7682file_magic*) 7683 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7685$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7686if ${lt_cv_path_MAGIC_CMD+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 case $MAGIC_CMD in 7690[\\/*] | ?:[\\/]*) 7691 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7692 ;; 7693*) 7694 lt_save_MAGIC_CMD="$MAGIC_CMD" 7695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7696 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7697 for ac_dir in $ac_dummy; do 7698 IFS="$lt_save_ifs" 7699 test -z "$ac_dir" && ac_dir=. 7700 if test -f $ac_dir/${ac_tool_prefix}file; then 7701 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7702 if test -n "$file_magic_test_file"; then 7703 case $deplibs_check_method in 7704 "file_magic "*) 7705 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7707 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7708 $EGREP "$file_magic_regex" > /dev/null; then 7709 : 7710 else 7711 cat <<_LT_EOF 1>&2 7712 7713*** Warning: the command libtool uses to detect shared libraries, 7714*** $file_magic_cmd, produces output that libtool cannot recognize. 7715*** The result is that libtool may fail to recognize shared libraries 7716*** as such. This will affect the creation of libtool libraries that 7717*** depend on shared libraries, but programs linked with such libtool 7718*** libraries will work regardless of this problem. Nevertheless, you 7719*** may want to report the problem to your system manager and/or to 7720*** bug-libtool@gnu.org 7721 7722_LT_EOF 7723 fi ;; 7724 esac 7725 fi 7726 break 7727 fi 7728 done 7729 IFS="$lt_save_ifs" 7730 MAGIC_CMD="$lt_save_MAGIC_CMD" 7731 ;; 7732esac 7733fi 7734 7735MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7736if test -n "$MAGIC_CMD"; then 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7738$as_echo "$MAGIC_CMD" >&6; } 7739else 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7741$as_echo "no" >&6; } 7742fi 7743 7744 7745 7746 7747 7748if test -z "$lt_cv_path_MAGIC_CMD"; then 7749 if test -n "$ac_tool_prefix"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7751$as_echo_n "checking for file... " >&6; } 7752if ${lt_cv_path_MAGIC_CMD+:} false; then : 7753 $as_echo_n "(cached) " >&6 7754else 7755 case $MAGIC_CMD in 7756[\\/*] | ?:[\\/]*) 7757 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7758 ;; 7759*) 7760 lt_save_MAGIC_CMD="$MAGIC_CMD" 7761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7762 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7763 for ac_dir in $ac_dummy; do 7764 IFS="$lt_save_ifs" 7765 test -z "$ac_dir" && ac_dir=. 7766 if test -f $ac_dir/file; then 7767 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7768 if test -n "$file_magic_test_file"; then 7769 case $deplibs_check_method in 7770 "file_magic "*) 7771 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7772 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7773 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7774 $EGREP "$file_magic_regex" > /dev/null; then 7775 : 7776 else 7777 cat <<_LT_EOF 1>&2 7778 7779*** Warning: the command libtool uses to detect shared libraries, 7780*** $file_magic_cmd, produces output that libtool cannot recognize. 7781*** The result is that libtool may fail to recognize shared libraries 7782*** as such. This will affect the creation of libtool libraries that 7783*** depend on shared libraries, but programs linked with such libtool 7784*** libraries will work regardless of this problem. Nevertheless, you 7785*** may want to report the problem to your system manager and/or to 7786*** bug-libtool@gnu.org 7787 7788_LT_EOF 7789 fi ;; 7790 esac 7791 fi 7792 break 7793 fi 7794 done 7795 IFS="$lt_save_ifs" 7796 MAGIC_CMD="$lt_save_MAGIC_CMD" 7797 ;; 7798esac 7799fi 7800 7801MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7802if test -n "$MAGIC_CMD"; then 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7804$as_echo "$MAGIC_CMD" >&6; } 7805else 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7807$as_echo "no" >&6; } 7808fi 7809 7810 7811 else 7812 MAGIC_CMD=: 7813 fi 7814fi 7815 7816 fi 7817 ;; 7818esac 7819 7820# Use C for the default configuration in the libtool script 7821 7822lt_save_CC="$CC" 7823ac_ext=c 7824ac_cpp='$CPP $CPPFLAGS' 7825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7827ac_compiler_gnu=$ac_cv_c_compiler_gnu 7828 7829 7830# Source file extension for C test sources. 7831ac_ext=c 7832 7833# Object file extension for compiled C test sources. 7834objext=o 7835objext=$objext 7836 7837# Code to be used in simple compile tests 7838lt_simple_compile_test_code="int some_variable = 0;" 7839 7840# Code to be used in simple link tests 7841lt_simple_link_test_code='int main(){return(0);}' 7842 7843 7844 7845 7846 7847 7848 7849# If no C compiler was specified, use CC. 7850LTCC=${LTCC-"$CC"} 7851 7852# If no C compiler flags were specified, use CFLAGS. 7853LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7854 7855# Allow CC to be a program name with arguments. 7856compiler=$CC 7857 7858# Save the default compiler, since it gets overwritten when the other 7859# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7860compiler_DEFAULT=$CC 7861 7862# save warnings/boilerplate of simple test code 7863ac_outfile=conftest.$ac_objext 7864echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7866_lt_compiler_boilerplate=`cat conftest.err` 7867$RM conftest* 7868 7869ac_outfile=conftest.$ac_objext 7870echo "$lt_simple_link_test_code" >conftest.$ac_ext 7871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7872_lt_linker_boilerplate=`cat conftest.err` 7873$RM -r conftest* 7874 7875 7876if test -n "$compiler"; then 7877 7878lt_prog_compiler_no_builtin_flag= 7879 7880if test "$GCC" = yes; then 7881 case $cc_basename in 7882 nvcc*) 7883 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7884 *) 7885 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7886 esac 7887 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7889$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7890if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7891 $as_echo_n "(cached) " >&6 7892else 7893 lt_cv_prog_compiler_rtti_exceptions=no 7894 ac_outfile=conftest.$ac_objext 7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7896 lt_compiler_flag="-fno-rtti -fno-exceptions" 7897 # Insert the option either (1) after the last *FLAGS variable, or 7898 # (2) before a word containing "conftest.", or (3) at the end. 7899 # Note that $ac_compile itself does not contain backslashes and begins 7900 # with a dollar sign (not a hyphen), so the echo should work correctly. 7901 # The option is referenced via a variable to avoid confusing sed. 7902 lt_compile=`echo "$ac_compile" | $SED \ 7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7905 -e 's:$: $lt_compiler_flag:'` 7906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7907 (eval "$lt_compile" 2>conftest.err) 7908 ac_status=$? 7909 cat conftest.err >&5 7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7911 if (exit $ac_status) && test -s "$ac_outfile"; then 7912 # The compiler can only warn and ignore the option if not recognized 7913 # So say no if there are warnings other than the usual output. 7914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7917 lt_cv_prog_compiler_rtti_exceptions=yes 7918 fi 7919 fi 7920 $RM conftest* 7921 7922fi 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7924$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7925 7926if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7927 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7928else 7929 : 7930fi 7931 7932fi 7933 7934 7935 7936 7937 7938 7939 lt_prog_compiler_wl= 7940lt_prog_compiler_pic= 7941lt_prog_compiler_static= 7942 7943 7944 if test "$GCC" = yes; then 7945 lt_prog_compiler_wl='-Wl,' 7946 lt_prog_compiler_static='-static' 7947 7948 case $host_os in 7949 aix*) 7950 # All AIX code is PIC. 7951 if test "$host_cpu" = ia64; then 7952 # AIX 5 now supports IA64 processor 7953 lt_prog_compiler_static='-Bstatic' 7954 fi 7955 ;; 7956 7957 amigaos*) 7958 case $host_cpu in 7959 powerpc) 7960 # see comment about AmigaOS4 .so support 7961 lt_prog_compiler_pic='-fPIC' 7962 ;; 7963 m68k) 7964 # FIXME: we need at least 68020 code to build shared libraries, but 7965 # adding the `-m68020' flag to GCC prevents building anything better, 7966 # like `-m68040'. 7967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7968 ;; 7969 esac 7970 ;; 7971 7972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7973 # PIC is the default for these OSes. 7974 ;; 7975 7976 mingw* | cygwin* | pw32* | os2* | cegcc*) 7977 # This hack is so that the source file can tell whether it is being 7978 # built for inclusion in a dll (and should export symbols for example). 7979 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7980 # (--disable-auto-import) libraries 7981 lt_prog_compiler_pic='-DDLL_EXPORT' 7982 ;; 7983 7984 darwin* | rhapsody*) 7985 # PIC is the default on this platform 7986 # Common symbols not allowed in MH_DYLIB files 7987 lt_prog_compiler_pic='-fno-common' 7988 ;; 7989 7990 haiku*) 7991 # PIC is the default for Haiku. 7992 # The "-static" flag exists, but is broken. 7993 lt_prog_compiler_static= 7994 ;; 7995 7996 hpux*) 7997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7999 # sets the default TLS model and affects inlining. 8000 case $host_cpu in 8001 hppa*64*) 8002 # +Z the default 8003 ;; 8004 *) 8005 lt_prog_compiler_pic='-fPIC' 8006 ;; 8007 esac 8008 ;; 8009 8010 interix[3-9]*) 8011 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8012 # Instead, we relocate shared libraries at runtime. 8013 ;; 8014 8015 msdosdjgpp*) 8016 # Just because we use GCC doesn't mean we suddenly get shared libraries 8017 # on systems that don't support them. 8018 lt_prog_compiler_can_build_shared=no 8019 enable_shared=no 8020 ;; 8021 8022 *nto* | *qnx*) 8023 # QNX uses GNU C++, but need to define -shared option too, otherwise 8024 # it will coredump. 8025 lt_prog_compiler_pic='-fPIC -shared' 8026 ;; 8027 8028 sysv4*MP*) 8029 if test -d /usr/nec; then 8030 lt_prog_compiler_pic=-Kconform_pic 8031 fi 8032 ;; 8033 8034 *) 8035 lt_prog_compiler_pic='-fPIC' 8036 ;; 8037 esac 8038 8039 case $cc_basename in 8040 nvcc*) # Cuda Compiler Driver 2.2 8041 lt_prog_compiler_wl='-Xlinker ' 8042 if test -n "$lt_prog_compiler_pic"; then 8043 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8044 fi 8045 ;; 8046 esac 8047 else 8048 # PORTME Check for flag to pass linker flags through the system compiler. 8049 case $host_os in 8050 aix*) 8051 lt_prog_compiler_wl='-Wl,' 8052 if test "$host_cpu" = ia64; then 8053 # AIX 5 now supports IA64 processor 8054 lt_prog_compiler_static='-Bstatic' 8055 else 8056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8057 fi 8058 ;; 8059 8060 mingw* | cygwin* | pw32* | os2* | cegcc*) 8061 # This hack is so that the source file can tell whether it is being 8062 # built for inclusion in a dll (and should export symbols for example). 8063 lt_prog_compiler_pic='-DDLL_EXPORT' 8064 ;; 8065 8066 hpux9* | hpux10* | hpux11*) 8067 lt_prog_compiler_wl='-Wl,' 8068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8069 # not for PA HP-UX. 8070 case $host_cpu in 8071 hppa*64*|ia64*) 8072 # +Z the default 8073 ;; 8074 *) 8075 lt_prog_compiler_pic='+Z' 8076 ;; 8077 esac 8078 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8079 lt_prog_compiler_static='${wl}-a ${wl}archive' 8080 ;; 8081 8082 irix5* | irix6* | nonstopux*) 8083 lt_prog_compiler_wl='-Wl,' 8084 # PIC (with -KPIC) is the default. 8085 lt_prog_compiler_static='-non_shared' 8086 ;; 8087 8088 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8089 case $cc_basename in 8090 # old Intel for x86_64 which still supported -KPIC. 8091 ecc*) 8092 lt_prog_compiler_wl='-Wl,' 8093 lt_prog_compiler_pic='-KPIC' 8094 lt_prog_compiler_static='-static' 8095 ;; 8096 # icc used to be incompatible with GCC. 8097 # ICC 10 doesn't accept -KPIC any more. 8098 icc* | ifort*) 8099 lt_prog_compiler_wl='-Wl,' 8100 lt_prog_compiler_pic='-fPIC' 8101 lt_prog_compiler_static='-static' 8102 ;; 8103 # Lahey Fortran 8.1. 8104 lf95*) 8105 lt_prog_compiler_wl='-Wl,' 8106 lt_prog_compiler_pic='--shared' 8107 lt_prog_compiler_static='--static' 8108 ;; 8109 nagfor*) 8110 # NAG Fortran compiler 8111 lt_prog_compiler_wl='-Wl,-Wl,,' 8112 lt_prog_compiler_pic='-PIC' 8113 lt_prog_compiler_static='-Bstatic' 8114 ;; 8115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8116 # Portland Group compilers (*not* the Pentium gcc compiler, 8117 # which looks to be a dead project) 8118 lt_prog_compiler_wl='-Wl,' 8119 lt_prog_compiler_pic='-fpic' 8120 lt_prog_compiler_static='-Bstatic' 8121 ;; 8122 ccc*) 8123 lt_prog_compiler_wl='-Wl,' 8124 # All Alpha code is PIC. 8125 lt_prog_compiler_static='-non_shared' 8126 ;; 8127 xl* | bgxl* | bgf* | mpixl*) 8128 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8129 lt_prog_compiler_wl='-Wl,' 8130 lt_prog_compiler_pic='-qpic' 8131 lt_prog_compiler_static='-qstaticlink' 8132 ;; 8133 *) 8134 case `$CC -V 2>&1 | sed 5q` in 8135 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8136 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8137 lt_prog_compiler_pic='-KPIC' 8138 lt_prog_compiler_static='-Bstatic' 8139 lt_prog_compiler_wl='' 8140 ;; 8141 *Sun\ F* | *Sun*Fortran*) 8142 lt_prog_compiler_pic='-KPIC' 8143 lt_prog_compiler_static='-Bstatic' 8144 lt_prog_compiler_wl='-Qoption ld ' 8145 ;; 8146 *Sun\ C*) 8147 # Sun C 5.9 8148 lt_prog_compiler_pic='-KPIC' 8149 lt_prog_compiler_static='-Bstatic' 8150 lt_prog_compiler_wl='-Wl,' 8151 ;; 8152 *Intel*\ [CF]*Compiler*) 8153 lt_prog_compiler_wl='-Wl,' 8154 lt_prog_compiler_pic='-fPIC' 8155 lt_prog_compiler_static='-static' 8156 ;; 8157 *Portland\ Group*) 8158 lt_prog_compiler_wl='-Wl,' 8159 lt_prog_compiler_pic='-fpic' 8160 lt_prog_compiler_static='-Bstatic' 8161 ;; 8162 esac 8163 ;; 8164 esac 8165 ;; 8166 8167 newsos6) 8168 lt_prog_compiler_pic='-KPIC' 8169 lt_prog_compiler_static='-Bstatic' 8170 ;; 8171 8172 *nto* | *qnx*) 8173 # QNX uses GNU C++, but need to define -shared option too, otherwise 8174 # it will coredump. 8175 lt_prog_compiler_pic='-fPIC -shared' 8176 ;; 8177 8178 osf3* | osf4* | osf5*) 8179 lt_prog_compiler_wl='-Wl,' 8180 # All OSF/1 code is PIC. 8181 lt_prog_compiler_static='-non_shared' 8182 ;; 8183 8184 rdos*) 8185 lt_prog_compiler_static='-non_shared' 8186 ;; 8187 8188 solaris*) 8189 lt_prog_compiler_pic='-KPIC' 8190 lt_prog_compiler_static='-Bstatic' 8191 case $cc_basename in 8192 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8193 lt_prog_compiler_wl='-Qoption ld ';; 8194 *) 8195 lt_prog_compiler_wl='-Wl,';; 8196 esac 8197 ;; 8198 8199 sunos4*) 8200 lt_prog_compiler_wl='-Qoption ld ' 8201 lt_prog_compiler_pic='-PIC' 8202 lt_prog_compiler_static='-Bstatic' 8203 ;; 8204 8205 sysv4 | sysv4.2uw2* | sysv4.3*) 8206 lt_prog_compiler_wl='-Wl,' 8207 lt_prog_compiler_pic='-KPIC' 8208 lt_prog_compiler_static='-Bstatic' 8209 ;; 8210 8211 sysv4*MP*) 8212 if test -d /usr/nec ;then 8213 lt_prog_compiler_pic='-Kconform_pic' 8214 lt_prog_compiler_static='-Bstatic' 8215 fi 8216 ;; 8217 8218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8219 lt_prog_compiler_wl='-Wl,' 8220 lt_prog_compiler_pic='-KPIC' 8221 lt_prog_compiler_static='-Bstatic' 8222 ;; 8223 8224 unicos*) 8225 lt_prog_compiler_wl='-Wl,' 8226 lt_prog_compiler_can_build_shared=no 8227 ;; 8228 8229 uts4*) 8230 lt_prog_compiler_pic='-pic' 8231 lt_prog_compiler_static='-Bstatic' 8232 ;; 8233 8234 *) 8235 lt_prog_compiler_can_build_shared=no 8236 ;; 8237 esac 8238 fi 8239 8240case $host_os in 8241 # For platforms which do not support PIC, -DPIC is meaningless: 8242 *djgpp*) 8243 lt_prog_compiler_pic= 8244 ;; 8245 *) 8246 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8247 ;; 8248esac 8249 8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8251$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8252if ${lt_cv_prog_compiler_pic+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254else 8255 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8256fi 8257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8258$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8259lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8260 8261# 8262# Check to make sure the PIC flag actually works. 8263# 8264if test -n "$lt_prog_compiler_pic"; then 8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8266$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8267if ${lt_cv_prog_compiler_pic_works+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 lt_cv_prog_compiler_pic_works=no 8271 ac_outfile=conftest.$ac_objext 8272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8273 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8274 # Insert the option either (1) after the last *FLAGS variable, or 8275 # (2) before a word containing "conftest.", or (3) at the end. 8276 # Note that $ac_compile itself does not contain backslashes and begins 8277 # with a dollar sign (not a hyphen), so the echo should work correctly. 8278 # The option is referenced via a variable to avoid confusing sed. 8279 lt_compile=`echo "$ac_compile" | $SED \ 8280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8282 -e 's:$: $lt_compiler_flag:'` 8283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8284 (eval "$lt_compile" 2>conftest.err) 8285 ac_status=$? 8286 cat conftest.err >&5 8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8288 if (exit $ac_status) && test -s "$ac_outfile"; then 8289 # The compiler can only warn and ignore the option if not recognized 8290 # So say no if there are warnings other than the usual output. 8291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8293 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8294 lt_cv_prog_compiler_pic_works=yes 8295 fi 8296 fi 8297 $RM conftest* 8298 8299fi 8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8301$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8302 8303if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8304 case $lt_prog_compiler_pic in 8305 "" | " "*) ;; 8306 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8307 esac 8308else 8309 lt_prog_compiler_pic= 8310 lt_prog_compiler_can_build_shared=no 8311fi 8312 8313fi 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325# 8326# Check to make sure the static flag actually works. 8327# 8328wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8330$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8331if ${lt_cv_prog_compiler_static_works+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333else 8334 lt_cv_prog_compiler_static_works=no 8335 save_LDFLAGS="$LDFLAGS" 8336 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8337 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8338 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8339 # The linker can only warn and ignore the option if not recognized 8340 # So say no if there are warnings 8341 if test -s conftest.err; then 8342 # Append any errors to the config.log. 8343 cat conftest.err 1>&5 8344 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8346 if diff conftest.exp conftest.er2 >/dev/null; then 8347 lt_cv_prog_compiler_static_works=yes 8348 fi 8349 else 8350 lt_cv_prog_compiler_static_works=yes 8351 fi 8352 fi 8353 $RM -r conftest* 8354 LDFLAGS="$save_LDFLAGS" 8355 8356fi 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8358$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8359 8360if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8361 : 8362else 8363 lt_prog_compiler_static= 8364fi 8365 8366 8367 8368 8369 8370 8371 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8374if ${lt_cv_prog_compiler_c_o+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 lt_cv_prog_compiler_c_o=no 8378 $RM -r conftest 2>/dev/null 8379 mkdir conftest 8380 cd conftest 8381 mkdir out 8382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8383 8384 lt_compiler_flag="-o out/conftest2.$ac_objext" 8385 # Insert the option either (1) after the last *FLAGS variable, or 8386 # (2) before a word containing "conftest.", or (3) at the end. 8387 # Note that $ac_compile itself does not contain backslashes and begins 8388 # with a dollar sign (not a hyphen), so the echo should work correctly. 8389 lt_compile=`echo "$ac_compile" | $SED \ 8390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8392 -e 's:$: $lt_compiler_flag:'` 8393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8394 (eval "$lt_compile" 2>out/conftest.err) 8395 ac_status=$? 8396 cat out/conftest.err >&5 8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8399 then 8400 # The compiler can only warn and ignore the option if not recognized 8401 # So say no if there are warnings 8402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8405 lt_cv_prog_compiler_c_o=yes 8406 fi 8407 fi 8408 chmod u+w . 2>&5 8409 $RM conftest* 8410 # SGI C++ compiler will create directory out/ii_files/ for 8411 # template instantiation 8412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8413 $RM out/* && rmdir out 8414 cd .. 8415 $RM -r conftest 8416 $RM conftest* 8417 8418fi 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8420$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8421 8422 8423 8424 8425 8426 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8428$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8429if ${lt_cv_prog_compiler_c_o+:} false; then : 8430 $as_echo_n "(cached) " >&6 8431else 8432 lt_cv_prog_compiler_c_o=no 8433 $RM -r conftest 2>/dev/null 8434 mkdir conftest 8435 cd conftest 8436 mkdir out 8437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8438 8439 lt_compiler_flag="-o out/conftest2.$ac_objext" 8440 # Insert the option either (1) after the last *FLAGS variable, or 8441 # (2) before a word containing "conftest.", or (3) at the end. 8442 # Note that $ac_compile itself does not contain backslashes and begins 8443 # with a dollar sign (not a hyphen), so the echo should work correctly. 8444 lt_compile=`echo "$ac_compile" | $SED \ 8445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8447 -e 's:$: $lt_compiler_flag:'` 8448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8449 (eval "$lt_compile" 2>out/conftest.err) 8450 ac_status=$? 8451 cat out/conftest.err >&5 8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8453 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8454 then 8455 # The compiler can only warn and ignore the option if not recognized 8456 # So say no if there are warnings 8457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8460 lt_cv_prog_compiler_c_o=yes 8461 fi 8462 fi 8463 chmod u+w . 2>&5 8464 $RM conftest* 8465 # SGI C++ compiler will create directory out/ii_files/ for 8466 # template instantiation 8467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8468 $RM out/* && rmdir out 8469 cd .. 8470 $RM -r conftest 8471 $RM conftest* 8472 8473fi 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8475$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8476 8477 8478 8479 8480hard_links="nottested" 8481if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8482 # do not overwrite the value of need_locks provided by the user 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8484$as_echo_n "checking if we can lock with hard links... " >&6; } 8485 hard_links=yes 8486 $RM conftest* 8487 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8488 touch conftest.a 8489 ln conftest.a conftest.b 2>&5 || hard_links=no 8490 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8492$as_echo "$hard_links" >&6; } 8493 if test "$hard_links" = no; then 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8495$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8496 need_locks=warn 8497 fi 8498else 8499 need_locks=no 8500fi 8501 8502 8503 8504 8505 8506 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8508$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8509 8510 runpath_var= 8511 allow_undefined_flag= 8512 always_export_symbols=no 8513 archive_cmds= 8514 archive_expsym_cmds= 8515 compiler_needs_object=no 8516 enable_shared_with_static_runtimes=no 8517 export_dynamic_flag_spec= 8518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8519 hardcode_automatic=no 8520 hardcode_direct=no 8521 hardcode_direct_absolute=no 8522 hardcode_libdir_flag_spec= 8523 hardcode_libdir_separator= 8524 hardcode_minus_L=no 8525 hardcode_shlibpath_var=unsupported 8526 inherit_rpath=no 8527 link_all_deplibs=unknown 8528 module_cmds= 8529 module_expsym_cmds= 8530 old_archive_from_new_cmds= 8531 old_archive_from_expsyms_cmds= 8532 thread_safe_flag_spec= 8533 whole_archive_flag_spec= 8534 # include_expsyms should be a list of space-separated symbols to be *always* 8535 # included in the symbol list 8536 include_expsyms= 8537 # exclude_expsyms can be an extended regexp of symbols to exclude 8538 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8540 # as well as any symbol that contains `d'. 8541 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8543 # platforms (ab)use it in PIC code, but their linkers get confused if 8544 # the symbol is explicitly referenced. Since portable code cannot 8545 # rely on this symbol name, it's probably fine to never include it in 8546 # preloaded symbol tables. 8547 # Exclude shared library initialization/finalization symbols. 8548 extract_expsyms_cmds= 8549 8550 case $host_os in 8551 cygwin* | mingw* | pw32* | cegcc*) 8552 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8553 # When not using gcc, we currently assume that we are using 8554 # Microsoft Visual C++. 8555 if test "$GCC" != yes; then 8556 with_gnu_ld=no 8557 fi 8558 ;; 8559 interix*) 8560 # we just hope/assume this is gcc and not c89 (= MSVC++) 8561 with_gnu_ld=yes 8562 ;; 8563 openbsd*) 8564 with_gnu_ld=no 8565 ;; 8566 esac 8567 8568 ld_shlibs=yes 8569 8570 # On some targets, GNU ld is compatible enough with the native linker 8571 # that we're better off using the native interface for both. 8572 lt_use_gnu_ld_interface=no 8573 if test "$with_gnu_ld" = yes; then 8574 case $host_os in 8575 aix*) 8576 # The AIX port of GNU ld has always aspired to compatibility 8577 # with the native linker. However, as the warning in the GNU ld 8578 # block says, versions before 2.19.5* couldn't really create working 8579 # shared libraries, regardless of the interface used. 8580 case `$LD -v 2>&1` in 8581 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8582 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8583 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8584 *) 8585 lt_use_gnu_ld_interface=yes 8586 ;; 8587 esac 8588 ;; 8589 *) 8590 lt_use_gnu_ld_interface=yes 8591 ;; 8592 esac 8593 fi 8594 8595 if test "$lt_use_gnu_ld_interface" = yes; then 8596 # If archive_cmds runs LD, not CC, wlarc should be empty 8597 wlarc='${wl}' 8598 8599 # Set some defaults for GNU ld with shared library support. These 8600 # are reset later if shared libraries are not supported. Putting them 8601 # here allows them to be overridden if necessary. 8602 runpath_var=LD_RUN_PATH 8603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8604 export_dynamic_flag_spec='${wl}--export-dynamic' 8605 # ancient GNU ld didn't support --whole-archive et. al. 8606 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8607 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8608 else 8609 whole_archive_flag_spec= 8610 fi 8611 supports_anon_versioning=no 8612 case `$LD -v 2>&1` in 8613 *GNU\ gold*) supports_anon_versioning=yes ;; 8614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8617 *\ 2.11.*) ;; # other 2.11 versions 8618 *) supports_anon_versioning=yes ;; 8619 esac 8620 8621 # See if GNU ld supports shared libraries. 8622 case $host_os in 8623 aix[3-9]*) 8624 # On AIX/PPC, the GNU linker is very broken 8625 if test "$host_cpu" != ia64; then 8626 ld_shlibs=no 8627 cat <<_LT_EOF 1>&2 8628 8629*** Warning: the GNU linker, at least up to release 2.19, is reported 8630*** to be unable to reliably create shared libraries on AIX. 8631*** Therefore, libtool is disabling shared libraries support. If you 8632*** really care for shared libraries, you may want to install binutils 8633*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8634*** You will then need to restart the configuration process. 8635 8636_LT_EOF 8637 fi 8638 ;; 8639 8640 amigaos*) 8641 case $host_cpu in 8642 powerpc) 8643 # see comment about AmigaOS4 .so support 8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8645 archive_expsym_cmds='' 8646 ;; 8647 m68k) 8648 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)' 8649 hardcode_libdir_flag_spec='-L$libdir' 8650 hardcode_minus_L=yes 8651 ;; 8652 esac 8653 ;; 8654 8655 beos*) 8656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8657 allow_undefined_flag=unsupported 8658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8659 # support --undefined. This deserves some investigation. FIXME 8660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8661 else 8662 ld_shlibs=no 8663 fi 8664 ;; 8665 8666 cygwin* | mingw* | pw32* | cegcc*) 8667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8668 # as there is no search path for DLLs. 8669 hardcode_libdir_flag_spec='-L$libdir' 8670 export_dynamic_flag_spec='${wl}--export-all-symbols' 8671 allow_undefined_flag=unsupported 8672 always_export_symbols=no 8673 enable_shared_with_static_runtimes=yes 8674 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' 8675 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8676 8677 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8679 # If the export-symbols file already is a .def file (1st line 8680 # is EXPORTS), use it as is; otherwise, prepend... 8681 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8682 cp $export_symbols $output_objdir/$soname.def; 8683 else 8684 echo EXPORTS > $output_objdir/$soname.def; 8685 cat $export_symbols >> $output_objdir/$soname.def; 8686 fi~ 8687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8688 else 8689 ld_shlibs=no 8690 fi 8691 ;; 8692 8693 haiku*) 8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8695 link_all_deplibs=yes 8696 ;; 8697 8698 interix[3-9]*) 8699 hardcode_direct=no 8700 hardcode_shlibpath_var=no 8701 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8702 export_dynamic_flag_spec='${wl}-E' 8703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8704 # Instead, shared libraries are loaded at an image base (0x10000000 by 8705 # default) and relocated if they conflict, which is a slow very memory 8706 # consuming and fragmenting process. To avoid this, we pick a random, 8707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8708 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8709 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8710 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' 8711 ;; 8712 8713 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8714 tmp_diet=no 8715 if test "$host_os" = linux-dietlibc; then 8716 case $cc_basename in 8717 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8718 esac 8719 fi 8720 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8721 && test "$tmp_diet" = no 8722 then 8723 tmp_addflag=' $pic_flag' 8724 tmp_sharedflag='-shared' 8725 case $cc_basename,$host_cpu in 8726 pgcc*) # Portland Group C compiler 8727 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' 8728 tmp_addflag=' $pic_flag' 8729 ;; 8730 pgf77* | pgf90* | pgf95* | pgfortran*) 8731 # Portland Group f77 and f90 compilers 8732 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' 8733 tmp_addflag=' $pic_flag -Mnomain' ;; 8734 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8735 tmp_addflag=' -i_dynamic' ;; 8736 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8737 tmp_addflag=' -i_dynamic -nofor_main' ;; 8738 ifc* | ifort*) # Intel Fortran compiler 8739 tmp_addflag=' -nofor_main' ;; 8740 lf95*) # Lahey Fortran 8.1 8741 whole_archive_flag_spec= 8742 tmp_sharedflag='--shared' ;; 8743 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8744 tmp_sharedflag='-qmkshrobj' 8745 tmp_addflag= ;; 8746 nvcc*) # Cuda Compiler Driver 2.2 8747 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' 8748 compiler_needs_object=yes 8749 ;; 8750 esac 8751 case `$CC -V 2>&1 | sed 5q` in 8752 *Sun\ C*) # Sun C 5.9 8753 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' 8754 compiler_needs_object=yes 8755 tmp_sharedflag='-G' ;; 8756 *Sun\ F*) # Sun Fortran 8.3 8757 tmp_sharedflag='-G' ;; 8758 esac 8759 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8760 8761 if test "x$supports_anon_versioning" = xyes; then 8762 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8764 echo "local: *; };" >> $output_objdir/$libname.ver~ 8765 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8766 fi 8767 8768 case $cc_basename in 8769 xlf* | bgf* | bgxlf* | mpixlf*) 8770 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8771 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8773 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 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 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8779 fi 8780 ;; 8781 esac 8782 else 8783 ld_shlibs=no 8784 fi 8785 ;; 8786 8787 netbsd*) 8788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8789 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8790 wlarc= 8791 else 8792 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8793 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8794 fi 8795 ;; 8796 8797 solaris*) 8798 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8799 ld_shlibs=no 8800 cat <<_LT_EOF 1>&2 8801 8802*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8803*** create shared libraries on Solaris systems. Therefore, libtool 8804*** is disabling shared libraries support. We urge you to upgrade GNU 8805*** binutils to release 2.9.1 or newer. Another option is to modify 8806*** your PATH or compiler configuration so that the native linker is 8807*** used, and then restart. 8808 8809_LT_EOF 8810 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8811 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8812 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8813 else 8814 ld_shlibs=no 8815 fi 8816 ;; 8817 8818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8819 case `$LD -v 2>&1` in 8820 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8821 ld_shlibs=no 8822 cat <<_LT_EOF 1>&2 8823 8824*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8825*** reliably create shared libraries on SCO systems. Therefore, libtool 8826*** is disabling shared libraries support. We urge you to upgrade GNU 8827*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8828*** your PATH or compiler configuration so that the native linker is 8829*** used, and then restart. 8830 8831_LT_EOF 8832 ;; 8833 *) 8834 # For security reasons, it is highly recommended that you always 8835 # use absolute paths for naming shared libraries, and exclude the 8836 # DT_RUNPATH tag from executables and libraries. But doing so 8837 # requires that you compile everything twice, which is a pain. 8838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8842 else 8843 ld_shlibs=no 8844 fi 8845 ;; 8846 esac 8847 ;; 8848 8849 sunos4*) 8850 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8851 wlarc= 8852 hardcode_direct=yes 8853 hardcode_shlibpath_var=no 8854 ;; 8855 8856 *) 8857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8859 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8860 else 8861 ld_shlibs=no 8862 fi 8863 ;; 8864 esac 8865 8866 if test "$ld_shlibs" = no; then 8867 runpath_var= 8868 hardcode_libdir_flag_spec= 8869 export_dynamic_flag_spec= 8870 whole_archive_flag_spec= 8871 fi 8872 else 8873 # PORTME fill in a description of your system's linker (not GNU ld) 8874 case $host_os in 8875 aix3*) 8876 allow_undefined_flag=unsupported 8877 always_export_symbols=yes 8878 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' 8879 # Note: this linker hardcodes the directories in LIBPATH if there 8880 # are no directories specified by -L. 8881 hardcode_minus_L=yes 8882 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8883 # Neither direct hardcoding nor static linking is supported with a 8884 # broken collect2. 8885 hardcode_direct=unsupported 8886 fi 8887 ;; 8888 8889 aix[4-9]*) 8890 if test "$host_cpu" = ia64; then 8891 # On IA64, the linker does run time linking by default, so we don't 8892 # have to do anything special. 8893 aix_use_runtimelinking=no 8894 exp_sym_flag='-Bexport' 8895 no_entry_flag="" 8896 else 8897 # If we're using GNU nm, then we don't want the "-C" option. 8898 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8899 # Also, AIX nm treats weak defined symbols like other global 8900 # defined symbols, whereas GNU nm marks them as "W". 8901 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8902 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' 8903 else 8904 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' 8905 fi 8906 aix_use_runtimelinking=no 8907 8908 # Test if we are trying to use run time linking or normal 8909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8910 # need to do runtime linking. 8911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8912 for ld_flag in $LDFLAGS; do 8913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8914 aix_use_runtimelinking=yes 8915 break 8916 fi 8917 done 8918 ;; 8919 esac 8920 8921 exp_sym_flag='-bexport' 8922 no_entry_flag='-bnoentry' 8923 fi 8924 8925 # When large executables or shared objects are built, AIX ld can 8926 # have problems creating the table of contents. If linking a library 8927 # or program results in "error TOC overflow" add -mminimal-toc to 8928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8930 8931 archive_cmds='' 8932 hardcode_direct=yes 8933 hardcode_direct_absolute=yes 8934 hardcode_libdir_separator=':' 8935 link_all_deplibs=yes 8936 file_list_spec='${wl}-f,' 8937 8938 if test "$GCC" = yes; then 8939 case $host_os in aix4.[012]|aix4.[012].*) 8940 # We only want to do this on AIX 4.2 and lower, the check 8941 # below for broken collect2 doesn't work under 4.3+ 8942 collect2name=`${CC} -print-prog-name=collect2` 8943 if test -f "$collect2name" && 8944 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8945 then 8946 # We have reworked collect2 8947 : 8948 else 8949 # We have old collect2 8950 hardcode_direct=unsupported 8951 # It fails to find uninstalled libraries when the uninstalled 8952 # path is not listed in the libpath. Setting hardcode_minus_L 8953 # to unsupported forces relinking 8954 hardcode_minus_L=yes 8955 hardcode_libdir_flag_spec='-L$libdir' 8956 hardcode_libdir_separator= 8957 fi 8958 ;; 8959 esac 8960 shared_flag='-shared' 8961 if test "$aix_use_runtimelinking" = yes; then 8962 shared_flag="$shared_flag "'${wl}-G' 8963 fi 8964 else 8965 # not using gcc 8966 if test "$host_cpu" = ia64; then 8967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8968 # chokes on -Wl,-G. The following line is correct: 8969 shared_flag='-G' 8970 else 8971 if test "$aix_use_runtimelinking" = yes; then 8972 shared_flag='${wl}-G' 8973 else 8974 shared_flag='${wl}-bM:SRE' 8975 fi 8976 fi 8977 fi 8978 8979 export_dynamic_flag_spec='${wl}-bexpall' 8980 # It seems that -bexpall does not export symbols beginning with 8981 # underscore (_), so it is better to generate a list of symbols to export. 8982 always_export_symbols=yes 8983 if test "$aix_use_runtimelinking" = yes; then 8984 # Warning - without using the other runtime loading flags (-brtl), 8985 # -berok will link without error, but may produce a broken library. 8986 allow_undefined_flag='-berok' 8987 # Determine the default libpath from the value encoded in an 8988 # empty executable. 8989 if test "${lt_cv_aix_libpath+set}" = set; then 8990 aix_libpath=$lt_cv_aix_libpath 8991else 8992 if ${lt_cv_aix_libpath_+:} false; then : 8993 $as_echo_n "(cached) " >&6 8994else 8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8996/* end confdefs.h. */ 8997 8998int 8999main () 9000{ 9001 9002 ; 9003 return 0; 9004} 9005_ACEOF 9006if ac_fn_c_try_link "$LINENO"; then : 9007 9008 lt_aix_libpath_sed=' 9009 /Import File Strings/,/^$/ { 9010 /^0/ { 9011 s/^0 *\([^ ]*\) *$/\1/ 9012 p 9013 } 9014 }' 9015 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9016 # Check for a 64-bit object if we didn't find anything. 9017 if test -z "$lt_cv_aix_libpath_"; then 9018 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9019 fi 9020fi 9021rm -f core conftest.err conftest.$ac_objext \ 9022 conftest$ac_exeext conftest.$ac_ext 9023 if test -z "$lt_cv_aix_libpath_"; then 9024 lt_cv_aix_libpath_="/usr/lib:/lib" 9025 fi 9026 9027fi 9028 9029 aix_libpath=$lt_cv_aix_libpath_ 9030fi 9031 9032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9033 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" 9034 else 9035 if test "$host_cpu" = ia64; then 9036 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9037 allow_undefined_flag="-z nodefs" 9038 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" 9039 else 9040 # Determine the default libpath from the value encoded in an 9041 # empty executable. 9042 if test "${lt_cv_aix_libpath+set}" = set; then 9043 aix_libpath=$lt_cv_aix_libpath 9044else 9045 if ${lt_cv_aix_libpath_+:} false; then : 9046 $as_echo_n "(cached) " >&6 9047else 9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9049/* end confdefs.h. */ 9050 9051int 9052main () 9053{ 9054 9055 ; 9056 return 0; 9057} 9058_ACEOF 9059if ac_fn_c_try_link "$LINENO"; then : 9060 9061 lt_aix_libpath_sed=' 9062 /Import File Strings/,/^$/ { 9063 /^0/ { 9064 s/^0 *\([^ ]*\) *$/\1/ 9065 p 9066 } 9067 }' 9068 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9069 # Check for a 64-bit object if we didn't find anything. 9070 if test -z "$lt_cv_aix_libpath_"; then 9071 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9072 fi 9073fi 9074rm -f core conftest.err conftest.$ac_objext \ 9075 conftest$ac_exeext conftest.$ac_ext 9076 if test -z "$lt_cv_aix_libpath_"; then 9077 lt_cv_aix_libpath_="/usr/lib:/lib" 9078 fi 9079 9080fi 9081 9082 aix_libpath=$lt_cv_aix_libpath_ 9083fi 9084 9085 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9086 # Warning - without using the other run time loading flags, 9087 # -berok will link without error, but may produce a broken library. 9088 no_undefined_flag=' ${wl}-bernotok' 9089 allow_undefined_flag=' ${wl}-berok' 9090 if test "$with_gnu_ld" = yes; then 9091 # We only use this code for GNU lds that support --whole-archive. 9092 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9093 else 9094 # Exported symbols can be pulled into shared objects from archives 9095 whole_archive_flag_spec='$convenience' 9096 fi 9097 archive_cmds_need_lc=yes 9098 # This is similar to how AIX traditionally builds its shared libraries. 9099 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' 9100 fi 9101 fi 9102 ;; 9103 9104 amigaos*) 9105 case $host_cpu in 9106 powerpc) 9107 # see comment about AmigaOS4 .so support 9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9109 archive_expsym_cmds='' 9110 ;; 9111 m68k) 9112 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)' 9113 hardcode_libdir_flag_spec='-L$libdir' 9114 hardcode_minus_L=yes 9115 ;; 9116 esac 9117 ;; 9118 9119 bsdi[45]*) 9120 export_dynamic_flag_spec=-rdynamic 9121 ;; 9122 9123 cygwin* | mingw* | pw32* | cegcc*) 9124 # When not using gcc, we currently assume that we are using 9125 # Microsoft Visual C++. 9126 # hardcode_libdir_flag_spec is actually meaningless, as there is 9127 # no search path for DLLs. 9128 case $cc_basename in 9129 cl*) 9130 # Native MSVC 9131 hardcode_libdir_flag_spec=' ' 9132 allow_undefined_flag=unsupported 9133 always_export_symbols=yes 9134 file_list_spec='@' 9135 # Tell ltmain to make .lib files, not .a files. 9136 libext=lib 9137 # Tell ltmain to make .dll files, not .so files. 9138 shrext_cmds=".dll" 9139 # FIXME: Setting linknames here is a bad hack. 9140 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9142 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9143 else 9144 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9145 fi~ 9146 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9147 linknames=' 9148 # The linker will not automatically build a static lib if we build a DLL. 9149 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9150 enable_shared_with_static_runtimes=yes 9151 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9153 # Don't use ranlib 9154 old_postinstall_cmds='chmod 644 $oldlib' 9155 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9156 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9157 case $lt_outputfile in 9158 *.exe|*.EXE) ;; 9159 *) 9160 lt_outputfile="$lt_outputfile.exe" 9161 lt_tool_outputfile="$lt_tool_outputfile.exe" 9162 ;; 9163 esac~ 9164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9166 $RM "$lt_outputfile.manifest"; 9167 fi' 9168 ;; 9169 *) 9170 # Assume MSVC wrapper 9171 hardcode_libdir_flag_spec=' ' 9172 allow_undefined_flag=unsupported 9173 # Tell ltmain to make .lib files, not .a files. 9174 libext=lib 9175 # Tell ltmain to make .dll files, not .so files. 9176 shrext_cmds=".dll" 9177 # FIXME: Setting linknames here is a bad hack. 9178 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9179 # The linker will automatically build a .lib file if we build a DLL. 9180 old_archive_from_new_cmds='true' 9181 # FIXME: Should let the user specify the lib program. 9182 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9183 enable_shared_with_static_runtimes=yes 9184 ;; 9185 esac 9186 ;; 9187 9188 darwin* | rhapsody*) 9189 9190 9191 archive_cmds_need_lc=no 9192 hardcode_direct=no 9193 hardcode_automatic=yes 9194 hardcode_shlibpath_var=unsupported 9195 if test "$lt_cv_ld_force_load" = "yes"; then 9196 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\"`' 9197 9198 else 9199 whole_archive_flag_spec='' 9200 fi 9201 link_all_deplibs=yes 9202 allow_undefined_flag="$_lt_dar_allow_undefined" 9203 case $cc_basename in 9204 ifort*) _lt_dar_can_shared=yes ;; 9205 *) _lt_dar_can_shared=$GCC ;; 9206 esac 9207 if test "$_lt_dar_can_shared" = "yes"; then 9208 output_verbose_link_cmd=func_echo_all 9209 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9210 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9211 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}" 9212 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}" 9213 9214 else 9215 ld_shlibs=no 9216 fi 9217 9218 ;; 9219 9220 dgux*) 9221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9222 hardcode_libdir_flag_spec='-L$libdir' 9223 hardcode_shlibpath_var=no 9224 ;; 9225 9226 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9227 # support. Future versions do this automatically, but an explicit c++rt0.o 9228 # does not break anything, and helps significantly (at the cost of a little 9229 # extra space). 9230 freebsd2.2*) 9231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9232 hardcode_libdir_flag_spec='-R$libdir' 9233 hardcode_direct=yes 9234 hardcode_shlibpath_var=no 9235 ;; 9236 9237 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9238 freebsd2.*) 9239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9240 hardcode_direct=yes 9241 hardcode_minus_L=yes 9242 hardcode_shlibpath_var=no 9243 ;; 9244 9245 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9246 freebsd* | dragonfly*) 9247 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9248 hardcode_libdir_flag_spec='-R$libdir' 9249 hardcode_direct=yes 9250 hardcode_shlibpath_var=no 9251 ;; 9252 9253 hpux9*) 9254 if test "$GCC" = yes; then 9255 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' 9256 else 9257 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' 9258 fi 9259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9260 hardcode_libdir_separator=: 9261 hardcode_direct=yes 9262 9263 # hardcode_minus_L: Not really in the search PATH, 9264 # but as the default location of the library. 9265 hardcode_minus_L=yes 9266 export_dynamic_flag_spec='${wl}-E' 9267 ;; 9268 9269 hpux10*) 9270 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9271 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9272 else 9273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9274 fi 9275 if test "$with_gnu_ld" = no; then 9276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9277 hardcode_libdir_separator=: 9278 hardcode_direct=yes 9279 hardcode_direct_absolute=yes 9280 export_dynamic_flag_spec='${wl}-E' 9281 # hardcode_minus_L: Not really in the search PATH, 9282 # but as the default location of the library. 9283 hardcode_minus_L=yes 9284 fi 9285 ;; 9286 9287 hpux11*) 9288 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9289 case $host_cpu in 9290 hppa*64*) 9291 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9292 ;; 9293 ia64*) 9294 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9295 ;; 9296 *) 9297 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9298 ;; 9299 esac 9300 else 9301 case $host_cpu in 9302 hppa*64*) 9303 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9304 ;; 9305 ia64*) 9306 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9307 ;; 9308 *) 9309 9310 # Older versions of the 11.00 compiler do not understand -b yet 9311 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9313$as_echo_n "checking if $CC understands -b... " >&6; } 9314if ${lt_cv_prog_compiler__b+:} false; then : 9315 $as_echo_n "(cached) " >&6 9316else 9317 lt_cv_prog_compiler__b=no 9318 save_LDFLAGS="$LDFLAGS" 9319 LDFLAGS="$LDFLAGS -b" 9320 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9321 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9322 # The linker can only warn and ignore the option if not recognized 9323 # So say no if there are warnings 9324 if test -s conftest.err; then 9325 # Append any errors to the config.log. 9326 cat conftest.err 1>&5 9327 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9329 if diff conftest.exp conftest.er2 >/dev/null; then 9330 lt_cv_prog_compiler__b=yes 9331 fi 9332 else 9333 lt_cv_prog_compiler__b=yes 9334 fi 9335 fi 9336 $RM -r conftest* 9337 LDFLAGS="$save_LDFLAGS" 9338 9339fi 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9341$as_echo "$lt_cv_prog_compiler__b" >&6; } 9342 9343if test x"$lt_cv_prog_compiler__b" = xyes; then 9344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9345else 9346 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9347fi 9348 9349 ;; 9350 esac 9351 fi 9352 if test "$with_gnu_ld" = no; then 9353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9354 hardcode_libdir_separator=: 9355 9356 case $host_cpu in 9357 hppa*64*|ia64*) 9358 hardcode_direct=no 9359 hardcode_shlibpath_var=no 9360 ;; 9361 *) 9362 hardcode_direct=yes 9363 hardcode_direct_absolute=yes 9364 export_dynamic_flag_spec='${wl}-E' 9365 9366 # hardcode_minus_L: Not really in the search PATH, 9367 # but as the default location of the library. 9368 hardcode_minus_L=yes 9369 ;; 9370 esac 9371 fi 9372 ;; 9373 9374 irix5* | irix6* | nonstopux*) 9375 if test "$GCC" = yes; then 9376 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' 9377 # Try to use the -exported_symbol ld option, if it does not 9378 # work, assume that -exports_file does not work either and 9379 # implicitly export all symbols. 9380 # This should be the same for all languages, so no per-tag cache variable. 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9382$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9383if ${lt_cv_irix_exported_symbol+:} false; then : 9384 $as_echo_n "(cached) " >&6 9385else 9386 save_LDFLAGS="$LDFLAGS" 9387 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389/* end confdefs.h. */ 9390int foo (void) { return 0; } 9391_ACEOF 9392if ac_fn_c_try_link "$LINENO"; then : 9393 lt_cv_irix_exported_symbol=yes 9394else 9395 lt_cv_irix_exported_symbol=no 9396fi 9397rm -f core conftest.err conftest.$ac_objext \ 9398 conftest$ac_exeext conftest.$ac_ext 9399 LDFLAGS="$save_LDFLAGS" 9400fi 9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9402$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9403 if test "$lt_cv_irix_exported_symbol" = yes; then 9404 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' 9405 fi 9406 else 9407 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' 9408 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' 9409 fi 9410 archive_cmds_need_lc='no' 9411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9412 hardcode_libdir_separator=: 9413 inherit_rpath=yes 9414 link_all_deplibs=yes 9415 ;; 9416 9417 netbsd*) 9418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9419 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9420 else 9421 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9422 fi 9423 hardcode_libdir_flag_spec='-R$libdir' 9424 hardcode_direct=yes 9425 hardcode_shlibpath_var=no 9426 ;; 9427 9428 newsos6) 9429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9430 hardcode_direct=yes 9431 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9432 hardcode_libdir_separator=: 9433 hardcode_shlibpath_var=no 9434 ;; 9435 9436 *nto* | *qnx*) 9437 ;; 9438 9439 openbsd*) 9440 if test -f /usr/libexec/ld.so; then 9441 hardcode_direct=yes 9442 hardcode_shlibpath_var=no 9443 hardcode_direct_absolute=yes 9444 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9446 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9448 export_dynamic_flag_spec='${wl}-E' 9449 else 9450 case $host_os in 9451 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9453 hardcode_libdir_flag_spec='-R$libdir' 9454 ;; 9455 *) 9456 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9457 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9458 ;; 9459 esac 9460 fi 9461 else 9462 ld_shlibs=no 9463 fi 9464 ;; 9465 9466 os2*) 9467 hardcode_libdir_flag_spec='-L$libdir' 9468 hardcode_minus_L=yes 9469 allow_undefined_flag=unsupported 9470 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' 9471 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9472 ;; 9473 9474 osf3*) 9475 if test "$GCC" = yes; then 9476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9477 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' 9478 else 9479 allow_undefined_flag=' -expect_unresolved \*' 9480 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' 9481 fi 9482 archive_cmds_need_lc='no' 9483 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9484 hardcode_libdir_separator=: 9485 ;; 9486 9487 osf4* | osf5*) # as osf3* with the addition of -msym flag 9488 if test "$GCC" = yes; then 9489 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9490 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' 9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9492 else 9493 allow_undefined_flag=' -expect_unresolved \*' 9494 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' 9495 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~ 9496 $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' 9497 9498 # Both c and cxx compiler support -rpath directly 9499 hardcode_libdir_flag_spec='-rpath $libdir' 9500 fi 9501 archive_cmds_need_lc='no' 9502 hardcode_libdir_separator=: 9503 ;; 9504 9505 solaris*) 9506 no_undefined_flag=' -z defs' 9507 if test "$GCC" = yes; then 9508 wlarc='${wl}' 9509 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9510 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9511 $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' 9512 else 9513 case `$CC -V 2>&1` in 9514 *"Compilers 5.0"*) 9515 wlarc='' 9516 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9518 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9519 ;; 9520 *) 9521 wlarc='${wl}' 9522 archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9525 ;; 9526 esac 9527 fi 9528 hardcode_libdir_flag_spec='-R$libdir' 9529 hardcode_shlibpath_var=no 9530 case $host_os in 9531 solaris2.[0-5] | solaris2.[0-5].*) ;; 9532 *) 9533 # The compiler driver will combine and reorder linker options, 9534 # but understands `-z linker_flag'. GCC discards it without `$wl', 9535 # but is careful enough not to reorder. 9536 # Supported since Solaris 2.6 (maybe 2.5.1?) 9537 if test "$GCC" = yes; then 9538 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9539 else 9540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9541 fi 9542 ;; 9543 esac 9544 link_all_deplibs=yes 9545 ;; 9546 9547 sunos4*) 9548 if test "x$host_vendor" = xsequent; then 9549 # Use $CC to link under sequent, because it throws in some extra .o 9550 # files that make .init and .fini sections work. 9551 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9552 else 9553 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9554 fi 9555 hardcode_libdir_flag_spec='-L$libdir' 9556 hardcode_direct=yes 9557 hardcode_minus_L=yes 9558 hardcode_shlibpath_var=no 9559 ;; 9560 9561 sysv4) 9562 case $host_vendor in 9563 sni) 9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9565 hardcode_direct=yes # is this really true??? 9566 ;; 9567 siemens) 9568 ## LD is ld it makes a PLAMLIB 9569 ## CC just makes a GrossModule. 9570 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9571 reload_cmds='$CC -r -o $output$reload_objs' 9572 hardcode_direct=no 9573 ;; 9574 motorola) 9575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9576 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9577 ;; 9578 esac 9579 runpath_var='LD_RUN_PATH' 9580 hardcode_shlibpath_var=no 9581 ;; 9582 9583 sysv4.3*) 9584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9585 hardcode_shlibpath_var=no 9586 export_dynamic_flag_spec='-Bexport' 9587 ;; 9588 9589 sysv4*MP*) 9590 if test -d /usr/nec; then 9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9592 hardcode_shlibpath_var=no 9593 runpath_var=LD_RUN_PATH 9594 hardcode_runpath_var=yes 9595 ld_shlibs=yes 9596 fi 9597 ;; 9598 9599 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9600 no_undefined_flag='${wl}-z,text' 9601 archive_cmds_need_lc=no 9602 hardcode_shlibpath_var=no 9603 runpath_var='LD_RUN_PATH' 9604 9605 if test "$GCC" = yes; then 9606 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9607 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9608 else 9609 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9610 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9611 fi 9612 ;; 9613 9614 sysv5* | sco3.2v5* | sco5v6*) 9615 # Note: We can NOT use -z defs as we might desire, because we do not 9616 # link with -lc, and that would cause any symbols used from libc to 9617 # always be unresolved, which means just about no library would 9618 # ever link correctly. If we're not using GNU ld we use -z text 9619 # though, which does catch some bad symbols but isn't as heavy-handed 9620 # as -z defs. 9621 no_undefined_flag='${wl}-z,text' 9622 allow_undefined_flag='${wl}-z,nodefs' 9623 archive_cmds_need_lc=no 9624 hardcode_shlibpath_var=no 9625 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9626 hardcode_libdir_separator=':' 9627 link_all_deplibs=yes 9628 export_dynamic_flag_spec='${wl}-Bexport' 9629 runpath_var='LD_RUN_PATH' 9630 9631 if test "$GCC" = yes; then 9632 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9633 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9634 else 9635 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9636 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9637 fi 9638 ;; 9639 9640 uts4*) 9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9642 hardcode_libdir_flag_spec='-L$libdir' 9643 hardcode_shlibpath_var=no 9644 ;; 9645 9646 *) 9647 ld_shlibs=no 9648 ;; 9649 esac 9650 9651 if test x$host_vendor = xsni; then 9652 case $host in 9653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9654 export_dynamic_flag_spec='${wl}-Blargedynsym' 9655 ;; 9656 esac 9657 fi 9658 fi 9659 9660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9661$as_echo "$ld_shlibs" >&6; } 9662test "$ld_shlibs" = no && can_build_shared=no 9663 9664with_gnu_ld=$with_gnu_ld 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680# 9681# Do we need to explicitly link libc? 9682# 9683case "x$archive_cmds_need_lc" in 9684x|xyes) 9685 # Assume -lc should be added 9686 archive_cmds_need_lc=yes 9687 9688 if test "$enable_shared" = yes && test "$GCC" = yes; then 9689 case $archive_cmds in 9690 *'~'*) 9691 # FIXME: we may have to deal with multi-command sequences. 9692 ;; 9693 '$CC '*) 9694 # Test whether the compiler implicitly links with -lc since on some 9695 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9696 # to ld, don't add -lc before -lgcc. 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9698$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9699if ${lt_cv_archive_cmds_need_lc+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 $RM conftest* 9703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9704 9705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9706 (eval $ac_compile) 2>&5 9707 ac_status=$? 9708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9709 test $ac_status = 0; } 2>conftest.err; then 9710 soname=conftest 9711 lib=conftest 9712 libobjs=conftest.$ac_objext 9713 deplibs= 9714 wl=$lt_prog_compiler_wl 9715 pic_flag=$lt_prog_compiler_pic 9716 compiler_flags=-v 9717 linker_flags=-v 9718 verstring= 9719 output_objdir=. 9720 libname=conftest 9721 lt_save_allow_undefined_flag=$allow_undefined_flag 9722 allow_undefined_flag= 9723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9724 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9725 ac_status=$? 9726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9727 test $ac_status = 0; } 9728 then 9729 lt_cv_archive_cmds_need_lc=no 9730 else 9731 lt_cv_archive_cmds_need_lc=yes 9732 fi 9733 allow_undefined_flag=$lt_save_allow_undefined_flag 9734 else 9735 cat conftest.err 1>&5 9736 fi 9737 $RM conftest* 9738 9739fi 9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9741$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9742 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9743 ;; 9744 esac 9745 fi 9746 ;; 9747esac 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9901$as_echo_n "checking dynamic linker characteristics... " >&6; } 9902 9903if test "$GCC" = yes; then 9904 case $host_os in 9905 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9906 *) lt_awk_arg="/^libraries:/" ;; 9907 esac 9908 case $host_os in 9909 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9910 *) lt_sed_strip_eq="s,=/,/,g" ;; 9911 esac 9912 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9913 case $lt_search_path_spec in 9914 *\;*) 9915 # if the path contains ";" then we assume it to be the separator 9916 # otherwise default to the standard path separator (i.e. ":") - it is 9917 # assumed that no part of a normal pathname contains ";" but that should 9918 # okay in the real world where ";" in dirpaths is itself problematic. 9919 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9920 ;; 9921 *) 9922 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9923 ;; 9924 esac 9925 # Ok, now we have the path, separated by spaces, we can step through it 9926 # and add multilib dir if necessary. 9927 lt_tmp_lt_search_path_spec= 9928 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9929 for lt_sys_path in $lt_search_path_spec; do 9930 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9931 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9932 else 9933 test -d "$lt_sys_path" && \ 9934 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9935 fi 9936 done 9937 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9938BEGIN {RS=" "; FS="/|\n";} { 9939 lt_foo=""; 9940 lt_count=0; 9941 for (lt_i = NF; lt_i > 0; lt_i--) { 9942 if ($lt_i != "" && $lt_i != ".") { 9943 if ($lt_i == "..") { 9944 lt_count++; 9945 } else { 9946 if (lt_count == 0) { 9947 lt_foo="/" $lt_i lt_foo; 9948 } else { 9949 lt_count--; 9950 } 9951 } 9952 } 9953 } 9954 if (lt_foo != "") { lt_freq[lt_foo]++; } 9955 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9956}'` 9957 # AWK program above erroneously prepends '/' to C:/dos/paths 9958 # for these hosts. 9959 case $host_os in 9960 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9961 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9962 esac 9963 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9964else 9965 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9966fi 9967library_names_spec= 9968libname_spec='lib$name' 9969soname_spec= 9970shrext_cmds=".so" 9971postinstall_cmds= 9972postuninstall_cmds= 9973finish_cmds= 9974finish_eval= 9975shlibpath_var= 9976shlibpath_overrides_runpath=unknown 9977version_type=none 9978dynamic_linker="$host_os ld.so" 9979sys_lib_dlsearch_path_spec="/lib /usr/lib" 9980need_lib_prefix=unknown 9981hardcode_into_libs=no 9982 9983# when you set need_version to no, make sure it does not cause -set_version 9984# flags to be left without arguments 9985need_version=unknown 9986 9987case $host_os in 9988aix3*) 9989 version_type=linux # correct to gnu/linux during the next big refactor 9990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9991 shlibpath_var=LIBPATH 9992 9993 # AIX 3 has no versioning support, so we append a major version to the name. 9994 soname_spec='${libname}${release}${shared_ext}$major' 9995 ;; 9996 9997aix[4-9]*) 9998 version_type=linux # correct to gnu/linux during the next big refactor 9999 need_lib_prefix=no 10000 need_version=no 10001 hardcode_into_libs=yes 10002 if test "$host_cpu" = ia64; then 10003 # AIX 5 supports IA64 10004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10005 shlibpath_var=LD_LIBRARY_PATH 10006 else 10007 # With GCC up to 2.95.x, collect2 would create an import file 10008 # for dependence libraries. The import file would start with 10009 # the line `#! .'. This would cause the generated library to 10010 # depend on `.', always an invalid library. This was fixed in 10011 # development snapshots of GCC prior to 3.0. 10012 case $host_os in 10013 aix4 | aix4.[01] | aix4.[01].*) 10014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10015 echo ' yes ' 10016 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10017 : 10018 else 10019 can_build_shared=no 10020 fi 10021 ;; 10022 esac 10023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10024 # soname into executable. Probably we can add versioning support to 10025 # collect2, so additional links can be useful in future. 10026 if test "$aix_use_runtimelinking" = yes; then 10027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10028 # instead of lib<name>.a to let people know that these are not 10029 # typical AIX shared libraries. 10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10031 else 10032 # We preserve .a as extension for shared libraries through AIX4.2 10033 # and later when we are not doing run time linking. 10034 library_names_spec='${libname}${release}.a $libname.a' 10035 soname_spec='${libname}${release}${shared_ext}$major' 10036 fi 10037 shlibpath_var=LIBPATH 10038 fi 10039 ;; 10040 10041amigaos*) 10042 case $host_cpu in 10043 powerpc) 10044 # Since July 2007 AmigaOS4 officially supports .so libraries. 10045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10047 ;; 10048 m68k) 10049 library_names_spec='$libname.ixlibrary $libname.a' 10050 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10051 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' 10052 ;; 10053 esac 10054 ;; 10055 10056beos*) 10057 library_names_spec='${libname}${shared_ext}' 10058 dynamic_linker="$host_os ld.so" 10059 shlibpath_var=LIBRARY_PATH 10060 ;; 10061 10062bsdi[45]*) 10063 version_type=linux # correct to gnu/linux during the next big refactor 10064 need_version=no 10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10066 soname_spec='${libname}${release}${shared_ext}$major' 10067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10068 shlibpath_var=LD_LIBRARY_PATH 10069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10071 # the default ld.so.conf also contains /usr/contrib/lib and 10072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10073 # libtool to hard-code these into programs 10074 ;; 10075 10076cygwin* | mingw* | pw32* | cegcc*) 10077 version_type=windows 10078 shrext_cmds=".dll" 10079 need_version=no 10080 need_lib_prefix=no 10081 10082 case $GCC,$cc_basename in 10083 yes,*) 10084 # gcc 10085 library_names_spec='$libname.dll.a' 10086 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10087 postinstall_cmds='base_file=`basename \${file}`~ 10088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10089 dldir=$destdir/`dirname \$dlpath`~ 10090 test -d \$dldir || mkdir -p \$dldir~ 10091 $install_prog $dir/$dlname \$dldir/$dlname~ 10092 chmod a+x \$dldir/$dlname~ 10093 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10094 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10095 fi' 10096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10097 dlpath=$dir/\$dldll~ 10098 $RM \$dlpath' 10099 shlibpath_overrides_runpath=yes 10100 10101 case $host_os in 10102 cygwin*) 10103 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10104 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10105 10106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10107 ;; 10108 mingw* | cegcc*) 10109 # MinGW DLLs use traditional 'lib' prefix 10110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10111 ;; 10112 pw32*) 10113 # pw32 DLLs use 'pw' prefix rather than 'lib' 10114 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10115 ;; 10116 esac 10117 dynamic_linker='Win32 ld.exe' 10118 ;; 10119 10120 *,cl*) 10121 # Native MSVC 10122 libname_spec='$name' 10123 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10124 library_names_spec='${libname}.dll.lib' 10125 10126 case $build_os in 10127 mingw*) 10128 sys_lib_search_path_spec= 10129 lt_save_ifs=$IFS 10130 IFS=';' 10131 for lt_path in $LIB 10132 do 10133 IFS=$lt_save_ifs 10134 # Let DOS variable expansion print the short 8.3 style file name. 10135 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10136 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10137 done 10138 IFS=$lt_save_ifs 10139 # Convert to MSYS style. 10140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10141 ;; 10142 cygwin*) 10143 # Convert to unix form, then to dos form, then back to unix form 10144 # but this time dos style (no spaces!) so that the unix form looks 10145 # like /cygdrive/c/PROGRA~1:/cygdr... 10146 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10147 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10148 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10149 ;; 10150 *) 10151 sys_lib_search_path_spec="$LIB" 10152 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10153 # It is most probably a Windows format PATH. 10154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10155 else 10156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10157 fi 10158 # FIXME: find the short name or the path components, as spaces are 10159 # common. (e.g. "Program Files" -> "PROGRA~1") 10160 ;; 10161 esac 10162 10163 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10164 postinstall_cmds='base_file=`basename \${file}`~ 10165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10166 dldir=$destdir/`dirname \$dlpath`~ 10167 test -d \$dldir || mkdir -p \$dldir~ 10168 $install_prog $dir/$dlname \$dldir/$dlname' 10169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10170 dlpath=$dir/\$dldll~ 10171 $RM \$dlpath' 10172 shlibpath_overrides_runpath=yes 10173 dynamic_linker='Win32 link.exe' 10174 ;; 10175 10176 *) 10177 # Assume MSVC wrapper 10178 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10179 dynamic_linker='Win32 ld.exe' 10180 ;; 10181 esac 10182 # FIXME: first we should search . and the directory the executable is in 10183 shlibpath_var=PATH 10184 ;; 10185 10186darwin* | rhapsody*) 10187 dynamic_linker="$host_os dyld" 10188 version_type=darwin 10189 need_lib_prefix=no 10190 need_version=no 10191 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10192 soname_spec='${libname}${release}${major}$shared_ext' 10193 shlibpath_overrides_runpath=yes 10194 shlibpath_var=DYLD_LIBRARY_PATH 10195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10196 10197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10199 ;; 10200 10201dgux*) 10202 version_type=linux # correct to gnu/linux during the next big refactor 10203 need_lib_prefix=no 10204 need_version=no 10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10206 soname_spec='${libname}${release}${shared_ext}$major' 10207 shlibpath_var=LD_LIBRARY_PATH 10208 ;; 10209 10210freebsd* | dragonfly*) 10211 # DragonFly does not have aout. When/if they implement a new 10212 # versioning mechanism, adjust this. 10213 if test -x /usr/bin/objformat; then 10214 objformat=`/usr/bin/objformat` 10215 else 10216 case $host_os in 10217 freebsd[23].*) objformat=aout ;; 10218 *) objformat=elf ;; 10219 esac 10220 fi 10221 version_type=freebsd-$objformat 10222 case $version_type in 10223 freebsd-elf*) 10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10225 need_version=no 10226 need_lib_prefix=no 10227 ;; 10228 freebsd-*) 10229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10230 need_version=yes 10231 ;; 10232 esac 10233 shlibpath_var=LD_LIBRARY_PATH 10234 case $host_os in 10235 freebsd2.*) 10236 shlibpath_overrides_runpath=yes 10237 ;; 10238 freebsd3.[01]* | freebsdelf3.[01]*) 10239 shlibpath_overrides_runpath=yes 10240 hardcode_into_libs=yes 10241 ;; 10242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10244 shlibpath_overrides_runpath=no 10245 hardcode_into_libs=yes 10246 ;; 10247 *) # from 4.6 on, and DragonFly 10248 shlibpath_overrides_runpath=yes 10249 hardcode_into_libs=yes 10250 ;; 10251 esac 10252 ;; 10253 10254gnu*) 10255 version_type=linux # correct to gnu/linux during the next big refactor 10256 need_lib_prefix=no 10257 need_version=no 10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10259 soname_spec='${libname}${release}${shared_ext}$major' 10260 shlibpath_var=LD_LIBRARY_PATH 10261 shlibpath_overrides_runpath=no 10262 hardcode_into_libs=yes 10263 ;; 10264 10265haiku*) 10266 version_type=linux # correct to gnu/linux during the next big refactor 10267 need_lib_prefix=no 10268 need_version=no 10269 dynamic_linker="$host_os runtime_loader" 10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10271 soname_spec='${libname}${release}${shared_ext}$major' 10272 shlibpath_var=LIBRARY_PATH 10273 shlibpath_overrides_runpath=yes 10274 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10275 hardcode_into_libs=yes 10276 ;; 10277 10278hpux9* | hpux10* | hpux11*) 10279 # Give a soname corresponding to the major version so that dld.sl refuses to 10280 # link against other versions. 10281 version_type=sunos 10282 need_lib_prefix=no 10283 need_version=no 10284 case $host_cpu in 10285 ia64*) 10286 shrext_cmds='.so' 10287 hardcode_into_libs=yes 10288 dynamic_linker="$host_os dld.so" 10289 shlibpath_var=LD_LIBRARY_PATH 10290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10292 soname_spec='${libname}${release}${shared_ext}$major' 10293 if test "X$HPUX_IA64_MODE" = X32; then 10294 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10295 else 10296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10297 fi 10298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10299 ;; 10300 hppa*64*) 10301 shrext_cmds='.sl' 10302 hardcode_into_libs=yes 10303 dynamic_linker="$host_os dld.sl" 10304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10307 soname_spec='${libname}${release}${shared_ext}$major' 10308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10310 ;; 10311 *) 10312 shrext_cmds='.sl' 10313 dynamic_linker="$host_os dld.sl" 10314 shlibpath_var=SHLIB_PATH 10315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10317 soname_spec='${libname}${release}${shared_ext}$major' 10318 ;; 10319 esac 10320 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10321 postinstall_cmds='chmod 555 $lib' 10322 # or fails outright, so override atomically: 10323 install_override_mode=555 10324 ;; 10325 10326interix[3-9]*) 10327 version_type=linux # correct to gnu/linux during the next big refactor 10328 need_lib_prefix=no 10329 need_version=no 10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10331 soname_spec='${libname}${release}${shared_ext}$major' 10332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10333 shlibpath_var=LD_LIBRARY_PATH 10334 shlibpath_overrides_runpath=no 10335 hardcode_into_libs=yes 10336 ;; 10337 10338irix5* | irix6* | nonstopux*) 10339 case $host_os in 10340 nonstopux*) version_type=nonstopux ;; 10341 *) 10342 if test "$lt_cv_prog_gnu_ld" = yes; then 10343 version_type=linux # correct to gnu/linux during the next big refactor 10344 else 10345 version_type=irix 10346 fi ;; 10347 esac 10348 need_lib_prefix=no 10349 need_version=no 10350 soname_spec='${libname}${release}${shared_ext}$major' 10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10352 case $host_os in 10353 irix5* | nonstopux*) 10354 libsuff= shlibsuff= 10355 ;; 10356 *) 10357 case $LD in # libtool.m4 will add one of these switches to LD 10358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10359 libsuff= shlibsuff= libmagic=32-bit;; 10360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10361 libsuff=32 shlibsuff=N32 libmagic=N32;; 10362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10363 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10364 *) libsuff= shlibsuff= libmagic=never-match;; 10365 esac 10366 ;; 10367 esac 10368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10369 shlibpath_overrides_runpath=no 10370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10372 hardcode_into_libs=yes 10373 ;; 10374 10375# No shared lib support for Linux oldld, aout, or coff. 10376linux*oldld* | linux*aout* | linux*coff*) 10377 dynamic_linker=no 10378 ;; 10379 10380# This must be glibc/ELF. 10381linux* | k*bsd*-gnu | kopensolaris*-gnu) 10382 version_type=linux # correct to gnu/linux during the next big refactor 10383 need_lib_prefix=no 10384 need_version=no 10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10386 soname_spec='${libname}${release}${shared_ext}$major' 10387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10388 shlibpath_var=LD_LIBRARY_PATH 10389 shlibpath_overrides_runpath=no 10390 10391 # Some binutils ld are patched to set DT_RUNPATH 10392 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10393 $as_echo_n "(cached) " >&6 10394else 10395 lt_cv_shlibpath_overrides_runpath=no 10396 save_LDFLAGS=$LDFLAGS 10397 save_libdir=$libdir 10398 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10399 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401/* end confdefs.h. */ 10402 10403int 10404main () 10405{ 10406 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411if ac_fn_c_try_link "$LINENO"; then : 10412 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10413 lt_cv_shlibpath_overrides_runpath=yes 10414fi 10415fi 10416rm -f core conftest.err conftest.$ac_objext \ 10417 conftest$ac_exeext conftest.$ac_ext 10418 LDFLAGS=$save_LDFLAGS 10419 libdir=$save_libdir 10420 10421fi 10422 10423 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10424 10425 # This implies no fast_install, which is unacceptable. 10426 # Some rework will be needed to allow for fast_install 10427 # before this can be enabled. 10428 hardcode_into_libs=yes 10429 10430 # Add ABI-specific directories to the system library path. 10431 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10432 10433 # Append ld.so.conf contents to the search path 10434 if test -f /etc/ld.so.conf; then 10435 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' ' '` 10436 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10437 10438 fi 10439 10440 # We used to test for /lib/ld.so.1 and disable shared libraries on 10441 # powerpc, because MkLinux only supported shared libraries with the 10442 # GNU dynamic linker. Since this was broken with cross compilers, 10443 # most powerpc-linux boxes support dynamic linking these days and 10444 # people can always --disable-shared, the test was removed, and we 10445 # assume the GNU/Linux dynamic linker is in use. 10446 dynamic_linker='GNU/Linux ld.so' 10447 ;; 10448 10449netbsd*) 10450 version_type=sunos 10451 need_lib_prefix=no 10452 need_version=no 10453 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10456 dynamic_linker='NetBSD (a.out) ld.so' 10457 else 10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10459 soname_spec='${libname}${release}${shared_ext}$major' 10460 dynamic_linker='NetBSD ld.elf_so' 10461 fi 10462 shlibpath_var=LD_LIBRARY_PATH 10463 shlibpath_overrides_runpath=yes 10464 hardcode_into_libs=yes 10465 ;; 10466 10467newsos6) 10468 version_type=linux # correct to gnu/linux during the next big refactor 10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10470 shlibpath_var=LD_LIBRARY_PATH 10471 shlibpath_overrides_runpath=yes 10472 ;; 10473 10474*nto* | *qnx*) 10475 version_type=qnx 10476 need_lib_prefix=no 10477 need_version=no 10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10479 soname_spec='${libname}${release}${shared_ext}$major' 10480 shlibpath_var=LD_LIBRARY_PATH 10481 shlibpath_overrides_runpath=no 10482 hardcode_into_libs=yes 10483 dynamic_linker='ldqnx.so' 10484 ;; 10485 10486openbsd*) 10487 version_type=sunos 10488 sys_lib_dlsearch_path_spec="/usr/lib" 10489 need_lib_prefix=no 10490 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10491 case $host_os in 10492 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10493 *) need_version=no ;; 10494 esac 10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10497 shlibpath_var=LD_LIBRARY_PATH 10498 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10499 case $host_os in 10500 openbsd2.[89] | openbsd2.[89].*) 10501 shlibpath_overrides_runpath=no 10502 ;; 10503 *) 10504 shlibpath_overrides_runpath=yes 10505 ;; 10506 esac 10507 else 10508 shlibpath_overrides_runpath=yes 10509 fi 10510 ;; 10511 10512os2*) 10513 libname_spec='$name' 10514 shrext_cmds=".dll" 10515 need_lib_prefix=no 10516 library_names_spec='$libname${shared_ext} $libname.a' 10517 dynamic_linker='OS/2 ld.exe' 10518 shlibpath_var=LIBPATH 10519 ;; 10520 10521osf3* | osf4* | osf5*) 10522 version_type=osf 10523 need_lib_prefix=no 10524 need_version=no 10525 soname_spec='${libname}${release}${shared_ext}$major' 10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10527 shlibpath_var=LD_LIBRARY_PATH 10528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10530 ;; 10531 10532rdos*) 10533 dynamic_linker=no 10534 ;; 10535 10536solaris*) 10537 version_type=linux # correct to gnu/linux during the next big refactor 10538 need_lib_prefix=no 10539 need_version=no 10540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10541 soname_spec='${libname}${release}${shared_ext}$major' 10542 shlibpath_var=LD_LIBRARY_PATH 10543 shlibpath_overrides_runpath=yes 10544 hardcode_into_libs=yes 10545 # ldd complains unless libraries are executable 10546 postinstall_cmds='chmod +x $lib' 10547 ;; 10548 10549sunos4*) 10550 version_type=sunos 10551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10553 shlibpath_var=LD_LIBRARY_PATH 10554 shlibpath_overrides_runpath=yes 10555 if test "$with_gnu_ld" = yes; then 10556 need_lib_prefix=no 10557 fi 10558 need_version=yes 10559 ;; 10560 10561sysv4 | sysv4.3*) 10562 version_type=linux # correct to gnu/linux during the next big refactor 10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10564 soname_spec='${libname}${release}${shared_ext}$major' 10565 shlibpath_var=LD_LIBRARY_PATH 10566 case $host_vendor in 10567 sni) 10568 shlibpath_overrides_runpath=no 10569 need_lib_prefix=no 10570 runpath_var=LD_RUN_PATH 10571 ;; 10572 siemens) 10573 need_lib_prefix=no 10574 ;; 10575 motorola) 10576 need_lib_prefix=no 10577 need_version=no 10578 shlibpath_overrides_runpath=no 10579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10580 ;; 10581 esac 10582 ;; 10583 10584sysv4*MP*) 10585 if test -d /usr/nec ;then 10586 version_type=linux # correct to gnu/linux during the next big refactor 10587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10588 soname_spec='$libname${shared_ext}.$major' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 fi 10591 ;; 10592 10593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10594 version_type=freebsd-elf 10595 need_lib_prefix=no 10596 need_version=no 10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10598 soname_spec='${libname}${release}${shared_ext}$major' 10599 shlibpath_var=LD_LIBRARY_PATH 10600 shlibpath_overrides_runpath=yes 10601 hardcode_into_libs=yes 10602 if test "$with_gnu_ld" = yes; then 10603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10604 else 10605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10606 case $host_os in 10607 sco3.2v5*) 10608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10609 ;; 10610 esac 10611 fi 10612 sys_lib_dlsearch_path_spec='/usr/lib' 10613 ;; 10614 10615tpf*) 10616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10617 version_type=linux # correct to gnu/linux during the next big refactor 10618 need_lib_prefix=no 10619 need_version=no 10620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10621 shlibpath_var=LD_LIBRARY_PATH 10622 shlibpath_overrides_runpath=no 10623 hardcode_into_libs=yes 10624 ;; 10625 10626uts4*) 10627 version_type=linux # correct to gnu/linux during the next big refactor 10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10629 soname_spec='${libname}${release}${shared_ext}$major' 10630 shlibpath_var=LD_LIBRARY_PATH 10631 ;; 10632 10633*) 10634 dynamic_linker=no 10635 ;; 10636esac 10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10638$as_echo "$dynamic_linker" >&6; } 10639test "$dynamic_linker" = no && can_build_shared=no 10640 10641variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10642if test "$GCC" = yes; then 10643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10644fi 10645 10646if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10647 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10648fi 10649if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10650 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10651fi 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10745$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10746hardcode_action= 10747if test -n "$hardcode_libdir_flag_spec" || 10748 test -n "$runpath_var" || 10749 test "X$hardcode_automatic" = "Xyes" ; then 10750 10751 # We can hardcode non-existent directories. 10752 if test "$hardcode_direct" != no && 10753 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10754 # have to relink, otherwise we might link with an installed library 10755 # when we should be linking with a yet-to-be-installed one 10756 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10757 test "$hardcode_minus_L" != no; then 10758 # Linking always hardcodes the temporary library directory. 10759 hardcode_action=relink 10760 else 10761 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10762 hardcode_action=immediate 10763 fi 10764else 10765 # We cannot hardcode anything, or else we can only hardcode existing 10766 # directories. 10767 hardcode_action=unsupported 10768fi 10769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10770$as_echo "$hardcode_action" >&6; } 10771 10772if test "$hardcode_action" = relink || 10773 test "$inherit_rpath" = yes; then 10774 # Fast installation is not supported 10775 enable_fast_install=no 10776elif test "$shlibpath_overrides_runpath" = yes || 10777 test "$enable_shared" = no; then 10778 # Fast installation is not necessary 10779 enable_fast_install=needless 10780fi 10781 10782 10783 10784 10785 10786 10787 if test "x$enable_dlopen" != xyes; then 10788 enable_dlopen=unknown 10789 enable_dlopen_self=unknown 10790 enable_dlopen_self_static=unknown 10791else 10792 lt_cv_dlopen=no 10793 lt_cv_dlopen_libs= 10794 10795 case $host_os in 10796 beos*) 10797 lt_cv_dlopen="load_add_on" 10798 lt_cv_dlopen_libs= 10799 lt_cv_dlopen_self=yes 10800 ;; 10801 10802 mingw* | pw32* | cegcc*) 10803 lt_cv_dlopen="LoadLibrary" 10804 lt_cv_dlopen_libs= 10805 ;; 10806 10807 cygwin*) 10808 lt_cv_dlopen="dlopen" 10809 lt_cv_dlopen_libs= 10810 ;; 10811 10812 darwin*) 10813 # if libdl is installed we need to link against it 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10815$as_echo_n "checking for dlopen in -ldl... " >&6; } 10816if ${ac_cv_lib_dl_dlopen+:} false; then : 10817 $as_echo_n "(cached) " >&6 10818else 10819 ac_check_lib_save_LIBS=$LIBS 10820LIBS="-ldl $LIBS" 10821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10822/* end confdefs.h. */ 10823 10824/* Override any GCC internal prototype to avoid an error. 10825 Use char because int might match the return type of a GCC 10826 builtin and then its argument prototype would still apply. */ 10827#ifdef __cplusplus 10828extern "C" 10829#endif 10830char dlopen (); 10831int 10832main () 10833{ 10834return dlopen (); 10835 ; 10836 return 0; 10837} 10838_ACEOF 10839if ac_fn_c_try_link "$LINENO"; then : 10840 ac_cv_lib_dl_dlopen=yes 10841else 10842 ac_cv_lib_dl_dlopen=no 10843fi 10844rm -f core conftest.err conftest.$ac_objext \ 10845 conftest$ac_exeext conftest.$ac_ext 10846LIBS=$ac_check_lib_save_LIBS 10847fi 10848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10849$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10850if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10851 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10852else 10853 10854 lt_cv_dlopen="dyld" 10855 lt_cv_dlopen_libs= 10856 lt_cv_dlopen_self=yes 10857 10858fi 10859 10860 ;; 10861 10862 *) 10863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10864if test "x$ac_cv_func_shl_load" = xyes; then : 10865 lt_cv_dlopen="shl_load" 10866else 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10868$as_echo_n "checking for shl_load in -ldld... " >&6; } 10869if ${ac_cv_lib_dld_shl_load+:} false; then : 10870 $as_echo_n "(cached) " >&6 10871else 10872 ac_check_lib_save_LIBS=$LIBS 10873LIBS="-ldld $LIBS" 10874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10875/* end confdefs.h. */ 10876 10877/* Override any GCC internal prototype to avoid an error. 10878 Use char because int might match the return type of a GCC 10879 builtin and then its argument prototype would still apply. */ 10880#ifdef __cplusplus 10881extern "C" 10882#endif 10883char shl_load (); 10884int 10885main () 10886{ 10887return shl_load (); 10888 ; 10889 return 0; 10890} 10891_ACEOF 10892if ac_fn_c_try_link "$LINENO"; then : 10893 ac_cv_lib_dld_shl_load=yes 10894else 10895 ac_cv_lib_dld_shl_load=no 10896fi 10897rm -f core conftest.err conftest.$ac_objext \ 10898 conftest$ac_exeext conftest.$ac_ext 10899LIBS=$ac_check_lib_save_LIBS 10900fi 10901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10902$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10903if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10904 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10905else 10906 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10907if test "x$ac_cv_func_dlopen" = xyes; then : 10908 lt_cv_dlopen="dlopen" 10909else 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10911$as_echo_n "checking for dlopen in -ldl... " >&6; } 10912if ${ac_cv_lib_dl_dlopen+:} false; then : 10913 $as_echo_n "(cached) " >&6 10914else 10915 ac_check_lib_save_LIBS=$LIBS 10916LIBS="-ldl $LIBS" 10917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918/* end confdefs.h. */ 10919 10920/* Override any GCC internal prototype to avoid an error. 10921 Use char because int might match the return type of a GCC 10922 builtin and then its argument prototype would still apply. */ 10923#ifdef __cplusplus 10924extern "C" 10925#endif 10926char dlopen (); 10927int 10928main () 10929{ 10930return dlopen (); 10931 ; 10932 return 0; 10933} 10934_ACEOF 10935if ac_fn_c_try_link "$LINENO"; then : 10936 ac_cv_lib_dl_dlopen=yes 10937else 10938 ac_cv_lib_dl_dlopen=no 10939fi 10940rm -f core conftest.err conftest.$ac_objext \ 10941 conftest$ac_exeext conftest.$ac_ext 10942LIBS=$ac_check_lib_save_LIBS 10943fi 10944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10945$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10946if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10948else 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10950$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10951if ${ac_cv_lib_svld_dlopen+:} false; then : 10952 $as_echo_n "(cached) " >&6 10953else 10954 ac_check_lib_save_LIBS=$LIBS 10955LIBS="-lsvld $LIBS" 10956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10957/* end confdefs.h. */ 10958 10959/* Override any GCC internal prototype to avoid an error. 10960 Use char because int might match the return type of a GCC 10961 builtin and then its argument prototype would still apply. */ 10962#ifdef __cplusplus 10963extern "C" 10964#endif 10965char dlopen (); 10966int 10967main () 10968{ 10969return dlopen (); 10970 ; 10971 return 0; 10972} 10973_ACEOF 10974if ac_fn_c_try_link "$LINENO"; then : 10975 ac_cv_lib_svld_dlopen=yes 10976else 10977 ac_cv_lib_svld_dlopen=no 10978fi 10979rm -f core conftest.err conftest.$ac_objext \ 10980 conftest$ac_exeext conftest.$ac_ext 10981LIBS=$ac_check_lib_save_LIBS 10982fi 10983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10984$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10985if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10987else 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10989$as_echo_n "checking for dld_link in -ldld... " >&6; } 10990if ${ac_cv_lib_dld_dld_link+:} false; then : 10991 $as_echo_n "(cached) " >&6 10992else 10993 ac_check_lib_save_LIBS=$LIBS 10994LIBS="-ldld $LIBS" 10995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10996/* end confdefs.h. */ 10997 10998/* Override any GCC internal prototype to avoid an error. 10999 Use char because int might match the return type of a GCC 11000 builtin and then its argument prototype would still apply. */ 11001#ifdef __cplusplus 11002extern "C" 11003#endif 11004char dld_link (); 11005int 11006main () 11007{ 11008return dld_link (); 11009 ; 11010 return 0; 11011} 11012_ACEOF 11013if ac_fn_c_try_link "$LINENO"; then : 11014 ac_cv_lib_dld_dld_link=yes 11015else 11016 ac_cv_lib_dld_dld_link=no 11017fi 11018rm -f core conftest.err conftest.$ac_objext \ 11019 conftest$ac_exeext conftest.$ac_ext 11020LIBS=$ac_check_lib_save_LIBS 11021fi 11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11023$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11024if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11025 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11026fi 11027 11028 11029fi 11030 11031 11032fi 11033 11034 11035fi 11036 11037 11038fi 11039 11040 11041fi 11042 11043 ;; 11044 esac 11045 11046 if test "x$lt_cv_dlopen" != xno; then 11047 enable_dlopen=yes 11048 else 11049 enable_dlopen=no 11050 fi 11051 11052 case $lt_cv_dlopen in 11053 dlopen) 11054 save_CPPFLAGS="$CPPFLAGS" 11055 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11056 11057 save_LDFLAGS="$LDFLAGS" 11058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11059 11060 save_LIBS="$LIBS" 11061 LIBS="$lt_cv_dlopen_libs $LIBS" 11062 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11064$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11065if ${lt_cv_dlopen_self+:} false; then : 11066 $as_echo_n "(cached) " >&6 11067else 11068 if test "$cross_compiling" = yes; then : 11069 lt_cv_dlopen_self=cross 11070else 11071 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11072 lt_status=$lt_dlunknown 11073 cat > conftest.$ac_ext <<_LT_EOF 11074#line $LINENO "configure" 11075#include "confdefs.h" 11076 11077#if HAVE_DLFCN_H 11078#include <dlfcn.h> 11079#endif 11080 11081#include <stdio.h> 11082 11083#ifdef RTLD_GLOBAL 11084# define LT_DLGLOBAL RTLD_GLOBAL 11085#else 11086# ifdef DL_GLOBAL 11087# define LT_DLGLOBAL DL_GLOBAL 11088# else 11089# define LT_DLGLOBAL 0 11090# endif 11091#endif 11092 11093/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11094 find out it does not work in some platform. */ 11095#ifndef LT_DLLAZY_OR_NOW 11096# ifdef RTLD_LAZY 11097# define LT_DLLAZY_OR_NOW RTLD_LAZY 11098# else 11099# ifdef DL_LAZY 11100# define LT_DLLAZY_OR_NOW DL_LAZY 11101# else 11102# ifdef RTLD_NOW 11103# define LT_DLLAZY_OR_NOW RTLD_NOW 11104# else 11105# ifdef DL_NOW 11106# define LT_DLLAZY_OR_NOW DL_NOW 11107# else 11108# define LT_DLLAZY_OR_NOW 0 11109# endif 11110# endif 11111# endif 11112# endif 11113#endif 11114 11115/* When -fvisbility=hidden is used, assume the code has been annotated 11116 correspondingly for the symbols needed. */ 11117#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11118int fnord () __attribute__((visibility("default"))); 11119#endif 11120 11121int fnord () { return 42; } 11122int main () 11123{ 11124 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11125 int status = $lt_dlunknown; 11126 11127 if (self) 11128 { 11129 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11130 else 11131 { 11132 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11133 else puts (dlerror ()); 11134 } 11135 /* dlclose (self); */ 11136 } 11137 else 11138 puts (dlerror ()); 11139 11140 return status; 11141} 11142_LT_EOF 11143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11144 (eval $ac_link) 2>&5 11145 ac_status=$? 11146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11147 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11148 (./conftest; exit; ) >&5 2>/dev/null 11149 lt_status=$? 11150 case x$lt_status in 11151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11153 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11154 esac 11155 else : 11156 # compilation failed 11157 lt_cv_dlopen_self=no 11158 fi 11159fi 11160rm -fr conftest* 11161 11162 11163fi 11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11165$as_echo "$lt_cv_dlopen_self" >&6; } 11166 11167 if test "x$lt_cv_dlopen_self" = xyes; then 11168 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11170$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11171if ${lt_cv_dlopen_self_static+:} false; then : 11172 $as_echo_n "(cached) " >&6 11173else 11174 if test "$cross_compiling" = yes; then : 11175 lt_cv_dlopen_self_static=cross 11176else 11177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11178 lt_status=$lt_dlunknown 11179 cat > conftest.$ac_ext <<_LT_EOF 11180#line $LINENO "configure" 11181#include "confdefs.h" 11182 11183#if HAVE_DLFCN_H 11184#include <dlfcn.h> 11185#endif 11186 11187#include <stdio.h> 11188 11189#ifdef RTLD_GLOBAL 11190# define LT_DLGLOBAL RTLD_GLOBAL 11191#else 11192# ifdef DL_GLOBAL 11193# define LT_DLGLOBAL DL_GLOBAL 11194# else 11195# define LT_DLGLOBAL 0 11196# endif 11197#endif 11198 11199/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11200 find out it does not work in some platform. */ 11201#ifndef LT_DLLAZY_OR_NOW 11202# ifdef RTLD_LAZY 11203# define LT_DLLAZY_OR_NOW RTLD_LAZY 11204# else 11205# ifdef DL_LAZY 11206# define LT_DLLAZY_OR_NOW DL_LAZY 11207# else 11208# ifdef RTLD_NOW 11209# define LT_DLLAZY_OR_NOW RTLD_NOW 11210# else 11211# ifdef DL_NOW 11212# define LT_DLLAZY_OR_NOW DL_NOW 11213# else 11214# define LT_DLLAZY_OR_NOW 0 11215# endif 11216# endif 11217# endif 11218# endif 11219#endif 11220 11221/* When -fvisbility=hidden is used, assume the code has been annotated 11222 correspondingly for the symbols needed. */ 11223#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11224int fnord () __attribute__((visibility("default"))); 11225#endif 11226 11227int fnord () { return 42; } 11228int main () 11229{ 11230 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11231 int status = $lt_dlunknown; 11232 11233 if (self) 11234 { 11235 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11236 else 11237 { 11238 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11239 else puts (dlerror ()); 11240 } 11241 /* dlclose (self); */ 11242 } 11243 else 11244 puts (dlerror ()); 11245 11246 return status; 11247} 11248_LT_EOF 11249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11250 (eval $ac_link) 2>&5 11251 ac_status=$? 11252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11253 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11254 (./conftest; exit; ) >&5 2>/dev/null 11255 lt_status=$? 11256 case x$lt_status in 11257 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11258 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11259 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11260 esac 11261 else : 11262 # compilation failed 11263 lt_cv_dlopen_self_static=no 11264 fi 11265fi 11266rm -fr conftest* 11267 11268 11269fi 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11271$as_echo "$lt_cv_dlopen_self_static" >&6; } 11272 fi 11273 11274 CPPFLAGS="$save_CPPFLAGS" 11275 LDFLAGS="$save_LDFLAGS" 11276 LIBS="$save_LIBS" 11277 ;; 11278 esac 11279 11280 case $lt_cv_dlopen_self in 11281 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11282 *) enable_dlopen_self=unknown ;; 11283 esac 11284 11285 case $lt_cv_dlopen_self_static in 11286 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11287 *) enable_dlopen_self_static=unknown ;; 11288 esac 11289fi 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307striplib= 11308old_striplib= 11309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11310$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11311if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11312 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11313 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11315$as_echo "yes" >&6; } 11316else 11317# FIXME - insert some real tests, host_os isn't really good enough 11318 case $host_os in 11319 darwin*) 11320 if test -n "$STRIP" ; then 11321 striplib="$STRIP -x" 11322 old_striplib="$STRIP -S" 11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11324$as_echo "yes" >&6; } 11325 else 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11327$as_echo "no" >&6; } 11328 fi 11329 ;; 11330 *) 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11332$as_echo "no" >&6; } 11333 ;; 11334 esac 11335fi 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 # Report which library types will actually be built 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11350$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11352$as_echo "$can_build_shared" >&6; } 11353 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11355$as_echo_n "checking whether to build shared libraries... " >&6; } 11356 test "$can_build_shared" = "no" && enable_shared=no 11357 11358 # On AIX, shared libraries and static libraries use the same namespace, and 11359 # are all built from PIC. 11360 case $host_os in 11361 aix3*) 11362 test "$enable_shared" = yes && enable_static=no 11363 if test -n "$RANLIB"; then 11364 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11365 postinstall_cmds='$RANLIB $lib' 11366 fi 11367 ;; 11368 11369 aix[4-9]*) 11370 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11371 test "$enable_shared" = yes && enable_static=no 11372 fi 11373 ;; 11374 esac 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11376$as_echo "$enable_shared" >&6; } 11377 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11379$as_echo_n "checking whether to build static libraries... " >&6; } 11380 # Make sure either enable_shared or enable_static is yes. 11381 test "$enable_shared" = yes || enable_static=yes 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11383$as_echo "$enable_static" >&6; } 11384 11385 11386 11387 11388fi 11389ac_ext=c 11390ac_cpp='$CPP $CPPFLAGS' 11391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11393ac_compiler_gnu=$ac_cv_c_compiler_gnu 11394 11395CC="$lt_save_CC" 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 ac_config_commands="$ac_config_commands libtool" 11412 11413 11414 11415 11416# Only expand once: 11417 11418 11419 11420# Require xorg-macros minimum of 1.12 for DocBook external references 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11433$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11434if ${ac_cv_prog_cc_c99+:} false; then : 11435 $as_echo_n "(cached) " >&6 11436else 11437 ac_cv_prog_cc_c99=no 11438ac_save_CC=$CC 11439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11440/* end confdefs.h. */ 11441#include <stdarg.h> 11442#include <stdbool.h> 11443#include <stdlib.h> 11444#include <wchar.h> 11445#include <stdio.h> 11446 11447// Check varargs macros. These examples are taken from C99 6.10.3.5. 11448#define debug(...) fprintf (stderr, __VA_ARGS__) 11449#define showlist(...) puts (#__VA_ARGS__) 11450#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11451static void 11452test_varargs_macros (void) 11453{ 11454 int x = 1234; 11455 int y = 5678; 11456 debug ("Flag"); 11457 debug ("X = %d\n", x); 11458 showlist (The first, second, and third items.); 11459 report (x>y, "x is %d but y is %d", x, y); 11460} 11461 11462// Check long long types. 11463#define BIG64 18446744073709551615ull 11464#define BIG32 4294967295ul 11465#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11466#if !BIG_OK 11467 your preprocessor is broken; 11468#endif 11469#if BIG_OK 11470#else 11471 your preprocessor is broken; 11472#endif 11473static long long int bignum = -9223372036854775807LL; 11474static unsigned long long int ubignum = BIG64; 11475 11476struct incomplete_array 11477{ 11478 int datasize; 11479 double data[]; 11480}; 11481 11482struct named_init { 11483 int number; 11484 const wchar_t *name; 11485 double average; 11486}; 11487 11488typedef const char *ccp; 11489 11490static inline int 11491test_restrict (ccp restrict text) 11492{ 11493 // See if C++-style comments work. 11494 // Iterate through items via the restricted pointer. 11495 // Also check for declarations in for loops. 11496 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11497 continue; 11498 return 0; 11499} 11500 11501// Check varargs and va_copy. 11502static void 11503test_varargs (const char *format, ...) 11504{ 11505 va_list args; 11506 va_start (args, format); 11507 va_list args_copy; 11508 va_copy (args_copy, args); 11509 11510 const char *str; 11511 int number; 11512 float fnumber; 11513 11514 while (*format) 11515 { 11516 switch (*format++) 11517 { 11518 case 's': // string 11519 str = va_arg (args_copy, const char *); 11520 break; 11521 case 'd': // int 11522 number = va_arg (args_copy, int); 11523 break; 11524 case 'f': // float 11525 fnumber = va_arg (args_copy, double); 11526 break; 11527 default: 11528 break; 11529 } 11530 } 11531 va_end (args_copy); 11532 va_end (args); 11533} 11534 11535int 11536main () 11537{ 11538 11539 // Check bool. 11540 _Bool success = false; 11541 11542 // Check restrict. 11543 if (test_restrict ("String literal") == 0) 11544 success = true; 11545 char *restrict newvar = "Another string"; 11546 11547 // Check varargs. 11548 test_varargs ("s, d' f .", "string", 65, 34.234); 11549 test_varargs_macros (); 11550 11551 // Check flexible array members. 11552 struct incomplete_array *ia = 11553 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11554 ia->datasize = 10; 11555 for (int i = 0; i < ia->datasize; ++i) 11556 ia->data[i] = i * 1.234; 11557 11558 // Check named initializers. 11559 struct named_init ni = { 11560 .number = 34, 11561 .name = L"Test wide string", 11562 .average = 543.34343, 11563 }; 11564 11565 ni.number = 58; 11566 11567 int dynamic_array[ni.number]; 11568 dynamic_array[ni.number - 1] = 543; 11569 11570 // work around unused variable warnings 11571 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11572 || dynamic_array[ni.number - 1] != 543); 11573 11574 ; 11575 return 0; 11576} 11577_ACEOF 11578for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11579do 11580 CC="$ac_save_CC $ac_arg" 11581 if ac_fn_c_try_compile "$LINENO"; then : 11582 ac_cv_prog_cc_c99=$ac_arg 11583fi 11584rm -f core conftest.err conftest.$ac_objext 11585 test "x$ac_cv_prog_cc_c99" != "xno" && break 11586done 11587rm -f conftest.$ac_ext 11588CC=$ac_save_CC 11589 11590fi 11591# AC_CACHE_VAL 11592case "x$ac_cv_prog_cc_c99" in 11593 x) 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11595$as_echo "none needed" >&6; } ;; 11596 xno) 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11598$as_echo "unsupported" >&6; } ;; 11599 *) 11600 CC="$CC $ac_cv_prog_cc_c99" 11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11602$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11603esac 11604if test "x$ac_cv_prog_cc_c99" != xno; then : 11605 11606fi 11607 11608 11609 11610 11611 11612 11613ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11614if test "x$ac_cv_have_decl___clang__" = xyes; then : 11615 CLANGCC="yes" 11616else 11617 CLANGCC="no" 11618fi 11619 11620ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11621if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11622 INTELCC="yes" 11623else 11624 INTELCC="no" 11625fi 11626 11627ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11628if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11629 SUNCC="yes" 11630else 11631 SUNCC="no" 11632fi 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11643 if test -n "$ac_tool_prefix"; then 11644 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11645set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11647$as_echo_n "checking for $ac_word... " >&6; } 11648if ${ac_cv_path_PKG_CONFIG+:} false; then : 11649 $as_echo_n "(cached) " >&6 11650else 11651 case $PKG_CONFIG in 11652 [\\/]* | ?:[\\/]*) 11653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11654 ;; 11655 *) 11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11657for as_dir in $PATH 11658do 11659 IFS=$as_save_IFS 11660 test -z "$as_dir" && as_dir=. 11661 for ac_exec_ext in '' $ac_executable_extensions; do 11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11663 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11665 break 2 11666 fi 11667done 11668 done 11669IFS=$as_save_IFS 11670 11671 ;; 11672esac 11673fi 11674PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11675if test -n "$PKG_CONFIG"; then 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11677$as_echo "$PKG_CONFIG" >&6; } 11678else 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11680$as_echo "no" >&6; } 11681fi 11682 11683 11684fi 11685if test -z "$ac_cv_path_PKG_CONFIG"; then 11686 ac_pt_PKG_CONFIG=$PKG_CONFIG 11687 # Extract the first word of "pkg-config", so it can be a program name with args. 11688set dummy pkg-config; ac_word=$2 11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11690$as_echo_n "checking for $ac_word... " >&6; } 11691if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11692 $as_echo_n "(cached) " >&6 11693else 11694 case $ac_pt_PKG_CONFIG in 11695 [\\/]* | ?:[\\/]*) 11696 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11697 ;; 11698 *) 11699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11700for as_dir in $PATH 11701do 11702 IFS=$as_save_IFS 11703 test -z "$as_dir" && as_dir=. 11704 for ac_exec_ext in '' $ac_executable_extensions; do 11705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11708 break 2 11709 fi 11710done 11711 done 11712IFS=$as_save_IFS 11713 11714 ;; 11715esac 11716fi 11717ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11718if test -n "$ac_pt_PKG_CONFIG"; then 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11720$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11721else 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11723$as_echo "no" >&6; } 11724fi 11725 11726 if test "x$ac_pt_PKG_CONFIG" = x; then 11727 PKG_CONFIG="" 11728 else 11729 case $cross_compiling:$ac_tool_warned in 11730yes:) 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11733ac_tool_warned=yes ;; 11734esac 11735 PKG_CONFIG=$ac_pt_PKG_CONFIG 11736 fi 11737else 11738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11739fi 11740 11741fi 11742if test -n "$PKG_CONFIG"; then 11743 _pkg_min_version=0.9.0 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11745$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11746 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11748$as_echo "yes" >&6; } 11749 else 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11751$as_echo "no" >&6; } 11752 PKG_CONFIG="" 11753 fi 11754fi 11755 11756 11757 11758 11759 11760# Check whether --enable-selective-werror was given. 11761if test "${enable_selective_werror+set}" = set; then : 11762 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11763else 11764 SELECTIVE_WERROR=yes 11765fi 11766 11767 11768 11769 11770 11771# -v is too short to test reliably with XORG_TESTSET_CFLAG 11772if test "x$SUNCC" = "xyes"; then 11773 BASE_CFLAGS="-v" 11774else 11775 BASE_CFLAGS="" 11776fi 11777 11778# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792xorg_testset_save_CFLAGS="$CFLAGS" 11793 11794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11799 $as_echo_n "(cached) " >&6 11800else 11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11802/* end confdefs.h. */ 11803int i; 11804_ACEOF 11805if ac_fn_c_try_compile "$LINENO"; then : 11806 xorg_cv_cc_flag_unknown_warning_option=yes 11807else 11808 xorg_cv_cc_flag_unknown_warning_option=no 11809fi 11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11811fi 11812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11815 CFLAGS="$xorg_testset_save_CFLAGS" 11816fi 11817 11818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11821 fi 11822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11826 $as_echo_n "(cached) " >&6 11827else 11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11829/* end confdefs.h. */ 11830int i; 11831_ACEOF 11832if ac_fn_c_try_compile "$LINENO"; then : 11833 xorg_cv_cc_flag_unused_command_line_argument=yes 11834else 11835 xorg_cv_cc_flag_unused_command_line_argument=no 11836fi 11837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11838fi 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11842 CFLAGS="$xorg_testset_save_CFLAGS" 11843fi 11844 11845found="no" 11846 11847 if test $found = "no" ; then 11848 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11850 fi 11851 11852 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11854 fi 11855 11856 CFLAGS="$CFLAGS -Wall" 11857 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 11859$as_echo_n "checking if $CC supports-Wall... " >&6; } 11860 cacheid=xorg_cv_cc_flag__Wall 11861 if eval \${$cacheid+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11865/* end confdefs.h. */ 11866int i; 11867int 11868main () 11869{ 11870 11871 ; 11872 return 0; 11873} 11874_ACEOF 11875if ac_fn_c_try_link "$LINENO"; then : 11876 eval $cacheid=yes 11877else 11878 eval $cacheid=no 11879fi 11880rm -f core conftest.err conftest.$ac_objext \ 11881 conftest$ac_exeext conftest.$ac_ext 11882fi 11883 11884 11885 CFLAGS="$xorg_testset_save_CFLAGS" 11886 11887 eval supported=\$$cacheid 11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11889$as_echo "$supported" >&6; } 11890 if test "$supported" = "yes" ; then 11891 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11892 found="yes" 11893 fi 11894 fi 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910xorg_testset_save_CFLAGS="$CFLAGS" 11911 11912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11917 $as_echo_n "(cached) " >&6 11918else 11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11920/* end confdefs.h. */ 11921int i; 11922_ACEOF 11923if ac_fn_c_try_compile "$LINENO"; then : 11924 xorg_cv_cc_flag_unknown_warning_option=yes 11925else 11926 xorg_cv_cc_flag_unknown_warning_option=no 11927fi 11928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11929fi 11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11933 CFLAGS="$xorg_testset_save_CFLAGS" 11934fi 11935 11936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11939 fi 11940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11944 $as_echo_n "(cached) " >&6 11945else 11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11947/* end confdefs.h. */ 11948int i; 11949_ACEOF 11950if ac_fn_c_try_compile "$LINENO"; then : 11951 xorg_cv_cc_flag_unused_command_line_argument=yes 11952else 11953 xorg_cv_cc_flag_unused_command_line_argument=no 11954fi 11955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11956fi 11957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11960 CFLAGS="$xorg_testset_save_CFLAGS" 11961fi 11962 11963found="no" 11964 11965 if test $found = "no" ; then 11966 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11968 fi 11969 11970 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11972 fi 11973 11974 CFLAGS="$CFLAGS -Wpointer-arith" 11975 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 11977$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 11978 cacheid=xorg_cv_cc_flag__Wpointer_arith 11979 if eval \${$cacheid+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11983/* end confdefs.h. */ 11984int i; 11985int 11986main () 11987{ 11988 11989 ; 11990 return 0; 11991} 11992_ACEOF 11993if ac_fn_c_try_link "$LINENO"; then : 11994 eval $cacheid=yes 11995else 11996 eval $cacheid=no 11997fi 11998rm -f core conftest.err conftest.$ac_objext \ 11999 conftest$ac_exeext conftest.$ac_ext 12000fi 12001 12002 12003 CFLAGS="$xorg_testset_save_CFLAGS" 12004 12005 eval supported=\$$cacheid 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12007$as_echo "$supported" >&6; } 12008 if test "$supported" = "yes" ; then 12009 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12010 found="yes" 12011 fi 12012 fi 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028xorg_testset_save_CFLAGS="$CFLAGS" 12029 12030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12035 $as_echo_n "(cached) " >&6 12036else 12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039int i; 12040_ACEOF 12041if ac_fn_c_try_compile "$LINENO"; then : 12042 xorg_cv_cc_flag_unknown_warning_option=yes 12043else 12044 xorg_cv_cc_flag_unknown_warning_option=no 12045fi 12046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12047fi 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12051 CFLAGS="$xorg_testset_save_CFLAGS" 12052fi 12053 12054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12057 fi 12058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12062 $as_echo_n "(cached) " >&6 12063else 12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12065/* end confdefs.h. */ 12066int i; 12067_ACEOF 12068if ac_fn_c_try_compile "$LINENO"; then : 12069 xorg_cv_cc_flag_unused_command_line_argument=yes 12070else 12071 xorg_cv_cc_flag_unused_command_line_argument=no 12072fi 12073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12074fi 12075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12078 CFLAGS="$xorg_testset_save_CFLAGS" 12079fi 12080 12081found="no" 12082 12083 if test $found = "no" ; then 12084 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12086 fi 12087 12088 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12090 fi 12091 12092 CFLAGS="$CFLAGS -Wmissing-declarations" 12093 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 12095$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 12096 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12097 if eval \${$cacheid+:} false; then : 12098 $as_echo_n "(cached) " >&6 12099else 12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12101/* end confdefs.h. */ 12102int i; 12103int 12104main () 12105{ 12106 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111if ac_fn_c_try_link "$LINENO"; then : 12112 eval $cacheid=yes 12113else 12114 eval $cacheid=no 12115fi 12116rm -f core conftest.err conftest.$ac_objext \ 12117 conftest$ac_exeext conftest.$ac_ext 12118fi 12119 12120 12121 CFLAGS="$xorg_testset_save_CFLAGS" 12122 12123 eval supported=\$$cacheid 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12125$as_echo "$supported" >&6; } 12126 if test "$supported" = "yes" ; then 12127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12128 found="yes" 12129 fi 12130 fi 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146xorg_testset_save_CFLAGS="$CFLAGS" 12147 12148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12153 $as_echo_n "(cached) " >&6 12154else 12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12156/* end confdefs.h. */ 12157int i; 12158_ACEOF 12159if ac_fn_c_try_compile "$LINENO"; then : 12160 xorg_cv_cc_flag_unknown_warning_option=yes 12161else 12162 xorg_cv_cc_flag_unknown_warning_option=no 12163fi 12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12165fi 12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12169 CFLAGS="$xorg_testset_save_CFLAGS" 12170fi 12171 12172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12175 fi 12176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181else 12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12183/* end confdefs.h. */ 12184int i; 12185_ACEOF 12186if ac_fn_c_try_compile "$LINENO"; then : 12187 xorg_cv_cc_flag_unused_command_line_argument=yes 12188else 12189 xorg_cv_cc_flag_unused_command_line_argument=no 12190fi 12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12192fi 12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12196 CFLAGS="$xorg_testset_save_CFLAGS" 12197fi 12198 12199found="no" 12200 12201 if test $found = "no" ; then 12202 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12204 fi 12205 12206 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12208 fi 12209 12210 CFLAGS="$CFLAGS -Wformat=2" 12211 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 12213$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 12214 cacheid=xorg_cv_cc_flag__Wformat_2 12215 if eval \${$cacheid+:} false; then : 12216 $as_echo_n "(cached) " >&6 12217else 12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12219/* end confdefs.h. */ 12220int i; 12221int 12222main () 12223{ 12224 12225 ; 12226 return 0; 12227} 12228_ACEOF 12229if ac_fn_c_try_link "$LINENO"; then : 12230 eval $cacheid=yes 12231else 12232 eval $cacheid=no 12233fi 12234rm -f core conftest.err conftest.$ac_objext \ 12235 conftest$ac_exeext conftest.$ac_ext 12236fi 12237 12238 12239 CFLAGS="$xorg_testset_save_CFLAGS" 12240 12241 eval supported=\$$cacheid 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12243$as_echo "$supported" >&6; } 12244 if test "$supported" = "yes" ; then 12245 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12246 found="yes" 12247 fi 12248 fi 12249 12250 if test $found = "no" ; then 12251 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12253 fi 12254 12255 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12257 fi 12258 12259 CFLAGS="$CFLAGS -Wformat" 12260 12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 12262$as_echo_n "checking if $CC supports-Wformat... " >&6; } 12263 cacheid=xorg_cv_cc_flag__Wformat 12264 if eval \${$cacheid+:} false; then : 12265 $as_echo_n "(cached) " >&6 12266else 12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12268/* end confdefs.h. */ 12269int i; 12270int 12271main () 12272{ 12273 12274 ; 12275 return 0; 12276} 12277_ACEOF 12278if ac_fn_c_try_link "$LINENO"; then : 12279 eval $cacheid=yes 12280else 12281 eval $cacheid=no 12282fi 12283rm -f core conftest.err conftest.$ac_objext \ 12284 conftest$ac_exeext conftest.$ac_ext 12285fi 12286 12287 12288 CFLAGS="$xorg_testset_save_CFLAGS" 12289 12290 eval supported=\$$cacheid 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12292$as_echo "$supported" >&6; } 12293 if test "$supported" = "yes" ; then 12294 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12295 found="yes" 12296 fi 12297 fi 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315xorg_testset_save_CFLAGS="$CFLAGS" 12316 12317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12322 $as_echo_n "(cached) " >&6 12323else 12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12325/* end confdefs.h. */ 12326int i; 12327_ACEOF 12328if ac_fn_c_try_compile "$LINENO"; then : 12329 xorg_cv_cc_flag_unknown_warning_option=yes 12330else 12331 xorg_cv_cc_flag_unknown_warning_option=no 12332fi 12333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12334fi 12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12338 CFLAGS="$xorg_testset_save_CFLAGS" 12339fi 12340 12341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12344 fi 12345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12349 $as_echo_n "(cached) " >&6 12350else 12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12352/* end confdefs.h. */ 12353int i; 12354_ACEOF 12355if ac_fn_c_try_compile "$LINENO"; then : 12356 xorg_cv_cc_flag_unused_command_line_argument=yes 12357else 12358 xorg_cv_cc_flag_unused_command_line_argument=no 12359fi 12360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12361fi 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12365 CFLAGS="$xorg_testset_save_CFLAGS" 12366fi 12367 12368found="no" 12369 12370 if test $found = "no" ; then 12371 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12373 fi 12374 12375 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12377 fi 12378 12379 CFLAGS="$CFLAGS -Wstrict-prototypes" 12380 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 12382$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 12383 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12384 if eval \${$cacheid+:} false; then : 12385 $as_echo_n "(cached) " >&6 12386else 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388/* end confdefs.h. */ 12389int i; 12390int 12391main () 12392{ 12393 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_link "$LINENO"; then : 12399 eval $cacheid=yes 12400else 12401 eval $cacheid=no 12402fi 12403rm -f core conftest.err conftest.$ac_objext \ 12404 conftest$ac_exeext conftest.$ac_ext 12405fi 12406 12407 12408 CFLAGS="$xorg_testset_save_CFLAGS" 12409 12410 eval supported=\$$cacheid 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12412$as_echo "$supported" >&6; } 12413 if test "$supported" = "yes" ; then 12414 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12415 found="yes" 12416 fi 12417 fi 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433xorg_testset_save_CFLAGS="$CFLAGS" 12434 12435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443/* end confdefs.h. */ 12444int i; 12445_ACEOF 12446if ac_fn_c_try_compile "$LINENO"; then : 12447 xorg_cv_cc_flag_unknown_warning_option=yes 12448else 12449 xorg_cv_cc_flag_unknown_warning_option=no 12450fi 12451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12452fi 12453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12456 CFLAGS="$xorg_testset_save_CFLAGS" 12457fi 12458 12459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12462 fi 12463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12467 $as_echo_n "(cached) " >&6 12468else 12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12470/* end confdefs.h. */ 12471int i; 12472_ACEOF 12473if ac_fn_c_try_compile "$LINENO"; then : 12474 xorg_cv_cc_flag_unused_command_line_argument=yes 12475else 12476 xorg_cv_cc_flag_unused_command_line_argument=no 12477fi 12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12479fi 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12483 CFLAGS="$xorg_testset_save_CFLAGS" 12484fi 12485 12486found="no" 12487 12488 if test $found = "no" ; then 12489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12491 fi 12492 12493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12495 fi 12496 12497 CFLAGS="$CFLAGS -Wmissing-prototypes" 12498 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 12500$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 12501 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12502 if eval \${$cacheid+:} false; then : 12503 $as_echo_n "(cached) " >&6 12504else 12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507int i; 12508int 12509main () 12510{ 12511 12512 ; 12513 return 0; 12514} 12515_ACEOF 12516if ac_fn_c_try_link "$LINENO"; then : 12517 eval $cacheid=yes 12518else 12519 eval $cacheid=no 12520fi 12521rm -f core conftest.err conftest.$ac_objext \ 12522 conftest$ac_exeext conftest.$ac_ext 12523fi 12524 12525 12526 CFLAGS="$xorg_testset_save_CFLAGS" 12527 12528 eval supported=\$$cacheid 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12530$as_echo "$supported" >&6; } 12531 if test "$supported" = "yes" ; then 12532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12533 found="yes" 12534 fi 12535 fi 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551xorg_testset_save_CFLAGS="$CFLAGS" 12552 12553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12558 $as_echo_n "(cached) " >&6 12559else 12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562int i; 12563_ACEOF 12564if ac_fn_c_try_compile "$LINENO"; then : 12565 xorg_cv_cc_flag_unknown_warning_option=yes 12566else 12567 xorg_cv_cc_flag_unknown_warning_option=no 12568fi 12569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12570fi 12571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12574 CFLAGS="$xorg_testset_save_CFLAGS" 12575fi 12576 12577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12580 fi 12581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12585 $as_echo_n "(cached) " >&6 12586else 12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12588/* end confdefs.h. */ 12589int i; 12590_ACEOF 12591if ac_fn_c_try_compile "$LINENO"; then : 12592 xorg_cv_cc_flag_unused_command_line_argument=yes 12593else 12594 xorg_cv_cc_flag_unused_command_line_argument=no 12595fi 12596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12597fi 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12601 CFLAGS="$xorg_testset_save_CFLAGS" 12602fi 12603 12604found="no" 12605 12606 if test $found = "no" ; then 12607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12609 fi 12610 12611 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12613 fi 12614 12615 CFLAGS="$CFLAGS -Wnested-externs" 12616 12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 12618$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 12619 cacheid=xorg_cv_cc_flag__Wnested_externs 12620 if eval \${$cacheid+:} false; then : 12621 $as_echo_n "(cached) " >&6 12622else 12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12624/* end confdefs.h. */ 12625int i; 12626int 12627main () 12628{ 12629 12630 ; 12631 return 0; 12632} 12633_ACEOF 12634if ac_fn_c_try_link "$LINENO"; then : 12635 eval $cacheid=yes 12636else 12637 eval $cacheid=no 12638fi 12639rm -f core conftest.err conftest.$ac_objext \ 12640 conftest$ac_exeext conftest.$ac_ext 12641fi 12642 12643 12644 CFLAGS="$xorg_testset_save_CFLAGS" 12645 12646 eval supported=\$$cacheid 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12648$as_echo "$supported" >&6; } 12649 if test "$supported" = "yes" ; then 12650 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12651 found="yes" 12652 fi 12653 fi 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669xorg_testset_save_CFLAGS="$CFLAGS" 12670 12671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12676 $as_echo_n "(cached) " >&6 12677else 12678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12679/* end confdefs.h. */ 12680int i; 12681_ACEOF 12682if ac_fn_c_try_compile "$LINENO"; then : 12683 xorg_cv_cc_flag_unknown_warning_option=yes 12684else 12685 xorg_cv_cc_flag_unknown_warning_option=no 12686fi 12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12688fi 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12692 CFLAGS="$xorg_testset_save_CFLAGS" 12693fi 12694 12695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12698 fi 12699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12703 $as_echo_n "(cached) " >&6 12704else 12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12706/* end confdefs.h. */ 12707int i; 12708_ACEOF 12709if ac_fn_c_try_compile "$LINENO"; then : 12710 xorg_cv_cc_flag_unused_command_line_argument=yes 12711else 12712 xorg_cv_cc_flag_unused_command_line_argument=no 12713fi 12714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12715fi 12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12719 CFLAGS="$xorg_testset_save_CFLAGS" 12720fi 12721 12722found="no" 12723 12724 if test $found = "no" ; then 12725 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12727 fi 12728 12729 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12731 fi 12732 12733 CFLAGS="$CFLAGS -Wbad-function-cast" 12734 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 12736$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 12737 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12738 if eval \${$cacheid+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740else 12741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12742/* end confdefs.h. */ 12743int i; 12744int 12745main () 12746{ 12747 12748 ; 12749 return 0; 12750} 12751_ACEOF 12752if ac_fn_c_try_link "$LINENO"; then : 12753 eval $cacheid=yes 12754else 12755 eval $cacheid=no 12756fi 12757rm -f core conftest.err conftest.$ac_objext \ 12758 conftest$ac_exeext conftest.$ac_ext 12759fi 12760 12761 12762 CFLAGS="$xorg_testset_save_CFLAGS" 12763 12764 eval supported=\$$cacheid 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12766$as_echo "$supported" >&6; } 12767 if test "$supported" = "yes" ; then 12768 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12769 found="yes" 12770 fi 12771 fi 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787xorg_testset_save_CFLAGS="$CFLAGS" 12788 12789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12794 $as_echo_n "(cached) " >&6 12795else 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798int i; 12799_ACEOF 12800if ac_fn_c_try_compile "$LINENO"; then : 12801 xorg_cv_cc_flag_unknown_warning_option=yes 12802else 12803 xorg_cv_cc_flag_unknown_warning_option=no 12804fi 12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12806fi 12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12810 CFLAGS="$xorg_testset_save_CFLAGS" 12811fi 12812 12813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12816 fi 12817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12821 $as_echo_n "(cached) " >&6 12822else 12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12824/* end confdefs.h. */ 12825int i; 12826_ACEOF 12827if ac_fn_c_try_compile "$LINENO"; then : 12828 xorg_cv_cc_flag_unused_command_line_argument=yes 12829else 12830 xorg_cv_cc_flag_unused_command_line_argument=no 12831fi 12832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12833fi 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12837 CFLAGS="$xorg_testset_save_CFLAGS" 12838fi 12839 12840found="no" 12841 12842 if test $found = "no" ; then 12843 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12845 fi 12846 12847 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12849 fi 12850 12851 CFLAGS="$CFLAGS -Wold-style-definition" 12852 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 12854$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 12855 cacheid=xorg_cv_cc_flag__Wold_style_definition 12856 if eval \${$cacheid+:} false; then : 12857 $as_echo_n "(cached) " >&6 12858else 12859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12860/* end confdefs.h. */ 12861int i; 12862int 12863main () 12864{ 12865 12866 ; 12867 return 0; 12868} 12869_ACEOF 12870if ac_fn_c_try_link "$LINENO"; then : 12871 eval $cacheid=yes 12872else 12873 eval $cacheid=no 12874fi 12875rm -f core conftest.err conftest.$ac_objext \ 12876 conftest$ac_exeext conftest.$ac_ext 12877fi 12878 12879 12880 CFLAGS="$xorg_testset_save_CFLAGS" 12881 12882 eval supported=\$$cacheid 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12884$as_echo "$supported" >&6; } 12885 if test "$supported" = "yes" ; then 12886 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12887 found="yes" 12888 fi 12889 fi 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905xorg_testset_save_CFLAGS="$CFLAGS" 12906 12907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12912 $as_echo_n "(cached) " >&6 12913else 12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12915/* end confdefs.h. */ 12916int i; 12917_ACEOF 12918if ac_fn_c_try_compile "$LINENO"; then : 12919 xorg_cv_cc_flag_unknown_warning_option=yes 12920else 12921 xorg_cv_cc_flag_unknown_warning_option=no 12922fi 12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12928 CFLAGS="$xorg_testset_save_CFLAGS" 12929fi 12930 12931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12934 fi 12935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940else 12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12942/* end confdefs.h. */ 12943int i; 12944_ACEOF 12945if ac_fn_c_try_compile "$LINENO"; then : 12946 xorg_cv_cc_flag_unused_command_line_argument=yes 12947else 12948 xorg_cv_cc_flag_unused_command_line_argument=no 12949fi 12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12951fi 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12955 CFLAGS="$xorg_testset_save_CFLAGS" 12956fi 12957 12958found="no" 12959 12960 if test $found = "no" ; then 12961 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12963 fi 12964 12965 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12967 fi 12968 12969 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 12970 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 12972$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 12973 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 12974 if eval \${$cacheid+:} false; then : 12975 $as_echo_n "(cached) " >&6 12976else 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979int i; 12980int 12981main () 12982{ 12983 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_c_try_link "$LINENO"; then : 12989 eval $cacheid=yes 12990else 12991 eval $cacheid=no 12992fi 12993rm -f core conftest.err conftest.$ac_objext \ 12994 conftest$ac_exeext conftest.$ac_ext 12995fi 12996 12997 12998 CFLAGS="$xorg_testset_save_CFLAGS" 12999 13000 eval supported=\$$cacheid 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13002$as_echo "$supported" >&6; } 13003 if test "$supported" = "yes" ; then 13004 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13005 found="yes" 13006 fi 13007 fi 13008 13009 13010 13011 13012 13013# This chunk adds additional warnings that could catch undesired effects. 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027xorg_testset_save_CFLAGS="$CFLAGS" 13028 13029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13034 $as_echo_n "(cached) " >&6 13035else 13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13037/* end confdefs.h. */ 13038int i; 13039_ACEOF 13040if ac_fn_c_try_compile "$LINENO"; then : 13041 xorg_cv_cc_flag_unknown_warning_option=yes 13042else 13043 xorg_cv_cc_flag_unknown_warning_option=no 13044fi 13045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13046fi 13047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13050 CFLAGS="$xorg_testset_save_CFLAGS" 13051fi 13052 13053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13056 fi 13057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13061 $as_echo_n "(cached) " >&6 13062else 13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13064/* end confdefs.h. */ 13065int i; 13066_ACEOF 13067if ac_fn_c_try_compile "$LINENO"; then : 13068 xorg_cv_cc_flag_unused_command_line_argument=yes 13069else 13070 xorg_cv_cc_flag_unused_command_line_argument=no 13071fi 13072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13073fi 13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13077 CFLAGS="$xorg_testset_save_CFLAGS" 13078fi 13079 13080found="no" 13081 13082 if test $found = "no" ; then 13083 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13085 fi 13086 13087 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13089 fi 13090 13091 CFLAGS="$CFLAGS -Wunused" 13092 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 13094$as_echo_n "checking if $CC supports-Wunused... " >&6; } 13095 cacheid=xorg_cv_cc_flag__Wunused 13096 if eval \${$cacheid+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13100/* end confdefs.h. */ 13101int i; 13102int 13103main () 13104{ 13105 13106 ; 13107 return 0; 13108} 13109_ACEOF 13110if ac_fn_c_try_link "$LINENO"; then : 13111 eval $cacheid=yes 13112else 13113 eval $cacheid=no 13114fi 13115rm -f core conftest.err conftest.$ac_objext \ 13116 conftest$ac_exeext conftest.$ac_ext 13117fi 13118 13119 13120 CFLAGS="$xorg_testset_save_CFLAGS" 13121 13122 eval supported=\$$cacheid 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13124$as_echo "$supported" >&6; } 13125 if test "$supported" = "yes" ; then 13126 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13127 found="yes" 13128 fi 13129 fi 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145xorg_testset_save_CFLAGS="$CFLAGS" 13146 13147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13152 $as_echo_n "(cached) " >&6 13153else 13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13155/* end confdefs.h. */ 13156int i; 13157_ACEOF 13158if ac_fn_c_try_compile "$LINENO"; then : 13159 xorg_cv_cc_flag_unknown_warning_option=yes 13160else 13161 xorg_cv_cc_flag_unknown_warning_option=no 13162fi 13163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13164fi 13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13168 CFLAGS="$xorg_testset_save_CFLAGS" 13169fi 13170 13171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13174 fi 13175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13179 $as_echo_n "(cached) " >&6 13180else 13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13182/* end confdefs.h. */ 13183int i; 13184_ACEOF 13185if ac_fn_c_try_compile "$LINENO"; then : 13186 xorg_cv_cc_flag_unused_command_line_argument=yes 13187else 13188 xorg_cv_cc_flag_unused_command_line_argument=no 13189fi 13190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13191fi 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13195 CFLAGS="$xorg_testset_save_CFLAGS" 13196fi 13197 13198found="no" 13199 13200 if test $found = "no" ; then 13201 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13203 fi 13204 13205 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13207 fi 13208 13209 CFLAGS="$CFLAGS -Wuninitialized" 13210 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 13212$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 13213 cacheid=xorg_cv_cc_flag__Wuninitialized 13214 if eval \${$cacheid+:} false; then : 13215 $as_echo_n "(cached) " >&6 13216else 13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13218/* end confdefs.h. */ 13219int i; 13220int 13221main () 13222{ 13223 13224 ; 13225 return 0; 13226} 13227_ACEOF 13228if ac_fn_c_try_link "$LINENO"; then : 13229 eval $cacheid=yes 13230else 13231 eval $cacheid=no 13232fi 13233rm -f core conftest.err conftest.$ac_objext \ 13234 conftest$ac_exeext conftest.$ac_ext 13235fi 13236 13237 13238 CFLAGS="$xorg_testset_save_CFLAGS" 13239 13240 eval supported=\$$cacheid 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13242$as_echo "$supported" >&6; } 13243 if test "$supported" = "yes" ; then 13244 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13245 found="yes" 13246 fi 13247 fi 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263xorg_testset_save_CFLAGS="$CFLAGS" 13264 13265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13270 $as_echo_n "(cached) " >&6 13271else 13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13273/* end confdefs.h. */ 13274int i; 13275_ACEOF 13276if ac_fn_c_try_compile "$LINENO"; then : 13277 xorg_cv_cc_flag_unknown_warning_option=yes 13278else 13279 xorg_cv_cc_flag_unknown_warning_option=no 13280fi 13281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13282fi 13283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13286 CFLAGS="$xorg_testset_save_CFLAGS" 13287fi 13288 13289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13292 fi 13293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13297 $as_echo_n "(cached) " >&6 13298else 13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13300/* end confdefs.h. */ 13301int i; 13302_ACEOF 13303if ac_fn_c_try_compile "$LINENO"; then : 13304 xorg_cv_cc_flag_unused_command_line_argument=yes 13305else 13306 xorg_cv_cc_flag_unused_command_line_argument=no 13307fi 13308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13309fi 13310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13313 CFLAGS="$xorg_testset_save_CFLAGS" 13314fi 13315 13316found="no" 13317 13318 if test $found = "no" ; then 13319 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13321 fi 13322 13323 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13325 fi 13326 13327 CFLAGS="$CFLAGS -Wshadow" 13328 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 13330$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 13331 cacheid=xorg_cv_cc_flag__Wshadow 13332 if eval \${$cacheid+:} false; then : 13333 $as_echo_n "(cached) " >&6 13334else 13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13336/* end confdefs.h. */ 13337int i; 13338int 13339main () 13340{ 13341 13342 ; 13343 return 0; 13344} 13345_ACEOF 13346if ac_fn_c_try_link "$LINENO"; then : 13347 eval $cacheid=yes 13348else 13349 eval $cacheid=no 13350fi 13351rm -f core conftest.err conftest.$ac_objext \ 13352 conftest$ac_exeext conftest.$ac_ext 13353fi 13354 13355 13356 CFLAGS="$xorg_testset_save_CFLAGS" 13357 13358 eval supported=\$$cacheid 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13360$as_echo "$supported" >&6; } 13361 if test "$supported" = "yes" ; then 13362 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13363 found="yes" 13364 fi 13365 fi 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381xorg_testset_save_CFLAGS="$CFLAGS" 13382 13383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13386$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13387if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389else 13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13391/* end confdefs.h. */ 13392int i; 13393_ACEOF 13394if ac_fn_c_try_compile "$LINENO"; then : 13395 xorg_cv_cc_flag_unknown_warning_option=yes 13396else 13397 xorg_cv_cc_flag_unknown_warning_option=no 13398fi 13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13400fi 13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13402$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13404 CFLAGS="$xorg_testset_save_CFLAGS" 13405fi 13406 13407if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13410 fi 13411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13413$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13414if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13415 $as_echo_n "(cached) " >&6 13416else 13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13418/* end confdefs.h. */ 13419int i; 13420_ACEOF 13421if ac_fn_c_try_compile "$LINENO"; then : 13422 xorg_cv_cc_flag_unused_command_line_argument=yes 13423else 13424 xorg_cv_cc_flag_unused_command_line_argument=no 13425fi 13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13427fi 13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13429$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13431 CFLAGS="$xorg_testset_save_CFLAGS" 13432fi 13433 13434found="no" 13435 13436 if test $found = "no" ; then 13437 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13439 fi 13440 13441 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13443 fi 13444 13445 CFLAGS="$CFLAGS -Wcast-qual" 13446 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 13448$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 13449 cacheid=xorg_cv_cc_flag__Wcast_qual 13450 if eval \${$cacheid+:} false; then : 13451 $as_echo_n "(cached) " >&6 13452else 13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13454/* end confdefs.h. */ 13455int i; 13456int 13457main () 13458{ 13459 13460 ; 13461 return 0; 13462} 13463_ACEOF 13464if ac_fn_c_try_link "$LINENO"; then : 13465 eval $cacheid=yes 13466else 13467 eval $cacheid=no 13468fi 13469rm -f core conftest.err conftest.$ac_objext \ 13470 conftest$ac_exeext conftest.$ac_ext 13471fi 13472 13473 13474 CFLAGS="$xorg_testset_save_CFLAGS" 13475 13476 eval supported=\$$cacheid 13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13478$as_echo "$supported" >&6; } 13479 if test "$supported" = "yes" ; then 13480 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13481 found="yes" 13482 fi 13483 fi 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499xorg_testset_save_CFLAGS="$CFLAGS" 13500 13501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510int i; 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO"; then : 13513 xorg_cv_cc_flag_unknown_warning_option=yes 13514else 13515 xorg_cv_cc_flag_unknown_warning_option=no 13516fi 13517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13518fi 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13522 CFLAGS="$xorg_testset_save_CFLAGS" 13523fi 13524 13525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13528 fi 13529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537int i; 13538_ACEOF 13539if ac_fn_c_try_compile "$LINENO"; then : 13540 xorg_cv_cc_flag_unused_command_line_argument=yes 13541else 13542 xorg_cv_cc_flag_unused_command_line_argument=no 13543fi 13544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13545fi 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13549 CFLAGS="$xorg_testset_save_CFLAGS" 13550fi 13551 13552found="no" 13553 13554 if test $found = "no" ; then 13555 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13557 fi 13558 13559 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13561 fi 13562 13563 CFLAGS="$CFLAGS -Wmissing-noreturn" 13564 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 13566$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 13567 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13568 if eval \${$cacheid+:} false; then : 13569 $as_echo_n "(cached) " >&6 13570else 13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13572/* end confdefs.h. */ 13573int i; 13574int 13575main () 13576{ 13577 13578 ; 13579 return 0; 13580} 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO"; then : 13583 eval $cacheid=yes 13584else 13585 eval $cacheid=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext \ 13588 conftest$ac_exeext conftest.$ac_ext 13589fi 13590 13591 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593 13594 eval supported=\$$cacheid 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13596$as_echo "$supported" >&6; } 13597 if test "$supported" = "yes" ; then 13598 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13599 found="yes" 13600 fi 13601 fi 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617xorg_testset_save_CFLAGS="$CFLAGS" 13618 13619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628int i; 13629_ACEOF 13630if ac_fn_c_try_compile "$LINENO"; then : 13631 xorg_cv_cc_flag_unknown_warning_option=yes 13632else 13633 xorg_cv_cc_flag_unknown_warning_option=no 13634fi 13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13636fi 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13640 CFLAGS="$xorg_testset_save_CFLAGS" 13641fi 13642 13643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13646 fi 13647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13651 $as_echo_n "(cached) " >&6 13652else 13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13654/* end confdefs.h. */ 13655int i; 13656_ACEOF 13657if ac_fn_c_try_compile "$LINENO"; then : 13658 xorg_cv_cc_flag_unused_command_line_argument=yes 13659else 13660 xorg_cv_cc_flag_unused_command_line_argument=no 13661fi 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13663fi 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13667 CFLAGS="$xorg_testset_save_CFLAGS" 13668fi 13669 13670found="no" 13671 13672 if test $found = "no" ; then 13673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13675 fi 13676 13677 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13679 fi 13680 13681 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13682 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 13684$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 13685 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13686 if eval \${$cacheid+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13690/* end confdefs.h. */ 13691int i; 13692int 13693main () 13694{ 13695 13696 ; 13697 return 0; 13698} 13699_ACEOF 13700if ac_fn_c_try_link "$LINENO"; then : 13701 eval $cacheid=yes 13702else 13703 eval $cacheid=no 13704fi 13705rm -f core conftest.err conftest.$ac_objext \ 13706 conftest$ac_exeext conftest.$ac_ext 13707fi 13708 13709 13710 CFLAGS="$xorg_testset_save_CFLAGS" 13711 13712 eval supported=\$$cacheid 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13714$as_echo "$supported" >&6; } 13715 if test "$supported" = "yes" ; then 13716 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13717 found="yes" 13718 fi 13719 fi 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735xorg_testset_save_CFLAGS="$CFLAGS" 13736 13737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13745/* end confdefs.h. */ 13746int i; 13747_ACEOF 13748if ac_fn_c_try_compile "$LINENO"; then : 13749 xorg_cv_cc_flag_unknown_warning_option=yes 13750else 13751 xorg_cv_cc_flag_unknown_warning_option=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754fi 13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13758 CFLAGS="$xorg_testset_save_CFLAGS" 13759fi 13760 13761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13764 fi 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13772/* end confdefs.h. */ 13773int i; 13774_ACEOF 13775if ac_fn_c_try_compile "$LINENO"; then : 13776 xorg_cv_cc_flag_unused_command_line_argument=yes 13777else 13778 xorg_cv_cc_flag_unused_command_line_argument=no 13779fi 13780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13781fi 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13784 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13785 CFLAGS="$xorg_testset_save_CFLAGS" 13786fi 13787 13788found="no" 13789 13790 if test $found = "no" ; then 13791 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13793 fi 13794 13795 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13797 fi 13798 13799 CFLAGS="$CFLAGS -Wredundant-decls" 13800 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 13802$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 13803 cacheid=xorg_cv_cc_flag__Wredundant_decls 13804 if eval \${$cacheid+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809int i; 13810int 13811main () 13812{ 13813 13814 ; 13815 return 0; 13816} 13817_ACEOF 13818if ac_fn_c_try_link "$LINENO"; then : 13819 eval $cacheid=yes 13820else 13821 eval $cacheid=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext \ 13824 conftest$ac_exeext conftest.$ac_ext 13825fi 13826 13827 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829 13830 eval supported=\$$cacheid 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13832$as_echo "$supported" >&6; } 13833 if test "$supported" = "yes" ; then 13834 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13835 found="yes" 13836 fi 13837 fi 13838 13839 13840 13841# These are currently disabled because they are noisy. They will be enabled 13842# in the future once the codebase is sufficiently modernized to silence 13843# them. For now, I don't want them to drown out the other warnings. 13844# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13845# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13846# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13847 13848# Turn some warnings into errors, so we don't accidently get successful builds 13849# when there are problems that should be fixed. 13850 13851if test "x$SELECTIVE_WERROR" = "xyes" ; then 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865xorg_testset_save_CFLAGS="$CFLAGS" 13866 13867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13872 $as_echo_n "(cached) " >&6 13873else 13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875/* end confdefs.h. */ 13876int i; 13877_ACEOF 13878if ac_fn_c_try_compile "$LINENO"; then : 13879 xorg_cv_cc_flag_unknown_warning_option=yes 13880else 13881 xorg_cv_cc_flag_unknown_warning_option=no 13882fi 13883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13884fi 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13888 CFLAGS="$xorg_testset_save_CFLAGS" 13889fi 13890 13891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13894 fi 13895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900else 13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13902/* end confdefs.h. */ 13903int i; 13904_ACEOF 13905if ac_fn_c_try_compile "$LINENO"; then : 13906 xorg_cv_cc_flag_unused_command_line_argument=yes 13907else 13908 xorg_cv_cc_flag_unused_command_line_argument=no 13909fi 13910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13911fi 13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13915 CFLAGS="$xorg_testset_save_CFLAGS" 13916fi 13917 13918found="no" 13919 13920 if test $found = "no" ; then 13921 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13923 fi 13924 13925 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13927 fi 13928 13929 CFLAGS="$CFLAGS -Werror=implicit" 13930 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 13932$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 13933 cacheid=xorg_cv_cc_flag__Werror_implicit 13934 if eval \${$cacheid+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939int i; 13940int 13941main () 13942{ 13943 13944 ; 13945 return 0; 13946} 13947_ACEOF 13948if ac_fn_c_try_link "$LINENO"; then : 13949 eval $cacheid=yes 13950else 13951 eval $cacheid=no 13952fi 13953rm -f core conftest.err conftest.$ac_objext \ 13954 conftest$ac_exeext conftest.$ac_ext 13955fi 13956 13957 13958 CFLAGS="$xorg_testset_save_CFLAGS" 13959 13960 eval supported=\$$cacheid 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13962$as_echo "$supported" >&6; } 13963 if test "$supported" = "yes" ; then 13964 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 13965 found="yes" 13966 fi 13967 fi 13968 13969 if test $found = "no" ; then 13970 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13972 fi 13973 13974 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13976 fi 13977 13978 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 13979 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 13981$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 13982 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 13983 if eval \${$cacheid+:} false; then : 13984 $as_echo_n "(cached) " >&6 13985else 13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13987/* end confdefs.h. */ 13988int i; 13989int 13990main () 13991{ 13992 13993 ; 13994 return 0; 13995} 13996_ACEOF 13997if ac_fn_c_try_link "$LINENO"; then : 13998 eval $cacheid=yes 13999else 14000 eval $cacheid=no 14001fi 14002rm -f core conftest.err conftest.$ac_objext \ 14003 conftest$ac_exeext conftest.$ac_ext 14004fi 14005 14006 14007 CFLAGS="$xorg_testset_save_CFLAGS" 14008 14009 eval supported=\$$cacheid 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14011$as_echo "$supported" >&6; } 14012 if test "$supported" = "yes" ; then 14013 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14014 found="yes" 14015 fi 14016 fi 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032xorg_testset_save_CFLAGS="$CFLAGS" 14033 14034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14039 $as_echo_n "(cached) " >&6 14040else 14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14042/* end confdefs.h. */ 14043int i; 14044_ACEOF 14045if ac_fn_c_try_compile "$LINENO"; then : 14046 xorg_cv_cc_flag_unknown_warning_option=yes 14047else 14048 xorg_cv_cc_flag_unknown_warning_option=no 14049fi 14050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14051fi 14052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14055 CFLAGS="$xorg_testset_save_CFLAGS" 14056fi 14057 14058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14061 fi 14062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14069/* end confdefs.h. */ 14070int i; 14071_ACEOF 14072if ac_fn_c_try_compile "$LINENO"; then : 14073 xorg_cv_cc_flag_unused_command_line_argument=yes 14074else 14075 xorg_cv_cc_flag_unused_command_line_argument=no 14076fi 14077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14082 CFLAGS="$xorg_testset_save_CFLAGS" 14083fi 14084 14085found="no" 14086 14087 if test $found = "no" ; then 14088 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14090 fi 14091 14092 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14094 fi 14095 14096 CFLAGS="$CFLAGS -Werror=nonnull" 14097 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 14099$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 14100 cacheid=xorg_cv_cc_flag__Werror_nonnull 14101 if eval \${$cacheid+:} false; then : 14102 $as_echo_n "(cached) " >&6 14103else 14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14105/* end confdefs.h. */ 14106int i; 14107int 14108main () 14109{ 14110 14111 ; 14112 return 0; 14113} 14114_ACEOF 14115if ac_fn_c_try_link "$LINENO"; then : 14116 eval $cacheid=yes 14117else 14118 eval $cacheid=no 14119fi 14120rm -f core conftest.err conftest.$ac_objext \ 14121 conftest$ac_exeext conftest.$ac_ext 14122fi 14123 14124 14125 CFLAGS="$xorg_testset_save_CFLAGS" 14126 14127 eval supported=\$$cacheid 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14129$as_echo "$supported" >&6; } 14130 if test "$supported" = "yes" ; then 14131 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14132 found="yes" 14133 fi 14134 fi 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150xorg_testset_save_CFLAGS="$CFLAGS" 14151 14152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14157 $as_echo_n "(cached) " >&6 14158else 14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161int i; 14162_ACEOF 14163if ac_fn_c_try_compile "$LINENO"; then : 14164 xorg_cv_cc_flag_unknown_warning_option=yes 14165else 14166 xorg_cv_cc_flag_unknown_warning_option=no 14167fi 14168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14169fi 14170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14173 CFLAGS="$xorg_testset_save_CFLAGS" 14174fi 14175 14176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14179 fi 14180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14187/* end confdefs.h. */ 14188int i; 14189_ACEOF 14190if ac_fn_c_try_compile "$LINENO"; then : 14191 xorg_cv_cc_flag_unused_command_line_argument=yes 14192else 14193 xorg_cv_cc_flag_unused_command_line_argument=no 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14196fi 14197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14200 CFLAGS="$xorg_testset_save_CFLAGS" 14201fi 14202 14203found="no" 14204 14205 if test $found = "no" ; then 14206 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14208 fi 14209 14210 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14212 fi 14213 14214 CFLAGS="$CFLAGS -Werror=init-self" 14215 14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 14217$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 14218 cacheid=xorg_cv_cc_flag__Werror_init_self 14219 if eval \${$cacheid+:} false; then : 14220 $as_echo_n "(cached) " >&6 14221else 14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14223/* end confdefs.h. */ 14224int i; 14225int 14226main () 14227{ 14228 14229 ; 14230 return 0; 14231} 14232_ACEOF 14233if ac_fn_c_try_link "$LINENO"; then : 14234 eval $cacheid=yes 14235else 14236 eval $cacheid=no 14237fi 14238rm -f core conftest.err conftest.$ac_objext \ 14239 conftest$ac_exeext conftest.$ac_ext 14240fi 14241 14242 14243 CFLAGS="$xorg_testset_save_CFLAGS" 14244 14245 eval supported=\$$cacheid 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14247$as_echo "$supported" >&6; } 14248 if test "$supported" = "yes" ; then 14249 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14250 found="yes" 14251 fi 14252 fi 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268xorg_testset_save_CFLAGS="$CFLAGS" 14269 14270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14275 $as_echo_n "(cached) " >&6 14276else 14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14278/* end confdefs.h. */ 14279int i; 14280_ACEOF 14281if ac_fn_c_try_compile "$LINENO"; then : 14282 xorg_cv_cc_flag_unknown_warning_option=yes 14283else 14284 xorg_cv_cc_flag_unknown_warning_option=no 14285fi 14286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14287fi 14288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14291 CFLAGS="$xorg_testset_save_CFLAGS" 14292fi 14293 14294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14297 fi 14298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14302 $as_echo_n "(cached) " >&6 14303else 14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14305/* end confdefs.h. */ 14306int i; 14307_ACEOF 14308if ac_fn_c_try_compile "$LINENO"; then : 14309 xorg_cv_cc_flag_unused_command_line_argument=yes 14310else 14311 xorg_cv_cc_flag_unused_command_line_argument=no 14312fi 14313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14314fi 14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14318 CFLAGS="$xorg_testset_save_CFLAGS" 14319fi 14320 14321found="no" 14322 14323 if test $found = "no" ; then 14324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14326 fi 14327 14328 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14330 fi 14331 14332 CFLAGS="$CFLAGS -Werror=main" 14333 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 14335$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 14336 cacheid=xorg_cv_cc_flag__Werror_main 14337 if eval \${$cacheid+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339else 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342int i; 14343int 14344main () 14345{ 14346 14347 ; 14348 return 0; 14349} 14350_ACEOF 14351if ac_fn_c_try_link "$LINENO"; then : 14352 eval $cacheid=yes 14353else 14354 eval $cacheid=no 14355fi 14356rm -f core conftest.err conftest.$ac_objext \ 14357 conftest$ac_exeext conftest.$ac_ext 14358fi 14359 14360 14361 CFLAGS="$xorg_testset_save_CFLAGS" 14362 14363 eval supported=\$$cacheid 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14365$as_echo "$supported" >&6; } 14366 if test "$supported" = "yes" ; then 14367 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14368 found="yes" 14369 fi 14370 fi 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386xorg_testset_save_CFLAGS="$CFLAGS" 14387 14388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14393 $as_echo_n "(cached) " >&6 14394else 14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14396/* end confdefs.h. */ 14397int i; 14398_ACEOF 14399if ac_fn_c_try_compile "$LINENO"; then : 14400 xorg_cv_cc_flag_unknown_warning_option=yes 14401else 14402 xorg_cv_cc_flag_unknown_warning_option=no 14403fi 14404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14405fi 14406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14409 CFLAGS="$xorg_testset_save_CFLAGS" 14410fi 14411 14412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14415 fi 14416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14420 $as_echo_n "(cached) " >&6 14421else 14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14423/* end confdefs.h. */ 14424int i; 14425_ACEOF 14426if ac_fn_c_try_compile "$LINENO"; then : 14427 xorg_cv_cc_flag_unused_command_line_argument=yes 14428else 14429 xorg_cv_cc_flag_unused_command_line_argument=no 14430fi 14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14432fi 14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14436 CFLAGS="$xorg_testset_save_CFLAGS" 14437fi 14438 14439found="no" 14440 14441 if test $found = "no" ; then 14442 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14444 fi 14445 14446 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14448 fi 14449 14450 CFLAGS="$CFLAGS -Werror=missing-braces" 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 14453$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 14454 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14455 if eval \${$cacheid+:} false; then : 14456 $as_echo_n "(cached) " >&6 14457else 14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459/* end confdefs.h. */ 14460int i; 14461int 14462main () 14463{ 14464 14465 ; 14466 return 0; 14467} 14468_ACEOF 14469if ac_fn_c_try_link "$LINENO"; then : 14470 eval $cacheid=yes 14471else 14472 eval $cacheid=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext \ 14475 conftest$ac_exeext conftest.$ac_ext 14476fi 14477 14478 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480 14481 eval supported=\$$cacheid 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14483$as_echo "$supported" >&6; } 14484 if test "$supported" = "yes" ; then 14485 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14486 found="yes" 14487 fi 14488 fi 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504xorg_testset_save_CFLAGS="$CFLAGS" 14505 14506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14511 $as_echo_n "(cached) " >&6 14512else 14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14514/* end confdefs.h. */ 14515int i; 14516_ACEOF 14517if ac_fn_c_try_compile "$LINENO"; then : 14518 xorg_cv_cc_flag_unknown_warning_option=yes 14519else 14520 xorg_cv_cc_flag_unknown_warning_option=no 14521fi 14522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14523fi 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14527 CFLAGS="$xorg_testset_save_CFLAGS" 14528fi 14529 14530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14533 fi 14534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14538 $as_echo_n "(cached) " >&6 14539else 14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14541/* end confdefs.h. */ 14542int i; 14543_ACEOF 14544if ac_fn_c_try_compile "$LINENO"; then : 14545 xorg_cv_cc_flag_unused_command_line_argument=yes 14546else 14547 xorg_cv_cc_flag_unused_command_line_argument=no 14548fi 14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14550fi 14551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14554 CFLAGS="$xorg_testset_save_CFLAGS" 14555fi 14556 14557found="no" 14558 14559 if test $found = "no" ; then 14560 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14562 fi 14563 14564 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14566 fi 14567 14568 CFLAGS="$CFLAGS -Werror=sequence-point" 14569 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 14571$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 14572 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14573 if eval \${$cacheid+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579int 14580main () 14581{ 14582 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587if ac_fn_c_try_link "$LINENO"; then : 14588 eval $cacheid=yes 14589else 14590 eval $cacheid=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext \ 14593 conftest$ac_exeext conftest.$ac_ext 14594fi 14595 14596 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598 14599 eval supported=\$$cacheid 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14601$as_echo "$supported" >&6; } 14602 if test "$supported" = "yes" ; then 14603 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14604 found="yes" 14605 fi 14606 fi 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622xorg_testset_save_CFLAGS="$CFLAGS" 14623 14624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14629 $as_echo_n "(cached) " >&6 14630else 14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14632/* end confdefs.h. */ 14633int i; 14634_ACEOF 14635if ac_fn_c_try_compile "$LINENO"; then : 14636 xorg_cv_cc_flag_unknown_warning_option=yes 14637else 14638 xorg_cv_cc_flag_unknown_warning_option=no 14639fi 14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14641fi 14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14645 CFLAGS="$xorg_testset_save_CFLAGS" 14646fi 14647 14648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14651 fi 14652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14656 $as_echo_n "(cached) " >&6 14657else 14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14659/* end confdefs.h. */ 14660int i; 14661_ACEOF 14662if ac_fn_c_try_compile "$LINENO"; then : 14663 xorg_cv_cc_flag_unused_command_line_argument=yes 14664else 14665 xorg_cv_cc_flag_unused_command_line_argument=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14668fi 14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673fi 14674 14675found="no" 14676 14677 if test $found = "no" ; then 14678 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14680 fi 14681 14682 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14684 fi 14685 14686 CFLAGS="$CFLAGS -Werror=return-type" 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 14689$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 14690 cacheid=xorg_cv_cc_flag__Werror_return_type 14691 if eval \${$cacheid+:} false; then : 14692 $as_echo_n "(cached) " >&6 14693else 14694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14695/* end confdefs.h. */ 14696int i; 14697int 14698main () 14699{ 14700 14701 ; 14702 return 0; 14703} 14704_ACEOF 14705if ac_fn_c_try_link "$LINENO"; then : 14706 eval $cacheid=yes 14707else 14708 eval $cacheid=no 14709fi 14710rm -f core conftest.err conftest.$ac_objext \ 14711 conftest$ac_exeext conftest.$ac_ext 14712fi 14713 14714 14715 CFLAGS="$xorg_testset_save_CFLAGS" 14716 14717 eval supported=\$$cacheid 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14719$as_echo "$supported" >&6; } 14720 if test "$supported" = "yes" ; then 14721 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14722 found="yes" 14723 fi 14724 fi 14725 14726 if test $found = "no" ; then 14727 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14729 fi 14730 14731 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14733 fi 14734 14735 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14736 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14738$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14739 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14740 if eval \${$cacheid+:} false; then : 14741 $as_echo_n "(cached) " >&6 14742else 14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744/* end confdefs.h. */ 14745int i; 14746int 14747main () 14748{ 14749 14750 ; 14751 return 0; 14752} 14753_ACEOF 14754if ac_fn_c_try_link "$LINENO"; then : 14755 eval $cacheid=yes 14756else 14757 eval $cacheid=no 14758fi 14759rm -f core conftest.err conftest.$ac_objext \ 14760 conftest$ac_exeext conftest.$ac_ext 14761fi 14762 14763 14764 CFLAGS="$xorg_testset_save_CFLAGS" 14765 14766 eval supported=\$$cacheid 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14768$as_echo "$supported" >&6; } 14769 if test "$supported" = "yes" ; then 14770 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14771 found="yes" 14772 fi 14773 fi 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789xorg_testset_save_CFLAGS="$CFLAGS" 14790 14791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14794$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14795if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14796 $as_echo_n "(cached) " >&6 14797else 14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14799/* end confdefs.h. */ 14800int i; 14801_ACEOF 14802if ac_fn_c_try_compile "$LINENO"; then : 14803 xorg_cv_cc_flag_unknown_warning_option=yes 14804else 14805 xorg_cv_cc_flag_unknown_warning_option=no 14806fi 14807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14808fi 14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14810$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14812 CFLAGS="$xorg_testset_save_CFLAGS" 14813fi 14814 14815if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14818 fi 14819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14821$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14822if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826/* end confdefs.h. */ 14827int i; 14828_ACEOF 14829if ac_fn_c_try_compile "$LINENO"; then : 14830 xorg_cv_cc_flag_unused_command_line_argument=yes 14831else 14832 xorg_cv_cc_flag_unused_command_line_argument=no 14833fi 14834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14835fi 14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14837$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14839 CFLAGS="$xorg_testset_save_CFLAGS" 14840fi 14841 14842found="no" 14843 14844 if test $found = "no" ; then 14845 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14847 fi 14848 14849 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14851 fi 14852 14853 CFLAGS="$CFLAGS -Werror=trigraphs" 14854 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 14856$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 14857 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14858 if eval \${$cacheid+:} false; then : 14859 $as_echo_n "(cached) " >&6 14860else 14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14862/* end confdefs.h. */ 14863int i; 14864int 14865main () 14866{ 14867 14868 ; 14869 return 0; 14870} 14871_ACEOF 14872if ac_fn_c_try_link "$LINENO"; then : 14873 eval $cacheid=yes 14874else 14875 eval $cacheid=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext \ 14878 conftest$ac_exeext conftest.$ac_ext 14879fi 14880 14881 14882 CFLAGS="$xorg_testset_save_CFLAGS" 14883 14884 eval supported=\$$cacheid 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14886$as_echo "$supported" >&6; } 14887 if test "$supported" = "yes" ; then 14888 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14889 found="yes" 14890 fi 14891 fi 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907xorg_testset_save_CFLAGS="$CFLAGS" 14908 14909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14912$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14913if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14914 $as_echo_n "(cached) " >&6 14915else 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917/* end confdefs.h. */ 14918int i; 14919_ACEOF 14920if ac_fn_c_try_compile "$LINENO"; then : 14921 xorg_cv_cc_flag_unknown_warning_option=yes 14922else 14923 xorg_cv_cc_flag_unknown_warning_option=no 14924fi 14925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14926fi 14927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14928$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14930 CFLAGS="$xorg_testset_save_CFLAGS" 14931fi 14932 14933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14936 fi 14937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14939$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14940if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14941 $as_echo_n "(cached) " >&6 14942else 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945int i; 14946_ACEOF 14947if ac_fn_c_try_compile "$LINENO"; then : 14948 xorg_cv_cc_flag_unused_command_line_argument=yes 14949else 14950 xorg_cv_cc_flag_unused_command_line_argument=no 14951fi 14952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14953fi 14954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14955$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14957 CFLAGS="$xorg_testset_save_CFLAGS" 14958fi 14959 14960found="no" 14961 14962 if test $found = "no" ; then 14963 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14965 fi 14966 14967 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14969 fi 14970 14971 CFLAGS="$CFLAGS -Werror=array-bounds" 14972 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 14974$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 14975 cacheid=xorg_cv_cc_flag__Werror_array_bounds 14976 if eval \${$cacheid+:} false; then : 14977 $as_echo_n "(cached) " >&6 14978else 14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14980/* end confdefs.h. */ 14981int i; 14982int 14983main () 14984{ 14985 14986 ; 14987 return 0; 14988} 14989_ACEOF 14990if ac_fn_c_try_link "$LINENO"; then : 14991 eval $cacheid=yes 14992else 14993 eval $cacheid=no 14994fi 14995rm -f core conftest.err conftest.$ac_objext \ 14996 conftest$ac_exeext conftest.$ac_ext 14997fi 14998 14999 15000 CFLAGS="$xorg_testset_save_CFLAGS" 15001 15002 eval supported=\$$cacheid 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15004$as_echo "$supported" >&6; } 15005 if test "$supported" = "yes" ; then 15006 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15007 found="yes" 15008 fi 15009 fi 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025xorg_testset_save_CFLAGS="$CFLAGS" 15026 15027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15030$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15031if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15032 $as_echo_n "(cached) " >&6 15033else 15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15035/* end confdefs.h. */ 15036int i; 15037_ACEOF 15038if ac_fn_c_try_compile "$LINENO"; then : 15039 xorg_cv_cc_flag_unknown_warning_option=yes 15040else 15041 xorg_cv_cc_flag_unknown_warning_option=no 15042fi 15043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15044fi 15045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15046$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15048 CFLAGS="$xorg_testset_save_CFLAGS" 15049fi 15050 15051if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15054 fi 15055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15057$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15058if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15059 $as_echo_n "(cached) " >&6 15060else 15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15062/* end confdefs.h. */ 15063int i; 15064_ACEOF 15065if ac_fn_c_try_compile "$LINENO"; then : 15066 xorg_cv_cc_flag_unused_command_line_argument=yes 15067else 15068 xorg_cv_cc_flag_unused_command_line_argument=no 15069fi 15070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15071fi 15072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15073$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15075 CFLAGS="$xorg_testset_save_CFLAGS" 15076fi 15077 15078found="no" 15079 15080 if test $found = "no" ; then 15081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15083 fi 15084 15085 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15087 fi 15088 15089 CFLAGS="$CFLAGS -Werror=write-strings" 15090 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 15092$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 15093 cacheid=xorg_cv_cc_flag__Werror_write_strings 15094 if eval \${$cacheid+:} false; then : 15095 $as_echo_n "(cached) " >&6 15096else 15097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15098/* end confdefs.h. */ 15099int i; 15100int 15101main () 15102{ 15103 15104 ; 15105 return 0; 15106} 15107_ACEOF 15108if ac_fn_c_try_link "$LINENO"; then : 15109 eval $cacheid=yes 15110else 15111 eval $cacheid=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext \ 15114 conftest$ac_exeext conftest.$ac_ext 15115fi 15116 15117 15118 CFLAGS="$xorg_testset_save_CFLAGS" 15119 15120 eval supported=\$$cacheid 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15122$as_echo "$supported" >&6; } 15123 if test "$supported" = "yes" ; then 15124 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15125 found="yes" 15126 fi 15127 fi 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143xorg_testset_save_CFLAGS="$CFLAGS" 15144 15145if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15148$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15149if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15150 $as_echo_n "(cached) " >&6 15151else 15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15153/* end confdefs.h. */ 15154int i; 15155_ACEOF 15156if ac_fn_c_try_compile "$LINENO"; then : 15157 xorg_cv_cc_flag_unknown_warning_option=yes 15158else 15159 xorg_cv_cc_flag_unknown_warning_option=no 15160fi 15161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15162fi 15163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15164$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15166 CFLAGS="$xorg_testset_save_CFLAGS" 15167fi 15168 15169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15172 fi 15173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15175$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15176if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15177 $as_echo_n "(cached) " >&6 15178else 15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15180/* end confdefs.h. */ 15181int i; 15182_ACEOF 15183if ac_fn_c_try_compile "$LINENO"; then : 15184 xorg_cv_cc_flag_unused_command_line_argument=yes 15185else 15186 xorg_cv_cc_flag_unused_command_line_argument=no 15187fi 15188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15189fi 15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15191$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15192 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15193 CFLAGS="$xorg_testset_save_CFLAGS" 15194fi 15195 15196found="no" 15197 15198 if test $found = "no" ; then 15199 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15201 fi 15202 15203 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15205 fi 15206 15207 CFLAGS="$CFLAGS -Werror=address" 15208 15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 15210$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 15211 cacheid=xorg_cv_cc_flag__Werror_address 15212 if eval \${$cacheid+:} false; then : 15213 $as_echo_n "(cached) " >&6 15214else 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216/* end confdefs.h. */ 15217int i; 15218int 15219main () 15220{ 15221 15222 ; 15223 return 0; 15224} 15225_ACEOF 15226if ac_fn_c_try_link "$LINENO"; then : 15227 eval $cacheid=yes 15228else 15229 eval $cacheid=no 15230fi 15231rm -f core conftest.err conftest.$ac_objext \ 15232 conftest$ac_exeext conftest.$ac_ext 15233fi 15234 15235 15236 CFLAGS="$xorg_testset_save_CFLAGS" 15237 15238 eval supported=\$$cacheid 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15240$as_echo "$supported" >&6; } 15241 if test "$supported" = "yes" ; then 15242 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15243 found="yes" 15244 fi 15245 fi 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261xorg_testset_save_CFLAGS="$CFLAGS" 15262 15263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15268 $as_echo_n "(cached) " >&6 15269else 15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271/* end confdefs.h. */ 15272int i; 15273_ACEOF 15274if ac_fn_c_try_compile "$LINENO"; then : 15275 xorg_cv_cc_flag_unknown_warning_option=yes 15276else 15277 xorg_cv_cc_flag_unknown_warning_option=no 15278fi 15279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15280fi 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15284 CFLAGS="$xorg_testset_save_CFLAGS" 15285fi 15286 15287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 fi 15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15295 $as_echo_n "(cached) " >&6 15296else 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299int i; 15300_ACEOF 15301if ac_fn_c_try_compile "$LINENO"; then : 15302 xorg_cv_cc_flag_unused_command_line_argument=yes 15303else 15304 xorg_cv_cc_flag_unused_command_line_argument=no 15305fi 15306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15307fi 15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15311 CFLAGS="$xorg_testset_save_CFLAGS" 15312fi 15313 15314found="no" 15315 15316 if test $found = "no" ; then 15317 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15319 fi 15320 15321 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15323 fi 15324 15325 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15326 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 15328$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 15329 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15330 if eval \${$cacheid+:} false; then : 15331 $as_echo_n "(cached) " >&6 15332else 15333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15334/* end confdefs.h. */ 15335int i; 15336int 15337main () 15338{ 15339 15340 ; 15341 return 0; 15342} 15343_ACEOF 15344if ac_fn_c_try_link "$LINENO"; then : 15345 eval $cacheid=yes 15346else 15347 eval $cacheid=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext \ 15350 conftest$ac_exeext conftest.$ac_ext 15351fi 15352 15353 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355 15356 eval supported=\$$cacheid 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15358$as_echo "$supported" >&6; } 15359 if test "$supported" = "yes" ; then 15360 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15361 found="yes" 15362 fi 15363 fi 15364 15365 if test $found = "no" ; then 15366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15368 fi 15369 15370 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15372 fi 15373 15374 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15375 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15377$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15378 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15379 if eval \${$cacheid+:} false; then : 15380 $as_echo_n "(cached) " >&6 15381else 15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15383/* end confdefs.h. */ 15384int i; 15385int 15386main () 15387{ 15388 15389 ; 15390 return 0; 15391} 15392_ACEOF 15393if ac_fn_c_try_link "$LINENO"; then : 15394 eval $cacheid=yes 15395else 15396 eval $cacheid=no 15397fi 15398rm -f core conftest.err conftest.$ac_objext \ 15399 conftest$ac_exeext conftest.$ac_ext 15400fi 15401 15402 15403 CFLAGS="$xorg_testset_save_CFLAGS" 15404 15405 eval supported=\$$cacheid 15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15407$as_echo "$supported" >&6; } 15408 if test "$supported" = "yes" ; then 15409 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15410 found="yes" 15411 fi 15412 fi 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428xorg_testset_save_CFLAGS="$CFLAGS" 15429 15430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15435 $as_echo_n "(cached) " >&6 15436else 15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15438/* end confdefs.h. */ 15439int i; 15440_ACEOF 15441if ac_fn_c_try_compile "$LINENO"; then : 15442 xorg_cv_cc_flag_unknown_warning_option=yes 15443else 15444 xorg_cv_cc_flag_unknown_warning_option=no 15445fi 15446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15447fi 15448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15451 CFLAGS="$xorg_testset_save_CFLAGS" 15452fi 15453 15454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15457 fi 15458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15462 $as_echo_n "(cached) " >&6 15463else 15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15465/* end confdefs.h. */ 15466int i; 15467_ACEOF 15468if ac_fn_c_try_compile "$LINENO"; then : 15469 xorg_cv_cc_flag_unused_command_line_argument=yes 15470else 15471 xorg_cv_cc_flag_unused_command_line_argument=no 15472fi 15473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15474fi 15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15478 CFLAGS="$xorg_testset_save_CFLAGS" 15479fi 15480 15481found="no" 15482 15483 if test $found = "no" ; then 15484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15486 fi 15487 15488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15490 fi 15491 15492 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15493 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 15495$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 15496 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15497 if eval \${$cacheid+:} false; then : 15498 $as_echo_n "(cached) " >&6 15499else 15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502int i; 15503int 15504main () 15505{ 15506 15507 ; 15508 return 0; 15509} 15510_ACEOF 15511if ac_fn_c_try_link "$LINENO"; then : 15512 eval $cacheid=yes 15513else 15514 eval $cacheid=no 15515fi 15516rm -f core conftest.err conftest.$ac_objext \ 15517 conftest$ac_exeext conftest.$ac_ext 15518fi 15519 15520 15521 CFLAGS="$xorg_testset_save_CFLAGS" 15522 15523 eval supported=\$$cacheid 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15525$as_echo "$supported" >&6; } 15526 if test "$supported" = "yes" ; then 15527 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15528 found="yes" 15529 fi 15530 fi 15531 15532 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15533else 15534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 15535$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549xorg_testset_save_CFLAGS="$CFLAGS" 15550 15551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15556 $as_echo_n "(cached) " >&6 15557else 15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15559/* end confdefs.h. */ 15560int i; 15561_ACEOF 15562if ac_fn_c_try_compile "$LINENO"; then : 15563 xorg_cv_cc_flag_unknown_warning_option=yes 15564else 15565 xorg_cv_cc_flag_unknown_warning_option=no 15566fi 15567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15568fi 15569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15572 CFLAGS="$xorg_testset_save_CFLAGS" 15573fi 15574 15575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15578 fi 15579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15583 $as_echo_n "(cached) " >&6 15584else 15585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15586/* end confdefs.h. */ 15587int i; 15588_ACEOF 15589if ac_fn_c_try_compile "$LINENO"; then : 15590 xorg_cv_cc_flag_unused_command_line_argument=yes 15591else 15592 xorg_cv_cc_flag_unused_command_line_argument=no 15593fi 15594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15595fi 15596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15599 CFLAGS="$xorg_testset_save_CFLAGS" 15600fi 15601 15602found="no" 15603 15604 if test $found = "no" ; then 15605 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15607 fi 15608 15609 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15611 fi 15612 15613 CFLAGS="$CFLAGS -Wimplicit" 15614 15615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 15616$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 15617 cacheid=xorg_cv_cc_flag__Wimplicit 15618 if eval \${$cacheid+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620else 15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15622/* end confdefs.h. */ 15623int i; 15624int 15625main () 15626{ 15627 15628 ; 15629 return 0; 15630} 15631_ACEOF 15632if ac_fn_c_try_link "$LINENO"; then : 15633 eval $cacheid=yes 15634else 15635 eval $cacheid=no 15636fi 15637rm -f core conftest.err conftest.$ac_objext \ 15638 conftest$ac_exeext conftest.$ac_ext 15639fi 15640 15641 15642 CFLAGS="$xorg_testset_save_CFLAGS" 15643 15644 eval supported=\$$cacheid 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15646$as_echo "$supported" >&6; } 15647 if test "$supported" = "yes" ; then 15648 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15649 found="yes" 15650 fi 15651 fi 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667xorg_testset_save_CFLAGS="$CFLAGS" 15668 15669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15674 $as_echo_n "(cached) " >&6 15675else 15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15677/* end confdefs.h. */ 15678int i; 15679_ACEOF 15680if ac_fn_c_try_compile "$LINENO"; then : 15681 xorg_cv_cc_flag_unknown_warning_option=yes 15682else 15683 xorg_cv_cc_flag_unknown_warning_option=no 15684fi 15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15686fi 15687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15690 CFLAGS="$xorg_testset_save_CFLAGS" 15691fi 15692 15693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15696 fi 15697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15701 $as_echo_n "(cached) " >&6 15702else 15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15704/* end confdefs.h. */ 15705int i; 15706_ACEOF 15707if ac_fn_c_try_compile "$LINENO"; then : 15708 xorg_cv_cc_flag_unused_command_line_argument=yes 15709else 15710 xorg_cv_cc_flag_unused_command_line_argument=no 15711fi 15712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15713fi 15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15717 CFLAGS="$xorg_testset_save_CFLAGS" 15718fi 15719 15720found="no" 15721 15722 if test $found = "no" ; then 15723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15725 fi 15726 15727 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15729 fi 15730 15731 CFLAGS="$CFLAGS -Wnonnull" 15732 15733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 15734$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 15735 cacheid=xorg_cv_cc_flag__Wnonnull 15736 if eval \${$cacheid+:} false; then : 15737 $as_echo_n "(cached) " >&6 15738else 15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15740/* end confdefs.h. */ 15741int i; 15742int 15743main () 15744{ 15745 15746 ; 15747 return 0; 15748} 15749_ACEOF 15750if ac_fn_c_try_link "$LINENO"; then : 15751 eval $cacheid=yes 15752else 15753 eval $cacheid=no 15754fi 15755rm -f core conftest.err conftest.$ac_objext \ 15756 conftest$ac_exeext conftest.$ac_ext 15757fi 15758 15759 15760 CFLAGS="$xorg_testset_save_CFLAGS" 15761 15762 eval supported=\$$cacheid 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15764$as_echo "$supported" >&6; } 15765 if test "$supported" = "yes" ; then 15766 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15767 found="yes" 15768 fi 15769 fi 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785xorg_testset_save_CFLAGS="$CFLAGS" 15786 15787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15792 $as_echo_n "(cached) " >&6 15793else 15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15795/* end confdefs.h. */ 15796int i; 15797_ACEOF 15798if ac_fn_c_try_compile "$LINENO"; then : 15799 xorg_cv_cc_flag_unknown_warning_option=yes 15800else 15801 xorg_cv_cc_flag_unknown_warning_option=no 15802fi 15803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15804fi 15805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15808 CFLAGS="$xorg_testset_save_CFLAGS" 15809fi 15810 15811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15814 fi 15815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15819 $as_echo_n "(cached) " >&6 15820else 15821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15822/* end confdefs.h. */ 15823int i; 15824_ACEOF 15825if ac_fn_c_try_compile "$LINENO"; then : 15826 xorg_cv_cc_flag_unused_command_line_argument=yes 15827else 15828 xorg_cv_cc_flag_unused_command_line_argument=no 15829fi 15830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15831fi 15832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15835 CFLAGS="$xorg_testset_save_CFLAGS" 15836fi 15837 15838found="no" 15839 15840 if test $found = "no" ; then 15841 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15843 fi 15844 15845 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15847 fi 15848 15849 CFLAGS="$CFLAGS -Winit-self" 15850 15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 15852$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 15853 cacheid=xorg_cv_cc_flag__Winit_self 15854 if eval \${$cacheid+:} false; then : 15855 $as_echo_n "(cached) " >&6 15856else 15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15858/* end confdefs.h. */ 15859int i; 15860int 15861main () 15862{ 15863 15864 ; 15865 return 0; 15866} 15867_ACEOF 15868if ac_fn_c_try_link "$LINENO"; then : 15869 eval $cacheid=yes 15870else 15871 eval $cacheid=no 15872fi 15873rm -f core conftest.err conftest.$ac_objext \ 15874 conftest$ac_exeext conftest.$ac_ext 15875fi 15876 15877 15878 CFLAGS="$xorg_testset_save_CFLAGS" 15879 15880 eval supported=\$$cacheid 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15882$as_echo "$supported" >&6; } 15883 if test "$supported" = "yes" ; then 15884 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15885 found="yes" 15886 fi 15887 fi 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903xorg_testset_save_CFLAGS="$CFLAGS" 15904 15905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15910 $as_echo_n "(cached) " >&6 15911else 15912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15913/* end confdefs.h. */ 15914int i; 15915_ACEOF 15916if ac_fn_c_try_compile "$LINENO"; then : 15917 xorg_cv_cc_flag_unknown_warning_option=yes 15918else 15919 xorg_cv_cc_flag_unknown_warning_option=no 15920fi 15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15922fi 15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15926 CFLAGS="$xorg_testset_save_CFLAGS" 15927fi 15928 15929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15932 fi 15933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15937 $as_echo_n "(cached) " >&6 15938else 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15940/* end confdefs.h. */ 15941int i; 15942_ACEOF 15943if ac_fn_c_try_compile "$LINENO"; then : 15944 xorg_cv_cc_flag_unused_command_line_argument=yes 15945else 15946 xorg_cv_cc_flag_unused_command_line_argument=no 15947fi 15948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15949fi 15950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15953 CFLAGS="$xorg_testset_save_CFLAGS" 15954fi 15955 15956found="no" 15957 15958 if test $found = "no" ; then 15959 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15961 fi 15962 15963 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15965 fi 15966 15967 CFLAGS="$CFLAGS -Wmain" 15968 15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 15970$as_echo_n "checking if $CC supports-Wmain... " >&6; } 15971 cacheid=xorg_cv_cc_flag__Wmain 15972 if eval \${$cacheid+:} false; then : 15973 $as_echo_n "(cached) " >&6 15974else 15975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15976/* end confdefs.h. */ 15977int i; 15978int 15979main () 15980{ 15981 15982 ; 15983 return 0; 15984} 15985_ACEOF 15986if ac_fn_c_try_link "$LINENO"; then : 15987 eval $cacheid=yes 15988else 15989 eval $cacheid=no 15990fi 15991rm -f core conftest.err conftest.$ac_objext \ 15992 conftest$ac_exeext conftest.$ac_ext 15993fi 15994 15995 15996 CFLAGS="$xorg_testset_save_CFLAGS" 15997 15998 eval supported=\$$cacheid 15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16000$as_echo "$supported" >&6; } 16001 if test "$supported" = "yes" ; then 16002 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16003 found="yes" 16004 fi 16005 fi 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16028 $as_echo_n "(cached) " >&6 16029else 16030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16031/* end confdefs.h. */ 16032int i; 16033_ACEOF 16034if ac_fn_c_try_compile "$LINENO"; then : 16035 xorg_cv_cc_flag_unknown_warning_option=yes 16036else 16037 xorg_cv_cc_flag_unknown_warning_option=no 16038fi 16039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16040fi 16041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16044 CFLAGS="$xorg_testset_save_CFLAGS" 16045fi 16046 16047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16050 fi 16051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16055 $as_echo_n "(cached) " >&6 16056else 16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16058/* end confdefs.h. */ 16059int i; 16060_ACEOF 16061if ac_fn_c_try_compile "$LINENO"; then : 16062 xorg_cv_cc_flag_unused_command_line_argument=yes 16063else 16064 xorg_cv_cc_flag_unused_command_line_argument=no 16065fi 16066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072fi 16073 16074found="no" 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -Wmissing-braces" 16086 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 16088$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 16089 cacheid=xorg_cv_cc_flag__Wmissing_braces 16090 if eval \${$cacheid+:} false; then : 16091 $as_echo_n "(cached) " >&6 16092else 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095int i; 16096int 16097main () 16098{ 16099 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_c_try_link "$LINENO"; then : 16105 eval $cacheid=yes 16106else 16107 eval $cacheid=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext \ 16110 conftest$ac_exeext conftest.$ac_ext 16111fi 16112 16113 16114 CFLAGS="$xorg_testset_save_CFLAGS" 16115 16116 eval supported=\$$cacheid 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16118$as_echo "$supported" >&6; } 16119 if test "$supported" = "yes" ; then 16120 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16121 found="yes" 16122 fi 16123 fi 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139xorg_testset_save_CFLAGS="$CFLAGS" 16140 16141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16149/* end confdefs.h. */ 16150int i; 16151_ACEOF 16152if ac_fn_c_try_compile "$LINENO"; then : 16153 xorg_cv_cc_flag_unknown_warning_option=yes 16154else 16155 xorg_cv_cc_flag_unknown_warning_option=no 16156fi 16157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16158fi 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16162 CFLAGS="$xorg_testset_save_CFLAGS" 16163fi 16164 16165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16168 fi 16169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16173 $as_echo_n "(cached) " >&6 16174else 16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16176/* end confdefs.h. */ 16177int i; 16178_ACEOF 16179if ac_fn_c_try_compile "$LINENO"; then : 16180 xorg_cv_cc_flag_unused_command_line_argument=yes 16181else 16182 xorg_cv_cc_flag_unused_command_line_argument=no 16183fi 16184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16185fi 16186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16189 CFLAGS="$xorg_testset_save_CFLAGS" 16190fi 16191 16192found="no" 16193 16194 if test $found = "no" ; then 16195 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16197 fi 16198 16199 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16201 fi 16202 16203 CFLAGS="$CFLAGS -Wsequence-point" 16204 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 16206$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 16207 cacheid=xorg_cv_cc_flag__Wsequence_point 16208 if eval \${$cacheid+:} false; then : 16209 $as_echo_n "(cached) " >&6 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213int i; 16214int 16215main () 16216{ 16217 16218 ; 16219 return 0; 16220} 16221_ACEOF 16222if ac_fn_c_try_link "$LINENO"; then : 16223 eval $cacheid=yes 16224else 16225 eval $cacheid=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext \ 16228 conftest$ac_exeext conftest.$ac_ext 16229fi 16230 16231 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233 16234 eval supported=\$$cacheid 16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16236$as_echo "$supported" >&6; } 16237 if test "$supported" = "yes" ; then 16238 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16239 found="yes" 16240 fi 16241 fi 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257xorg_testset_save_CFLAGS="$CFLAGS" 16258 16259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16264 $as_echo_n "(cached) " >&6 16265else 16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16267/* end confdefs.h. */ 16268int i; 16269_ACEOF 16270if ac_fn_c_try_compile "$LINENO"; then : 16271 xorg_cv_cc_flag_unknown_warning_option=yes 16272else 16273 xorg_cv_cc_flag_unknown_warning_option=no 16274fi 16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16276fi 16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16280 CFLAGS="$xorg_testset_save_CFLAGS" 16281fi 16282 16283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16286 fi 16287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16291 $as_echo_n "(cached) " >&6 16292else 16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16294/* end confdefs.h. */ 16295int i; 16296_ACEOF 16297if ac_fn_c_try_compile "$LINENO"; then : 16298 xorg_cv_cc_flag_unused_command_line_argument=yes 16299else 16300 xorg_cv_cc_flag_unused_command_line_argument=no 16301fi 16302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16303fi 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16307 CFLAGS="$xorg_testset_save_CFLAGS" 16308fi 16309 16310found="no" 16311 16312 if test $found = "no" ; then 16313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16315 fi 16316 16317 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16319 fi 16320 16321 CFLAGS="$CFLAGS -Wreturn-type" 16322 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 16324$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 16325 cacheid=xorg_cv_cc_flag__Wreturn_type 16326 if eval \${$cacheid+:} false; then : 16327 $as_echo_n "(cached) " >&6 16328else 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331int i; 16332int 16333main () 16334{ 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_link "$LINENO"; then : 16341 eval $cacheid=yes 16342else 16343 eval $cacheid=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext \ 16346 conftest$ac_exeext conftest.$ac_ext 16347fi 16348 16349 16350 CFLAGS="$xorg_testset_save_CFLAGS" 16351 16352 eval supported=\$$cacheid 16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16354$as_echo "$supported" >&6; } 16355 if test "$supported" = "yes" ; then 16356 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16357 found="yes" 16358 fi 16359 fi 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375xorg_testset_save_CFLAGS="$CFLAGS" 16376 16377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386int i; 16387_ACEOF 16388if ac_fn_c_try_compile "$LINENO"; then : 16389 xorg_cv_cc_flag_unknown_warning_option=yes 16390else 16391 xorg_cv_cc_flag_unknown_warning_option=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16394fi 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 fi 16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16409 $as_echo_n "(cached) " >&6 16410else 16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16412/* end confdefs.h. */ 16413int i; 16414_ACEOF 16415if ac_fn_c_try_compile "$LINENO"; then : 16416 xorg_cv_cc_flag_unused_command_line_argument=yes 16417else 16418 xorg_cv_cc_flag_unused_command_line_argument=no 16419fi 16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16421fi 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16425 CFLAGS="$xorg_testset_save_CFLAGS" 16426fi 16427 16428found="no" 16429 16430 if test $found = "no" ; then 16431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16433 fi 16434 16435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16437 fi 16438 16439 CFLAGS="$CFLAGS -Wtrigraphs" 16440 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 16442$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 16443 cacheid=xorg_cv_cc_flag__Wtrigraphs 16444 if eval \${$cacheid+:} false; then : 16445 $as_echo_n "(cached) " >&6 16446else 16447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449int i; 16450int 16451main () 16452{ 16453 16454 ; 16455 return 0; 16456} 16457_ACEOF 16458if ac_fn_c_try_link "$LINENO"; then : 16459 eval $cacheid=yes 16460else 16461 eval $cacheid=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext \ 16464 conftest$ac_exeext conftest.$ac_ext 16465fi 16466 16467 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469 16470 eval supported=\$$cacheid 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16472$as_echo "$supported" >&6; } 16473 if test "$supported" = "yes" ; then 16474 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16475 found="yes" 16476 fi 16477 fi 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493xorg_testset_save_CFLAGS="$CFLAGS" 16494 16495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16500 $as_echo_n "(cached) " >&6 16501else 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505_ACEOF 16506if ac_fn_c_try_compile "$LINENO"; then : 16507 xorg_cv_cc_flag_unknown_warning_option=yes 16508else 16509 xorg_cv_cc_flag_unknown_warning_option=no 16510fi 16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16512fi 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16516 CFLAGS="$xorg_testset_save_CFLAGS" 16517fi 16518 16519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16522 fi 16523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO"; then : 16534 xorg_cv_cc_flag_unused_command_line_argument=yes 16535else 16536 xorg_cv_cc_flag_unused_command_line_argument=no 16537fi 16538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16539fi 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16543 CFLAGS="$xorg_testset_save_CFLAGS" 16544fi 16545 16546found="no" 16547 16548 if test $found = "no" ; then 16549 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16551 fi 16552 16553 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16555 fi 16556 16557 CFLAGS="$CFLAGS -Warray-bounds" 16558 16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 16560$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 16561 cacheid=xorg_cv_cc_flag__Warray_bounds 16562 if eval \${$cacheid+:} false; then : 16563 $as_echo_n "(cached) " >&6 16564else 16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16566/* end confdefs.h. */ 16567int i; 16568int 16569main () 16570{ 16571 16572 ; 16573 return 0; 16574} 16575_ACEOF 16576if ac_fn_c_try_link "$LINENO"; then : 16577 eval $cacheid=yes 16578else 16579 eval $cacheid=no 16580fi 16581rm -f core conftest.err conftest.$ac_objext \ 16582 conftest$ac_exeext conftest.$ac_ext 16583fi 16584 16585 16586 CFLAGS="$xorg_testset_save_CFLAGS" 16587 16588 eval supported=\$$cacheid 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16590$as_echo "$supported" >&6; } 16591 if test "$supported" = "yes" ; then 16592 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16593 found="yes" 16594 fi 16595 fi 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611xorg_testset_save_CFLAGS="$CFLAGS" 16612 16613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622int i; 16623_ACEOF 16624if ac_fn_c_try_compile "$LINENO"; then : 16625 xorg_cv_cc_flag_unknown_warning_option=yes 16626else 16627 xorg_cv_cc_flag_unknown_warning_option=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16630fi 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16634 CFLAGS="$xorg_testset_save_CFLAGS" 16635fi 16636 16637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16640 fi 16641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16645 $as_echo_n "(cached) " >&6 16646else 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649int i; 16650_ACEOF 16651if ac_fn_c_try_compile "$LINENO"; then : 16652 xorg_cv_cc_flag_unused_command_line_argument=yes 16653else 16654 xorg_cv_cc_flag_unused_command_line_argument=no 16655fi 16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16657fi 16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16661 CFLAGS="$xorg_testset_save_CFLAGS" 16662fi 16663 16664found="no" 16665 16666 if test $found = "no" ; then 16667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16669 fi 16670 16671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16673 fi 16674 16675 CFLAGS="$CFLAGS -Wwrite-strings" 16676 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 16678$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 16679 cacheid=xorg_cv_cc_flag__Wwrite_strings 16680 if eval \${$cacheid+:} false; then : 16681 $as_echo_n "(cached) " >&6 16682else 16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16684/* end confdefs.h. */ 16685int i; 16686int 16687main () 16688{ 16689 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_link "$LINENO"; then : 16695 eval $cacheid=yes 16696else 16697 eval $cacheid=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext \ 16700 conftest$ac_exeext conftest.$ac_ext 16701fi 16702 16703 16704 CFLAGS="$xorg_testset_save_CFLAGS" 16705 16706 eval supported=\$$cacheid 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16708$as_echo "$supported" >&6; } 16709 if test "$supported" = "yes" ; then 16710 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16711 found="yes" 16712 fi 16713 fi 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729xorg_testset_save_CFLAGS="$CFLAGS" 16730 16731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16734$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16735if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741_ACEOF 16742if ac_fn_c_try_compile "$LINENO"; then : 16743 xorg_cv_cc_flag_unknown_warning_option=yes 16744else 16745 xorg_cv_cc_flag_unknown_warning_option=no 16746fi 16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16748fi 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16750$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16752 CFLAGS="$xorg_testset_save_CFLAGS" 16753fi 16754 16755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16758 fi 16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16761$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16762if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16763 $as_echo_n "(cached) " >&6 16764else 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767int i; 16768_ACEOF 16769if ac_fn_c_try_compile "$LINENO"; then : 16770 xorg_cv_cc_flag_unused_command_line_argument=yes 16771else 16772 xorg_cv_cc_flag_unused_command_line_argument=no 16773fi 16774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16775fi 16776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16777$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16779 CFLAGS="$xorg_testset_save_CFLAGS" 16780fi 16781 16782found="no" 16783 16784 if test $found = "no" ; then 16785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16787 fi 16788 16789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16791 fi 16792 16793 CFLAGS="$CFLAGS -Waddress" 16794 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 16796$as_echo_n "checking if $CC supports-Waddress... " >&6; } 16797 cacheid=xorg_cv_cc_flag__Waddress 16798 if eval \${$cacheid+:} false; then : 16799 $as_echo_n "(cached) " >&6 16800else 16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16802/* end confdefs.h. */ 16803int i; 16804int 16805main () 16806{ 16807 16808 ; 16809 return 0; 16810} 16811_ACEOF 16812if ac_fn_c_try_link "$LINENO"; then : 16813 eval $cacheid=yes 16814else 16815 eval $cacheid=no 16816fi 16817rm -f core conftest.err conftest.$ac_objext \ 16818 conftest$ac_exeext conftest.$ac_ext 16819fi 16820 16821 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823 16824 eval supported=\$$cacheid 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16826$as_echo "$supported" >&6; } 16827 if test "$supported" = "yes" ; then 16828 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16829 found="yes" 16830 fi 16831 fi 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847xorg_testset_save_CFLAGS="$CFLAGS" 16848 16849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16852$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16853if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16854 $as_echo_n "(cached) " >&6 16855else 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858int i; 16859_ACEOF 16860if ac_fn_c_try_compile "$LINENO"; then : 16861 xorg_cv_cc_flag_unknown_warning_option=yes 16862else 16863 xorg_cv_cc_flag_unknown_warning_option=no 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16868$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871fi 16872 16873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16876 fi 16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16879$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16880if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16881 $as_echo_n "(cached) " >&6 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885int i; 16886_ACEOF 16887if ac_fn_c_try_compile "$LINENO"; then : 16888 xorg_cv_cc_flag_unused_command_line_argument=yes 16889else 16890 xorg_cv_cc_flag_unused_command_line_argument=no 16891fi 16892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16893fi 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16895$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898fi 16899 16900found="no" 16901 16902 if test $found = "no" ; then 16903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16905 fi 16906 16907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16909 fi 16910 16911 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16912 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 16914$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 16915 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16916 if eval \${$cacheid+:} false; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922int 16923main () 16924{ 16925 16926 ; 16927 return 0; 16928} 16929_ACEOF 16930if ac_fn_c_try_link "$LINENO"; then : 16931 eval $cacheid=yes 16932else 16933 eval $cacheid=no 16934fi 16935rm -f core conftest.err conftest.$ac_objext \ 16936 conftest$ac_exeext conftest.$ac_ext 16937fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944$as_echo "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16947 found="yes" 16948 fi 16949 fi 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965xorg_testset_save_CFLAGS="$CFLAGS" 16966 16967if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16970$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16971if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16972 $as_echo_n "(cached) " >&6 16973else 16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16975/* end confdefs.h. */ 16976int i; 16977_ACEOF 16978if ac_fn_c_try_compile "$LINENO"; then : 16979 xorg_cv_cc_flag_unknown_warning_option=yes 16980else 16981 xorg_cv_cc_flag_unknown_warning_option=no 16982fi 16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16986$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16988 CFLAGS="$xorg_testset_save_CFLAGS" 16989fi 16990 16991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16994 fi 16995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16997$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16998if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16999 $as_echo_n "(cached) " >&6 17000else 17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17002/* end confdefs.h. */ 17003int i; 17004_ACEOF 17005if ac_fn_c_try_compile "$LINENO"; then : 17006 xorg_cv_cc_flag_unused_command_line_argument=yes 17007else 17008 xorg_cv_cc_flag_unused_command_line_argument=no 17009fi 17010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17011fi 17012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17013$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018found="no" 17019 17020 if test $found = "no" ; then 17021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17023 fi 17024 17025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 fi 17028 17029 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17030 17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 17032$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 17033 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17034 if eval \${$cacheid+:} false; then : 17035 $as_echo_n "(cached) " >&6 17036else 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039int i; 17040int 17041main () 17042{ 17043 17044 ; 17045 return 0; 17046} 17047_ACEOF 17048if ac_fn_c_try_link "$LINENO"; then : 17049 eval $cacheid=yes 17050else 17051 eval $cacheid=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext \ 17054 conftest$ac_exeext conftest.$ac_ext 17055fi 17056 17057 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059 17060 eval supported=\$$cacheid 17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17062$as_echo "$supported" >&6; } 17063 if test "$supported" = "yes" ; then 17064 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17065 found="yes" 17066 fi 17067 fi 17068 17069 17070fi 17071 17072 17073 17074 17075 17076 17077 17078 CWARNFLAGS="$BASE_CFLAGS" 17079 if test "x$GCC" = xyes ; then 17080 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17081 fi 17082 17083 17084 17085 17086 17087 17088 17089 17090# Check whether --enable-strict-compilation was given. 17091if test "${enable_strict_compilation+set}" = set; then : 17092 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17093else 17094 STRICT_COMPILE=no 17095fi 17096 17097 17098 17099 17100 17101 17102STRICT_CFLAGS="" 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116xorg_testset_save_CFLAGS="$CFLAGS" 17117 17118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17121$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17122if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17123 $as_echo_n "(cached) " >&6 17124else 17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126/* end confdefs.h. */ 17127int i; 17128_ACEOF 17129if ac_fn_c_try_compile "$LINENO"; then : 17130 xorg_cv_cc_flag_unknown_warning_option=yes 17131else 17132 xorg_cv_cc_flag_unknown_warning_option=no 17133fi 17134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17135fi 17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17137$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17139 CFLAGS="$xorg_testset_save_CFLAGS" 17140fi 17141 17142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17145 fi 17146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17148$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17149if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17150 $as_echo_n "(cached) " >&6 17151else 17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17153/* end confdefs.h. */ 17154int i; 17155_ACEOF 17156if ac_fn_c_try_compile "$LINENO"; then : 17157 xorg_cv_cc_flag_unused_command_line_argument=yes 17158else 17159 xorg_cv_cc_flag_unused_command_line_argument=no 17160fi 17161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17162fi 17163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17164$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17166 CFLAGS="$xorg_testset_save_CFLAGS" 17167fi 17168 17169found="no" 17170 17171 if test $found = "no" ; then 17172 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17174 fi 17175 17176 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17178 fi 17179 17180 CFLAGS="$CFLAGS -pedantic" 17181 17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 17183$as_echo_n "checking if $CC supports-pedantic... " >&6; } 17184 cacheid=xorg_cv_cc_flag__pedantic 17185 if eval \${$cacheid+:} false; then : 17186 $as_echo_n "(cached) " >&6 17187else 17188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17189/* end confdefs.h. */ 17190int i; 17191int 17192main () 17193{ 17194 17195 ; 17196 return 0; 17197} 17198_ACEOF 17199if ac_fn_c_try_link "$LINENO"; then : 17200 eval $cacheid=yes 17201else 17202 eval $cacheid=no 17203fi 17204rm -f core conftest.err conftest.$ac_objext \ 17205 conftest$ac_exeext conftest.$ac_ext 17206fi 17207 17208 17209 CFLAGS="$xorg_testset_save_CFLAGS" 17210 17211 eval supported=\$$cacheid 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17213$as_echo "$supported" >&6; } 17214 if test "$supported" = "yes" ; then 17215 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17216 found="yes" 17217 fi 17218 fi 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234xorg_testset_save_CFLAGS="$CFLAGS" 17235 17236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17239$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17240if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17241 $as_echo_n "(cached) " >&6 17242else 17243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245int i; 17246_ACEOF 17247if ac_fn_c_try_compile "$LINENO"; then : 17248 xorg_cv_cc_flag_unknown_warning_option=yes 17249else 17250 xorg_cv_cc_flag_unknown_warning_option=no 17251fi 17252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17253fi 17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17255$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17257 CFLAGS="$xorg_testset_save_CFLAGS" 17258fi 17259 17260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17263 fi 17264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17266$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17267if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17268 $as_echo_n "(cached) " >&6 17269else 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272int i; 17273_ACEOF 17274if ac_fn_c_try_compile "$LINENO"; then : 17275 xorg_cv_cc_flag_unused_command_line_argument=yes 17276else 17277 xorg_cv_cc_flag_unused_command_line_argument=no 17278fi 17279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17280fi 17281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17282$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17284 CFLAGS="$xorg_testset_save_CFLAGS" 17285fi 17286 17287found="no" 17288 17289 if test $found = "no" ; then 17290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17292 fi 17293 17294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17296 fi 17297 17298 CFLAGS="$CFLAGS -Werror" 17299 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 17301$as_echo_n "checking if $CC supports-Werror... " >&6; } 17302 cacheid=xorg_cv_cc_flag__Werror 17303 if eval \${$cacheid+:} false; then : 17304 $as_echo_n "(cached) " >&6 17305else 17306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17307/* end confdefs.h. */ 17308int i; 17309int 17310main () 17311{ 17312 17313 ; 17314 return 0; 17315} 17316_ACEOF 17317if ac_fn_c_try_link "$LINENO"; then : 17318 eval $cacheid=yes 17319else 17320 eval $cacheid=no 17321fi 17322rm -f core conftest.err conftest.$ac_objext \ 17323 conftest$ac_exeext conftest.$ac_ext 17324fi 17325 17326 17327 CFLAGS="$xorg_testset_save_CFLAGS" 17328 17329 eval supported=\$$cacheid 17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17331$as_echo "$supported" >&6; } 17332 if test "$supported" = "yes" ; then 17333 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17334 found="yes" 17335 fi 17336 fi 17337 17338 if test $found = "no" ; then 17339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17341 fi 17342 17343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17345 fi 17346 17347 CFLAGS="$CFLAGS -errwarn" 17348 17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 17350$as_echo_n "checking if $CC supports-errwarn... " >&6; } 17351 cacheid=xorg_cv_cc_flag__errwarn 17352 if eval \${$cacheid+:} false; then : 17353 $as_echo_n "(cached) " >&6 17354else 17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357int i; 17358int 17359main () 17360{ 17361 17362 ; 17363 return 0; 17364} 17365_ACEOF 17366if ac_fn_c_try_link "$LINENO"; then : 17367 eval $cacheid=yes 17368else 17369 eval $cacheid=no 17370fi 17371rm -f core conftest.err conftest.$ac_objext \ 17372 conftest$ac_exeext conftest.$ac_ext 17373fi 17374 17375 17376 CFLAGS="$xorg_testset_save_CFLAGS" 17377 17378 eval supported=\$$cacheid 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17380$as_echo "$supported" >&6; } 17381 if test "$supported" = "yes" ; then 17382 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17383 found="yes" 17384 fi 17385 fi 17386 17387 17388 17389# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17390# activate it with -Werror, so we add it here explicitly. 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404xorg_testset_save_CFLAGS="$CFLAGS" 17405 17406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17411 $as_echo_n "(cached) " >&6 17412else 17413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17414/* end confdefs.h. */ 17415int i; 17416_ACEOF 17417if ac_fn_c_try_compile "$LINENO"; then : 17418 xorg_cv_cc_flag_unknown_warning_option=yes 17419else 17420 xorg_cv_cc_flag_unknown_warning_option=no 17421fi 17422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17423fi 17424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17427 CFLAGS="$xorg_testset_save_CFLAGS" 17428fi 17429 17430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17433 fi 17434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17438 $as_echo_n "(cached) " >&6 17439else 17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17441/* end confdefs.h. */ 17442int i; 17443_ACEOF 17444if ac_fn_c_try_compile "$LINENO"; then : 17445 xorg_cv_cc_flag_unused_command_line_argument=yes 17446else 17447 xorg_cv_cc_flag_unused_command_line_argument=no 17448fi 17449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17450fi 17451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17454 CFLAGS="$xorg_testset_save_CFLAGS" 17455fi 17456 17457found="no" 17458 17459 if test $found = "no" ; then 17460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17462 fi 17463 17464 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17466 fi 17467 17468 CFLAGS="$CFLAGS -Werror=attributes" 17469 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 17471$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 17472 cacheid=xorg_cv_cc_flag__Werror_attributes 17473 if eval \${$cacheid+:} false; then : 17474 $as_echo_n "(cached) " >&6 17475else 17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17477/* end confdefs.h. */ 17478int i; 17479int 17480main () 17481{ 17482 17483 ; 17484 return 0; 17485} 17486_ACEOF 17487if ac_fn_c_try_link "$LINENO"; then : 17488 eval $cacheid=yes 17489else 17490 eval $cacheid=no 17491fi 17492rm -f core conftest.err conftest.$ac_objext \ 17493 conftest$ac_exeext conftest.$ac_ext 17494fi 17495 17496 17497 CFLAGS="$xorg_testset_save_CFLAGS" 17498 17499 eval supported=\$$cacheid 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17501$as_echo "$supported" >&6; } 17502 if test "$supported" = "yes" ; then 17503 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17504 found="yes" 17505 fi 17506 fi 17507 17508 17509 17510if test "x$STRICT_COMPILE" = "xyes"; then 17511 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17512 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17513fi 17514 17515 17516 17517 17518 17519 17520cat >>confdefs.h <<_ACEOF 17521#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17522_ACEOF 17523 17524 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17525 if test "x$PVM" = "x"; then 17526 PVM="0" 17527 fi 17528 17529cat >>confdefs.h <<_ACEOF 17530#define PACKAGE_VERSION_MINOR $PVM 17531_ACEOF 17532 17533 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17534 if test "x$PVP" = "x"; then 17535 PVP="0" 17536 fi 17537 17538cat >>confdefs.h <<_ACEOF 17539#define PACKAGE_VERSION_PATCHLEVEL $PVP 17540_ACEOF 17541 17542 17543 17544CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17545mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17546|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17547echo 'git directory not found: installing possibly empty changelog.' >&2)" 17548 17549 17550 17551 17552macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17553INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17554mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17555|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17556echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17557 17558 17559 17560 17561 17562 17563if test x$APP_MAN_SUFFIX = x ; then 17564 APP_MAN_SUFFIX=1 17565fi 17566if test x$APP_MAN_DIR = x ; then 17567 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17568fi 17569 17570if test x$LIB_MAN_SUFFIX = x ; then 17571 LIB_MAN_SUFFIX=3 17572fi 17573if test x$LIB_MAN_DIR = x ; then 17574 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17575fi 17576 17577if test x$FILE_MAN_SUFFIX = x ; then 17578 case $host_os in 17579 solaris*) FILE_MAN_SUFFIX=4 ;; 17580 *) FILE_MAN_SUFFIX=5 ;; 17581 esac 17582fi 17583if test x$FILE_MAN_DIR = x ; then 17584 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17585fi 17586 17587if test x$MISC_MAN_SUFFIX = x ; then 17588 case $host_os in 17589 solaris*) MISC_MAN_SUFFIX=5 ;; 17590 *) MISC_MAN_SUFFIX=7 ;; 17591 esac 17592fi 17593if test x$MISC_MAN_DIR = x ; then 17594 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17595fi 17596 17597if test x$DRIVER_MAN_SUFFIX = x ; then 17598 case $host_os in 17599 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17600 *) DRIVER_MAN_SUFFIX=4 ;; 17601 esac 17602fi 17603if test x$DRIVER_MAN_DIR = x ; then 17604 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17605fi 17606 17607if test x$ADMIN_MAN_SUFFIX = x ; then 17608 case $host_os in 17609 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17610 *) ADMIN_MAN_SUFFIX=8 ;; 17611 esac 17612fi 17613if test x$ADMIN_MAN_DIR = x ; then 17614 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17615fi 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631XORG_MAN_PAGE="X Version 11" 17632 17633MAN_SUBSTS="\ 17634 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17635 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17636 -e 's|__xservername__|Xorg|g' \ 17637 -e 's|__xconfigfile__|xorg.conf|g' \ 17638 -e 's|__projectroot__|\$(prefix)|g' \ 17639 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17640 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17641 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17642 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17643 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17644 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17645 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17646 17647 17648 17649# Check whether --enable-silent-rules was given. 17650if test "${enable_silent_rules+set}" = set; then : 17651 enableval=$enable_silent_rules; 17652fi 17653 17654case $enable_silent_rules in # ((( 17655 yes) AM_DEFAULT_VERBOSITY=0;; 17656 no) AM_DEFAULT_VERBOSITY=1;; 17657 *) AM_DEFAULT_VERBOSITY=0;; 17658esac 17659am_make=${MAKE-make} 17660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17661$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17662if ${am_cv_make_support_nested_variables+:} false; then : 17663 $as_echo_n "(cached) " >&6 17664else 17665 if $as_echo 'TRUE=$(BAR$(V)) 17666BAR0=false 17667BAR1=true 17668V=1 17669am__doit: 17670 @$(TRUE) 17671.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17672 am_cv_make_support_nested_variables=yes 17673else 17674 am_cv_make_support_nested_variables=no 17675fi 17676fi 17677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17678$as_echo "$am_cv_make_support_nested_variables" >&6; } 17679if test $am_cv_make_support_nested_variables = yes; then 17680 AM_V='$(V)' 17681 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17682else 17683 AM_V=$AM_DEFAULT_VERBOSITY 17684 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17685fi 17686AM_BACKSLASH='\' 17687 17688 17689 17690 17691# Check whether --enable-docs was given. 17692if test "${enable_docs+set}" = set; then : 17693 enableval=$enable_docs; build_docs=$enableval 17694else 17695 build_docs=yes 17696fi 17697 17698 17699 if test x$build_docs = xyes; then 17700 ENABLE_DOCS_TRUE= 17701 ENABLE_DOCS_FALSE='#' 17702else 17703 ENABLE_DOCS_TRUE='#' 17704 ENABLE_DOCS_FALSE= 17705fi 17706 17707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17708$as_echo_n "checking whether to build documentation... " >&6; } 17709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17710$as_echo "$build_docs" >&6; } 17711 17712 17713 17714# Check whether --enable-specs was given. 17715if test "${enable_specs+set}" = set; then : 17716 enableval=$enable_specs; build_specs=$enableval 17717else 17718 build_specs=yes 17719fi 17720 17721 17722 if test x$build_specs = xyes; then 17723 ENABLE_SPECS_TRUE= 17724 ENABLE_SPECS_FALSE='#' 17725else 17726 ENABLE_SPECS_TRUE='#' 17727 ENABLE_SPECS_FALSE= 17728fi 17729 17730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17731$as_echo_n "checking whether to build functional specifications... " >&6; } 17732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17733$as_echo "$build_specs" >&6; } 17734 17735 17736 17737 17738 17739# Check whether --with-xmlto was given. 17740if test "${with_xmlto+set}" = set; then : 17741 withval=$with_xmlto; use_xmlto=$withval 17742else 17743 use_xmlto=auto 17744fi 17745 17746 17747 17748if test "x$use_xmlto" = x"auto"; then 17749 # Extract the first word of "xmlto", so it can be a program name with args. 17750set dummy xmlto; ac_word=$2 17751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17752$as_echo_n "checking for $ac_word... " >&6; } 17753if ${ac_cv_path_XMLTO+:} false; then : 17754 $as_echo_n "(cached) " >&6 17755else 17756 case $XMLTO in 17757 [\\/]* | ?:[\\/]*) 17758 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17759 ;; 17760 *) 17761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17762for as_dir in $PATH 17763do 17764 IFS=$as_save_IFS 17765 test -z "$as_dir" && as_dir=. 17766 for ac_exec_ext in '' $ac_executable_extensions; do 17767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17768 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17770 break 2 17771 fi 17772done 17773 done 17774IFS=$as_save_IFS 17775 17776 ;; 17777esac 17778fi 17779XMLTO=$ac_cv_path_XMLTO 17780if test -n "$XMLTO"; then 17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17782$as_echo "$XMLTO" >&6; } 17783else 17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17785$as_echo "no" >&6; } 17786fi 17787 17788 17789 if test "x$XMLTO" = "x"; then 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17791$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17792 have_xmlto=no 17793 else 17794 have_xmlto=yes 17795 fi 17796elif test "x$use_xmlto" = x"yes" ; then 17797 # Extract the first word of "xmlto", so it can be a program name with args. 17798set dummy xmlto; ac_word=$2 17799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17800$as_echo_n "checking for $ac_word... " >&6; } 17801if ${ac_cv_path_XMLTO+:} false; then : 17802 $as_echo_n "(cached) " >&6 17803else 17804 case $XMLTO in 17805 [\\/]* | ?:[\\/]*) 17806 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17807 ;; 17808 *) 17809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17810for as_dir in $PATH 17811do 17812 IFS=$as_save_IFS 17813 test -z "$as_dir" && as_dir=. 17814 for ac_exec_ext in '' $ac_executable_extensions; do 17815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17816 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17818 break 2 17819 fi 17820done 17821 done 17822IFS=$as_save_IFS 17823 17824 ;; 17825esac 17826fi 17827XMLTO=$ac_cv_path_XMLTO 17828if test -n "$XMLTO"; then 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17830$as_echo "$XMLTO" >&6; } 17831else 17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17833$as_echo "no" >&6; } 17834fi 17835 17836 17837 if test "x$XMLTO" = "x"; then 17838 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17839 fi 17840 have_xmlto=yes 17841elif test "x$use_xmlto" = x"no" ; then 17842 if test "x$XMLTO" != "x"; then 17843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17844$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17845 fi 17846 have_xmlto=no 17847else 17848 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17849fi 17850 17851# Test for a minimum version of xmlto, if provided. 17852if test "$have_xmlto" = yes; then 17853 # scrape the xmlto version 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17855$as_echo_n "checking the xmlto version... " >&6; } 17856 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17858$as_echo "$xmlto_version" >&6; } 17859 as_arg_v1=$xmlto_version 17860as_arg_v2=0.0.22 17861awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17862case $? in #( 17863 1) : 17864 if test "x$use_xmlto" = xauto; then 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17866$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17867 have_xmlto=no 17868 else 17869 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17870 fi ;; #( 17871 0) : 17872 ;; #( 17873 2) : 17874 ;; #( 17875 *) : 17876 ;; 17877esac 17878fi 17879 17880# Test for the ability of xmlto to generate a text target 17881have_xmlto_text=no 17882cat > conftest.xml << "EOF" 17883EOF 17884if test "$have_xmlto" = yes; then : 17885 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17886 have_xmlto_text=yes 17887else 17888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17889$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17890fi 17891fi 17892rm -f conftest.xml 17893 if test $have_xmlto_text = yes; then 17894 HAVE_XMLTO_TEXT_TRUE= 17895 HAVE_XMLTO_TEXT_FALSE='#' 17896else 17897 HAVE_XMLTO_TEXT_TRUE='#' 17898 HAVE_XMLTO_TEXT_FALSE= 17899fi 17900 17901 if test "$have_xmlto" = yes; then 17902 HAVE_XMLTO_TRUE= 17903 HAVE_XMLTO_FALSE='#' 17904else 17905 HAVE_XMLTO_TRUE='#' 17906 HAVE_XMLTO_FALSE= 17907fi 17908 17909 17910 17911 17912 17913 17914# Check whether --with-fop was given. 17915if test "${with_fop+set}" = set; then : 17916 withval=$with_fop; use_fop=$withval 17917else 17918 use_fop=auto 17919fi 17920 17921 17922 17923if test "x$use_fop" = x"auto"; then 17924 # Extract the first word of "fop", so it can be a program name with args. 17925set dummy fop; ac_word=$2 17926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17927$as_echo_n "checking for $ac_word... " >&6; } 17928if ${ac_cv_path_FOP+:} false; then : 17929 $as_echo_n "(cached) " >&6 17930else 17931 case $FOP in 17932 [\\/]* | ?:[\\/]*) 17933 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17934 ;; 17935 *) 17936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17937for as_dir in $PATH 17938do 17939 IFS=$as_save_IFS 17940 test -z "$as_dir" && as_dir=. 17941 for ac_exec_ext in '' $ac_executable_extensions; do 17942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17943 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17945 break 2 17946 fi 17947done 17948 done 17949IFS=$as_save_IFS 17950 17951 ;; 17952esac 17953fi 17954FOP=$ac_cv_path_FOP 17955if test -n "$FOP"; then 17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 17957$as_echo "$FOP" >&6; } 17958else 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17960$as_echo "no" >&6; } 17961fi 17962 17963 17964 if test "x$FOP" = "x"; then 17965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 17966$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 17967 have_fop=no 17968 else 17969 have_fop=yes 17970 fi 17971elif test "x$use_fop" = x"yes" ; then 17972 # Extract the first word of "fop", so it can be a program name with args. 17973set dummy fop; ac_word=$2 17974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17975$as_echo_n "checking for $ac_word... " >&6; } 17976if ${ac_cv_path_FOP+:} false; then : 17977 $as_echo_n "(cached) " >&6 17978else 17979 case $FOP in 17980 [\\/]* | ?:[\\/]*) 17981 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17982 ;; 17983 *) 17984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17985for as_dir in $PATH 17986do 17987 IFS=$as_save_IFS 17988 test -z "$as_dir" && as_dir=. 17989 for ac_exec_ext in '' $ac_executable_extensions; do 17990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17991 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17993 break 2 17994 fi 17995done 17996 done 17997IFS=$as_save_IFS 17998 17999 ;; 18000esac 18001fi 18002FOP=$ac_cv_path_FOP 18003if test -n "$FOP"; then 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18005$as_echo "$FOP" >&6; } 18006else 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18008$as_echo "no" >&6; } 18009fi 18010 18011 18012 if test "x$FOP" = "x"; then 18013 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18014 fi 18015 have_fop=yes 18016elif test "x$use_fop" = x"no" ; then 18017 if test "x$FOP" != "x"; then 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18019$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18020 fi 18021 have_fop=no 18022else 18023 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18024fi 18025 18026# Test for a minimum version of fop, if provided. 18027 18028 if test "$have_fop" = yes; then 18029 HAVE_FOP_TRUE= 18030 HAVE_FOP_FALSE='#' 18031else 18032 HAVE_FOP_TRUE='#' 18033 HAVE_FOP_FALSE= 18034fi 18035 18036 18037 18038 18039# Preserves the interface, should it be implemented later 18040 18041 18042 18043# Check whether --with-xsltproc was given. 18044if test "${with_xsltproc+set}" = set; then : 18045 withval=$with_xsltproc; use_xsltproc=$withval 18046else 18047 use_xsltproc=auto 18048fi 18049 18050 18051 18052if test "x$use_xsltproc" = x"auto"; then 18053 # Extract the first word of "xsltproc", so it can be a program name with args. 18054set dummy xsltproc; ac_word=$2 18055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18056$as_echo_n "checking for $ac_word... " >&6; } 18057if ${ac_cv_path_XSLTPROC+:} false; then : 18058 $as_echo_n "(cached) " >&6 18059else 18060 case $XSLTPROC in 18061 [\\/]* | ?:[\\/]*) 18062 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18063 ;; 18064 *) 18065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18066for as_dir in $PATH 18067do 18068 IFS=$as_save_IFS 18069 test -z "$as_dir" && as_dir=. 18070 for ac_exec_ext in '' $ac_executable_extensions; do 18071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18072 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18074 break 2 18075 fi 18076done 18077 done 18078IFS=$as_save_IFS 18079 18080 ;; 18081esac 18082fi 18083XSLTPROC=$ac_cv_path_XSLTPROC 18084if test -n "$XSLTPROC"; then 18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18086$as_echo "$XSLTPROC" >&6; } 18087else 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18089$as_echo "no" >&6; } 18090fi 18091 18092 18093 if test "x$XSLTPROC" = "x"; then 18094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18095$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18096 have_xsltproc=no 18097 else 18098 have_xsltproc=yes 18099 fi 18100elif test "x$use_xsltproc" = x"yes" ; then 18101 # Extract the first word of "xsltproc", so it can be a program name with args. 18102set dummy xsltproc; ac_word=$2 18103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18104$as_echo_n "checking for $ac_word... " >&6; } 18105if ${ac_cv_path_XSLTPROC+:} false; then : 18106 $as_echo_n "(cached) " >&6 18107else 18108 case $XSLTPROC in 18109 [\\/]* | ?:[\\/]*) 18110 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18111 ;; 18112 *) 18113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18114for as_dir in $PATH 18115do 18116 IFS=$as_save_IFS 18117 test -z "$as_dir" && as_dir=. 18118 for ac_exec_ext in '' $ac_executable_extensions; do 18119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18120 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18122 break 2 18123 fi 18124done 18125 done 18126IFS=$as_save_IFS 18127 18128 ;; 18129esac 18130fi 18131XSLTPROC=$ac_cv_path_XSLTPROC 18132if test -n "$XSLTPROC"; then 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18134$as_echo "$XSLTPROC" >&6; } 18135else 18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18137$as_echo "no" >&6; } 18138fi 18139 18140 18141 if test "x$XSLTPROC" = "x"; then 18142 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18143 fi 18144 have_xsltproc=yes 18145elif test "x$use_xsltproc" = x"no" ; then 18146 if test "x$XSLTPROC" != "x"; then 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18148$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18149 fi 18150 have_xsltproc=no 18151else 18152 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18153fi 18154 18155 if test "$have_xsltproc" = yes; then 18156 HAVE_XSLTPROC_TRUE= 18157 HAVE_XSLTPROC_FALSE='#' 18158else 18159 HAVE_XSLTPROC_TRUE='#' 18160 HAVE_XSLTPROC_FALSE= 18161fi 18162 18163 18164 18165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18166$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18167XORG_SGML_PATH= 18168if test -n "$PKG_CONFIG" && \ 18169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18170 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18171 ac_status=$? 18172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18173 test $ac_status = 0; }; then 18174 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18175else 18176 : 18177 18178fi 18179 18180# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18181# the path and the name of the doc stylesheet 18182if test "x$XORG_SGML_PATH" != "x" ; then 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18184$as_echo "$XORG_SGML_PATH" >&6; } 18185 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18186 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18187else 18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18189$as_echo "no" >&6; } 18190fi 18191 18192 18193 18194 18195 if test "x$XSL_STYLESHEET" != "x"; then 18196 HAVE_STYLESHEETS_TRUE= 18197 HAVE_STYLESHEETS_FALSE='#' 18198else 18199 HAVE_STYLESHEETS_TRUE='#' 18200 HAVE_STYLESHEETS_FALSE= 18201fi 18202 18203 18204 18205 18206 18207 18208# Check whether --with-asciidoc was given. 18209if test "${with_asciidoc+set}" = set; then : 18210 withval=$with_asciidoc; use_asciidoc=$withval 18211else 18212 use_asciidoc=auto 18213fi 18214 18215 18216 18217if test "x$use_asciidoc" = x"auto"; then 18218 # Extract the first word of "asciidoc", so it can be a program name with args. 18219set dummy asciidoc; ac_word=$2 18220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18221$as_echo_n "checking for $ac_word... " >&6; } 18222if ${ac_cv_path_ASCIIDOC+:} false; then : 18223 $as_echo_n "(cached) " >&6 18224else 18225 case $ASCIIDOC in 18226 [\\/]* | ?:[\\/]*) 18227 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 18228 ;; 18229 *) 18230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18231for as_dir in $PATH 18232do 18233 IFS=$as_save_IFS 18234 test -z "$as_dir" && as_dir=. 18235 for ac_exec_ext in '' $ac_executable_extensions; do 18236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18237 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 18238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18239 break 2 18240 fi 18241done 18242 done 18243IFS=$as_save_IFS 18244 18245 ;; 18246esac 18247fi 18248ASCIIDOC=$ac_cv_path_ASCIIDOC 18249if test -n "$ASCIIDOC"; then 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 18251$as_echo "$ASCIIDOC" >&6; } 18252else 18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18254$as_echo "no" >&6; } 18255fi 18256 18257 18258 if test "x$ASCIIDOC" = "x"; then 18259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 18260$as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 18261 have_asciidoc=no 18262 else 18263 have_asciidoc=yes 18264 fi 18265elif test "x$use_asciidoc" = x"yes" ; then 18266 # Extract the first word of "asciidoc", so it can be a program name with args. 18267set dummy asciidoc; ac_word=$2 18268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18269$as_echo_n "checking for $ac_word... " >&6; } 18270if ${ac_cv_path_ASCIIDOC+:} false; then : 18271 $as_echo_n "(cached) " >&6 18272else 18273 case $ASCIIDOC in 18274 [\\/]* | ?:[\\/]*) 18275 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 18276 ;; 18277 *) 18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18279for as_dir in $PATH 18280do 18281 IFS=$as_save_IFS 18282 test -z "$as_dir" && as_dir=. 18283 for ac_exec_ext in '' $ac_executable_extensions; do 18284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18285 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 18286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18287 break 2 18288 fi 18289done 18290 done 18291IFS=$as_save_IFS 18292 18293 ;; 18294esac 18295fi 18296ASCIIDOC=$ac_cv_path_ASCIIDOC 18297if test -n "$ASCIIDOC"; then 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 18299$as_echo "$ASCIIDOC" >&6; } 18300else 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18302$as_echo "no" >&6; } 18303fi 18304 18305 18306 if test "x$ASCIIDOC" = "x"; then 18307 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 18308 fi 18309 have_asciidoc=yes 18310elif test "x$use_asciidoc" = x"no" ; then 18311 if test "x$ASCIIDOC" != "x"; then 18312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 18313$as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 18314 fi 18315 have_asciidoc=no 18316else 18317 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 18318fi 18319if test "$have_asciidoc" = yes; then 18320 # scrape the asciidoc version 18321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 18322$as_echo_n "checking the asciidoc version... " >&6; } 18323 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 18325$as_echo "$asciidoc_version" >&6; } 18326 as_arg_v1=$asciidoc_version 18327as_arg_v2=8.4.5 18328awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18329case $? in #( 18330 1) : 18331 if test "x$use_asciidoc" = xauto; then 18332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 18333$as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 18334 have_asciidoc=no 18335 else 18336 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 18337 fi ;; #( 18338 0) : 18339 ;; #( 18340 2) : 18341 ;; #( 18342 *) : 18343 ;; 18344esac 18345fi 18346 if test "$have_asciidoc" = yes; then 18347 HAVE_ASCIIDOC_TRUE= 18348 HAVE_ASCIIDOC_FALSE='#' 18349else 18350 HAVE_ASCIIDOC_TRUE='#' 18351 HAVE_ASCIIDOC_FALSE= 18352fi 18353 18354 18355 18356# Check whether --enable-malloc0returnsnull was given. 18357if test "${enable_malloc0returnsnull+set}" = set; then : 18358 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18359else 18360 MALLOC_ZERO_RETURNS_NULL=auto 18361fi 18362 18363 18364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18365$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18366if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18367 if test "$cross_compiling" = yes; then : 18368 MALLOC_ZERO_RETURNS_NULL=yes 18369else 18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18371/* end confdefs.h. */ 18372 18373#include <stdlib.h> 18374 18375int 18376main () 18377{ 18378 18379 char *m0, *r0, *c0, *p; 18380 m0 = malloc(0); 18381 p = malloc(10); 18382 r0 = realloc(p,0); 18383 c0 = calloc(0,10); 18384 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18385 18386 ; 18387 return 0; 18388} 18389_ACEOF 18390if ac_fn_c_try_run "$LINENO"; then : 18391 MALLOC_ZERO_RETURNS_NULL=yes 18392else 18393 MALLOC_ZERO_RETURNS_NULL=no 18394fi 18395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18396 conftest.$ac_objext conftest.beam conftest.$ac_ext 18397fi 18398 18399fi 18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18401$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18402 18403if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18404 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18405 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18406 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18407else 18408 MALLOC_ZERO_CFLAGS="" 18409 XMALLOC_ZERO_CFLAGS="" 18410 XTMALLOC_ZERO_CFLAGS="" 18411fi 18412 18413 18414 18415 18416 18417 18418# Obtain compiler/linker options for dependencies 18419 18420pkg_failed=no 18421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5 18422$as_echo_n "checking for XI... " >&6; } 18423 18424if test -n "$XI_CFLAGS"; then 18425 pkg_cv_XI_CFLAGS="$XI_CFLAGS" 18426 elif test -n "$PKG_CONFIG"; then 18427 if test -n "$PKG_CONFIG" && \ 18428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5 18429 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5 18430 ac_status=$? 18431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18432 test $ac_status = 0; }; then 18433 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null` 18434 test "x$?" != "x0" && pkg_failed=yes 18435else 18436 pkg_failed=yes 18437fi 18438 else 18439 pkg_failed=untried 18440fi 18441if test -n "$XI_LIBS"; then 18442 pkg_cv_XI_LIBS="$XI_LIBS" 18443 elif test -n "$PKG_CONFIG"; then 18444 if test -n "$PKG_CONFIG" && \ 18445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1\""; } >&5 18446 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1") 2>&5 18447 ac_status=$? 18448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18449 test $ac_status = 0; }; then 18450 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>/dev/null` 18451 test "x$?" != "x0" && pkg_failed=yes 18452else 18453 pkg_failed=yes 18454fi 18455 else 18456 pkg_failed=untried 18457fi 18458 18459 18460 18461if test $pkg_failed = yes; then 18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18463$as_echo "no" >&6; } 18464 18465if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18466 _pkg_short_errors_supported=yes 18467else 18468 _pkg_short_errors_supported=no 18469fi 18470 if test $_pkg_short_errors_supported = yes; then 18471 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1` 18472 else 18473 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1" 2>&1` 18474 fi 18475 # Put the nasty error message in config.log where it belongs 18476 echo "$XI_PKG_ERRORS" >&5 18477 18478 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.4.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 2.2.99.1) were not met: 18479 18480$XI_PKG_ERRORS 18481 18482Consider adjusting the PKG_CONFIG_PATH environment variable if you 18483installed software in a non-standard prefix. 18484 18485Alternatively, you may set the environment variables XI_CFLAGS 18486and XI_LIBS to avoid the need to call pkg-config. 18487See the pkg-config man page for more details." "$LINENO" 5 18488elif test $pkg_failed = untried; then 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18490$as_echo "no" >&6; } 18491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18493as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18494is in your PATH or set the PKG_CONFIG environment variable to the full 18495path to pkg-config. 18496 18497Alternatively, you may set the environment variables XI_CFLAGS 18498and XI_LIBS to avoid the need to call pkg-config. 18499See the pkg-config man page for more details. 18500 18501To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18502See \`config.log' for more details" "$LINENO" 5; } 18503else 18504 XI_CFLAGS=$pkg_cv_XI_CFLAGS 18505 XI_LIBS=$pkg_cv_XI_LIBS 18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18507$as_echo "yes" >&6; } 18508 18509fi 18510# CFLAGS only for PointerBarrier typedef 18511 18512pkg_failed=no 18513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5 18514$as_echo_n "checking for XFIXES... " >&6; } 18515 18516if test -n "$XFIXES_CFLAGS"; then 18517 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 18518 elif test -n "$PKG_CONFIG"; then 18519 if test -n "$PKG_CONFIG" && \ 18520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 18521 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 18522 ac_status=$? 18523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18524 test $ac_status = 0; }; then 18525 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null` 18526 test "x$?" != "x0" && pkg_failed=yes 18527else 18528 pkg_failed=yes 18529fi 18530 else 18531 pkg_failed=untried 18532fi 18533if test -n "$XFIXES_LIBS"; then 18534 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 18535 elif test -n "$PKG_CONFIG"; then 18536 if test -n "$PKG_CONFIG" && \ 18537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 18538 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 18539 ac_status=$? 18540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18541 test $ac_status = 0; }; then 18542 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null` 18543 test "x$?" != "x0" && pkg_failed=yes 18544else 18545 pkg_failed=yes 18546fi 18547 else 18548 pkg_failed=untried 18549fi 18550 18551 18552 18553if test $pkg_failed = yes; then 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18555$as_echo "no" >&6; } 18556 18557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18558 _pkg_short_errors_supported=yes 18559else 18560 _pkg_short_errors_supported=no 18561fi 18562 if test $_pkg_short_errors_supported = yes; then 18563 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xfixes >= 5" 2>&1` 18564 else 18565 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xfixes >= 5" 2>&1` 18566 fi 18567 # Put the nasty error message in config.log where it belongs 18568 echo "$XFIXES_PKG_ERRORS" >&5 18569 18570 as_fn_error $? "Package requirements (xfixes >= 5) were not met: 18571 18572$XFIXES_PKG_ERRORS 18573 18574Consider adjusting the PKG_CONFIG_PATH environment variable if you 18575installed software in a non-standard prefix. 18576 18577Alternatively, you may set the environment variables XFIXES_CFLAGS 18578and XFIXES_LIBS to avoid the need to call pkg-config. 18579See the pkg-config man page for more details." "$LINENO" 5 18580elif test $pkg_failed = untried; then 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18582$as_echo "no" >&6; } 18583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18585as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18586is in your PATH or set the PKG_CONFIG environment variable to the full 18587path to pkg-config. 18588 18589Alternatively, you may set the environment variables XFIXES_CFLAGS 18590and XFIXES_LIBS to avoid the need to call pkg-config. 18591See the pkg-config man page for more details. 18592 18593To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18594See \`config.log' for more details" "$LINENO" 5; } 18595else 18596 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 18597 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18599$as_echo "yes" >&6; } 18600 18601fi 18602 18603# Check for xmlto and asciidoc for man page conversion 18604# (only needed by people building tarballs) 18605if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 18606 have_doctools=yes 18607else 18608 have_doctools=no 18609fi 18610 if test $have_doctools = yes; then 18611 HAVE_DOCTOOLS_TRUE= 18612 HAVE_DOCTOOLS_FALSE='#' 18613else 18614 HAVE_DOCTOOLS_TRUE='#' 18615 HAVE_DOCTOOLS_FALSE= 18616fi 18617 18618if test $have_doctools = no; then 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 18620$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 18621fi 18622 18623# Determine if the source for man pages is available 18624# It may already be present (tarball) or can be generated using doctools 18625 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 18626 test $have_doctools = yes; then 18627 INSTALL_MANPAGES_TRUE= 18628 INSTALL_MANPAGES_FALSE='#' 18629else 18630 INSTALL_MANPAGES_TRUE='#' 18631 INSTALL_MANPAGES_FALSE= 18632fi 18633 18634 18635ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc" 18636 18637cat >confcache <<\_ACEOF 18638# This file is a shell script that caches the results of configure 18639# tests run on this system so they can be shared between configure 18640# scripts and configure runs, see configure's option --config-cache. 18641# It is not useful on other systems. If it contains results you don't 18642# want to keep, you may remove or edit it. 18643# 18644# config.status only pays attention to the cache file if you give it 18645# the --recheck option to rerun configure. 18646# 18647# `ac_cv_env_foo' variables (set or unset) will be overridden when 18648# loading this file, other *unset* `ac_cv_foo' will be assigned the 18649# following values. 18650 18651_ACEOF 18652 18653# The following way of writing the cache mishandles newlines in values, 18654# but we know of no workaround that is simple, portable, and efficient. 18655# So, we kill variables containing newlines. 18656# Ultrix sh set writes to stderr and can't be redirected directly, 18657# and sets the high bit in the cache file unless we assign to the vars. 18658( 18659 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18660 eval ac_val=\$$ac_var 18661 case $ac_val in #( 18662 *${as_nl}*) 18663 case $ac_var in #( 18664 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18665$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18666 esac 18667 case $ac_var in #( 18668 _ | IFS | as_nl) ;; #( 18669 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18670 *) { eval $ac_var=; unset $ac_var;} ;; 18671 esac ;; 18672 esac 18673 done 18674 18675 (set) 2>&1 | 18676 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18677 *${as_nl}ac_space=\ *) 18678 # `set' does not quote correctly, so add quotes: double-quote 18679 # substitution turns \\\\ into \\, and sed turns \\ into \. 18680 sed -n \ 18681 "s/'/'\\\\''/g; 18682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18683 ;; #( 18684 *) 18685 # `set' quotes correctly as required by POSIX, so do not add quotes. 18686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18687 ;; 18688 esac | 18689 sort 18690) | 18691 sed ' 18692 /^ac_cv_env_/b end 18693 t clear 18694 :clear 18695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18696 t end 18697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18698 :end' >>confcache 18699if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18700 if test -w "$cache_file"; then 18701 if test "x$cache_file" != "x/dev/null"; then 18702 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18703$as_echo "$as_me: updating cache $cache_file" >&6;} 18704 if test ! -f "$cache_file" || test -h "$cache_file"; then 18705 cat confcache >"$cache_file" 18706 else 18707 case $cache_file in #( 18708 */* | ?:*) 18709 mv -f confcache "$cache_file"$$ && 18710 mv -f "$cache_file"$$ "$cache_file" ;; #( 18711 *) 18712 mv -f confcache "$cache_file" ;; 18713 esac 18714 fi 18715 fi 18716 else 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18718$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18719 fi 18720fi 18721rm -f confcache 18722 18723test "x$prefix" = xNONE && prefix=$ac_default_prefix 18724# Let make expand exec_prefix. 18725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18726 18727DEFS=-DHAVE_CONFIG_H 18728 18729ac_libobjs= 18730ac_ltlibobjs= 18731U= 18732for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18733 # 1. Remove the extension, and $U if already installed. 18734 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18735 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18736 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18737 # will be set to the directory where LIBOBJS objects are built. 18738 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18739 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18740done 18741LIBOBJS=$ac_libobjs 18742 18743LTLIBOBJS=$ac_ltlibobjs 18744 18745 18746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18747$as_echo_n "checking that generated files are newer than configure... " >&6; } 18748 if test -n "$am_sleep_pid"; then 18749 # Hide warnings about reused PIDs. 18750 wait $am_sleep_pid 2>/dev/null 18751 fi 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18753$as_echo "done" >&6; } 18754 if test -n "$EXEEXT"; then 18755 am__EXEEXT_TRUE= 18756 am__EXEEXT_FALSE='#' 18757else 18758 am__EXEEXT_TRUE='#' 18759 am__EXEEXT_FALSE= 18760fi 18761 18762if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18763 as_fn_error $? "conditional \"AMDEP\" was never defined. 18764Usually this means the macro was only invoked conditionally." "$LINENO" 5 18765fi 18766if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18767 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18768Usually this means the macro was only invoked conditionally." "$LINENO" 5 18769fi 18770if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 18771 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 18772Usually this means the macro was only invoked conditionally." "$LINENO" 5 18773fi 18774if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 18775 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 18776Usually this means the macro was only invoked conditionally." "$LINENO" 5 18777fi 18778if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18779 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18780Usually this means the macro was only invoked conditionally." "$LINENO" 5 18781fi 18782if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18783 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18784Usually this means the macro was only invoked conditionally." "$LINENO" 5 18785fi 18786if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18787 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18788Usually this means the macro was only invoked conditionally." "$LINENO" 5 18789fi 18790if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18791 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18792Usually this means the macro was only invoked conditionally." "$LINENO" 5 18793fi 18794if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18795 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18796Usually this means the macro was only invoked conditionally." "$LINENO" 5 18797fi 18798if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 18799 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 18800Usually this means the macro was only invoked conditionally." "$LINENO" 5 18801fi 18802if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 18803 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 18804Usually this means the macro was only invoked conditionally." "$LINENO" 5 18805fi 18806if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 18807 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 18808Usually this means the macro was only invoked conditionally." "$LINENO" 5 18809fi 18810 18811: "${CONFIG_STATUS=./config.status}" 18812ac_write_fail=0 18813ac_clean_files_save=$ac_clean_files 18814ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18815{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18816$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18817as_write_fail=0 18818cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18819#! $SHELL 18820# Generated by $as_me. 18821# Run this file to recreate the current configuration. 18822# Compiler output produced by configure, useful for debugging 18823# configure, is in config.log if it exists. 18824 18825debug=false 18826ac_cs_recheck=false 18827ac_cs_silent=false 18828 18829SHELL=\${CONFIG_SHELL-$SHELL} 18830export SHELL 18831_ASEOF 18832cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18833## -------------------- ## 18834## M4sh Initialization. ## 18835## -------------------- ## 18836 18837# Be more Bourne compatible 18838DUALCASE=1; export DUALCASE # for MKS sh 18839if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18840 emulate sh 18841 NULLCMD=: 18842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18843 # is contrary to our usage. Disable this feature. 18844 alias -g '${1+"$@"}'='"$@"' 18845 setopt NO_GLOB_SUBST 18846else 18847 case `(set -o) 2>/dev/null` in #( 18848 *posix*) : 18849 set -o posix ;; #( 18850 *) : 18851 ;; 18852esac 18853fi 18854 18855 18856as_nl=' 18857' 18858export as_nl 18859# Printing a long string crashes Solaris 7 /usr/bin/printf. 18860as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18861as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18862as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18863# Prefer a ksh shell builtin over an external printf program on Solaris, 18864# but without wasting forks for bash or zsh. 18865if test -z "$BASH_VERSION$ZSH_VERSION" \ 18866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18867 as_echo='print -r --' 18868 as_echo_n='print -rn --' 18869elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18870 as_echo='printf %s\n' 18871 as_echo_n='printf %s' 18872else 18873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18875 as_echo_n='/usr/ucb/echo -n' 18876 else 18877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18878 as_echo_n_body='eval 18879 arg=$1; 18880 case $arg in #( 18881 *"$as_nl"*) 18882 expr "X$arg" : "X\\(.*\\)$as_nl"; 18883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18884 esac; 18885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18886 ' 18887 export as_echo_n_body 18888 as_echo_n='sh -c $as_echo_n_body as_echo' 18889 fi 18890 export as_echo_body 18891 as_echo='sh -c $as_echo_body as_echo' 18892fi 18893 18894# The user is always right. 18895if test "${PATH_SEPARATOR+set}" != set; then 18896 PATH_SEPARATOR=: 18897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18899 PATH_SEPARATOR=';' 18900 } 18901fi 18902 18903 18904# IFS 18905# We need space, tab and new line, in precisely that order. Quoting is 18906# there to prevent editors from complaining about space-tab. 18907# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18908# splitting by setting IFS to empty value.) 18909IFS=" "" $as_nl" 18910 18911# Find who we are. Look in the path if we contain no directory separator. 18912as_myself= 18913case $0 in #(( 18914 *[\\/]* ) as_myself=$0 ;; 18915 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18916for as_dir in $PATH 18917do 18918 IFS=$as_save_IFS 18919 test -z "$as_dir" && as_dir=. 18920 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18921 done 18922IFS=$as_save_IFS 18923 18924 ;; 18925esac 18926# We did not find ourselves, most probably we were run as `sh COMMAND' 18927# in which case we are not to be found in the path. 18928if test "x$as_myself" = x; then 18929 as_myself=$0 18930fi 18931if test ! -f "$as_myself"; then 18932 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18933 exit 1 18934fi 18935 18936# Unset variables that we do not need and which cause bugs (e.g. in 18937# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18938# suppresses any "Segmentation fault" message there. '((' could 18939# trigger a bug in pdksh 5.2.14. 18940for as_var in BASH_ENV ENV MAIL MAILPATH 18941do eval test x\${$as_var+set} = xset \ 18942 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18943done 18944PS1='$ ' 18945PS2='> ' 18946PS4='+ ' 18947 18948# NLS nuisances. 18949LC_ALL=C 18950export LC_ALL 18951LANGUAGE=C 18952export LANGUAGE 18953 18954# CDPATH. 18955(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18956 18957 18958# as_fn_error STATUS ERROR [LINENO LOG_FD] 18959# ---------------------------------------- 18960# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18961# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18962# script with STATUS, using 1 if that was 0. 18963as_fn_error () 18964{ 18965 as_status=$1; test $as_status -eq 0 && as_status=1 18966 if test "$4"; then 18967 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18968 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18969 fi 18970 $as_echo "$as_me: error: $2" >&2 18971 as_fn_exit $as_status 18972} # as_fn_error 18973 18974 18975# as_fn_set_status STATUS 18976# ----------------------- 18977# Set $? to STATUS, without forking. 18978as_fn_set_status () 18979{ 18980 return $1 18981} # as_fn_set_status 18982 18983# as_fn_exit STATUS 18984# ----------------- 18985# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18986as_fn_exit () 18987{ 18988 set +e 18989 as_fn_set_status $1 18990 exit $1 18991} # as_fn_exit 18992 18993# as_fn_unset VAR 18994# --------------- 18995# Portably unset VAR. 18996as_fn_unset () 18997{ 18998 { eval $1=; unset $1;} 18999} 19000as_unset=as_fn_unset 19001# as_fn_append VAR VALUE 19002# ---------------------- 19003# Append the text in VALUE to the end of the definition contained in VAR. Take 19004# advantage of any shell optimizations that allow amortized linear growth over 19005# repeated appends, instead of the typical quadratic growth present in naive 19006# implementations. 19007if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19008 eval 'as_fn_append () 19009 { 19010 eval $1+=\$2 19011 }' 19012else 19013 as_fn_append () 19014 { 19015 eval $1=\$$1\$2 19016 } 19017fi # as_fn_append 19018 19019# as_fn_arith ARG... 19020# ------------------ 19021# Perform arithmetic evaluation on the ARGs, and store the result in the 19022# global $as_val. Take advantage of shells that can avoid forks. The arguments 19023# must be portable across $(()) and expr. 19024if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19025 eval 'as_fn_arith () 19026 { 19027 as_val=$(( $* )) 19028 }' 19029else 19030 as_fn_arith () 19031 { 19032 as_val=`expr "$@" || test $? -eq 1` 19033 } 19034fi # as_fn_arith 19035 19036 19037if expr a : '\(a\)' >/dev/null 2>&1 && 19038 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19039 as_expr=expr 19040else 19041 as_expr=false 19042fi 19043 19044if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19045 as_basename=basename 19046else 19047 as_basename=false 19048fi 19049 19050if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19051 as_dirname=dirname 19052else 19053 as_dirname=false 19054fi 19055 19056as_me=`$as_basename -- "$0" || 19057$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19058 X"$0" : 'X\(//\)$' \| \ 19059 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19060$as_echo X/"$0" | 19061 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19062 s//\1/ 19063 q 19064 } 19065 /^X\/\(\/\/\)$/{ 19066 s//\1/ 19067 q 19068 } 19069 /^X\/\(\/\).*/{ 19070 s//\1/ 19071 q 19072 } 19073 s/.*/./; q'` 19074 19075# Avoid depending upon Character Ranges. 19076as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19077as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19078as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19079as_cr_digits='0123456789' 19080as_cr_alnum=$as_cr_Letters$as_cr_digits 19081 19082ECHO_C= ECHO_N= ECHO_T= 19083case `echo -n x` in #((((( 19084-n*) 19085 case `echo 'xy\c'` in 19086 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19087 xy) ECHO_C='\c';; 19088 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19089 ECHO_T=' ';; 19090 esac;; 19091*) 19092 ECHO_N='-n';; 19093esac 19094 19095rm -f conf$$ conf$$.exe conf$$.file 19096if test -d conf$$.dir; then 19097 rm -f conf$$.dir/conf$$.file 19098else 19099 rm -f conf$$.dir 19100 mkdir conf$$.dir 2>/dev/null 19101fi 19102if (echo >conf$$.file) 2>/dev/null; then 19103 if ln -s conf$$.file conf$$ 2>/dev/null; then 19104 as_ln_s='ln -s' 19105 # ... but there are two gotchas: 19106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19108 # In both cases, we have to default to `cp -pR'. 19109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19110 as_ln_s='cp -pR' 19111 elif ln conf$$.file conf$$ 2>/dev/null; then 19112 as_ln_s=ln 19113 else 19114 as_ln_s='cp -pR' 19115 fi 19116else 19117 as_ln_s='cp -pR' 19118fi 19119rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19120rmdir conf$$.dir 2>/dev/null 19121 19122 19123# as_fn_mkdir_p 19124# ------------- 19125# Create "$as_dir" as a directory, including parents if necessary. 19126as_fn_mkdir_p () 19127{ 19128 19129 case $as_dir in #( 19130 -*) as_dir=./$as_dir;; 19131 esac 19132 test -d "$as_dir" || eval $as_mkdir_p || { 19133 as_dirs= 19134 while :; do 19135 case $as_dir in #( 19136 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19137 *) as_qdir=$as_dir;; 19138 esac 19139 as_dirs="'$as_qdir' $as_dirs" 19140 as_dir=`$as_dirname -- "$as_dir" || 19141$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19142 X"$as_dir" : 'X\(//\)[^/]' \| \ 19143 X"$as_dir" : 'X\(//\)$' \| \ 19144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19145$as_echo X"$as_dir" | 19146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19147 s//\1/ 19148 q 19149 } 19150 /^X\(\/\/\)[^/].*/{ 19151 s//\1/ 19152 q 19153 } 19154 /^X\(\/\/\)$/{ 19155 s//\1/ 19156 q 19157 } 19158 /^X\(\/\).*/{ 19159 s//\1/ 19160 q 19161 } 19162 s/.*/./; q'` 19163 test -d "$as_dir" && break 19164 done 19165 test -z "$as_dirs" || eval "mkdir $as_dirs" 19166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19167 19168 19169} # as_fn_mkdir_p 19170if mkdir -p . 2>/dev/null; then 19171 as_mkdir_p='mkdir -p "$as_dir"' 19172else 19173 test -d ./-p && rmdir ./-p 19174 as_mkdir_p=false 19175fi 19176 19177 19178# as_fn_executable_p FILE 19179# ----------------------- 19180# Test if FILE is an executable regular file. 19181as_fn_executable_p () 19182{ 19183 test -f "$1" && test -x "$1" 19184} # as_fn_executable_p 19185as_test_x='test -x' 19186as_executable_p=as_fn_executable_p 19187 19188# Sed expression to map a string onto a valid CPP name. 19189as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19190 19191# Sed expression to map a string onto a valid variable name. 19192as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19193 19194 19195exec 6>&1 19196## ----------------------------------- ## 19197## Main body of $CONFIG_STATUS script. ## 19198## ----------------------------------- ## 19199_ASEOF 19200test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19201 19202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19203# Save the log message, to keep $0 and so on meaningful, and to 19204# report actual input values of CONFIG_FILES etc. instead of their 19205# values after options handling. 19206ac_log=" 19207This file was extended by libXi $as_me 1.7.1, which was 19208generated by GNU Autoconf 2.69. Invocation command line was 19209 19210 CONFIG_FILES = $CONFIG_FILES 19211 CONFIG_HEADERS = $CONFIG_HEADERS 19212 CONFIG_LINKS = $CONFIG_LINKS 19213 CONFIG_COMMANDS = $CONFIG_COMMANDS 19214 $ $0 $@ 19215 19216on `(hostname || uname -n) 2>/dev/null | sed 1q` 19217" 19218 19219_ACEOF 19220 19221case $ac_config_files in *" 19222"*) set x $ac_config_files; shift; ac_config_files=$*;; 19223esac 19224 19225case $ac_config_headers in *" 19226"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19227esac 19228 19229 19230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19231# Files that config.status was made for. 19232config_files="$ac_config_files" 19233config_headers="$ac_config_headers" 19234config_commands="$ac_config_commands" 19235 19236_ACEOF 19237 19238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19239ac_cs_usage="\ 19240\`$as_me' instantiates files and other configuration actions 19241from templates according to the current configuration. Unless the files 19242and actions are specified as TAGs, all are instantiated by default. 19243 19244Usage: $0 [OPTION]... [TAG]... 19245 19246 -h, --help print this help, then exit 19247 -V, --version print version number and configuration settings, then exit 19248 --config print configuration, then exit 19249 -q, --quiet, --silent 19250 do not print progress messages 19251 -d, --debug don't remove temporary files 19252 --recheck update $as_me by reconfiguring in the same conditions 19253 --file=FILE[:TEMPLATE] 19254 instantiate the configuration file FILE 19255 --header=FILE[:TEMPLATE] 19256 instantiate the configuration header FILE 19257 19258Configuration files: 19259$config_files 19260 19261Configuration headers: 19262$config_headers 19263 19264Configuration commands: 19265$config_commands 19266 19267Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19268 19269_ACEOF 19270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19271ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19272ac_cs_version="\\ 19273libXi config.status 1.7.1 19274configured by $0, generated by GNU Autoconf 2.69, 19275 with options \\"\$ac_cs_config\\" 19276 19277Copyright (C) 2012 Free Software Foundation, Inc. 19278This config.status script is free software; the Free Software Foundation 19279gives unlimited permission to copy, distribute and modify it." 19280 19281ac_pwd='$ac_pwd' 19282srcdir='$srcdir' 19283INSTALL='$INSTALL' 19284MKDIR_P='$MKDIR_P' 19285AWK='$AWK' 19286test -n "\$AWK" || AWK=awk 19287_ACEOF 19288 19289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19290# The default lists apply if the user does not specify any file. 19291ac_need_defaults=: 19292while test $# != 0 19293do 19294 case $1 in 19295 --*=?*) 19296 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19297 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19298 ac_shift=: 19299 ;; 19300 --*=) 19301 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19302 ac_optarg= 19303 ac_shift=: 19304 ;; 19305 *) 19306 ac_option=$1 19307 ac_optarg=$2 19308 ac_shift=shift 19309 ;; 19310 esac 19311 19312 case $ac_option in 19313 # Handling of the options. 19314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19315 ac_cs_recheck=: ;; 19316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19317 $as_echo "$ac_cs_version"; exit ;; 19318 --config | --confi | --conf | --con | --co | --c ) 19319 $as_echo "$ac_cs_config"; exit ;; 19320 --debug | --debu | --deb | --de | --d | -d ) 19321 debug=: ;; 19322 --file | --fil | --fi | --f ) 19323 $ac_shift 19324 case $ac_optarg in 19325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19326 '') as_fn_error $? "missing file argument" ;; 19327 esac 19328 as_fn_append CONFIG_FILES " '$ac_optarg'" 19329 ac_need_defaults=false;; 19330 --header | --heade | --head | --hea ) 19331 $ac_shift 19332 case $ac_optarg in 19333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19334 esac 19335 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19336 ac_need_defaults=false;; 19337 --he | --h) 19338 # Conflict between --help and --header 19339 as_fn_error $? "ambiguous option: \`$1' 19340Try \`$0 --help' for more information.";; 19341 --help | --hel | -h ) 19342 $as_echo "$ac_cs_usage"; exit ;; 19343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19344 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19345 ac_cs_silent=: ;; 19346 19347 # This is an error. 19348 -*) as_fn_error $? "unrecognized option: \`$1' 19349Try \`$0 --help' for more information." ;; 19350 19351 *) as_fn_append ac_config_targets " $1" 19352 ac_need_defaults=false ;; 19353 19354 esac 19355 shift 19356done 19357 19358ac_configure_extra_args= 19359 19360if $ac_cs_silent; then 19361 exec 6>/dev/null 19362 ac_configure_extra_args="$ac_configure_extra_args --silent" 19363fi 19364 19365_ACEOF 19366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19367if \$ac_cs_recheck; then 19368 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19369 shift 19370 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19371 CONFIG_SHELL='$SHELL' 19372 export CONFIG_SHELL 19373 exec "\$@" 19374fi 19375 19376_ACEOF 19377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19378exec 5>>config.log 19379{ 19380 echo 19381 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19382## Running $as_me. ## 19383_ASBOX 19384 $as_echo "$ac_log" 19385} >&5 19386 19387_ACEOF 19388cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19389# 19390# INIT-COMMANDS 19391# 19392AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19393 19394 19395# The HP-UX ksh and POSIX shell print the target directory to stdout 19396# if CDPATH is set. 19397(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19398 19399sed_quote_subst='$sed_quote_subst' 19400double_quote_subst='$double_quote_subst' 19401delay_variable_subst='$delay_variable_subst' 19402macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19403macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19404enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19405enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19406pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19407enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19408SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19409ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19410PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19411host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19412host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19413host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19414build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19415build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19416build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19417SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19418Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19419GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19420EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19421FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19422LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19423NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19424LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19425max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19426ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19427exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19428lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19429lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19430lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19431lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19432lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19433reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19434reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19435OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19436deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19437file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19438file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19439want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19440DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19441sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19442AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19443AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19444archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19445STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19446RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19447old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19448old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19449old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19450lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19451CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19452CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19453compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19454GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19455lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19456lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19457lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19458lt_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"`' 19459nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19460lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19461objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19462MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19463lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19464lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19465lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19466lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19467lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19468need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19469MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19470DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19471NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19472LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19473OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19474OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19475libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19476shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19477extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19478archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19479enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19480export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19481whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19482compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19483old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19484old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19485archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19486archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19487module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19488module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19489with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19490allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19491no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19492hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19493hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19494hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19495hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19496hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19497hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19498hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19499inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19500link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19501always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19502export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19503exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19504include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19505prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19506postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19507file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19508variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19509need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19510need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19511version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19512runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19513shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19514shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19515libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19516library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19517soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19518install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19519postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19520postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19521finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19522finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19523hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19524sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19525sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19526hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19527enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19528enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19529enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19530old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19531striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19532 19533LTCC='$LTCC' 19534LTCFLAGS='$LTCFLAGS' 19535compiler='$compiler_DEFAULT' 19536 19537# A function that is used when there is no print builtin or printf. 19538func_fallback_echo () 19539{ 19540 eval 'cat <<_LTECHO_EOF 19541\$1 19542_LTECHO_EOF' 19543} 19544 19545# Quote evaled strings. 19546for var in SHELL \ 19547ECHO \ 19548PATH_SEPARATOR \ 19549SED \ 19550GREP \ 19551EGREP \ 19552FGREP \ 19553LD \ 19554NM \ 19555LN_S \ 19556lt_SP2NL \ 19557lt_NL2SP \ 19558reload_flag \ 19559OBJDUMP \ 19560deplibs_check_method \ 19561file_magic_cmd \ 19562file_magic_glob \ 19563want_nocaseglob \ 19564DLLTOOL \ 19565sharedlib_from_linklib_cmd \ 19566AR \ 19567AR_FLAGS \ 19568archiver_list_spec \ 19569STRIP \ 19570RANLIB \ 19571CC \ 19572CFLAGS \ 19573compiler \ 19574lt_cv_sys_global_symbol_pipe \ 19575lt_cv_sys_global_symbol_to_cdecl \ 19576lt_cv_sys_global_symbol_to_c_name_address \ 19577lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19578nm_file_list_spec \ 19579lt_prog_compiler_no_builtin_flag \ 19580lt_prog_compiler_pic \ 19581lt_prog_compiler_wl \ 19582lt_prog_compiler_static \ 19583lt_cv_prog_compiler_c_o \ 19584need_locks \ 19585MANIFEST_TOOL \ 19586DSYMUTIL \ 19587NMEDIT \ 19588LIPO \ 19589OTOOL \ 19590OTOOL64 \ 19591shrext_cmds \ 19592export_dynamic_flag_spec \ 19593whole_archive_flag_spec \ 19594compiler_needs_object \ 19595with_gnu_ld \ 19596allow_undefined_flag \ 19597no_undefined_flag \ 19598hardcode_libdir_flag_spec \ 19599hardcode_libdir_separator \ 19600exclude_expsyms \ 19601include_expsyms \ 19602file_list_spec \ 19603variables_saved_for_relink \ 19604libname_spec \ 19605library_names_spec \ 19606soname_spec \ 19607install_override_mode \ 19608finish_eval \ 19609old_striplib \ 19610striplib; do 19611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19612 *[\\\\\\\`\\"\\\$]*) 19613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19614 ;; 19615 *) 19616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19617 ;; 19618 esac 19619done 19620 19621# Double-quote double-evaled strings. 19622for var in reload_cmds \ 19623old_postinstall_cmds \ 19624old_postuninstall_cmds \ 19625old_archive_cmds \ 19626extract_expsyms_cmds \ 19627old_archive_from_new_cmds \ 19628old_archive_from_expsyms_cmds \ 19629archive_cmds \ 19630archive_expsym_cmds \ 19631module_cmds \ 19632module_expsym_cmds \ 19633export_symbols_cmds \ 19634prelink_cmds \ 19635postlink_cmds \ 19636postinstall_cmds \ 19637postuninstall_cmds \ 19638finish_cmds \ 19639sys_lib_search_path_spec \ 19640sys_lib_dlsearch_path_spec; do 19641 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19642 *[\\\\\\\`\\"\\\$]*) 19643 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19644 ;; 19645 *) 19646 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19647 ;; 19648 esac 19649done 19650 19651ac_aux_dir='$ac_aux_dir' 19652xsi_shell='$xsi_shell' 19653lt_shell_append='$lt_shell_append' 19654 19655# See if we are running on zsh, and set the options which allow our 19656# commands through without removal of \ escapes INIT. 19657if test -n "\${ZSH_VERSION+set}" ; then 19658 setopt NO_GLOB_SUBST 19659fi 19660 19661 19662 PACKAGE='$PACKAGE' 19663 VERSION='$VERSION' 19664 TIMESTAMP='$TIMESTAMP' 19665 RM='$RM' 19666 ofile='$ofile' 19667 19668 19669 19670 19671_ACEOF 19672 19673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19674 19675# Handling of arguments. 19676for ac_config_target in $ac_config_targets 19677do 19678 case $ac_config_target in 19679 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 19680 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19681 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19682 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19683 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19684 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19685 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19686 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 19687 19688 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19689 esac 19690done 19691 19692 19693# If the user did not use the arguments to specify the items to instantiate, 19694# then the envvar interface is used. Set only those that are not. 19695# We use the long form for the default assignment because of an extremely 19696# bizarre bug on SunOS 4.1.3. 19697if $ac_need_defaults; then 19698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19701fi 19702 19703# Have a temporary directory for convenience. Make it in the build tree 19704# simply because there is no reason against having it here, and in addition, 19705# creating and moving files from /tmp can sometimes cause problems. 19706# Hook for its removal unless debugging. 19707# Note that there is a small window in which the directory will not be cleaned: 19708# after its creation but before its name has been assigned to `$tmp'. 19709$debug || 19710{ 19711 tmp= ac_tmp= 19712 trap 'exit_status=$? 19713 : "${ac_tmp:=$tmp}" 19714 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19715' 0 19716 trap 'as_fn_exit 1' 1 2 13 15 19717} 19718# Create a (secure) tmp directory for tmp files. 19719 19720{ 19721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19722 test -d "$tmp" 19723} || 19724{ 19725 tmp=./conf$$-$RANDOM 19726 (umask 077 && mkdir "$tmp") 19727} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19728ac_tmp=$tmp 19729 19730# Set up the scripts for CONFIG_FILES section. 19731# No need to generate them if there are no CONFIG_FILES. 19732# This happens for instance with `./config.status config.h'. 19733if test -n "$CONFIG_FILES"; then 19734 19735 19736ac_cr=`echo X | tr X '\015'` 19737# On cygwin, bash can eat \r inside `` if the user requested igncr. 19738# But we know of no other shell where ac_cr would be empty at this 19739# point, so we can use a bashism as a fallback. 19740if test "x$ac_cr" = x; then 19741 eval ac_cr=\$\'\\r\' 19742fi 19743ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19744if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19745 ac_cs_awk_cr='\\r' 19746else 19747 ac_cs_awk_cr=$ac_cr 19748fi 19749 19750echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19751_ACEOF 19752 19753 19754{ 19755 echo "cat >conf$$subs.awk <<_ACEOF" && 19756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19757 echo "_ACEOF" 19758} >conf$$subs.sh || 19759 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19760ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19761ac_delim='%!_!# ' 19762for ac_last_try in false false false false false :; do 19763 . ./conf$$subs.sh || 19764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19765 19766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19767 if test $ac_delim_n = $ac_delim_num; then 19768 break 19769 elif $ac_last_try; then 19770 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19771 else 19772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19773 fi 19774done 19775rm -f conf$$subs.sh 19776 19777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19778cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19779_ACEOF 19780sed -n ' 19781h 19782s/^/S["/; s/!.*/"]=/ 19783p 19784g 19785s/^[^!]*!// 19786:repl 19787t repl 19788s/'"$ac_delim"'$// 19789t delim 19790:nl 19791h 19792s/\(.\{148\}\)..*/\1/ 19793t more1 19794s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19795p 19796n 19797b repl 19798:more1 19799s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19800p 19801g 19802s/.\{148\}// 19803t nl 19804:delim 19805h 19806s/\(.\{148\}\)..*/\1/ 19807t more2 19808s/["\\]/\\&/g; s/^/"/; s/$/"/ 19809p 19810b 19811:more2 19812s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19813p 19814g 19815s/.\{148\}// 19816t delim 19817' <conf$$subs.awk | sed ' 19818/^[^""]/{ 19819 N 19820 s/\n// 19821} 19822' >>$CONFIG_STATUS || ac_write_fail=1 19823rm -f conf$$subs.awk 19824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19825_ACAWK 19826cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19827 for (key in S) S_is_set[key] = 1 19828 FS = "" 19829 19830} 19831{ 19832 line = $ 0 19833 nfields = split(line, field, "@") 19834 substed = 0 19835 len = length(field[1]) 19836 for (i = 2; i < nfields; i++) { 19837 key = field[i] 19838 keylen = length(key) 19839 if (S_is_set[key]) { 19840 value = S[key] 19841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19842 len += length(value) + length(field[++i]) 19843 substed = 1 19844 } else 19845 len += 1 + keylen 19846 } 19847 19848 print line 19849} 19850 19851_ACAWK 19852_ACEOF 19853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19854if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19856else 19857 cat 19858fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19859 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19860_ACEOF 19861 19862# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19863# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19864# trailing colons and then remove the whole line if VPATH becomes empty 19865# (actually we leave an empty line to preserve line numbers). 19866if test "x$srcdir" = x.; then 19867 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19868h 19869s/// 19870s/^/:/ 19871s/[ ]*$/:/ 19872s/:\$(srcdir):/:/g 19873s/:\${srcdir}:/:/g 19874s/:@srcdir@:/:/g 19875s/^:*// 19876s/:*$// 19877x 19878s/\(=[ ]*\).*/\1/ 19879G 19880s/\n// 19881s/^[^=]*=[ ]*$// 19882}' 19883fi 19884 19885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19886fi # test -n "$CONFIG_FILES" 19887 19888# Set up the scripts for CONFIG_HEADERS section. 19889# No need to generate them if there are no CONFIG_HEADERS. 19890# This happens for instance with `./config.status Makefile'. 19891if test -n "$CONFIG_HEADERS"; then 19892cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19893BEGIN { 19894_ACEOF 19895 19896# Transform confdefs.h into an awk script `defines.awk', embedded as 19897# here-document in config.status, that substitutes the proper values into 19898# config.h.in to produce config.h. 19899 19900# Create a delimiter string that does not exist in confdefs.h, to ease 19901# handling of long lines. 19902ac_delim='%!_!# ' 19903for ac_last_try in false false :; do 19904 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19905 if test -z "$ac_tt"; then 19906 break 19907 elif $ac_last_try; then 19908 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19909 else 19910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19911 fi 19912done 19913 19914# For the awk script, D is an array of macro values keyed by name, 19915# likewise P contains macro parameters if any. Preserve backslash 19916# newline sequences. 19917 19918ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19919sed -n ' 19920s/.\{148\}/&'"$ac_delim"'/g 19921t rset 19922:rset 19923s/^[ ]*#[ ]*define[ ][ ]*/ / 19924t def 19925d 19926:def 19927s/\\$// 19928t bsnl 19929s/["\\]/\\&/g 19930s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19931D["\1"]=" \3"/p 19932s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19933d 19934:bsnl 19935s/["\\]/\\&/g 19936s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19937D["\1"]=" \3\\\\\\n"\\/p 19938t cont 19939s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19940t cont 19941d 19942:cont 19943n 19944s/.\{148\}/&'"$ac_delim"'/g 19945t clear 19946:clear 19947s/\\$// 19948t bsnlc 19949s/["\\]/\\&/g; s/^/"/; s/$/"/p 19950d 19951:bsnlc 19952s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19953b cont 19954' <confdefs.h | sed ' 19955s/'"$ac_delim"'/"\\\ 19956"/g' >>$CONFIG_STATUS || ac_write_fail=1 19957 19958cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19959 for (key in D) D_is_set[key] = 1 19960 FS = "" 19961} 19962/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19963 line = \$ 0 19964 split(line, arg, " ") 19965 if (arg[1] == "#") { 19966 defundef = arg[2] 19967 mac1 = arg[3] 19968 } else { 19969 defundef = substr(arg[1], 2) 19970 mac1 = arg[2] 19971 } 19972 split(mac1, mac2, "(") #) 19973 macro = mac2[1] 19974 prefix = substr(line, 1, index(line, defundef) - 1) 19975 if (D_is_set[macro]) { 19976 # Preserve the white space surrounding the "#". 19977 print prefix "define", macro P[macro] D[macro] 19978 next 19979 } else { 19980 # Replace #undef with comments. This is necessary, for example, 19981 # in the case of _POSIX_SOURCE, which is predefined and required 19982 # on some systems where configure will not decide to define it. 19983 if (defundef == "undef") { 19984 print "/*", prefix defundef, macro, "*/" 19985 next 19986 } 19987 } 19988} 19989{ print } 19990_ACAWK 19991_ACEOF 19992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19993 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19994fi # test -n "$CONFIG_HEADERS" 19995 19996 19997eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19998shift 19999for ac_tag 20000do 20001 case $ac_tag in 20002 :[FHLC]) ac_mode=$ac_tag; continue;; 20003 esac 20004 case $ac_mode$ac_tag in 20005 :[FHL]*:*);; 20006 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20007 :[FH]-) ac_tag=-:-;; 20008 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20009 esac 20010 ac_save_IFS=$IFS 20011 IFS=: 20012 set x $ac_tag 20013 IFS=$ac_save_IFS 20014 shift 20015 ac_file=$1 20016 shift 20017 20018 case $ac_mode in 20019 :L) ac_source=$1;; 20020 :[FH]) 20021 ac_file_inputs= 20022 for ac_f 20023 do 20024 case $ac_f in 20025 -) ac_f="$ac_tmp/stdin";; 20026 *) # Look for the file first in the build tree, then in the source tree 20027 # (if the path is not absolute). The absolute path cannot be DOS-style, 20028 # because $ac_f cannot contain `:'. 20029 test -f "$ac_f" || 20030 case $ac_f in 20031 [\\/$]*) false;; 20032 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20033 esac || 20034 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20035 esac 20036 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20037 as_fn_append ac_file_inputs " '$ac_f'" 20038 done 20039 20040 # Let's still pretend it is `configure' which instantiates (i.e., don't 20041 # use $as_me), people would be surprised to read: 20042 # /* config.h. Generated by config.status. */ 20043 configure_input='Generated from '` 20044 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20045 `' by configure.' 20046 if test x"$ac_file" != x-; then 20047 configure_input="$ac_file. $configure_input" 20048 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20049$as_echo "$as_me: creating $ac_file" >&6;} 20050 fi 20051 # Neutralize special characters interpreted by sed in replacement strings. 20052 case $configure_input in #( 20053 *\&* | *\|* | *\\* ) 20054 ac_sed_conf_input=`$as_echo "$configure_input" | 20055 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20056 *) ac_sed_conf_input=$configure_input;; 20057 esac 20058 20059 case $ac_tag in 20060 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20062 esac 20063 ;; 20064 esac 20065 20066 ac_dir=`$as_dirname -- "$ac_file" || 20067$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20068 X"$ac_file" : 'X\(//\)[^/]' \| \ 20069 X"$ac_file" : 'X\(//\)$' \| \ 20070 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20071$as_echo X"$ac_file" | 20072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20073 s//\1/ 20074 q 20075 } 20076 /^X\(\/\/\)[^/].*/{ 20077 s//\1/ 20078 q 20079 } 20080 /^X\(\/\/\)$/{ 20081 s//\1/ 20082 q 20083 } 20084 /^X\(\/\).*/{ 20085 s//\1/ 20086 q 20087 } 20088 s/.*/./; q'` 20089 as_dir="$ac_dir"; as_fn_mkdir_p 20090 ac_builddir=. 20091 20092case "$ac_dir" in 20093.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20094*) 20095 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20096 # A ".." for each directory in $ac_dir_suffix. 20097 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20098 case $ac_top_builddir_sub in 20099 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20100 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20101 esac ;; 20102esac 20103ac_abs_top_builddir=$ac_pwd 20104ac_abs_builddir=$ac_pwd$ac_dir_suffix 20105# for backward compatibility: 20106ac_top_builddir=$ac_top_build_prefix 20107 20108case $srcdir in 20109 .) # We are building in place. 20110 ac_srcdir=. 20111 ac_top_srcdir=$ac_top_builddir_sub 20112 ac_abs_top_srcdir=$ac_pwd ;; 20113 [\\/]* | ?:[\\/]* ) # Absolute name. 20114 ac_srcdir=$srcdir$ac_dir_suffix; 20115 ac_top_srcdir=$srcdir 20116 ac_abs_top_srcdir=$srcdir ;; 20117 *) # Relative name. 20118 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20119 ac_top_srcdir=$ac_top_build_prefix$srcdir 20120 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20121esac 20122ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20123 20124 20125 case $ac_mode in 20126 :F) 20127 # 20128 # CONFIG_FILE 20129 # 20130 20131 case $INSTALL in 20132 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20133 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20134 esac 20135 ac_MKDIR_P=$MKDIR_P 20136 case $MKDIR_P in 20137 [\\/$]* | ?:[\\/]* ) ;; 20138 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20139 esac 20140_ACEOF 20141 20142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20143# If the template does not know about datarootdir, expand it. 20144# FIXME: This hack should be removed a few years after 2.60. 20145ac_datarootdir_hack=; ac_datarootdir_seen= 20146ac_sed_dataroot=' 20147/datarootdir/ { 20148 p 20149 q 20150} 20151/@datadir@/p 20152/@docdir@/p 20153/@infodir@/p 20154/@localedir@/p 20155/@mandir@/p' 20156case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20157*datarootdir*) ac_datarootdir_seen=yes;; 20158*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20160$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20161_ACEOF 20162cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20163 ac_datarootdir_hack=' 20164 s&@datadir@&$datadir&g 20165 s&@docdir@&$docdir&g 20166 s&@infodir@&$infodir&g 20167 s&@localedir@&$localedir&g 20168 s&@mandir@&$mandir&g 20169 s&\\\${datarootdir}&$datarootdir&g' ;; 20170esac 20171_ACEOF 20172 20173# Neutralize VPATH when `$srcdir' = `.'. 20174# Shell code in configure.ac might set extrasub. 20175# FIXME: do we really want to maintain this feature? 20176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20177ac_sed_extra="$ac_vpsub 20178$extrasub 20179_ACEOF 20180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20181:t 20182/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20183s|@configure_input@|$ac_sed_conf_input|;t t 20184s&@top_builddir@&$ac_top_builddir_sub&;t t 20185s&@top_build_prefix@&$ac_top_build_prefix&;t t 20186s&@srcdir@&$ac_srcdir&;t t 20187s&@abs_srcdir@&$ac_abs_srcdir&;t t 20188s&@top_srcdir@&$ac_top_srcdir&;t t 20189s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20190s&@builddir@&$ac_builddir&;t t 20191s&@abs_builddir@&$ac_abs_builddir&;t t 20192s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20193s&@INSTALL@&$ac_INSTALL&;t t 20194s&@MKDIR_P@&$ac_MKDIR_P&;t t 20195$ac_datarootdir_hack 20196" 20197eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20198 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20199 20200test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20201 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20203 "$ac_tmp/out"`; test -z "$ac_out"; } && 20204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20205which seems to be undefined. Please make sure it is defined" >&5 20206$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20207which seems to be undefined. Please make sure it is defined" >&2;} 20208 20209 rm -f "$ac_tmp/stdin" 20210 case $ac_file in 20211 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20212 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20213 esac \ 20214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20215 ;; 20216 :H) 20217 # 20218 # CONFIG_HEADER 20219 # 20220 if test x"$ac_file" != x-; then 20221 { 20222 $as_echo "/* $configure_input */" \ 20223 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20224 } >"$ac_tmp/config.h" \ 20225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20226 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20227 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20228$as_echo "$as_me: $ac_file is unchanged" >&6;} 20229 else 20230 rm -f "$ac_file" 20231 mv "$ac_tmp/config.h" "$ac_file" \ 20232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20233 fi 20234 else 20235 $as_echo "/* $configure_input */" \ 20236 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20237 || as_fn_error $? "could not create -" "$LINENO" 5 20238 fi 20239# Compute "$ac_file"'s index in $config_headers. 20240_am_arg="$ac_file" 20241_am_stamp_count=1 20242for _am_header in $config_headers :; do 20243 case $_am_header in 20244 $_am_arg | $_am_arg:* ) 20245 break ;; 20246 * ) 20247 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20248 esac 20249done 20250echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20251$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20252 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20253 X"$_am_arg" : 'X\(//\)$' \| \ 20254 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20255$as_echo X"$_am_arg" | 20256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20257 s//\1/ 20258 q 20259 } 20260 /^X\(\/\/\)[^/].*/{ 20261 s//\1/ 20262 q 20263 } 20264 /^X\(\/\/\)$/{ 20265 s//\1/ 20266 q 20267 } 20268 /^X\(\/\).*/{ 20269 s//\1/ 20270 q 20271 } 20272 s/.*/./; q'`/stamp-h$_am_stamp_count 20273 ;; 20274 20275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20276$as_echo "$as_me: executing $ac_file commands" >&6;} 20277 ;; 20278 esac 20279 20280 20281 case $ac_file$ac_mode in 20282 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20283 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20284 # are listed without --file. Let's play safe and only enable the eval 20285 # if we detect the quoting. 20286 case $CONFIG_FILES in 20287 *\'*) eval set x "$CONFIG_FILES" ;; 20288 *) set x $CONFIG_FILES ;; 20289 esac 20290 shift 20291 for mf 20292 do 20293 # Strip MF so we end up with the name of the file. 20294 mf=`echo "$mf" | sed -e 's/:.*$//'` 20295 # Check whether this is an Automake generated Makefile or not. 20296 # We used to match only the files named 'Makefile.in', but 20297 # some people rename them; so instead we look at the file content. 20298 # Grep'ing the first line is not enough: some people post-process 20299 # each Makefile.in and add a new line on top of each file to say so. 20300 # Grep'ing the whole file is not good either: AIX grep has a line 20301 # limit of 2048, but all sed's we know have understand at least 4000. 20302 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20303 dirpart=`$as_dirname -- "$mf" || 20304$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20305 X"$mf" : 'X\(//\)[^/]' \| \ 20306 X"$mf" : 'X\(//\)$' \| \ 20307 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20308$as_echo X"$mf" | 20309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20310 s//\1/ 20311 q 20312 } 20313 /^X\(\/\/\)[^/].*/{ 20314 s//\1/ 20315 q 20316 } 20317 /^X\(\/\/\)$/{ 20318 s//\1/ 20319 q 20320 } 20321 /^X\(\/\).*/{ 20322 s//\1/ 20323 q 20324 } 20325 s/.*/./; q'` 20326 else 20327 continue 20328 fi 20329 # Extract the definition of DEPDIR, am__include, and am__quote 20330 # from the Makefile without running 'make'. 20331 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20332 test -z "$DEPDIR" && continue 20333 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20334 test -z "am__include" && continue 20335 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20336 # Find all dependency output files, they are included files with 20337 # $(DEPDIR) in their names. We invoke sed twice because it is the 20338 # simplest approach to changing $(DEPDIR) to its actual value in the 20339 # expansion. 20340 for file in `sed -n " 20341 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20342 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20343 # Make sure the directory exists. 20344 test -f "$dirpart/$file" && continue 20345 fdir=`$as_dirname -- "$file" || 20346$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20347 X"$file" : 'X\(//\)[^/]' \| \ 20348 X"$file" : 'X\(//\)$' \| \ 20349 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20350$as_echo X"$file" | 20351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20352 s//\1/ 20353 q 20354 } 20355 /^X\(\/\/\)[^/].*/{ 20356 s//\1/ 20357 q 20358 } 20359 /^X\(\/\/\)$/{ 20360 s//\1/ 20361 q 20362 } 20363 /^X\(\/\).*/{ 20364 s//\1/ 20365 q 20366 } 20367 s/.*/./; q'` 20368 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20369 # echo "creating $dirpart/$file" 20370 echo '# dummy' > "$dirpart/$file" 20371 done 20372 done 20373} 20374 ;; 20375 "libtool":C) 20376 20377 # See if we are running on zsh, and set the options which allow our 20378 # commands through without removal of \ escapes. 20379 if test -n "${ZSH_VERSION+set}" ; then 20380 setopt NO_GLOB_SUBST 20381 fi 20382 20383 cfgfile="${ofile}T" 20384 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20385 $RM "$cfgfile" 20386 20387 cat <<_LT_EOF >> "$cfgfile" 20388#! $SHELL 20389 20390# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20391# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20392# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20393# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20394# 20395# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20396# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20397# Foundation, Inc. 20398# Written by Gordon Matzigkeit, 1996 20399# 20400# This file is part of GNU Libtool. 20401# 20402# GNU Libtool is free software; you can redistribute it and/or 20403# modify it under the terms of the GNU General Public License as 20404# published by the Free Software Foundation; either version 2 of 20405# the License, or (at your option) any later version. 20406# 20407# As a special exception to the GNU General Public License, 20408# if you distribute this file as part of a program or library that 20409# is built using GNU Libtool, you may include this file under the 20410# same distribution terms that you use for the rest of that program. 20411# 20412# GNU Libtool is distributed in the hope that it will be useful, 20413# but WITHOUT ANY WARRANTY; without even the implied warranty of 20414# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20415# GNU General Public License for more details. 20416# 20417# You should have received a copy of the GNU General Public License 20418# along with GNU Libtool; see the file COPYING. If not, a copy 20419# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20420# obtained by writing to the Free Software Foundation, Inc., 20421# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20422 20423 20424# The names of the tagged configurations supported by this script. 20425available_tags="" 20426 20427# ### BEGIN LIBTOOL CONFIG 20428 20429# Which release of libtool.m4 was used? 20430macro_version=$macro_version 20431macro_revision=$macro_revision 20432 20433# Whether or not to build shared libraries. 20434build_libtool_libs=$enable_shared 20435 20436# Whether or not to build static libraries. 20437build_old_libs=$enable_static 20438 20439# What type of objects to build. 20440pic_mode=$pic_mode 20441 20442# Whether or not to optimize for fast installation. 20443fast_install=$enable_fast_install 20444 20445# Shell to use when invoking shell scripts. 20446SHELL=$lt_SHELL 20447 20448# An echo program that protects backslashes. 20449ECHO=$lt_ECHO 20450 20451# The PATH separator for the build system. 20452PATH_SEPARATOR=$lt_PATH_SEPARATOR 20453 20454# The host system. 20455host_alias=$host_alias 20456host=$host 20457host_os=$host_os 20458 20459# The build system. 20460build_alias=$build_alias 20461build=$build 20462build_os=$build_os 20463 20464# A sed program that does not truncate output. 20465SED=$lt_SED 20466 20467# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20468Xsed="\$SED -e 1s/^X//" 20469 20470# A grep program that handles long lines. 20471GREP=$lt_GREP 20472 20473# An ERE matcher. 20474EGREP=$lt_EGREP 20475 20476# A literal string matcher. 20477FGREP=$lt_FGREP 20478 20479# A BSD- or MS-compatible name lister. 20480NM=$lt_NM 20481 20482# Whether we need soft or hard links. 20483LN_S=$lt_LN_S 20484 20485# What is the maximum length of a command? 20486max_cmd_len=$max_cmd_len 20487 20488# Object file suffix (normally "o"). 20489objext=$ac_objext 20490 20491# Executable file suffix (normally ""). 20492exeext=$exeext 20493 20494# whether the shell understands "unset". 20495lt_unset=$lt_unset 20496 20497# turn spaces into newlines. 20498SP2NL=$lt_lt_SP2NL 20499 20500# turn newlines into spaces. 20501NL2SP=$lt_lt_NL2SP 20502 20503# convert \$build file names to \$host format. 20504to_host_file_cmd=$lt_cv_to_host_file_cmd 20505 20506# convert \$build files to toolchain format. 20507to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20508 20509# An object symbol dumper. 20510OBJDUMP=$lt_OBJDUMP 20511 20512# Method to check whether dependent libraries are shared objects. 20513deplibs_check_method=$lt_deplibs_check_method 20514 20515# Command to use when deplibs_check_method = "file_magic". 20516file_magic_cmd=$lt_file_magic_cmd 20517 20518# How to find potential files when deplibs_check_method = "file_magic". 20519file_magic_glob=$lt_file_magic_glob 20520 20521# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20522want_nocaseglob=$lt_want_nocaseglob 20523 20524# DLL creation program. 20525DLLTOOL=$lt_DLLTOOL 20526 20527# Command to associate shared and link libraries. 20528sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20529 20530# The archiver. 20531AR=$lt_AR 20532 20533# Flags to create an archive. 20534AR_FLAGS=$lt_AR_FLAGS 20535 20536# How to feed a file listing to the archiver. 20537archiver_list_spec=$lt_archiver_list_spec 20538 20539# A symbol stripping program. 20540STRIP=$lt_STRIP 20541 20542# Commands used to install an old-style archive. 20543RANLIB=$lt_RANLIB 20544old_postinstall_cmds=$lt_old_postinstall_cmds 20545old_postuninstall_cmds=$lt_old_postuninstall_cmds 20546 20547# Whether to use a lock for old archive extraction. 20548lock_old_archive_extraction=$lock_old_archive_extraction 20549 20550# A C compiler. 20551LTCC=$lt_CC 20552 20553# LTCC compiler flags. 20554LTCFLAGS=$lt_CFLAGS 20555 20556# Take the output of nm and produce a listing of raw symbols and C names. 20557global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20558 20559# Transform the output of nm in a proper C declaration. 20560global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20561 20562# Transform the output of nm in a C name address pair. 20563global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20564 20565# Transform the output of nm in a C name address pair when lib prefix is needed. 20566global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20567 20568# Specify filename containing input files for \$NM. 20569nm_file_list_spec=$lt_nm_file_list_spec 20570 20571# The root where to search for dependent libraries,and in which our libraries should be installed. 20572lt_sysroot=$lt_sysroot 20573 20574# The name of the directory that contains temporary libtool files. 20575objdir=$objdir 20576 20577# Used to examine libraries when file_magic_cmd begins with "file". 20578MAGIC_CMD=$MAGIC_CMD 20579 20580# Must we lock files when doing compilation? 20581need_locks=$lt_need_locks 20582 20583# Manifest tool. 20584MANIFEST_TOOL=$lt_MANIFEST_TOOL 20585 20586# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20587DSYMUTIL=$lt_DSYMUTIL 20588 20589# Tool to change global to local symbols on Mac OS X. 20590NMEDIT=$lt_NMEDIT 20591 20592# Tool to manipulate fat objects and archives on Mac OS X. 20593LIPO=$lt_LIPO 20594 20595# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20596OTOOL=$lt_OTOOL 20597 20598# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20599OTOOL64=$lt_OTOOL64 20600 20601# Old archive suffix (normally "a"). 20602libext=$libext 20603 20604# Shared library suffix (normally ".so"). 20605shrext_cmds=$lt_shrext_cmds 20606 20607# The commands to extract the exported symbol list from a shared archive. 20608extract_expsyms_cmds=$lt_extract_expsyms_cmds 20609 20610# Variables whose values should be saved in libtool wrapper scripts and 20611# restored at link time. 20612variables_saved_for_relink=$lt_variables_saved_for_relink 20613 20614# Do we need the "lib" prefix for modules? 20615need_lib_prefix=$need_lib_prefix 20616 20617# Do we need a version for libraries? 20618need_version=$need_version 20619 20620# Library versioning type. 20621version_type=$version_type 20622 20623# Shared library runtime path variable. 20624runpath_var=$runpath_var 20625 20626# Shared library path variable. 20627shlibpath_var=$shlibpath_var 20628 20629# Is shlibpath searched before the hard-coded library search path? 20630shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20631 20632# Format of library name prefix. 20633libname_spec=$lt_libname_spec 20634 20635# List of archive names. First name is the real one, the rest are links. 20636# The last name is the one that the linker finds with -lNAME 20637library_names_spec=$lt_library_names_spec 20638 20639# The coded name of the library, if different from the real name. 20640soname_spec=$lt_soname_spec 20641 20642# Permission mode override for installation of shared libraries. 20643install_override_mode=$lt_install_override_mode 20644 20645# Command to use after installation of a shared archive. 20646postinstall_cmds=$lt_postinstall_cmds 20647 20648# Command to use after uninstallation of a shared archive. 20649postuninstall_cmds=$lt_postuninstall_cmds 20650 20651# Commands used to finish a libtool library installation in a directory. 20652finish_cmds=$lt_finish_cmds 20653 20654# As "finish_cmds", except a single script fragment to be evaled but 20655# not shown. 20656finish_eval=$lt_finish_eval 20657 20658# Whether we should hardcode library paths into libraries. 20659hardcode_into_libs=$hardcode_into_libs 20660 20661# Compile-time system search path for libraries. 20662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20663 20664# Run-time system search path for libraries. 20665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20666 20667# Whether dlopen is supported. 20668dlopen_support=$enable_dlopen 20669 20670# Whether dlopen of programs is supported. 20671dlopen_self=$enable_dlopen_self 20672 20673# Whether dlopen of statically linked programs is supported. 20674dlopen_self_static=$enable_dlopen_self_static 20675 20676# Commands to strip libraries. 20677old_striplib=$lt_old_striplib 20678striplib=$lt_striplib 20679 20680 20681# The linker used to build libraries. 20682LD=$lt_LD 20683 20684# How to create reloadable object files. 20685reload_flag=$lt_reload_flag 20686reload_cmds=$lt_reload_cmds 20687 20688# Commands used to build an old-style archive. 20689old_archive_cmds=$lt_old_archive_cmds 20690 20691# A language specific compiler. 20692CC=$lt_compiler 20693 20694# Is the compiler the GNU compiler? 20695with_gcc=$GCC 20696 20697# Compiler flag to turn off builtin functions. 20698no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20699 20700# Additional compiler flags for building library objects. 20701pic_flag=$lt_lt_prog_compiler_pic 20702 20703# How to pass a linker flag through the compiler. 20704wl=$lt_lt_prog_compiler_wl 20705 20706# Compiler flag to prevent dynamic linking. 20707link_static_flag=$lt_lt_prog_compiler_static 20708 20709# Does compiler simultaneously support -c and -o options? 20710compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20711 20712# Whether or not to add -lc for building shared libraries. 20713build_libtool_need_lc=$archive_cmds_need_lc 20714 20715# Whether or not to disallow shared libs when runtime libs are static. 20716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20717 20718# Compiler flag to allow reflexive dlopens. 20719export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20720 20721# Compiler flag to generate shared objects directly from archives. 20722whole_archive_flag_spec=$lt_whole_archive_flag_spec 20723 20724# Whether the compiler copes with passing no objects directly. 20725compiler_needs_object=$lt_compiler_needs_object 20726 20727# Create an old-style archive from a shared archive. 20728old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20729 20730# Create a temporary old-style archive to link instead of a shared archive. 20731old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20732 20733# Commands used to build a shared archive. 20734archive_cmds=$lt_archive_cmds 20735archive_expsym_cmds=$lt_archive_expsym_cmds 20736 20737# Commands used to build a loadable module if different from building 20738# a shared archive. 20739module_cmds=$lt_module_cmds 20740module_expsym_cmds=$lt_module_expsym_cmds 20741 20742# Whether we are building with GNU ld or not. 20743with_gnu_ld=$lt_with_gnu_ld 20744 20745# Flag that allows shared libraries with undefined symbols to be built. 20746allow_undefined_flag=$lt_allow_undefined_flag 20747 20748# Flag that enforces no undefined symbols. 20749no_undefined_flag=$lt_no_undefined_flag 20750 20751# Flag to hardcode \$libdir into a binary during linking. 20752# This must work even if \$libdir does not exist 20753hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20754 20755# Whether we need a single "-rpath" flag with a separated argument. 20756hardcode_libdir_separator=$lt_hardcode_libdir_separator 20757 20758# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20759# DIR into the resulting binary. 20760hardcode_direct=$hardcode_direct 20761 20762# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20763# DIR into the resulting binary and the resulting library dependency is 20764# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20765# library is relocated. 20766hardcode_direct_absolute=$hardcode_direct_absolute 20767 20768# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20769# into the resulting binary. 20770hardcode_minus_L=$hardcode_minus_L 20771 20772# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20773# into the resulting binary. 20774hardcode_shlibpath_var=$hardcode_shlibpath_var 20775 20776# Set to "yes" if building a shared library automatically hardcodes DIR 20777# into the library and all subsequent libraries and executables linked 20778# against it. 20779hardcode_automatic=$hardcode_automatic 20780 20781# Set to yes if linker adds runtime paths of dependent libraries 20782# to runtime path list. 20783inherit_rpath=$inherit_rpath 20784 20785# Whether libtool must link a program against all its dependency libraries. 20786link_all_deplibs=$link_all_deplibs 20787 20788# Set to "yes" if exported symbols are required. 20789always_export_symbols=$always_export_symbols 20790 20791# The commands to list exported symbols. 20792export_symbols_cmds=$lt_export_symbols_cmds 20793 20794# Symbols that should not be listed in the preloaded symbols. 20795exclude_expsyms=$lt_exclude_expsyms 20796 20797# Symbols that must always be exported. 20798include_expsyms=$lt_include_expsyms 20799 20800# Commands necessary for linking programs (against libraries) with templates. 20801prelink_cmds=$lt_prelink_cmds 20802 20803# Commands necessary for finishing linking programs. 20804postlink_cmds=$lt_postlink_cmds 20805 20806# Specify filename containing input files. 20807file_list_spec=$lt_file_list_spec 20808 20809# How to hardcode a shared library path into an executable. 20810hardcode_action=$hardcode_action 20811 20812# ### END LIBTOOL CONFIG 20813 20814_LT_EOF 20815 20816 case $host_os in 20817 aix3*) 20818 cat <<\_LT_EOF >> "$cfgfile" 20819# AIX sometimes has problems with the GCC collect2 program. For some 20820# reason, if we set the COLLECT_NAMES environment variable, the problems 20821# vanish in a puff of smoke. 20822if test "X${COLLECT_NAMES+set}" != Xset; then 20823 COLLECT_NAMES= 20824 export COLLECT_NAMES 20825fi 20826_LT_EOF 20827 ;; 20828 esac 20829 20830 20831ltmain="$ac_aux_dir/ltmain.sh" 20832 20833 20834 # We use sed instead of cat because bash on DJGPP gets confused if 20835 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20836 # text mode, it properly converts lines to CR/LF. This bash problem 20837 # is reportedly fixed, but why not run on old versions too? 20838 sed '$q' "$ltmain" >> "$cfgfile" \ 20839 || (rm -f "$cfgfile"; exit 1) 20840 20841 if test x"$xsi_shell" = xyes; then 20842 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20843func_dirname ()\ 20844{\ 20845\ case ${1} in\ 20846\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20847\ * ) func_dirname_result="${3}" ;;\ 20848\ esac\ 20849} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20850 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20852test 0 -eq $? || _lt_function_replace_fail=: 20853 20854 20855 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20856func_basename ()\ 20857{\ 20858\ func_basename_result="${1##*/}"\ 20859} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20860 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20862test 0 -eq $? || _lt_function_replace_fail=: 20863 20864 20865 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20866func_dirname_and_basename ()\ 20867{\ 20868\ case ${1} in\ 20869\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20870\ * ) func_dirname_result="${3}" ;;\ 20871\ esac\ 20872\ func_basename_result="${1##*/}"\ 20873} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20874 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20876test 0 -eq $? || _lt_function_replace_fail=: 20877 20878 20879 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20880func_stripname ()\ 20881{\ 20882\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20883\ # positional parameters, so assign one to ordinary parameter first.\ 20884\ func_stripname_result=${3}\ 20885\ func_stripname_result=${func_stripname_result#"${1}"}\ 20886\ func_stripname_result=${func_stripname_result%"${2}"}\ 20887} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20888 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20889 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20890test 0 -eq $? || _lt_function_replace_fail=: 20891 20892 20893 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20894func_split_long_opt ()\ 20895{\ 20896\ func_split_long_opt_name=${1%%=*}\ 20897\ func_split_long_opt_arg=${1#*=}\ 20898} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20899 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20900 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20901test 0 -eq $? || _lt_function_replace_fail=: 20902 20903 20904 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20905func_split_short_opt ()\ 20906{\ 20907\ func_split_short_opt_arg=${1#??}\ 20908\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20909} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20910 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20912test 0 -eq $? || _lt_function_replace_fail=: 20913 20914 20915 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20916func_lo2o ()\ 20917{\ 20918\ case ${1} in\ 20919\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20920\ *) func_lo2o_result=${1} ;;\ 20921\ esac\ 20922} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20923 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20925test 0 -eq $? || _lt_function_replace_fail=: 20926 20927 20928 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20929func_xform ()\ 20930{\ 20931 func_xform_result=${1%.*}.lo\ 20932} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20933 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20935test 0 -eq $? || _lt_function_replace_fail=: 20936 20937 20938 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20939func_arith ()\ 20940{\ 20941 func_arith_result=$(( $* ))\ 20942} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20943 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20945test 0 -eq $? || _lt_function_replace_fail=: 20946 20947 20948 sed -e '/^func_len ()$/,/^} # func_len /c\ 20949func_len ()\ 20950{\ 20951 func_len_result=${#1}\ 20952} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20953 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20955test 0 -eq $? || _lt_function_replace_fail=: 20956 20957fi 20958 20959if test x"$lt_shell_append" = xyes; then 20960 sed -e '/^func_append ()$/,/^} # func_append /c\ 20961func_append ()\ 20962{\ 20963 eval "${1}+=\\${2}"\ 20964} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20965 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20966 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20967test 0 -eq $? || _lt_function_replace_fail=: 20968 20969 20970 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20971func_append_quoted ()\ 20972{\ 20973\ func_quote_for_eval "${2}"\ 20974\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20975} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20976 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20977 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20978test 0 -eq $? || _lt_function_replace_fail=: 20979 20980 20981 # Save a `func_append' function call where possible by direct use of '+=' 20982 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20983 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20985 test 0 -eq $? || _lt_function_replace_fail=: 20986else 20987 # Save a `func_append' function call even when '+=' is not available 20988 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20989 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20990 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20991 test 0 -eq $? || _lt_function_replace_fail=: 20992fi 20993 20994if test x"$_lt_function_replace_fail" = x":"; then 20995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20996$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20997fi 20998 20999 21000 mv -f "$cfgfile" "$ofile" || 21001 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21002 chmod +x "$ofile" 21003 21004 ;; 21005 21006 esac 21007done # for ac_tag 21008 21009 21010as_fn_exit 0 21011_ACEOF 21012ac_clean_files=$ac_clean_files_save 21013 21014test $ac_write_fail = 0 || 21015 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21016 21017 21018# configure is writing to config.log, and then calls config.status. 21019# config.status does its own redirection, appending to config.log. 21020# Unfortunately, on DOS this fails, as config.log is still kept open 21021# by configure, so config.status won't be able to write to it; its 21022# output is simply discarded. So we exec the FD to /dev/null, 21023# effectively closing config.log, so it can be properly (re)opened and 21024# appended to by config.status. When coming back to configure, we 21025# need to make the FD available again. 21026if test "$no_create" != yes; then 21027 ac_cs_success=: 21028 ac_config_status_args= 21029 test "$silent" = yes && 21030 ac_config_status_args="$ac_config_status_args --quiet" 21031 exec 5>/dev/null 21032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21033 exec 5>>config.log 21034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21035 # would make configure fail if this is the last instruction. 21036 $ac_cs_success || as_fn_exit 1 21037fi 21038if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21040$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21041fi 21042 21043