configure revision 06c34b88
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXi 1.7.2. 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.2' 655PACKAGE_STRING='libXi 1.7.2' 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 734MAN_SUBSTS 735XORG_MAN_PAGE 736ADMIN_MAN_DIR 737DRIVER_MAN_DIR 738MISC_MAN_DIR 739FILE_MAN_DIR 740LIB_MAN_DIR 741APP_MAN_DIR 742ADMIN_MAN_SUFFIX 743DRIVER_MAN_SUFFIX 744MISC_MAN_SUFFIX 745FILE_MAN_SUFFIX 746LIB_MAN_SUFFIX 747APP_MAN_SUFFIX 748INSTALL_CMD 749PKG_CONFIG_LIBDIR 750PKG_CONFIG_PATH 751PKG_CONFIG 752CHANGELOG_CMD 753STRICT_CFLAGS 754CWARNFLAGS 755BASE_CFLAGS 756CPP 757OTOOL64 758OTOOL 759LIPO 760NMEDIT 761DSYMUTIL 762MANIFEST_TOOL 763RANLIB 764ac_ct_AR 765AR 766DLLTOOL 767OBJDUMP 768LN_S 769NM 770ac_ct_DUMPBIN 771DUMPBIN 772LD 773FGREP 774EGREP 775GREP 776SED 777am__fastdepCC_FALSE 778am__fastdepCC_TRUE 779CCDEPMODE 780am__nodep 781AMDEPBACKSLASH 782AMDEP_FALSE 783AMDEP_TRUE 784am__quote 785am__include 786DEPDIR 787OBJEXT 788EXEEXT 789ac_ct_CC 790CPPFLAGS 791LDFLAGS 792CFLAGS 793CC 794host_os 795host_vendor 796host_cpu 797host 798build_os 799build_vendor 800build_cpu 801build 802LIBTOOL 803AM_BACKSLASH 804AM_DEFAULT_VERBOSITY 805AM_DEFAULT_V 806AM_V 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_silent_rules 872enable_shared 873enable_static 874with_pic 875enable_fast_install 876enable_dependency_tracking 877with_gnu_ld 878with_sysroot 879enable_libtool_lock 880enable_selective_werror 881enable_strict_compilation 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.2 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.2:";; 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-silent-rules less verbose build output (undo: "make V=1") 1529 --disable-silent-rules verbose build output (undo: "make V=0") 1530 --enable-shared[=PKGS] build shared libraries [default=yes] 1531 --enable-static[=PKGS] build static libraries [default=yes] 1532 --enable-fast-install[=PKGS] 1533 optimize for fast installation [default=yes] 1534 --enable-dependency-tracking 1535 do not reject slow dependency extractors 1536 --disable-dependency-tracking 1537 speeds up one-time build 1538 --disable-libtool-lock avoid locking (might break parallel builds) 1539 --disable-selective-werror 1540 Turn off selective compiler errors. (default: 1541 enabled) 1542 --enable-strict-compilation 1543 Enable all warnings from compiler and make them 1544 errors (default: disabled) 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.2 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.2, 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.13' 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 --is-lightweight"; then 2547 am_missing_run="$MISSING " 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 2787# Check whether --enable-silent-rules was given. 2788if test "${enable_silent_rules+set}" = set; then : 2789 enableval=$enable_silent_rules; 2790fi 2791 2792case $enable_silent_rules in # ((( 2793 yes) AM_DEFAULT_VERBOSITY=0;; 2794 no) AM_DEFAULT_VERBOSITY=1;; 2795 *) AM_DEFAULT_VERBOSITY=1;; 2796esac 2797am_make=${MAKE-make} 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2799$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2800if ${am_cv_make_support_nested_variables+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 if $as_echo 'TRUE=$(BAR$(V)) 2804BAR0=false 2805BAR1=true 2806V=1 2807am__doit: 2808 @$(TRUE) 2809.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2810 am_cv_make_support_nested_variables=yes 2811else 2812 am_cv_make_support_nested_variables=no 2813fi 2814fi 2815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2816$as_echo "$am_cv_make_support_nested_variables" >&6; } 2817if test $am_cv_make_support_nested_variables = yes; then 2818 AM_V='$(V)' 2819 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2820else 2821 AM_V=$AM_DEFAULT_VERBOSITY 2822 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2823fi 2824AM_BACKSLASH='\' 2825 2826if test "`cd $srcdir && pwd`" != "`pwd`"; then 2827 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2828 # is not polluted with repeated "-I." 2829 am__isrc=' -I$(srcdir)' 2830 # test to see if srcdir already configured 2831 if test -f $srcdir/config.status; then 2832 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2833 fi 2834fi 2835 2836# test whether we have cygpath 2837if test -z "$CYGPATH_W"; then 2838 if (cygpath --version) >/dev/null 2>/dev/null; then 2839 CYGPATH_W='cygpath -w' 2840 else 2841 CYGPATH_W=echo 2842 fi 2843fi 2844 2845 2846# Define the identity of the package. 2847 PACKAGE='libXi' 2848 VERSION='1.7.2' 2849 2850 2851cat >>confdefs.h <<_ACEOF 2852#define PACKAGE "$PACKAGE" 2853_ACEOF 2854 2855 2856cat >>confdefs.h <<_ACEOF 2857#define VERSION "$VERSION" 2858_ACEOF 2859 2860# Some tools Automake needs. 2861 2862ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2863 2864 2865AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2866 2867 2868AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2869 2870 2871AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2872 2873 2874MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2875 2876# For better backward compatibility. To be removed once Automake 1.9.x 2877# dies out for good. For more background, see: 2878# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2879# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2880mkdir_p='$(MKDIR_P)' 2881 2882# We need awk for the "check" target. The system "awk" is bad on 2883# some platforms. 2884# Always define AMTAR for backward compatibility. Yes, it's still used 2885# in the wild :-( We should find a proper way to deprecate it ... 2886AMTAR='$${TAR-tar}' 2887 2888 2889# We'll loop over all known methods to create a tar archive until one works. 2890_am_tools='gnutar pax cpio none' 2891 2892am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2893 2894 2895 2896 2897 2898 2899 2900# Initialize libtool 2901case `pwd` in 2902 *\ * | *\ *) 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2904$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2905esac 2906 2907 2908 2909macro_version='2.4.2' 2910macro_revision='1.3337' 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924ltmain="$ac_aux_dir/ltmain.sh" 2925 2926# Make sure we can run config.sub. 2927$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2928 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2929 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2931$as_echo_n "checking build system type... " >&6; } 2932if ${ac_cv_build+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 ac_build_alias=$build_alias 2936test "x$ac_build_alias" = x && 2937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2938test "x$ac_build_alias" = x && 2939 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2940ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2941 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2942 2943fi 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2945$as_echo "$ac_cv_build" >&6; } 2946case $ac_cv_build in 2947*-*-*) ;; 2948*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2949esac 2950build=$ac_cv_build 2951ac_save_IFS=$IFS; IFS='-' 2952set x $ac_cv_build 2953shift 2954build_cpu=$1 2955build_vendor=$2 2956shift; shift 2957# Remember, the first character of IFS is used to create $*, 2958# except with old shells: 2959build_os=$* 2960IFS=$ac_save_IFS 2961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2962 2963 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2965$as_echo_n "checking host system type... " >&6; } 2966if ${ac_cv_host+:} false; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 if test "x$host_alias" = x; then 2970 ac_cv_host=$ac_cv_build 2971else 2972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2973 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2974fi 2975 2976fi 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2978$as_echo "$ac_cv_host" >&6; } 2979case $ac_cv_host in 2980*-*-*) ;; 2981*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2982esac 2983host=$ac_cv_host 2984ac_save_IFS=$IFS; IFS='-' 2985set x $ac_cv_host 2986shift 2987host_cpu=$1 2988host_vendor=$2 2989shift; shift 2990# Remember, the first character of IFS is used to create $*, 2991# except with old shells: 2992host_os=$* 2993IFS=$ac_save_IFS 2994case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2995 2996 2997# Backslashify metacharacters that are still active within 2998# double-quoted strings. 2999sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3000 3001# Same as above, but do not quote variable references. 3002double_quote_subst='s/\(["`\\]\)/\\\1/g' 3003 3004# Sed substitution to delay expansion of an escaped shell variable in a 3005# double_quote_subst'ed string. 3006delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3007 3008# Sed substitution to delay expansion of an escaped single quote. 3009delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3010 3011# Sed substitution to avoid accidental globbing in evaled expressions 3012no_glob_subst='s/\*/\\\*/g' 3013 3014ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3015ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3016ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3017 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3019$as_echo_n "checking how to print strings... " >&6; } 3020# Test print first, because it will be a builtin if present. 3021if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3022 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3023 ECHO='print -r --' 3024elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3025 ECHO='printf %s\n' 3026else 3027 # Use this function as a fallback that always works. 3028 func_fallback_echo () 3029 { 3030 eval 'cat <<_LTECHO_EOF 3031$1 3032_LTECHO_EOF' 3033 } 3034 ECHO='func_fallback_echo' 3035fi 3036 3037# func_echo_all arg... 3038# Invoke $ECHO with all args, space-separated. 3039func_echo_all () 3040{ 3041 $ECHO "" 3042} 3043 3044case "$ECHO" in 3045 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3046$as_echo "printf" >&6; } ;; 3047 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3048$as_echo "print -r" >&6; } ;; 3049 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3050$as_echo "cat" >&6; } ;; 3051esac 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066DEPDIR="${am__leading_dot}deps" 3067 3068ac_config_commands="$ac_config_commands depfiles" 3069 3070 3071am_make=${MAKE-make} 3072cat > confinc << 'END' 3073am__doit: 3074 @echo this is the am__doit target 3075.PHONY: am__doit 3076END 3077# If we don't find an include directive, just comment out the code. 3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3079$as_echo_n "checking for style of include used by $am_make... " >&6; } 3080am__include="#" 3081am__quote= 3082_am_result=none 3083# First try GNU make style include. 3084echo "include confinc" > confmf 3085# Ignore all kinds of additional output from 'make'. 3086case `$am_make -s -f confmf 2> /dev/null` in #( 3087*the\ am__doit\ target*) 3088 am__include=include 3089 am__quote= 3090 _am_result=GNU 3091 ;; 3092esac 3093# Now try BSD make style include. 3094if test "$am__include" = "#"; then 3095 echo '.include "confinc"' > confmf 3096 case `$am_make -s -f confmf 2> /dev/null` in #( 3097 *the\ am__doit\ target*) 3098 am__include=.include 3099 am__quote="\"" 3100 _am_result=BSD 3101 ;; 3102 esac 3103fi 3104 3105 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3107$as_echo "$_am_result" >&6; } 3108rm -f confinc confmf 3109 3110# Check whether --enable-dependency-tracking was given. 3111if test "${enable_dependency_tracking+set}" = set; then : 3112 enableval=$enable_dependency_tracking; 3113fi 3114 3115if test "x$enable_dependency_tracking" != xno; then 3116 am_depcomp="$ac_aux_dir/depcomp" 3117 AMDEPBACKSLASH='\' 3118 am__nodep='_no' 3119fi 3120 if test "x$enable_dependency_tracking" != xno; then 3121 AMDEP_TRUE= 3122 AMDEP_FALSE='#' 3123else 3124 AMDEP_TRUE='#' 3125 AMDEP_FALSE= 3126fi 3127 3128 3129ac_ext=c 3130ac_cpp='$CPP $CPPFLAGS' 3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3133ac_compiler_gnu=$ac_cv_c_compiler_gnu 3134if test -n "$ac_tool_prefix"; then 3135 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3136set dummy ${ac_tool_prefix}gcc; ac_word=$2 3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3138$as_echo_n "checking for $ac_word... " >&6; } 3139if ${ac_cv_prog_CC+:} false; then : 3140 $as_echo_n "(cached) " >&6 3141else 3142 if test -n "$CC"; then 3143 ac_cv_prog_CC="$CC" # Let the user override the test. 3144else 3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3146for as_dir in $PATH 3147do 3148 IFS=$as_save_IFS 3149 test -z "$as_dir" && as_dir=. 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3152 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3154 break 2 3155 fi 3156done 3157 done 3158IFS=$as_save_IFS 3159 3160fi 3161fi 3162CC=$ac_cv_prog_CC 3163if test -n "$CC"; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3165$as_echo "$CC" >&6; } 3166else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3168$as_echo "no" >&6; } 3169fi 3170 3171 3172fi 3173if test -z "$ac_cv_prog_CC"; then 3174 ac_ct_CC=$CC 3175 # Extract the first word of "gcc", so it can be a program name with args. 3176set dummy gcc; ac_word=$2 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3178$as_echo_n "checking for $ac_word... " >&6; } 3179if ${ac_cv_prog_ac_ct_CC+:} false; then : 3180 $as_echo_n "(cached) " >&6 3181else 3182 if test -n "$ac_ct_CC"; then 3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3184else 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for ac_exec_ext in '' $ac_executable_extensions; do 3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3192 ac_cv_prog_ac_ct_CC="gcc" 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3194 break 2 3195 fi 3196done 3197 done 3198IFS=$as_save_IFS 3199 3200fi 3201fi 3202ac_ct_CC=$ac_cv_prog_ac_ct_CC 3203if test -n "$ac_ct_CC"; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3205$as_echo "$ac_ct_CC" >&6; } 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209fi 3210 3211 if test "x$ac_ct_CC" = x; then 3212 CC="" 3213 else 3214 case $cross_compiling:$ac_tool_warned in 3215yes:) 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3218ac_tool_warned=yes ;; 3219esac 3220 CC=$ac_ct_CC 3221 fi 3222else 3223 CC="$ac_cv_prog_CC" 3224fi 3225 3226if test -z "$CC"; then 3227 if test -n "$ac_tool_prefix"; then 3228 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3229set dummy ${ac_tool_prefix}cc; ac_word=$2 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3231$as_echo_n "checking for $ac_word... " >&6; } 3232if ${ac_cv_prog_CC+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 if test -n "$CC"; then 3236 ac_cv_prog_CC="$CC" # Let the user override the test. 3237else 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3245 ac_cv_prog_CC="${ac_tool_prefix}cc" 3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3247 break 2 3248 fi 3249done 3250 done 3251IFS=$as_save_IFS 3252 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258$as_echo "$CC" >&6; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262fi 3263 3264 3265 fi 3266fi 3267if test -z "$CC"; then 3268 # Extract the first word of "cc", so it can be a program name with args. 3269set dummy cc; ac_word=$2 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271$as_echo_n "checking for $ac_word... " >&6; } 3272if ${ac_cv_prog_CC+:} false; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if test -n "$CC"; then 3276 ac_cv_prog_CC="$CC" # Let the user override the test. 3277else 3278 ac_prog_rejected=no 3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280for as_dir in $PATH 3281do 3282 IFS=$as_save_IFS 3283 test -z "$as_dir" && as_dir=. 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3286 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3287 ac_prog_rejected=yes 3288 continue 3289 fi 3290 ac_cv_prog_CC="cc" 3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298if test $ac_prog_rejected = yes; then 3299 # We found a bogon in the path, so make sure we never use it. 3300 set dummy $ac_cv_prog_CC 3301 shift 3302 if test $# != 0; then 3303 # We chose a different compiler from the bogus one. 3304 # However, it has the same basename, so the bogon will be chosen 3305 # first if we set CC to just the basename; use the full file name. 3306 shift 3307 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3308 fi 3309fi 3310fi 3311fi 3312CC=$ac_cv_prog_CC 3313if test -n "$CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3315$as_echo "$CC" >&6; } 3316else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318$as_echo "no" >&6; } 3319fi 3320 3321 3322fi 3323if test -z "$CC"; then 3324 if test -n "$ac_tool_prefix"; then 3325 for ac_prog in cl.exe 3326 do 3327 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3328set dummy $ac_tool_prefix$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_CC+:} false; then : 3332 $as_echo_n "(cached) " >&6 3333else 3334 if test -n "$CC"; then 3335 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 3354CC=$ac_cv_prog_CC 3355if test -n "$CC"; then 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3357$as_echo "$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 "$CC" && break 3365 done 3366fi 3367if test -z "$CC"; then 3368 ac_ct_CC=$CC 3369 for ac_prog in cl.exe 3370do 3371 # Extract the first word of "$ac_prog", so it can be a program name with args. 3372set dummy $ac_prog; ac_word=$2 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374$as_echo_n "checking for $ac_word... " >&6; } 3375if ${ac_cv_prog_ac_ct_CC+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 if test -n "$ac_ct_CC"; then 3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3380else 3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3382for as_dir in $PATH 3383do 3384 IFS=$as_save_IFS 3385 test -z "$as_dir" && as_dir=. 3386 for ac_exec_ext in '' $ac_executable_extensions; do 3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3388 ac_cv_prog_ac_ct_CC="$ac_prog" 3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3390 break 2 3391 fi 3392done 3393 done 3394IFS=$as_save_IFS 3395 3396fi 3397fi 3398ac_ct_CC=$ac_cv_prog_ac_ct_CC 3399if test -n "$ac_ct_CC"; then 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3401$as_echo "$ac_ct_CC" >&6; } 3402else 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3404$as_echo "no" >&6; } 3405fi 3406 3407 3408 test -n "$ac_ct_CC" && break 3409done 3410 3411 if test "x$ac_ct_CC" = x; then 3412 CC="" 3413 else 3414 case $cross_compiling:$ac_tool_warned in 3415yes:) 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3418ac_tool_warned=yes ;; 3419esac 3420 CC=$ac_ct_CC 3421 fi 3422fi 3423 3424fi 3425 3426 3427test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429as_fn_error $? "no acceptable C compiler found in \$PATH 3430See \`config.log' for more details" "$LINENO" 5; } 3431 3432# Provide some information about the compiler. 3433$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3434set X $ac_compile 3435ac_compiler=$2 3436for ac_option in --version -v -V -qversion; do 3437 { { ac_try="$ac_compiler $ac_option >&5" 3438case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3445 ac_status=$? 3446 if test -s conftest.err; then 3447 sed '10a\ 3448... rest of stderr output deleted ... 3449 10q' conftest.err >conftest.er1 3450 cat conftest.er1 >&5 3451 fi 3452 rm -f conftest.er1 conftest.err 3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3454 test $ac_status = 0; } 3455done 3456 3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459 3460int 3461main () 3462{ 3463 3464 ; 3465 return 0; 3466} 3467_ACEOF 3468ac_clean_files_save=$ac_clean_files 3469ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3470# Try to create an executable without -o first, disregard a.out. 3471# It will help us diagnose broken compilers, and finding out an intuition 3472# of exeext. 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3474$as_echo_n "checking whether the C compiler works... " >&6; } 3475ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3476 3477# The possible output files: 3478ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3479 3480ac_rmfiles= 3481for ac_file in $ac_files 3482do 3483 case $ac_file in 3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3485 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3486 esac 3487done 3488rm -f $ac_rmfiles 3489 3490if { { ac_try="$ac_link_default" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3496$as_echo "$ac_try_echo"; } >&5 3497 (eval "$ac_link_default") 2>&5 3498 ac_status=$? 3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3500 test $ac_status = 0; }; then : 3501 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3502# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3503# in a Makefile. We should not override ac_cv_exeext if it was cached, 3504# so that the user can short-circuit this test for compilers unknown to 3505# Autoconf. 3506for ac_file in $ac_files '' 3507do 3508 test -f "$ac_file" || continue 3509 case $ac_file in 3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3511 ;; 3512 [ab].out ) 3513 # We found the default executable, but exeext='' is most 3514 # certainly right. 3515 break;; 3516 *.* ) 3517 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3518 then :; else 3519 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3520 fi 3521 # We set ac_cv_exeext here because the later test for it is not 3522 # safe: cross compilers may not add the suffix if given an `-o' 3523 # argument, so we may need to know it at that point already. 3524 # Even if this section looks crufty: it has the advantage of 3525 # actually working. 3526 break;; 3527 * ) 3528 break;; 3529 esac 3530done 3531test "$ac_cv_exeext" = no && ac_cv_exeext= 3532 3533else 3534 ac_file='' 3535fi 3536if test -z "$ac_file"; then : 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3538$as_echo "no" >&6; } 3539$as_echo "$as_me: failed program was:" >&5 3540sed 's/^/| /' conftest.$ac_ext >&5 3541 3542{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3544as_fn_error 77 "C compiler cannot create executables 3545See \`config.log' for more details" "$LINENO" 5; } 3546else 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3548$as_echo "yes" >&6; } 3549fi 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3551$as_echo_n "checking for C compiler default output file name... " >&6; } 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3553$as_echo "$ac_file" >&6; } 3554ac_exeext=$ac_cv_exeext 3555 3556rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3557ac_clean_files=$ac_clean_files_save 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3559$as_echo_n "checking for suffix of executables... " >&6; } 3560if { { ac_try="$ac_link" 3561case "(($ac_try" in 3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3563 *) ac_try_echo=$ac_try;; 3564esac 3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3566$as_echo "$ac_try_echo"; } >&5 3567 (eval "$ac_link") 2>&5 3568 ac_status=$? 3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3570 test $ac_status = 0; }; then : 3571 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3572# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3573# work properly (i.e., refer to `conftest.exe'), while it won't with 3574# `rm'. 3575for ac_file in conftest.exe conftest conftest.*; do 3576 test -f "$ac_file" || continue 3577 case $ac_file in 3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3579 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3580 break;; 3581 * ) break;; 3582 esac 3583done 3584else 3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3587as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3588See \`config.log' for more details" "$LINENO" 5; } 3589fi 3590rm -f conftest conftest$ac_cv_exeext 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3592$as_echo "$ac_cv_exeext" >&6; } 3593 3594rm -f conftest.$ac_ext 3595EXEEXT=$ac_cv_exeext 3596ac_exeext=$EXEEXT 3597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3598/* end confdefs.h. */ 3599#include <stdio.h> 3600int 3601main () 3602{ 3603FILE *f = fopen ("conftest.out", "w"); 3604 return ferror (f) || fclose (f) != 0; 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610ac_clean_files="$ac_clean_files conftest.out" 3611# Check that the compiler produces executables we can run. If not, either 3612# the compiler is broken, or we cross compile. 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3614$as_echo_n "checking whether we are cross compiling... " >&6; } 3615if test "$cross_compiling" != yes; then 3616 { { ac_try="$ac_link" 3617case "(($ac_try" in 3618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3619 *) ac_try_echo=$ac_try;; 3620esac 3621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3622$as_echo "$ac_try_echo"; } >&5 3623 (eval "$ac_link") 2>&5 3624 ac_status=$? 3625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3626 test $ac_status = 0; } 3627 if { ac_try='./conftest$ac_cv_exeext' 3628 { { case "(($ac_try" in 3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3630 *) ac_try_echo=$ac_try;; 3631esac 3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3633$as_echo "$ac_try_echo"; } >&5 3634 (eval "$ac_try") 2>&5 3635 ac_status=$? 3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3637 test $ac_status = 0; }; }; then 3638 cross_compiling=no 3639 else 3640 if test "$cross_compiling" = maybe; then 3641 cross_compiling=yes 3642 else 3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3644$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3645as_fn_error $? "cannot run C compiled programs. 3646If you meant to cross compile, use \`--host'. 3647See \`config.log' for more details" "$LINENO" 5; } 3648 fi 3649 fi 3650fi 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3652$as_echo "$cross_compiling" >&6; } 3653 3654rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3655ac_clean_files=$ac_clean_files_save 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3657$as_echo_n "checking for suffix of object files... " >&6; } 3658if ${ac_cv_objext+:} false; then : 3659 $as_echo_n "(cached) " >&6 3660else 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663 3664int 3665main () 3666{ 3667 3668 ; 3669 return 0; 3670} 3671_ACEOF 3672rm -f conftest.o conftest.obj 3673if { { ac_try="$ac_compile" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_compile") 2>&5 3681 ac_status=$? 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3683 test $ac_status = 0; }; then : 3684 for ac_file in conftest.o conftest.obj conftest.*; do 3685 test -f "$ac_file" || continue; 3686 case $ac_file in 3687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3688 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3689 break;; 3690 esac 3691done 3692else 3693 $as_echo "$as_me: failed program was:" >&5 3694sed 's/^/| /' conftest.$ac_ext >&5 3695 3696{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3698as_fn_error $? "cannot compute suffix of object files: cannot compile 3699See \`config.log' for more details" "$LINENO" 5; } 3700fi 3701rm -f conftest.$ac_cv_objext conftest.$ac_ext 3702fi 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3704$as_echo "$ac_cv_objext" >&6; } 3705OBJEXT=$ac_cv_objext 3706ac_objext=$OBJEXT 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3708$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3709if ${ac_cv_c_compiler_gnu+:} false; then : 3710 $as_echo_n "(cached) " >&6 3711else 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718#ifndef __GNUC__ 3719 choke me 3720#endif 3721 3722 ; 3723 return 0; 3724} 3725_ACEOF 3726if ac_fn_c_try_compile "$LINENO"; then : 3727 ac_compiler_gnu=yes 3728else 3729 ac_compiler_gnu=no 3730fi 3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3732ac_cv_c_compiler_gnu=$ac_compiler_gnu 3733 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3736$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3737if test $ac_compiler_gnu = yes; then 3738 GCC=yes 3739else 3740 GCC= 3741fi 3742ac_test_CFLAGS=${CFLAGS+set} 3743ac_save_CFLAGS=$CFLAGS 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3745$as_echo_n "checking whether $CC accepts -g... " >&6; } 3746if ${ac_cv_prog_cc_g+:} false; then : 3747 $as_echo_n "(cached) " >&6 3748else 3749 ac_save_c_werror_flag=$ac_c_werror_flag 3750 ac_c_werror_flag=yes 3751 ac_cv_prog_cc_g=no 3752 CFLAGS="-g" 3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3754/* end confdefs.h. */ 3755 3756int 3757main () 3758{ 3759 3760 ; 3761 return 0; 3762} 3763_ACEOF 3764if ac_fn_c_try_compile "$LINENO"; then : 3765 ac_cv_prog_cc_g=yes 3766else 3767 CFLAGS="" 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771int 3772main () 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779if ac_fn_c_try_compile "$LINENO"; then : 3780 3781else 3782 ac_c_werror_flag=$ac_save_c_werror_flag 3783 CFLAGS="-g" 3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3785/* end confdefs.h. */ 3786 3787int 3788main () 3789{ 3790 3791 ; 3792 return 0; 3793} 3794_ACEOF 3795if ac_fn_c_try_compile "$LINENO"; then : 3796 ac_cv_prog_cc_g=yes 3797fi 3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3799fi 3800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3801fi 3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3803 ac_c_werror_flag=$ac_save_c_werror_flag 3804fi 3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3806$as_echo "$ac_cv_prog_cc_g" >&6; } 3807if test "$ac_test_CFLAGS" = set; then 3808 CFLAGS=$ac_save_CFLAGS 3809elif test $ac_cv_prog_cc_g = yes; then 3810 if test "$GCC" = yes; then 3811 CFLAGS="-g -O2" 3812 else 3813 CFLAGS="-g" 3814 fi 3815else 3816 if test "$GCC" = yes; then 3817 CFLAGS="-O2" 3818 else 3819 CFLAGS= 3820 fi 3821fi 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3823$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3824if ${ac_cv_prog_cc_c89+:} false; then : 3825 $as_echo_n "(cached) " >&6 3826else 3827 ac_cv_prog_cc_c89=no 3828ac_save_CC=$CC 3829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831#include <stdarg.h> 3832#include <stdio.h> 3833struct stat; 3834/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3835struct buf { int x; }; 3836FILE * (*rcsopen) (struct buf *, struct stat *, int); 3837static char *e (p, i) 3838 char **p; 3839 int i; 3840{ 3841 return p[i]; 3842} 3843static char *f (char * (*g) (char **, int), char **p, ...) 3844{ 3845 char *s; 3846 va_list v; 3847 va_start (v,p); 3848 s = g (p, va_arg (v,int)); 3849 va_end (v); 3850 return s; 3851} 3852 3853/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3854 function prototypes and stuff, but not '\xHH' hex character constants. 3855 These don't provoke an error unfortunately, instead are silently treated 3856 as 'x'. The following induces an error, until -std is added to get 3857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3858 array size at least. It's necessary to write '\x00'==0 to get something 3859 that's true only with -std. */ 3860int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3861 3862/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3863 inside strings and character constants. */ 3864#define FOO(x) 'x' 3865int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3866 3867int test (int i, double x); 3868struct s1 {int (*f) (int a);}; 3869struct s2 {int (*f) (double a);}; 3870int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3871int argc; 3872char **argv; 3873int 3874main () 3875{ 3876return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3883do 3884 CC="$ac_save_CC $ac_arg" 3885 if ac_fn_c_try_compile "$LINENO"; then : 3886 ac_cv_prog_cc_c89=$ac_arg 3887fi 3888rm -f core conftest.err conftest.$ac_objext 3889 test "x$ac_cv_prog_cc_c89" != "xno" && break 3890done 3891rm -f conftest.$ac_ext 3892CC=$ac_save_CC 3893 3894fi 3895# AC_CACHE_VAL 3896case "x$ac_cv_prog_cc_c89" in 3897 x) 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3899$as_echo "none needed" >&6; } ;; 3900 xno) 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3902$as_echo "unsupported" >&6; } ;; 3903 *) 3904 CC="$CC $ac_cv_prog_cc_c89" 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3906$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3907esac 3908if test "x$ac_cv_prog_cc_c89" != xno; then : 3909 3910fi 3911 3912ac_ext=c 3913ac_cpp='$CPP $CPPFLAGS' 3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3916ac_compiler_gnu=$ac_cv_c_compiler_gnu 3917 3918depcc="$CC" am_compiler_list= 3919 3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3921$as_echo_n "checking dependency style of $depcc... " >&6; } 3922if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3923 $as_echo_n "(cached) " >&6 3924else 3925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3926 # We make a subdir and do the tests there. Otherwise we can end up 3927 # making bogus files that we don't know about and never remove. For 3928 # instance it was reported that on HP-UX the gcc test will end up 3929 # making a dummy file named 'D' -- because '-MD' means "put the output 3930 # in D". 3931 rm -rf conftest.dir 3932 mkdir conftest.dir 3933 # Copy depcomp to subdir because otherwise we won't find it if we're 3934 # using a relative directory. 3935 cp "$am_depcomp" conftest.dir 3936 cd conftest.dir 3937 # We will build objects and dependencies in a subdirectory because 3938 # it helps to detect inapplicable dependency modes. For instance 3939 # both Tru64's cc and ICC support -MD to output dependencies as a 3940 # side effect of compilation, but ICC will put the dependencies in 3941 # the current directory while Tru64 will put them in the object 3942 # directory. 3943 mkdir sub 3944 3945 am_cv_CC_dependencies_compiler_type=none 3946 if test "$am_compiler_list" = ""; then 3947 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3948 fi 3949 am__universal=false 3950 case " $depcc " in #( 3951 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3952 esac 3953 3954 for depmode in $am_compiler_list; do 3955 # Setup a source with many dependencies, because some compilers 3956 # like to wrap large dependency lists on column 80 (with \), and 3957 # we should not choose a depcomp mode which is confused by this. 3958 # 3959 # We need to recreate these files for each test, as the compiler may 3960 # overwrite some of them when testing with obscure command lines. 3961 # This happens at least with the AIX C compiler. 3962 : > sub/conftest.c 3963 for i in 1 2 3 4 5 6; do 3964 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3965 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3966 # Solaris 10 /bin/sh. 3967 echo '/* dummy */' > sub/conftst$i.h 3968 done 3969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3970 3971 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3972 # mode. It turns out that the SunPro C++ compiler does not properly 3973 # handle '-M -o', and we need to detect this. Also, some Intel 3974 # versions had trouble with output in subdirs. 3975 am__obj=sub/conftest.${OBJEXT-o} 3976 am__minus_obj="-o $am__obj" 3977 case $depmode in 3978 gcc) 3979 # This depmode causes a compiler race in universal mode. 3980 test "$am__universal" = false || continue 3981 ;; 3982 nosideeffect) 3983 # After this tag, mechanisms are not by side-effect, so they'll 3984 # only be used when explicitly requested. 3985 if test "x$enable_dependency_tracking" = xyes; then 3986 continue 3987 else 3988 break 3989 fi 3990 ;; 3991 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3992 # This compiler won't grok '-c -o', but also, the minuso test has 3993 # not run yet. These depmodes are late enough in the game, and 3994 # so weak that their functioning should not be impacted. 3995 am__obj=conftest.${OBJEXT-o} 3996 am__minus_obj= 3997 ;; 3998 none) break ;; 3999 esac 4000 if depmode=$depmode \ 4001 source=sub/conftest.c object=$am__obj \ 4002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4003 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4004 >/dev/null 2>conftest.err && 4005 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4006 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4007 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4008 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4009 # icc doesn't choke on unknown options, it will just issue warnings 4010 # or remarks (even with -Werror). So we grep stderr for any message 4011 # that says an option was ignored or not supported. 4012 # When given -MP, icc 7.0 and 7.1 complain thusly: 4013 # icc: Command line warning: ignoring option '-M'; no argument required 4014 # The diagnosis changed in icc 8.0: 4015 # icc: Command line remark: option '-MP' not supported 4016 if (grep 'ignoring option' conftest.err || 4017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4018 am_cv_CC_dependencies_compiler_type=$depmode 4019 break 4020 fi 4021 fi 4022 done 4023 4024 cd .. 4025 rm -rf conftest.dir 4026else 4027 am_cv_CC_dependencies_compiler_type=none 4028fi 4029 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4032$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4034 4035 if 4036 test "x$enable_dependency_tracking" != xno \ 4037 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4038 am__fastdepCC_TRUE= 4039 am__fastdepCC_FALSE='#' 4040else 4041 am__fastdepCC_TRUE='#' 4042 am__fastdepCC_FALSE= 4043fi 4044 4045 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4047$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4048if ${ac_cv_path_SED+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4052 for ac_i in 1 2 3 4 5 6 7; do 4053 ac_script="$ac_script$as_nl$ac_script" 4054 done 4055 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4056 { ac_script=; unset ac_script;} 4057 if test -z "$SED"; then 4058 ac_path_SED_found=false 4059 # Loop through the user's path and test for each of PROGNAME-LIST 4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4061for as_dir in $PATH 4062do 4063 IFS=$as_save_IFS 4064 test -z "$as_dir" && as_dir=. 4065 for ac_prog in sed gsed; do 4066 for ac_exec_ext in '' $ac_executable_extensions; do 4067 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4068 as_fn_executable_p "$ac_path_SED" || continue 4069# Check for GNU ac_path_SED and select it if it is found. 4070 # Check for GNU $ac_path_SED 4071case `"$ac_path_SED" --version 2>&1` in 4072*GNU*) 4073 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4074*) 4075 ac_count=0 4076 $as_echo_n 0123456789 >"conftest.in" 4077 while : 4078 do 4079 cat "conftest.in" "conftest.in" >"conftest.tmp" 4080 mv "conftest.tmp" "conftest.in" 4081 cp "conftest.in" "conftest.nl" 4082 $as_echo '' >> "conftest.nl" 4083 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4085 as_fn_arith $ac_count + 1 && ac_count=$as_val 4086 if test $ac_count -gt ${ac_path_SED_max-0}; then 4087 # Best one so far, save it but keep looking for a better one 4088 ac_cv_path_SED="$ac_path_SED" 4089 ac_path_SED_max=$ac_count 4090 fi 4091 # 10*(2^10) chars as input seems more than enough 4092 test $ac_count -gt 10 && break 4093 done 4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4095esac 4096 4097 $ac_path_SED_found && break 3 4098 done 4099 done 4100 done 4101IFS=$as_save_IFS 4102 if test -z "$ac_cv_path_SED"; then 4103 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4104 fi 4105else 4106 ac_cv_path_SED=$SED 4107fi 4108 4109fi 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4111$as_echo "$ac_cv_path_SED" >&6; } 4112 SED="$ac_cv_path_SED" 4113 rm -f conftest.sed 4114 4115test -z "$SED" && SED=sed 4116Xsed="$SED -e 1s/^X//" 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4129$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4130if ${ac_cv_path_GREP+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 if test -z "$GREP"; then 4134 ac_path_GREP_found=false 4135 # Loop through the user's path and test for each of PROGNAME-LIST 4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4137for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4138do 4139 IFS=$as_save_IFS 4140 test -z "$as_dir" && as_dir=. 4141 for ac_prog in grep ggrep; do 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4144 as_fn_executable_p "$ac_path_GREP" || continue 4145# Check for GNU ac_path_GREP and select it if it is found. 4146 # Check for GNU $ac_path_GREP 4147case `"$ac_path_GREP" --version 2>&1` in 4148*GNU*) 4149 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4150*) 4151 ac_count=0 4152 $as_echo_n 0123456789 >"conftest.in" 4153 while : 4154 do 4155 cat "conftest.in" "conftest.in" >"conftest.tmp" 4156 mv "conftest.tmp" "conftest.in" 4157 cp "conftest.in" "conftest.nl" 4158 $as_echo 'GREP' >> "conftest.nl" 4159 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4161 as_fn_arith $ac_count + 1 && ac_count=$as_val 4162 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4163 # Best one so far, save it but keep looking for a better one 4164 ac_cv_path_GREP="$ac_path_GREP" 4165 ac_path_GREP_max=$ac_count 4166 fi 4167 # 10*(2^10) chars as input seems more than enough 4168 test $ac_count -gt 10 && break 4169 done 4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4171esac 4172 4173 $ac_path_GREP_found && break 3 4174 done 4175 done 4176 done 4177IFS=$as_save_IFS 4178 if test -z "$ac_cv_path_GREP"; then 4179 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4180 fi 4181else 4182 ac_cv_path_GREP=$GREP 4183fi 4184 4185fi 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4187$as_echo "$ac_cv_path_GREP" >&6; } 4188 GREP="$ac_cv_path_GREP" 4189 4190 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4192$as_echo_n "checking for egrep... " >&6; } 4193if ${ac_cv_path_EGREP+:} false; then : 4194 $as_echo_n "(cached) " >&6 4195else 4196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4197 then ac_cv_path_EGREP="$GREP -E" 4198 else 4199 if test -z "$EGREP"; then 4200 ac_path_EGREP_found=false 4201 # Loop through the user's path and test for each of PROGNAME-LIST 4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4203for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4204do 4205 IFS=$as_save_IFS 4206 test -z "$as_dir" && as_dir=. 4207 for ac_prog in egrep; do 4208 for ac_exec_ext in '' $ac_executable_extensions; do 4209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4210 as_fn_executable_p "$ac_path_EGREP" || continue 4211# Check for GNU ac_path_EGREP and select it if it is found. 4212 # Check for GNU $ac_path_EGREP 4213case `"$ac_path_EGREP" --version 2>&1` in 4214*GNU*) 4215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4216*) 4217 ac_count=0 4218 $as_echo_n 0123456789 >"conftest.in" 4219 while : 4220 do 4221 cat "conftest.in" "conftest.in" >"conftest.tmp" 4222 mv "conftest.tmp" "conftest.in" 4223 cp "conftest.in" "conftest.nl" 4224 $as_echo 'EGREP' >> "conftest.nl" 4225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4227 as_fn_arith $ac_count + 1 && ac_count=$as_val 4228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4229 # Best one so far, save it but keep looking for a better one 4230 ac_cv_path_EGREP="$ac_path_EGREP" 4231 ac_path_EGREP_max=$ac_count 4232 fi 4233 # 10*(2^10) chars as input seems more than enough 4234 test $ac_count -gt 10 && break 4235 done 4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4237esac 4238 4239 $ac_path_EGREP_found && break 3 4240 done 4241 done 4242 done 4243IFS=$as_save_IFS 4244 if test -z "$ac_cv_path_EGREP"; then 4245 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4246 fi 4247else 4248 ac_cv_path_EGREP=$EGREP 4249fi 4250 4251 fi 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4254$as_echo "$ac_cv_path_EGREP" >&6; } 4255 EGREP="$ac_cv_path_EGREP" 4256 4257 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4259$as_echo_n "checking for fgrep... " >&6; } 4260if ${ac_cv_path_FGREP+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4264 then ac_cv_path_FGREP="$GREP -F" 4265 else 4266 if test -z "$FGREP"; then 4267 ac_path_FGREP_found=false 4268 # Loop through the user's path and test for each of PROGNAME-LIST 4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4270for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4271do 4272 IFS=$as_save_IFS 4273 test -z "$as_dir" && as_dir=. 4274 for ac_prog in fgrep; do 4275 for ac_exec_ext in '' $ac_executable_extensions; do 4276 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4277 as_fn_executable_p "$ac_path_FGREP" || continue 4278# Check for GNU ac_path_FGREP and select it if it is found. 4279 # Check for GNU $ac_path_FGREP 4280case `"$ac_path_FGREP" --version 2>&1` in 4281*GNU*) 4282 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4283*) 4284 ac_count=0 4285 $as_echo_n 0123456789 >"conftest.in" 4286 while : 4287 do 4288 cat "conftest.in" "conftest.in" >"conftest.tmp" 4289 mv "conftest.tmp" "conftest.in" 4290 cp "conftest.in" "conftest.nl" 4291 $as_echo 'FGREP' >> "conftest.nl" 4292 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4294 as_fn_arith $ac_count + 1 && ac_count=$as_val 4295 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4296 # Best one so far, save it but keep looking for a better one 4297 ac_cv_path_FGREP="$ac_path_FGREP" 4298 ac_path_FGREP_max=$ac_count 4299 fi 4300 # 10*(2^10) chars as input seems more than enough 4301 test $ac_count -gt 10 && break 4302 done 4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4304esac 4305 4306 $ac_path_FGREP_found && break 3 4307 done 4308 done 4309 done 4310IFS=$as_save_IFS 4311 if test -z "$ac_cv_path_FGREP"; then 4312 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4313 fi 4314else 4315 ac_cv_path_FGREP=$FGREP 4316fi 4317 4318 fi 4319fi 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4321$as_echo "$ac_cv_path_FGREP" >&6; } 4322 FGREP="$ac_cv_path_FGREP" 4323 4324 4325test -z "$GREP" && GREP=grep 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345# Check whether --with-gnu-ld was given. 4346if test "${with_gnu_ld+set}" = set; then : 4347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4348else 4349 with_gnu_ld=no 4350fi 4351 4352ac_prog=ld 4353if test "$GCC" = yes; then 4354 # Check if gcc -print-prog-name=ld gives a path. 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4356$as_echo_n "checking for ld used by $CC... " >&6; } 4357 case $host in 4358 *-*-mingw*) 4359 # gcc leaves a trailing carriage return which upsets mingw 4360 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4361 *) 4362 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4363 esac 4364 case $ac_prog in 4365 # Accept absolute paths. 4366 [\\/]* | ?:[\\/]*) 4367 re_direlt='/[^/][^/]*/\.\./' 4368 # Canonicalize the pathname of ld 4369 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4370 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4371 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4372 done 4373 test -z "$LD" && LD="$ac_prog" 4374 ;; 4375 "") 4376 # If it fails, then pretend we aren't using GCC. 4377 ac_prog=ld 4378 ;; 4379 *) 4380 # If it is relative, then search for the first ld in PATH. 4381 with_gnu_ld=unknown 4382 ;; 4383 esac 4384elif test "$with_gnu_ld" = yes; then 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4386$as_echo_n "checking for GNU ld... " >&6; } 4387else 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4389$as_echo_n "checking for non-GNU ld... " >&6; } 4390fi 4391if ${lt_cv_path_LD+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393else 4394 if test -z "$LD"; then 4395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4396 for ac_dir in $PATH; do 4397 IFS="$lt_save_ifs" 4398 test -z "$ac_dir" && ac_dir=. 4399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4400 lt_cv_path_LD="$ac_dir/$ac_prog" 4401 # Check to see if the program is GNU ld. I'd rather use --version, 4402 # but apparently some variants of GNU ld only accept -v. 4403 # Break only if it was the GNU/non-GNU ld that we prefer. 4404 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4405 *GNU* | *'with BFD'*) 4406 test "$with_gnu_ld" != no && break 4407 ;; 4408 *) 4409 test "$with_gnu_ld" != yes && break 4410 ;; 4411 esac 4412 fi 4413 done 4414 IFS="$lt_save_ifs" 4415else 4416 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4417fi 4418fi 4419 4420LD="$lt_cv_path_LD" 4421if test -n "$LD"; then 4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4423$as_echo "$LD" >&6; } 4424else 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4426$as_echo "no" >&6; } 4427fi 4428test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4430$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4431if ${lt_cv_prog_gnu_ld+:} false; then : 4432 $as_echo_n "(cached) " >&6 4433else 4434 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4435case `$LD -v 2>&1 </dev/null` in 4436*GNU* | *'with BFD'*) 4437 lt_cv_prog_gnu_ld=yes 4438 ;; 4439*) 4440 lt_cv_prog_gnu_ld=no 4441 ;; 4442esac 4443fi 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4445$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4446with_gnu_ld=$lt_cv_prog_gnu_ld 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4457$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4458if ${lt_cv_path_NM+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if test -n "$NM"; then 4462 # Let the user override the test. 4463 lt_cv_path_NM="$NM" 4464else 4465 lt_nm_to_check="${ac_tool_prefix}nm" 4466 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4467 lt_nm_to_check="$lt_nm_to_check nm" 4468 fi 4469 for lt_tmp_nm in $lt_nm_to_check; do 4470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4471 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4472 IFS="$lt_save_ifs" 4473 test -z "$ac_dir" && ac_dir=. 4474 tmp_nm="$ac_dir/$lt_tmp_nm" 4475 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4476 # Check to see if the nm accepts a BSD-compat flag. 4477 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4478 # nm: unknown option "B" ignored 4479 # Tru64's nm complains that /dev/null is an invalid object file 4480 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4481 */dev/null* | *'Invalid file or object type'*) 4482 lt_cv_path_NM="$tmp_nm -B" 4483 break 4484 ;; 4485 *) 4486 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4487 */dev/null*) 4488 lt_cv_path_NM="$tmp_nm -p" 4489 break 4490 ;; 4491 *) 4492 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4493 continue # so that we can try to find one that supports BSD flags 4494 ;; 4495 esac 4496 ;; 4497 esac 4498 fi 4499 done 4500 IFS="$lt_save_ifs" 4501 done 4502 : ${lt_cv_path_NM=no} 4503fi 4504fi 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4506$as_echo "$lt_cv_path_NM" >&6; } 4507if test "$lt_cv_path_NM" != "no"; then 4508 NM="$lt_cv_path_NM" 4509else 4510 # Didn't find any BSD compatible name lister, look for dumpbin. 4511 if test -n "$DUMPBIN"; then : 4512 # Let the user override the test. 4513 else 4514 if test -n "$ac_tool_prefix"; then 4515 for ac_prog in dumpbin "link -dump" 4516 do 4517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4518set dummy $ac_tool_prefix$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_DUMPBIN+:} false; then : 4522 $as_echo_n "(cached) " >&6 4523else 4524 if test -n "$DUMPBIN"; then 4525 ac_cv_prog_DUMPBIN="$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_DUMPBIN="$ac_tool_prefix$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 4544DUMPBIN=$ac_cv_prog_DUMPBIN 4545if test -n "$DUMPBIN"; then 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4547$as_echo "$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 "$DUMPBIN" && break 4555 done 4556fi 4557if test -z "$DUMPBIN"; then 4558 ac_ct_DUMPBIN=$DUMPBIN 4559 for ac_prog in dumpbin "link -dump" 4560do 4561 # Extract the first word of "$ac_prog", so it can be a program name with args. 4562set dummy $ac_prog; ac_word=$2 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4564$as_echo_n "checking for $ac_word... " >&6; } 4565if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test -n "$ac_ct_DUMPBIN"; then 4569 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4570else 4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4572for as_dir in $PATH 4573do 4574 IFS=$as_save_IFS 4575 test -z "$as_dir" && as_dir=. 4576 for ac_exec_ext in '' $ac_executable_extensions; do 4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4578 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4580 break 2 4581 fi 4582done 4583 done 4584IFS=$as_save_IFS 4585 4586fi 4587fi 4588ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4589if test -n "$ac_ct_DUMPBIN"; then 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4591$as_echo "$ac_ct_DUMPBIN" >&6; } 4592else 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4594$as_echo "no" >&6; } 4595fi 4596 4597 4598 test -n "$ac_ct_DUMPBIN" && break 4599done 4600 4601 if test "x$ac_ct_DUMPBIN" = x; then 4602 DUMPBIN=":" 4603 else 4604 case $cross_compiling:$ac_tool_warned in 4605yes:) 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4608ac_tool_warned=yes ;; 4609esac 4610 DUMPBIN=$ac_ct_DUMPBIN 4611 fi 4612fi 4613 4614 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4615 *COFF*) 4616 DUMPBIN="$DUMPBIN -symbols" 4617 ;; 4618 *) 4619 DUMPBIN=: 4620 ;; 4621 esac 4622 fi 4623 4624 if test "$DUMPBIN" != ":"; then 4625 NM="$DUMPBIN" 4626 fi 4627fi 4628test -z "$NM" && NM=nm 4629 4630 4631 4632 4633 4634 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4636$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4637if ${lt_cv_nm_interface+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 lt_cv_nm_interface="BSD nm" 4641 echo "int some_variable = 0;" > conftest.$ac_ext 4642 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4643 (eval "$ac_compile" 2>conftest.err) 4644 cat conftest.err >&5 4645 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4646 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4647 cat conftest.err >&5 4648 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4649 cat conftest.out >&5 4650 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4651 lt_cv_nm_interface="MS dumpbin" 4652 fi 4653 rm -f conftest* 4654fi 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4656$as_echo "$lt_cv_nm_interface" >&6; } 4657 4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4659$as_echo_n "checking whether ln -s works... " >&6; } 4660LN_S=$as_ln_s 4661if test "$LN_S" = "ln -s"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4663$as_echo "yes" >&6; } 4664else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4666$as_echo "no, using $LN_S" >&6; } 4667fi 4668 4669# find the maximum length of command line arguments 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4671$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4672if ${lt_cv_sys_max_cmd_len+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 i=0 4676 teststring="ABCD" 4677 4678 case $build_os in 4679 msdosdjgpp*) 4680 # On DJGPP, this test can blow up pretty badly due to problems in libc 4681 # (any single argument exceeding 2000 bytes causes a buffer overrun 4682 # during glob expansion). Even if it were fixed, the result of this 4683 # check would be larger than it should be. 4684 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4685 ;; 4686 4687 gnu*) 4688 # Under GNU Hurd, this test is not required because there is 4689 # no limit to the length of command line arguments. 4690 # Libtool will interpret -1 as no limit whatsoever 4691 lt_cv_sys_max_cmd_len=-1; 4692 ;; 4693 4694 cygwin* | mingw* | cegcc*) 4695 # On Win9x/ME, this test blows up -- it succeeds, but takes 4696 # about 5 minutes as the teststring grows exponentially. 4697 # Worse, since 9x/ME are not pre-emptively multitasking, 4698 # you end up with a "frozen" computer, even though with patience 4699 # the test eventually succeeds (with a max line length of 256k). 4700 # Instead, let's just punt: use the minimum linelength reported by 4701 # all of the supported platforms: 8192 (on NT/2K/XP). 4702 lt_cv_sys_max_cmd_len=8192; 4703 ;; 4704 4705 mint*) 4706 # On MiNT this can take a long time and run out of memory. 4707 lt_cv_sys_max_cmd_len=8192; 4708 ;; 4709 4710 amigaos*) 4711 # On AmigaOS with pdksh, this test takes hours, literally. 4712 # So we just punt and use a minimum line length of 8192. 4713 lt_cv_sys_max_cmd_len=8192; 4714 ;; 4715 4716 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4717 # This has been around since 386BSD, at least. Likely further. 4718 if test -x /sbin/sysctl; then 4719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4720 elif test -x /usr/sbin/sysctl; then 4721 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4722 else 4723 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4724 fi 4725 # And add a safety zone 4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4728 ;; 4729 4730 interix*) 4731 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4732 lt_cv_sys_max_cmd_len=196608 4733 ;; 4734 4735 os2*) 4736 # The test takes a long time on OS/2. 4737 lt_cv_sys_max_cmd_len=8192 4738 ;; 4739 4740 osf*) 4741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4743 # nice to cause kernel panics so lets avoid the loop below. 4744 # First set a reasonable default. 4745 lt_cv_sys_max_cmd_len=16384 4746 # 4747 if test -x /sbin/sysconfig; then 4748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4749 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4750 esac 4751 fi 4752 ;; 4753 sco3.2v5*) 4754 lt_cv_sys_max_cmd_len=102400 4755 ;; 4756 sysv5* | sco5v6* | sysv4.2uw2*) 4757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4758 if test -n "$kargmax"; then 4759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4760 else 4761 lt_cv_sys_max_cmd_len=32768 4762 fi 4763 ;; 4764 *) 4765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4766 if test -n "$lt_cv_sys_max_cmd_len"; then 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4769 else 4770 # Make teststring a little bigger before we do anything with it. 4771 # a 1K string should be a reasonable start. 4772 for i in 1 2 3 4 5 6 7 8 ; do 4773 teststring=$teststring$teststring 4774 done 4775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4776 # If test is not a shell built-in, we'll probably end up computing a 4777 # maximum length that is only half of the actual maximum length, but 4778 # we can't tell. 4779 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4780 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4781 test $i != 17 # 1/2 MB should be enough 4782 do 4783 i=`expr $i + 1` 4784 teststring=$teststring$teststring 4785 done 4786 # Only check the string length outside the loop. 4787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4788 teststring= 4789 # Add a significant safety factor because C++ compilers can tack on 4790 # massive amounts of additional arguments before passing them to the 4791 # linker. It appears as though 1/2 is a usable value. 4792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4793 fi 4794 ;; 4795 esac 4796 4797fi 4798 4799if test -n $lt_cv_sys_max_cmd_len ; then 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4801$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4802else 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4804$as_echo "none" >&6; } 4805fi 4806max_cmd_len=$lt_cv_sys_max_cmd_len 4807 4808 4809 4810 4811 4812 4813: ${CP="cp -f"} 4814: ${MV="mv -f"} 4815: ${RM="rm -f"} 4816 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4818$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4819# Try some XSI features 4820xsi_shell=no 4821( _lt_dummy="a/b/c" 4822 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4823 = c,a/b,b/c, \ 4824 && eval 'test $(( 1 + 1 )) -eq 2 \ 4825 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4826 && xsi_shell=yes 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4828$as_echo "$xsi_shell" >&6; } 4829 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4832$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4833lt_shell_append=no 4834( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4835 >/dev/null 2>&1 \ 4836 && lt_shell_append=yes 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4838$as_echo "$lt_shell_append" >&6; } 4839 4840 4841if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4842 lt_unset=unset 4843else 4844 lt_unset=false 4845fi 4846 4847 4848 4849 4850 4851# test EBCDIC or ASCII 4852case `echo X|tr X '\101'` in 4853 A) # ASCII based system 4854 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4855 lt_SP2NL='tr \040 \012' 4856 lt_NL2SP='tr \015\012 \040\040' 4857 ;; 4858 *) # EBCDIC based system 4859 lt_SP2NL='tr \100 \n' 4860 lt_NL2SP='tr \r\n \100\100' 4861 ;; 4862esac 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4873$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4874if ${lt_cv_to_host_file_cmd+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 case $host in 4878 *-*-mingw* ) 4879 case $build in 4880 *-*-mingw* ) # actually msys 4881 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4882 ;; 4883 *-*-cygwin* ) 4884 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4885 ;; 4886 * ) # otherwise, assume *nix 4887 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4888 ;; 4889 esac 4890 ;; 4891 *-*-cygwin* ) 4892 case $build in 4893 *-*-mingw* ) # actually msys 4894 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4895 ;; 4896 *-*-cygwin* ) 4897 lt_cv_to_host_file_cmd=func_convert_file_noop 4898 ;; 4899 * ) # otherwise, assume *nix 4900 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4901 ;; 4902 esac 4903 ;; 4904 * ) # unhandled hosts (and "normal" native builds) 4905 lt_cv_to_host_file_cmd=func_convert_file_noop 4906 ;; 4907esac 4908 4909fi 4910 4911to_host_file_cmd=$lt_cv_to_host_file_cmd 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4913$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4914 4915 4916 4917 4918 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4920$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4921if ${lt_cv_to_tool_file_cmd+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923else 4924 #assume ordinary cross tools, or native build. 4925lt_cv_to_tool_file_cmd=func_convert_file_noop 4926case $host in 4927 *-*-mingw* ) 4928 case $build in 4929 *-*-mingw* ) # actually msys 4930 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4931 ;; 4932 esac 4933 ;; 4934esac 4935 4936fi 4937 4938to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4940$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4941 4942 4943 4944 4945 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4947$as_echo_n "checking for $LD option to reload object files... " >&6; } 4948if ${lt_cv_ld_reload_flag+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 lt_cv_ld_reload_flag='-r' 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4954$as_echo "$lt_cv_ld_reload_flag" >&6; } 4955reload_flag=$lt_cv_ld_reload_flag 4956case $reload_flag in 4957"" | " "*) ;; 4958*) reload_flag=" $reload_flag" ;; 4959esac 4960reload_cmds='$LD$reload_flag -o $output$reload_objs' 4961case $host_os in 4962 cygwin* | mingw* | pw32* | cegcc*) 4963 if test "$GCC" != yes; then 4964 reload_cmds=false 4965 fi 4966 ;; 4967 darwin*) 4968 if test "$GCC" = yes; then 4969 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4970 else 4971 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4972 fi 4973 ;; 4974esac 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984if test -n "$ac_tool_prefix"; then 4985 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4986set dummy ${ac_tool_prefix}objdump; ac_word=$2 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4988$as_echo_n "checking for $ac_word... " >&6; } 4989if ${ac_cv_prog_OBJDUMP+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 if test -n "$OBJDUMP"; then 4993 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4994else 4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4996for as_dir in $PATH 4997do 4998 IFS=$as_save_IFS 4999 test -z "$as_dir" && as_dir=. 5000 for ac_exec_ext in '' $ac_executable_extensions; do 5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5002 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5004 break 2 5005 fi 5006done 5007 done 5008IFS=$as_save_IFS 5009 5010fi 5011fi 5012OBJDUMP=$ac_cv_prog_OBJDUMP 5013if test -n "$OBJDUMP"; then 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5015$as_echo "$OBJDUMP" >&6; } 5016else 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5018$as_echo "no" >&6; } 5019fi 5020 5021 5022fi 5023if test -z "$ac_cv_prog_OBJDUMP"; then 5024 ac_ct_OBJDUMP=$OBJDUMP 5025 # Extract the first word of "objdump", so it can be a program name with args. 5026set dummy objdump; ac_word=$2 5027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5028$as_echo_n "checking for $ac_word... " >&6; } 5029if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5030 $as_echo_n "(cached) " >&6 5031else 5032 if test -n "$ac_ct_OBJDUMP"; then 5033 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5034else 5035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5036for as_dir in $PATH 5037do 5038 IFS=$as_save_IFS 5039 test -z "$as_dir" && as_dir=. 5040 for ac_exec_ext in '' $ac_executable_extensions; do 5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5042 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5044 break 2 5045 fi 5046done 5047 done 5048IFS=$as_save_IFS 5049 5050fi 5051fi 5052ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5053if test -n "$ac_ct_OBJDUMP"; then 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5055$as_echo "$ac_ct_OBJDUMP" >&6; } 5056else 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5058$as_echo "no" >&6; } 5059fi 5060 5061 if test "x$ac_ct_OBJDUMP" = x; then 5062 OBJDUMP="false" 5063 else 5064 case $cross_compiling:$ac_tool_warned in 5065yes:) 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5068ac_tool_warned=yes ;; 5069esac 5070 OBJDUMP=$ac_ct_OBJDUMP 5071 fi 5072else 5073 OBJDUMP="$ac_cv_prog_OBJDUMP" 5074fi 5075 5076test -z "$OBJDUMP" && OBJDUMP=objdump 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5087$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5088if ${lt_cv_deplibs_check_method+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 lt_cv_file_magic_cmd='$MAGIC_CMD' 5092lt_cv_file_magic_test_file= 5093lt_cv_deplibs_check_method='unknown' 5094# Need to set the preceding variable on all platforms that support 5095# interlibrary dependencies. 5096# 'none' -- dependencies not supported. 5097# `unknown' -- same as none, but documents that we really don't know. 5098# 'pass_all' -- all dependencies passed with no checks. 5099# 'test_compile' -- check by making test program. 5100# 'file_magic [[regex]]' -- check by looking for files in library path 5101# which responds to the $file_magic_cmd with a given extended regex. 5102# If you have `file' or equivalent on your system and you're not sure 5103# whether `pass_all' will *always* work, you probably want this one. 5104 5105case $host_os in 5106aix[4-9]*) 5107 lt_cv_deplibs_check_method=pass_all 5108 ;; 5109 5110beos*) 5111 lt_cv_deplibs_check_method=pass_all 5112 ;; 5113 5114bsdi[45]*) 5115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5116 lt_cv_file_magic_cmd='/usr/bin/file -L' 5117 lt_cv_file_magic_test_file=/shlib/libc.so 5118 ;; 5119 5120cygwin*) 5121 # func_win32_libid is a shell function defined in ltmain.sh 5122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5123 lt_cv_file_magic_cmd='func_win32_libid' 5124 ;; 5125 5126mingw* | pw32*) 5127 # Base MSYS/MinGW do not provide the 'file' command needed by 5128 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5129 # unless we find 'file', for example because we are cross-compiling. 5130 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5131 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5133 lt_cv_file_magic_cmd='func_win32_libid' 5134 else 5135 # Keep this pattern in sync with the one in func_win32_libid. 5136 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5137 lt_cv_file_magic_cmd='$OBJDUMP -f' 5138 fi 5139 ;; 5140 5141cegcc*) 5142 # use the weaker test based on 'objdump'. See mingw*. 5143 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5144 lt_cv_file_magic_cmd='$OBJDUMP -f' 5145 ;; 5146 5147darwin* | rhapsody*) 5148 lt_cv_deplibs_check_method=pass_all 5149 ;; 5150 5151freebsd* | dragonfly*) 5152 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5153 case $host_cpu in 5154 i*86 ) 5155 # Not sure whether the presence of OpenBSD here was a mistake. 5156 # Let's accept both of them until this is cleared up. 5157 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5158 lt_cv_file_magic_cmd=/usr/bin/file 5159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5160 ;; 5161 esac 5162 else 5163 lt_cv_deplibs_check_method=pass_all 5164 fi 5165 ;; 5166 5167gnu*) 5168 lt_cv_deplibs_check_method=pass_all 5169 ;; 5170 5171haiku*) 5172 lt_cv_deplibs_check_method=pass_all 5173 ;; 5174 5175hpux10.20* | hpux11*) 5176 lt_cv_file_magic_cmd=/usr/bin/file 5177 case $host_cpu in 5178 ia64*) 5179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5180 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5181 ;; 5182 hppa*64*) 5183 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]' 5184 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5185 ;; 5186 *) 5187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5188 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5189 ;; 5190 esac 5191 ;; 5192 5193interix[3-9]*) 5194 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5196 ;; 5197 5198irix5* | irix6* | nonstopux*) 5199 case $LD in 5200 *-32|*"-32 ") libmagic=32-bit;; 5201 *-n32|*"-n32 ") libmagic=N32;; 5202 *-64|*"-64 ") libmagic=64-bit;; 5203 *) libmagic=never-match;; 5204 esac 5205 lt_cv_deplibs_check_method=pass_all 5206 ;; 5207 5208# This must be glibc/ELF. 5209linux* | k*bsd*-gnu | kopensolaris*-gnu) 5210 lt_cv_deplibs_check_method=pass_all 5211 ;; 5212 5213netbsd*) 5214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5216 else 5217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5218 fi 5219 ;; 5220 5221newos6*) 5222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5223 lt_cv_file_magic_cmd=/usr/bin/file 5224 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5225 ;; 5226 5227*nto* | *qnx*) 5228 lt_cv_deplibs_check_method=pass_all 5229 ;; 5230 5231openbsd*) 5232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5234 else 5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5236 fi 5237 ;; 5238 5239osf3* | osf4* | osf5*) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 5243rdos*) 5244 lt_cv_deplibs_check_method=pass_all 5245 ;; 5246 5247solaris*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 5251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255sysv4 | sysv4.3*) 5256 case $host_vendor in 5257 motorola) 5258 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]' 5259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5260 ;; 5261 ncr) 5262 lt_cv_deplibs_check_method=pass_all 5263 ;; 5264 sequent) 5265 lt_cv_file_magic_cmd='/bin/file' 5266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5267 ;; 5268 sni) 5269 lt_cv_file_magic_cmd='/bin/file' 5270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5271 lt_cv_file_magic_test_file=/lib/libc.so 5272 ;; 5273 siemens) 5274 lt_cv_deplibs_check_method=pass_all 5275 ;; 5276 pc) 5277 lt_cv_deplibs_check_method=pass_all 5278 ;; 5279 esac 5280 ;; 5281 5282tpf*) 5283 lt_cv_deplibs_check_method=pass_all 5284 ;; 5285esac 5286 5287fi 5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5289$as_echo "$lt_cv_deplibs_check_method" >&6; } 5290 5291file_magic_glob= 5292want_nocaseglob=no 5293if test "$build" = "$host"; then 5294 case $host_os in 5295 mingw* | pw32*) 5296 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5297 want_nocaseglob=yes 5298 else 5299 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5300 fi 5301 ;; 5302 esac 5303fi 5304 5305file_magic_cmd=$lt_cv_file_magic_cmd 5306deplibs_check_method=$lt_cv_deplibs_check_method 5307test -z "$deplibs_check_method" && deplibs_check_method=unknown 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330if test -n "$ac_tool_prefix"; then 5331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5332set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5334$as_echo_n "checking for $ac_word... " >&6; } 5335if ${ac_cv_prog_DLLTOOL+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 if test -n "$DLLTOOL"; then 5339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5340else 5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5342for as_dir in $PATH 5343do 5344 IFS=$as_save_IFS 5345 test -z "$as_dir" && as_dir=. 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5350 break 2 5351 fi 5352done 5353 done 5354IFS=$as_save_IFS 5355 5356fi 5357fi 5358DLLTOOL=$ac_cv_prog_DLLTOOL 5359if test -n "$DLLTOOL"; then 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5361$as_echo "$DLLTOOL" >&6; } 5362else 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5364$as_echo "no" >&6; } 5365fi 5366 5367 5368fi 5369if test -z "$ac_cv_prog_DLLTOOL"; then 5370 ac_ct_DLLTOOL=$DLLTOOL 5371 # Extract the first word of "dlltool", so it can be a program name with args. 5372set dummy dlltool; ac_word=$2 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5374$as_echo_n "checking for $ac_word... " >&6; } 5375if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 if test -n "$ac_ct_DLLTOOL"; then 5379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5380else 5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5382for as_dir in $PATH 5383do 5384 IFS=$as_save_IFS 5385 test -z "$as_dir" && as_dir=. 5386 for ac_exec_ext in '' $ac_executable_extensions; do 5387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5388 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5390 break 2 5391 fi 5392done 5393 done 5394IFS=$as_save_IFS 5395 5396fi 5397fi 5398ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5399if test -n "$ac_ct_DLLTOOL"; then 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5401$as_echo "$ac_ct_DLLTOOL" >&6; } 5402else 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5404$as_echo "no" >&6; } 5405fi 5406 5407 if test "x$ac_ct_DLLTOOL" = x; then 5408 DLLTOOL="false" 5409 else 5410 case $cross_compiling:$ac_tool_warned in 5411yes:) 5412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5414ac_tool_warned=yes ;; 5415esac 5416 DLLTOOL=$ac_ct_DLLTOOL 5417 fi 5418else 5419 DLLTOOL="$ac_cv_prog_DLLTOOL" 5420fi 5421 5422test -z "$DLLTOOL" && DLLTOOL=dlltool 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5434$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5435if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5436 $as_echo_n "(cached) " >&6 5437else 5438 lt_cv_sharedlib_from_linklib_cmd='unknown' 5439 5440case $host_os in 5441cygwin* | mingw* | pw32* | cegcc*) 5442 # two different shell functions defined in ltmain.sh 5443 # decide which to use based on capabilities of $DLLTOOL 5444 case `$DLLTOOL --help 2>&1` in 5445 *--identify-strict*) 5446 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5447 ;; 5448 *) 5449 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5450 ;; 5451 esac 5452 ;; 5453*) 5454 # fallback: assume linklib IS sharedlib 5455 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5456 ;; 5457esac 5458 5459fi 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5461$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5462sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5463test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5464 5465 5466 5467 5468 5469 5470 5471 5472if test -n "$ac_tool_prefix"; then 5473 for ac_prog in ar 5474 do 5475 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5476set dummy $ac_tool_prefix$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_AR+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 if test -n "$AR"; then 5483 ac_cv_prog_AR="$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_AR="$ac_tool_prefix$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 5502AR=$ac_cv_prog_AR 5503if test -n "$AR"; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5505$as_echo "$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 "$AR" && break 5513 done 5514fi 5515if test -z "$AR"; then 5516 ac_ct_AR=$AR 5517 for ac_prog in ar 5518do 5519 # Extract the first word of "$ac_prog", so it can be a program name with args. 5520set dummy $ac_prog; ac_word=$2 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5522$as_echo_n "checking for $ac_word... " >&6; } 5523if ${ac_cv_prog_ac_ct_AR+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525else 5526 if test -n "$ac_ct_AR"; then 5527 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5528else 5529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5530for as_dir in $PATH 5531do 5532 IFS=$as_save_IFS 5533 test -z "$as_dir" && as_dir=. 5534 for ac_exec_ext in '' $ac_executable_extensions; do 5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5536 ac_cv_prog_ac_ct_AR="$ac_prog" 5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5538 break 2 5539 fi 5540done 5541 done 5542IFS=$as_save_IFS 5543 5544fi 5545fi 5546ac_ct_AR=$ac_cv_prog_ac_ct_AR 5547if test -n "$ac_ct_AR"; then 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5549$as_echo "$ac_ct_AR" >&6; } 5550else 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5552$as_echo "no" >&6; } 5553fi 5554 5555 5556 test -n "$ac_ct_AR" && break 5557done 5558 5559 if test "x$ac_ct_AR" = x; then 5560 AR="false" 5561 else 5562 case $cross_compiling:$ac_tool_warned in 5563yes:) 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5566ac_tool_warned=yes ;; 5567esac 5568 AR=$ac_ct_AR 5569 fi 5570fi 5571 5572: ${AR=ar} 5573: ${AR_FLAGS=cru} 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5586$as_echo_n "checking for archiver @FILE support... " >&6; } 5587if ${lt_cv_ar_at_file+:} false; then : 5588 $as_echo_n "(cached) " >&6 5589else 5590 lt_cv_ar_at_file=no 5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5592/* end confdefs.h. */ 5593 5594int 5595main () 5596{ 5597 5598 ; 5599 return 0; 5600} 5601_ACEOF 5602if ac_fn_c_try_compile "$LINENO"; then : 5603 echo conftest.$ac_objext > conftest.lst 5604 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5606 (eval $lt_ar_try) 2>&5 5607 ac_status=$? 5608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5609 test $ac_status = 0; } 5610 if test "$ac_status" -eq 0; then 5611 # Ensure the archiver fails upon bogus file names. 5612 rm -f conftest.$ac_objext libconftest.a 5613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5614 (eval $lt_ar_try) 2>&5 5615 ac_status=$? 5616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5617 test $ac_status = 0; } 5618 if test "$ac_status" -ne 0; then 5619 lt_cv_ar_at_file=@ 5620 fi 5621 fi 5622 rm -f conftest.* libconftest.a 5623 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5626 5627fi 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5629$as_echo "$lt_cv_ar_at_file" >&6; } 5630 5631if test "x$lt_cv_ar_at_file" = xno; then 5632 archiver_list_spec= 5633else 5634 archiver_list_spec=$lt_cv_ar_at_file 5635fi 5636 5637 5638 5639 5640 5641 5642 5643if test -n "$ac_tool_prefix"; then 5644 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5645set dummy ${ac_tool_prefix}strip; ac_word=$2 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5647$as_echo_n "checking for $ac_word... " >&6; } 5648if ${ac_cv_prog_STRIP+:} false; then : 5649 $as_echo_n "(cached) " >&6 5650else 5651 if test -n "$STRIP"; then 5652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5653else 5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5655for as_dir in $PATH 5656do 5657 IFS=$as_save_IFS 5658 test -z "$as_dir" && as_dir=. 5659 for ac_exec_ext in '' $ac_executable_extensions; do 5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5661 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5663 break 2 5664 fi 5665done 5666 done 5667IFS=$as_save_IFS 5668 5669fi 5670fi 5671STRIP=$ac_cv_prog_STRIP 5672if test -n "$STRIP"; then 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5674$as_echo "$STRIP" >&6; } 5675else 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5677$as_echo "no" >&6; } 5678fi 5679 5680 5681fi 5682if test -z "$ac_cv_prog_STRIP"; then 5683 ac_ct_STRIP=$STRIP 5684 # Extract the first word of "strip", so it can be a program name with args. 5685set dummy strip; ac_word=$2 5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5687$as_echo_n "checking for $ac_word... " >&6; } 5688if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 if test -n "$ac_ct_STRIP"; then 5692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5693else 5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5695for as_dir in $PATH 5696do 5697 IFS=$as_save_IFS 5698 test -z "$as_dir" && as_dir=. 5699 for ac_exec_ext in '' $ac_executable_extensions; do 5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5701 ac_cv_prog_ac_ct_STRIP="strip" 5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5703 break 2 5704 fi 5705done 5706 done 5707IFS=$as_save_IFS 5708 5709fi 5710fi 5711ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5712if test -n "$ac_ct_STRIP"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5714$as_echo "$ac_ct_STRIP" >&6; } 5715else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717$as_echo "no" >&6; } 5718fi 5719 5720 if test "x$ac_ct_STRIP" = x; then 5721 STRIP=":" 5722 else 5723 case $cross_compiling:$ac_tool_warned in 5724yes:) 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5727ac_tool_warned=yes ;; 5728esac 5729 STRIP=$ac_ct_STRIP 5730 fi 5731else 5732 STRIP="$ac_cv_prog_STRIP" 5733fi 5734 5735test -z "$STRIP" && STRIP=: 5736 5737 5738 5739 5740 5741 5742if test -n "$ac_tool_prefix"; then 5743 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5744set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5746$as_echo_n "checking for $ac_word... " >&6; } 5747if ${ac_cv_prog_RANLIB+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 if test -n "$RANLIB"; then 5751 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5752else 5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5754for as_dir in $PATH 5755do 5756 IFS=$as_save_IFS 5757 test -z "$as_dir" && as_dir=. 5758 for ac_exec_ext in '' $ac_executable_extensions; do 5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5762 break 2 5763 fi 5764done 5765 done 5766IFS=$as_save_IFS 5767 5768fi 5769fi 5770RANLIB=$ac_cv_prog_RANLIB 5771if test -n "$RANLIB"; then 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5773$as_echo "$RANLIB" >&6; } 5774else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776$as_echo "no" >&6; } 5777fi 5778 5779 5780fi 5781if test -z "$ac_cv_prog_RANLIB"; then 5782 ac_ct_RANLIB=$RANLIB 5783 # Extract the first word of "ranlib", so it can be a program name with args. 5784set dummy ranlib; ac_word=$2 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5786$as_echo_n "checking for $ac_word... " >&6; } 5787if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 if test -n "$ac_ct_RANLIB"; then 5791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5792else 5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5794for as_dir in $PATH 5795do 5796 IFS=$as_save_IFS 5797 test -z "$as_dir" && as_dir=. 5798 for ac_exec_ext in '' $ac_executable_extensions; do 5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5800 ac_cv_prog_ac_ct_RANLIB="ranlib" 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5802 break 2 5803 fi 5804done 5805 done 5806IFS=$as_save_IFS 5807 5808fi 5809fi 5810ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5811if test -n "$ac_ct_RANLIB"; then 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5813$as_echo "$ac_ct_RANLIB" >&6; } 5814else 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5816$as_echo "no" >&6; } 5817fi 5818 5819 if test "x$ac_ct_RANLIB" = x; then 5820 RANLIB=":" 5821 else 5822 case $cross_compiling:$ac_tool_warned in 5823yes:) 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5826ac_tool_warned=yes ;; 5827esac 5828 RANLIB=$ac_ct_RANLIB 5829 fi 5830else 5831 RANLIB="$ac_cv_prog_RANLIB" 5832fi 5833 5834test -z "$RANLIB" && RANLIB=: 5835 5836 5837 5838 5839 5840 5841# Determine commands to create old-style static archives. 5842old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5843old_postinstall_cmds='chmod 644 $oldlib' 5844old_postuninstall_cmds= 5845 5846if test -n "$RANLIB"; then 5847 case $host_os in 5848 openbsd*) 5849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5850 ;; 5851 *) 5852 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5853 ;; 5854 esac 5855 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5856fi 5857 5858case $host_os in 5859 darwin*) 5860 lock_old_archive_extraction=yes ;; 5861 *) 5862 lock_old_archive_extraction=no ;; 5863esac 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903# If no C compiler was specified, use CC. 5904LTCC=${LTCC-"$CC"} 5905 5906# If no C compiler flags were specified, use CFLAGS. 5907LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5908 5909# Allow CC to be a program name with arguments. 5910compiler=$CC 5911 5912 5913# Check for command to grab the raw symbol name followed by C symbol from nm. 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5915$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5916if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5917 $as_echo_n "(cached) " >&6 5918else 5919 5920# These are sane defaults that work on at least a few old systems. 5921# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5922 5923# Character class describing NM global symbol codes. 5924symcode='[BCDEGRST]' 5925 5926# Regexp to match symbols that can be accessed directly from C. 5927sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5928 5929# Define system-specific variables. 5930case $host_os in 5931aix*) 5932 symcode='[BCDT]' 5933 ;; 5934cygwin* | mingw* | pw32* | cegcc*) 5935 symcode='[ABCDGISTW]' 5936 ;; 5937hpux*) 5938 if test "$host_cpu" = ia64; then 5939 symcode='[ABCDEGRST]' 5940 fi 5941 ;; 5942irix* | nonstopux*) 5943 symcode='[BCDEGRST]' 5944 ;; 5945osf*) 5946 symcode='[BCDEGQRST]' 5947 ;; 5948solaris*) 5949 symcode='[BDRT]' 5950 ;; 5951sco3.2v5*) 5952 symcode='[DT]' 5953 ;; 5954sysv4.2uw2*) 5955 symcode='[DT]' 5956 ;; 5957sysv5* | sco5v6* | unixware* | OpenUNIX*) 5958 symcode='[ABDT]' 5959 ;; 5960sysv4) 5961 symcode='[DFNSTU]' 5962 ;; 5963esac 5964 5965# If we're using GNU nm, then use its standard symbol codes. 5966case `$NM -V 2>&1` in 5967*GNU* | *'with BFD'*) 5968 symcode='[ABCDGIRSTW]' ;; 5969esac 5970 5971# Transform an extracted symbol line into a proper C declaration. 5972# Some systems (esp. on ia64) link data and code symbols differently, 5973# so use this general approach. 5974lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5975 5976# Transform an extracted symbol line into symbol name and symbol address 5977lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5978lt_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'" 5979 5980# Handle CRLF in mingw tool chain 5981opt_cr= 5982case $build_os in 5983mingw*) 5984 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5985 ;; 5986esac 5987 5988# Try without a prefix underscore, then with it. 5989for ac_symprfx in "" "_"; do 5990 5991 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5992 symxfrm="\\1 $ac_symprfx\\2 \\2" 5993 5994 # Write the raw and C identifiers. 5995 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5996 # Fake it for dumpbin and say T for any non-static function 5997 # and D for any global variable. 5998 # Also find C++ and __fastcall symbols from MSVC++, 5999 # which start with @ or ?. 6000 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6001" {last_section=section; section=\$ 3};"\ 6002" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6003" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6004" \$ 0!~/External *\|/{next};"\ 6005" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6006" {if(hide[section]) next};"\ 6007" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6008" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6009" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6010" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6011" ' prfx=^$ac_symprfx" 6012 else 6013 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6014 fi 6015 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6016 6017 # Check to see that the pipe works correctly. 6018 pipe_works=no 6019 6020 rm -f conftest* 6021 cat > conftest.$ac_ext <<_LT_EOF 6022#ifdef __cplusplus 6023extern "C" { 6024#endif 6025char nm_test_var; 6026void nm_test_func(void); 6027void nm_test_func(void){} 6028#ifdef __cplusplus 6029} 6030#endif 6031int main(){nm_test_var='a';nm_test_func();return(0);} 6032_LT_EOF 6033 6034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6035 (eval $ac_compile) 2>&5 6036 ac_status=$? 6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6038 test $ac_status = 0; }; then 6039 # Now try to grab the symbols. 6040 nlist=conftest.nm 6041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6042 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6043 ac_status=$? 6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6045 test $ac_status = 0; } && test -s "$nlist"; then 6046 # Try sorting and uniquifying the output. 6047 if sort "$nlist" | uniq > "$nlist"T; then 6048 mv -f "$nlist"T "$nlist" 6049 else 6050 rm -f "$nlist"T 6051 fi 6052 6053 # Make sure that we snagged all the symbols we need. 6054 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6055 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6056 cat <<_LT_EOF > conftest.$ac_ext 6057/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6058#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6059/* DATA imports from DLLs on WIN32 con't be const, because runtime 6060 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6061# define LT_DLSYM_CONST 6062#elif defined(__osf__) 6063/* This system does not cope well with relocations in const data. */ 6064# define LT_DLSYM_CONST 6065#else 6066# define LT_DLSYM_CONST const 6067#endif 6068 6069#ifdef __cplusplus 6070extern "C" { 6071#endif 6072 6073_LT_EOF 6074 # Now generate the symbol file. 6075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6076 6077 cat <<_LT_EOF >> conftest.$ac_ext 6078 6079/* The mapping between symbol names and symbols. */ 6080LT_DLSYM_CONST struct { 6081 const char *name; 6082 void *address; 6083} 6084lt__PROGRAM__LTX_preloaded_symbols[] = 6085{ 6086 { "@PROGRAM@", (void *) 0 }, 6087_LT_EOF 6088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6089 cat <<\_LT_EOF >> conftest.$ac_ext 6090 {0, (void *) 0} 6091}; 6092 6093/* This works around a problem in FreeBSD linker */ 6094#ifdef FREEBSD_WORKAROUND 6095static const void *lt_preloaded_setup() { 6096 return lt__PROGRAM__LTX_preloaded_symbols; 6097} 6098#endif 6099 6100#ifdef __cplusplus 6101} 6102#endif 6103_LT_EOF 6104 # Now try linking the two files. 6105 mv conftest.$ac_objext conftstm.$ac_objext 6106 lt_globsym_save_LIBS=$LIBS 6107 lt_globsym_save_CFLAGS=$CFLAGS 6108 LIBS="conftstm.$ac_objext" 6109 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6111 (eval $ac_link) 2>&5 6112 ac_status=$? 6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6114 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6115 pipe_works=yes 6116 fi 6117 LIBS=$lt_globsym_save_LIBS 6118 CFLAGS=$lt_globsym_save_CFLAGS 6119 else 6120 echo "cannot find nm_test_func in $nlist" >&5 6121 fi 6122 else 6123 echo "cannot find nm_test_var in $nlist" >&5 6124 fi 6125 else 6126 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6127 fi 6128 else 6129 echo "$progname: failed program was:" >&5 6130 cat conftest.$ac_ext >&5 6131 fi 6132 rm -rf conftest* conftst* 6133 6134 # Do not use the global_symbol_pipe unless it works. 6135 if test "$pipe_works" = yes; then 6136 break 6137 else 6138 lt_cv_sys_global_symbol_pipe= 6139 fi 6140done 6141 6142fi 6143 6144if test -z "$lt_cv_sys_global_symbol_pipe"; then 6145 lt_cv_sys_global_symbol_to_cdecl= 6146fi 6147if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6149$as_echo "failed" >&6; } 6150else 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6152$as_echo "ok" >&6; } 6153fi 6154 6155# Response file support. 6156if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6157 nm_file_list_spec='@' 6158elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6159 nm_file_list_spec='@' 6160fi 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6189$as_echo_n "checking for sysroot... " >&6; } 6190 6191# Check whether --with-sysroot was given. 6192if test "${with_sysroot+set}" = set; then : 6193 withval=$with_sysroot; 6194else 6195 with_sysroot=no 6196fi 6197 6198 6199lt_sysroot= 6200case ${with_sysroot} in #( 6201 yes) 6202 if test "$GCC" = yes; then 6203 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6204 fi 6205 ;; #( 6206 /*) 6207 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6208 ;; #( 6209 no|'') 6210 ;; #( 6211 *) 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6213$as_echo "${with_sysroot}" >&6; } 6214 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6215 ;; 6216esac 6217 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6219$as_echo "${lt_sysroot:-no}" >&6; } 6220 6221 6222 6223 6224 6225# Check whether --enable-libtool-lock was given. 6226if test "${enable_libtool_lock+set}" = set; then : 6227 enableval=$enable_libtool_lock; 6228fi 6229 6230test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6231 6232# Some flags need to be propagated to the compiler or linker for good 6233# libtool support. 6234case $host in 6235ia64-*-hpux*) 6236 # Find out which ABI we are using. 6237 echo 'int i;' > conftest.$ac_ext 6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6239 (eval $ac_compile) 2>&5 6240 ac_status=$? 6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6242 test $ac_status = 0; }; then 6243 case `/usr/bin/file conftest.$ac_objext` in 6244 *ELF-32*) 6245 HPUX_IA64_MODE="32" 6246 ;; 6247 *ELF-64*) 6248 HPUX_IA64_MODE="64" 6249 ;; 6250 esac 6251 fi 6252 rm -rf conftest* 6253 ;; 6254*-*-irix6*) 6255 # Find out which ABI we are using. 6256 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6258 (eval $ac_compile) 2>&5 6259 ac_status=$? 6260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6261 test $ac_status = 0; }; then 6262 if test "$lt_cv_prog_gnu_ld" = yes; then 6263 case `/usr/bin/file conftest.$ac_objext` in 6264 *32-bit*) 6265 LD="${LD-ld} -melf32bsmip" 6266 ;; 6267 *N32*) 6268 LD="${LD-ld} -melf32bmipn32" 6269 ;; 6270 *64-bit*) 6271 LD="${LD-ld} -melf64bmip" 6272 ;; 6273 esac 6274 else 6275 case `/usr/bin/file conftest.$ac_objext` in 6276 *32-bit*) 6277 LD="${LD-ld} -32" 6278 ;; 6279 *N32*) 6280 LD="${LD-ld} -n32" 6281 ;; 6282 *64-bit*) 6283 LD="${LD-ld} -64" 6284 ;; 6285 esac 6286 fi 6287 fi 6288 rm -rf conftest* 6289 ;; 6290 6291x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6292s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6293 # Find out which ABI we are using. 6294 echo 'int i;' > conftest.$ac_ext 6295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6296 (eval $ac_compile) 2>&5 6297 ac_status=$? 6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6299 test $ac_status = 0; }; then 6300 case `/usr/bin/file conftest.o` in 6301 *32-bit*) 6302 case $host in 6303 x86_64-*kfreebsd*-gnu) 6304 LD="${LD-ld} -m elf_i386_fbsd" 6305 ;; 6306 x86_64-*linux*) 6307 LD="${LD-ld} -m elf_i386" 6308 ;; 6309 ppc64-*linux*|powerpc64-*linux*) 6310 LD="${LD-ld} -m elf32ppclinux" 6311 ;; 6312 s390x-*linux*) 6313 LD="${LD-ld} -m elf_s390" 6314 ;; 6315 sparc64-*linux*) 6316 LD="${LD-ld} -m elf32_sparc" 6317 ;; 6318 esac 6319 ;; 6320 *64-bit*) 6321 case $host in 6322 x86_64-*kfreebsd*-gnu) 6323 LD="${LD-ld} -m elf_x86_64_fbsd" 6324 ;; 6325 x86_64-*linux*) 6326 LD="${LD-ld} -m elf_x86_64" 6327 ;; 6328 ppc*-*linux*|powerpc*-*linux*) 6329 LD="${LD-ld} -m elf64ppc" 6330 ;; 6331 s390*-*linux*|s390*-*tpf*) 6332 LD="${LD-ld} -m elf64_s390" 6333 ;; 6334 sparc*-*linux*) 6335 LD="${LD-ld} -m elf64_sparc" 6336 ;; 6337 esac 6338 ;; 6339 esac 6340 fi 6341 rm -rf conftest* 6342 ;; 6343 6344*-*-sco3.2v5*) 6345 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6346 SAVE_CFLAGS="$CFLAGS" 6347 CFLAGS="$CFLAGS -belf" 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6349$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6350if ${lt_cv_cc_needs_belf+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352else 6353 ac_ext=c 6354ac_cpp='$CPP $CPPFLAGS' 6355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6357ac_compiler_gnu=$ac_cv_c_compiler_gnu 6358 6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6360/* end confdefs.h. */ 6361 6362int 6363main () 6364{ 6365 6366 ; 6367 return 0; 6368} 6369_ACEOF 6370if ac_fn_c_try_link "$LINENO"; then : 6371 lt_cv_cc_needs_belf=yes 6372else 6373 lt_cv_cc_needs_belf=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext \ 6376 conftest$ac_exeext conftest.$ac_ext 6377 ac_ext=c 6378ac_cpp='$CPP $CPPFLAGS' 6379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6381ac_compiler_gnu=$ac_cv_c_compiler_gnu 6382 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6385$as_echo "$lt_cv_cc_needs_belf" >&6; } 6386 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6387 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6388 CFLAGS="$SAVE_CFLAGS" 6389 fi 6390 ;; 6391*-*solaris*) 6392 # Find out which ABI we are using. 6393 echo 'int i;' > conftest.$ac_ext 6394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6395 (eval $ac_compile) 2>&5 6396 ac_status=$? 6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6398 test $ac_status = 0; }; then 6399 case `/usr/bin/file conftest.o` in 6400 *64-bit*) 6401 case $lt_cv_prog_gnu_ld in 6402 yes*) 6403 case $host in 6404 i?86-*-solaris*) 6405 LD="${LD-ld} -m elf_x86_64" 6406 ;; 6407 sparc*-*-solaris*) 6408 LD="${LD-ld} -m elf64_sparc" 6409 ;; 6410 esac 6411 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6412 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6413 LD="${LD-ld}_sol2" 6414 fi 6415 ;; 6416 *) 6417 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6418 LD="${LD-ld} -64" 6419 fi 6420 ;; 6421 esac 6422 ;; 6423 esac 6424 fi 6425 rm -rf conftest* 6426 ;; 6427esac 6428 6429need_locks="$enable_libtool_lock" 6430 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}mt; ac_word=$2 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435$as_echo_n "checking for $ac_word... " >&6; } 6436if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$MANIFEST_TOOL"; then 6440 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6449 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454 done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6460if test -n "$MANIFEST_TOOL"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6462$as_echo "$MANIFEST_TOOL" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467 6468 6469fi 6470if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6471 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6472 # Extract the first word of "mt", so it can be a program name with args. 6473set dummy mt; ac_word=$2 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6475$as_echo_n "checking for $ac_word... " >&6; } 6476if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6477 $as_echo_n "(cached) " >&6 6478else 6479 if test -n "$ac_ct_MANIFEST_TOOL"; then 6480 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6481else 6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6489 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493done 6494 done 6495IFS=$as_save_IFS 6496 6497fi 6498fi 6499ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6500if test -n "$ac_ct_MANIFEST_TOOL"; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6502$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6503else 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6505$as_echo "no" >&6; } 6506fi 6507 6508 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6509 MANIFEST_TOOL=":" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6515ac_tool_warned=yes ;; 6516esac 6517 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6518 fi 6519else 6520 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6521fi 6522 6523test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6525$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6526if ${lt_cv_path_mainfest_tool+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 lt_cv_path_mainfest_tool=no 6530 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6531 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6532 cat conftest.err >&5 6533 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6534 lt_cv_path_mainfest_tool=yes 6535 fi 6536 rm -f conftest* 6537fi 6538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6539$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6540if test "x$lt_cv_path_mainfest_tool" != xyes; then 6541 MANIFEST_TOOL=: 6542fi 6543 6544 6545 6546 6547 6548 6549 case $host_os in 6550 rhapsody* | darwin*) 6551 if test -n "$ac_tool_prefix"; then 6552 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6553set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6555$as_echo_n "checking for $ac_word... " >&6; } 6556if ${ac_cv_prog_DSYMUTIL+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 if test -n "$DSYMUTIL"; then 6560 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6561else 6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in $PATH 6564do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6569 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573done 6574 done 6575IFS=$as_save_IFS 6576 6577fi 6578fi 6579DSYMUTIL=$ac_cv_prog_DSYMUTIL 6580if test -n "$DSYMUTIL"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6582$as_echo "$DSYMUTIL" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 6589fi 6590if test -z "$ac_cv_prog_DSYMUTIL"; then 6591 ac_ct_DSYMUTIL=$DSYMUTIL 6592 # Extract the first word of "dsymutil", so it can be a program name with args. 6593set dummy dsymutil; ac_word=$2 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6595$as_echo_n "checking for $ac_word... " >&6; } 6596if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 if test -n "$ac_ct_DSYMUTIL"; then 6600 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6601else 6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6603for as_dir in $PATH 6604do 6605 IFS=$as_save_IFS 6606 test -z "$as_dir" && as_dir=. 6607 for ac_exec_ext in '' $ac_executable_extensions; do 6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6609 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6611 break 2 6612 fi 6613done 6614 done 6615IFS=$as_save_IFS 6616 6617fi 6618fi 6619ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6620if test -n "$ac_ct_DSYMUTIL"; then 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6622$as_echo "$ac_ct_DSYMUTIL" >&6; } 6623else 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6625$as_echo "no" >&6; } 6626fi 6627 6628 if test "x$ac_ct_DSYMUTIL" = x; then 6629 DSYMUTIL=":" 6630 else 6631 case $cross_compiling:$ac_tool_warned in 6632yes:) 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6635ac_tool_warned=yes ;; 6636esac 6637 DSYMUTIL=$ac_ct_DSYMUTIL 6638 fi 6639else 6640 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6641fi 6642 6643 if test -n "$ac_tool_prefix"; then 6644 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6645set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6647$as_echo_n "checking for $ac_word... " >&6; } 6648if ${ac_cv_prog_NMEDIT+:} false; then : 6649 $as_echo_n "(cached) " >&6 6650else 6651 if test -n "$NMEDIT"; then 6652 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6653else 6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6655for as_dir in $PATH 6656do 6657 IFS=$as_save_IFS 6658 test -z "$as_dir" && as_dir=. 6659 for ac_exec_ext in '' $ac_executable_extensions; do 6660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6661 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6663 break 2 6664 fi 6665done 6666 done 6667IFS=$as_save_IFS 6668 6669fi 6670fi 6671NMEDIT=$ac_cv_prog_NMEDIT 6672if test -n "$NMEDIT"; then 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6674$as_echo "$NMEDIT" >&6; } 6675else 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677$as_echo "no" >&6; } 6678fi 6679 6680 6681fi 6682if test -z "$ac_cv_prog_NMEDIT"; then 6683 ac_ct_NMEDIT=$NMEDIT 6684 # Extract the first word of "nmedit", so it can be a program name with args. 6685set dummy nmedit; ac_word=$2 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6687$as_echo_n "checking for $ac_word... " >&6; } 6688if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690else 6691 if test -n "$ac_ct_NMEDIT"; then 6692 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6693else 6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695for as_dir in $PATH 6696do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6701 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705done 6706 done 6707IFS=$as_save_IFS 6708 6709fi 6710fi 6711ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6712if test -n "$ac_ct_NMEDIT"; then 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6714$as_echo "$ac_ct_NMEDIT" >&6; } 6715else 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6717$as_echo "no" >&6; } 6718fi 6719 6720 if test "x$ac_ct_NMEDIT" = x; then 6721 NMEDIT=":" 6722 else 6723 case $cross_compiling:$ac_tool_warned in 6724yes:) 6725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6727ac_tool_warned=yes ;; 6728esac 6729 NMEDIT=$ac_ct_NMEDIT 6730 fi 6731else 6732 NMEDIT="$ac_cv_prog_NMEDIT" 6733fi 6734 6735 if test -n "$ac_tool_prefix"; then 6736 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6737set dummy ${ac_tool_prefix}lipo; ac_word=$2 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6739$as_echo_n "checking for $ac_word... " >&6; } 6740if ${ac_cv_prog_LIPO+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 if test -n "$LIPO"; then 6744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6745else 6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747for as_dir in $PATH 6748do 6749 IFS=$as_save_IFS 6750 test -z "$as_dir" && as_dir=. 6751 for ac_exec_ext in '' $ac_executable_extensions; do 6752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6753 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6755 break 2 6756 fi 6757done 6758 done 6759IFS=$as_save_IFS 6760 6761fi 6762fi 6763LIPO=$ac_cv_prog_LIPO 6764if test -n "$LIPO"; then 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6766$as_echo "$LIPO" >&6; } 6767else 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6769$as_echo "no" >&6; } 6770fi 6771 6772 6773fi 6774if test -z "$ac_cv_prog_LIPO"; then 6775 ac_ct_LIPO=$LIPO 6776 # Extract the first word of "lipo", so it can be a program name with args. 6777set dummy lipo; ac_word=$2 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6779$as_echo_n "checking for $ac_word... " >&6; } 6780if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 if test -n "$ac_ct_LIPO"; then 6784 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6785else 6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6787for as_dir in $PATH 6788do 6789 IFS=$as_save_IFS 6790 test -z "$as_dir" && as_dir=. 6791 for ac_exec_ext in '' $ac_executable_extensions; do 6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6793 ac_cv_prog_ac_ct_LIPO="lipo" 6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6795 break 2 6796 fi 6797done 6798 done 6799IFS=$as_save_IFS 6800 6801fi 6802fi 6803ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6804if test -n "$ac_ct_LIPO"; then 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6806$as_echo "$ac_ct_LIPO" >&6; } 6807else 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809$as_echo "no" >&6; } 6810fi 6811 6812 if test "x$ac_ct_LIPO" = x; then 6813 LIPO=":" 6814 else 6815 case $cross_compiling:$ac_tool_warned in 6816yes:) 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6819ac_tool_warned=yes ;; 6820esac 6821 LIPO=$ac_ct_LIPO 6822 fi 6823else 6824 LIPO="$ac_cv_prog_LIPO" 6825fi 6826 6827 if test -n "$ac_tool_prefix"; then 6828 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6829set dummy ${ac_tool_prefix}otool; ac_word=$2 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6831$as_echo_n "checking for $ac_word... " >&6; } 6832if ${ac_cv_prog_OTOOL+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834else 6835 if test -n "$OTOOL"; then 6836 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6837else 6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839for as_dir in $PATH 6840do 6841 IFS=$as_save_IFS 6842 test -z "$as_dir" && as_dir=. 6843 for ac_exec_ext in '' $ac_executable_extensions; do 6844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6845 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6847 break 2 6848 fi 6849done 6850 done 6851IFS=$as_save_IFS 6852 6853fi 6854fi 6855OTOOL=$ac_cv_prog_OTOOL 6856if test -n "$OTOOL"; then 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6858$as_echo "$OTOOL" >&6; } 6859else 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6861$as_echo "no" >&6; } 6862fi 6863 6864 6865fi 6866if test -z "$ac_cv_prog_OTOOL"; then 6867 ac_ct_OTOOL=$OTOOL 6868 # Extract the first word of "otool", so it can be a program name with args. 6869set dummy otool; ac_word=$2 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6871$as_echo_n "checking for $ac_word... " >&6; } 6872if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 if test -n "$ac_ct_OTOOL"; then 6876 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6877else 6878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6879for as_dir in $PATH 6880do 6881 IFS=$as_save_IFS 6882 test -z "$as_dir" && as_dir=. 6883 for ac_exec_ext in '' $ac_executable_extensions; do 6884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6885 ac_cv_prog_ac_ct_OTOOL="otool" 6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6887 break 2 6888 fi 6889done 6890 done 6891IFS=$as_save_IFS 6892 6893fi 6894fi 6895ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6896if test -n "$ac_ct_OTOOL"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6898$as_echo "$ac_ct_OTOOL" >&6; } 6899else 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6901$as_echo "no" >&6; } 6902fi 6903 6904 if test "x$ac_ct_OTOOL" = x; then 6905 OTOOL=":" 6906 else 6907 case $cross_compiling:$ac_tool_warned in 6908yes:) 6909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6911ac_tool_warned=yes ;; 6912esac 6913 OTOOL=$ac_ct_OTOOL 6914 fi 6915else 6916 OTOOL="$ac_cv_prog_OTOOL" 6917fi 6918 6919 if test -n "$ac_tool_prefix"; then 6920 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6921set dummy ${ac_tool_prefix}otool64; ac_word=$2 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6923$as_echo_n "checking for $ac_word... " >&6; } 6924if ${ac_cv_prog_OTOOL64+:} false; then : 6925 $as_echo_n "(cached) " >&6 6926else 6927 if test -n "$OTOOL64"; then 6928 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6929else 6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6931for as_dir in $PATH 6932do 6933 IFS=$as_save_IFS 6934 test -z "$as_dir" && as_dir=. 6935 for ac_exec_ext in '' $ac_executable_extensions; do 6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6937 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6939 break 2 6940 fi 6941done 6942 done 6943IFS=$as_save_IFS 6944 6945fi 6946fi 6947OTOOL64=$ac_cv_prog_OTOOL64 6948if test -n "$OTOOL64"; then 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6950$as_echo "$OTOOL64" >&6; } 6951else 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6953$as_echo "no" >&6; } 6954fi 6955 6956 6957fi 6958if test -z "$ac_cv_prog_OTOOL64"; then 6959 ac_ct_OTOOL64=$OTOOL64 6960 # Extract the first word of "otool64", so it can be a program name with args. 6961set dummy otool64; ac_word=$2 6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6963$as_echo_n "checking for $ac_word... " >&6; } 6964if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6965 $as_echo_n "(cached) " >&6 6966else 6967 if test -n "$ac_ct_OTOOL64"; then 6968 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6969else 6970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971for as_dir in $PATH 6972do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6977 ac_cv_prog_ac_ct_OTOOL64="otool64" 6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981done 6982 done 6983IFS=$as_save_IFS 6984 6985fi 6986fi 6987ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6988if test -n "$ac_ct_OTOOL64"; then 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6990$as_echo "$ac_ct_OTOOL64" >&6; } 6991else 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6993$as_echo "no" >&6; } 6994fi 6995 6996 if test "x$ac_ct_OTOOL64" = x; then 6997 OTOOL64=":" 6998 else 6999 case $cross_compiling:$ac_tool_warned in 7000yes:) 7001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7003ac_tool_warned=yes ;; 7004esac 7005 OTOOL64=$ac_ct_OTOOL64 7006 fi 7007else 7008 OTOOL64="$ac_cv_prog_OTOOL64" 7009fi 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7038$as_echo_n "checking for -single_module linker flag... " >&6; } 7039if ${lt_cv_apple_cc_single_mod+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 lt_cv_apple_cc_single_mod=no 7043 if test -z "${LT_MULTI_MODULE}"; then 7044 # By default we will add the -single_module flag. You can override 7045 # by either setting the environment variable LT_MULTI_MODULE 7046 # non-empty at configure time, or by adding -multi_module to the 7047 # link flags. 7048 rm -rf libconftest.dylib* 7049 echo "int foo(void){return 1;}" > conftest.c 7050 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7051-dynamiclib -Wl,-single_module conftest.c" >&5 7052 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7053 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7054 _lt_result=$? 7055 # If there is a non-empty error log, and "single_module" 7056 # appears in it, assume the flag caused a linker warning 7057 if test -s conftest.err && $GREP single_module conftest.err; then 7058 cat conftest.err >&5 7059 # Otherwise, if the output was created with a 0 exit code from 7060 # the compiler, it worked. 7061 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7062 lt_cv_apple_cc_single_mod=yes 7063 else 7064 cat conftest.err >&5 7065 fi 7066 rm -rf libconftest.dylib* 7067 rm -f conftest.* 7068 fi 7069fi 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7071$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7072 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7074$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7075if ${lt_cv_ld_exported_symbols_list+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 lt_cv_ld_exported_symbols_list=no 7079 save_LDFLAGS=$LDFLAGS 7080 echo "_main" > conftest.sym 7081 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084 7085int 7086main () 7087{ 7088 7089 ; 7090 return 0; 7091} 7092_ACEOF 7093if ac_fn_c_try_link "$LINENO"; then : 7094 lt_cv_ld_exported_symbols_list=yes 7095else 7096 lt_cv_ld_exported_symbols_list=no 7097fi 7098rm -f core conftest.err conftest.$ac_objext \ 7099 conftest$ac_exeext conftest.$ac_ext 7100 LDFLAGS="$save_LDFLAGS" 7101 7102fi 7103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7104$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7107$as_echo_n "checking for -force_load linker flag... " >&6; } 7108if ${lt_cv_ld_force_load+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 lt_cv_ld_force_load=no 7112 cat > conftest.c << _LT_EOF 7113int forced_loaded() { return 2;} 7114_LT_EOF 7115 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7116 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7117 echo "$AR cru libconftest.a conftest.o" >&5 7118 $AR cru libconftest.a conftest.o 2>&5 7119 echo "$RANLIB libconftest.a" >&5 7120 $RANLIB libconftest.a 2>&5 7121 cat > conftest.c << _LT_EOF 7122int main() { return 0;} 7123_LT_EOF 7124 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7125 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7126 _lt_result=$? 7127 if test -s conftest.err && $GREP force_load conftest.err; then 7128 cat conftest.err >&5 7129 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7130 lt_cv_ld_force_load=yes 7131 else 7132 cat conftest.err >&5 7133 fi 7134 rm -f conftest.err libconftest.a conftest conftest.c 7135 rm -rf conftest.dSYM 7136 7137fi 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7139$as_echo "$lt_cv_ld_force_load" >&6; } 7140 case $host_os in 7141 rhapsody* | darwin1.[012]) 7142 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7143 darwin1.*) 7144 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7145 darwin*) # darwin 5.x on 7146 # if running on 10.5 or later, the deployment target defaults 7147 # to the OS version, if on x86, and 10.4, the deployment 7148 # target defaults to 10.4. Don't you love it? 7149 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7150 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7151 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7152 10.[012]*) 7153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7154 10.*) 7155 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7156 esac 7157 ;; 7158 esac 7159 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7160 _lt_dar_single_mod='$single_module' 7161 fi 7162 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7163 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7164 else 7165 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7166 fi 7167 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7168 _lt_dsymutil='~$DSYMUTIL $lib || :' 7169 else 7170 _lt_dsymutil= 7171 fi 7172 ;; 7173 esac 7174 7175ac_ext=c 7176ac_cpp='$CPP $CPPFLAGS' 7177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7179ac_compiler_gnu=$ac_cv_c_compiler_gnu 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7181$as_echo_n "checking how to run the C preprocessor... " >&6; } 7182# On Suns, sometimes $CPP names a directory. 7183if test -n "$CPP" && test -d "$CPP"; then 7184 CPP= 7185fi 7186if test -z "$CPP"; then 7187 if ${ac_cv_prog_CPP+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189else 7190 # Double quotes because CPP needs to be expanded 7191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7192 do 7193 ac_preproc_ok=false 7194for ac_c_preproc_warn_flag in '' yes 7195do 7196 # Use a header file that comes with gcc, so configuring glibc 7197 # with a fresh cross-compiler works. 7198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7199 # <limits.h> exists even on freestanding compilers. 7200 # On the NeXT, cc -E runs the code through the compiler's parser, 7201 # not just through cpp. "Syntax error" is here to catch this case. 7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7203/* end confdefs.h. */ 7204#ifdef __STDC__ 7205# include <limits.h> 7206#else 7207# include <assert.h> 7208#endif 7209 Syntax error 7210_ACEOF 7211if ac_fn_c_try_cpp "$LINENO"; then : 7212 7213else 7214 # Broken: fails on valid input. 7215continue 7216fi 7217rm -f conftest.err conftest.i conftest.$ac_ext 7218 7219 # OK, works on sane cases. Now check whether nonexistent headers 7220 # can be detected and how. 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222/* end confdefs.h. */ 7223#include <ac_nonexistent.h> 7224_ACEOF 7225if ac_fn_c_try_cpp "$LINENO"; then : 7226 # Broken: success on invalid input. 7227continue 7228else 7229 # Passes both tests. 7230ac_preproc_ok=: 7231break 7232fi 7233rm -f conftest.err conftest.i conftest.$ac_ext 7234 7235done 7236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7237rm -f conftest.i conftest.err conftest.$ac_ext 7238if $ac_preproc_ok; then : 7239 break 7240fi 7241 7242 done 7243 ac_cv_prog_CPP=$CPP 7244 7245fi 7246 CPP=$ac_cv_prog_CPP 7247else 7248 ac_cv_prog_CPP=$CPP 7249fi 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7251$as_echo "$CPP" >&6; } 7252ac_preproc_ok=false 7253for ac_c_preproc_warn_flag in '' yes 7254do 7255 # Use a header file that comes with gcc, so configuring glibc 7256 # with a fresh cross-compiler works. 7257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7258 # <limits.h> exists even on freestanding compilers. 7259 # On the NeXT, cc -E runs the code through the compiler's parser, 7260 # not just through cpp. "Syntax error" is here to catch this case. 7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7262/* end confdefs.h. */ 7263#ifdef __STDC__ 7264# include <limits.h> 7265#else 7266# include <assert.h> 7267#endif 7268 Syntax error 7269_ACEOF 7270if ac_fn_c_try_cpp "$LINENO"; then : 7271 7272else 7273 # Broken: fails on valid input. 7274continue 7275fi 7276rm -f conftest.err conftest.i conftest.$ac_ext 7277 7278 # OK, works on sane cases. Now check whether nonexistent headers 7279 # can be detected and how. 7280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7281/* end confdefs.h. */ 7282#include <ac_nonexistent.h> 7283_ACEOF 7284if ac_fn_c_try_cpp "$LINENO"; then : 7285 # Broken: success on invalid input. 7286continue 7287else 7288 # Passes both tests. 7289ac_preproc_ok=: 7290break 7291fi 7292rm -f conftest.err conftest.i conftest.$ac_ext 7293 7294done 7295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7296rm -f conftest.i conftest.err conftest.$ac_ext 7297if $ac_preproc_ok; then : 7298 7299else 7300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7302as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7303See \`config.log' for more details" "$LINENO" 5; } 7304fi 7305 7306ac_ext=c 7307ac_cpp='$CPP $CPPFLAGS' 7308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7310ac_compiler_gnu=$ac_cv_c_compiler_gnu 7311 7312 7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7314$as_echo_n "checking for ANSI C header files... " >&6; } 7315if ${ac_cv_header_stdc+:} false; then : 7316 $as_echo_n "(cached) " >&6 7317else 7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7319/* end confdefs.h. */ 7320#include <stdlib.h> 7321#include <stdarg.h> 7322#include <string.h> 7323#include <float.h> 7324 7325int 7326main () 7327{ 7328 7329 ; 7330 return 0; 7331} 7332_ACEOF 7333if ac_fn_c_try_compile "$LINENO"; then : 7334 ac_cv_header_stdc=yes 7335else 7336 ac_cv_header_stdc=no 7337fi 7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7339 7340if test $ac_cv_header_stdc = yes; then 7341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343/* end confdefs.h. */ 7344#include <string.h> 7345 7346_ACEOF 7347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7348 $EGREP "memchr" >/dev/null 2>&1; then : 7349 7350else 7351 ac_cv_header_stdc=no 7352fi 7353rm -f conftest* 7354 7355fi 7356 7357if test $ac_cv_header_stdc = yes; then 7358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7360/* end confdefs.h. */ 7361#include <stdlib.h> 7362 7363_ACEOF 7364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7365 $EGREP "free" >/dev/null 2>&1; then : 7366 7367else 7368 ac_cv_header_stdc=no 7369fi 7370rm -f conftest* 7371 7372fi 7373 7374if test $ac_cv_header_stdc = yes; then 7375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7376 if test "$cross_compiling" = yes; then : 7377 : 7378else 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381#include <ctype.h> 7382#include <stdlib.h> 7383#if ((' ' & 0x0FF) == 0x020) 7384# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7385# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7386#else 7387# define ISLOWER(c) \ 7388 (('a' <= (c) && (c) <= 'i') \ 7389 || ('j' <= (c) && (c) <= 'r') \ 7390 || ('s' <= (c) && (c) <= 'z')) 7391# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7392#endif 7393 7394#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7395int 7396main () 7397{ 7398 int i; 7399 for (i = 0; i < 256; i++) 7400 if (XOR (islower (i), ISLOWER (i)) 7401 || toupper (i) != TOUPPER (i)) 7402 return 2; 7403 return 0; 7404} 7405_ACEOF 7406if ac_fn_c_try_run "$LINENO"; then : 7407 7408else 7409 ac_cv_header_stdc=no 7410fi 7411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7412 conftest.$ac_objext conftest.beam conftest.$ac_ext 7413fi 7414 7415fi 7416fi 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7418$as_echo "$ac_cv_header_stdc" >&6; } 7419if test $ac_cv_header_stdc = yes; then 7420 7421$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7422 7423fi 7424 7425# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7426for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7427 inttypes.h stdint.h unistd.h 7428do : 7429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7430ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7431" 7432if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7433 cat >>confdefs.h <<_ACEOF 7434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7435_ACEOF 7436 7437fi 7438 7439done 7440 7441 7442for ac_header in dlfcn.h 7443do : 7444 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7445" 7446if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7447 cat >>confdefs.h <<_ACEOF 7448#define HAVE_DLFCN_H 1 7449_ACEOF 7450 7451fi 7452 7453done 7454 7455 7456 7457 7458 7459# Set options 7460 7461 7462 7463 enable_dlopen=no 7464 7465 7466 enable_win32_dll=no 7467 7468 7469 # Check whether --enable-shared was given. 7470if test "${enable_shared+set}" = set; then : 7471 enableval=$enable_shared; p=${PACKAGE-default} 7472 case $enableval in 7473 yes) enable_shared=yes ;; 7474 no) enable_shared=no ;; 7475 *) 7476 enable_shared=no 7477 # Look at the argument we got. We use all the common list separators. 7478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7479 for pkg in $enableval; do 7480 IFS="$lt_save_ifs" 7481 if test "X$pkg" = "X$p"; then 7482 enable_shared=yes 7483 fi 7484 done 7485 IFS="$lt_save_ifs" 7486 ;; 7487 esac 7488else 7489 enable_shared=yes 7490fi 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 # Check whether --enable-static was given. 7501if test "${enable_static+set}" = set; then : 7502 enableval=$enable_static; p=${PACKAGE-default} 7503 case $enableval in 7504 yes) enable_static=yes ;; 7505 no) enable_static=no ;; 7506 *) 7507 enable_static=no 7508 # Look at the argument we got. We use all the common list separators. 7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7510 for pkg in $enableval; do 7511 IFS="$lt_save_ifs" 7512 if test "X$pkg" = "X$p"; then 7513 enable_static=yes 7514 fi 7515 done 7516 IFS="$lt_save_ifs" 7517 ;; 7518 esac 7519else 7520 enable_static=yes 7521fi 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532# Check whether --with-pic was given. 7533if test "${with_pic+set}" = set; then : 7534 withval=$with_pic; lt_p=${PACKAGE-default} 7535 case $withval in 7536 yes|no) pic_mode=$withval ;; 7537 *) 7538 pic_mode=default 7539 # Look at the argument we got. We use all the common list separators. 7540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7541 for lt_pkg in $withval; do 7542 IFS="$lt_save_ifs" 7543 if test "X$lt_pkg" = "X$lt_p"; then 7544 pic_mode=yes 7545 fi 7546 done 7547 IFS="$lt_save_ifs" 7548 ;; 7549 esac 7550else 7551 pic_mode=default 7552fi 7553 7554 7555test -z "$pic_mode" && pic_mode=default 7556 7557 7558 7559 7560 7561 7562 7563 # Check whether --enable-fast-install was given. 7564if test "${enable_fast_install+set}" = set; then : 7565 enableval=$enable_fast_install; p=${PACKAGE-default} 7566 case $enableval in 7567 yes) enable_fast_install=yes ;; 7568 no) enable_fast_install=no ;; 7569 *) 7570 enable_fast_install=no 7571 # Look at the argument we got. We use all the common list separators. 7572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7573 for pkg in $enableval; do 7574 IFS="$lt_save_ifs" 7575 if test "X$pkg" = "X$p"; then 7576 enable_fast_install=yes 7577 fi 7578 done 7579 IFS="$lt_save_ifs" 7580 ;; 7581 esac 7582else 7583 enable_fast_install=yes 7584fi 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596# This can be used to rebuild libtool when needed 7597LIBTOOL_DEPS="$ltmain" 7598 7599# Always use our own libtool. 7600LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631test -z "$LN_S" && LN_S="ln -s" 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646if test -n "${ZSH_VERSION+set}" ; then 7647 setopt NO_GLOB_SUBST 7648fi 7649 7650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7651$as_echo_n "checking for objdir... " >&6; } 7652if ${lt_cv_objdir+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654else 7655 rm -f .libs 2>/dev/null 7656mkdir .libs 2>/dev/null 7657if test -d .libs; then 7658 lt_cv_objdir=.libs 7659else 7660 # MS-DOS does not allow filenames that begin with a dot. 7661 lt_cv_objdir=_libs 7662fi 7663rmdir .libs 2>/dev/null 7664fi 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7666$as_echo "$lt_cv_objdir" >&6; } 7667objdir=$lt_cv_objdir 7668 7669 7670 7671 7672 7673cat >>confdefs.h <<_ACEOF 7674#define LT_OBJDIR "$lt_cv_objdir/" 7675_ACEOF 7676 7677 7678 7679 7680case $host_os in 7681aix3*) 7682 # AIX sometimes has problems with the GCC collect2 program. For some 7683 # reason, if we set the COLLECT_NAMES environment variable, the problems 7684 # vanish in a puff of smoke. 7685 if test "X${COLLECT_NAMES+set}" != Xset; then 7686 COLLECT_NAMES= 7687 export COLLECT_NAMES 7688 fi 7689 ;; 7690esac 7691 7692# Global variables: 7693ofile=libtool 7694can_build_shared=yes 7695 7696# All known linkers require a `.a' archive for static linking (except MSVC, 7697# which needs '.lib'). 7698libext=a 7699 7700with_gnu_ld="$lt_cv_prog_gnu_ld" 7701 7702old_CC="$CC" 7703old_CFLAGS="$CFLAGS" 7704 7705# Set sane defaults for various variables 7706test -z "$CC" && CC=cc 7707test -z "$LTCC" && LTCC=$CC 7708test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7709test -z "$LD" && LD=ld 7710test -z "$ac_objext" && ac_objext=o 7711 7712for cc_temp in $compiler""; do 7713 case $cc_temp in 7714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7716 \-*) ;; 7717 *) break;; 7718 esac 7719done 7720cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7721 7722 7723# Only perform the check for file, if the check method requires it 7724test -z "$MAGIC_CMD" && MAGIC_CMD=file 7725case $deplibs_check_method in 7726file_magic*) 7727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7729$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7730if ${lt_cv_path_MAGIC_CMD+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732else 7733 case $MAGIC_CMD in 7734[\\/*] | ?:[\\/]*) 7735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7736 ;; 7737*) 7738 lt_save_MAGIC_CMD="$MAGIC_CMD" 7739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7741 for ac_dir in $ac_dummy; do 7742 IFS="$lt_save_ifs" 7743 test -z "$ac_dir" && ac_dir=. 7744 if test -f $ac_dir/${ac_tool_prefix}file; then 7745 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7746 if test -n "$file_magic_test_file"; then 7747 case $deplibs_check_method in 7748 "file_magic "*) 7749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7752 $EGREP "$file_magic_regex" > /dev/null; then 7753 : 7754 else 7755 cat <<_LT_EOF 1>&2 7756 7757*** Warning: the command libtool uses to detect shared libraries, 7758*** $file_magic_cmd, produces output that libtool cannot recognize. 7759*** The result is that libtool may fail to recognize shared libraries 7760*** as such. This will affect the creation of libtool libraries that 7761*** depend on shared libraries, but programs linked with such libtool 7762*** libraries will work regardless of this problem. Nevertheless, you 7763*** may want to report the problem to your system manager and/or to 7764*** bug-libtool@gnu.org 7765 7766_LT_EOF 7767 fi ;; 7768 esac 7769 fi 7770 break 7771 fi 7772 done 7773 IFS="$lt_save_ifs" 7774 MAGIC_CMD="$lt_save_MAGIC_CMD" 7775 ;; 7776esac 7777fi 7778 7779MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7780if test -n "$MAGIC_CMD"; then 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7782$as_echo "$MAGIC_CMD" >&6; } 7783else 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7785$as_echo "no" >&6; } 7786fi 7787 7788 7789 7790 7791 7792if test -z "$lt_cv_path_MAGIC_CMD"; then 7793 if test -n "$ac_tool_prefix"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7795$as_echo_n "checking for file... " >&6; } 7796if ${lt_cv_path_MAGIC_CMD+:} false; then : 7797 $as_echo_n "(cached) " >&6 7798else 7799 case $MAGIC_CMD in 7800[\\/*] | ?:[\\/]*) 7801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7802 ;; 7803*) 7804 lt_save_MAGIC_CMD="$MAGIC_CMD" 7805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7807 for ac_dir in $ac_dummy; do 7808 IFS="$lt_save_ifs" 7809 test -z "$ac_dir" && ac_dir=. 7810 if test -f $ac_dir/file; then 7811 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7812 if test -n "$file_magic_test_file"; then 7813 case $deplibs_check_method in 7814 "file_magic "*) 7815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7818 $EGREP "$file_magic_regex" > /dev/null; then 7819 : 7820 else 7821 cat <<_LT_EOF 1>&2 7822 7823*** Warning: the command libtool uses to detect shared libraries, 7824*** $file_magic_cmd, produces output that libtool cannot recognize. 7825*** The result is that libtool may fail to recognize shared libraries 7826*** as such. This will affect the creation of libtool libraries that 7827*** depend on shared libraries, but programs linked with such libtool 7828*** libraries will work regardless of this problem. Nevertheless, you 7829*** may want to report the problem to your system manager and/or to 7830*** bug-libtool@gnu.org 7831 7832_LT_EOF 7833 fi ;; 7834 esac 7835 fi 7836 break 7837 fi 7838 done 7839 IFS="$lt_save_ifs" 7840 MAGIC_CMD="$lt_save_MAGIC_CMD" 7841 ;; 7842esac 7843fi 7844 7845MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7846if test -n "$MAGIC_CMD"; then 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7848$as_echo "$MAGIC_CMD" >&6; } 7849else 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7851$as_echo "no" >&6; } 7852fi 7853 7854 7855 else 7856 MAGIC_CMD=: 7857 fi 7858fi 7859 7860 fi 7861 ;; 7862esac 7863 7864# Use C for the default configuration in the libtool script 7865 7866lt_save_CC="$CC" 7867ac_ext=c 7868ac_cpp='$CPP $CPPFLAGS' 7869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7871ac_compiler_gnu=$ac_cv_c_compiler_gnu 7872 7873 7874# Source file extension for C test sources. 7875ac_ext=c 7876 7877# Object file extension for compiled C test sources. 7878objext=o 7879objext=$objext 7880 7881# Code to be used in simple compile tests 7882lt_simple_compile_test_code="int some_variable = 0;" 7883 7884# Code to be used in simple link tests 7885lt_simple_link_test_code='int main(){return(0);}' 7886 7887 7888 7889 7890 7891 7892 7893# If no C compiler was specified, use CC. 7894LTCC=${LTCC-"$CC"} 7895 7896# If no C compiler flags were specified, use CFLAGS. 7897LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7898 7899# Allow CC to be a program name with arguments. 7900compiler=$CC 7901 7902# Save the default compiler, since it gets overwritten when the other 7903# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7904compiler_DEFAULT=$CC 7905 7906# save warnings/boilerplate of simple test code 7907ac_outfile=conftest.$ac_objext 7908echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7909eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7910_lt_compiler_boilerplate=`cat conftest.err` 7911$RM conftest* 7912 7913ac_outfile=conftest.$ac_objext 7914echo "$lt_simple_link_test_code" >conftest.$ac_ext 7915eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7916_lt_linker_boilerplate=`cat conftest.err` 7917$RM -r conftest* 7918 7919 7920if test -n "$compiler"; then 7921 7922lt_prog_compiler_no_builtin_flag= 7923 7924if test "$GCC" = yes; then 7925 case $cc_basename in 7926 nvcc*) 7927 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7928 *) 7929 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7930 esac 7931 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7933$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7934if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 lt_cv_prog_compiler_rtti_exceptions=no 7938 ac_outfile=conftest.$ac_objext 7939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7940 lt_compiler_flag="-fno-rtti -fno-exceptions" 7941 # Insert the option either (1) after the last *FLAGS variable, or 7942 # (2) before a word containing "conftest.", or (3) at the end. 7943 # Note that $ac_compile itself does not contain backslashes and begins 7944 # with a dollar sign (not a hyphen), so the echo should work correctly. 7945 # The option is referenced via a variable to avoid confusing sed. 7946 lt_compile=`echo "$ac_compile" | $SED \ 7947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7949 -e 's:$: $lt_compiler_flag:'` 7950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7951 (eval "$lt_compile" 2>conftest.err) 7952 ac_status=$? 7953 cat conftest.err >&5 7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7955 if (exit $ac_status) && test -s "$ac_outfile"; then 7956 # The compiler can only warn and ignore the option if not recognized 7957 # So say no if there are warnings other than the usual output. 7958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7961 lt_cv_prog_compiler_rtti_exceptions=yes 7962 fi 7963 fi 7964 $RM conftest* 7965 7966fi 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7968$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7969 7970if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7971 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7972else 7973 : 7974fi 7975 7976fi 7977 7978 7979 7980 7981 7982 7983 lt_prog_compiler_wl= 7984lt_prog_compiler_pic= 7985lt_prog_compiler_static= 7986 7987 7988 if test "$GCC" = yes; then 7989 lt_prog_compiler_wl='-Wl,' 7990 lt_prog_compiler_static='-static' 7991 7992 case $host_os in 7993 aix*) 7994 # All AIX code is PIC. 7995 if test "$host_cpu" = ia64; then 7996 # AIX 5 now supports IA64 processor 7997 lt_prog_compiler_static='-Bstatic' 7998 fi 7999 ;; 8000 8001 amigaos*) 8002 case $host_cpu in 8003 powerpc) 8004 # see comment about AmigaOS4 .so support 8005 lt_prog_compiler_pic='-fPIC' 8006 ;; 8007 m68k) 8008 # FIXME: we need at least 68020 code to build shared libraries, but 8009 # adding the `-m68020' flag to GCC prevents building anything better, 8010 # like `-m68040'. 8011 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8012 ;; 8013 esac 8014 ;; 8015 8016 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8017 # PIC is the default for these OSes. 8018 ;; 8019 8020 mingw* | cygwin* | pw32* | os2* | cegcc*) 8021 # This hack is so that the source file can tell whether it is being 8022 # built for inclusion in a dll (and should export symbols for example). 8023 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8024 # (--disable-auto-import) libraries 8025 lt_prog_compiler_pic='-DDLL_EXPORT' 8026 ;; 8027 8028 darwin* | rhapsody*) 8029 # PIC is the default on this platform 8030 # Common symbols not allowed in MH_DYLIB files 8031 lt_prog_compiler_pic='-fno-common' 8032 ;; 8033 8034 haiku*) 8035 # PIC is the default for Haiku. 8036 # The "-static" flag exists, but is broken. 8037 lt_prog_compiler_static= 8038 ;; 8039 8040 hpux*) 8041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8043 # sets the default TLS model and affects inlining. 8044 case $host_cpu in 8045 hppa*64*) 8046 # +Z the default 8047 ;; 8048 *) 8049 lt_prog_compiler_pic='-fPIC' 8050 ;; 8051 esac 8052 ;; 8053 8054 interix[3-9]*) 8055 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8056 # Instead, we relocate shared libraries at runtime. 8057 ;; 8058 8059 msdosdjgpp*) 8060 # Just because we use GCC doesn't mean we suddenly get shared libraries 8061 # on systems that don't support them. 8062 lt_prog_compiler_can_build_shared=no 8063 enable_shared=no 8064 ;; 8065 8066 *nto* | *qnx*) 8067 # QNX uses GNU C++, but need to define -shared option too, otherwise 8068 # it will coredump. 8069 lt_prog_compiler_pic='-fPIC -shared' 8070 ;; 8071 8072 sysv4*MP*) 8073 if test -d /usr/nec; then 8074 lt_prog_compiler_pic=-Kconform_pic 8075 fi 8076 ;; 8077 8078 *) 8079 lt_prog_compiler_pic='-fPIC' 8080 ;; 8081 esac 8082 8083 case $cc_basename in 8084 nvcc*) # Cuda Compiler Driver 2.2 8085 lt_prog_compiler_wl='-Xlinker ' 8086 if test -n "$lt_prog_compiler_pic"; then 8087 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8088 fi 8089 ;; 8090 esac 8091 else 8092 # PORTME Check for flag to pass linker flags through the system compiler. 8093 case $host_os in 8094 aix*) 8095 lt_prog_compiler_wl='-Wl,' 8096 if test "$host_cpu" = ia64; then 8097 # AIX 5 now supports IA64 processor 8098 lt_prog_compiler_static='-Bstatic' 8099 else 8100 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8101 fi 8102 ;; 8103 8104 mingw* | cygwin* | pw32* | os2* | cegcc*) 8105 # This hack is so that the source file can tell whether it is being 8106 # built for inclusion in a dll (and should export symbols for example). 8107 lt_prog_compiler_pic='-DDLL_EXPORT' 8108 ;; 8109 8110 hpux9* | hpux10* | hpux11*) 8111 lt_prog_compiler_wl='-Wl,' 8112 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8113 # not for PA HP-UX. 8114 case $host_cpu in 8115 hppa*64*|ia64*) 8116 # +Z the default 8117 ;; 8118 *) 8119 lt_prog_compiler_pic='+Z' 8120 ;; 8121 esac 8122 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8123 lt_prog_compiler_static='${wl}-a ${wl}archive' 8124 ;; 8125 8126 irix5* | irix6* | nonstopux*) 8127 lt_prog_compiler_wl='-Wl,' 8128 # PIC (with -KPIC) is the default. 8129 lt_prog_compiler_static='-non_shared' 8130 ;; 8131 8132 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8133 case $cc_basename in 8134 # old Intel for x86_64 which still supported -KPIC. 8135 ecc*) 8136 lt_prog_compiler_wl='-Wl,' 8137 lt_prog_compiler_pic='-KPIC' 8138 lt_prog_compiler_static='-static' 8139 ;; 8140 # icc used to be incompatible with GCC. 8141 # ICC 10 doesn't accept -KPIC any more. 8142 icc* | ifort*) 8143 lt_prog_compiler_wl='-Wl,' 8144 lt_prog_compiler_pic='-fPIC' 8145 lt_prog_compiler_static='-static' 8146 ;; 8147 # Lahey Fortran 8.1. 8148 lf95*) 8149 lt_prog_compiler_wl='-Wl,' 8150 lt_prog_compiler_pic='--shared' 8151 lt_prog_compiler_static='--static' 8152 ;; 8153 nagfor*) 8154 # NAG Fortran compiler 8155 lt_prog_compiler_wl='-Wl,-Wl,,' 8156 lt_prog_compiler_pic='-PIC' 8157 lt_prog_compiler_static='-Bstatic' 8158 ;; 8159 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8160 # Portland Group compilers (*not* the Pentium gcc compiler, 8161 # which looks to be a dead project) 8162 lt_prog_compiler_wl='-Wl,' 8163 lt_prog_compiler_pic='-fpic' 8164 lt_prog_compiler_static='-Bstatic' 8165 ;; 8166 ccc*) 8167 lt_prog_compiler_wl='-Wl,' 8168 # All Alpha code is PIC. 8169 lt_prog_compiler_static='-non_shared' 8170 ;; 8171 xl* | bgxl* | bgf* | mpixl*) 8172 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8173 lt_prog_compiler_wl='-Wl,' 8174 lt_prog_compiler_pic='-qpic' 8175 lt_prog_compiler_static='-qstaticlink' 8176 ;; 8177 *) 8178 case `$CC -V 2>&1 | sed 5q` in 8179 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8180 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8181 lt_prog_compiler_pic='-KPIC' 8182 lt_prog_compiler_static='-Bstatic' 8183 lt_prog_compiler_wl='' 8184 ;; 8185 *Sun\ F* | *Sun*Fortran*) 8186 lt_prog_compiler_pic='-KPIC' 8187 lt_prog_compiler_static='-Bstatic' 8188 lt_prog_compiler_wl='-Qoption ld ' 8189 ;; 8190 *Sun\ C*) 8191 # Sun C 5.9 8192 lt_prog_compiler_pic='-KPIC' 8193 lt_prog_compiler_static='-Bstatic' 8194 lt_prog_compiler_wl='-Wl,' 8195 ;; 8196 *Intel*\ [CF]*Compiler*) 8197 lt_prog_compiler_wl='-Wl,' 8198 lt_prog_compiler_pic='-fPIC' 8199 lt_prog_compiler_static='-static' 8200 ;; 8201 *Portland\ Group*) 8202 lt_prog_compiler_wl='-Wl,' 8203 lt_prog_compiler_pic='-fpic' 8204 lt_prog_compiler_static='-Bstatic' 8205 ;; 8206 esac 8207 ;; 8208 esac 8209 ;; 8210 8211 newsos6) 8212 lt_prog_compiler_pic='-KPIC' 8213 lt_prog_compiler_static='-Bstatic' 8214 ;; 8215 8216 *nto* | *qnx*) 8217 # QNX uses GNU C++, but need to define -shared option too, otherwise 8218 # it will coredump. 8219 lt_prog_compiler_pic='-fPIC -shared' 8220 ;; 8221 8222 osf3* | osf4* | osf5*) 8223 lt_prog_compiler_wl='-Wl,' 8224 # All OSF/1 code is PIC. 8225 lt_prog_compiler_static='-non_shared' 8226 ;; 8227 8228 rdos*) 8229 lt_prog_compiler_static='-non_shared' 8230 ;; 8231 8232 solaris*) 8233 lt_prog_compiler_pic='-KPIC' 8234 lt_prog_compiler_static='-Bstatic' 8235 case $cc_basename in 8236 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8237 lt_prog_compiler_wl='-Qoption ld ';; 8238 *) 8239 lt_prog_compiler_wl='-Wl,';; 8240 esac 8241 ;; 8242 8243 sunos4*) 8244 lt_prog_compiler_wl='-Qoption ld ' 8245 lt_prog_compiler_pic='-PIC' 8246 lt_prog_compiler_static='-Bstatic' 8247 ;; 8248 8249 sysv4 | sysv4.2uw2* | sysv4.3*) 8250 lt_prog_compiler_wl='-Wl,' 8251 lt_prog_compiler_pic='-KPIC' 8252 lt_prog_compiler_static='-Bstatic' 8253 ;; 8254 8255 sysv4*MP*) 8256 if test -d /usr/nec ;then 8257 lt_prog_compiler_pic='-Kconform_pic' 8258 lt_prog_compiler_static='-Bstatic' 8259 fi 8260 ;; 8261 8262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8263 lt_prog_compiler_wl='-Wl,' 8264 lt_prog_compiler_pic='-KPIC' 8265 lt_prog_compiler_static='-Bstatic' 8266 ;; 8267 8268 unicos*) 8269 lt_prog_compiler_wl='-Wl,' 8270 lt_prog_compiler_can_build_shared=no 8271 ;; 8272 8273 uts4*) 8274 lt_prog_compiler_pic='-pic' 8275 lt_prog_compiler_static='-Bstatic' 8276 ;; 8277 8278 *) 8279 lt_prog_compiler_can_build_shared=no 8280 ;; 8281 esac 8282 fi 8283 8284case $host_os in 8285 # For platforms which do not support PIC, -DPIC is meaningless: 8286 *djgpp*) 8287 lt_prog_compiler_pic= 8288 ;; 8289 *) 8290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8291 ;; 8292esac 8293 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8295$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8296if ${lt_cv_prog_compiler_pic+:} false; then : 8297 $as_echo_n "(cached) " >&6 8298else 8299 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8300fi 8301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8302$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8303lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8304 8305# 8306# Check to make sure the PIC flag actually works. 8307# 8308if test -n "$lt_prog_compiler_pic"; then 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8310$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8311if ${lt_cv_prog_compiler_pic_works+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 lt_cv_prog_compiler_pic_works=no 8315 ac_outfile=conftest.$ac_objext 8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8318 # Insert the option either (1) after the last *FLAGS variable, or 8319 # (2) before a word containing "conftest.", or (3) at the end. 8320 # Note that $ac_compile itself does not contain backslashes and begins 8321 # with a dollar sign (not a hyphen), so the echo should work correctly. 8322 # The option is referenced via a variable to avoid confusing sed. 8323 lt_compile=`echo "$ac_compile" | $SED \ 8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8326 -e 's:$: $lt_compiler_flag:'` 8327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8328 (eval "$lt_compile" 2>conftest.err) 8329 ac_status=$? 8330 cat conftest.err >&5 8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8332 if (exit $ac_status) && test -s "$ac_outfile"; then 8333 # The compiler can only warn and ignore the option if not recognized 8334 # So say no if there are warnings other than the usual output. 8335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8338 lt_cv_prog_compiler_pic_works=yes 8339 fi 8340 fi 8341 $RM conftest* 8342 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8345$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8346 8347if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8348 case $lt_prog_compiler_pic in 8349 "" | " "*) ;; 8350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8351 esac 8352else 8353 lt_prog_compiler_pic= 8354 lt_prog_compiler_can_build_shared=no 8355fi 8356 8357fi 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369# 8370# Check to make sure the static flag actually works. 8371# 8372wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8374$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8375if ${lt_cv_prog_compiler_static_works+:} false; then : 8376 $as_echo_n "(cached) " >&6 8377else 8378 lt_cv_prog_compiler_static_works=no 8379 save_LDFLAGS="$LDFLAGS" 8380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8381 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8383 # The linker can only warn and ignore the option if not recognized 8384 # So say no if there are warnings 8385 if test -s conftest.err; then 8386 # Append any errors to the config.log. 8387 cat conftest.err 1>&5 8388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8390 if diff conftest.exp conftest.er2 >/dev/null; then 8391 lt_cv_prog_compiler_static_works=yes 8392 fi 8393 else 8394 lt_cv_prog_compiler_static_works=yes 8395 fi 8396 fi 8397 $RM -r conftest* 8398 LDFLAGS="$save_LDFLAGS" 8399 8400fi 8401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8402$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8403 8404if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8405 : 8406else 8407 lt_prog_compiler_static= 8408fi 8409 8410 8411 8412 8413 8414 8415 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8417$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8418if ${lt_cv_prog_compiler_c_o+:} false; then : 8419 $as_echo_n "(cached) " >&6 8420else 8421 lt_cv_prog_compiler_c_o=no 8422 $RM -r conftest 2>/dev/null 8423 mkdir conftest 8424 cd conftest 8425 mkdir out 8426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8427 8428 lt_compiler_flag="-o out/conftest2.$ac_objext" 8429 # Insert the option either (1) after the last *FLAGS variable, or 8430 # (2) before a word containing "conftest.", or (3) at the end. 8431 # Note that $ac_compile itself does not contain backslashes and begins 8432 # with a dollar sign (not a hyphen), so the echo should work correctly. 8433 lt_compile=`echo "$ac_compile" | $SED \ 8434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8436 -e 's:$: $lt_compiler_flag:'` 8437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8438 (eval "$lt_compile" 2>out/conftest.err) 8439 ac_status=$? 8440 cat out/conftest.err >&5 8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8442 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8443 then 8444 # The compiler can only warn and ignore the option if not recognized 8445 # So say no if there are warnings 8446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8449 lt_cv_prog_compiler_c_o=yes 8450 fi 8451 fi 8452 chmod u+w . 2>&5 8453 $RM conftest* 8454 # SGI C++ compiler will create directory out/ii_files/ for 8455 # template instantiation 8456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8457 $RM out/* && rmdir out 8458 cd .. 8459 $RM -r conftest 8460 $RM conftest* 8461 8462fi 8463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8464$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8465 8466 8467 8468 8469 8470 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8472$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8473if ${lt_cv_prog_compiler_c_o+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 lt_cv_prog_compiler_c_o=no 8477 $RM -r conftest 2>/dev/null 8478 mkdir conftest 8479 cd conftest 8480 mkdir out 8481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8482 8483 lt_compiler_flag="-o out/conftest2.$ac_objext" 8484 # Insert the option either (1) after the last *FLAGS variable, or 8485 # (2) before a word containing "conftest.", or (3) at the end. 8486 # Note that $ac_compile itself does not contain backslashes and begins 8487 # with a dollar sign (not a hyphen), so the echo should work correctly. 8488 lt_compile=`echo "$ac_compile" | $SED \ 8489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8491 -e 's:$: $lt_compiler_flag:'` 8492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8493 (eval "$lt_compile" 2>out/conftest.err) 8494 ac_status=$? 8495 cat out/conftest.err >&5 8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8497 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8498 then 8499 # The compiler can only warn and ignore the option if not recognized 8500 # So say no if there are warnings 8501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8504 lt_cv_prog_compiler_c_o=yes 8505 fi 8506 fi 8507 chmod u+w . 2>&5 8508 $RM conftest* 8509 # SGI C++ compiler will create directory out/ii_files/ for 8510 # template instantiation 8511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8512 $RM out/* && rmdir out 8513 cd .. 8514 $RM -r conftest 8515 $RM conftest* 8516 8517fi 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8519$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8520 8521 8522 8523 8524hard_links="nottested" 8525if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8526 # do not overwrite the value of need_locks provided by the user 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8528$as_echo_n "checking if we can lock with hard links... " >&6; } 8529 hard_links=yes 8530 $RM conftest* 8531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8532 touch conftest.a 8533 ln conftest.a conftest.b 2>&5 || hard_links=no 8534 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8536$as_echo "$hard_links" >&6; } 8537 if test "$hard_links" = no; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8539$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8540 need_locks=warn 8541 fi 8542else 8543 need_locks=no 8544fi 8545 8546 8547 8548 8549 8550 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8552$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8553 8554 runpath_var= 8555 allow_undefined_flag= 8556 always_export_symbols=no 8557 archive_cmds= 8558 archive_expsym_cmds= 8559 compiler_needs_object=no 8560 enable_shared_with_static_runtimes=no 8561 export_dynamic_flag_spec= 8562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8563 hardcode_automatic=no 8564 hardcode_direct=no 8565 hardcode_direct_absolute=no 8566 hardcode_libdir_flag_spec= 8567 hardcode_libdir_separator= 8568 hardcode_minus_L=no 8569 hardcode_shlibpath_var=unsupported 8570 inherit_rpath=no 8571 link_all_deplibs=unknown 8572 module_cmds= 8573 module_expsym_cmds= 8574 old_archive_from_new_cmds= 8575 old_archive_from_expsyms_cmds= 8576 thread_safe_flag_spec= 8577 whole_archive_flag_spec= 8578 # include_expsyms should be a list of space-separated symbols to be *always* 8579 # included in the symbol list 8580 include_expsyms= 8581 # exclude_expsyms can be an extended regexp of symbols to exclude 8582 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8583 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8584 # as well as any symbol that contains `d'. 8585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8587 # platforms (ab)use it in PIC code, but their linkers get confused if 8588 # the symbol is explicitly referenced. Since portable code cannot 8589 # rely on this symbol name, it's probably fine to never include it in 8590 # preloaded symbol tables. 8591 # Exclude shared library initialization/finalization symbols. 8592 extract_expsyms_cmds= 8593 8594 case $host_os in 8595 cygwin* | mingw* | pw32* | cegcc*) 8596 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8597 # When not using gcc, we currently assume that we are using 8598 # Microsoft Visual C++. 8599 if test "$GCC" != yes; then 8600 with_gnu_ld=no 8601 fi 8602 ;; 8603 interix*) 8604 # we just hope/assume this is gcc and not c89 (= MSVC++) 8605 with_gnu_ld=yes 8606 ;; 8607 openbsd*) 8608 with_gnu_ld=no 8609 ;; 8610 esac 8611 8612 ld_shlibs=yes 8613 8614 # On some targets, GNU ld is compatible enough with the native linker 8615 # that we're better off using the native interface for both. 8616 lt_use_gnu_ld_interface=no 8617 if test "$with_gnu_ld" = yes; then 8618 case $host_os in 8619 aix*) 8620 # The AIX port of GNU ld has always aspired to compatibility 8621 # with the native linker. However, as the warning in the GNU ld 8622 # block says, versions before 2.19.5* couldn't really create working 8623 # shared libraries, regardless of the interface used. 8624 case `$LD -v 2>&1` in 8625 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8626 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8627 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8628 *) 8629 lt_use_gnu_ld_interface=yes 8630 ;; 8631 esac 8632 ;; 8633 *) 8634 lt_use_gnu_ld_interface=yes 8635 ;; 8636 esac 8637 fi 8638 8639 if test "$lt_use_gnu_ld_interface" = yes; then 8640 # If archive_cmds runs LD, not CC, wlarc should be empty 8641 wlarc='${wl}' 8642 8643 # Set some defaults for GNU ld with shared library support. These 8644 # are reset later if shared libraries are not supported. Putting them 8645 # here allows them to be overridden if necessary. 8646 runpath_var=LD_RUN_PATH 8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8648 export_dynamic_flag_spec='${wl}--export-dynamic' 8649 # ancient GNU ld didn't support --whole-archive et. al. 8650 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8651 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8652 else 8653 whole_archive_flag_spec= 8654 fi 8655 supports_anon_versioning=no 8656 case `$LD -v 2>&1` in 8657 *GNU\ gold*) supports_anon_versioning=yes ;; 8658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8661 *\ 2.11.*) ;; # other 2.11 versions 8662 *) supports_anon_versioning=yes ;; 8663 esac 8664 8665 # See if GNU ld supports shared libraries. 8666 case $host_os in 8667 aix[3-9]*) 8668 # On AIX/PPC, the GNU linker is very broken 8669 if test "$host_cpu" != ia64; then 8670 ld_shlibs=no 8671 cat <<_LT_EOF 1>&2 8672 8673*** Warning: the GNU linker, at least up to release 2.19, is reported 8674*** to be unable to reliably create shared libraries on AIX. 8675*** Therefore, libtool is disabling shared libraries support. If you 8676*** really care for shared libraries, you may want to install binutils 8677*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8678*** You will then need to restart the configuration process. 8679 8680_LT_EOF 8681 fi 8682 ;; 8683 8684 amigaos*) 8685 case $host_cpu in 8686 powerpc) 8687 # see comment about AmigaOS4 .so support 8688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8689 archive_expsym_cmds='' 8690 ;; 8691 m68k) 8692 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)' 8693 hardcode_libdir_flag_spec='-L$libdir' 8694 hardcode_minus_L=yes 8695 ;; 8696 esac 8697 ;; 8698 8699 beos*) 8700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8701 allow_undefined_flag=unsupported 8702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8703 # support --undefined. This deserves some investigation. FIXME 8704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8705 else 8706 ld_shlibs=no 8707 fi 8708 ;; 8709 8710 cygwin* | mingw* | pw32* | cegcc*) 8711 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8712 # as there is no search path for DLLs. 8713 hardcode_libdir_flag_spec='-L$libdir' 8714 export_dynamic_flag_spec='${wl}--export-all-symbols' 8715 allow_undefined_flag=unsupported 8716 always_export_symbols=no 8717 enable_shared_with_static_runtimes=yes 8718 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' 8719 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8720 8721 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8723 # If the export-symbols file already is a .def file (1st line 8724 # is EXPORTS), use it as is; otherwise, prepend... 8725 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8726 cp $export_symbols $output_objdir/$soname.def; 8727 else 8728 echo EXPORTS > $output_objdir/$soname.def; 8729 cat $export_symbols >> $output_objdir/$soname.def; 8730 fi~ 8731 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8732 else 8733 ld_shlibs=no 8734 fi 8735 ;; 8736 8737 haiku*) 8738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8739 link_all_deplibs=yes 8740 ;; 8741 8742 interix[3-9]*) 8743 hardcode_direct=no 8744 hardcode_shlibpath_var=no 8745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8746 export_dynamic_flag_spec='${wl}-E' 8747 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8748 # Instead, shared libraries are loaded at an image base (0x10000000 by 8749 # default) and relocated if they conflict, which is a slow very memory 8750 # consuming and fragmenting process. To avoid this, we pick a random, 8751 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8752 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8753 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8754 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' 8755 ;; 8756 8757 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8758 tmp_diet=no 8759 if test "$host_os" = linux-dietlibc; then 8760 case $cc_basename in 8761 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8762 esac 8763 fi 8764 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8765 && test "$tmp_diet" = no 8766 then 8767 tmp_addflag=' $pic_flag' 8768 tmp_sharedflag='-shared' 8769 case $cc_basename,$host_cpu in 8770 pgcc*) # Portland Group C compiler 8771 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' 8772 tmp_addflag=' $pic_flag' 8773 ;; 8774 pgf77* | pgf90* | pgf95* | pgfortran*) 8775 # Portland Group f77 and f90 compilers 8776 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' 8777 tmp_addflag=' $pic_flag -Mnomain' ;; 8778 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8779 tmp_addflag=' -i_dynamic' ;; 8780 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8781 tmp_addflag=' -i_dynamic -nofor_main' ;; 8782 ifc* | ifort*) # Intel Fortran compiler 8783 tmp_addflag=' -nofor_main' ;; 8784 lf95*) # Lahey Fortran 8.1 8785 whole_archive_flag_spec= 8786 tmp_sharedflag='--shared' ;; 8787 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8788 tmp_sharedflag='-qmkshrobj' 8789 tmp_addflag= ;; 8790 nvcc*) # Cuda Compiler Driver 2.2 8791 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' 8792 compiler_needs_object=yes 8793 ;; 8794 esac 8795 case `$CC -V 2>&1 | sed 5q` in 8796 *Sun\ C*) # Sun C 5.9 8797 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' 8798 compiler_needs_object=yes 8799 tmp_sharedflag='-G' ;; 8800 *Sun\ F*) # Sun Fortran 8.3 8801 tmp_sharedflag='-G' ;; 8802 esac 8803 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8804 8805 if test "x$supports_anon_versioning" = xyes; then 8806 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8808 echo "local: *; };" >> $output_objdir/$libname.ver~ 8809 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8810 fi 8811 8812 case $cc_basename in 8813 xlf* | bgf* | bgxlf* | mpixlf*) 8814 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8815 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8817 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8818 if test "x$supports_anon_versioning" = xyes; then 8819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8821 echo "local: *; };" >> $output_objdir/$libname.ver~ 8822 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8823 fi 8824 ;; 8825 esac 8826 else 8827 ld_shlibs=no 8828 fi 8829 ;; 8830 8831 netbsd*) 8832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8833 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8834 wlarc= 8835 else 8836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8838 fi 8839 ;; 8840 8841 solaris*) 8842 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8843 ld_shlibs=no 8844 cat <<_LT_EOF 1>&2 8845 8846*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8847*** create shared libraries on Solaris systems. Therefore, libtool 8848*** is disabling shared libraries support. We urge you to upgrade GNU 8849*** binutils to release 2.9.1 or newer. Another option is to modify 8850*** your PATH or compiler configuration so that the native linker is 8851*** used, and then restart. 8852 8853_LT_EOF 8854 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8855 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8856 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8857 else 8858 ld_shlibs=no 8859 fi 8860 ;; 8861 8862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8863 case `$LD -v 2>&1` in 8864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8865 ld_shlibs=no 8866 cat <<_LT_EOF 1>&2 8867 8868*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8869*** reliably create shared libraries on SCO systems. Therefore, libtool 8870*** is disabling shared libraries support. We urge you to upgrade GNU 8871*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8872*** your PATH or compiler configuration so that the native linker is 8873*** used, and then restart. 8874 8875_LT_EOF 8876 ;; 8877 *) 8878 # For security reasons, it is highly recommended that you always 8879 # use absolute paths for naming shared libraries, and exclude the 8880 # DT_RUNPATH tag from executables and libraries. But doing so 8881 # requires that you compile everything twice, which is a pain. 8882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8885 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8886 else 8887 ld_shlibs=no 8888 fi 8889 ;; 8890 esac 8891 ;; 8892 8893 sunos4*) 8894 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8895 wlarc= 8896 hardcode_direct=yes 8897 hardcode_shlibpath_var=no 8898 ;; 8899 8900 *) 8901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8903 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8904 else 8905 ld_shlibs=no 8906 fi 8907 ;; 8908 esac 8909 8910 if test "$ld_shlibs" = no; then 8911 runpath_var= 8912 hardcode_libdir_flag_spec= 8913 export_dynamic_flag_spec= 8914 whole_archive_flag_spec= 8915 fi 8916 else 8917 # PORTME fill in a description of your system's linker (not GNU ld) 8918 case $host_os in 8919 aix3*) 8920 allow_undefined_flag=unsupported 8921 always_export_symbols=yes 8922 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' 8923 # Note: this linker hardcodes the directories in LIBPATH if there 8924 # are no directories specified by -L. 8925 hardcode_minus_L=yes 8926 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8927 # Neither direct hardcoding nor static linking is supported with a 8928 # broken collect2. 8929 hardcode_direct=unsupported 8930 fi 8931 ;; 8932 8933 aix[4-9]*) 8934 if test "$host_cpu" = ia64; then 8935 # On IA64, the linker does run time linking by default, so we don't 8936 # have to do anything special. 8937 aix_use_runtimelinking=no 8938 exp_sym_flag='-Bexport' 8939 no_entry_flag="" 8940 else 8941 # If we're using GNU nm, then we don't want the "-C" option. 8942 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8943 # Also, AIX nm treats weak defined symbols like other global 8944 # defined symbols, whereas GNU nm marks them as "W". 8945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8946 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' 8947 else 8948 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' 8949 fi 8950 aix_use_runtimelinking=no 8951 8952 # Test if we are trying to use run time linking or normal 8953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8954 # need to do runtime linking. 8955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8956 for ld_flag in $LDFLAGS; do 8957 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8958 aix_use_runtimelinking=yes 8959 break 8960 fi 8961 done 8962 ;; 8963 esac 8964 8965 exp_sym_flag='-bexport' 8966 no_entry_flag='-bnoentry' 8967 fi 8968 8969 # When large executables or shared objects are built, AIX ld can 8970 # have problems creating the table of contents. If linking a library 8971 # or program results in "error TOC overflow" add -mminimal-toc to 8972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8974 8975 archive_cmds='' 8976 hardcode_direct=yes 8977 hardcode_direct_absolute=yes 8978 hardcode_libdir_separator=':' 8979 link_all_deplibs=yes 8980 file_list_spec='${wl}-f,' 8981 8982 if test "$GCC" = yes; then 8983 case $host_os in aix4.[012]|aix4.[012].*) 8984 # We only want to do this on AIX 4.2 and lower, the check 8985 # below for broken collect2 doesn't work under 4.3+ 8986 collect2name=`${CC} -print-prog-name=collect2` 8987 if test -f "$collect2name" && 8988 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8989 then 8990 # We have reworked collect2 8991 : 8992 else 8993 # We have old collect2 8994 hardcode_direct=unsupported 8995 # It fails to find uninstalled libraries when the uninstalled 8996 # path is not listed in the libpath. Setting hardcode_minus_L 8997 # to unsupported forces relinking 8998 hardcode_minus_L=yes 8999 hardcode_libdir_flag_spec='-L$libdir' 9000 hardcode_libdir_separator= 9001 fi 9002 ;; 9003 esac 9004 shared_flag='-shared' 9005 if test "$aix_use_runtimelinking" = yes; then 9006 shared_flag="$shared_flag "'${wl}-G' 9007 fi 9008 else 9009 # not using gcc 9010 if test "$host_cpu" = ia64; then 9011 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9012 # chokes on -Wl,-G. The following line is correct: 9013 shared_flag='-G' 9014 else 9015 if test "$aix_use_runtimelinking" = yes; then 9016 shared_flag='${wl}-G' 9017 else 9018 shared_flag='${wl}-bM:SRE' 9019 fi 9020 fi 9021 fi 9022 9023 export_dynamic_flag_spec='${wl}-bexpall' 9024 # It seems that -bexpall does not export symbols beginning with 9025 # underscore (_), so it is better to generate a list of symbols to export. 9026 always_export_symbols=yes 9027 if test "$aix_use_runtimelinking" = yes; then 9028 # Warning - without using the other runtime loading flags (-brtl), 9029 # -berok will link without error, but may produce a broken library. 9030 allow_undefined_flag='-berok' 9031 # Determine the default libpath from the value encoded in an 9032 # empty executable. 9033 if test "${lt_cv_aix_libpath+set}" = set; then 9034 aix_libpath=$lt_cv_aix_libpath 9035else 9036 if ${lt_cv_aix_libpath_+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041 9042int 9043main () 9044{ 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050if ac_fn_c_try_link "$LINENO"; then : 9051 9052 lt_aix_libpath_sed=' 9053 /Import File Strings/,/^$/ { 9054 /^0/ { 9055 s/^0 *\([^ ]*\) *$/\1/ 9056 p 9057 } 9058 }' 9059 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9060 # Check for a 64-bit object if we didn't find anything. 9061 if test -z "$lt_cv_aix_libpath_"; then 9062 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9063 fi 9064fi 9065rm -f core conftest.err conftest.$ac_objext \ 9066 conftest$ac_exeext conftest.$ac_ext 9067 if test -z "$lt_cv_aix_libpath_"; then 9068 lt_cv_aix_libpath_="/usr/lib:/lib" 9069 fi 9070 9071fi 9072 9073 aix_libpath=$lt_cv_aix_libpath_ 9074fi 9075 9076 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9077 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" 9078 else 9079 if test "$host_cpu" = ia64; then 9080 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9081 allow_undefined_flag="-z nodefs" 9082 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" 9083 else 9084 # Determine the default libpath from the value encoded in an 9085 # empty executable. 9086 if test "${lt_cv_aix_libpath+set}" = set; then 9087 aix_libpath=$lt_cv_aix_libpath 9088else 9089 if ${lt_cv_aix_libpath_+:} false; then : 9090 $as_echo_n "(cached) " >&6 9091else 9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093/* end confdefs.h. */ 9094 9095int 9096main () 9097{ 9098 9099 ; 9100 return 0; 9101} 9102_ACEOF 9103if ac_fn_c_try_link "$LINENO"; then : 9104 9105 lt_aix_libpath_sed=' 9106 /Import File Strings/,/^$/ { 9107 /^0/ { 9108 s/^0 *\([^ ]*\) *$/\1/ 9109 p 9110 } 9111 }' 9112 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9113 # Check for a 64-bit object if we didn't find anything. 9114 if test -z "$lt_cv_aix_libpath_"; then 9115 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9116 fi 9117fi 9118rm -f core conftest.err conftest.$ac_objext \ 9119 conftest$ac_exeext conftest.$ac_ext 9120 if test -z "$lt_cv_aix_libpath_"; then 9121 lt_cv_aix_libpath_="/usr/lib:/lib" 9122 fi 9123 9124fi 9125 9126 aix_libpath=$lt_cv_aix_libpath_ 9127fi 9128 9129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9130 # Warning - without using the other run time loading flags, 9131 # -berok will link without error, but may produce a broken library. 9132 no_undefined_flag=' ${wl}-bernotok' 9133 allow_undefined_flag=' ${wl}-berok' 9134 if test "$with_gnu_ld" = yes; then 9135 # We only use this code for GNU lds that support --whole-archive. 9136 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9137 else 9138 # Exported symbols can be pulled into shared objects from archives 9139 whole_archive_flag_spec='$convenience' 9140 fi 9141 archive_cmds_need_lc=yes 9142 # This is similar to how AIX traditionally builds its shared libraries. 9143 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' 9144 fi 9145 fi 9146 ;; 9147 9148 amigaos*) 9149 case $host_cpu in 9150 powerpc) 9151 # see comment about AmigaOS4 .so support 9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9153 archive_expsym_cmds='' 9154 ;; 9155 m68k) 9156 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)' 9157 hardcode_libdir_flag_spec='-L$libdir' 9158 hardcode_minus_L=yes 9159 ;; 9160 esac 9161 ;; 9162 9163 bsdi[45]*) 9164 export_dynamic_flag_spec=-rdynamic 9165 ;; 9166 9167 cygwin* | mingw* | pw32* | cegcc*) 9168 # When not using gcc, we currently assume that we are using 9169 # Microsoft Visual C++. 9170 # hardcode_libdir_flag_spec is actually meaningless, as there is 9171 # no search path for DLLs. 9172 case $cc_basename in 9173 cl*) 9174 # Native MSVC 9175 hardcode_libdir_flag_spec=' ' 9176 allow_undefined_flag=unsupported 9177 always_export_symbols=yes 9178 file_list_spec='@' 9179 # Tell ltmain to make .lib files, not .a files. 9180 libext=lib 9181 # Tell ltmain to make .dll files, not .so files. 9182 shrext_cmds=".dll" 9183 # FIXME: Setting linknames here is a bad hack. 9184 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9185 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9186 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9187 else 9188 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9189 fi~ 9190 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9191 linknames=' 9192 # The linker will not automatically build a static lib if we build a DLL. 9193 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9194 enable_shared_with_static_runtimes=yes 9195 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9196 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9197 # Don't use ranlib 9198 old_postinstall_cmds='chmod 644 $oldlib' 9199 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9200 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9201 case $lt_outputfile in 9202 *.exe|*.EXE) ;; 9203 *) 9204 lt_outputfile="$lt_outputfile.exe" 9205 lt_tool_outputfile="$lt_tool_outputfile.exe" 9206 ;; 9207 esac~ 9208 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9209 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9210 $RM "$lt_outputfile.manifest"; 9211 fi' 9212 ;; 9213 *) 9214 # Assume MSVC wrapper 9215 hardcode_libdir_flag_spec=' ' 9216 allow_undefined_flag=unsupported 9217 # Tell ltmain to make .lib files, not .a files. 9218 libext=lib 9219 # Tell ltmain to make .dll files, not .so files. 9220 shrext_cmds=".dll" 9221 # FIXME: Setting linknames here is a bad hack. 9222 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9223 # The linker will automatically build a .lib file if we build a DLL. 9224 old_archive_from_new_cmds='true' 9225 # FIXME: Should let the user specify the lib program. 9226 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9227 enable_shared_with_static_runtimes=yes 9228 ;; 9229 esac 9230 ;; 9231 9232 darwin* | rhapsody*) 9233 9234 9235 archive_cmds_need_lc=no 9236 hardcode_direct=no 9237 hardcode_automatic=yes 9238 hardcode_shlibpath_var=unsupported 9239 if test "$lt_cv_ld_force_load" = "yes"; then 9240 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\"`' 9241 9242 else 9243 whole_archive_flag_spec='' 9244 fi 9245 link_all_deplibs=yes 9246 allow_undefined_flag="$_lt_dar_allow_undefined" 9247 case $cc_basename in 9248 ifort*) _lt_dar_can_shared=yes ;; 9249 *) _lt_dar_can_shared=$GCC ;; 9250 esac 9251 if test "$_lt_dar_can_shared" = "yes"; then 9252 output_verbose_link_cmd=func_echo_all 9253 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9254 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9255 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}" 9256 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}" 9257 9258 else 9259 ld_shlibs=no 9260 fi 9261 9262 ;; 9263 9264 dgux*) 9265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9266 hardcode_libdir_flag_spec='-L$libdir' 9267 hardcode_shlibpath_var=no 9268 ;; 9269 9270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9271 # support. Future versions do this automatically, but an explicit c++rt0.o 9272 # does not break anything, and helps significantly (at the cost of a little 9273 # extra space). 9274 freebsd2.2*) 9275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9276 hardcode_libdir_flag_spec='-R$libdir' 9277 hardcode_direct=yes 9278 hardcode_shlibpath_var=no 9279 ;; 9280 9281 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9282 freebsd2.*) 9283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9284 hardcode_direct=yes 9285 hardcode_minus_L=yes 9286 hardcode_shlibpath_var=no 9287 ;; 9288 9289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9290 freebsd* | dragonfly*) 9291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9292 hardcode_libdir_flag_spec='-R$libdir' 9293 hardcode_direct=yes 9294 hardcode_shlibpath_var=no 9295 ;; 9296 9297 hpux9*) 9298 if test "$GCC" = yes; then 9299 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' 9300 else 9301 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' 9302 fi 9303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9304 hardcode_libdir_separator=: 9305 hardcode_direct=yes 9306 9307 # hardcode_minus_L: Not really in the search PATH, 9308 # but as the default location of the library. 9309 hardcode_minus_L=yes 9310 export_dynamic_flag_spec='${wl}-E' 9311 ;; 9312 9313 hpux10*) 9314 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9315 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9316 else 9317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9318 fi 9319 if test "$with_gnu_ld" = no; then 9320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9321 hardcode_libdir_separator=: 9322 hardcode_direct=yes 9323 hardcode_direct_absolute=yes 9324 export_dynamic_flag_spec='${wl}-E' 9325 # hardcode_minus_L: Not really in the search PATH, 9326 # but as the default location of the library. 9327 hardcode_minus_L=yes 9328 fi 9329 ;; 9330 9331 hpux11*) 9332 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9333 case $host_cpu in 9334 hppa*64*) 9335 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9336 ;; 9337 ia64*) 9338 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9339 ;; 9340 *) 9341 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9342 ;; 9343 esac 9344 else 9345 case $host_cpu in 9346 hppa*64*) 9347 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9348 ;; 9349 ia64*) 9350 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9351 ;; 9352 *) 9353 9354 # Older versions of the 11.00 compiler do not understand -b yet 9355 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9357$as_echo_n "checking if $CC understands -b... " >&6; } 9358if ${lt_cv_prog_compiler__b+:} false; then : 9359 $as_echo_n "(cached) " >&6 9360else 9361 lt_cv_prog_compiler__b=no 9362 save_LDFLAGS="$LDFLAGS" 9363 LDFLAGS="$LDFLAGS -b" 9364 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9366 # The linker can only warn and ignore the option if not recognized 9367 # So say no if there are warnings 9368 if test -s conftest.err; then 9369 # Append any errors to the config.log. 9370 cat conftest.err 1>&5 9371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9373 if diff conftest.exp conftest.er2 >/dev/null; then 9374 lt_cv_prog_compiler__b=yes 9375 fi 9376 else 9377 lt_cv_prog_compiler__b=yes 9378 fi 9379 fi 9380 $RM -r conftest* 9381 LDFLAGS="$save_LDFLAGS" 9382 9383fi 9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9385$as_echo "$lt_cv_prog_compiler__b" >&6; } 9386 9387if test x"$lt_cv_prog_compiler__b" = xyes; then 9388 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9389else 9390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9391fi 9392 9393 ;; 9394 esac 9395 fi 9396 if test "$with_gnu_ld" = no; then 9397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9398 hardcode_libdir_separator=: 9399 9400 case $host_cpu in 9401 hppa*64*|ia64*) 9402 hardcode_direct=no 9403 hardcode_shlibpath_var=no 9404 ;; 9405 *) 9406 hardcode_direct=yes 9407 hardcode_direct_absolute=yes 9408 export_dynamic_flag_spec='${wl}-E' 9409 9410 # hardcode_minus_L: Not really in the search PATH, 9411 # but as the default location of the library. 9412 hardcode_minus_L=yes 9413 ;; 9414 esac 9415 fi 9416 ;; 9417 9418 irix5* | irix6* | nonstopux*) 9419 if test "$GCC" = yes; then 9420 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' 9421 # Try to use the -exported_symbol ld option, if it does not 9422 # work, assume that -exports_file does not work either and 9423 # implicitly export all symbols. 9424 # This should be the same for all languages, so no per-tag cache variable. 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9426$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9427if ${lt_cv_irix_exported_symbol+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 save_LDFLAGS="$LDFLAGS" 9431 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434int foo (void) { return 0; } 9435_ACEOF 9436if ac_fn_c_try_link "$LINENO"; then : 9437 lt_cv_irix_exported_symbol=yes 9438else 9439 lt_cv_irix_exported_symbol=no 9440fi 9441rm -f core conftest.err conftest.$ac_objext \ 9442 conftest$ac_exeext conftest.$ac_ext 9443 LDFLAGS="$save_LDFLAGS" 9444fi 9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9446$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9447 if test "$lt_cv_irix_exported_symbol" = yes; then 9448 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' 9449 fi 9450 else 9451 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' 9452 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' 9453 fi 9454 archive_cmds_need_lc='no' 9455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9456 hardcode_libdir_separator=: 9457 inherit_rpath=yes 9458 link_all_deplibs=yes 9459 ;; 9460 9461 netbsd*) 9462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9464 else 9465 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9466 fi 9467 hardcode_libdir_flag_spec='-R$libdir' 9468 hardcode_direct=yes 9469 hardcode_shlibpath_var=no 9470 ;; 9471 9472 newsos6) 9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9474 hardcode_direct=yes 9475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9476 hardcode_libdir_separator=: 9477 hardcode_shlibpath_var=no 9478 ;; 9479 9480 *nto* | *qnx*) 9481 ;; 9482 9483 openbsd*) 9484 if test -f /usr/libexec/ld.so; then 9485 hardcode_direct=yes 9486 hardcode_shlibpath_var=no 9487 hardcode_direct_absolute=yes 9488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9490 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9492 export_dynamic_flag_spec='${wl}-E' 9493 else 9494 case $host_os in 9495 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9497 hardcode_libdir_flag_spec='-R$libdir' 9498 ;; 9499 *) 9500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9502 ;; 9503 esac 9504 fi 9505 else 9506 ld_shlibs=no 9507 fi 9508 ;; 9509 9510 os2*) 9511 hardcode_libdir_flag_spec='-L$libdir' 9512 hardcode_minus_L=yes 9513 allow_undefined_flag=unsupported 9514 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' 9515 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9516 ;; 9517 9518 osf3*) 9519 if test "$GCC" = yes; then 9520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9521 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' 9522 else 9523 allow_undefined_flag=' -expect_unresolved \*' 9524 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' 9525 fi 9526 archive_cmds_need_lc='no' 9527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9528 hardcode_libdir_separator=: 9529 ;; 9530 9531 osf4* | osf5*) # as osf3* with the addition of -msym flag 9532 if test "$GCC" = yes; then 9533 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9534 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' 9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9536 else 9537 allow_undefined_flag=' -expect_unresolved \*' 9538 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' 9539 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~ 9540 $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' 9541 9542 # Both c and cxx compiler support -rpath directly 9543 hardcode_libdir_flag_spec='-rpath $libdir' 9544 fi 9545 archive_cmds_need_lc='no' 9546 hardcode_libdir_separator=: 9547 ;; 9548 9549 solaris*) 9550 no_undefined_flag=' -z defs' 9551 if test "$GCC" = yes; then 9552 wlarc='${wl}' 9553 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9555 $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' 9556 else 9557 case `$CC -V 2>&1` in 9558 *"Compilers 5.0"*) 9559 wlarc='' 9560 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9562 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9563 ;; 9564 *) 9565 wlarc='${wl}' 9566 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9567 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9568 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9569 ;; 9570 esac 9571 fi 9572 hardcode_libdir_flag_spec='-R$libdir' 9573 hardcode_shlibpath_var=no 9574 case $host_os in 9575 solaris2.[0-5] | solaris2.[0-5].*) ;; 9576 *) 9577 # The compiler driver will combine and reorder linker options, 9578 # but understands `-z linker_flag'. GCC discards it without `$wl', 9579 # but is careful enough not to reorder. 9580 # Supported since Solaris 2.6 (maybe 2.5.1?) 9581 if test "$GCC" = yes; then 9582 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9583 else 9584 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9585 fi 9586 ;; 9587 esac 9588 link_all_deplibs=yes 9589 ;; 9590 9591 sunos4*) 9592 if test "x$host_vendor" = xsequent; then 9593 # Use $CC to link under sequent, because it throws in some extra .o 9594 # files that make .init and .fini sections work. 9595 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9596 else 9597 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9598 fi 9599 hardcode_libdir_flag_spec='-L$libdir' 9600 hardcode_direct=yes 9601 hardcode_minus_L=yes 9602 hardcode_shlibpath_var=no 9603 ;; 9604 9605 sysv4) 9606 case $host_vendor in 9607 sni) 9608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9609 hardcode_direct=yes # is this really true??? 9610 ;; 9611 siemens) 9612 ## LD is ld it makes a PLAMLIB 9613 ## CC just makes a GrossModule. 9614 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9615 reload_cmds='$CC -r -o $output$reload_objs' 9616 hardcode_direct=no 9617 ;; 9618 motorola) 9619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9620 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9621 ;; 9622 esac 9623 runpath_var='LD_RUN_PATH' 9624 hardcode_shlibpath_var=no 9625 ;; 9626 9627 sysv4.3*) 9628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9629 hardcode_shlibpath_var=no 9630 export_dynamic_flag_spec='-Bexport' 9631 ;; 9632 9633 sysv4*MP*) 9634 if test -d /usr/nec; then 9635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9636 hardcode_shlibpath_var=no 9637 runpath_var=LD_RUN_PATH 9638 hardcode_runpath_var=yes 9639 ld_shlibs=yes 9640 fi 9641 ;; 9642 9643 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9644 no_undefined_flag='${wl}-z,text' 9645 archive_cmds_need_lc=no 9646 hardcode_shlibpath_var=no 9647 runpath_var='LD_RUN_PATH' 9648 9649 if test "$GCC" = yes; then 9650 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9651 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9652 else 9653 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9654 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9655 fi 9656 ;; 9657 9658 sysv5* | sco3.2v5* | sco5v6*) 9659 # Note: We can NOT use -z defs as we might desire, because we do not 9660 # link with -lc, and that would cause any symbols used from libc to 9661 # always be unresolved, which means just about no library would 9662 # ever link correctly. If we're not using GNU ld we use -z text 9663 # though, which does catch some bad symbols but isn't as heavy-handed 9664 # as -z defs. 9665 no_undefined_flag='${wl}-z,text' 9666 allow_undefined_flag='${wl}-z,nodefs' 9667 archive_cmds_need_lc=no 9668 hardcode_shlibpath_var=no 9669 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9670 hardcode_libdir_separator=':' 9671 link_all_deplibs=yes 9672 export_dynamic_flag_spec='${wl}-Bexport' 9673 runpath_var='LD_RUN_PATH' 9674 9675 if test "$GCC" = yes; then 9676 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9677 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9678 else 9679 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9680 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9681 fi 9682 ;; 9683 9684 uts4*) 9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9686 hardcode_libdir_flag_spec='-L$libdir' 9687 hardcode_shlibpath_var=no 9688 ;; 9689 9690 *) 9691 ld_shlibs=no 9692 ;; 9693 esac 9694 9695 if test x$host_vendor = xsni; then 9696 case $host in 9697 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9698 export_dynamic_flag_spec='${wl}-Blargedynsym' 9699 ;; 9700 esac 9701 fi 9702 fi 9703 9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9705$as_echo "$ld_shlibs" >&6; } 9706test "$ld_shlibs" = no && can_build_shared=no 9707 9708with_gnu_ld=$with_gnu_ld 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724# 9725# Do we need to explicitly link libc? 9726# 9727case "x$archive_cmds_need_lc" in 9728x|xyes) 9729 # Assume -lc should be added 9730 archive_cmds_need_lc=yes 9731 9732 if test "$enable_shared" = yes && test "$GCC" = yes; then 9733 case $archive_cmds in 9734 *'~'*) 9735 # FIXME: we may have to deal with multi-command sequences. 9736 ;; 9737 '$CC '*) 9738 # Test whether the compiler implicitly links with -lc since on some 9739 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9740 # to ld, don't add -lc before -lgcc. 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9742$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9743if ${lt_cv_archive_cmds_need_lc+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 $RM conftest* 9747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9748 9749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9750 (eval $ac_compile) 2>&5 9751 ac_status=$? 9752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9753 test $ac_status = 0; } 2>conftest.err; then 9754 soname=conftest 9755 lib=conftest 9756 libobjs=conftest.$ac_objext 9757 deplibs= 9758 wl=$lt_prog_compiler_wl 9759 pic_flag=$lt_prog_compiler_pic 9760 compiler_flags=-v 9761 linker_flags=-v 9762 verstring= 9763 output_objdir=. 9764 libname=conftest 9765 lt_save_allow_undefined_flag=$allow_undefined_flag 9766 allow_undefined_flag= 9767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9768 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9769 ac_status=$? 9770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9771 test $ac_status = 0; } 9772 then 9773 lt_cv_archive_cmds_need_lc=no 9774 else 9775 lt_cv_archive_cmds_need_lc=yes 9776 fi 9777 allow_undefined_flag=$lt_save_allow_undefined_flag 9778 else 9779 cat conftest.err 1>&5 9780 fi 9781 $RM conftest* 9782 9783fi 9784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9785$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9786 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9787 ;; 9788 esac 9789 fi 9790 ;; 9791esac 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9945$as_echo_n "checking dynamic linker characteristics... " >&6; } 9946 9947if test "$GCC" = yes; then 9948 case $host_os in 9949 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9950 *) lt_awk_arg="/^libraries:/" ;; 9951 esac 9952 case $host_os in 9953 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9954 *) lt_sed_strip_eq="s,=/,/,g" ;; 9955 esac 9956 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9957 case $lt_search_path_spec in 9958 *\;*) 9959 # if the path contains ";" then we assume it to be the separator 9960 # otherwise default to the standard path separator (i.e. ":") - it is 9961 # assumed that no part of a normal pathname contains ";" but that should 9962 # okay in the real world where ";" in dirpaths is itself problematic. 9963 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9964 ;; 9965 *) 9966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9967 ;; 9968 esac 9969 # Ok, now we have the path, separated by spaces, we can step through it 9970 # and add multilib dir if necessary. 9971 lt_tmp_lt_search_path_spec= 9972 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9973 for lt_sys_path in $lt_search_path_spec; do 9974 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9975 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9976 else 9977 test -d "$lt_sys_path" && \ 9978 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9979 fi 9980 done 9981 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9982BEGIN {RS=" "; FS="/|\n";} { 9983 lt_foo=""; 9984 lt_count=0; 9985 for (lt_i = NF; lt_i > 0; lt_i--) { 9986 if ($lt_i != "" && $lt_i != ".") { 9987 if ($lt_i == "..") { 9988 lt_count++; 9989 } else { 9990 if (lt_count == 0) { 9991 lt_foo="/" $lt_i lt_foo; 9992 } else { 9993 lt_count--; 9994 } 9995 } 9996 } 9997 } 9998 if (lt_foo != "") { lt_freq[lt_foo]++; } 9999 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10000}'` 10001 # AWK program above erroneously prepends '/' to C:/dos/paths 10002 # for these hosts. 10003 case $host_os in 10004 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10005 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10006 esac 10007 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10008else 10009 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10010fi 10011library_names_spec= 10012libname_spec='lib$name' 10013soname_spec= 10014shrext_cmds=".so" 10015postinstall_cmds= 10016postuninstall_cmds= 10017finish_cmds= 10018finish_eval= 10019shlibpath_var= 10020shlibpath_overrides_runpath=unknown 10021version_type=none 10022dynamic_linker="$host_os ld.so" 10023sys_lib_dlsearch_path_spec="/lib /usr/lib" 10024need_lib_prefix=unknown 10025hardcode_into_libs=no 10026 10027# when you set need_version to no, make sure it does not cause -set_version 10028# flags to be left without arguments 10029need_version=unknown 10030 10031case $host_os in 10032aix3*) 10033 version_type=linux # correct to gnu/linux during the next big refactor 10034 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10035 shlibpath_var=LIBPATH 10036 10037 # AIX 3 has no versioning support, so we append a major version to the name. 10038 soname_spec='${libname}${release}${shared_ext}$major' 10039 ;; 10040 10041aix[4-9]*) 10042 version_type=linux # correct to gnu/linux during the next big refactor 10043 need_lib_prefix=no 10044 need_version=no 10045 hardcode_into_libs=yes 10046 if test "$host_cpu" = ia64; then 10047 # AIX 5 supports IA64 10048 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10049 shlibpath_var=LD_LIBRARY_PATH 10050 else 10051 # With GCC up to 2.95.x, collect2 would create an import file 10052 # for dependence libraries. The import file would start with 10053 # the line `#! .'. This would cause the generated library to 10054 # depend on `.', always an invalid library. This was fixed in 10055 # development snapshots of GCC prior to 3.0. 10056 case $host_os in 10057 aix4 | aix4.[01] | aix4.[01].*) 10058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10059 echo ' yes ' 10060 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10061 : 10062 else 10063 can_build_shared=no 10064 fi 10065 ;; 10066 esac 10067 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10068 # soname into executable. Probably we can add versioning support to 10069 # collect2, so additional links can be useful in future. 10070 if test "$aix_use_runtimelinking" = yes; then 10071 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10072 # instead of lib<name>.a to let people know that these are not 10073 # typical AIX shared libraries. 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 else 10076 # We preserve .a as extension for shared libraries through AIX4.2 10077 # and later when we are not doing run time linking. 10078 library_names_spec='${libname}${release}.a $libname.a' 10079 soname_spec='${libname}${release}${shared_ext}$major' 10080 fi 10081 shlibpath_var=LIBPATH 10082 fi 10083 ;; 10084 10085amigaos*) 10086 case $host_cpu in 10087 powerpc) 10088 # Since July 2007 AmigaOS4 officially supports .so libraries. 10089 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10091 ;; 10092 m68k) 10093 library_names_spec='$libname.ixlibrary $libname.a' 10094 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10095 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' 10096 ;; 10097 esac 10098 ;; 10099 10100beos*) 10101 library_names_spec='${libname}${shared_ext}' 10102 dynamic_linker="$host_os ld.so" 10103 shlibpath_var=LIBRARY_PATH 10104 ;; 10105 10106bsdi[45]*) 10107 version_type=linux # correct to gnu/linux during the next big refactor 10108 need_version=no 10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10110 soname_spec='${libname}${release}${shared_ext}$major' 10111 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10112 shlibpath_var=LD_LIBRARY_PATH 10113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10115 # the default ld.so.conf also contains /usr/contrib/lib and 10116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10117 # libtool to hard-code these into programs 10118 ;; 10119 10120cygwin* | mingw* | pw32* | cegcc*) 10121 version_type=windows 10122 shrext_cmds=".dll" 10123 need_version=no 10124 need_lib_prefix=no 10125 10126 case $GCC,$cc_basename in 10127 yes,*) 10128 # gcc 10129 library_names_spec='$libname.dll.a' 10130 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10131 postinstall_cmds='base_file=`basename \${file}`~ 10132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10133 dldir=$destdir/`dirname \$dlpath`~ 10134 test -d \$dldir || mkdir -p \$dldir~ 10135 $install_prog $dir/$dlname \$dldir/$dlname~ 10136 chmod a+x \$dldir/$dlname~ 10137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10139 fi' 10140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10141 dlpath=$dir/\$dldll~ 10142 $RM \$dlpath' 10143 shlibpath_overrides_runpath=yes 10144 10145 case $host_os in 10146 cygwin*) 10147 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10149 10150 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10151 ;; 10152 mingw* | cegcc*) 10153 # MinGW DLLs use traditional 'lib' prefix 10154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10155 ;; 10156 pw32*) 10157 # pw32 DLLs use 'pw' prefix rather than 'lib' 10158 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10159 ;; 10160 esac 10161 dynamic_linker='Win32 ld.exe' 10162 ;; 10163 10164 *,cl*) 10165 # Native MSVC 10166 libname_spec='$name' 10167 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10168 library_names_spec='${libname}.dll.lib' 10169 10170 case $build_os in 10171 mingw*) 10172 sys_lib_search_path_spec= 10173 lt_save_ifs=$IFS 10174 IFS=';' 10175 for lt_path in $LIB 10176 do 10177 IFS=$lt_save_ifs 10178 # Let DOS variable expansion print the short 8.3 style file name. 10179 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10180 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10181 done 10182 IFS=$lt_save_ifs 10183 # Convert to MSYS style. 10184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10185 ;; 10186 cygwin*) 10187 # Convert to unix form, then to dos form, then back to unix form 10188 # but this time dos style (no spaces!) so that the unix form looks 10189 # like /cygdrive/c/PROGRA~1:/cygdr... 10190 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10191 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10192 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10193 ;; 10194 *) 10195 sys_lib_search_path_spec="$LIB" 10196 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10197 # It is most probably a Windows format PATH. 10198 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10199 else 10200 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10201 fi 10202 # FIXME: find the short name or the path components, as spaces are 10203 # common. (e.g. "Program Files" -> "PROGRA~1") 10204 ;; 10205 esac 10206 10207 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10208 postinstall_cmds='base_file=`basename \${file}`~ 10209 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10210 dldir=$destdir/`dirname \$dlpath`~ 10211 test -d \$dldir || mkdir -p \$dldir~ 10212 $install_prog $dir/$dlname \$dldir/$dlname' 10213 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10214 dlpath=$dir/\$dldll~ 10215 $RM \$dlpath' 10216 shlibpath_overrides_runpath=yes 10217 dynamic_linker='Win32 link.exe' 10218 ;; 10219 10220 *) 10221 # Assume MSVC wrapper 10222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10223 dynamic_linker='Win32 ld.exe' 10224 ;; 10225 esac 10226 # FIXME: first we should search . and the directory the executable is in 10227 shlibpath_var=PATH 10228 ;; 10229 10230darwin* | rhapsody*) 10231 dynamic_linker="$host_os dyld" 10232 version_type=darwin 10233 need_lib_prefix=no 10234 need_version=no 10235 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10236 soname_spec='${libname}${release}${major}$shared_ext' 10237 shlibpath_overrides_runpath=yes 10238 shlibpath_var=DYLD_LIBRARY_PATH 10239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10240 10241 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10242 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10243 ;; 10244 10245dgux*) 10246 version_type=linux # correct to gnu/linux during the next big refactor 10247 need_lib_prefix=no 10248 need_version=no 10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10250 soname_spec='${libname}${release}${shared_ext}$major' 10251 shlibpath_var=LD_LIBRARY_PATH 10252 ;; 10253 10254freebsd* | dragonfly*) 10255 # DragonFly does not have aout. When/if they implement a new 10256 # versioning mechanism, adjust this. 10257 if test -x /usr/bin/objformat; then 10258 objformat=`/usr/bin/objformat` 10259 else 10260 case $host_os in 10261 freebsd[23].*) objformat=aout ;; 10262 *) objformat=elf ;; 10263 esac 10264 fi 10265 version_type=freebsd-$objformat 10266 case $version_type in 10267 freebsd-elf*) 10268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10269 need_version=no 10270 need_lib_prefix=no 10271 ;; 10272 freebsd-*) 10273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10274 need_version=yes 10275 ;; 10276 esac 10277 shlibpath_var=LD_LIBRARY_PATH 10278 case $host_os in 10279 freebsd2.*) 10280 shlibpath_overrides_runpath=yes 10281 ;; 10282 freebsd3.[01]* | freebsdelf3.[01]*) 10283 shlibpath_overrides_runpath=yes 10284 hardcode_into_libs=yes 10285 ;; 10286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10288 shlibpath_overrides_runpath=no 10289 hardcode_into_libs=yes 10290 ;; 10291 *) # from 4.6 on, and DragonFly 10292 shlibpath_overrides_runpath=yes 10293 hardcode_into_libs=yes 10294 ;; 10295 esac 10296 ;; 10297 10298gnu*) 10299 version_type=linux # correct to gnu/linux during the next big refactor 10300 need_lib_prefix=no 10301 need_version=no 10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10303 soname_spec='${libname}${release}${shared_ext}$major' 10304 shlibpath_var=LD_LIBRARY_PATH 10305 shlibpath_overrides_runpath=no 10306 hardcode_into_libs=yes 10307 ;; 10308 10309haiku*) 10310 version_type=linux # correct to gnu/linux during the next big refactor 10311 need_lib_prefix=no 10312 need_version=no 10313 dynamic_linker="$host_os runtime_loader" 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10315 soname_spec='${libname}${release}${shared_ext}$major' 10316 shlibpath_var=LIBRARY_PATH 10317 shlibpath_overrides_runpath=yes 10318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10319 hardcode_into_libs=yes 10320 ;; 10321 10322hpux9* | hpux10* | hpux11*) 10323 # Give a soname corresponding to the major version so that dld.sl refuses to 10324 # link against other versions. 10325 version_type=sunos 10326 need_lib_prefix=no 10327 need_version=no 10328 case $host_cpu in 10329 ia64*) 10330 shrext_cmds='.so' 10331 hardcode_into_libs=yes 10332 dynamic_linker="$host_os dld.so" 10333 shlibpath_var=LD_LIBRARY_PATH 10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10336 soname_spec='${libname}${release}${shared_ext}$major' 10337 if test "X$HPUX_IA64_MODE" = X32; then 10338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10339 else 10340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10341 fi 10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10343 ;; 10344 hppa*64*) 10345 shrext_cmds='.sl' 10346 hardcode_into_libs=yes 10347 dynamic_linker="$host_os dld.sl" 10348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10354 ;; 10355 *) 10356 shrext_cmds='.sl' 10357 dynamic_linker="$host_os dld.sl" 10358 shlibpath_var=SHLIB_PATH 10359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10361 soname_spec='${libname}${release}${shared_ext}$major' 10362 ;; 10363 esac 10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10365 postinstall_cmds='chmod 555 $lib' 10366 # or fails outright, so override atomically: 10367 install_override_mode=555 10368 ;; 10369 10370interix[3-9]*) 10371 version_type=linux # correct to gnu/linux during the next big refactor 10372 need_lib_prefix=no 10373 need_version=no 10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10375 soname_spec='${libname}${release}${shared_ext}$major' 10376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10377 shlibpath_var=LD_LIBRARY_PATH 10378 shlibpath_overrides_runpath=no 10379 hardcode_into_libs=yes 10380 ;; 10381 10382irix5* | irix6* | nonstopux*) 10383 case $host_os in 10384 nonstopux*) version_type=nonstopux ;; 10385 *) 10386 if test "$lt_cv_prog_gnu_ld" = yes; then 10387 version_type=linux # correct to gnu/linux during the next big refactor 10388 else 10389 version_type=irix 10390 fi ;; 10391 esac 10392 need_lib_prefix=no 10393 need_version=no 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10396 case $host_os in 10397 irix5* | nonstopux*) 10398 libsuff= shlibsuff= 10399 ;; 10400 *) 10401 case $LD in # libtool.m4 will add one of these switches to LD 10402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10403 libsuff= shlibsuff= libmagic=32-bit;; 10404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10405 libsuff=32 shlibsuff=N32 libmagic=N32;; 10406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10407 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10408 *) libsuff= shlibsuff= libmagic=never-match;; 10409 esac 10410 ;; 10411 esac 10412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10413 shlibpath_overrides_runpath=no 10414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10416 hardcode_into_libs=yes 10417 ;; 10418 10419# No shared lib support for Linux oldld, aout, or coff. 10420linux*oldld* | linux*aout* | linux*coff*) 10421 dynamic_linker=no 10422 ;; 10423 10424# This must be glibc/ELF. 10425linux* | k*bsd*-gnu | kopensolaris*-gnu) 10426 version_type=linux # correct to gnu/linux during the next big refactor 10427 need_lib_prefix=no 10428 need_version=no 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10432 shlibpath_var=LD_LIBRARY_PATH 10433 shlibpath_overrides_runpath=no 10434 10435 # Some binutils ld are patched to set DT_RUNPATH 10436 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10437 $as_echo_n "(cached) " >&6 10438else 10439 lt_cv_shlibpath_overrides_runpath=no 10440 save_LDFLAGS=$LDFLAGS 10441 save_libdir=$libdir 10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445/* end confdefs.h. */ 10446 10447int 10448main () 10449{ 10450 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO"; then : 10456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10457 lt_cv_shlibpath_overrides_runpath=yes 10458fi 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 LDFLAGS=$save_LDFLAGS 10463 libdir=$save_libdir 10464 10465fi 10466 10467 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10468 10469 # This implies no fast_install, which is unacceptable. 10470 # Some rework will be needed to allow for fast_install 10471 # before this can be enabled. 10472 hardcode_into_libs=yes 10473 10474 # Add ABI-specific directories to the system library path. 10475 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10476 10477 # Append ld.so.conf contents to the search path 10478 if test -f /etc/ld.so.conf; then 10479 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' ' '` 10480 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10481 10482 fi 10483 10484 # We used to test for /lib/ld.so.1 and disable shared libraries on 10485 # powerpc, because MkLinux only supported shared libraries with the 10486 # GNU dynamic linker. Since this was broken with cross compilers, 10487 # most powerpc-linux boxes support dynamic linking these days and 10488 # people can always --disable-shared, the test was removed, and we 10489 # assume the GNU/Linux dynamic linker is in use. 10490 dynamic_linker='GNU/Linux ld.so' 10491 ;; 10492 10493netbsd*) 10494 version_type=sunos 10495 need_lib_prefix=no 10496 need_version=no 10497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10500 dynamic_linker='NetBSD (a.out) ld.so' 10501 else 10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10503 soname_spec='${libname}${release}${shared_ext}$major' 10504 dynamic_linker='NetBSD ld.elf_so' 10505 fi 10506 shlibpath_var=LD_LIBRARY_PATH 10507 shlibpath_overrides_runpath=yes 10508 hardcode_into_libs=yes 10509 ;; 10510 10511newsos6) 10512 version_type=linux # correct to gnu/linux during the next big refactor 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 shlibpath_var=LD_LIBRARY_PATH 10515 shlibpath_overrides_runpath=yes 10516 ;; 10517 10518*nto* | *qnx*) 10519 version_type=qnx 10520 need_lib_prefix=no 10521 need_version=no 10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10523 soname_spec='${libname}${release}${shared_ext}$major' 10524 shlibpath_var=LD_LIBRARY_PATH 10525 shlibpath_overrides_runpath=no 10526 hardcode_into_libs=yes 10527 dynamic_linker='ldqnx.so' 10528 ;; 10529 10530openbsd*) 10531 version_type=sunos 10532 sys_lib_dlsearch_path_spec="/usr/lib" 10533 need_lib_prefix=no 10534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10535 case $host_os in 10536 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10537 *) need_version=no ;; 10538 esac 10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10541 shlibpath_var=LD_LIBRARY_PATH 10542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10543 case $host_os in 10544 openbsd2.[89] | openbsd2.[89].*) 10545 shlibpath_overrides_runpath=no 10546 ;; 10547 *) 10548 shlibpath_overrides_runpath=yes 10549 ;; 10550 esac 10551 else 10552 shlibpath_overrides_runpath=yes 10553 fi 10554 ;; 10555 10556os2*) 10557 libname_spec='$name' 10558 shrext_cmds=".dll" 10559 need_lib_prefix=no 10560 library_names_spec='$libname${shared_ext} $libname.a' 10561 dynamic_linker='OS/2 ld.exe' 10562 shlibpath_var=LIBPATH 10563 ;; 10564 10565osf3* | osf4* | osf5*) 10566 version_type=osf 10567 need_lib_prefix=no 10568 need_version=no 10569 soname_spec='${libname}${release}${shared_ext}$major' 10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10574 ;; 10575 10576rdos*) 10577 dynamic_linker=no 10578 ;; 10579 10580solaris*) 10581 version_type=linux # correct to gnu/linux during the next big refactor 10582 need_lib_prefix=no 10583 need_version=no 10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10585 soname_spec='${libname}${release}${shared_ext}$major' 10586 shlibpath_var=LD_LIBRARY_PATH 10587 shlibpath_overrides_runpath=yes 10588 hardcode_into_libs=yes 10589 # ldd complains unless libraries are executable 10590 postinstall_cmds='chmod +x $lib' 10591 ;; 10592 10593sunos4*) 10594 version_type=sunos 10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10597 shlibpath_var=LD_LIBRARY_PATH 10598 shlibpath_overrides_runpath=yes 10599 if test "$with_gnu_ld" = yes; then 10600 need_lib_prefix=no 10601 fi 10602 need_version=yes 10603 ;; 10604 10605sysv4 | sysv4.3*) 10606 version_type=linux # correct to gnu/linux during the next big refactor 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 case $host_vendor in 10611 sni) 10612 shlibpath_overrides_runpath=no 10613 need_lib_prefix=no 10614 runpath_var=LD_RUN_PATH 10615 ;; 10616 siemens) 10617 need_lib_prefix=no 10618 ;; 10619 motorola) 10620 need_lib_prefix=no 10621 need_version=no 10622 shlibpath_overrides_runpath=no 10623 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10624 ;; 10625 esac 10626 ;; 10627 10628sysv4*MP*) 10629 if test -d /usr/nec ;then 10630 version_type=linux # correct to gnu/linux during the next big refactor 10631 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10632 soname_spec='$libname${shared_ext}.$major' 10633 shlibpath_var=LD_LIBRARY_PATH 10634 fi 10635 ;; 10636 10637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10638 version_type=freebsd-elf 10639 need_lib_prefix=no 10640 need_version=no 10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10642 soname_spec='${libname}${release}${shared_ext}$major' 10643 shlibpath_var=LD_LIBRARY_PATH 10644 shlibpath_overrides_runpath=yes 10645 hardcode_into_libs=yes 10646 if test "$with_gnu_ld" = yes; then 10647 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10648 else 10649 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10650 case $host_os in 10651 sco3.2v5*) 10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10653 ;; 10654 esac 10655 fi 10656 sys_lib_dlsearch_path_spec='/usr/lib' 10657 ;; 10658 10659tpf*) 10660 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10661 version_type=linux # correct to gnu/linux during the next big refactor 10662 need_lib_prefix=no 10663 need_version=no 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10665 shlibpath_var=LD_LIBRARY_PATH 10666 shlibpath_overrides_runpath=no 10667 hardcode_into_libs=yes 10668 ;; 10669 10670uts4*) 10671 version_type=linux # correct to gnu/linux during the next big refactor 10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10673 soname_spec='${libname}${release}${shared_ext}$major' 10674 shlibpath_var=LD_LIBRARY_PATH 10675 ;; 10676 10677*) 10678 dynamic_linker=no 10679 ;; 10680esac 10681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10682$as_echo "$dynamic_linker" >&6; } 10683test "$dynamic_linker" = no && can_build_shared=no 10684 10685variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10686if test "$GCC" = yes; then 10687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10688fi 10689 10690if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10691 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10692fi 10693if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10694 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10695fi 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10789$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10790hardcode_action= 10791if test -n "$hardcode_libdir_flag_spec" || 10792 test -n "$runpath_var" || 10793 test "X$hardcode_automatic" = "Xyes" ; then 10794 10795 # We can hardcode non-existent directories. 10796 if test "$hardcode_direct" != no && 10797 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10798 # have to relink, otherwise we might link with an installed library 10799 # when we should be linking with a yet-to-be-installed one 10800 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10801 test "$hardcode_minus_L" != no; then 10802 # Linking always hardcodes the temporary library directory. 10803 hardcode_action=relink 10804 else 10805 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10806 hardcode_action=immediate 10807 fi 10808else 10809 # We cannot hardcode anything, or else we can only hardcode existing 10810 # directories. 10811 hardcode_action=unsupported 10812fi 10813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10814$as_echo "$hardcode_action" >&6; } 10815 10816if test "$hardcode_action" = relink || 10817 test "$inherit_rpath" = yes; then 10818 # Fast installation is not supported 10819 enable_fast_install=no 10820elif test "$shlibpath_overrides_runpath" = yes || 10821 test "$enable_shared" = no; then 10822 # Fast installation is not necessary 10823 enable_fast_install=needless 10824fi 10825 10826 10827 10828 10829 10830 10831 if test "x$enable_dlopen" != xyes; then 10832 enable_dlopen=unknown 10833 enable_dlopen_self=unknown 10834 enable_dlopen_self_static=unknown 10835else 10836 lt_cv_dlopen=no 10837 lt_cv_dlopen_libs= 10838 10839 case $host_os in 10840 beos*) 10841 lt_cv_dlopen="load_add_on" 10842 lt_cv_dlopen_libs= 10843 lt_cv_dlopen_self=yes 10844 ;; 10845 10846 mingw* | pw32* | cegcc*) 10847 lt_cv_dlopen="LoadLibrary" 10848 lt_cv_dlopen_libs= 10849 ;; 10850 10851 cygwin*) 10852 lt_cv_dlopen="dlopen" 10853 lt_cv_dlopen_libs= 10854 ;; 10855 10856 darwin*) 10857 # if libdl is installed we need to link against it 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10859$as_echo_n "checking for dlopen in -ldl... " >&6; } 10860if ${ac_cv_lib_dl_dlopen+:} false; then : 10861 $as_echo_n "(cached) " >&6 10862else 10863 ac_check_lib_save_LIBS=$LIBS 10864LIBS="-ldl $LIBS" 10865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10866/* end confdefs.h. */ 10867 10868/* Override any GCC internal prototype to avoid an error. 10869 Use char because int might match the return type of a GCC 10870 builtin and then its argument prototype would still apply. */ 10871#ifdef __cplusplus 10872extern "C" 10873#endif 10874char dlopen (); 10875int 10876main () 10877{ 10878return dlopen (); 10879 ; 10880 return 0; 10881} 10882_ACEOF 10883if ac_fn_c_try_link "$LINENO"; then : 10884 ac_cv_lib_dl_dlopen=yes 10885else 10886 ac_cv_lib_dl_dlopen=no 10887fi 10888rm -f core conftest.err conftest.$ac_objext \ 10889 conftest$ac_exeext conftest.$ac_ext 10890LIBS=$ac_check_lib_save_LIBS 10891fi 10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10893$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10894if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10896else 10897 10898 lt_cv_dlopen="dyld" 10899 lt_cv_dlopen_libs= 10900 lt_cv_dlopen_self=yes 10901 10902fi 10903 10904 ;; 10905 10906 *) 10907 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10908if test "x$ac_cv_func_shl_load" = xyes; then : 10909 lt_cv_dlopen="shl_load" 10910else 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10912$as_echo_n "checking for shl_load in -ldld... " >&6; } 10913if ${ac_cv_lib_dld_shl_load+:} false; then : 10914 $as_echo_n "(cached) " >&6 10915else 10916 ac_check_lib_save_LIBS=$LIBS 10917LIBS="-ldld $LIBS" 10918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10919/* end confdefs.h. */ 10920 10921/* Override any GCC internal prototype to avoid an error. 10922 Use char because int might match the return type of a GCC 10923 builtin and then its argument prototype would still apply. */ 10924#ifdef __cplusplus 10925extern "C" 10926#endif 10927char shl_load (); 10928int 10929main () 10930{ 10931return shl_load (); 10932 ; 10933 return 0; 10934} 10935_ACEOF 10936if ac_fn_c_try_link "$LINENO"; then : 10937 ac_cv_lib_dld_shl_load=yes 10938else 10939 ac_cv_lib_dld_shl_load=no 10940fi 10941rm -f core conftest.err conftest.$ac_objext \ 10942 conftest$ac_exeext conftest.$ac_ext 10943LIBS=$ac_check_lib_save_LIBS 10944fi 10945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10946$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10947if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10949else 10950 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10951if test "x$ac_cv_func_dlopen" = xyes; then : 10952 lt_cv_dlopen="dlopen" 10953else 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10955$as_echo_n "checking for dlopen in -ldl... " >&6; } 10956if ${ac_cv_lib_dl_dlopen+:} false; then : 10957 $as_echo_n "(cached) " >&6 10958else 10959 ac_check_lib_save_LIBS=$LIBS 10960LIBS="-ldl $LIBS" 10961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10962/* end confdefs.h. */ 10963 10964/* Override any GCC internal prototype to avoid an error. 10965 Use char because int might match the return type of a GCC 10966 builtin and then its argument prototype would still apply. */ 10967#ifdef __cplusplus 10968extern "C" 10969#endif 10970char dlopen (); 10971int 10972main () 10973{ 10974return dlopen (); 10975 ; 10976 return 0; 10977} 10978_ACEOF 10979if ac_fn_c_try_link "$LINENO"; then : 10980 ac_cv_lib_dl_dlopen=yes 10981else 10982 ac_cv_lib_dl_dlopen=no 10983fi 10984rm -f core conftest.err conftest.$ac_objext \ 10985 conftest$ac_exeext conftest.$ac_ext 10986LIBS=$ac_check_lib_save_LIBS 10987fi 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10989$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10990if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10992else 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10994$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10995if ${ac_cv_lib_svld_dlopen+:} false; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 ac_check_lib_save_LIBS=$LIBS 10999LIBS="-lsvld $LIBS" 11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002 11003/* Override any GCC internal prototype to avoid an error. 11004 Use char because int might match the return type of a GCC 11005 builtin and then its argument prototype would still apply. */ 11006#ifdef __cplusplus 11007extern "C" 11008#endif 11009char dlopen (); 11010int 11011main () 11012{ 11013return dlopen (); 11014 ; 11015 return 0; 11016} 11017_ACEOF 11018if ac_fn_c_try_link "$LINENO"; then : 11019 ac_cv_lib_svld_dlopen=yes 11020else 11021 ac_cv_lib_svld_dlopen=no 11022fi 11023rm -f core conftest.err conftest.$ac_objext \ 11024 conftest$ac_exeext conftest.$ac_ext 11025LIBS=$ac_check_lib_save_LIBS 11026fi 11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11028$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11029if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11031else 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11033$as_echo_n "checking for dld_link in -ldld... " >&6; } 11034if ${ac_cv_lib_dld_dld_link+:} false; then : 11035 $as_echo_n "(cached) " >&6 11036else 11037 ac_check_lib_save_LIBS=$LIBS 11038LIBS="-ldld $LIBS" 11039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11040/* end confdefs.h. */ 11041 11042/* Override any GCC internal prototype to avoid an error. 11043 Use char because int might match the return type of a GCC 11044 builtin and then its argument prototype would still apply. */ 11045#ifdef __cplusplus 11046extern "C" 11047#endif 11048char dld_link (); 11049int 11050main () 11051{ 11052return dld_link (); 11053 ; 11054 return 0; 11055} 11056_ACEOF 11057if ac_fn_c_try_link "$LINENO"; then : 11058 ac_cv_lib_dld_dld_link=yes 11059else 11060 ac_cv_lib_dld_dld_link=no 11061fi 11062rm -f core conftest.err conftest.$ac_objext \ 11063 conftest$ac_exeext conftest.$ac_ext 11064LIBS=$ac_check_lib_save_LIBS 11065fi 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11067$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11068if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11069 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11070fi 11071 11072 11073fi 11074 11075 11076fi 11077 11078 11079fi 11080 11081 11082fi 11083 11084 11085fi 11086 11087 ;; 11088 esac 11089 11090 if test "x$lt_cv_dlopen" != xno; then 11091 enable_dlopen=yes 11092 else 11093 enable_dlopen=no 11094 fi 11095 11096 case $lt_cv_dlopen in 11097 dlopen) 11098 save_CPPFLAGS="$CPPFLAGS" 11099 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11100 11101 save_LDFLAGS="$LDFLAGS" 11102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11103 11104 save_LIBS="$LIBS" 11105 LIBS="$lt_cv_dlopen_libs $LIBS" 11106 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11108$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11109if ${lt_cv_dlopen_self+:} false; then : 11110 $as_echo_n "(cached) " >&6 11111else 11112 if test "$cross_compiling" = yes; then : 11113 lt_cv_dlopen_self=cross 11114else 11115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11116 lt_status=$lt_dlunknown 11117 cat > conftest.$ac_ext <<_LT_EOF 11118#line $LINENO "configure" 11119#include "confdefs.h" 11120 11121#if HAVE_DLFCN_H 11122#include <dlfcn.h> 11123#endif 11124 11125#include <stdio.h> 11126 11127#ifdef RTLD_GLOBAL 11128# define LT_DLGLOBAL RTLD_GLOBAL 11129#else 11130# ifdef DL_GLOBAL 11131# define LT_DLGLOBAL DL_GLOBAL 11132# else 11133# define LT_DLGLOBAL 0 11134# endif 11135#endif 11136 11137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11138 find out it does not work in some platform. */ 11139#ifndef LT_DLLAZY_OR_NOW 11140# ifdef RTLD_LAZY 11141# define LT_DLLAZY_OR_NOW RTLD_LAZY 11142# else 11143# ifdef DL_LAZY 11144# define LT_DLLAZY_OR_NOW DL_LAZY 11145# else 11146# ifdef RTLD_NOW 11147# define LT_DLLAZY_OR_NOW RTLD_NOW 11148# else 11149# ifdef DL_NOW 11150# define LT_DLLAZY_OR_NOW DL_NOW 11151# else 11152# define LT_DLLAZY_OR_NOW 0 11153# endif 11154# endif 11155# endif 11156# endif 11157#endif 11158 11159/* When -fvisbility=hidden is used, assume the code has been annotated 11160 correspondingly for the symbols needed. */ 11161#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11162int fnord () __attribute__((visibility("default"))); 11163#endif 11164 11165int fnord () { return 42; } 11166int main () 11167{ 11168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11169 int status = $lt_dlunknown; 11170 11171 if (self) 11172 { 11173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11174 else 11175 { 11176 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11177 else puts (dlerror ()); 11178 } 11179 /* dlclose (self); */ 11180 } 11181 else 11182 puts (dlerror ()); 11183 11184 return status; 11185} 11186_LT_EOF 11187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11188 (eval $ac_link) 2>&5 11189 ac_status=$? 11190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11191 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11192 (./conftest; exit; ) >&5 2>/dev/null 11193 lt_status=$? 11194 case x$lt_status in 11195 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11196 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11197 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11198 esac 11199 else : 11200 # compilation failed 11201 lt_cv_dlopen_self=no 11202 fi 11203fi 11204rm -fr conftest* 11205 11206 11207fi 11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11209$as_echo "$lt_cv_dlopen_self" >&6; } 11210 11211 if test "x$lt_cv_dlopen_self" = xyes; then 11212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11214$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11215if ${lt_cv_dlopen_self_static+:} false; then : 11216 $as_echo_n "(cached) " >&6 11217else 11218 if test "$cross_compiling" = yes; then : 11219 lt_cv_dlopen_self_static=cross 11220else 11221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11222 lt_status=$lt_dlunknown 11223 cat > conftest.$ac_ext <<_LT_EOF 11224#line $LINENO "configure" 11225#include "confdefs.h" 11226 11227#if HAVE_DLFCN_H 11228#include <dlfcn.h> 11229#endif 11230 11231#include <stdio.h> 11232 11233#ifdef RTLD_GLOBAL 11234# define LT_DLGLOBAL RTLD_GLOBAL 11235#else 11236# ifdef DL_GLOBAL 11237# define LT_DLGLOBAL DL_GLOBAL 11238# else 11239# define LT_DLGLOBAL 0 11240# endif 11241#endif 11242 11243/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11244 find out it does not work in some platform. */ 11245#ifndef LT_DLLAZY_OR_NOW 11246# ifdef RTLD_LAZY 11247# define LT_DLLAZY_OR_NOW RTLD_LAZY 11248# else 11249# ifdef DL_LAZY 11250# define LT_DLLAZY_OR_NOW DL_LAZY 11251# else 11252# ifdef RTLD_NOW 11253# define LT_DLLAZY_OR_NOW RTLD_NOW 11254# else 11255# ifdef DL_NOW 11256# define LT_DLLAZY_OR_NOW DL_NOW 11257# else 11258# define LT_DLLAZY_OR_NOW 0 11259# endif 11260# endif 11261# endif 11262# endif 11263#endif 11264 11265/* When -fvisbility=hidden is used, assume the code has been annotated 11266 correspondingly for the symbols needed. */ 11267#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11268int fnord () __attribute__((visibility("default"))); 11269#endif 11270 11271int fnord () { return 42; } 11272int main () 11273{ 11274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11275 int status = $lt_dlunknown; 11276 11277 if (self) 11278 { 11279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11280 else 11281 { 11282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11283 else puts (dlerror ()); 11284 } 11285 /* dlclose (self); */ 11286 } 11287 else 11288 puts (dlerror ()); 11289 11290 return status; 11291} 11292_LT_EOF 11293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11294 (eval $ac_link) 2>&5 11295 ac_status=$? 11296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11297 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11298 (./conftest; exit; ) >&5 2>/dev/null 11299 lt_status=$? 11300 case x$lt_status in 11301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11304 esac 11305 else : 11306 # compilation failed 11307 lt_cv_dlopen_self_static=no 11308 fi 11309fi 11310rm -fr conftest* 11311 11312 11313fi 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11315$as_echo "$lt_cv_dlopen_self_static" >&6; } 11316 fi 11317 11318 CPPFLAGS="$save_CPPFLAGS" 11319 LDFLAGS="$save_LDFLAGS" 11320 LIBS="$save_LIBS" 11321 ;; 11322 esac 11323 11324 case $lt_cv_dlopen_self in 11325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11326 *) enable_dlopen_self=unknown ;; 11327 esac 11328 11329 case $lt_cv_dlopen_self_static in 11330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11331 *) enable_dlopen_self_static=unknown ;; 11332 esac 11333fi 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351striplib= 11352old_striplib= 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11354$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11355if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11357 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11359$as_echo "yes" >&6; } 11360else 11361# FIXME - insert some real tests, host_os isn't really good enough 11362 case $host_os in 11363 darwin*) 11364 if test -n "$STRIP" ; then 11365 striplib="$STRIP -x" 11366 old_striplib="$STRIP -S" 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11368$as_echo "yes" >&6; } 11369 else 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11371$as_echo "no" >&6; } 11372 fi 11373 ;; 11374 *) 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11376$as_echo "no" >&6; } 11377 ;; 11378 esac 11379fi 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 # Report which library types will actually be built 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11394$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11396$as_echo "$can_build_shared" >&6; } 11397 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11399$as_echo_n "checking whether to build shared libraries... " >&6; } 11400 test "$can_build_shared" = "no" && enable_shared=no 11401 11402 # On AIX, shared libraries and static libraries use the same namespace, and 11403 # are all built from PIC. 11404 case $host_os in 11405 aix3*) 11406 test "$enable_shared" = yes && enable_static=no 11407 if test -n "$RANLIB"; then 11408 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11409 postinstall_cmds='$RANLIB $lib' 11410 fi 11411 ;; 11412 11413 aix[4-9]*) 11414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11415 test "$enable_shared" = yes && enable_static=no 11416 fi 11417 ;; 11418 esac 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11420$as_echo "$enable_shared" >&6; } 11421 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11423$as_echo_n "checking whether to build static libraries... " >&6; } 11424 # Make sure either enable_shared or enable_static is yes. 11425 test "$enable_shared" = yes || enable_static=yes 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11427$as_echo "$enable_static" >&6; } 11428 11429 11430 11431 11432fi 11433ac_ext=c 11434ac_cpp='$CPP $CPPFLAGS' 11435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11437ac_compiler_gnu=$ac_cv_c_compiler_gnu 11438 11439CC="$lt_save_CC" 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 ac_config_commands="$ac_config_commands libtool" 11456 11457 11458 11459 11460# Only expand once: 11461 11462 11463 11464# Require xorg-macros minimum of 1.12 for DocBook external references 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11477$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11478if ${ac_cv_prog_cc_c99+:} false; then : 11479 $as_echo_n "(cached) " >&6 11480else 11481 ac_cv_prog_cc_c99=no 11482ac_save_CC=$CC 11483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11484/* end confdefs.h. */ 11485#include <stdarg.h> 11486#include <stdbool.h> 11487#include <stdlib.h> 11488#include <wchar.h> 11489#include <stdio.h> 11490 11491// Check varargs macros. These examples are taken from C99 6.10.3.5. 11492#define debug(...) fprintf (stderr, __VA_ARGS__) 11493#define showlist(...) puts (#__VA_ARGS__) 11494#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11495static void 11496test_varargs_macros (void) 11497{ 11498 int x = 1234; 11499 int y = 5678; 11500 debug ("Flag"); 11501 debug ("X = %d\n", x); 11502 showlist (The first, second, and third items.); 11503 report (x>y, "x is %d but y is %d", x, y); 11504} 11505 11506// Check long long types. 11507#define BIG64 18446744073709551615ull 11508#define BIG32 4294967295ul 11509#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11510#if !BIG_OK 11511 your preprocessor is broken; 11512#endif 11513#if BIG_OK 11514#else 11515 your preprocessor is broken; 11516#endif 11517static long long int bignum = -9223372036854775807LL; 11518static unsigned long long int ubignum = BIG64; 11519 11520struct incomplete_array 11521{ 11522 int datasize; 11523 double data[]; 11524}; 11525 11526struct named_init { 11527 int number; 11528 const wchar_t *name; 11529 double average; 11530}; 11531 11532typedef const char *ccp; 11533 11534static inline int 11535test_restrict (ccp restrict text) 11536{ 11537 // See if C++-style comments work. 11538 // Iterate through items via the restricted pointer. 11539 // Also check for declarations in for loops. 11540 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11541 continue; 11542 return 0; 11543} 11544 11545// Check varargs and va_copy. 11546static void 11547test_varargs (const char *format, ...) 11548{ 11549 va_list args; 11550 va_start (args, format); 11551 va_list args_copy; 11552 va_copy (args_copy, args); 11553 11554 const char *str; 11555 int number; 11556 float fnumber; 11557 11558 while (*format) 11559 { 11560 switch (*format++) 11561 { 11562 case 's': // string 11563 str = va_arg (args_copy, const char *); 11564 break; 11565 case 'd': // int 11566 number = va_arg (args_copy, int); 11567 break; 11568 case 'f': // float 11569 fnumber = va_arg (args_copy, double); 11570 break; 11571 default: 11572 break; 11573 } 11574 } 11575 va_end (args_copy); 11576 va_end (args); 11577} 11578 11579int 11580main () 11581{ 11582 11583 // Check bool. 11584 _Bool success = false; 11585 11586 // Check restrict. 11587 if (test_restrict ("String literal") == 0) 11588 success = true; 11589 char *restrict newvar = "Another string"; 11590 11591 // Check varargs. 11592 test_varargs ("s, d' f .", "string", 65, 34.234); 11593 test_varargs_macros (); 11594 11595 // Check flexible array members. 11596 struct incomplete_array *ia = 11597 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11598 ia->datasize = 10; 11599 for (int i = 0; i < ia->datasize; ++i) 11600 ia->data[i] = i * 1.234; 11601 11602 // Check named initializers. 11603 struct named_init ni = { 11604 .number = 34, 11605 .name = L"Test wide string", 11606 .average = 543.34343, 11607 }; 11608 11609 ni.number = 58; 11610 11611 int dynamic_array[ni.number]; 11612 dynamic_array[ni.number - 1] = 543; 11613 11614 // work around unused variable warnings 11615 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11616 || dynamic_array[ni.number - 1] != 543); 11617 11618 ; 11619 return 0; 11620} 11621_ACEOF 11622for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11623do 11624 CC="$ac_save_CC $ac_arg" 11625 if ac_fn_c_try_compile "$LINENO"; then : 11626 ac_cv_prog_cc_c99=$ac_arg 11627fi 11628rm -f core conftest.err conftest.$ac_objext 11629 test "x$ac_cv_prog_cc_c99" != "xno" && break 11630done 11631rm -f conftest.$ac_ext 11632CC=$ac_save_CC 11633 11634fi 11635# AC_CACHE_VAL 11636case "x$ac_cv_prog_cc_c99" in 11637 x) 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11639$as_echo "none needed" >&6; } ;; 11640 xno) 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11642$as_echo "unsupported" >&6; } ;; 11643 *) 11644 CC="$CC $ac_cv_prog_cc_c99" 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11646$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11647esac 11648if test "x$ac_cv_prog_cc_c99" != xno; then : 11649 11650fi 11651 11652 11653 11654 11655 11656 11657ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11658if test "x$ac_cv_have_decl___clang__" = xyes; then : 11659 CLANGCC="yes" 11660else 11661 CLANGCC="no" 11662fi 11663 11664ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11665if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11666 INTELCC="yes" 11667else 11668 INTELCC="no" 11669fi 11670 11671ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11672if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11673 SUNCC="yes" 11674else 11675 SUNCC="no" 11676fi 11677 11678 11679 11680 11681 11682 11683 11684 11685if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11686 if test -n "$ac_tool_prefix"; then 11687 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11688set dummy ${ac_tool_prefix}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_PKG_CONFIG+:} false; then : 11692 $as_echo_n "(cached) " >&6 11693else 11694 case $PKG_CONFIG in 11695 [\\/]* | ?:[\\/]*) 11696 ac_cv_path_PKG_CONFIG="$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_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 11717PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11718if test -n "$PKG_CONFIG"; then 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11720$as_echo "$PKG_CONFIG" >&6; } 11721else 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11723$as_echo "no" >&6; } 11724fi 11725 11726 11727fi 11728if test -z "$ac_cv_path_PKG_CONFIG"; then 11729 ac_pt_PKG_CONFIG=$PKG_CONFIG 11730 # Extract the first word of "pkg-config", so it can be a program name with args. 11731set dummy pkg-config; ac_word=$2 11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11733$as_echo_n "checking for $ac_word... " >&6; } 11734if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11735 $as_echo_n "(cached) " >&6 11736else 11737 case $ac_pt_PKG_CONFIG in 11738 [\\/]* | ?:[\\/]*) 11739 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11740 ;; 11741 *) 11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11743for as_dir in $PATH 11744do 11745 IFS=$as_save_IFS 11746 test -z "$as_dir" && as_dir=. 11747 for ac_exec_ext in '' $ac_executable_extensions; do 11748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11749 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11751 break 2 11752 fi 11753done 11754 done 11755IFS=$as_save_IFS 11756 11757 ;; 11758esac 11759fi 11760ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11761if test -n "$ac_pt_PKG_CONFIG"; then 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11763$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11764else 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11766$as_echo "no" >&6; } 11767fi 11768 11769 if test "x$ac_pt_PKG_CONFIG" = x; then 11770 PKG_CONFIG="" 11771 else 11772 case $cross_compiling:$ac_tool_warned in 11773yes:) 11774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11776ac_tool_warned=yes ;; 11777esac 11778 PKG_CONFIG=$ac_pt_PKG_CONFIG 11779 fi 11780else 11781 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11782fi 11783 11784fi 11785if test -n "$PKG_CONFIG"; then 11786 _pkg_min_version=0.9.0 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11788$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11789 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11791$as_echo "yes" >&6; } 11792 else 11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11794$as_echo "no" >&6; } 11795 PKG_CONFIG="" 11796 fi 11797fi 11798 11799 11800 11801 11802 11803# Check whether --enable-selective-werror was given. 11804if test "${enable_selective_werror+set}" = set; then : 11805 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 11806else 11807 SELECTIVE_WERROR=yes 11808fi 11809 11810 11811 11812 11813 11814# -v is too short to test reliably with XORG_TESTSET_CFLAG 11815if test "x$SUNCC" = "xyes"; then 11816 BASE_CFLAGS="-v" 11817else 11818 BASE_CFLAGS="" 11819fi 11820 11821# This chunk of warnings were those that existed in the legacy CWARNFLAGS 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835xorg_testset_save_CFLAGS="$CFLAGS" 11836 11837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11842 $as_echo_n "(cached) " >&6 11843else 11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11845/* end confdefs.h. */ 11846int i; 11847_ACEOF 11848if ac_fn_c_try_compile "$LINENO"; then : 11849 xorg_cv_cc_flag_unknown_warning_option=yes 11850else 11851 xorg_cv_cc_flag_unknown_warning_option=no 11852fi 11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11854fi 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11858 CFLAGS="$xorg_testset_save_CFLAGS" 11859fi 11860 11861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11864 fi 11865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11869 $as_echo_n "(cached) " >&6 11870else 11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11872/* end confdefs.h. */ 11873int i; 11874_ACEOF 11875if ac_fn_c_try_compile "$LINENO"; then : 11876 xorg_cv_cc_flag_unused_command_line_argument=yes 11877else 11878 xorg_cv_cc_flag_unused_command_line_argument=no 11879fi 11880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11881fi 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11885 CFLAGS="$xorg_testset_save_CFLAGS" 11886fi 11887 11888found="no" 11889 11890 if test $found = "no" ; then 11891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11893 fi 11894 11895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11897 fi 11898 11899 CFLAGS="$CFLAGS -Wall" 11900 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 11902$as_echo_n "checking if $CC supports -Wall... " >&6; } 11903 cacheid=xorg_cv_cc_flag__Wall 11904 if eval \${$cacheid+:} false; then : 11905 $as_echo_n "(cached) " >&6 11906else 11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11908/* end confdefs.h. */ 11909int i; 11910int 11911main () 11912{ 11913 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918if ac_fn_c_try_link "$LINENO"; then : 11919 eval $cacheid=yes 11920else 11921 eval $cacheid=no 11922fi 11923rm -f core conftest.err conftest.$ac_objext \ 11924 conftest$ac_exeext conftest.$ac_ext 11925fi 11926 11927 11928 CFLAGS="$xorg_testset_save_CFLAGS" 11929 11930 eval supported=\$$cacheid 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11932$as_echo "$supported" >&6; } 11933 if test "$supported" = "yes" ; then 11934 BASE_CFLAGS="$BASE_CFLAGS -Wall" 11935 found="yes" 11936 fi 11937 fi 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953xorg_testset_save_CFLAGS="$CFLAGS" 11954 11955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11960 $as_echo_n "(cached) " >&6 11961else 11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11963/* end confdefs.h. */ 11964int i; 11965_ACEOF 11966if ac_fn_c_try_compile "$LINENO"; then : 11967 xorg_cv_cc_flag_unknown_warning_option=yes 11968else 11969 xorg_cv_cc_flag_unknown_warning_option=no 11970fi 11971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11972fi 11973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11976 CFLAGS="$xorg_testset_save_CFLAGS" 11977fi 11978 11979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11982 fi 11983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11987 $as_echo_n "(cached) " >&6 11988else 11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11990/* end confdefs.h. */ 11991int i; 11992_ACEOF 11993if ac_fn_c_try_compile "$LINENO"; then : 11994 xorg_cv_cc_flag_unused_command_line_argument=yes 11995else 11996 xorg_cv_cc_flag_unused_command_line_argument=no 11997fi 11998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11999fi 12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12003 CFLAGS="$xorg_testset_save_CFLAGS" 12004fi 12005 12006found="no" 12007 12008 if test $found = "no" ; then 12009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12011 fi 12012 12013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12015 fi 12016 12017 CFLAGS="$CFLAGS -Wpointer-arith" 12018 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12020$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12021 cacheid=xorg_cv_cc_flag__Wpointer_arith 12022 if eval \${$cacheid+:} false; then : 12023 $as_echo_n "(cached) " >&6 12024else 12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12026/* end confdefs.h. */ 12027int i; 12028int 12029main () 12030{ 12031 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036if ac_fn_c_try_link "$LINENO"; then : 12037 eval $cacheid=yes 12038else 12039 eval $cacheid=no 12040fi 12041rm -f core conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043fi 12044 12045 12046 CFLAGS="$xorg_testset_save_CFLAGS" 12047 12048 eval supported=\$$cacheid 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12050$as_echo "$supported" >&6; } 12051 if test "$supported" = "yes" ; then 12052 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12053 found="yes" 12054 fi 12055 fi 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071xorg_testset_save_CFLAGS="$CFLAGS" 12072 12073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12078 $as_echo_n "(cached) " >&6 12079else 12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12081/* end confdefs.h. */ 12082int i; 12083_ACEOF 12084if ac_fn_c_try_compile "$LINENO"; then : 12085 xorg_cv_cc_flag_unknown_warning_option=yes 12086else 12087 xorg_cv_cc_flag_unknown_warning_option=no 12088fi 12089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12090fi 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12094 CFLAGS="$xorg_testset_save_CFLAGS" 12095fi 12096 12097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12100 fi 12101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12105 $as_echo_n "(cached) " >&6 12106else 12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12108/* end confdefs.h. */ 12109int i; 12110_ACEOF 12111if ac_fn_c_try_compile "$LINENO"; then : 12112 xorg_cv_cc_flag_unused_command_line_argument=yes 12113else 12114 xorg_cv_cc_flag_unused_command_line_argument=no 12115fi 12116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12117fi 12118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12121 CFLAGS="$xorg_testset_save_CFLAGS" 12122fi 12123 12124found="no" 12125 12126 if test $found = "no" ; then 12127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12129 fi 12130 12131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12133 fi 12134 12135 CFLAGS="$CFLAGS -Wmissing-declarations" 12136 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12138$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12139 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12140 if eval \${$cacheid+:} false; then : 12141 $as_echo_n "(cached) " >&6 12142else 12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12144/* end confdefs.h. */ 12145int i; 12146int 12147main () 12148{ 12149 12150 ; 12151 return 0; 12152} 12153_ACEOF 12154if ac_fn_c_try_link "$LINENO"; then : 12155 eval $cacheid=yes 12156else 12157 eval $cacheid=no 12158fi 12159rm -f core conftest.err conftest.$ac_objext \ 12160 conftest$ac_exeext conftest.$ac_ext 12161fi 12162 12163 12164 CFLAGS="$xorg_testset_save_CFLAGS" 12165 12166 eval supported=\$$cacheid 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12168$as_echo "$supported" >&6; } 12169 if test "$supported" = "yes" ; then 12170 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12171 found="yes" 12172 fi 12173 fi 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189xorg_testset_save_CFLAGS="$CFLAGS" 12190 12191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12196 $as_echo_n "(cached) " >&6 12197else 12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12199/* end confdefs.h. */ 12200int i; 12201_ACEOF 12202if ac_fn_c_try_compile "$LINENO"; then : 12203 xorg_cv_cc_flag_unknown_warning_option=yes 12204else 12205 xorg_cv_cc_flag_unknown_warning_option=no 12206fi 12207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12208fi 12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12212 CFLAGS="$xorg_testset_save_CFLAGS" 12213fi 12214 12215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12218 fi 12219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12223 $as_echo_n "(cached) " >&6 12224else 12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12226/* end confdefs.h. */ 12227int i; 12228_ACEOF 12229if ac_fn_c_try_compile "$LINENO"; then : 12230 xorg_cv_cc_flag_unused_command_line_argument=yes 12231else 12232 xorg_cv_cc_flag_unused_command_line_argument=no 12233fi 12234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12235fi 12236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12239 CFLAGS="$xorg_testset_save_CFLAGS" 12240fi 12241 12242found="no" 12243 12244 if test $found = "no" ; then 12245 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12247 fi 12248 12249 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12251 fi 12252 12253 CFLAGS="$CFLAGS -Wformat=2" 12254 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12256$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12257 cacheid=xorg_cv_cc_flag__Wformat_2 12258 if eval \${$cacheid+:} false; then : 12259 $as_echo_n "(cached) " >&6 12260else 12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12262/* end confdefs.h. */ 12263int i; 12264int 12265main () 12266{ 12267 12268 ; 12269 return 0; 12270} 12271_ACEOF 12272if ac_fn_c_try_link "$LINENO"; then : 12273 eval $cacheid=yes 12274else 12275 eval $cacheid=no 12276fi 12277rm -f core conftest.err conftest.$ac_objext \ 12278 conftest$ac_exeext conftest.$ac_ext 12279fi 12280 12281 12282 CFLAGS="$xorg_testset_save_CFLAGS" 12283 12284 eval supported=\$$cacheid 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12286$as_echo "$supported" >&6; } 12287 if test "$supported" = "yes" ; then 12288 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12289 found="yes" 12290 fi 12291 fi 12292 12293 if test $found = "no" ; then 12294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12296 fi 12297 12298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12300 fi 12301 12302 CFLAGS="$CFLAGS -Wformat" 12303 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12305$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12306 cacheid=xorg_cv_cc_flag__Wformat 12307 if eval \${$cacheid+:} false; then : 12308 $as_echo_n "(cached) " >&6 12309else 12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12311/* end confdefs.h. */ 12312int i; 12313int 12314main () 12315{ 12316 12317 ; 12318 return 0; 12319} 12320_ACEOF 12321if ac_fn_c_try_link "$LINENO"; then : 12322 eval $cacheid=yes 12323else 12324 eval $cacheid=no 12325fi 12326rm -f core conftest.err conftest.$ac_objext \ 12327 conftest$ac_exeext conftest.$ac_ext 12328fi 12329 12330 12331 CFLAGS="$xorg_testset_save_CFLAGS" 12332 12333 eval supported=\$$cacheid 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12335$as_echo "$supported" >&6; } 12336 if test "$supported" = "yes" ; then 12337 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12338 found="yes" 12339 fi 12340 fi 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358xorg_testset_save_CFLAGS="$CFLAGS" 12359 12360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12365 $as_echo_n "(cached) " >&6 12366else 12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12368/* end confdefs.h. */ 12369int i; 12370_ACEOF 12371if ac_fn_c_try_compile "$LINENO"; then : 12372 xorg_cv_cc_flag_unknown_warning_option=yes 12373else 12374 xorg_cv_cc_flag_unknown_warning_option=no 12375fi 12376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12377fi 12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12381 CFLAGS="$xorg_testset_save_CFLAGS" 12382fi 12383 12384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12387 fi 12388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12395/* end confdefs.h. */ 12396int i; 12397_ACEOF 12398if ac_fn_c_try_compile "$LINENO"; then : 12399 xorg_cv_cc_flag_unused_command_line_argument=yes 12400else 12401 xorg_cv_cc_flag_unused_command_line_argument=no 12402fi 12403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12404fi 12405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12408 CFLAGS="$xorg_testset_save_CFLAGS" 12409fi 12410 12411found="no" 12412 12413 if test $found = "no" ; then 12414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12416 fi 12417 12418 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12420 fi 12421 12422 CFLAGS="$CFLAGS -Wstrict-prototypes" 12423 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12425$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12426 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12427 if eval \${$cacheid+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12431/* end confdefs.h. */ 12432int i; 12433int 12434main () 12435{ 12436 12437 ; 12438 return 0; 12439} 12440_ACEOF 12441if ac_fn_c_try_link "$LINENO"; then : 12442 eval $cacheid=yes 12443else 12444 eval $cacheid=no 12445fi 12446rm -f core conftest.err conftest.$ac_objext \ 12447 conftest$ac_exeext conftest.$ac_ext 12448fi 12449 12450 12451 CFLAGS="$xorg_testset_save_CFLAGS" 12452 12453 eval supported=\$$cacheid 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12455$as_echo "$supported" >&6; } 12456 if test "$supported" = "yes" ; then 12457 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12458 found="yes" 12459 fi 12460 fi 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476xorg_testset_save_CFLAGS="$CFLAGS" 12477 12478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12481$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12482if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12483 $as_echo_n "(cached) " >&6 12484else 12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12486/* end confdefs.h. */ 12487int i; 12488_ACEOF 12489if ac_fn_c_try_compile "$LINENO"; then : 12490 xorg_cv_cc_flag_unknown_warning_option=yes 12491else 12492 xorg_cv_cc_flag_unknown_warning_option=no 12493fi 12494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12495fi 12496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12497$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12499 CFLAGS="$xorg_testset_save_CFLAGS" 12500fi 12501 12502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12505 fi 12506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12508$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12509if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513/* end confdefs.h. */ 12514int i; 12515_ACEOF 12516if ac_fn_c_try_compile "$LINENO"; then : 12517 xorg_cv_cc_flag_unused_command_line_argument=yes 12518else 12519 xorg_cv_cc_flag_unused_command_line_argument=no 12520fi 12521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12522fi 12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12524$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12526 CFLAGS="$xorg_testset_save_CFLAGS" 12527fi 12528 12529found="no" 12530 12531 if test $found = "no" ; then 12532 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12534 fi 12535 12536 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12538 fi 12539 12540 CFLAGS="$CFLAGS -Wmissing-prototypes" 12541 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12543$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12544 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12545 if eval \${$cacheid+:} false; then : 12546 $as_echo_n "(cached) " >&6 12547else 12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12549/* end confdefs.h. */ 12550int i; 12551int 12552main () 12553{ 12554 12555 ; 12556 return 0; 12557} 12558_ACEOF 12559if ac_fn_c_try_link "$LINENO"; then : 12560 eval $cacheid=yes 12561else 12562 eval $cacheid=no 12563fi 12564rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext conftest.$ac_ext 12566fi 12567 12568 12569 CFLAGS="$xorg_testset_save_CFLAGS" 12570 12571 eval supported=\$$cacheid 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12573$as_echo "$supported" >&6; } 12574 if test "$supported" = "yes" ; then 12575 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12576 found="yes" 12577 fi 12578 fi 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594xorg_testset_save_CFLAGS="$CFLAGS" 12595 12596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12599$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12600if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12601 $as_echo_n "(cached) " >&6 12602else 12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604/* end confdefs.h. */ 12605int i; 12606_ACEOF 12607if ac_fn_c_try_compile "$LINENO"; then : 12608 xorg_cv_cc_flag_unknown_warning_option=yes 12609else 12610 xorg_cv_cc_flag_unknown_warning_option=no 12611fi 12612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12613fi 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12615$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12617 CFLAGS="$xorg_testset_save_CFLAGS" 12618fi 12619 12620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12623 fi 12624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12626$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12627if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12628 $as_echo_n "(cached) " >&6 12629else 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632int i; 12633_ACEOF 12634if ac_fn_c_try_compile "$LINENO"; then : 12635 xorg_cv_cc_flag_unused_command_line_argument=yes 12636else 12637 xorg_cv_cc_flag_unused_command_line_argument=no 12638fi 12639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12640fi 12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12642$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12644 CFLAGS="$xorg_testset_save_CFLAGS" 12645fi 12646 12647found="no" 12648 12649 if test $found = "no" ; then 12650 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12652 fi 12653 12654 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12656 fi 12657 12658 CFLAGS="$CFLAGS -Wnested-externs" 12659 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12661$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12662 cacheid=xorg_cv_cc_flag__Wnested_externs 12663 if eval \${$cacheid+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12667/* end confdefs.h. */ 12668int i; 12669int 12670main () 12671{ 12672 12673 ; 12674 return 0; 12675} 12676_ACEOF 12677if ac_fn_c_try_link "$LINENO"; then : 12678 eval $cacheid=yes 12679else 12680 eval $cacheid=no 12681fi 12682rm -f core conftest.err conftest.$ac_objext \ 12683 conftest$ac_exeext conftest.$ac_ext 12684fi 12685 12686 12687 CFLAGS="$xorg_testset_save_CFLAGS" 12688 12689 eval supported=\$$cacheid 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12691$as_echo "$supported" >&6; } 12692 if test "$supported" = "yes" ; then 12693 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12694 found="yes" 12695 fi 12696 fi 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712xorg_testset_save_CFLAGS="$CFLAGS" 12713 12714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12717$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12718if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12719 $as_echo_n "(cached) " >&6 12720else 12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12722/* end confdefs.h. */ 12723int i; 12724_ACEOF 12725if ac_fn_c_try_compile "$LINENO"; then : 12726 xorg_cv_cc_flag_unknown_warning_option=yes 12727else 12728 xorg_cv_cc_flag_unknown_warning_option=no 12729fi 12730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12731fi 12732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12733$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12735 CFLAGS="$xorg_testset_save_CFLAGS" 12736fi 12737 12738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12741 fi 12742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12745if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12749/* end confdefs.h. */ 12750int i; 12751_ACEOF 12752if ac_fn_c_try_compile "$LINENO"; then : 12753 xorg_cv_cc_flag_unused_command_line_argument=yes 12754else 12755 xorg_cv_cc_flag_unused_command_line_argument=no 12756fi 12757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12758fi 12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12760$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12762 CFLAGS="$xorg_testset_save_CFLAGS" 12763fi 12764 12765found="no" 12766 12767 if test $found = "no" ; then 12768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12770 fi 12771 12772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12774 fi 12775 12776 CFLAGS="$CFLAGS -Wbad-function-cast" 12777 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12779$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12780 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12781 if eval \${$cacheid+:} false; then : 12782 $as_echo_n "(cached) " >&6 12783else 12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12785/* end confdefs.h. */ 12786int i; 12787int 12788main () 12789{ 12790 12791 ; 12792 return 0; 12793} 12794_ACEOF 12795if ac_fn_c_try_link "$LINENO"; then : 12796 eval $cacheid=yes 12797else 12798 eval $cacheid=no 12799fi 12800rm -f core conftest.err conftest.$ac_objext \ 12801 conftest$ac_exeext conftest.$ac_ext 12802fi 12803 12804 12805 CFLAGS="$xorg_testset_save_CFLAGS" 12806 12807 eval supported=\$$cacheid 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12809$as_echo "$supported" >&6; } 12810 if test "$supported" = "yes" ; then 12811 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 12812 found="yes" 12813 fi 12814 fi 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830xorg_testset_save_CFLAGS="$CFLAGS" 12831 12832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838else 12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840/* end confdefs.h. */ 12841int i; 12842_ACEOF 12843if ac_fn_c_try_compile "$LINENO"; then : 12844 xorg_cv_cc_flag_unknown_warning_option=yes 12845else 12846 xorg_cv_cc_flag_unknown_warning_option=no 12847fi 12848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12849fi 12850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12853 CFLAGS="$xorg_testset_save_CFLAGS" 12854fi 12855 12856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12859 fi 12860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867/* end confdefs.h. */ 12868int i; 12869_ACEOF 12870if ac_fn_c_try_compile "$LINENO"; then : 12871 xorg_cv_cc_flag_unused_command_line_argument=yes 12872else 12873 xorg_cv_cc_flag_unused_command_line_argument=no 12874fi 12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12876fi 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12880 CFLAGS="$xorg_testset_save_CFLAGS" 12881fi 12882 12883found="no" 12884 12885 if test $found = "no" ; then 12886 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 12887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12888 fi 12889 12890 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 12891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12892 fi 12893 12894 CFLAGS="$CFLAGS -Wold-style-definition" 12895 12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 12897$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 12898 cacheid=xorg_cv_cc_flag__Wold_style_definition 12899 if eval \${$cacheid+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901else 12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12903/* end confdefs.h. */ 12904int i; 12905int 12906main () 12907{ 12908 12909 ; 12910 return 0; 12911} 12912_ACEOF 12913if ac_fn_c_try_link "$LINENO"; then : 12914 eval $cacheid=yes 12915else 12916 eval $cacheid=no 12917fi 12918rm -f core conftest.err conftest.$ac_objext \ 12919 conftest$ac_exeext conftest.$ac_ext 12920fi 12921 12922 12923 CFLAGS="$xorg_testset_save_CFLAGS" 12924 12925 eval supported=\$$cacheid 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12927$as_echo "$supported" >&6; } 12928 if test "$supported" = "yes" ; then 12929 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 12930 found="yes" 12931 fi 12932 fi 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948xorg_testset_save_CFLAGS="$CFLAGS" 12949 12950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12955 $as_echo_n "(cached) " >&6 12956else 12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12958/* end confdefs.h. */ 12959int i; 12960_ACEOF 12961if ac_fn_c_try_compile "$LINENO"; then : 12962 xorg_cv_cc_flag_unknown_warning_option=yes 12963else 12964 xorg_cv_cc_flag_unknown_warning_option=no 12965fi 12966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12967fi 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12971 CFLAGS="$xorg_testset_save_CFLAGS" 12972fi 12973 12974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12977 fi 12978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12982 $as_echo_n "(cached) " >&6 12983else 12984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12985/* end confdefs.h. */ 12986int i; 12987_ACEOF 12988if ac_fn_c_try_compile "$LINENO"; then : 12989 xorg_cv_cc_flag_unused_command_line_argument=yes 12990else 12991 xorg_cv_cc_flag_unused_command_line_argument=no 12992fi 12993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12994fi 12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12998 CFLAGS="$xorg_testset_save_CFLAGS" 12999fi 13000 13001found="no" 13002 13003 if test $found = "no" ; then 13004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13006 fi 13007 13008 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13010 fi 13011 13012 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13013 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13015$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13016 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13017 if eval \${$cacheid+:} false; then : 13018 $as_echo_n "(cached) " >&6 13019else 13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021/* end confdefs.h. */ 13022int i; 13023int 13024main () 13025{ 13026 13027 ; 13028 return 0; 13029} 13030_ACEOF 13031if ac_fn_c_try_link "$LINENO"; then : 13032 eval $cacheid=yes 13033else 13034 eval $cacheid=no 13035fi 13036rm -f core conftest.err conftest.$ac_objext \ 13037 conftest$ac_exeext conftest.$ac_ext 13038fi 13039 13040 13041 CFLAGS="$xorg_testset_save_CFLAGS" 13042 13043 eval supported=\$$cacheid 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13045$as_echo "$supported" >&6; } 13046 if test "$supported" = "yes" ; then 13047 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13048 found="yes" 13049 fi 13050 fi 13051 13052 13053 13054 13055 13056# This chunk adds additional warnings that could catch undesired effects. 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070xorg_testset_save_CFLAGS="$CFLAGS" 13071 13072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13075$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13076if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13077 $as_echo_n "(cached) " >&6 13078else 13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13080/* end confdefs.h. */ 13081int i; 13082_ACEOF 13083if ac_fn_c_try_compile "$LINENO"; then : 13084 xorg_cv_cc_flag_unknown_warning_option=yes 13085else 13086 xorg_cv_cc_flag_unknown_warning_option=no 13087fi 13088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13089fi 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13091$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13093 CFLAGS="$xorg_testset_save_CFLAGS" 13094fi 13095 13096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13099 fi 13100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13102$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13103if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13104 $as_echo_n "(cached) " >&6 13105else 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13107/* end confdefs.h. */ 13108int i; 13109_ACEOF 13110if ac_fn_c_try_compile "$LINENO"; then : 13111 xorg_cv_cc_flag_unused_command_line_argument=yes 13112else 13113 xorg_cv_cc_flag_unused_command_line_argument=no 13114fi 13115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13116fi 13117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13118$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13120 CFLAGS="$xorg_testset_save_CFLAGS" 13121fi 13122 13123found="no" 13124 13125 if test $found = "no" ; then 13126 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13128 fi 13129 13130 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13132 fi 13133 13134 CFLAGS="$CFLAGS -Wunused" 13135 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13137$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13138 cacheid=xorg_cv_cc_flag__Wunused 13139 if eval \${$cacheid+:} false; then : 13140 $as_echo_n "(cached) " >&6 13141else 13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13143/* end confdefs.h. */ 13144int i; 13145int 13146main () 13147{ 13148 13149 ; 13150 return 0; 13151} 13152_ACEOF 13153if ac_fn_c_try_link "$LINENO"; then : 13154 eval $cacheid=yes 13155else 13156 eval $cacheid=no 13157fi 13158rm -f core conftest.err conftest.$ac_objext \ 13159 conftest$ac_exeext conftest.$ac_ext 13160fi 13161 13162 13163 CFLAGS="$xorg_testset_save_CFLAGS" 13164 13165 eval supported=\$$cacheid 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13167$as_echo "$supported" >&6; } 13168 if test "$supported" = "yes" ; then 13169 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13170 found="yes" 13171 fi 13172 fi 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188xorg_testset_save_CFLAGS="$CFLAGS" 13189 13190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13193$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13194if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13195 $as_echo_n "(cached) " >&6 13196else 13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13198/* end confdefs.h. */ 13199int i; 13200_ACEOF 13201if ac_fn_c_try_compile "$LINENO"; then : 13202 xorg_cv_cc_flag_unknown_warning_option=yes 13203else 13204 xorg_cv_cc_flag_unknown_warning_option=no 13205fi 13206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13207fi 13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13209$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13211 CFLAGS="$xorg_testset_save_CFLAGS" 13212fi 13213 13214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13217 fi 13218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13220$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13221if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13225/* end confdefs.h. */ 13226int i; 13227_ACEOF 13228if ac_fn_c_try_compile "$LINENO"; then : 13229 xorg_cv_cc_flag_unused_command_line_argument=yes 13230else 13231 xorg_cv_cc_flag_unused_command_line_argument=no 13232fi 13233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13234fi 13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13236$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13238 CFLAGS="$xorg_testset_save_CFLAGS" 13239fi 13240 13241found="no" 13242 13243 if test $found = "no" ; then 13244 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13246 fi 13247 13248 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13250 fi 13251 13252 CFLAGS="$CFLAGS -Wuninitialized" 13253 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13255$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13256 cacheid=xorg_cv_cc_flag__Wuninitialized 13257 if eval \${$cacheid+:} false; then : 13258 $as_echo_n "(cached) " >&6 13259else 13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261/* end confdefs.h. */ 13262int i; 13263int 13264main () 13265{ 13266 13267 ; 13268 return 0; 13269} 13270_ACEOF 13271if ac_fn_c_try_link "$LINENO"; then : 13272 eval $cacheid=yes 13273else 13274 eval $cacheid=no 13275fi 13276rm -f core conftest.err conftest.$ac_objext \ 13277 conftest$ac_exeext conftest.$ac_ext 13278fi 13279 13280 13281 CFLAGS="$xorg_testset_save_CFLAGS" 13282 13283 eval supported=\$$cacheid 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13285$as_echo "$supported" >&6; } 13286 if test "$supported" = "yes" ; then 13287 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13288 found="yes" 13289 fi 13290 fi 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306xorg_testset_save_CFLAGS="$CFLAGS" 13307 13308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13313 $as_echo_n "(cached) " >&6 13314else 13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13316/* end confdefs.h. */ 13317int i; 13318_ACEOF 13319if ac_fn_c_try_compile "$LINENO"; then : 13320 xorg_cv_cc_flag_unknown_warning_option=yes 13321else 13322 xorg_cv_cc_flag_unknown_warning_option=no 13323fi 13324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13325fi 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13329 CFLAGS="$xorg_testset_save_CFLAGS" 13330fi 13331 13332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13335 fi 13336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341else 13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13343/* end confdefs.h. */ 13344int i; 13345_ACEOF 13346if ac_fn_c_try_compile "$LINENO"; then : 13347 xorg_cv_cc_flag_unused_command_line_argument=yes 13348else 13349 xorg_cv_cc_flag_unused_command_line_argument=no 13350fi 13351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13352fi 13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13356 CFLAGS="$xorg_testset_save_CFLAGS" 13357fi 13358 13359found="no" 13360 13361 if test $found = "no" ; then 13362 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13364 fi 13365 13366 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13368 fi 13369 13370 CFLAGS="$CFLAGS -Wshadow" 13371 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13373$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13374 cacheid=xorg_cv_cc_flag__Wshadow 13375 if eval \${$cacheid+:} false; then : 13376 $as_echo_n "(cached) " >&6 13377else 13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13379/* end confdefs.h. */ 13380int i; 13381int 13382main () 13383{ 13384 13385 ; 13386 return 0; 13387} 13388_ACEOF 13389if ac_fn_c_try_link "$LINENO"; then : 13390 eval $cacheid=yes 13391else 13392 eval $cacheid=no 13393fi 13394rm -f core conftest.err conftest.$ac_objext \ 13395 conftest$ac_exeext conftest.$ac_ext 13396fi 13397 13398 13399 CFLAGS="$xorg_testset_save_CFLAGS" 13400 13401 eval supported=\$$cacheid 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13403$as_echo "$supported" >&6; } 13404 if test "$supported" = "yes" ; then 13405 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13406 found="yes" 13407 fi 13408 fi 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424xorg_testset_save_CFLAGS="$CFLAGS" 13425 13426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13429$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13430if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13431 $as_echo_n "(cached) " >&6 13432else 13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13434/* end confdefs.h. */ 13435int i; 13436_ACEOF 13437if ac_fn_c_try_compile "$LINENO"; then : 13438 xorg_cv_cc_flag_unknown_warning_option=yes 13439else 13440 xorg_cv_cc_flag_unknown_warning_option=no 13441fi 13442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13443fi 13444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13445$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13447 CFLAGS="$xorg_testset_save_CFLAGS" 13448fi 13449 13450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13453 fi 13454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13456$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13457if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13458 $as_echo_n "(cached) " >&6 13459else 13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13461/* end confdefs.h. */ 13462int i; 13463_ACEOF 13464if ac_fn_c_try_compile "$LINENO"; then : 13465 xorg_cv_cc_flag_unused_command_line_argument=yes 13466else 13467 xorg_cv_cc_flag_unused_command_line_argument=no 13468fi 13469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13470fi 13471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13472$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13474 CFLAGS="$xorg_testset_save_CFLAGS" 13475fi 13476 13477found="no" 13478 13479 if test $found = "no" ; then 13480 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13482 fi 13483 13484 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13486 fi 13487 13488 CFLAGS="$CFLAGS -Wcast-qual" 13489 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 13491$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 13492 cacheid=xorg_cv_cc_flag__Wcast_qual 13493 if eval \${$cacheid+:} false; then : 13494 $as_echo_n "(cached) " >&6 13495else 13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13497/* end confdefs.h. */ 13498int i; 13499int 13500main () 13501{ 13502 13503 ; 13504 return 0; 13505} 13506_ACEOF 13507if ac_fn_c_try_link "$LINENO"; then : 13508 eval $cacheid=yes 13509else 13510 eval $cacheid=no 13511fi 13512rm -f core conftest.err conftest.$ac_objext \ 13513 conftest$ac_exeext conftest.$ac_ext 13514fi 13515 13516 13517 CFLAGS="$xorg_testset_save_CFLAGS" 13518 13519 eval supported=\$$cacheid 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13521$as_echo "$supported" >&6; } 13522 if test "$supported" = "yes" ; then 13523 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 13524 found="yes" 13525 fi 13526 fi 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542xorg_testset_save_CFLAGS="$CFLAGS" 13543 13544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13549 $as_echo_n "(cached) " >&6 13550else 13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13552/* end confdefs.h. */ 13553int i; 13554_ACEOF 13555if ac_fn_c_try_compile "$LINENO"; then : 13556 xorg_cv_cc_flag_unknown_warning_option=yes 13557else 13558 xorg_cv_cc_flag_unknown_warning_option=no 13559fi 13560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13561fi 13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13565 CFLAGS="$xorg_testset_save_CFLAGS" 13566fi 13567 13568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13571 fi 13572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13576 $as_echo_n "(cached) " >&6 13577else 13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13579/* end confdefs.h. */ 13580int i; 13581_ACEOF 13582if ac_fn_c_try_compile "$LINENO"; then : 13583 xorg_cv_cc_flag_unused_command_line_argument=yes 13584else 13585 xorg_cv_cc_flag_unused_command_line_argument=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13588fi 13589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13592 CFLAGS="$xorg_testset_save_CFLAGS" 13593fi 13594 13595found="no" 13596 13597 if test $found = "no" ; then 13598 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13600 fi 13601 13602 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13604 fi 13605 13606 CFLAGS="$CFLAGS -Wmissing-noreturn" 13607 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13609$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13610 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13611 if eval \${$cacheid+:} false; then : 13612 $as_echo_n "(cached) " >&6 13613else 13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13615/* end confdefs.h. */ 13616int i; 13617int 13618main () 13619{ 13620 13621 ; 13622 return 0; 13623} 13624_ACEOF 13625if ac_fn_c_try_link "$LINENO"; then : 13626 eval $cacheid=yes 13627else 13628 eval $cacheid=no 13629fi 13630rm -f core conftest.err conftest.$ac_objext \ 13631 conftest$ac_exeext conftest.$ac_ext 13632fi 13633 13634 13635 CFLAGS="$xorg_testset_save_CFLAGS" 13636 13637 eval supported=\$$cacheid 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13639$as_echo "$supported" >&6; } 13640 if test "$supported" = "yes" ; then 13641 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13642 found="yes" 13643 fi 13644 fi 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660xorg_testset_save_CFLAGS="$CFLAGS" 13661 13662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13667 $as_echo_n "(cached) " >&6 13668else 13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13670/* end confdefs.h. */ 13671int i; 13672_ACEOF 13673if ac_fn_c_try_compile "$LINENO"; then : 13674 xorg_cv_cc_flag_unknown_warning_option=yes 13675else 13676 xorg_cv_cc_flag_unknown_warning_option=no 13677fi 13678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13679fi 13680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13683 CFLAGS="$xorg_testset_save_CFLAGS" 13684fi 13685 13686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13689 fi 13690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13694 $as_echo_n "(cached) " >&6 13695else 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698int i; 13699_ACEOF 13700if ac_fn_c_try_compile "$LINENO"; then : 13701 xorg_cv_cc_flag_unused_command_line_argument=yes 13702else 13703 xorg_cv_cc_flag_unused_command_line_argument=no 13704fi 13705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13706fi 13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13710 CFLAGS="$xorg_testset_save_CFLAGS" 13711fi 13712 13713found="no" 13714 13715 if test $found = "no" ; then 13716 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13718 fi 13719 13720 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13722 fi 13723 13724 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13725 13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13727$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13728 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13729 if eval \${$cacheid+:} false; then : 13730 $as_echo_n "(cached) " >&6 13731else 13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13733/* end confdefs.h. */ 13734int i; 13735int 13736main () 13737{ 13738 13739 ; 13740 return 0; 13741} 13742_ACEOF 13743if ac_fn_c_try_link "$LINENO"; then : 13744 eval $cacheid=yes 13745else 13746 eval $cacheid=no 13747fi 13748rm -f core conftest.err conftest.$ac_objext \ 13749 conftest$ac_exeext conftest.$ac_ext 13750fi 13751 13752 13753 CFLAGS="$xorg_testset_save_CFLAGS" 13754 13755 eval supported=\$$cacheid 13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13757$as_echo "$supported" >&6; } 13758 if test "$supported" = "yes" ; then 13759 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13760 found="yes" 13761 fi 13762 fi 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778xorg_testset_save_CFLAGS="$CFLAGS" 13779 13780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13785 $as_echo_n "(cached) " >&6 13786else 13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13788/* end confdefs.h. */ 13789int i; 13790_ACEOF 13791if ac_fn_c_try_compile "$LINENO"; then : 13792 xorg_cv_cc_flag_unknown_warning_option=yes 13793else 13794 xorg_cv_cc_flag_unknown_warning_option=no 13795fi 13796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13797fi 13798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13801 CFLAGS="$xorg_testset_save_CFLAGS" 13802fi 13803 13804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13807 fi 13808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13812 $as_echo_n "(cached) " >&6 13813else 13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13815/* end confdefs.h. */ 13816int i; 13817_ACEOF 13818if ac_fn_c_try_compile "$LINENO"; then : 13819 xorg_cv_cc_flag_unused_command_line_argument=yes 13820else 13821 xorg_cv_cc_flag_unused_command_line_argument=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13824fi 13825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829fi 13830 13831found="no" 13832 13833 if test $found = "no" ; then 13834 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13836 fi 13837 13838 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13840 fi 13841 13842 CFLAGS="$CFLAGS -Wredundant-decls" 13843 13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13845$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13846 cacheid=xorg_cv_cc_flag__Wredundant_decls 13847 if eval \${$cacheid+:} false; then : 13848 $as_echo_n "(cached) " >&6 13849else 13850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13851/* end confdefs.h. */ 13852int i; 13853int 13854main () 13855{ 13856 13857 ; 13858 return 0; 13859} 13860_ACEOF 13861if ac_fn_c_try_link "$LINENO"; then : 13862 eval $cacheid=yes 13863else 13864 eval $cacheid=no 13865fi 13866rm -f core conftest.err conftest.$ac_objext \ 13867 conftest$ac_exeext conftest.$ac_ext 13868fi 13869 13870 13871 CFLAGS="$xorg_testset_save_CFLAGS" 13872 13873 eval supported=\$$cacheid 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13875$as_echo "$supported" >&6; } 13876 if test "$supported" = "yes" ; then 13877 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 13878 found="yes" 13879 fi 13880 fi 13881 13882 13883 13884# These are currently disabled because they are noisy. They will be enabled 13885# in the future once the codebase is sufficiently modernized to silence 13886# them. For now, I don't want them to drown out the other warnings. 13887# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 13888# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 13889# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 13890 13891# Turn some warnings into errors, so we don't accidently get successful builds 13892# when there are problems that should be fixed. 13893 13894if test "x$SELECTIVE_WERROR" = "xyes" ; then 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908xorg_testset_save_CFLAGS="$CFLAGS" 13909 13910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13915 $as_echo_n "(cached) " >&6 13916else 13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13918/* end confdefs.h. */ 13919int i; 13920_ACEOF 13921if ac_fn_c_try_compile "$LINENO"; then : 13922 xorg_cv_cc_flag_unknown_warning_option=yes 13923else 13924 xorg_cv_cc_flag_unknown_warning_option=no 13925fi 13926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13927fi 13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13931 CFLAGS="$xorg_testset_save_CFLAGS" 13932fi 13933 13934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13937 fi 13938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13942 $as_echo_n "(cached) " >&6 13943else 13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13945/* end confdefs.h. */ 13946int i; 13947_ACEOF 13948if ac_fn_c_try_compile "$LINENO"; then : 13949 xorg_cv_cc_flag_unused_command_line_argument=yes 13950else 13951 xorg_cv_cc_flag_unused_command_line_argument=no 13952fi 13953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13954fi 13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13958 CFLAGS="$xorg_testset_save_CFLAGS" 13959fi 13960 13961found="no" 13962 13963 if test $found = "no" ; then 13964 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 13965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13966 fi 13967 13968 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 13969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13970 fi 13971 13972 CFLAGS="$CFLAGS -Werror=implicit" 13973 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 13975$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 13976 cacheid=xorg_cv_cc_flag__Werror_implicit 13977 if eval \${$cacheid+:} false; then : 13978 $as_echo_n "(cached) " >&6 13979else 13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13981/* end confdefs.h. */ 13982int i; 13983int 13984main () 13985{ 13986 13987 ; 13988 return 0; 13989} 13990_ACEOF 13991if ac_fn_c_try_link "$LINENO"; then : 13992 eval $cacheid=yes 13993else 13994 eval $cacheid=no 13995fi 13996rm -f core conftest.err conftest.$ac_objext \ 13997 conftest$ac_exeext conftest.$ac_ext 13998fi 13999 14000 14001 CFLAGS="$xorg_testset_save_CFLAGS" 14002 14003 eval supported=\$$cacheid 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14005$as_echo "$supported" >&6; } 14006 if test "$supported" = "yes" ; then 14007 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14008 found="yes" 14009 fi 14010 fi 14011 14012 if test $found = "no" ; then 14013 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14015 fi 14016 14017 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14019 fi 14020 14021 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14022 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14024$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14025 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14026 if eval \${$cacheid+:} false; then : 14027 $as_echo_n "(cached) " >&6 14028else 14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030/* end confdefs.h. */ 14031int i; 14032int 14033main () 14034{ 14035 14036 ; 14037 return 0; 14038} 14039_ACEOF 14040if ac_fn_c_try_link "$LINENO"; then : 14041 eval $cacheid=yes 14042else 14043 eval $cacheid=no 14044fi 14045rm -f core conftest.err conftest.$ac_objext \ 14046 conftest$ac_exeext conftest.$ac_ext 14047fi 14048 14049 14050 CFLAGS="$xorg_testset_save_CFLAGS" 14051 14052 eval supported=\$$cacheid 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14054$as_echo "$supported" >&6; } 14055 if test "$supported" = "yes" ; then 14056 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14057 found="yes" 14058 fi 14059 fi 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075xorg_testset_save_CFLAGS="$CFLAGS" 14076 14077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14082 $as_echo_n "(cached) " >&6 14083else 14084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14085/* end confdefs.h. */ 14086int i; 14087_ACEOF 14088if ac_fn_c_try_compile "$LINENO"; then : 14089 xorg_cv_cc_flag_unknown_warning_option=yes 14090else 14091 xorg_cv_cc_flag_unknown_warning_option=no 14092fi 14093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14094fi 14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14098 CFLAGS="$xorg_testset_save_CFLAGS" 14099fi 14100 14101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14104 fi 14105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14109 $as_echo_n "(cached) " >&6 14110else 14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14112/* end confdefs.h. */ 14113int i; 14114_ACEOF 14115if ac_fn_c_try_compile "$LINENO"; then : 14116 xorg_cv_cc_flag_unused_command_line_argument=yes 14117else 14118 xorg_cv_cc_flag_unused_command_line_argument=no 14119fi 14120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14121fi 14122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14125 CFLAGS="$xorg_testset_save_CFLAGS" 14126fi 14127 14128found="no" 14129 14130 if test $found = "no" ; then 14131 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14133 fi 14134 14135 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14137 fi 14138 14139 CFLAGS="$CFLAGS -Werror=nonnull" 14140 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14142$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14143 cacheid=xorg_cv_cc_flag__Werror_nonnull 14144 if eval \${$cacheid+:} false; then : 14145 $as_echo_n "(cached) " >&6 14146else 14147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14148/* end confdefs.h. */ 14149int i; 14150int 14151main () 14152{ 14153 14154 ; 14155 return 0; 14156} 14157_ACEOF 14158if ac_fn_c_try_link "$LINENO"; then : 14159 eval $cacheid=yes 14160else 14161 eval $cacheid=no 14162fi 14163rm -f core conftest.err conftest.$ac_objext \ 14164 conftest$ac_exeext conftest.$ac_ext 14165fi 14166 14167 14168 CFLAGS="$xorg_testset_save_CFLAGS" 14169 14170 eval supported=\$$cacheid 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14172$as_echo "$supported" >&6; } 14173 if test "$supported" = "yes" ; then 14174 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14175 found="yes" 14176 fi 14177 fi 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193xorg_testset_save_CFLAGS="$CFLAGS" 14194 14195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14200 $as_echo_n "(cached) " >&6 14201else 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203/* end confdefs.h. */ 14204int i; 14205_ACEOF 14206if ac_fn_c_try_compile "$LINENO"; then : 14207 xorg_cv_cc_flag_unknown_warning_option=yes 14208else 14209 xorg_cv_cc_flag_unknown_warning_option=no 14210fi 14211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14212fi 14213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14216 CFLAGS="$xorg_testset_save_CFLAGS" 14217fi 14218 14219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14222 fi 14223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14227 $as_echo_n "(cached) " >&6 14228else 14229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14230/* end confdefs.h. */ 14231int i; 14232_ACEOF 14233if ac_fn_c_try_compile "$LINENO"; then : 14234 xorg_cv_cc_flag_unused_command_line_argument=yes 14235else 14236 xorg_cv_cc_flag_unused_command_line_argument=no 14237fi 14238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14239fi 14240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14243 CFLAGS="$xorg_testset_save_CFLAGS" 14244fi 14245 14246found="no" 14247 14248 if test $found = "no" ; then 14249 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14251 fi 14252 14253 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14255 fi 14256 14257 CFLAGS="$CFLAGS -Werror=init-self" 14258 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14260$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14261 cacheid=xorg_cv_cc_flag__Werror_init_self 14262 if eval \${$cacheid+:} false; then : 14263 $as_echo_n "(cached) " >&6 14264else 14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14266/* end confdefs.h. */ 14267int i; 14268int 14269main () 14270{ 14271 14272 ; 14273 return 0; 14274} 14275_ACEOF 14276if ac_fn_c_try_link "$LINENO"; then : 14277 eval $cacheid=yes 14278else 14279 eval $cacheid=no 14280fi 14281rm -f core conftest.err conftest.$ac_objext \ 14282 conftest$ac_exeext conftest.$ac_ext 14283fi 14284 14285 14286 CFLAGS="$xorg_testset_save_CFLAGS" 14287 14288 eval supported=\$$cacheid 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14290$as_echo "$supported" >&6; } 14291 if test "$supported" = "yes" ; then 14292 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14293 found="yes" 14294 fi 14295 fi 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311xorg_testset_save_CFLAGS="$CFLAGS" 14312 14313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14318 $as_echo_n "(cached) " >&6 14319else 14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14321/* end confdefs.h. */ 14322int i; 14323_ACEOF 14324if ac_fn_c_try_compile "$LINENO"; then : 14325 xorg_cv_cc_flag_unknown_warning_option=yes 14326else 14327 xorg_cv_cc_flag_unknown_warning_option=no 14328fi 14329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14330fi 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14334 CFLAGS="$xorg_testset_save_CFLAGS" 14335fi 14336 14337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14340 fi 14341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14345 $as_echo_n "(cached) " >&6 14346else 14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14348/* end confdefs.h. */ 14349int i; 14350_ACEOF 14351if ac_fn_c_try_compile "$LINENO"; then : 14352 xorg_cv_cc_flag_unused_command_line_argument=yes 14353else 14354 xorg_cv_cc_flag_unused_command_line_argument=no 14355fi 14356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14357fi 14358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14361 CFLAGS="$xorg_testset_save_CFLAGS" 14362fi 14363 14364found="no" 14365 14366 if test $found = "no" ; then 14367 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14369 fi 14370 14371 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14373 fi 14374 14375 CFLAGS="$CFLAGS -Werror=main" 14376 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14378$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14379 cacheid=xorg_cv_cc_flag__Werror_main 14380 if eval \${$cacheid+:} false; then : 14381 $as_echo_n "(cached) " >&6 14382else 14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14384/* end confdefs.h. */ 14385int i; 14386int 14387main () 14388{ 14389 14390 ; 14391 return 0; 14392} 14393_ACEOF 14394if ac_fn_c_try_link "$LINENO"; then : 14395 eval $cacheid=yes 14396else 14397 eval $cacheid=no 14398fi 14399rm -f core conftest.err conftest.$ac_objext \ 14400 conftest$ac_exeext conftest.$ac_ext 14401fi 14402 14403 14404 CFLAGS="$xorg_testset_save_CFLAGS" 14405 14406 eval supported=\$$cacheid 14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14408$as_echo "$supported" >&6; } 14409 if test "$supported" = "yes" ; then 14410 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14411 found="yes" 14412 fi 14413 fi 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429xorg_testset_save_CFLAGS="$CFLAGS" 14430 14431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14436 $as_echo_n "(cached) " >&6 14437else 14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14439/* end confdefs.h. */ 14440int i; 14441_ACEOF 14442if ac_fn_c_try_compile "$LINENO"; then : 14443 xorg_cv_cc_flag_unknown_warning_option=yes 14444else 14445 xorg_cv_cc_flag_unknown_warning_option=no 14446fi 14447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14448fi 14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14452 CFLAGS="$xorg_testset_save_CFLAGS" 14453fi 14454 14455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14458 fi 14459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14463 $as_echo_n "(cached) " >&6 14464else 14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14466/* end confdefs.h. */ 14467int i; 14468_ACEOF 14469if ac_fn_c_try_compile "$LINENO"; then : 14470 xorg_cv_cc_flag_unused_command_line_argument=yes 14471else 14472 xorg_cv_cc_flag_unused_command_line_argument=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14475fi 14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480fi 14481 14482found="no" 14483 14484 if test $found = "no" ; then 14485 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14487 fi 14488 14489 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14491 fi 14492 14493 CFLAGS="$CFLAGS -Werror=missing-braces" 14494 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14496$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14497 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14498 if eval \${$cacheid+:} false; then : 14499 $as_echo_n "(cached) " >&6 14500else 14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14502/* end confdefs.h. */ 14503int i; 14504int 14505main () 14506{ 14507 14508 ; 14509 return 0; 14510} 14511_ACEOF 14512if ac_fn_c_try_link "$LINENO"; then : 14513 eval $cacheid=yes 14514else 14515 eval $cacheid=no 14516fi 14517rm -f core conftest.err conftest.$ac_objext \ 14518 conftest$ac_exeext conftest.$ac_ext 14519fi 14520 14521 14522 CFLAGS="$xorg_testset_save_CFLAGS" 14523 14524 eval supported=\$$cacheid 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14526$as_echo "$supported" >&6; } 14527 if test "$supported" = "yes" ; then 14528 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14529 found="yes" 14530 fi 14531 fi 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547xorg_testset_save_CFLAGS="$CFLAGS" 14548 14549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14554 $as_echo_n "(cached) " >&6 14555else 14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14557/* end confdefs.h. */ 14558int i; 14559_ACEOF 14560if ac_fn_c_try_compile "$LINENO"; then : 14561 xorg_cv_cc_flag_unknown_warning_option=yes 14562else 14563 xorg_cv_cc_flag_unknown_warning_option=no 14564fi 14565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14566fi 14567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14570 CFLAGS="$xorg_testset_save_CFLAGS" 14571fi 14572 14573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14576 fi 14577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14581 $as_echo_n "(cached) " >&6 14582else 14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14584/* end confdefs.h. */ 14585int i; 14586_ACEOF 14587if ac_fn_c_try_compile "$LINENO"; then : 14588 xorg_cv_cc_flag_unused_command_line_argument=yes 14589else 14590 xorg_cv_cc_flag_unused_command_line_argument=no 14591fi 14592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14593fi 14594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14597 CFLAGS="$xorg_testset_save_CFLAGS" 14598fi 14599 14600found="no" 14601 14602 if test $found = "no" ; then 14603 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14605 fi 14606 14607 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14609 fi 14610 14611 CFLAGS="$CFLAGS -Werror=sequence-point" 14612 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14614$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14615 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14616 if eval \${$cacheid+:} false; then : 14617 $as_echo_n "(cached) " >&6 14618else 14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620/* end confdefs.h. */ 14621int i; 14622int 14623main () 14624{ 14625 14626 ; 14627 return 0; 14628} 14629_ACEOF 14630if ac_fn_c_try_link "$LINENO"; then : 14631 eval $cacheid=yes 14632else 14633 eval $cacheid=no 14634fi 14635rm -f core conftest.err conftest.$ac_objext \ 14636 conftest$ac_exeext conftest.$ac_ext 14637fi 14638 14639 14640 CFLAGS="$xorg_testset_save_CFLAGS" 14641 14642 eval supported=\$$cacheid 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14644$as_echo "$supported" >&6; } 14645 if test "$supported" = "yes" ; then 14646 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14647 found="yes" 14648 fi 14649 fi 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665xorg_testset_save_CFLAGS="$CFLAGS" 14666 14667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14672 $as_echo_n "(cached) " >&6 14673else 14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14675/* end confdefs.h. */ 14676int i; 14677_ACEOF 14678if ac_fn_c_try_compile "$LINENO"; then : 14679 xorg_cv_cc_flag_unknown_warning_option=yes 14680else 14681 xorg_cv_cc_flag_unknown_warning_option=no 14682fi 14683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14684fi 14685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14688 CFLAGS="$xorg_testset_save_CFLAGS" 14689fi 14690 14691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14694 fi 14695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14699 $as_echo_n "(cached) " >&6 14700else 14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14702/* end confdefs.h. */ 14703int i; 14704_ACEOF 14705if ac_fn_c_try_compile "$LINENO"; then : 14706 xorg_cv_cc_flag_unused_command_line_argument=yes 14707else 14708 xorg_cv_cc_flag_unused_command_line_argument=no 14709fi 14710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14711fi 14712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14715 CFLAGS="$xorg_testset_save_CFLAGS" 14716fi 14717 14718found="no" 14719 14720 if test $found = "no" ; then 14721 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14723 fi 14724 14725 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14727 fi 14728 14729 CFLAGS="$CFLAGS -Werror=return-type" 14730 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14732$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14733 cacheid=xorg_cv_cc_flag__Werror_return_type 14734 if eval \${$cacheid+:} false; then : 14735 $as_echo_n "(cached) " >&6 14736else 14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14738/* end confdefs.h. */ 14739int i; 14740int 14741main () 14742{ 14743 14744 ; 14745 return 0; 14746} 14747_ACEOF 14748if ac_fn_c_try_link "$LINENO"; then : 14749 eval $cacheid=yes 14750else 14751 eval $cacheid=no 14752fi 14753rm -f core conftest.err conftest.$ac_objext \ 14754 conftest$ac_exeext conftest.$ac_ext 14755fi 14756 14757 14758 CFLAGS="$xorg_testset_save_CFLAGS" 14759 14760 eval supported=\$$cacheid 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14762$as_echo "$supported" >&6; } 14763 if test "$supported" = "yes" ; then 14764 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 14765 found="yes" 14766 fi 14767 fi 14768 14769 if test $found = "no" ; then 14770 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14772 fi 14773 14774 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14776 fi 14777 14778 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14779 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 14781$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 14782 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 14783 if eval \${$cacheid+:} false; then : 14784 $as_echo_n "(cached) " >&6 14785else 14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14787/* end confdefs.h. */ 14788int i; 14789int 14790main () 14791{ 14792 14793 ; 14794 return 0; 14795} 14796_ACEOF 14797if ac_fn_c_try_link "$LINENO"; then : 14798 eval $cacheid=yes 14799else 14800 eval $cacheid=no 14801fi 14802rm -f core conftest.err conftest.$ac_objext \ 14803 conftest$ac_exeext conftest.$ac_ext 14804fi 14805 14806 14807 CFLAGS="$xorg_testset_save_CFLAGS" 14808 14809 eval supported=\$$cacheid 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14811$as_echo "$supported" >&6; } 14812 if test "$supported" = "yes" ; then 14813 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 14814 found="yes" 14815 fi 14816 fi 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832xorg_testset_save_CFLAGS="$CFLAGS" 14833 14834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14837$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14838if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14839 $as_echo_n "(cached) " >&6 14840else 14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14842/* end confdefs.h. */ 14843int i; 14844_ACEOF 14845if ac_fn_c_try_compile "$LINENO"; then : 14846 xorg_cv_cc_flag_unknown_warning_option=yes 14847else 14848 xorg_cv_cc_flag_unknown_warning_option=no 14849fi 14850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14851fi 14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14853$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14855 CFLAGS="$xorg_testset_save_CFLAGS" 14856fi 14857 14858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14861 fi 14862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14864$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14865if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867else 14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14869/* end confdefs.h. */ 14870int i; 14871_ACEOF 14872if ac_fn_c_try_compile "$LINENO"; then : 14873 xorg_cv_cc_flag_unused_command_line_argument=yes 14874else 14875 xorg_cv_cc_flag_unused_command_line_argument=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14878fi 14879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14880$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14882 CFLAGS="$xorg_testset_save_CFLAGS" 14883fi 14884 14885found="no" 14886 14887 if test $found = "no" ; then 14888 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 14889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14890 fi 14891 14892 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 14893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14894 fi 14895 14896 CFLAGS="$CFLAGS -Werror=trigraphs" 14897 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 14899$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 14900 cacheid=xorg_cv_cc_flag__Werror_trigraphs 14901 if eval \${$cacheid+:} false; then : 14902 $as_echo_n "(cached) " >&6 14903else 14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14905/* end confdefs.h. */ 14906int i; 14907int 14908main () 14909{ 14910 14911 ; 14912 return 0; 14913} 14914_ACEOF 14915if ac_fn_c_try_link "$LINENO"; then : 14916 eval $cacheid=yes 14917else 14918 eval $cacheid=no 14919fi 14920rm -f core conftest.err conftest.$ac_objext \ 14921 conftest$ac_exeext conftest.$ac_ext 14922fi 14923 14924 14925 CFLAGS="$xorg_testset_save_CFLAGS" 14926 14927 eval supported=\$$cacheid 14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14929$as_echo "$supported" >&6; } 14930 if test "$supported" = "yes" ; then 14931 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 14932 found="yes" 14933 fi 14934 fi 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950xorg_testset_save_CFLAGS="$CFLAGS" 14951 14952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14955$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14956if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14957 $as_echo_n "(cached) " >&6 14958else 14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14960/* end confdefs.h. */ 14961int i; 14962_ACEOF 14963if ac_fn_c_try_compile "$LINENO"; then : 14964 xorg_cv_cc_flag_unknown_warning_option=yes 14965else 14966 xorg_cv_cc_flag_unknown_warning_option=no 14967fi 14968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14969fi 14970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14971$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14973 CFLAGS="$xorg_testset_save_CFLAGS" 14974fi 14975 14976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14979 fi 14980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14982$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14983if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14984 $as_echo_n "(cached) " >&6 14985else 14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14987/* end confdefs.h. */ 14988int i; 14989_ACEOF 14990if ac_fn_c_try_compile "$LINENO"; then : 14991 xorg_cv_cc_flag_unused_command_line_argument=yes 14992else 14993 xorg_cv_cc_flag_unused_command_line_argument=no 14994fi 14995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14996fi 14997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14998$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15000 CFLAGS="$xorg_testset_save_CFLAGS" 15001fi 15002 15003found="no" 15004 15005 if test $found = "no" ; then 15006 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15008 fi 15009 15010 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15012 fi 15013 15014 CFLAGS="$CFLAGS -Werror=array-bounds" 15015 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15017$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15018 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15019 if eval \${$cacheid+:} false; then : 15020 $as_echo_n "(cached) " >&6 15021else 15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15023/* end confdefs.h. */ 15024int i; 15025int 15026main () 15027{ 15028 15029 ; 15030 return 0; 15031} 15032_ACEOF 15033if ac_fn_c_try_link "$LINENO"; then : 15034 eval $cacheid=yes 15035else 15036 eval $cacheid=no 15037fi 15038rm -f core conftest.err conftest.$ac_objext \ 15039 conftest$ac_exeext conftest.$ac_ext 15040fi 15041 15042 15043 CFLAGS="$xorg_testset_save_CFLAGS" 15044 15045 eval supported=\$$cacheid 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15047$as_echo "$supported" >&6; } 15048 if test "$supported" = "yes" ; then 15049 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15050 found="yes" 15051 fi 15052 fi 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068xorg_testset_save_CFLAGS="$CFLAGS" 15069 15070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15073$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15074if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15075 $as_echo_n "(cached) " >&6 15076else 15077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15078/* end confdefs.h. */ 15079int i; 15080_ACEOF 15081if ac_fn_c_try_compile "$LINENO"; then : 15082 xorg_cv_cc_flag_unknown_warning_option=yes 15083else 15084 xorg_cv_cc_flag_unknown_warning_option=no 15085fi 15086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15087fi 15088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15089$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15091 CFLAGS="$xorg_testset_save_CFLAGS" 15092fi 15093 15094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15097 fi 15098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15100$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15101if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15102 $as_echo_n "(cached) " >&6 15103else 15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15105/* end confdefs.h. */ 15106int i; 15107_ACEOF 15108if ac_fn_c_try_compile "$LINENO"; then : 15109 xorg_cv_cc_flag_unused_command_line_argument=yes 15110else 15111 xorg_cv_cc_flag_unused_command_line_argument=no 15112fi 15113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15114fi 15115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15116$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15118 CFLAGS="$xorg_testset_save_CFLAGS" 15119fi 15120 15121found="no" 15122 15123 if test $found = "no" ; then 15124 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15126 fi 15127 15128 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15130 fi 15131 15132 CFLAGS="$CFLAGS -Werror=write-strings" 15133 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15135$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15136 cacheid=xorg_cv_cc_flag__Werror_write_strings 15137 if eval \${$cacheid+:} false; then : 15138 $as_echo_n "(cached) " >&6 15139else 15140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142int i; 15143int 15144main () 15145{ 15146 15147 ; 15148 return 0; 15149} 15150_ACEOF 15151if ac_fn_c_try_link "$LINENO"; then : 15152 eval $cacheid=yes 15153else 15154 eval $cacheid=no 15155fi 15156rm -f core conftest.err conftest.$ac_objext \ 15157 conftest$ac_exeext conftest.$ac_ext 15158fi 15159 15160 15161 CFLAGS="$xorg_testset_save_CFLAGS" 15162 15163 eval supported=\$$cacheid 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15165$as_echo "$supported" >&6; } 15166 if test "$supported" = "yes" ; then 15167 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15168 found="yes" 15169 fi 15170 fi 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186xorg_testset_save_CFLAGS="$CFLAGS" 15187 15188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15191$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15192if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15193 $as_echo_n "(cached) " >&6 15194else 15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15196/* end confdefs.h. */ 15197int i; 15198_ACEOF 15199if ac_fn_c_try_compile "$LINENO"; then : 15200 xorg_cv_cc_flag_unknown_warning_option=yes 15201else 15202 xorg_cv_cc_flag_unknown_warning_option=no 15203fi 15204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15205fi 15206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15207$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15209 CFLAGS="$xorg_testset_save_CFLAGS" 15210fi 15211 15212if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15215 fi 15216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15218$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15219if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15220 $as_echo_n "(cached) " >&6 15221else 15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15223/* end confdefs.h. */ 15224int i; 15225_ACEOF 15226if ac_fn_c_try_compile "$LINENO"; then : 15227 xorg_cv_cc_flag_unused_command_line_argument=yes 15228else 15229 xorg_cv_cc_flag_unused_command_line_argument=no 15230fi 15231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15232fi 15233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15234$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15236 CFLAGS="$xorg_testset_save_CFLAGS" 15237fi 15238 15239found="no" 15240 15241 if test $found = "no" ; then 15242 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15244 fi 15245 15246 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15248 fi 15249 15250 CFLAGS="$CFLAGS -Werror=address" 15251 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15253$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15254 cacheid=xorg_cv_cc_flag__Werror_address 15255 if eval \${$cacheid+:} false; then : 15256 $as_echo_n "(cached) " >&6 15257else 15258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15259/* end confdefs.h. */ 15260int i; 15261int 15262main () 15263{ 15264 15265 ; 15266 return 0; 15267} 15268_ACEOF 15269if ac_fn_c_try_link "$LINENO"; then : 15270 eval $cacheid=yes 15271else 15272 eval $cacheid=no 15273fi 15274rm -f core conftest.err conftest.$ac_objext \ 15275 conftest$ac_exeext conftest.$ac_ext 15276fi 15277 15278 15279 CFLAGS="$xorg_testset_save_CFLAGS" 15280 15281 eval supported=\$$cacheid 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15283$as_echo "$supported" >&6; } 15284 if test "$supported" = "yes" ; then 15285 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15286 found="yes" 15287 fi 15288 fi 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304xorg_testset_save_CFLAGS="$CFLAGS" 15305 15306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15309$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15310if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15311 $as_echo_n "(cached) " >&6 15312else 15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15314/* end confdefs.h. */ 15315int i; 15316_ACEOF 15317if ac_fn_c_try_compile "$LINENO"; then : 15318 xorg_cv_cc_flag_unknown_warning_option=yes 15319else 15320 xorg_cv_cc_flag_unknown_warning_option=no 15321fi 15322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15323fi 15324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15325$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15327 CFLAGS="$xorg_testset_save_CFLAGS" 15328fi 15329 15330if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15333 fi 15334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15336$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15337if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15338 $as_echo_n "(cached) " >&6 15339else 15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15341/* end confdefs.h. */ 15342int i; 15343_ACEOF 15344if ac_fn_c_try_compile "$LINENO"; then : 15345 xorg_cv_cc_flag_unused_command_line_argument=yes 15346else 15347 xorg_cv_cc_flag_unused_command_line_argument=no 15348fi 15349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15350fi 15351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15352$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15354 CFLAGS="$xorg_testset_save_CFLAGS" 15355fi 15356 15357found="no" 15358 15359 if test $found = "no" ; then 15360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15362 fi 15363 15364 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15366 fi 15367 15368 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15369 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15371$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15372 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15373 if eval \${$cacheid+:} false; then : 15374 $as_echo_n "(cached) " >&6 15375else 15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15377/* end confdefs.h. */ 15378int i; 15379int 15380main () 15381{ 15382 15383 ; 15384 return 0; 15385} 15386_ACEOF 15387if ac_fn_c_try_link "$LINENO"; then : 15388 eval $cacheid=yes 15389else 15390 eval $cacheid=no 15391fi 15392rm -f core conftest.err conftest.$ac_objext \ 15393 conftest$ac_exeext conftest.$ac_ext 15394fi 15395 15396 15397 CFLAGS="$xorg_testset_save_CFLAGS" 15398 15399 eval supported=\$$cacheid 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15401$as_echo "$supported" >&6; } 15402 if test "$supported" = "yes" ; then 15403 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15404 found="yes" 15405 fi 15406 fi 15407 15408 if test $found = "no" ; then 15409 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15411 fi 15412 15413 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15415 fi 15416 15417 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15418 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15420$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15421 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15422 if eval \${$cacheid+:} false; then : 15423 $as_echo_n "(cached) " >&6 15424else 15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15426/* end confdefs.h. */ 15427int i; 15428int 15429main () 15430{ 15431 15432 ; 15433 return 0; 15434} 15435_ACEOF 15436if ac_fn_c_try_link "$LINENO"; then : 15437 eval $cacheid=yes 15438else 15439 eval $cacheid=no 15440fi 15441rm -f core conftest.err conftest.$ac_objext \ 15442 conftest$ac_exeext conftest.$ac_ext 15443fi 15444 15445 15446 CFLAGS="$xorg_testset_save_CFLAGS" 15447 15448 eval supported=\$$cacheid 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15450$as_echo "$supported" >&6; } 15451 if test "$supported" = "yes" ; then 15452 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15453 found="yes" 15454 fi 15455 fi 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471xorg_testset_save_CFLAGS="$CFLAGS" 15472 15473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15476$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15477if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15478 $as_echo_n "(cached) " >&6 15479else 15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15481/* end confdefs.h. */ 15482int i; 15483_ACEOF 15484if ac_fn_c_try_compile "$LINENO"; then : 15485 xorg_cv_cc_flag_unknown_warning_option=yes 15486else 15487 xorg_cv_cc_flag_unknown_warning_option=no 15488fi 15489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15490fi 15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15492$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15494 CFLAGS="$xorg_testset_save_CFLAGS" 15495fi 15496 15497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15500 fi 15501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15503$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15504if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15505 $as_echo_n "(cached) " >&6 15506else 15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15508/* end confdefs.h. */ 15509int i; 15510_ACEOF 15511if ac_fn_c_try_compile "$LINENO"; then : 15512 xorg_cv_cc_flag_unused_command_line_argument=yes 15513else 15514 xorg_cv_cc_flag_unused_command_line_argument=no 15515fi 15516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15517fi 15518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15519$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15521 CFLAGS="$xorg_testset_save_CFLAGS" 15522fi 15523 15524found="no" 15525 15526 if test $found = "no" ; then 15527 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15529 fi 15530 15531 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15533 fi 15534 15535 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15536 15537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15538$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15539 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15540 if eval \${$cacheid+:} false; then : 15541 $as_echo_n "(cached) " >&6 15542else 15543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544/* end confdefs.h. */ 15545int i; 15546int 15547main () 15548{ 15549 15550 ; 15551 return 0; 15552} 15553_ACEOF 15554if ac_fn_c_try_link "$LINENO"; then : 15555 eval $cacheid=yes 15556else 15557 eval $cacheid=no 15558fi 15559rm -f core conftest.err conftest.$ac_objext \ 15560 conftest$ac_exeext conftest.$ac_ext 15561fi 15562 15563 15564 CFLAGS="$xorg_testset_save_CFLAGS" 15565 15566 eval supported=\$$cacheid 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15568$as_echo "$supported" >&6; } 15569 if test "$supported" = "yes" ; then 15570 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15571 found="yes" 15572 fi 15573 fi 15574 15575 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15576else 15577{ $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 15578$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;} 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592xorg_testset_save_CFLAGS="$CFLAGS" 15593 15594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15599 $as_echo_n "(cached) " >&6 15600else 15601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602/* end confdefs.h. */ 15603int i; 15604_ACEOF 15605if ac_fn_c_try_compile "$LINENO"; then : 15606 xorg_cv_cc_flag_unknown_warning_option=yes 15607else 15608 xorg_cv_cc_flag_unknown_warning_option=no 15609fi 15610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15611fi 15612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15615 CFLAGS="$xorg_testset_save_CFLAGS" 15616fi 15617 15618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15621 fi 15622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15626 $as_echo_n "(cached) " >&6 15627else 15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15629/* end confdefs.h. */ 15630int i; 15631_ACEOF 15632if ac_fn_c_try_compile "$LINENO"; then : 15633 xorg_cv_cc_flag_unused_command_line_argument=yes 15634else 15635 xorg_cv_cc_flag_unused_command_line_argument=no 15636fi 15637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15638fi 15639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15642 CFLAGS="$xorg_testset_save_CFLAGS" 15643fi 15644 15645found="no" 15646 15647 if test $found = "no" ; then 15648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15650 fi 15651 15652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15654 fi 15655 15656 CFLAGS="$CFLAGS -Wimplicit" 15657 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15659$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15660 cacheid=xorg_cv_cc_flag__Wimplicit 15661 if eval \${$cacheid+:} false; then : 15662 $as_echo_n "(cached) " >&6 15663else 15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15665/* end confdefs.h. */ 15666int i; 15667int 15668main () 15669{ 15670 15671 ; 15672 return 0; 15673} 15674_ACEOF 15675if ac_fn_c_try_link "$LINENO"; then : 15676 eval $cacheid=yes 15677else 15678 eval $cacheid=no 15679fi 15680rm -f core conftest.err conftest.$ac_objext \ 15681 conftest$ac_exeext conftest.$ac_ext 15682fi 15683 15684 15685 CFLAGS="$xorg_testset_save_CFLAGS" 15686 15687 eval supported=\$$cacheid 15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15689$as_echo "$supported" >&6; } 15690 if test "$supported" = "yes" ; then 15691 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15692 found="yes" 15693 fi 15694 fi 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710xorg_testset_save_CFLAGS="$CFLAGS" 15711 15712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15717 $as_echo_n "(cached) " >&6 15718else 15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15720/* end confdefs.h. */ 15721int i; 15722_ACEOF 15723if ac_fn_c_try_compile "$LINENO"; then : 15724 xorg_cv_cc_flag_unknown_warning_option=yes 15725else 15726 xorg_cv_cc_flag_unknown_warning_option=no 15727fi 15728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15729fi 15730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15733 CFLAGS="$xorg_testset_save_CFLAGS" 15734fi 15735 15736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15739 fi 15740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15744 $as_echo_n "(cached) " >&6 15745else 15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15747/* end confdefs.h. */ 15748int i; 15749_ACEOF 15750if ac_fn_c_try_compile "$LINENO"; then : 15751 xorg_cv_cc_flag_unused_command_line_argument=yes 15752else 15753 xorg_cv_cc_flag_unused_command_line_argument=no 15754fi 15755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15756fi 15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15760 CFLAGS="$xorg_testset_save_CFLAGS" 15761fi 15762 15763found="no" 15764 15765 if test $found = "no" ; then 15766 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15768 fi 15769 15770 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15772 fi 15773 15774 CFLAGS="$CFLAGS -Wnonnull" 15775 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 15777$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 15778 cacheid=xorg_cv_cc_flag__Wnonnull 15779 if eval \${$cacheid+:} false; then : 15780 $as_echo_n "(cached) " >&6 15781else 15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15783/* end confdefs.h. */ 15784int i; 15785int 15786main () 15787{ 15788 15789 ; 15790 return 0; 15791} 15792_ACEOF 15793if ac_fn_c_try_link "$LINENO"; then : 15794 eval $cacheid=yes 15795else 15796 eval $cacheid=no 15797fi 15798rm -f core conftest.err conftest.$ac_objext \ 15799 conftest$ac_exeext conftest.$ac_ext 15800fi 15801 15802 15803 CFLAGS="$xorg_testset_save_CFLAGS" 15804 15805 eval supported=\$$cacheid 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15807$as_echo "$supported" >&6; } 15808 if test "$supported" = "yes" ; then 15809 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 15810 found="yes" 15811 fi 15812 fi 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828xorg_testset_save_CFLAGS="$CFLAGS" 15829 15830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15835 $as_echo_n "(cached) " >&6 15836else 15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15838/* end confdefs.h. */ 15839int i; 15840_ACEOF 15841if ac_fn_c_try_compile "$LINENO"; then : 15842 xorg_cv_cc_flag_unknown_warning_option=yes 15843else 15844 xorg_cv_cc_flag_unknown_warning_option=no 15845fi 15846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15847fi 15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15851 CFLAGS="$xorg_testset_save_CFLAGS" 15852fi 15853 15854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15857 fi 15858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15865/* end confdefs.h. */ 15866int i; 15867_ACEOF 15868if ac_fn_c_try_compile "$LINENO"; then : 15869 xorg_cv_cc_flag_unused_command_line_argument=yes 15870else 15871 xorg_cv_cc_flag_unused_command_line_argument=no 15872fi 15873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15874fi 15875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15878 CFLAGS="$xorg_testset_save_CFLAGS" 15879fi 15880 15881found="no" 15882 15883 if test $found = "no" ; then 15884 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 15885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15886 fi 15887 15888 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 15889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15890 fi 15891 15892 CFLAGS="$CFLAGS -Winit-self" 15893 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 15895$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 15896 cacheid=xorg_cv_cc_flag__Winit_self 15897 if eval \${$cacheid+:} false; then : 15898 $as_echo_n "(cached) " >&6 15899else 15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15901/* end confdefs.h. */ 15902int i; 15903int 15904main () 15905{ 15906 15907 ; 15908 return 0; 15909} 15910_ACEOF 15911if ac_fn_c_try_link "$LINENO"; then : 15912 eval $cacheid=yes 15913else 15914 eval $cacheid=no 15915fi 15916rm -f core conftest.err conftest.$ac_objext \ 15917 conftest$ac_exeext conftest.$ac_ext 15918fi 15919 15920 15921 CFLAGS="$xorg_testset_save_CFLAGS" 15922 15923 eval supported=\$$cacheid 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15925$as_echo "$supported" >&6; } 15926 if test "$supported" = "yes" ; then 15927 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 15928 found="yes" 15929 fi 15930 fi 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946xorg_testset_save_CFLAGS="$CFLAGS" 15947 15948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15953 $as_echo_n "(cached) " >&6 15954else 15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15956/* end confdefs.h. */ 15957int i; 15958_ACEOF 15959if ac_fn_c_try_compile "$LINENO"; then : 15960 xorg_cv_cc_flag_unknown_warning_option=yes 15961else 15962 xorg_cv_cc_flag_unknown_warning_option=no 15963fi 15964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15965fi 15966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15969 CFLAGS="$xorg_testset_save_CFLAGS" 15970fi 15971 15972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15975 fi 15976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15980 $as_echo_n "(cached) " >&6 15981else 15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15983/* end confdefs.h. */ 15984int i; 15985_ACEOF 15986if ac_fn_c_try_compile "$LINENO"; then : 15987 xorg_cv_cc_flag_unused_command_line_argument=yes 15988else 15989 xorg_cv_cc_flag_unused_command_line_argument=no 15990fi 15991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15992fi 15993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15996 CFLAGS="$xorg_testset_save_CFLAGS" 15997fi 15998 15999found="no" 16000 16001 if test $found = "no" ; then 16002 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16004 fi 16005 16006 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16008 fi 16009 16010 CFLAGS="$CFLAGS -Wmain" 16011 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16013$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16014 cacheid=xorg_cv_cc_flag__Wmain 16015 if eval \${$cacheid+:} false; then : 16016 $as_echo_n "(cached) " >&6 16017else 16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16019/* end confdefs.h. */ 16020int i; 16021int 16022main () 16023{ 16024 16025 ; 16026 return 0; 16027} 16028_ACEOF 16029if ac_fn_c_try_link "$LINENO"; then : 16030 eval $cacheid=yes 16031else 16032 eval $cacheid=no 16033fi 16034rm -f core conftest.err conftest.$ac_objext \ 16035 conftest$ac_exeext conftest.$ac_ext 16036fi 16037 16038 16039 CFLAGS="$xorg_testset_save_CFLAGS" 16040 16041 eval supported=\$$cacheid 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16043$as_echo "$supported" >&6; } 16044 if test "$supported" = "yes" ; then 16045 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16046 found="yes" 16047 fi 16048 fi 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064xorg_testset_save_CFLAGS="$CFLAGS" 16065 16066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16071 $as_echo_n "(cached) " >&6 16072else 16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16074/* end confdefs.h. */ 16075int i; 16076_ACEOF 16077if ac_fn_c_try_compile "$LINENO"; then : 16078 xorg_cv_cc_flag_unknown_warning_option=yes 16079else 16080 xorg_cv_cc_flag_unknown_warning_option=no 16081fi 16082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16083fi 16084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16087 CFLAGS="$xorg_testset_save_CFLAGS" 16088fi 16089 16090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16093 fi 16094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16098 $as_echo_n "(cached) " >&6 16099else 16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16101/* end confdefs.h. */ 16102int i; 16103_ACEOF 16104if ac_fn_c_try_compile "$LINENO"; then : 16105 xorg_cv_cc_flag_unused_command_line_argument=yes 16106else 16107 xorg_cv_cc_flag_unused_command_line_argument=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16110fi 16111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16114 CFLAGS="$xorg_testset_save_CFLAGS" 16115fi 16116 16117found="no" 16118 16119 if test $found = "no" ; then 16120 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16122 fi 16123 16124 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16126 fi 16127 16128 CFLAGS="$CFLAGS -Wmissing-braces" 16129 16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16131$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16132 cacheid=xorg_cv_cc_flag__Wmissing_braces 16133 if eval \${$cacheid+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138int i; 16139int 16140main () 16141{ 16142 16143 ; 16144 return 0; 16145} 16146_ACEOF 16147if ac_fn_c_try_link "$LINENO"; then : 16148 eval $cacheid=yes 16149else 16150 eval $cacheid=no 16151fi 16152rm -f core conftest.err conftest.$ac_objext \ 16153 conftest$ac_exeext conftest.$ac_ext 16154fi 16155 16156 16157 CFLAGS="$xorg_testset_save_CFLAGS" 16158 16159 eval supported=\$$cacheid 16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16161$as_echo "$supported" >&6; } 16162 if test "$supported" = "yes" ; then 16163 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16164 found="yes" 16165 fi 16166 fi 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182xorg_testset_save_CFLAGS="$CFLAGS" 16183 16184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16189 $as_echo_n "(cached) " >&6 16190else 16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16192/* end confdefs.h. */ 16193int i; 16194_ACEOF 16195if ac_fn_c_try_compile "$LINENO"; then : 16196 xorg_cv_cc_flag_unknown_warning_option=yes 16197else 16198 xorg_cv_cc_flag_unknown_warning_option=no 16199fi 16200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16201fi 16202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16205 CFLAGS="$xorg_testset_save_CFLAGS" 16206fi 16207 16208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16211 fi 16212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16216 $as_echo_n "(cached) " >&6 16217else 16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16219/* end confdefs.h. */ 16220int i; 16221_ACEOF 16222if ac_fn_c_try_compile "$LINENO"; then : 16223 xorg_cv_cc_flag_unused_command_line_argument=yes 16224else 16225 xorg_cv_cc_flag_unused_command_line_argument=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16228fi 16229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233fi 16234 16235found="no" 16236 16237 if test $found = "no" ; then 16238 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16240 fi 16241 16242 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16244 fi 16245 16246 CFLAGS="$CFLAGS -Wsequence-point" 16247 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16249$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16250 cacheid=xorg_cv_cc_flag__Wsequence_point 16251 if eval \${$cacheid+:} false; then : 16252 $as_echo_n "(cached) " >&6 16253else 16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16255/* end confdefs.h. */ 16256int i; 16257int 16258main () 16259{ 16260 16261 ; 16262 return 0; 16263} 16264_ACEOF 16265if ac_fn_c_try_link "$LINENO"; then : 16266 eval $cacheid=yes 16267else 16268 eval $cacheid=no 16269fi 16270rm -f core conftest.err conftest.$ac_objext \ 16271 conftest$ac_exeext conftest.$ac_ext 16272fi 16273 16274 16275 CFLAGS="$xorg_testset_save_CFLAGS" 16276 16277 eval supported=\$$cacheid 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16279$as_echo "$supported" >&6; } 16280 if test "$supported" = "yes" ; then 16281 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16282 found="yes" 16283 fi 16284 fi 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300xorg_testset_save_CFLAGS="$CFLAGS" 16301 16302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16307 $as_echo_n "(cached) " >&6 16308else 16309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310/* end confdefs.h. */ 16311int i; 16312_ACEOF 16313if ac_fn_c_try_compile "$LINENO"; then : 16314 xorg_cv_cc_flag_unknown_warning_option=yes 16315else 16316 xorg_cv_cc_flag_unknown_warning_option=no 16317fi 16318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16319fi 16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16323 CFLAGS="$xorg_testset_save_CFLAGS" 16324fi 16325 16326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16329 fi 16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16334 $as_echo_n "(cached) " >&6 16335else 16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16337/* end confdefs.h. */ 16338int i; 16339_ACEOF 16340if ac_fn_c_try_compile "$LINENO"; then : 16341 xorg_cv_cc_flag_unused_command_line_argument=yes 16342else 16343 xorg_cv_cc_flag_unused_command_line_argument=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16346fi 16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16350 CFLAGS="$xorg_testset_save_CFLAGS" 16351fi 16352 16353found="no" 16354 16355 if test $found = "no" ; then 16356 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16358 fi 16359 16360 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16362 fi 16363 16364 CFLAGS="$CFLAGS -Wreturn-type" 16365 16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16367$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16368 cacheid=xorg_cv_cc_flag__Wreturn_type 16369 if eval \${$cacheid+:} false; then : 16370 $as_echo_n "(cached) " >&6 16371else 16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16373/* end confdefs.h. */ 16374int i; 16375int 16376main () 16377{ 16378 16379 ; 16380 return 0; 16381} 16382_ACEOF 16383if ac_fn_c_try_link "$LINENO"; then : 16384 eval $cacheid=yes 16385else 16386 eval $cacheid=no 16387fi 16388rm -f core conftest.err conftest.$ac_objext \ 16389 conftest$ac_exeext conftest.$ac_ext 16390fi 16391 16392 16393 CFLAGS="$xorg_testset_save_CFLAGS" 16394 16395 eval supported=\$$cacheid 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16397$as_echo "$supported" >&6; } 16398 if test "$supported" = "yes" ; then 16399 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16400 found="yes" 16401 fi 16402 fi 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418xorg_testset_save_CFLAGS="$CFLAGS" 16419 16420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16423$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16424if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16425 $as_echo_n "(cached) " >&6 16426else 16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429int i; 16430_ACEOF 16431if ac_fn_c_try_compile "$LINENO"; then : 16432 xorg_cv_cc_flag_unknown_warning_option=yes 16433else 16434 xorg_cv_cc_flag_unknown_warning_option=no 16435fi 16436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16437fi 16438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16439$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16441 CFLAGS="$xorg_testset_save_CFLAGS" 16442fi 16443 16444if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16447 fi 16448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16450$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16451if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16452 $as_echo_n "(cached) " >&6 16453else 16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16455/* end confdefs.h. */ 16456int i; 16457_ACEOF 16458if ac_fn_c_try_compile "$LINENO"; then : 16459 xorg_cv_cc_flag_unused_command_line_argument=yes 16460else 16461 xorg_cv_cc_flag_unused_command_line_argument=no 16462fi 16463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16464fi 16465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16466$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16467 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16468 CFLAGS="$xorg_testset_save_CFLAGS" 16469fi 16470 16471found="no" 16472 16473 if test $found = "no" ; then 16474 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16476 fi 16477 16478 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16480 fi 16481 16482 CFLAGS="$CFLAGS -Wtrigraphs" 16483 16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16485$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16486 cacheid=xorg_cv_cc_flag__Wtrigraphs 16487 if eval \${$cacheid+:} false; then : 16488 $as_echo_n "(cached) " >&6 16489else 16490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16491/* end confdefs.h. */ 16492int i; 16493int 16494main () 16495{ 16496 16497 ; 16498 return 0; 16499} 16500_ACEOF 16501if ac_fn_c_try_link "$LINENO"; then : 16502 eval $cacheid=yes 16503else 16504 eval $cacheid=no 16505fi 16506rm -f core conftest.err conftest.$ac_objext \ 16507 conftest$ac_exeext conftest.$ac_ext 16508fi 16509 16510 16511 CFLAGS="$xorg_testset_save_CFLAGS" 16512 16513 eval supported=\$$cacheid 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16515$as_echo "$supported" >&6; } 16516 if test "$supported" = "yes" ; then 16517 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16518 found="yes" 16519 fi 16520 fi 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536xorg_testset_save_CFLAGS="$CFLAGS" 16537 16538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16541$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16542if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16543 $as_echo_n "(cached) " >&6 16544else 16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16546/* end confdefs.h. */ 16547int i; 16548_ACEOF 16549if ac_fn_c_try_compile "$LINENO"; then : 16550 xorg_cv_cc_flag_unknown_warning_option=yes 16551else 16552 xorg_cv_cc_flag_unknown_warning_option=no 16553fi 16554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16555fi 16556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16557$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16559 CFLAGS="$xorg_testset_save_CFLAGS" 16560fi 16561 16562if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16565 fi 16566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16568$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16569if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16570 $as_echo_n "(cached) " >&6 16571else 16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16573/* end confdefs.h. */ 16574int i; 16575_ACEOF 16576if ac_fn_c_try_compile "$LINENO"; then : 16577 xorg_cv_cc_flag_unused_command_line_argument=yes 16578else 16579 xorg_cv_cc_flag_unused_command_line_argument=no 16580fi 16581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16582fi 16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16584$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16586 CFLAGS="$xorg_testset_save_CFLAGS" 16587fi 16588 16589found="no" 16590 16591 if test $found = "no" ; then 16592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16594 fi 16595 16596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16598 fi 16599 16600 CFLAGS="$CFLAGS -Warray-bounds" 16601 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16603$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16604 cacheid=xorg_cv_cc_flag__Warray_bounds 16605 if eval \${$cacheid+:} false; then : 16606 $as_echo_n "(cached) " >&6 16607else 16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16609/* end confdefs.h. */ 16610int i; 16611int 16612main () 16613{ 16614 16615 ; 16616 return 0; 16617} 16618_ACEOF 16619if ac_fn_c_try_link "$LINENO"; then : 16620 eval $cacheid=yes 16621else 16622 eval $cacheid=no 16623fi 16624rm -f core conftest.err conftest.$ac_objext \ 16625 conftest$ac_exeext conftest.$ac_ext 16626fi 16627 16628 16629 CFLAGS="$xorg_testset_save_CFLAGS" 16630 16631 eval supported=\$$cacheid 16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16633$as_echo "$supported" >&6; } 16634 if test "$supported" = "yes" ; then 16635 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16636 found="yes" 16637 fi 16638 fi 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654xorg_testset_save_CFLAGS="$CFLAGS" 16655 16656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16659$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16660if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16661 $as_echo_n "(cached) " >&6 16662else 16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16664/* end confdefs.h. */ 16665int i; 16666_ACEOF 16667if ac_fn_c_try_compile "$LINENO"; then : 16668 xorg_cv_cc_flag_unknown_warning_option=yes 16669else 16670 xorg_cv_cc_flag_unknown_warning_option=no 16671fi 16672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16673fi 16674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16675$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16677 CFLAGS="$xorg_testset_save_CFLAGS" 16678fi 16679 16680if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16683 fi 16684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16686$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16687if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16688 $as_echo_n "(cached) " >&6 16689else 16690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16691/* end confdefs.h. */ 16692int i; 16693_ACEOF 16694if ac_fn_c_try_compile "$LINENO"; then : 16695 xorg_cv_cc_flag_unused_command_line_argument=yes 16696else 16697 xorg_cv_cc_flag_unused_command_line_argument=no 16698fi 16699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16700fi 16701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16702$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16704 CFLAGS="$xorg_testset_save_CFLAGS" 16705fi 16706 16707found="no" 16708 16709 if test $found = "no" ; then 16710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16712 fi 16713 16714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16716 fi 16717 16718 CFLAGS="$CFLAGS -Wwrite-strings" 16719 16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16721$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16722 cacheid=xorg_cv_cc_flag__Wwrite_strings 16723 if eval \${$cacheid+:} false; then : 16724 $as_echo_n "(cached) " >&6 16725else 16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16727/* end confdefs.h. */ 16728int i; 16729int 16730main () 16731{ 16732 16733 ; 16734 return 0; 16735} 16736_ACEOF 16737if ac_fn_c_try_link "$LINENO"; then : 16738 eval $cacheid=yes 16739else 16740 eval $cacheid=no 16741fi 16742rm -f core conftest.err conftest.$ac_objext \ 16743 conftest$ac_exeext conftest.$ac_ext 16744fi 16745 16746 16747 CFLAGS="$xorg_testset_save_CFLAGS" 16748 16749 eval supported=\$$cacheid 16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16751$as_echo "$supported" >&6; } 16752 if test "$supported" = "yes" ; then 16753 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 16754 found="yes" 16755 fi 16756 fi 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772xorg_testset_save_CFLAGS="$CFLAGS" 16773 16774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16779 $as_echo_n "(cached) " >&6 16780else 16781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16782/* end confdefs.h. */ 16783int i; 16784_ACEOF 16785if ac_fn_c_try_compile "$LINENO"; then : 16786 xorg_cv_cc_flag_unknown_warning_option=yes 16787else 16788 xorg_cv_cc_flag_unknown_warning_option=no 16789fi 16790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16791fi 16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16795 CFLAGS="$xorg_testset_save_CFLAGS" 16796fi 16797 16798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16801 fi 16802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16806 $as_echo_n "(cached) " >&6 16807else 16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16809/* end confdefs.h. */ 16810int i; 16811_ACEOF 16812if ac_fn_c_try_compile "$LINENO"; then : 16813 xorg_cv_cc_flag_unused_command_line_argument=yes 16814else 16815 xorg_cv_cc_flag_unused_command_line_argument=no 16816fi 16817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16818fi 16819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16822 CFLAGS="$xorg_testset_save_CFLAGS" 16823fi 16824 16825found="no" 16826 16827 if test $found = "no" ; then 16828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16830 fi 16831 16832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16834 fi 16835 16836 CFLAGS="$CFLAGS -Waddress" 16837 16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 16839$as_echo_n "checking if $CC supports -Waddress... " >&6; } 16840 cacheid=xorg_cv_cc_flag__Waddress 16841 if eval \${$cacheid+:} false; then : 16842 $as_echo_n "(cached) " >&6 16843else 16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16845/* end confdefs.h. */ 16846int i; 16847int 16848main () 16849{ 16850 16851 ; 16852 return 0; 16853} 16854_ACEOF 16855if ac_fn_c_try_link "$LINENO"; then : 16856 eval $cacheid=yes 16857else 16858 eval $cacheid=no 16859fi 16860rm -f core conftest.err conftest.$ac_objext \ 16861 conftest$ac_exeext conftest.$ac_ext 16862fi 16863 16864 16865 CFLAGS="$xorg_testset_save_CFLAGS" 16866 16867 eval supported=\$$cacheid 16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16869$as_echo "$supported" >&6; } 16870 if test "$supported" = "yes" ; then 16871 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 16872 found="yes" 16873 fi 16874 fi 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890xorg_testset_save_CFLAGS="$CFLAGS" 16891 16892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16897 $as_echo_n "(cached) " >&6 16898else 16899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16900/* end confdefs.h. */ 16901int i; 16902_ACEOF 16903if ac_fn_c_try_compile "$LINENO"; then : 16904 xorg_cv_cc_flag_unknown_warning_option=yes 16905else 16906 xorg_cv_cc_flag_unknown_warning_option=no 16907fi 16908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16909fi 16910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16913 CFLAGS="$xorg_testset_save_CFLAGS" 16914fi 16915 16916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16919 fi 16920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16924 $as_echo_n "(cached) " >&6 16925else 16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16927/* end confdefs.h. */ 16928int i; 16929_ACEOF 16930if ac_fn_c_try_compile "$LINENO"; then : 16931 xorg_cv_cc_flag_unused_command_line_argument=yes 16932else 16933 xorg_cv_cc_flag_unused_command_line_argument=no 16934fi 16935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16936fi 16937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941fi 16942 16943found="no" 16944 16945 if test $found = "no" ; then 16946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 16947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16948 fi 16949 16950 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 16951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16952 fi 16953 16954 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 16955 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 16957$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 16958 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 16959 if eval \${$cacheid+:} false; then : 16960 $as_echo_n "(cached) " >&6 16961else 16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16963/* end confdefs.h. */ 16964int i; 16965int 16966main () 16967{ 16968 16969 ; 16970 return 0; 16971} 16972_ACEOF 16973if ac_fn_c_try_link "$LINENO"; then : 16974 eval $cacheid=yes 16975else 16976 eval $cacheid=no 16977fi 16978rm -f core conftest.err conftest.$ac_objext \ 16979 conftest$ac_exeext conftest.$ac_ext 16980fi 16981 16982 16983 CFLAGS="$xorg_testset_save_CFLAGS" 16984 16985 eval supported=\$$cacheid 16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16987$as_echo "$supported" >&6; } 16988 if test "$supported" = "yes" ; then 16989 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 16990 found="yes" 16991 fi 16992 fi 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008xorg_testset_save_CFLAGS="$CFLAGS" 17009 17010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17015 $as_echo_n "(cached) " >&6 17016else 17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17018/* end confdefs.h. */ 17019int i; 17020_ACEOF 17021if ac_fn_c_try_compile "$LINENO"; then : 17022 xorg_cv_cc_flag_unknown_warning_option=yes 17023else 17024 xorg_cv_cc_flag_unknown_warning_option=no 17025fi 17026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17027fi 17028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17031 CFLAGS="$xorg_testset_save_CFLAGS" 17032fi 17033 17034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17037 fi 17038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17042 $as_echo_n "(cached) " >&6 17043else 17044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17045/* end confdefs.h. */ 17046int i; 17047_ACEOF 17048if ac_fn_c_try_compile "$LINENO"; then : 17049 xorg_cv_cc_flag_unused_command_line_argument=yes 17050else 17051 xorg_cv_cc_flag_unused_command_line_argument=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17054fi 17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059fi 17060 17061found="no" 17062 17063 if test $found = "no" ; then 17064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17066 fi 17067 17068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17070 fi 17071 17072 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17073 17074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17075$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17076 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17077 if eval \${$cacheid+:} false; then : 17078 $as_echo_n "(cached) " >&6 17079else 17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17081/* end confdefs.h. */ 17082int i; 17083int 17084main () 17085{ 17086 17087 ; 17088 return 0; 17089} 17090_ACEOF 17091if ac_fn_c_try_link "$LINENO"; then : 17092 eval $cacheid=yes 17093else 17094 eval $cacheid=no 17095fi 17096rm -f core conftest.err conftest.$ac_objext \ 17097 conftest$ac_exeext conftest.$ac_ext 17098fi 17099 17100 17101 CFLAGS="$xorg_testset_save_CFLAGS" 17102 17103 eval supported=\$$cacheid 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17105$as_echo "$supported" >&6; } 17106 if test "$supported" = "yes" ; then 17107 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17108 found="yes" 17109 fi 17110 fi 17111 17112 17113fi 17114 17115 17116 17117 17118 17119 17120 17121 CWARNFLAGS="$BASE_CFLAGS" 17122 if test "x$GCC" = xyes ; then 17123 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17124 fi 17125 17126 17127 17128 17129 17130 17131 17132 17133# Check whether --enable-strict-compilation was given. 17134if test "${enable_strict_compilation+set}" = set; then : 17135 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17136else 17137 STRICT_COMPILE=no 17138fi 17139 17140 17141 17142 17143 17144 17145STRICT_CFLAGS="" 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159xorg_testset_save_CFLAGS="$CFLAGS" 17160 17161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17166 $as_echo_n "(cached) " >&6 17167else 17168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17169/* end confdefs.h. */ 17170int i; 17171_ACEOF 17172if ac_fn_c_try_compile "$LINENO"; then : 17173 xorg_cv_cc_flag_unknown_warning_option=yes 17174else 17175 xorg_cv_cc_flag_unknown_warning_option=no 17176fi 17177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17178fi 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17182 CFLAGS="$xorg_testset_save_CFLAGS" 17183fi 17184 17185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17188 fi 17189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17193 $as_echo_n "(cached) " >&6 17194else 17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17196/* end confdefs.h. */ 17197int i; 17198_ACEOF 17199if ac_fn_c_try_compile "$LINENO"; then : 17200 xorg_cv_cc_flag_unused_command_line_argument=yes 17201else 17202 xorg_cv_cc_flag_unused_command_line_argument=no 17203fi 17204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17205fi 17206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17209 CFLAGS="$xorg_testset_save_CFLAGS" 17210fi 17211 17212found="no" 17213 17214 if test $found = "no" ; then 17215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17217 fi 17218 17219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17221 fi 17222 17223 CFLAGS="$CFLAGS -pedantic" 17224 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17226$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17227 cacheid=xorg_cv_cc_flag__pedantic 17228 if eval \${$cacheid+:} false; then : 17229 $as_echo_n "(cached) " >&6 17230else 17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17232/* end confdefs.h. */ 17233int i; 17234int 17235main () 17236{ 17237 17238 ; 17239 return 0; 17240} 17241_ACEOF 17242if ac_fn_c_try_link "$LINENO"; then : 17243 eval $cacheid=yes 17244else 17245 eval $cacheid=no 17246fi 17247rm -f core conftest.err conftest.$ac_objext \ 17248 conftest$ac_exeext conftest.$ac_ext 17249fi 17250 17251 17252 CFLAGS="$xorg_testset_save_CFLAGS" 17253 17254 eval supported=\$$cacheid 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17256$as_echo "$supported" >&6; } 17257 if test "$supported" = "yes" ; then 17258 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17259 found="yes" 17260 fi 17261 fi 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277xorg_testset_save_CFLAGS="$CFLAGS" 17278 17279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17284 $as_echo_n "(cached) " >&6 17285else 17286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17287/* end confdefs.h. */ 17288int i; 17289_ACEOF 17290if ac_fn_c_try_compile "$LINENO"; then : 17291 xorg_cv_cc_flag_unknown_warning_option=yes 17292else 17293 xorg_cv_cc_flag_unknown_warning_option=no 17294fi 17295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17296fi 17297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17300 CFLAGS="$xorg_testset_save_CFLAGS" 17301fi 17302 17303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17306 fi 17307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17311 $as_echo_n "(cached) " >&6 17312else 17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17314/* end confdefs.h. */ 17315int i; 17316_ACEOF 17317if ac_fn_c_try_compile "$LINENO"; then : 17318 xorg_cv_cc_flag_unused_command_line_argument=yes 17319else 17320 xorg_cv_cc_flag_unused_command_line_argument=no 17321fi 17322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17323fi 17324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17327 CFLAGS="$xorg_testset_save_CFLAGS" 17328fi 17329 17330found="no" 17331 17332 if test $found = "no" ; then 17333 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17335 fi 17336 17337 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17339 fi 17340 17341 CFLAGS="$CFLAGS -Werror" 17342 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17344$as_echo_n "checking if $CC supports -Werror... " >&6; } 17345 cacheid=xorg_cv_cc_flag__Werror 17346 if eval \${$cacheid+:} false; then : 17347 $as_echo_n "(cached) " >&6 17348else 17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17350/* end confdefs.h. */ 17351int i; 17352int 17353main () 17354{ 17355 17356 ; 17357 return 0; 17358} 17359_ACEOF 17360if ac_fn_c_try_link "$LINENO"; then : 17361 eval $cacheid=yes 17362else 17363 eval $cacheid=no 17364fi 17365rm -f core conftest.err conftest.$ac_objext \ 17366 conftest$ac_exeext conftest.$ac_ext 17367fi 17368 17369 17370 CFLAGS="$xorg_testset_save_CFLAGS" 17371 17372 eval supported=\$$cacheid 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17374$as_echo "$supported" >&6; } 17375 if test "$supported" = "yes" ; then 17376 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17377 found="yes" 17378 fi 17379 fi 17380 17381 if test $found = "no" ; then 17382 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17384 fi 17385 17386 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17388 fi 17389 17390 CFLAGS="$CFLAGS -errwarn" 17391 17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17393$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17394 cacheid=xorg_cv_cc_flag__errwarn 17395 if eval \${$cacheid+:} false; then : 17396 $as_echo_n "(cached) " >&6 17397else 17398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17399/* end confdefs.h. */ 17400int i; 17401int 17402main () 17403{ 17404 17405 ; 17406 return 0; 17407} 17408_ACEOF 17409if ac_fn_c_try_link "$LINENO"; then : 17410 eval $cacheid=yes 17411else 17412 eval $cacheid=no 17413fi 17414rm -f core conftest.err conftest.$ac_objext \ 17415 conftest$ac_exeext conftest.$ac_ext 17416fi 17417 17418 17419 CFLAGS="$xorg_testset_save_CFLAGS" 17420 17421 eval supported=\$$cacheid 17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17423$as_echo "$supported" >&6; } 17424 if test "$supported" = "yes" ; then 17425 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17426 found="yes" 17427 fi 17428 fi 17429 17430 17431 17432# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17433# activate it with -Werror, so we add it here explicitly. 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447xorg_testset_save_CFLAGS="$CFLAGS" 17448 17449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17454 $as_echo_n "(cached) " >&6 17455else 17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17457/* end confdefs.h. */ 17458int i; 17459_ACEOF 17460if ac_fn_c_try_compile "$LINENO"; then : 17461 xorg_cv_cc_flag_unknown_warning_option=yes 17462else 17463 xorg_cv_cc_flag_unknown_warning_option=no 17464fi 17465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17466fi 17467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17470 CFLAGS="$xorg_testset_save_CFLAGS" 17471fi 17472 17473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17476 fi 17477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17481 $as_echo_n "(cached) " >&6 17482else 17483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17484/* end confdefs.h. */ 17485int i; 17486_ACEOF 17487if ac_fn_c_try_compile "$LINENO"; then : 17488 xorg_cv_cc_flag_unused_command_line_argument=yes 17489else 17490 xorg_cv_cc_flag_unused_command_line_argument=no 17491fi 17492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17493fi 17494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17497 CFLAGS="$xorg_testset_save_CFLAGS" 17498fi 17499 17500found="no" 17501 17502 if test $found = "no" ; then 17503 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 17504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17505 fi 17506 17507 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 17508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17509 fi 17510 17511 CFLAGS="$CFLAGS -Werror=attributes" 17512 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17514$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17515 cacheid=xorg_cv_cc_flag__Werror_attributes 17516 if eval \${$cacheid+:} false; then : 17517 $as_echo_n "(cached) " >&6 17518else 17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17520/* end confdefs.h. */ 17521int i; 17522int 17523main () 17524{ 17525 17526 ; 17527 return 0; 17528} 17529_ACEOF 17530if ac_fn_c_try_link "$LINENO"; then : 17531 eval $cacheid=yes 17532else 17533 eval $cacheid=no 17534fi 17535rm -f core conftest.err conftest.$ac_objext \ 17536 conftest$ac_exeext conftest.$ac_ext 17537fi 17538 17539 17540 CFLAGS="$xorg_testset_save_CFLAGS" 17541 17542 eval supported=\$$cacheid 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17544$as_echo "$supported" >&6; } 17545 if test "$supported" = "yes" ; then 17546 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17547 found="yes" 17548 fi 17549 fi 17550 17551 17552 17553if test "x$STRICT_COMPILE" = "xyes"; then 17554 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17555 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17556fi 17557 17558 17559 17560 17561 17562 17563cat >>confdefs.h <<_ACEOF 17564#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17565_ACEOF 17566 17567 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17568 if test "x$PVM" = "x"; then 17569 PVM="0" 17570 fi 17571 17572cat >>confdefs.h <<_ACEOF 17573#define PACKAGE_VERSION_MINOR $PVM 17574_ACEOF 17575 17576 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17577 if test "x$PVP" = "x"; then 17578 PVP="0" 17579 fi 17580 17581cat >>confdefs.h <<_ACEOF 17582#define PACKAGE_VERSION_PATCHLEVEL $PVP 17583_ACEOF 17584 17585 17586 17587CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17588mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17589|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17590echo 'git directory not found: installing possibly empty changelog.' >&2)" 17591 17592 17593 17594 17595macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17596INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17597mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17598|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17599echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17600 17601 17602 17603 17604 17605 17606if test x$APP_MAN_SUFFIX = x ; then 17607 APP_MAN_SUFFIX=1 17608fi 17609if test x$APP_MAN_DIR = x ; then 17610 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17611fi 17612 17613if test x$LIB_MAN_SUFFIX = x ; then 17614 LIB_MAN_SUFFIX=3 17615fi 17616if test x$LIB_MAN_DIR = x ; then 17617 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17618fi 17619 17620if test x$FILE_MAN_SUFFIX = x ; then 17621 case $host_os in 17622 solaris*) FILE_MAN_SUFFIX=4 ;; 17623 *) FILE_MAN_SUFFIX=5 ;; 17624 esac 17625fi 17626if test x$FILE_MAN_DIR = x ; then 17627 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17628fi 17629 17630if test x$MISC_MAN_SUFFIX = x ; then 17631 case $host_os in 17632 solaris*) MISC_MAN_SUFFIX=5 ;; 17633 *) MISC_MAN_SUFFIX=7 ;; 17634 esac 17635fi 17636if test x$MISC_MAN_DIR = x ; then 17637 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17638fi 17639 17640if test x$DRIVER_MAN_SUFFIX = x ; then 17641 case $host_os in 17642 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17643 *) DRIVER_MAN_SUFFIX=4 ;; 17644 esac 17645fi 17646if test x$DRIVER_MAN_DIR = x ; then 17647 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17648fi 17649 17650if test x$ADMIN_MAN_SUFFIX = x ; then 17651 case $host_os in 17652 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17653 *) ADMIN_MAN_SUFFIX=8 ;; 17654 esac 17655fi 17656if test x$ADMIN_MAN_DIR = x ; then 17657 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17658fi 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674XORG_MAN_PAGE="X Version 11" 17675 17676MAN_SUBSTS="\ 17677 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17678 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17679 -e 's|__xservername__|Xorg|g' \ 17680 -e 's|__xconfigfile__|xorg.conf|g' \ 17681 -e 's|__xorgconfdir__|xorg.conf.d|g' \ 17682 -e 's|__projectroot__|\$(prefix)|g' \ 17683 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17684 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17685 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17686 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17687 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17688 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17689 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17690 17691 17692 17693# Check whether --enable-silent-rules was given. 17694if test "${enable_silent_rules+set}" = set; then : 17695 enableval=$enable_silent_rules; 17696fi 17697 17698case $enable_silent_rules in # ((( 17699 yes) AM_DEFAULT_VERBOSITY=0;; 17700 no) AM_DEFAULT_VERBOSITY=1;; 17701 *) AM_DEFAULT_VERBOSITY=0;; 17702esac 17703am_make=${MAKE-make} 17704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17705$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17706if ${am_cv_make_support_nested_variables+:} false; then : 17707 $as_echo_n "(cached) " >&6 17708else 17709 if $as_echo 'TRUE=$(BAR$(V)) 17710BAR0=false 17711BAR1=true 17712V=1 17713am__doit: 17714 @$(TRUE) 17715.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17716 am_cv_make_support_nested_variables=yes 17717else 17718 am_cv_make_support_nested_variables=no 17719fi 17720fi 17721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17722$as_echo "$am_cv_make_support_nested_variables" >&6; } 17723if test $am_cv_make_support_nested_variables = yes; then 17724 AM_V='$(V)' 17725 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17726else 17727 AM_V=$AM_DEFAULT_VERBOSITY 17728 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17729fi 17730AM_BACKSLASH='\' 17731 17732 17733 17734 17735# Check whether --enable-docs was given. 17736if test "${enable_docs+set}" = set; then : 17737 enableval=$enable_docs; build_docs=$enableval 17738else 17739 build_docs=yes 17740fi 17741 17742 17743 if test x$build_docs = xyes; then 17744 ENABLE_DOCS_TRUE= 17745 ENABLE_DOCS_FALSE='#' 17746else 17747 ENABLE_DOCS_TRUE='#' 17748 ENABLE_DOCS_FALSE= 17749fi 17750 17751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 17752$as_echo_n "checking whether to build documentation... " >&6; } 17753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 17754$as_echo "$build_docs" >&6; } 17755 17756 17757 17758# Check whether --enable-specs was given. 17759if test "${enable_specs+set}" = set; then : 17760 enableval=$enable_specs; build_specs=$enableval 17761else 17762 build_specs=yes 17763fi 17764 17765 17766 if test x$build_specs = xyes; then 17767 ENABLE_SPECS_TRUE= 17768 ENABLE_SPECS_FALSE='#' 17769else 17770 ENABLE_SPECS_TRUE='#' 17771 ENABLE_SPECS_FALSE= 17772fi 17773 17774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 17775$as_echo_n "checking whether to build functional specifications... " >&6; } 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 17777$as_echo "$build_specs" >&6; } 17778 17779 17780 17781 17782 17783# Check whether --with-xmlto was given. 17784if test "${with_xmlto+set}" = set; then : 17785 withval=$with_xmlto; use_xmlto=$withval 17786else 17787 use_xmlto=auto 17788fi 17789 17790 17791 17792if test "x$use_xmlto" = x"auto"; then 17793 # Extract the first word of "xmlto", so it can be a program name with args. 17794set dummy xmlto; ac_word=$2 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17796$as_echo_n "checking for $ac_word... " >&6; } 17797if ${ac_cv_path_XMLTO+:} false; then : 17798 $as_echo_n "(cached) " >&6 17799else 17800 case $XMLTO in 17801 [\\/]* | ?:[\\/]*) 17802 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17803 ;; 17804 *) 17805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17806for as_dir in $PATH 17807do 17808 IFS=$as_save_IFS 17809 test -z "$as_dir" && as_dir=. 17810 for ac_exec_ext in '' $ac_executable_extensions; do 17811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17812 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17814 break 2 17815 fi 17816done 17817 done 17818IFS=$as_save_IFS 17819 17820 ;; 17821esac 17822fi 17823XMLTO=$ac_cv_path_XMLTO 17824if test -n "$XMLTO"; then 17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17826$as_echo "$XMLTO" >&6; } 17827else 17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17829$as_echo "no" >&6; } 17830fi 17831 17832 17833 if test "x$XMLTO" = "x"; then 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 17835$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 17836 have_xmlto=no 17837 else 17838 have_xmlto=yes 17839 fi 17840elif test "x$use_xmlto" = x"yes" ; then 17841 # Extract the first word of "xmlto", so it can be a program name with args. 17842set dummy xmlto; ac_word=$2 17843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17844$as_echo_n "checking for $ac_word... " >&6; } 17845if ${ac_cv_path_XMLTO+:} false; then : 17846 $as_echo_n "(cached) " >&6 17847else 17848 case $XMLTO in 17849 [\\/]* | ?:[\\/]*) 17850 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 17851 ;; 17852 *) 17853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17854for as_dir in $PATH 17855do 17856 IFS=$as_save_IFS 17857 test -z "$as_dir" && as_dir=. 17858 for ac_exec_ext in '' $ac_executable_extensions; do 17859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17860 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 17861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17862 break 2 17863 fi 17864done 17865 done 17866IFS=$as_save_IFS 17867 17868 ;; 17869esac 17870fi 17871XMLTO=$ac_cv_path_XMLTO 17872if test -n "$XMLTO"; then 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 17874$as_echo "$XMLTO" >&6; } 17875else 17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17877$as_echo "no" >&6; } 17878fi 17879 17880 17881 if test "x$XMLTO" = "x"; then 17882 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 17883 fi 17884 have_xmlto=yes 17885elif test "x$use_xmlto" = x"no" ; then 17886 if test "x$XMLTO" != "x"; then 17887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 17888$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 17889 fi 17890 have_xmlto=no 17891else 17892 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 17893fi 17894 17895# Test for a minimum version of xmlto, if provided. 17896if test "$have_xmlto" = yes; then 17897 # scrape the xmlto version 17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 17899$as_echo_n "checking the xmlto version... " >&6; } 17900 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 17902$as_echo "$xmlto_version" >&6; } 17903 as_arg_v1=$xmlto_version 17904as_arg_v2=0.0.22 17905awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 17906case $? in #( 17907 1) : 17908 if test "x$use_xmlto" = xauto; then 17909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 17910$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 17911 have_xmlto=no 17912 else 17913 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 17914 fi ;; #( 17915 0) : 17916 ;; #( 17917 2) : 17918 ;; #( 17919 *) : 17920 ;; 17921esac 17922fi 17923 17924# Test for the ability of xmlto to generate a text target 17925have_xmlto_text=no 17926cat > conftest.xml << "EOF" 17927EOF 17928if test "$have_xmlto" = yes; then : 17929 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 17930 have_xmlto_text=yes 17931else 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 17933$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 17934fi 17935fi 17936rm -f conftest.xml 17937 if test $have_xmlto_text = yes; then 17938 HAVE_XMLTO_TEXT_TRUE= 17939 HAVE_XMLTO_TEXT_FALSE='#' 17940else 17941 HAVE_XMLTO_TEXT_TRUE='#' 17942 HAVE_XMLTO_TEXT_FALSE= 17943fi 17944 17945 if test "$have_xmlto" = yes; then 17946 HAVE_XMLTO_TRUE= 17947 HAVE_XMLTO_FALSE='#' 17948else 17949 HAVE_XMLTO_TRUE='#' 17950 HAVE_XMLTO_FALSE= 17951fi 17952 17953 17954 17955 17956 17957 17958# Check whether --with-fop was given. 17959if test "${with_fop+set}" = set; then : 17960 withval=$with_fop; use_fop=$withval 17961else 17962 use_fop=auto 17963fi 17964 17965 17966 17967if test "x$use_fop" = x"auto"; then 17968 # Extract the first word of "fop", so it can be a program name with args. 17969set dummy fop; ac_word=$2 17970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17971$as_echo_n "checking for $ac_word... " >&6; } 17972if ${ac_cv_path_FOP+:} false; then : 17973 $as_echo_n "(cached) " >&6 17974else 17975 case $FOP in 17976 [\\/]* | ?:[\\/]*) 17977 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 17978 ;; 17979 *) 17980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17981for as_dir in $PATH 17982do 17983 IFS=$as_save_IFS 17984 test -z "$as_dir" && as_dir=. 17985 for ac_exec_ext in '' $ac_executable_extensions; do 17986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17987 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 17988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17989 break 2 17990 fi 17991done 17992 done 17993IFS=$as_save_IFS 17994 17995 ;; 17996esac 17997fi 17998FOP=$ac_cv_path_FOP 17999if test -n "$FOP"; then 18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18001$as_echo "$FOP" >&6; } 18002else 18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18004$as_echo "no" >&6; } 18005fi 18006 18007 18008 if test "x$FOP" = "x"; then 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18010$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18011 have_fop=no 18012 else 18013 have_fop=yes 18014 fi 18015elif test "x$use_fop" = x"yes" ; then 18016 # Extract the first word of "fop", so it can be a program name with args. 18017set dummy fop; ac_word=$2 18018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18019$as_echo_n "checking for $ac_word... " >&6; } 18020if ${ac_cv_path_FOP+:} false; then : 18021 $as_echo_n "(cached) " >&6 18022else 18023 case $FOP in 18024 [\\/]* | ?:[\\/]*) 18025 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18026 ;; 18027 *) 18028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18029for as_dir in $PATH 18030do 18031 IFS=$as_save_IFS 18032 test -z "$as_dir" && as_dir=. 18033 for ac_exec_ext in '' $ac_executable_extensions; do 18034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18035 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18037 break 2 18038 fi 18039done 18040 done 18041IFS=$as_save_IFS 18042 18043 ;; 18044esac 18045fi 18046FOP=$ac_cv_path_FOP 18047if test -n "$FOP"; then 18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18049$as_echo "$FOP" >&6; } 18050else 18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18052$as_echo "no" >&6; } 18053fi 18054 18055 18056 if test "x$FOP" = "x"; then 18057 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18058 fi 18059 have_fop=yes 18060elif test "x$use_fop" = x"no" ; then 18061 if test "x$FOP" != "x"; then 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18063$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18064 fi 18065 have_fop=no 18066else 18067 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18068fi 18069 18070# Test for a minimum version of fop, if provided. 18071 18072 if test "$have_fop" = yes; then 18073 HAVE_FOP_TRUE= 18074 HAVE_FOP_FALSE='#' 18075else 18076 HAVE_FOP_TRUE='#' 18077 HAVE_FOP_FALSE= 18078fi 18079 18080 18081 18082 18083# Preserves the interface, should it be implemented later 18084 18085 18086 18087# Check whether --with-xsltproc was given. 18088if test "${with_xsltproc+set}" = set; then : 18089 withval=$with_xsltproc; use_xsltproc=$withval 18090else 18091 use_xsltproc=auto 18092fi 18093 18094 18095 18096if test "x$use_xsltproc" = x"auto"; then 18097 # Extract the first word of "xsltproc", so it can be a program name with args. 18098set dummy xsltproc; ac_word=$2 18099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18100$as_echo_n "checking for $ac_word... " >&6; } 18101if ${ac_cv_path_XSLTPROC+:} false; then : 18102 $as_echo_n "(cached) " >&6 18103else 18104 case $XSLTPROC in 18105 [\\/]* | ?:[\\/]*) 18106 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18107 ;; 18108 *) 18109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18110for as_dir in $PATH 18111do 18112 IFS=$as_save_IFS 18113 test -z "$as_dir" && as_dir=. 18114 for ac_exec_ext in '' $ac_executable_extensions; do 18115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18116 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18118 break 2 18119 fi 18120done 18121 done 18122IFS=$as_save_IFS 18123 18124 ;; 18125esac 18126fi 18127XSLTPROC=$ac_cv_path_XSLTPROC 18128if test -n "$XSLTPROC"; then 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18130$as_echo "$XSLTPROC" >&6; } 18131else 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18133$as_echo "no" >&6; } 18134fi 18135 18136 18137 if test "x$XSLTPROC" = "x"; then 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18139$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18140 have_xsltproc=no 18141 else 18142 have_xsltproc=yes 18143 fi 18144elif test "x$use_xsltproc" = x"yes" ; then 18145 # Extract the first word of "xsltproc", so it can be a program name with args. 18146set dummy xsltproc; ac_word=$2 18147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18148$as_echo_n "checking for $ac_word... " >&6; } 18149if ${ac_cv_path_XSLTPROC+:} false; then : 18150 $as_echo_n "(cached) " >&6 18151else 18152 case $XSLTPROC in 18153 [\\/]* | ?:[\\/]*) 18154 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18155 ;; 18156 *) 18157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18158for as_dir in $PATH 18159do 18160 IFS=$as_save_IFS 18161 test -z "$as_dir" && as_dir=. 18162 for ac_exec_ext in '' $ac_executable_extensions; do 18163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18164 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18166 break 2 18167 fi 18168done 18169 done 18170IFS=$as_save_IFS 18171 18172 ;; 18173esac 18174fi 18175XSLTPROC=$ac_cv_path_XSLTPROC 18176if test -n "$XSLTPROC"; then 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18178$as_echo "$XSLTPROC" >&6; } 18179else 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18181$as_echo "no" >&6; } 18182fi 18183 18184 18185 if test "x$XSLTPROC" = "x"; then 18186 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18187 fi 18188 have_xsltproc=yes 18189elif test "x$use_xsltproc" = x"no" ; then 18190 if test "x$XSLTPROC" != "x"; then 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18192$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18193 fi 18194 have_xsltproc=no 18195else 18196 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18197fi 18198 18199 if test "$have_xsltproc" = yes; then 18200 HAVE_XSLTPROC_TRUE= 18201 HAVE_XSLTPROC_FALSE='#' 18202else 18203 HAVE_XSLTPROC_TRUE='#' 18204 HAVE_XSLTPROC_FALSE= 18205fi 18206 18207 18208 18209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18210$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18211XORG_SGML_PATH= 18212if test -n "$PKG_CONFIG" && \ 18213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18214 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18215 ac_status=$? 18216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18217 test $ac_status = 0; }; then 18218 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18219else 18220 : 18221 18222fi 18223 18224# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18225# the path and the name of the doc stylesheet 18226if test "x$XORG_SGML_PATH" != "x" ; then 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18228$as_echo "$XORG_SGML_PATH" >&6; } 18229 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18230 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18231else 18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18233$as_echo "no" >&6; } 18234fi 18235 18236 18237 18238 18239 if test "x$XSL_STYLESHEET" != "x"; then 18240 HAVE_STYLESHEETS_TRUE= 18241 HAVE_STYLESHEETS_FALSE='#' 18242else 18243 HAVE_STYLESHEETS_TRUE='#' 18244 HAVE_STYLESHEETS_FALSE= 18245fi 18246 18247 18248 18249 18250 18251 18252# Check whether --with-asciidoc was given. 18253if test "${with_asciidoc+set}" = set; then : 18254 withval=$with_asciidoc; use_asciidoc=$withval 18255else 18256 use_asciidoc=auto 18257fi 18258 18259 18260 18261if test "x$use_asciidoc" = x"auto"; then 18262 # Extract the first word of "asciidoc", so it can be a program name with args. 18263set dummy asciidoc; ac_word=$2 18264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18265$as_echo_n "checking for $ac_word... " >&6; } 18266if ${ac_cv_path_ASCIIDOC+:} false; then : 18267 $as_echo_n "(cached) " >&6 18268else 18269 case $ASCIIDOC in 18270 [\\/]* | ?:[\\/]*) 18271 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 18272 ;; 18273 *) 18274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18275for as_dir in $PATH 18276do 18277 IFS=$as_save_IFS 18278 test -z "$as_dir" && as_dir=. 18279 for ac_exec_ext in '' $ac_executable_extensions; do 18280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18281 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 18282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18283 break 2 18284 fi 18285done 18286 done 18287IFS=$as_save_IFS 18288 18289 ;; 18290esac 18291fi 18292ASCIIDOC=$ac_cv_path_ASCIIDOC 18293if test -n "$ASCIIDOC"; then 18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 18295$as_echo "$ASCIIDOC" >&6; } 18296else 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18298$as_echo "no" >&6; } 18299fi 18300 18301 18302 if test "x$ASCIIDOC" = "x"; then 18303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5 18304$as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;} 18305 have_asciidoc=no 18306 else 18307 have_asciidoc=yes 18308 fi 18309elif test "x$use_asciidoc" = x"yes" ; then 18310 # Extract the first word of "asciidoc", so it can be a program name with args. 18311set dummy asciidoc; ac_word=$2 18312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18313$as_echo_n "checking for $ac_word... " >&6; } 18314if ${ac_cv_path_ASCIIDOC+:} false; then : 18315 $as_echo_n "(cached) " >&6 18316else 18317 case $ASCIIDOC in 18318 [\\/]* | ?:[\\/]*) 18319 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path. 18320 ;; 18321 *) 18322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18323for as_dir in $PATH 18324do 18325 IFS=$as_save_IFS 18326 test -z "$as_dir" && as_dir=. 18327 for ac_exec_ext in '' $ac_executable_extensions; do 18328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18329 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext" 18330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18331 break 2 18332 fi 18333done 18334 done 18335IFS=$as_save_IFS 18336 18337 ;; 18338esac 18339fi 18340ASCIIDOC=$ac_cv_path_ASCIIDOC 18341if test -n "$ASCIIDOC"; then 18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5 18343$as_echo "$ASCIIDOC" >&6; } 18344else 18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18346$as_echo "no" >&6; } 18347fi 18348 18349 18350 if test "x$ASCIIDOC" = "x"; then 18351 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5 18352 fi 18353 have_asciidoc=yes 18354elif test "x$use_asciidoc" = x"no" ; then 18355 if test "x$ASCIIDOC" != "x"; then 18356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5 18357$as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;} 18358 fi 18359 have_asciidoc=no 18360else 18361 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5 18362fi 18363if test "$have_asciidoc" = yes; then 18364 # scrape the asciidoc version 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5 18366$as_echo_n "checking the asciidoc version... " >&6; } 18367 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2` 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5 18369$as_echo "$asciidoc_version" >&6; } 18370 as_arg_v1=$asciidoc_version 18371as_arg_v2=8.4.5 18372awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18373case $? in #( 18374 1) : 18375 if test "x$use_asciidoc" = xauto; then 18376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5 18377$as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;} 18378 have_asciidoc=no 18379 else 18380 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5 18381 fi ;; #( 18382 0) : 18383 ;; #( 18384 2) : 18385 ;; #( 18386 *) : 18387 ;; 18388esac 18389fi 18390 if test "$have_asciidoc" = yes; then 18391 HAVE_ASCIIDOC_TRUE= 18392 HAVE_ASCIIDOC_FALSE='#' 18393else 18394 HAVE_ASCIIDOC_TRUE='#' 18395 HAVE_ASCIIDOC_FALSE= 18396fi 18397 18398 18399 18400# Check whether --enable-malloc0returnsnull was given. 18401if test "${enable_malloc0returnsnull+set}" = set; then : 18402 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 18403else 18404 MALLOC_ZERO_RETURNS_NULL=auto 18405fi 18406 18407 18408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 18409$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 18410if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 18411 if test "$cross_compiling" = yes; then : 18412 MALLOC_ZERO_RETURNS_NULL=yes 18413else 18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18415/* end confdefs.h. */ 18416 18417#include <stdlib.h> 18418 18419int 18420main () 18421{ 18422 18423 char *m0, *r0, *c0, *p; 18424 m0 = malloc(0); 18425 p = malloc(10); 18426 r0 = realloc(p,0); 18427 c0 = calloc(0,10); 18428 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18429 18430 ; 18431 return 0; 18432} 18433_ACEOF 18434if ac_fn_c_try_run "$LINENO"; then : 18435 MALLOC_ZERO_RETURNS_NULL=yes 18436else 18437 MALLOC_ZERO_RETURNS_NULL=no 18438fi 18439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18440 conftest.$ac_objext conftest.beam conftest.$ac_ext 18441fi 18442 18443fi 18444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18445$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18446 18447if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18448 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18449 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18450 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18451else 18452 MALLOC_ZERO_CFLAGS="" 18453 XMALLOC_ZERO_CFLAGS="" 18454 XTMALLOC_ZERO_CFLAGS="" 18455fi 18456 18457 18458 18459 18460 18461 18462# Obtain compiler/linker options for dependencies 18463 18464pkg_failed=no 18465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5 18466$as_echo_n "checking for XI... " >&6; } 18467 18468if test -n "$XI_CFLAGS"; then 18469 pkg_cv_XI_CFLAGS="$XI_CFLAGS" 18470 elif test -n "$PKG_CONFIG"; then 18471 if test -n "$PKG_CONFIG" && \ 18472 { { $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 18473 ($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 18474 ac_status=$? 18475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18476 test $ac_status = 0; }; then 18477 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` 18478else 18479 pkg_failed=yes 18480fi 18481 else 18482 pkg_failed=untried 18483fi 18484if test -n "$XI_LIBS"; then 18485 pkg_cv_XI_LIBS="$XI_LIBS" 18486 elif test -n "$PKG_CONFIG"; then 18487 if test -n "$PKG_CONFIG" && \ 18488 { { $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 18489 ($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 18490 ac_status=$? 18491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18492 test $ac_status = 0; }; then 18493 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` 18494else 18495 pkg_failed=yes 18496fi 18497 else 18498 pkg_failed=untried 18499fi 18500 18501 18502 18503if test $pkg_failed = yes; then 18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18505$as_echo "no" >&6; } 18506 18507if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18508 _pkg_short_errors_supported=yes 18509else 18510 _pkg_short_errors_supported=no 18511fi 18512 if test $_pkg_short_errors_supported = yes; then 18513 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --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>&1` 18514 else 18515 XI_PKG_ERRORS=`$PKG_CONFIG --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>&1` 18516 fi 18517 # Put the nasty error message in config.log where it belongs 18518 echo "$XI_PKG_ERRORS" >&5 18519 18520 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: 18521 18522$XI_PKG_ERRORS 18523 18524Consider adjusting the PKG_CONFIG_PATH environment variable if you 18525installed software in a non-standard prefix. 18526 18527Alternatively, you may set the environment variables XI_CFLAGS 18528and XI_LIBS to avoid the need to call pkg-config. 18529See the pkg-config man page for more details." "$LINENO" 5 18530 18531elif test $pkg_failed = untried; then 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18533$as_echo "no" >&6; } 18534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18536as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18537is in your PATH or set the PKG_CONFIG environment variable to the full 18538path to pkg-config. 18539 18540Alternatively, you may set the environment variables XI_CFLAGS 18541and XI_LIBS to avoid the need to call pkg-config. 18542See the pkg-config man page for more details. 18543 18544To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18545See \`config.log' for more details" "$LINENO" 5; } 18546 18547else 18548 XI_CFLAGS=$pkg_cv_XI_CFLAGS 18549 XI_LIBS=$pkg_cv_XI_LIBS 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18551$as_echo "yes" >&6; } 18552 18553fi 18554# CFLAGS only for PointerBarrier typedef 18555 18556pkg_failed=no 18557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5 18558$as_echo_n "checking for XFIXES... " >&6; } 18559 18560if test -n "$XFIXES_CFLAGS"; then 18561 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS" 18562 elif test -n "$PKG_CONFIG"; then 18563 if test -n "$PKG_CONFIG" && \ 18564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 18565 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 18566 ac_status=$? 18567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18568 test $ac_status = 0; }; then 18569 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes >= 5" 2>/dev/null` 18570else 18571 pkg_failed=yes 18572fi 18573 else 18574 pkg_failed=untried 18575fi 18576if test -n "$XFIXES_LIBS"; then 18577 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS" 18578 elif test -n "$PKG_CONFIG"; then 18579 if test -n "$PKG_CONFIG" && \ 18580 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes >= 5\""; } >&5 18581 ($PKG_CONFIG --exists --print-errors "xfixes >= 5") 2>&5 18582 ac_status=$? 18583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18584 test $ac_status = 0; }; then 18585 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes >= 5" 2>/dev/null` 18586else 18587 pkg_failed=yes 18588fi 18589 else 18590 pkg_failed=untried 18591fi 18592 18593 18594 18595if test $pkg_failed = yes; then 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18597$as_echo "no" >&6; } 18598 18599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18600 _pkg_short_errors_supported=yes 18601else 18602 _pkg_short_errors_supported=no 18603fi 18604 if test $_pkg_short_errors_supported = yes; then 18605 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfixes >= 5" 2>&1` 18606 else 18607 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfixes >= 5" 2>&1` 18608 fi 18609 # Put the nasty error message in config.log where it belongs 18610 echo "$XFIXES_PKG_ERRORS" >&5 18611 18612 as_fn_error $? "Package requirements (xfixes >= 5) were not met: 18613 18614$XFIXES_PKG_ERRORS 18615 18616Consider adjusting the PKG_CONFIG_PATH environment variable if you 18617installed software in a non-standard prefix. 18618 18619Alternatively, you may set the environment variables XFIXES_CFLAGS 18620and XFIXES_LIBS to avoid the need to call pkg-config. 18621See the pkg-config man page for more details." "$LINENO" 5 18622 18623elif test $pkg_failed = untried; then 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18625$as_echo "no" >&6; } 18626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18628as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18629is in your PATH or set the PKG_CONFIG environment variable to the full 18630path to pkg-config. 18631 18632Alternatively, you may set the environment variables XFIXES_CFLAGS 18633and XFIXES_LIBS to avoid the need to call pkg-config. 18634See the pkg-config man page for more details. 18635 18636To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18637See \`config.log' for more details" "$LINENO" 5; } 18638 18639else 18640 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS 18641 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18643$as_echo "yes" >&6; } 18644 18645fi 18646 18647# Check for _XEatDataWords function that may be patched into older Xlib releases 18648SAVE_LIBS="$LIBS" 18649LIBS="$XI_LIBS" 18650for ac_func in _XEatDataWords 18651do : 18652 ac_fn_c_check_func "$LINENO" "_XEatDataWords" "ac_cv_func__XEatDataWords" 18653if test "x$ac_cv_func__XEatDataWords" = xyes; then : 18654 cat >>confdefs.h <<_ACEOF 18655#define HAVE__XEATDATAWORDS 1 18656_ACEOF 18657 18658fi 18659done 18660 18661LIBS="$SAVE_LIBS" 18662 18663# Check for xmlto and asciidoc for man page conversion 18664# (only needed by people building tarballs) 18665if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then 18666 have_doctools=yes 18667else 18668 have_doctools=no 18669fi 18670 if test $have_doctools = yes; then 18671 HAVE_DOCTOOLS_TRUE= 18672 HAVE_DOCTOOLS_FALSE='#' 18673else 18674 HAVE_DOCTOOLS_TRUE='#' 18675 HAVE_DOCTOOLS_FALSE= 18676fi 18677 18678if test $have_doctools = no; then 18679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5 18680$as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;} 18681fi 18682 18683# Determine if the source for man pages is available 18684# It may already be present (tarball) or can be generated using doctools 18685 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \ 18686 test $have_doctools = yes; then 18687 INSTALL_MANPAGES_TRUE= 18688 INSTALL_MANPAGES_FALSE='#' 18689else 18690 INSTALL_MANPAGES_TRUE='#' 18691 INSTALL_MANPAGES_FALSE= 18692fi 18693 18694 18695ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile specs/Makefile xi.pc" 18696 18697cat >confcache <<\_ACEOF 18698# This file is a shell script that caches the results of configure 18699# tests run on this system so they can be shared between configure 18700# scripts and configure runs, see configure's option --config-cache. 18701# It is not useful on other systems. If it contains results you don't 18702# want to keep, you may remove or edit it. 18703# 18704# config.status only pays attention to the cache file if you give it 18705# the --recheck option to rerun configure. 18706# 18707# `ac_cv_env_foo' variables (set or unset) will be overridden when 18708# loading this file, other *unset* `ac_cv_foo' will be assigned the 18709# following values. 18710 18711_ACEOF 18712 18713# The following way of writing the cache mishandles newlines in values, 18714# but we know of no workaround that is simple, portable, and efficient. 18715# So, we kill variables containing newlines. 18716# Ultrix sh set writes to stderr and can't be redirected directly, 18717# and sets the high bit in the cache file unless we assign to the vars. 18718( 18719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18720 eval ac_val=\$$ac_var 18721 case $ac_val in #( 18722 *${as_nl}*) 18723 case $ac_var in #( 18724 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18725$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18726 esac 18727 case $ac_var in #( 18728 _ | IFS | as_nl) ;; #( 18729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18730 *) { eval $ac_var=; unset $ac_var;} ;; 18731 esac ;; 18732 esac 18733 done 18734 18735 (set) 2>&1 | 18736 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18737 *${as_nl}ac_space=\ *) 18738 # `set' does not quote correctly, so add quotes: double-quote 18739 # substitution turns \\\\ into \\, and sed turns \\ into \. 18740 sed -n \ 18741 "s/'/'\\\\''/g; 18742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18743 ;; #( 18744 *) 18745 # `set' quotes correctly as required by POSIX, so do not add quotes. 18746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18747 ;; 18748 esac | 18749 sort 18750) | 18751 sed ' 18752 /^ac_cv_env_/b end 18753 t clear 18754 :clear 18755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18756 t end 18757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18758 :end' >>confcache 18759if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18760 if test -w "$cache_file"; then 18761 if test "x$cache_file" != "x/dev/null"; then 18762 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18763$as_echo "$as_me: updating cache $cache_file" >&6;} 18764 if test ! -f "$cache_file" || test -h "$cache_file"; then 18765 cat confcache >"$cache_file" 18766 else 18767 case $cache_file in #( 18768 */* | ?:*) 18769 mv -f confcache "$cache_file"$$ && 18770 mv -f "$cache_file"$$ "$cache_file" ;; #( 18771 *) 18772 mv -f confcache "$cache_file" ;; 18773 esac 18774 fi 18775 fi 18776 else 18777 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18778$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18779 fi 18780fi 18781rm -f confcache 18782 18783test "x$prefix" = xNONE && prefix=$ac_default_prefix 18784# Let make expand exec_prefix. 18785test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18786 18787DEFS=-DHAVE_CONFIG_H 18788 18789ac_libobjs= 18790ac_ltlibobjs= 18791U= 18792for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18793 # 1. Remove the extension, and $U if already installed. 18794 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18795 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18796 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18797 # will be set to the directory where LIBOBJS objects are built. 18798 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18799 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18800done 18801LIBOBJS=$ac_libobjs 18802 18803LTLIBOBJS=$ac_ltlibobjs 18804 18805 18806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18807$as_echo_n "checking that generated files are newer than configure... " >&6; } 18808 if test -n "$am_sleep_pid"; then 18809 # Hide warnings about reused PIDs. 18810 wait $am_sleep_pid 2>/dev/null 18811 fi 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18813$as_echo "done" >&6; } 18814 if test -n "$EXEEXT"; then 18815 am__EXEEXT_TRUE= 18816 am__EXEEXT_FALSE='#' 18817else 18818 am__EXEEXT_TRUE='#' 18819 am__EXEEXT_FALSE= 18820fi 18821 18822if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18823 as_fn_error $? "conditional \"AMDEP\" was never defined. 18824Usually this means the macro was only invoked conditionally." "$LINENO" 5 18825fi 18826if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18827 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18828Usually this means the macro was only invoked conditionally." "$LINENO" 5 18829fi 18830if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 18831 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 18832Usually this means the macro was only invoked conditionally." "$LINENO" 5 18833fi 18834if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 18835 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 18836Usually this means the macro was only invoked conditionally." "$LINENO" 5 18837fi 18838if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 18839 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 18840Usually this means the macro was only invoked conditionally." "$LINENO" 5 18841fi 18842if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 18843 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 18844Usually this means the macro was only invoked conditionally." "$LINENO" 5 18845fi 18846if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 18847 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 18848Usually this means the macro was only invoked conditionally." "$LINENO" 5 18849fi 18850if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 18851 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 18852Usually this means the macro was only invoked conditionally." "$LINENO" 5 18853fi 18854if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 18855 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 18856Usually this means the macro was only invoked conditionally." "$LINENO" 5 18857fi 18858if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then 18859 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined. 18860Usually this means the macro was only invoked conditionally." "$LINENO" 5 18861fi 18862if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then 18863 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined. 18864Usually this means the macro was only invoked conditionally." "$LINENO" 5 18865fi 18866if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 18867 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 18868Usually this means the macro was only invoked conditionally." "$LINENO" 5 18869fi 18870 18871: "${CONFIG_STATUS=./config.status}" 18872ac_write_fail=0 18873ac_clean_files_save=$ac_clean_files 18874ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18875{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18876$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18877as_write_fail=0 18878cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18879#! $SHELL 18880# Generated by $as_me. 18881# Run this file to recreate the current configuration. 18882# Compiler output produced by configure, useful for debugging 18883# configure, is in config.log if it exists. 18884 18885debug=false 18886ac_cs_recheck=false 18887ac_cs_silent=false 18888 18889SHELL=\${CONFIG_SHELL-$SHELL} 18890export SHELL 18891_ASEOF 18892cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18893## -------------------- ## 18894## M4sh Initialization. ## 18895## -------------------- ## 18896 18897# Be more Bourne compatible 18898DUALCASE=1; export DUALCASE # for MKS sh 18899if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18900 emulate sh 18901 NULLCMD=: 18902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18903 # is contrary to our usage. Disable this feature. 18904 alias -g '${1+"$@"}'='"$@"' 18905 setopt NO_GLOB_SUBST 18906else 18907 case `(set -o) 2>/dev/null` in #( 18908 *posix*) : 18909 set -o posix ;; #( 18910 *) : 18911 ;; 18912esac 18913fi 18914 18915 18916as_nl=' 18917' 18918export as_nl 18919# Printing a long string crashes Solaris 7 /usr/bin/printf. 18920as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18921as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18922as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18923# Prefer a ksh shell builtin over an external printf program on Solaris, 18924# but without wasting forks for bash or zsh. 18925if test -z "$BASH_VERSION$ZSH_VERSION" \ 18926 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18927 as_echo='print -r --' 18928 as_echo_n='print -rn --' 18929elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18930 as_echo='printf %s\n' 18931 as_echo_n='printf %s' 18932else 18933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18934 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18935 as_echo_n='/usr/ucb/echo -n' 18936 else 18937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18938 as_echo_n_body='eval 18939 arg=$1; 18940 case $arg in #( 18941 *"$as_nl"*) 18942 expr "X$arg" : "X\\(.*\\)$as_nl"; 18943 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18944 esac; 18945 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18946 ' 18947 export as_echo_n_body 18948 as_echo_n='sh -c $as_echo_n_body as_echo' 18949 fi 18950 export as_echo_body 18951 as_echo='sh -c $as_echo_body as_echo' 18952fi 18953 18954# The user is always right. 18955if test "${PATH_SEPARATOR+set}" != set; then 18956 PATH_SEPARATOR=: 18957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18959 PATH_SEPARATOR=';' 18960 } 18961fi 18962 18963 18964# IFS 18965# We need space, tab and new line, in precisely that order. Quoting is 18966# there to prevent editors from complaining about space-tab. 18967# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18968# splitting by setting IFS to empty value.) 18969IFS=" "" $as_nl" 18970 18971# Find who we are. Look in the path if we contain no directory separator. 18972as_myself= 18973case $0 in #(( 18974 *[\\/]* ) as_myself=$0 ;; 18975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18976for as_dir in $PATH 18977do 18978 IFS=$as_save_IFS 18979 test -z "$as_dir" && as_dir=. 18980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18981 done 18982IFS=$as_save_IFS 18983 18984 ;; 18985esac 18986# We did not find ourselves, most probably we were run as `sh COMMAND' 18987# in which case we are not to be found in the path. 18988if test "x$as_myself" = x; then 18989 as_myself=$0 18990fi 18991if test ! -f "$as_myself"; then 18992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18993 exit 1 18994fi 18995 18996# Unset variables that we do not need and which cause bugs (e.g. in 18997# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18998# suppresses any "Segmentation fault" message there. '((' could 18999# trigger a bug in pdksh 5.2.14. 19000for as_var in BASH_ENV ENV MAIL MAILPATH 19001do eval test x\${$as_var+set} = xset \ 19002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19003done 19004PS1='$ ' 19005PS2='> ' 19006PS4='+ ' 19007 19008# NLS nuisances. 19009LC_ALL=C 19010export LC_ALL 19011LANGUAGE=C 19012export LANGUAGE 19013 19014# CDPATH. 19015(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19016 19017 19018# as_fn_error STATUS ERROR [LINENO LOG_FD] 19019# ---------------------------------------- 19020# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19021# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19022# script with STATUS, using 1 if that was 0. 19023as_fn_error () 19024{ 19025 as_status=$1; test $as_status -eq 0 && as_status=1 19026 if test "$4"; then 19027 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19029 fi 19030 $as_echo "$as_me: error: $2" >&2 19031 as_fn_exit $as_status 19032} # as_fn_error 19033 19034 19035# as_fn_set_status STATUS 19036# ----------------------- 19037# Set $? to STATUS, without forking. 19038as_fn_set_status () 19039{ 19040 return $1 19041} # as_fn_set_status 19042 19043# as_fn_exit STATUS 19044# ----------------- 19045# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19046as_fn_exit () 19047{ 19048 set +e 19049 as_fn_set_status $1 19050 exit $1 19051} # as_fn_exit 19052 19053# as_fn_unset VAR 19054# --------------- 19055# Portably unset VAR. 19056as_fn_unset () 19057{ 19058 { eval $1=; unset $1;} 19059} 19060as_unset=as_fn_unset 19061# as_fn_append VAR VALUE 19062# ---------------------- 19063# Append the text in VALUE to the end of the definition contained in VAR. Take 19064# advantage of any shell optimizations that allow amortized linear growth over 19065# repeated appends, instead of the typical quadratic growth present in naive 19066# implementations. 19067if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19068 eval 'as_fn_append () 19069 { 19070 eval $1+=\$2 19071 }' 19072else 19073 as_fn_append () 19074 { 19075 eval $1=\$$1\$2 19076 } 19077fi # as_fn_append 19078 19079# as_fn_arith ARG... 19080# ------------------ 19081# Perform arithmetic evaluation on the ARGs, and store the result in the 19082# global $as_val. Take advantage of shells that can avoid forks. The arguments 19083# must be portable across $(()) and expr. 19084if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19085 eval 'as_fn_arith () 19086 { 19087 as_val=$(( $* )) 19088 }' 19089else 19090 as_fn_arith () 19091 { 19092 as_val=`expr "$@" || test $? -eq 1` 19093 } 19094fi # as_fn_arith 19095 19096 19097if expr a : '\(a\)' >/dev/null 2>&1 && 19098 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19099 as_expr=expr 19100else 19101 as_expr=false 19102fi 19103 19104if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19105 as_basename=basename 19106else 19107 as_basename=false 19108fi 19109 19110if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19111 as_dirname=dirname 19112else 19113 as_dirname=false 19114fi 19115 19116as_me=`$as_basename -- "$0" || 19117$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19118 X"$0" : 'X\(//\)$' \| \ 19119 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19120$as_echo X/"$0" | 19121 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19122 s//\1/ 19123 q 19124 } 19125 /^X\/\(\/\/\)$/{ 19126 s//\1/ 19127 q 19128 } 19129 /^X\/\(\/\).*/{ 19130 s//\1/ 19131 q 19132 } 19133 s/.*/./; q'` 19134 19135# Avoid depending upon Character Ranges. 19136as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19137as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19138as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19139as_cr_digits='0123456789' 19140as_cr_alnum=$as_cr_Letters$as_cr_digits 19141 19142ECHO_C= ECHO_N= ECHO_T= 19143case `echo -n x` in #((((( 19144-n*) 19145 case `echo 'xy\c'` in 19146 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19147 xy) ECHO_C='\c';; 19148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19149 ECHO_T=' ';; 19150 esac;; 19151*) 19152 ECHO_N='-n';; 19153esac 19154 19155rm -f conf$$ conf$$.exe conf$$.file 19156if test -d conf$$.dir; then 19157 rm -f conf$$.dir/conf$$.file 19158else 19159 rm -f conf$$.dir 19160 mkdir conf$$.dir 2>/dev/null 19161fi 19162if (echo >conf$$.file) 2>/dev/null; then 19163 if ln -s conf$$.file conf$$ 2>/dev/null; then 19164 as_ln_s='ln -s' 19165 # ... but there are two gotchas: 19166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19168 # In both cases, we have to default to `cp -pR'. 19169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19170 as_ln_s='cp -pR' 19171 elif ln conf$$.file conf$$ 2>/dev/null; then 19172 as_ln_s=ln 19173 else 19174 as_ln_s='cp -pR' 19175 fi 19176else 19177 as_ln_s='cp -pR' 19178fi 19179rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19180rmdir conf$$.dir 2>/dev/null 19181 19182 19183# as_fn_mkdir_p 19184# ------------- 19185# Create "$as_dir" as a directory, including parents if necessary. 19186as_fn_mkdir_p () 19187{ 19188 19189 case $as_dir in #( 19190 -*) as_dir=./$as_dir;; 19191 esac 19192 test -d "$as_dir" || eval $as_mkdir_p || { 19193 as_dirs= 19194 while :; do 19195 case $as_dir in #( 19196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19197 *) as_qdir=$as_dir;; 19198 esac 19199 as_dirs="'$as_qdir' $as_dirs" 19200 as_dir=`$as_dirname -- "$as_dir" || 19201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19202 X"$as_dir" : 'X\(//\)[^/]' \| \ 19203 X"$as_dir" : 'X\(//\)$' \| \ 19204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19205$as_echo X"$as_dir" | 19206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19207 s//\1/ 19208 q 19209 } 19210 /^X\(\/\/\)[^/].*/{ 19211 s//\1/ 19212 q 19213 } 19214 /^X\(\/\/\)$/{ 19215 s//\1/ 19216 q 19217 } 19218 /^X\(\/\).*/{ 19219 s//\1/ 19220 q 19221 } 19222 s/.*/./; q'` 19223 test -d "$as_dir" && break 19224 done 19225 test -z "$as_dirs" || eval "mkdir $as_dirs" 19226 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19227 19228 19229} # as_fn_mkdir_p 19230if mkdir -p . 2>/dev/null; then 19231 as_mkdir_p='mkdir -p "$as_dir"' 19232else 19233 test -d ./-p && rmdir ./-p 19234 as_mkdir_p=false 19235fi 19236 19237 19238# as_fn_executable_p FILE 19239# ----------------------- 19240# Test if FILE is an executable regular file. 19241as_fn_executable_p () 19242{ 19243 test -f "$1" && test -x "$1" 19244} # as_fn_executable_p 19245as_test_x='test -x' 19246as_executable_p=as_fn_executable_p 19247 19248# Sed expression to map a string onto a valid CPP name. 19249as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19250 19251# Sed expression to map a string onto a valid variable name. 19252as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19253 19254 19255exec 6>&1 19256## ----------------------------------- ## 19257## Main body of $CONFIG_STATUS script. ## 19258## ----------------------------------- ## 19259_ASEOF 19260test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19261 19262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19263# Save the log message, to keep $0 and so on meaningful, and to 19264# report actual input values of CONFIG_FILES etc. instead of their 19265# values after options handling. 19266ac_log=" 19267This file was extended by libXi $as_me 1.7.2, which was 19268generated by GNU Autoconf 2.69. Invocation command line was 19269 19270 CONFIG_FILES = $CONFIG_FILES 19271 CONFIG_HEADERS = $CONFIG_HEADERS 19272 CONFIG_LINKS = $CONFIG_LINKS 19273 CONFIG_COMMANDS = $CONFIG_COMMANDS 19274 $ $0 $@ 19275 19276on `(hostname || uname -n) 2>/dev/null | sed 1q` 19277" 19278 19279_ACEOF 19280 19281case $ac_config_files in *" 19282"*) set x $ac_config_files; shift; ac_config_files=$*;; 19283esac 19284 19285case $ac_config_headers in *" 19286"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19287esac 19288 19289 19290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19291# Files that config.status was made for. 19292config_files="$ac_config_files" 19293config_headers="$ac_config_headers" 19294config_commands="$ac_config_commands" 19295 19296_ACEOF 19297 19298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19299ac_cs_usage="\ 19300\`$as_me' instantiates files and other configuration actions 19301from templates according to the current configuration. Unless the files 19302and actions are specified as TAGs, all are instantiated by default. 19303 19304Usage: $0 [OPTION]... [TAG]... 19305 19306 -h, --help print this help, then exit 19307 -V, --version print version number and configuration settings, then exit 19308 --config print configuration, then exit 19309 -q, --quiet, --silent 19310 do not print progress messages 19311 -d, --debug don't remove temporary files 19312 --recheck update $as_me by reconfiguring in the same conditions 19313 --file=FILE[:TEMPLATE] 19314 instantiate the configuration file FILE 19315 --header=FILE[:TEMPLATE] 19316 instantiate the configuration header FILE 19317 19318Configuration files: 19319$config_files 19320 19321Configuration headers: 19322$config_headers 19323 19324Configuration commands: 19325$config_commands 19326 19327Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19328 19329_ACEOF 19330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19331ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19332ac_cs_version="\\ 19333libXi config.status 1.7.2 19334configured by $0, generated by GNU Autoconf 2.69, 19335 with options \\"\$ac_cs_config\\" 19336 19337Copyright (C) 2012 Free Software Foundation, Inc. 19338This config.status script is free software; the Free Software Foundation 19339gives unlimited permission to copy, distribute and modify it." 19340 19341ac_pwd='$ac_pwd' 19342srcdir='$srcdir' 19343INSTALL='$INSTALL' 19344MKDIR_P='$MKDIR_P' 19345AWK='$AWK' 19346test -n "\$AWK" || AWK=awk 19347_ACEOF 19348 19349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19350# The default lists apply if the user does not specify any file. 19351ac_need_defaults=: 19352while test $# != 0 19353do 19354 case $1 in 19355 --*=?*) 19356 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19358 ac_shift=: 19359 ;; 19360 --*=) 19361 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19362 ac_optarg= 19363 ac_shift=: 19364 ;; 19365 *) 19366 ac_option=$1 19367 ac_optarg=$2 19368 ac_shift=shift 19369 ;; 19370 esac 19371 19372 case $ac_option in 19373 # Handling of the options. 19374 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19375 ac_cs_recheck=: ;; 19376 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19377 $as_echo "$ac_cs_version"; exit ;; 19378 --config | --confi | --conf | --con | --co | --c ) 19379 $as_echo "$ac_cs_config"; exit ;; 19380 --debug | --debu | --deb | --de | --d | -d ) 19381 debug=: ;; 19382 --file | --fil | --fi | --f ) 19383 $ac_shift 19384 case $ac_optarg in 19385 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19386 '') as_fn_error $? "missing file argument" ;; 19387 esac 19388 as_fn_append CONFIG_FILES " '$ac_optarg'" 19389 ac_need_defaults=false;; 19390 --header | --heade | --head | --hea ) 19391 $ac_shift 19392 case $ac_optarg in 19393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19394 esac 19395 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19396 ac_need_defaults=false;; 19397 --he | --h) 19398 # Conflict between --help and --header 19399 as_fn_error $? "ambiguous option: \`$1' 19400Try \`$0 --help' for more information.";; 19401 --help | --hel | -h ) 19402 $as_echo "$ac_cs_usage"; exit ;; 19403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19404 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19405 ac_cs_silent=: ;; 19406 19407 # This is an error. 19408 -*) as_fn_error $? "unrecognized option: \`$1' 19409Try \`$0 --help' for more information." ;; 19410 19411 *) as_fn_append ac_config_targets " $1" 19412 ac_need_defaults=false ;; 19413 19414 esac 19415 shift 19416done 19417 19418ac_configure_extra_args= 19419 19420if $ac_cs_silent; then 19421 exec 6>/dev/null 19422 ac_configure_extra_args="$ac_configure_extra_args --silent" 19423fi 19424 19425_ACEOF 19426cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19427if \$ac_cs_recheck; then 19428 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19429 shift 19430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19431 CONFIG_SHELL='$SHELL' 19432 export CONFIG_SHELL 19433 exec "\$@" 19434fi 19435 19436_ACEOF 19437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19438exec 5>>config.log 19439{ 19440 echo 19441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19442## Running $as_me. ## 19443_ASBOX 19444 $as_echo "$ac_log" 19445} >&5 19446 19447_ACEOF 19448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19449# 19450# INIT-COMMANDS 19451# 19452AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19453 19454 19455# The HP-UX ksh and POSIX shell print the target directory to stdout 19456# if CDPATH is set. 19457(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19458 19459sed_quote_subst='$sed_quote_subst' 19460double_quote_subst='$double_quote_subst' 19461delay_variable_subst='$delay_variable_subst' 19462macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19463macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19464enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19465enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19466pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19467enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19468SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19469ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19470PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19471host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19472host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19473host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19474build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19475build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19476build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19477SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19478Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19479GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19480EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19481FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19482LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19483NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19484LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19485max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19486ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19487exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19488lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19489lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19490lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19491lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19492lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19493reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19494reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19495OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19496deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19497file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19498file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19499want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19500DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19501sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19502AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19503AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19504archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19505STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19506RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19507old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19508old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19509old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19510lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19511CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19512CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19513compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19514GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19515lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19516lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19517lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19518lt_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"`' 19519nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19520lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19521objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19522MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19523lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19524lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19525lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19526lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19527lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19528need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19529MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19530DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19531NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19532LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19533OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19534OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19535libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19536shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19537extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19538archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19539enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19540export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19541whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19542compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19543old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19544old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19545archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19546archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19547module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19548module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19549with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19550allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19551no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19552hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19553hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19554hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19555hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19556hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19557hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19558hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19559inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19560link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19561always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19562export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19563exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19564include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19565prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19566postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19567file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19568variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19569need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19570need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19571version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19572runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19573shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19574shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19575libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19576library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19577soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19578install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19579postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19580postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19581finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19582finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19583hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19584sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19585sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19586hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19587enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19588enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19589enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19590old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19591striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19592 19593LTCC='$LTCC' 19594LTCFLAGS='$LTCFLAGS' 19595compiler='$compiler_DEFAULT' 19596 19597# A function that is used when there is no print builtin or printf. 19598func_fallback_echo () 19599{ 19600 eval 'cat <<_LTECHO_EOF 19601\$1 19602_LTECHO_EOF' 19603} 19604 19605# Quote evaled strings. 19606for var in SHELL \ 19607ECHO \ 19608PATH_SEPARATOR \ 19609SED \ 19610GREP \ 19611EGREP \ 19612FGREP \ 19613LD \ 19614NM \ 19615LN_S \ 19616lt_SP2NL \ 19617lt_NL2SP \ 19618reload_flag \ 19619OBJDUMP \ 19620deplibs_check_method \ 19621file_magic_cmd \ 19622file_magic_glob \ 19623want_nocaseglob \ 19624DLLTOOL \ 19625sharedlib_from_linklib_cmd \ 19626AR \ 19627AR_FLAGS \ 19628archiver_list_spec \ 19629STRIP \ 19630RANLIB \ 19631CC \ 19632CFLAGS \ 19633compiler \ 19634lt_cv_sys_global_symbol_pipe \ 19635lt_cv_sys_global_symbol_to_cdecl \ 19636lt_cv_sys_global_symbol_to_c_name_address \ 19637lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19638nm_file_list_spec \ 19639lt_prog_compiler_no_builtin_flag \ 19640lt_prog_compiler_pic \ 19641lt_prog_compiler_wl \ 19642lt_prog_compiler_static \ 19643lt_cv_prog_compiler_c_o \ 19644need_locks \ 19645MANIFEST_TOOL \ 19646DSYMUTIL \ 19647NMEDIT \ 19648LIPO \ 19649OTOOL \ 19650OTOOL64 \ 19651shrext_cmds \ 19652export_dynamic_flag_spec \ 19653whole_archive_flag_spec \ 19654compiler_needs_object \ 19655with_gnu_ld \ 19656allow_undefined_flag \ 19657no_undefined_flag \ 19658hardcode_libdir_flag_spec \ 19659hardcode_libdir_separator \ 19660exclude_expsyms \ 19661include_expsyms \ 19662file_list_spec \ 19663variables_saved_for_relink \ 19664libname_spec \ 19665library_names_spec \ 19666soname_spec \ 19667install_override_mode \ 19668finish_eval \ 19669old_striplib \ 19670striplib; do 19671 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19672 *[\\\\\\\`\\"\\\$]*) 19673 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19674 ;; 19675 *) 19676 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19677 ;; 19678 esac 19679done 19680 19681# Double-quote double-evaled strings. 19682for var in reload_cmds \ 19683old_postinstall_cmds \ 19684old_postuninstall_cmds \ 19685old_archive_cmds \ 19686extract_expsyms_cmds \ 19687old_archive_from_new_cmds \ 19688old_archive_from_expsyms_cmds \ 19689archive_cmds \ 19690archive_expsym_cmds \ 19691module_cmds \ 19692module_expsym_cmds \ 19693export_symbols_cmds \ 19694prelink_cmds \ 19695postlink_cmds \ 19696postinstall_cmds \ 19697postuninstall_cmds \ 19698finish_cmds \ 19699sys_lib_search_path_spec \ 19700sys_lib_dlsearch_path_spec; do 19701 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19702 *[\\\\\\\`\\"\\\$]*) 19703 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19704 ;; 19705 *) 19706 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19707 ;; 19708 esac 19709done 19710 19711ac_aux_dir='$ac_aux_dir' 19712xsi_shell='$xsi_shell' 19713lt_shell_append='$lt_shell_append' 19714 19715# See if we are running on zsh, and set the options which allow our 19716# commands through without removal of \ escapes INIT. 19717if test -n "\${ZSH_VERSION+set}" ; then 19718 setopt NO_GLOB_SUBST 19719fi 19720 19721 19722 PACKAGE='$PACKAGE' 19723 VERSION='$VERSION' 19724 TIMESTAMP='$TIMESTAMP' 19725 RM='$RM' 19726 ofile='$ofile' 19727 19728 19729 19730 19731_ACEOF 19732 19733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19734 19735# Handling of arguments. 19736for ac_config_target in $ac_config_targets 19737do 19738 case $ac_config_target in 19739 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 19740 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19741 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19742 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19743 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19744 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19745 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 19746 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;; 19747 19748 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19749 esac 19750done 19751 19752 19753# If the user did not use the arguments to specify the items to instantiate, 19754# then the envvar interface is used. Set only those that are not. 19755# We use the long form for the default assignment because of an extremely 19756# bizarre bug on SunOS 4.1.3. 19757if $ac_need_defaults; then 19758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19760 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19761fi 19762 19763# Have a temporary directory for convenience. Make it in the build tree 19764# simply because there is no reason against having it here, and in addition, 19765# creating and moving files from /tmp can sometimes cause problems. 19766# Hook for its removal unless debugging. 19767# Note that there is a small window in which the directory will not be cleaned: 19768# after its creation but before its name has been assigned to `$tmp'. 19769$debug || 19770{ 19771 tmp= ac_tmp= 19772 trap 'exit_status=$? 19773 : "${ac_tmp:=$tmp}" 19774 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19775' 0 19776 trap 'as_fn_exit 1' 1 2 13 15 19777} 19778# Create a (secure) tmp directory for tmp files. 19779 19780{ 19781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19782 test -d "$tmp" 19783} || 19784{ 19785 tmp=./conf$$-$RANDOM 19786 (umask 077 && mkdir "$tmp") 19787} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19788ac_tmp=$tmp 19789 19790# Set up the scripts for CONFIG_FILES section. 19791# No need to generate them if there are no CONFIG_FILES. 19792# This happens for instance with `./config.status config.h'. 19793if test -n "$CONFIG_FILES"; then 19794 19795 19796ac_cr=`echo X | tr X '\015'` 19797# On cygwin, bash can eat \r inside `` if the user requested igncr. 19798# But we know of no other shell where ac_cr would be empty at this 19799# point, so we can use a bashism as a fallback. 19800if test "x$ac_cr" = x; then 19801 eval ac_cr=\$\'\\r\' 19802fi 19803ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19804if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19805 ac_cs_awk_cr='\\r' 19806else 19807 ac_cs_awk_cr=$ac_cr 19808fi 19809 19810echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19811_ACEOF 19812 19813 19814{ 19815 echo "cat >conf$$subs.awk <<_ACEOF" && 19816 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19817 echo "_ACEOF" 19818} >conf$$subs.sh || 19819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19820ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19821ac_delim='%!_!# ' 19822for ac_last_try in false false false false false :; do 19823 . ./conf$$subs.sh || 19824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19825 19826 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19827 if test $ac_delim_n = $ac_delim_num; then 19828 break 19829 elif $ac_last_try; then 19830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19831 else 19832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19833 fi 19834done 19835rm -f conf$$subs.sh 19836 19837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19838cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19839_ACEOF 19840sed -n ' 19841h 19842s/^/S["/; s/!.*/"]=/ 19843p 19844g 19845s/^[^!]*!// 19846:repl 19847t repl 19848s/'"$ac_delim"'$// 19849t delim 19850:nl 19851h 19852s/\(.\{148\}\)..*/\1/ 19853t more1 19854s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19855p 19856n 19857b repl 19858:more1 19859s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19860p 19861g 19862s/.\{148\}// 19863t nl 19864:delim 19865h 19866s/\(.\{148\}\)..*/\1/ 19867t more2 19868s/["\\]/\\&/g; s/^/"/; s/$/"/ 19869p 19870b 19871:more2 19872s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19873p 19874g 19875s/.\{148\}// 19876t delim 19877' <conf$$subs.awk | sed ' 19878/^[^""]/{ 19879 N 19880 s/\n// 19881} 19882' >>$CONFIG_STATUS || ac_write_fail=1 19883rm -f conf$$subs.awk 19884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19885_ACAWK 19886cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19887 for (key in S) S_is_set[key] = 1 19888 FS = "" 19889 19890} 19891{ 19892 line = $ 0 19893 nfields = split(line, field, "@") 19894 substed = 0 19895 len = length(field[1]) 19896 for (i = 2; i < nfields; i++) { 19897 key = field[i] 19898 keylen = length(key) 19899 if (S_is_set[key]) { 19900 value = S[key] 19901 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19902 len += length(value) + length(field[++i]) 19903 substed = 1 19904 } else 19905 len += 1 + keylen 19906 } 19907 19908 print line 19909} 19910 19911_ACAWK 19912_ACEOF 19913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19914if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19915 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19916else 19917 cat 19918fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19919 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19920_ACEOF 19921 19922# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19923# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19924# trailing colons and then remove the whole line if VPATH becomes empty 19925# (actually we leave an empty line to preserve line numbers). 19926if test "x$srcdir" = x.; then 19927 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19928h 19929s/// 19930s/^/:/ 19931s/[ ]*$/:/ 19932s/:\$(srcdir):/:/g 19933s/:\${srcdir}:/:/g 19934s/:@srcdir@:/:/g 19935s/^:*// 19936s/:*$// 19937x 19938s/\(=[ ]*\).*/\1/ 19939G 19940s/\n// 19941s/^[^=]*=[ ]*$// 19942}' 19943fi 19944 19945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19946fi # test -n "$CONFIG_FILES" 19947 19948# Set up the scripts for CONFIG_HEADERS section. 19949# No need to generate them if there are no CONFIG_HEADERS. 19950# This happens for instance with `./config.status Makefile'. 19951if test -n "$CONFIG_HEADERS"; then 19952cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19953BEGIN { 19954_ACEOF 19955 19956# Transform confdefs.h into an awk script `defines.awk', embedded as 19957# here-document in config.status, that substitutes the proper values into 19958# config.h.in to produce config.h. 19959 19960# Create a delimiter string that does not exist in confdefs.h, to ease 19961# handling of long lines. 19962ac_delim='%!_!# ' 19963for ac_last_try in false false :; do 19964 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19965 if test -z "$ac_tt"; then 19966 break 19967 elif $ac_last_try; then 19968 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19969 else 19970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19971 fi 19972done 19973 19974# For the awk script, D is an array of macro values keyed by name, 19975# likewise P contains macro parameters if any. Preserve backslash 19976# newline sequences. 19977 19978ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19979sed -n ' 19980s/.\{148\}/&'"$ac_delim"'/g 19981t rset 19982:rset 19983s/^[ ]*#[ ]*define[ ][ ]*/ / 19984t def 19985d 19986:def 19987s/\\$// 19988t bsnl 19989s/["\\]/\\&/g 19990s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19991D["\1"]=" \3"/p 19992s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19993d 19994:bsnl 19995s/["\\]/\\&/g 19996s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19997D["\1"]=" \3\\\\\\n"\\/p 19998t cont 19999s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20000t cont 20001d 20002:cont 20003n 20004s/.\{148\}/&'"$ac_delim"'/g 20005t clear 20006:clear 20007s/\\$// 20008t bsnlc 20009s/["\\]/\\&/g; s/^/"/; s/$/"/p 20010d 20011:bsnlc 20012s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20013b cont 20014' <confdefs.h | sed ' 20015s/'"$ac_delim"'/"\\\ 20016"/g' >>$CONFIG_STATUS || ac_write_fail=1 20017 20018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20019 for (key in D) D_is_set[key] = 1 20020 FS = "" 20021} 20022/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20023 line = \$ 0 20024 split(line, arg, " ") 20025 if (arg[1] == "#") { 20026 defundef = arg[2] 20027 mac1 = arg[3] 20028 } else { 20029 defundef = substr(arg[1], 2) 20030 mac1 = arg[2] 20031 } 20032 split(mac1, mac2, "(") #) 20033 macro = mac2[1] 20034 prefix = substr(line, 1, index(line, defundef) - 1) 20035 if (D_is_set[macro]) { 20036 # Preserve the white space surrounding the "#". 20037 print prefix "define", macro P[macro] D[macro] 20038 next 20039 } else { 20040 # Replace #undef with comments. This is necessary, for example, 20041 # in the case of _POSIX_SOURCE, which is predefined and required 20042 # on some systems where configure will not decide to define it. 20043 if (defundef == "undef") { 20044 print "/*", prefix defundef, macro, "*/" 20045 next 20046 } 20047 } 20048} 20049{ print } 20050_ACAWK 20051_ACEOF 20052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20053 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20054fi # test -n "$CONFIG_HEADERS" 20055 20056 20057eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20058shift 20059for ac_tag 20060do 20061 case $ac_tag in 20062 :[FHLC]) ac_mode=$ac_tag; continue;; 20063 esac 20064 case $ac_mode$ac_tag in 20065 :[FHL]*:*);; 20066 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20067 :[FH]-) ac_tag=-:-;; 20068 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20069 esac 20070 ac_save_IFS=$IFS 20071 IFS=: 20072 set x $ac_tag 20073 IFS=$ac_save_IFS 20074 shift 20075 ac_file=$1 20076 shift 20077 20078 case $ac_mode in 20079 :L) ac_source=$1;; 20080 :[FH]) 20081 ac_file_inputs= 20082 for ac_f 20083 do 20084 case $ac_f in 20085 -) ac_f="$ac_tmp/stdin";; 20086 *) # Look for the file first in the build tree, then in the source tree 20087 # (if the path is not absolute). The absolute path cannot be DOS-style, 20088 # because $ac_f cannot contain `:'. 20089 test -f "$ac_f" || 20090 case $ac_f in 20091 [\\/$]*) false;; 20092 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20093 esac || 20094 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20095 esac 20096 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20097 as_fn_append ac_file_inputs " '$ac_f'" 20098 done 20099 20100 # Let's still pretend it is `configure' which instantiates (i.e., don't 20101 # use $as_me), people would be surprised to read: 20102 # /* config.h. Generated by config.status. */ 20103 configure_input='Generated from '` 20104 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20105 `' by configure.' 20106 if test x"$ac_file" != x-; then 20107 configure_input="$ac_file. $configure_input" 20108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20109$as_echo "$as_me: creating $ac_file" >&6;} 20110 fi 20111 # Neutralize special characters interpreted by sed in replacement strings. 20112 case $configure_input in #( 20113 *\&* | *\|* | *\\* ) 20114 ac_sed_conf_input=`$as_echo "$configure_input" | 20115 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20116 *) ac_sed_conf_input=$configure_input;; 20117 esac 20118 20119 case $ac_tag in 20120 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20122 esac 20123 ;; 20124 esac 20125 20126 ac_dir=`$as_dirname -- "$ac_file" || 20127$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20128 X"$ac_file" : 'X\(//\)[^/]' \| \ 20129 X"$ac_file" : 'X\(//\)$' \| \ 20130 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20131$as_echo X"$ac_file" | 20132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20133 s//\1/ 20134 q 20135 } 20136 /^X\(\/\/\)[^/].*/{ 20137 s//\1/ 20138 q 20139 } 20140 /^X\(\/\/\)$/{ 20141 s//\1/ 20142 q 20143 } 20144 /^X\(\/\).*/{ 20145 s//\1/ 20146 q 20147 } 20148 s/.*/./; q'` 20149 as_dir="$ac_dir"; as_fn_mkdir_p 20150 ac_builddir=. 20151 20152case "$ac_dir" in 20153.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20154*) 20155 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20156 # A ".." for each directory in $ac_dir_suffix. 20157 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20158 case $ac_top_builddir_sub in 20159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20161 esac ;; 20162esac 20163ac_abs_top_builddir=$ac_pwd 20164ac_abs_builddir=$ac_pwd$ac_dir_suffix 20165# for backward compatibility: 20166ac_top_builddir=$ac_top_build_prefix 20167 20168case $srcdir in 20169 .) # We are building in place. 20170 ac_srcdir=. 20171 ac_top_srcdir=$ac_top_builddir_sub 20172 ac_abs_top_srcdir=$ac_pwd ;; 20173 [\\/]* | ?:[\\/]* ) # Absolute name. 20174 ac_srcdir=$srcdir$ac_dir_suffix; 20175 ac_top_srcdir=$srcdir 20176 ac_abs_top_srcdir=$srcdir ;; 20177 *) # Relative name. 20178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20179 ac_top_srcdir=$ac_top_build_prefix$srcdir 20180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20181esac 20182ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20183 20184 20185 case $ac_mode in 20186 :F) 20187 # 20188 # CONFIG_FILE 20189 # 20190 20191 case $INSTALL in 20192 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20193 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20194 esac 20195 ac_MKDIR_P=$MKDIR_P 20196 case $MKDIR_P in 20197 [\\/$]* | ?:[\\/]* ) ;; 20198 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20199 esac 20200_ACEOF 20201 20202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20203# If the template does not know about datarootdir, expand it. 20204# FIXME: This hack should be removed a few years after 2.60. 20205ac_datarootdir_hack=; ac_datarootdir_seen= 20206ac_sed_dataroot=' 20207/datarootdir/ { 20208 p 20209 q 20210} 20211/@datadir@/p 20212/@docdir@/p 20213/@infodir@/p 20214/@localedir@/p 20215/@mandir@/p' 20216case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20217*datarootdir*) ac_datarootdir_seen=yes;; 20218*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20220$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20221_ACEOF 20222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20223 ac_datarootdir_hack=' 20224 s&@datadir@&$datadir&g 20225 s&@docdir@&$docdir&g 20226 s&@infodir@&$infodir&g 20227 s&@localedir@&$localedir&g 20228 s&@mandir@&$mandir&g 20229 s&\\\${datarootdir}&$datarootdir&g' ;; 20230esac 20231_ACEOF 20232 20233# Neutralize VPATH when `$srcdir' = `.'. 20234# Shell code in configure.ac might set extrasub. 20235# FIXME: do we really want to maintain this feature? 20236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20237ac_sed_extra="$ac_vpsub 20238$extrasub 20239_ACEOF 20240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20241:t 20242/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20243s|@configure_input@|$ac_sed_conf_input|;t t 20244s&@top_builddir@&$ac_top_builddir_sub&;t t 20245s&@top_build_prefix@&$ac_top_build_prefix&;t t 20246s&@srcdir@&$ac_srcdir&;t t 20247s&@abs_srcdir@&$ac_abs_srcdir&;t t 20248s&@top_srcdir@&$ac_top_srcdir&;t t 20249s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20250s&@builddir@&$ac_builddir&;t t 20251s&@abs_builddir@&$ac_abs_builddir&;t t 20252s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20253s&@INSTALL@&$ac_INSTALL&;t t 20254s&@MKDIR_P@&$ac_MKDIR_P&;t t 20255$ac_datarootdir_hack 20256" 20257eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20258 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20259 20260test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20261 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20262 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20263 "$ac_tmp/out"`; test -z "$ac_out"; } && 20264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20265which seems to be undefined. Please make sure it is defined" >&5 20266$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20267which seems to be undefined. Please make sure it is defined" >&2;} 20268 20269 rm -f "$ac_tmp/stdin" 20270 case $ac_file in 20271 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20272 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20273 esac \ 20274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20275 ;; 20276 :H) 20277 # 20278 # CONFIG_HEADER 20279 # 20280 if test x"$ac_file" != x-; then 20281 { 20282 $as_echo "/* $configure_input */" \ 20283 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20284 } >"$ac_tmp/config.h" \ 20285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20286 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20287 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20288$as_echo "$as_me: $ac_file is unchanged" >&6;} 20289 else 20290 rm -f "$ac_file" 20291 mv "$ac_tmp/config.h" "$ac_file" \ 20292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20293 fi 20294 else 20295 $as_echo "/* $configure_input */" \ 20296 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20297 || as_fn_error $? "could not create -" "$LINENO" 5 20298 fi 20299# Compute "$ac_file"'s index in $config_headers. 20300_am_arg="$ac_file" 20301_am_stamp_count=1 20302for _am_header in $config_headers :; do 20303 case $_am_header in 20304 $_am_arg | $_am_arg:* ) 20305 break ;; 20306 * ) 20307 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20308 esac 20309done 20310echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20311$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20312 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20313 X"$_am_arg" : 'X\(//\)$' \| \ 20314 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20315$as_echo X"$_am_arg" | 20316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20317 s//\1/ 20318 q 20319 } 20320 /^X\(\/\/\)[^/].*/{ 20321 s//\1/ 20322 q 20323 } 20324 /^X\(\/\/\)$/{ 20325 s//\1/ 20326 q 20327 } 20328 /^X\(\/\).*/{ 20329 s//\1/ 20330 q 20331 } 20332 s/.*/./; q'`/stamp-h$_am_stamp_count 20333 ;; 20334 20335 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20336$as_echo "$as_me: executing $ac_file commands" >&6;} 20337 ;; 20338 esac 20339 20340 20341 case $ac_file$ac_mode in 20342 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20343 # Older Autoconf quotes --file arguments for eval, but not when files 20344 # are listed without --file. Let's play safe and only enable the eval 20345 # if we detect the quoting. 20346 case $CONFIG_FILES in 20347 *\'*) eval set x "$CONFIG_FILES" ;; 20348 *) set x $CONFIG_FILES ;; 20349 esac 20350 shift 20351 for mf 20352 do 20353 # Strip MF so we end up with the name of the file. 20354 mf=`echo "$mf" | sed -e 's/:.*$//'` 20355 # Check whether this is an Automake generated Makefile or not. 20356 # We used to match only the files named 'Makefile.in', but 20357 # some people rename them; so instead we look at the file content. 20358 # Grep'ing the first line is not enough: some people post-process 20359 # each Makefile.in and add a new line on top of each file to say so. 20360 # Grep'ing the whole file is not good either: AIX grep has a line 20361 # limit of 2048, but all sed's we know have understand at least 4000. 20362 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20363 dirpart=`$as_dirname -- "$mf" || 20364$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20365 X"$mf" : 'X\(//\)[^/]' \| \ 20366 X"$mf" : 'X\(//\)$' \| \ 20367 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20368$as_echo X"$mf" | 20369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20370 s//\1/ 20371 q 20372 } 20373 /^X\(\/\/\)[^/].*/{ 20374 s//\1/ 20375 q 20376 } 20377 /^X\(\/\/\)$/{ 20378 s//\1/ 20379 q 20380 } 20381 /^X\(\/\).*/{ 20382 s//\1/ 20383 q 20384 } 20385 s/.*/./; q'` 20386 else 20387 continue 20388 fi 20389 # Extract the definition of DEPDIR, am__include, and am__quote 20390 # from the Makefile without running 'make'. 20391 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20392 test -z "$DEPDIR" && continue 20393 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20394 test -z "$am__include" && continue 20395 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20396 # Find all dependency output files, they are included files with 20397 # $(DEPDIR) in their names. We invoke sed twice because it is the 20398 # simplest approach to changing $(DEPDIR) to its actual value in the 20399 # expansion. 20400 for file in `sed -n " 20401 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20402 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20403 # Make sure the directory exists. 20404 test -f "$dirpart/$file" && continue 20405 fdir=`$as_dirname -- "$file" || 20406$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20407 X"$file" : 'X\(//\)[^/]' \| \ 20408 X"$file" : 'X\(//\)$' \| \ 20409 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20410$as_echo X"$file" | 20411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20412 s//\1/ 20413 q 20414 } 20415 /^X\(\/\/\)[^/].*/{ 20416 s//\1/ 20417 q 20418 } 20419 /^X\(\/\/\)$/{ 20420 s//\1/ 20421 q 20422 } 20423 /^X\(\/\).*/{ 20424 s//\1/ 20425 q 20426 } 20427 s/.*/./; q'` 20428 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20429 # echo "creating $dirpart/$file" 20430 echo '# dummy' > "$dirpart/$file" 20431 done 20432 done 20433} 20434 ;; 20435 "libtool":C) 20436 20437 # See if we are running on zsh, and set the options which allow our 20438 # commands through without removal of \ escapes. 20439 if test -n "${ZSH_VERSION+set}" ; then 20440 setopt NO_GLOB_SUBST 20441 fi 20442 20443 cfgfile="${ofile}T" 20444 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20445 $RM "$cfgfile" 20446 20447 cat <<_LT_EOF >> "$cfgfile" 20448#! $SHELL 20449 20450# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20451# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 20452# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20453# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20454# 20455# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20456# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20457# Foundation, Inc. 20458# Written by Gordon Matzigkeit, 1996 20459# 20460# This file is part of GNU Libtool. 20461# 20462# GNU Libtool is free software; you can redistribute it and/or 20463# modify it under the terms of the GNU General Public License as 20464# published by the Free Software Foundation; either version 2 of 20465# the License, or (at your option) any later version. 20466# 20467# As a special exception to the GNU General Public License, 20468# if you distribute this file as part of a program or library that 20469# is built using GNU Libtool, you may include this file under the 20470# same distribution terms that you use for the rest of that program. 20471# 20472# GNU Libtool is distributed in the hope that it will be useful, 20473# but WITHOUT ANY WARRANTY; without even the implied warranty of 20474# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20475# GNU General Public License for more details. 20476# 20477# You should have received a copy of the GNU General Public License 20478# along with GNU Libtool; see the file COPYING. If not, a copy 20479# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20480# obtained by writing to the Free Software Foundation, Inc., 20481# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20482 20483 20484# The names of the tagged configurations supported by this script. 20485available_tags="" 20486 20487# ### BEGIN LIBTOOL CONFIG 20488 20489# Which release of libtool.m4 was used? 20490macro_version=$macro_version 20491macro_revision=$macro_revision 20492 20493# Whether or not to build shared libraries. 20494build_libtool_libs=$enable_shared 20495 20496# Whether or not to build static libraries. 20497build_old_libs=$enable_static 20498 20499# What type of objects to build. 20500pic_mode=$pic_mode 20501 20502# Whether or not to optimize for fast installation. 20503fast_install=$enable_fast_install 20504 20505# Shell to use when invoking shell scripts. 20506SHELL=$lt_SHELL 20507 20508# An echo program that protects backslashes. 20509ECHO=$lt_ECHO 20510 20511# The PATH separator for the build system. 20512PATH_SEPARATOR=$lt_PATH_SEPARATOR 20513 20514# The host system. 20515host_alias=$host_alias 20516host=$host 20517host_os=$host_os 20518 20519# The build system. 20520build_alias=$build_alias 20521build=$build 20522build_os=$build_os 20523 20524# A sed program that does not truncate output. 20525SED=$lt_SED 20526 20527# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20528Xsed="\$SED -e 1s/^X//" 20529 20530# A grep program that handles long lines. 20531GREP=$lt_GREP 20532 20533# An ERE matcher. 20534EGREP=$lt_EGREP 20535 20536# A literal string matcher. 20537FGREP=$lt_FGREP 20538 20539# A BSD- or MS-compatible name lister. 20540NM=$lt_NM 20541 20542# Whether we need soft or hard links. 20543LN_S=$lt_LN_S 20544 20545# What is the maximum length of a command? 20546max_cmd_len=$max_cmd_len 20547 20548# Object file suffix (normally "o"). 20549objext=$ac_objext 20550 20551# Executable file suffix (normally ""). 20552exeext=$exeext 20553 20554# whether the shell understands "unset". 20555lt_unset=$lt_unset 20556 20557# turn spaces into newlines. 20558SP2NL=$lt_lt_SP2NL 20559 20560# turn newlines into spaces. 20561NL2SP=$lt_lt_NL2SP 20562 20563# convert \$build file names to \$host format. 20564to_host_file_cmd=$lt_cv_to_host_file_cmd 20565 20566# convert \$build files to toolchain format. 20567to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20568 20569# An object symbol dumper. 20570OBJDUMP=$lt_OBJDUMP 20571 20572# Method to check whether dependent libraries are shared objects. 20573deplibs_check_method=$lt_deplibs_check_method 20574 20575# Command to use when deplibs_check_method = "file_magic". 20576file_magic_cmd=$lt_file_magic_cmd 20577 20578# How to find potential files when deplibs_check_method = "file_magic". 20579file_magic_glob=$lt_file_magic_glob 20580 20581# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20582want_nocaseglob=$lt_want_nocaseglob 20583 20584# DLL creation program. 20585DLLTOOL=$lt_DLLTOOL 20586 20587# Command to associate shared and link libraries. 20588sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20589 20590# The archiver. 20591AR=$lt_AR 20592 20593# Flags to create an archive. 20594AR_FLAGS=$lt_AR_FLAGS 20595 20596# How to feed a file listing to the archiver. 20597archiver_list_spec=$lt_archiver_list_spec 20598 20599# A symbol stripping program. 20600STRIP=$lt_STRIP 20601 20602# Commands used to install an old-style archive. 20603RANLIB=$lt_RANLIB 20604old_postinstall_cmds=$lt_old_postinstall_cmds 20605old_postuninstall_cmds=$lt_old_postuninstall_cmds 20606 20607# Whether to use a lock for old archive extraction. 20608lock_old_archive_extraction=$lock_old_archive_extraction 20609 20610# A C compiler. 20611LTCC=$lt_CC 20612 20613# LTCC compiler flags. 20614LTCFLAGS=$lt_CFLAGS 20615 20616# Take the output of nm and produce a listing of raw symbols and C names. 20617global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20618 20619# Transform the output of nm in a proper C declaration. 20620global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20621 20622# Transform the output of nm in a C name address pair. 20623global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20624 20625# Transform the output of nm in a C name address pair when lib prefix is needed. 20626global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20627 20628# Specify filename containing input files for \$NM. 20629nm_file_list_spec=$lt_nm_file_list_spec 20630 20631# The root where to search for dependent libraries,and in which our libraries should be installed. 20632lt_sysroot=$lt_sysroot 20633 20634# The name of the directory that contains temporary libtool files. 20635objdir=$objdir 20636 20637# Used to examine libraries when file_magic_cmd begins with "file". 20638MAGIC_CMD=$MAGIC_CMD 20639 20640# Must we lock files when doing compilation? 20641need_locks=$lt_need_locks 20642 20643# Manifest tool. 20644MANIFEST_TOOL=$lt_MANIFEST_TOOL 20645 20646# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20647DSYMUTIL=$lt_DSYMUTIL 20648 20649# Tool to change global to local symbols on Mac OS X. 20650NMEDIT=$lt_NMEDIT 20651 20652# Tool to manipulate fat objects and archives on Mac OS X. 20653LIPO=$lt_LIPO 20654 20655# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20656OTOOL=$lt_OTOOL 20657 20658# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20659OTOOL64=$lt_OTOOL64 20660 20661# Old archive suffix (normally "a"). 20662libext=$libext 20663 20664# Shared library suffix (normally ".so"). 20665shrext_cmds=$lt_shrext_cmds 20666 20667# The commands to extract the exported symbol list from a shared archive. 20668extract_expsyms_cmds=$lt_extract_expsyms_cmds 20669 20670# Variables whose values should be saved in libtool wrapper scripts and 20671# restored at link time. 20672variables_saved_for_relink=$lt_variables_saved_for_relink 20673 20674# Do we need the "lib" prefix for modules? 20675need_lib_prefix=$need_lib_prefix 20676 20677# Do we need a version for libraries? 20678need_version=$need_version 20679 20680# Library versioning type. 20681version_type=$version_type 20682 20683# Shared library runtime path variable. 20684runpath_var=$runpath_var 20685 20686# Shared library path variable. 20687shlibpath_var=$shlibpath_var 20688 20689# Is shlibpath searched before the hard-coded library search path? 20690shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20691 20692# Format of library name prefix. 20693libname_spec=$lt_libname_spec 20694 20695# List of archive names. First name is the real one, the rest are links. 20696# The last name is the one that the linker finds with -lNAME 20697library_names_spec=$lt_library_names_spec 20698 20699# The coded name of the library, if different from the real name. 20700soname_spec=$lt_soname_spec 20701 20702# Permission mode override for installation of shared libraries. 20703install_override_mode=$lt_install_override_mode 20704 20705# Command to use after installation of a shared archive. 20706postinstall_cmds=$lt_postinstall_cmds 20707 20708# Command to use after uninstallation of a shared archive. 20709postuninstall_cmds=$lt_postuninstall_cmds 20710 20711# Commands used to finish a libtool library installation in a directory. 20712finish_cmds=$lt_finish_cmds 20713 20714# As "finish_cmds", except a single script fragment to be evaled but 20715# not shown. 20716finish_eval=$lt_finish_eval 20717 20718# Whether we should hardcode library paths into libraries. 20719hardcode_into_libs=$hardcode_into_libs 20720 20721# Compile-time system search path for libraries. 20722sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20723 20724# Run-time system search path for libraries. 20725sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20726 20727# Whether dlopen is supported. 20728dlopen_support=$enable_dlopen 20729 20730# Whether dlopen of programs is supported. 20731dlopen_self=$enable_dlopen_self 20732 20733# Whether dlopen of statically linked programs is supported. 20734dlopen_self_static=$enable_dlopen_self_static 20735 20736# Commands to strip libraries. 20737old_striplib=$lt_old_striplib 20738striplib=$lt_striplib 20739 20740 20741# The linker used to build libraries. 20742LD=$lt_LD 20743 20744# How to create reloadable object files. 20745reload_flag=$lt_reload_flag 20746reload_cmds=$lt_reload_cmds 20747 20748# Commands used to build an old-style archive. 20749old_archive_cmds=$lt_old_archive_cmds 20750 20751# A language specific compiler. 20752CC=$lt_compiler 20753 20754# Is the compiler the GNU compiler? 20755with_gcc=$GCC 20756 20757# Compiler flag to turn off builtin functions. 20758no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20759 20760# Additional compiler flags for building library objects. 20761pic_flag=$lt_lt_prog_compiler_pic 20762 20763# How to pass a linker flag through the compiler. 20764wl=$lt_lt_prog_compiler_wl 20765 20766# Compiler flag to prevent dynamic linking. 20767link_static_flag=$lt_lt_prog_compiler_static 20768 20769# Does compiler simultaneously support -c and -o options? 20770compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20771 20772# Whether or not to add -lc for building shared libraries. 20773build_libtool_need_lc=$archive_cmds_need_lc 20774 20775# Whether or not to disallow shared libs when runtime libs are static. 20776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20777 20778# Compiler flag to allow reflexive dlopens. 20779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20780 20781# Compiler flag to generate shared objects directly from archives. 20782whole_archive_flag_spec=$lt_whole_archive_flag_spec 20783 20784# Whether the compiler copes with passing no objects directly. 20785compiler_needs_object=$lt_compiler_needs_object 20786 20787# Create an old-style archive from a shared archive. 20788old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20789 20790# Create a temporary old-style archive to link instead of a shared archive. 20791old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20792 20793# Commands used to build a shared archive. 20794archive_cmds=$lt_archive_cmds 20795archive_expsym_cmds=$lt_archive_expsym_cmds 20796 20797# Commands used to build a loadable module if different from building 20798# a shared archive. 20799module_cmds=$lt_module_cmds 20800module_expsym_cmds=$lt_module_expsym_cmds 20801 20802# Whether we are building with GNU ld or not. 20803with_gnu_ld=$lt_with_gnu_ld 20804 20805# Flag that allows shared libraries with undefined symbols to be built. 20806allow_undefined_flag=$lt_allow_undefined_flag 20807 20808# Flag that enforces no undefined symbols. 20809no_undefined_flag=$lt_no_undefined_flag 20810 20811# Flag to hardcode \$libdir into a binary during linking. 20812# This must work even if \$libdir does not exist 20813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20814 20815# Whether we need a single "-rpath" flag with a separated argument. 20816hardcode_libdir_separator=$lt_hardcode_libdir_separator 20817 20818# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20819# DIR into the resulting binary. 20820hardcode_direct=$hardcode_direct 20821 20822# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20823# DIR into the resulting binary and the resulting library dependency is 20824# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20825# library is relocated. 20826hardcode_direct_absolute=$hardcode_direct_absolute 20827 20828# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20829# into the resulting binary. 20830hardcode_minus_L=$hardcode_minus_L 20831 20832# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20833# into the resulting binary. 20834hardcode_shlibpath_var=$hardcode_shlibpath_var 20835 20836# Set to "yes" if building a shared library automatically hardcodes DIR 20837# into the library and all subsequent libraries and executables linked 20838# against it. 20839hardcode_automatic=$hardcode_automatic 20840 20841# Set to yes if linker adds runtime paths of dependent libraries 20842# to runtime path list. 20843inherit_rpath=$inherit_rpath 20844 20845# Whether libtool must link a program against all its dependency libraries. 20846link_all_deplibs=$link_all_deplibs 20847 20848# Set to "yes" if exported symbols are required. 20849always_export_symbols=$always_export_symbols 20850 20851# The commands to list exported symbols. 20852export_symbols_cmds=$lt_export_symbols_cmds 20853 20854# Symbols that should not be listed in the preloaded symbols. 20855exclude_expsyms=$lt_exclude_expsyms 20856 20857# Symbols that must always be exported. 20858include_expsyms=$lt_include_expsyms 20859 20860# Commands necessary for linking programs (against libraries) with templates. 20861prelink_cmds=$lt_prelink_cmds 20862 20863# Commands necessary for finishing linking programs. 20864postlink_cmds=$lt_postlink_cmds 20865 20866# Specify filename containing input files. 20867file_list_spec=$lt_file_list_spec 20868 20869# How to hardcode a shared library path into an executable. 20870hardcode_action=$hardcode_action 20871 20872# ### END LIBTOOL CONFIG 20873 20874_LT_EOF 20875 20876 case $host_os in 20877 aix3*) 20878 cat <<\_LT_EOF >> "$cfgfile" 20879# AIX sometimes has problems with the GCC collect2 program. For some 20880# reason, if we set the COLLECT_NAMES environment variable, the problems 20881# vanish in a puff of smoke. 20882if test "X${COLLECT_NAMES+set}" != Xset; then 20883 COLLECT_NAMES= 20884 export COLLECT_NAMES 20885fi 20886_LT_EOF 20887 ;; 20888 esac 20889 20890 20891ltmain="$ac_aux_dir/ltmain.sh" 20892 20893 20894 # We use sed instead of cat because bash on DJGPP gets confused if 20895 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20896 # text mode, it properly converts lines to CR/LF. This bash problem 20897 # is reportedly fixed, but why not run on old versions too? 20898 sed '$q' "$ltmain" >> "$cfgfile" \ 20899 || (rm -f "$cfgfile"; exit 1) 20900 20901 if test x"$xsi_shell" = xyes; then 20902 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20903func_dirname ()\ 20904{\ 20905\ case ${1} in\ 20906\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20907\ * ) func_dirname_result="${3}" ;;\ 20908\ esac\ 20909} # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\ 20916func_basename ()\ 20917{\ 20918\ func_basename_result="${1##*/}"\ 20919} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20920 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20921 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20922test 0 -eq $? || _lt_function_replace_fail=: 20923 20924 20925 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20926func_dirname_and_basename ()\ 20927{\ 20928\ case ${1} in\ 20929\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20930\ * ) func_dirname_result="${3}" ;;\ 20931\ esac\ 20932\ func_basename_result="${1##*/}"\ 20933} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20934 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20936test 0 -eq $? || _lt_function_replace_fail=: 20937 20938 20939 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20940func_stripname ()\ 20941{\ 20942\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20943\ # positional parameters, so assign one to ordinary parameter first.\ 20944\ func_stripname_result=${3}\ 20945\ func_stripname_result=${func_stripname_result#"${1}"}\ 20946\ func_stripname_result=${func_stripname_result%"${2}"}\ 20947} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20948 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20950test 0 -eq $? || _lt_function_replace_fail=: 20951 20952 20953 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20954func_split_long_opt ()\ 20955{\ 20956\ func_split_long_opt_name=${1%%=*}\ 20957\ func_split_long_opt_arg=${1#*=}\ 20958} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20959 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20961test 0 -eq $? || _lt_function_replace_fail=: 20962 20963 20964 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20965func_split_short_opt ()\ 20966{\ 20967\ func_split_short_opt_arg=${1#??}\ 20968\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20969} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20970 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20971 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20972test 0 -eq $? || _lt_function_replace_fail=: 20973 20974 20975 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20976func_lo2o ()\ 20977{\ 20978\ case ${1} in\ 20979\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20980\ *) func_lo2o_result=${1} ;;\ 20981\ esac\ 20982} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20983 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20985test 0 -eq $? || _lt_function_replace_fail=: 20986 20987 20988 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20989func_xform ()\ 20990{\ 20991 func_xform_result=${1%.*}.lo\ 20992} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20993 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20995test 0 -eq $? || _lt_function_replace_fail=: 20996 20997 20998 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20999func_arith ()\ 21000{\ 21001 func_arith_result=$(( $* ))\ 21002} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21003 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21004 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21005test 0 -eq $? || _lt_function_replace_fail=: 21006 21007 21008 sed -e '/^func_len ()$/,/^} # func_len /c\ 21009func_len ()\ 21010{\ 21011 func_len_result=${#1}\ 21012} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21013 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21015test 0 -eq $? || _lt_function_replace_fail=: 21016 21017fi 21018 21019if test x"$lt_shell_append" = xyes; then 21020 sed -e '/^func_append ()$/,/^} # func_append /c\ 21021func_append ()\ 21022{\ 21023 eval "${1}+=\\${2}"\ 21024} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21025 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21026 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21027test 0 -eq $? || _lt_function_replace_fail=: 21028 21029 21030 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21031func_append_quoted ()\ 21032{\ 21033\ func_quote_for_eval "${2}"\ 21034\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21035} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21036 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21038test 0 -eq $? || _lt_function_replace_fail=: 21039 21040 21041 # Save a `func_append' function call where possible by direct use of '+=' 21042 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21043 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21045 test 0 -eq $? || _lt_function_replace_fail=: 21046else 21047 # Save a `func_append' function call even when '+=' is not available 21048 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21049 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21050 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21051 test 0 -eq $? || _lt_function_replace_fail=: 21052fi 21053 21054if test x"$_lt_function_replace_fail" = x":"; then 21055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21056$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21057fi 21058 21059 21060 mv -f "$cfgfile" "$ofile" || 21061 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21062 chmod +x "$ofile" 21063 21064 ;; 21065 21066 esac 21067done # for ac_tag 21068 21069 21070as_fn_exit 0 21071_ACEOF 21072ac_clean_files=$ac_clean_files_save 21073 21074test $ac_write_fail = 0 || 21075 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21076 21077 21078# configure is writing to config.log, and then calls config.status. 21079# config.status does its own redirection, appending to config.log. 21080# Unfortunately, on DOS this fails, as config.log is still kept open 21081# by configure, so config.status won't be able to write to it; its 21082# output is simply discarded. So we exec the FD to /dev/null, 21083# effectively closing config.log, so it can be properly (re)opened and 21084# appended to by config.status. When coming back to configure, we 21085# need to make the FD available again. 21086if test "$no_create" != yes; then 21087 ac_cs_success=: 21088 ac_config_status_args= 21089 test "$silent" = yes && 21090 ac_config_status_args="$ac_config_status_args --quiet" 21091 exec 5>/dev/null 21092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21093 exec 5>>config.log 21094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21095 # would make configure fail if this is the last instruction. 21096 $ac_cs_success || as_fn_exit 1 21097fi 21098if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21100$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21101fi 21102 21103