configure revision 339a7c43
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXt 1.1.5. 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='libXt' 653PACKAGE_TARNAME='libXt' 654PACKAGE_VERSION='1.1.5' 655PACKAGE_STRING='libXt 1.1.5' 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 700ERRORDBDIR 701STRINGSABIOPTIONS 702appdefaultdir 703XFILESEARCHPATHDEFAULT 704MALLOC_DEBUG_ENV 705HAVE_GLIB_FALSE 706HAVE_GLIB_TRUE 707GLIB_LIBS 708GLIB_CFLAGS 709ENABLE_UNIT_TESTS_FALSE 710ENABLE_UNIT_TESTS_TRUE 711XORG_MALLOC_DEBUG_ENV 712LDFLAGS_FOR_BUILD 713CFLAGS_FOR_BUILD 714CPPFLAGS_FOR_BUILD 715CC_FOR_BUILD 716XT_LIBS 717XT_CFLAGS 718HAVE_PERL_FALSE 719HAVE_PERL_TRUE 720PERL 721TRADITIONALCPPFLAGS 722RAWCPPFLAGS 723RAWCPP 724HAVE_STYLESHEETS_FALSE 725HAVE_STYLESHEETS_TRUE 726XSL_STYLESHEET 727STYLESHEET_SRCDIR 728XORG_SGML_PATH 729HAVE_XSLTPROC_FALSE 730HAVE_XSLTPROC_TRUE 731XSLTPROC 732HAVE_FOP_FALSE 733HAVE_FOP_TRUE 734FOP 735HAVE_XMLTO_FALSE 736HAVE_XMLTO_TRUE 737HAVE_XMLTO_TEXT_FALSE 738HAVE_XMLTO_TEXT_TRUE 739XMLTO 740ENABLE_SPECS_FALSE 741ENABLE_SPECS_TRUE 742XTMALLOC_ZERO_CFLAGS 743XMALLOC_ZERO_CFLAGS 744MALLOC_ZERO_CFLAGS 745MAN_SUBSTS 746XORG_MAN_PAGE 747ADMIN_MAN_DIR 748DRIVER_MAN_DIR 749MISC_MAN_DIR 750FILE_MAN_DIR 751LIB_MAN_DIR 752APP_MAN_DIR 753ADMIN_MAN_SUFFIX 754DRIVER_MAN_SUFFIX 755MISC_MAN_SUFFIX 756FILE_MAN_SUFFIX 757LIB_MAN_SUFFIX 758APP_MAN_SUFFIX 759INSTALL_CMD 760PKG_CONFIG 761CHANGELOG_CMD 762STRICT_CFLAGS 763CWARNFLAGS 764BASE_CFLAGS 765CPP 766OTOOL64 767OTOOL 768LIPO 769NMEDIT 770DSYMUTIL 771MANIFEST_TOOL 772RANLIB 773ac_ct_AR 774AR 775DLLTOOL 776OBJDUMP 777LN_S 778NM 779ac_ct_DUMPBIN 780DUMPBIN 781LD 782FGREP 783EGREP 784GREP 785SED 786am__fastdepCC_FALSE 787am__fastdepCC_TRUE 788CCDEPMODE 789am__nodep 790AMDEPBACKSLASH 791AMDEP_FALSE 792AMDEP_TRUE 793am__quote 794am__include 795DEPDIR 796OBJEXT 797EXEEXT 798ac_ct_CC 799CPPFLAGS 800LDFLAGS 801CFLAGS 802CC 803host_os 804host_vendor 805host_cpu 806host 807build_os 808build_vendor 809build_cpu 810build 811LIBTOOL 812AM_BACKSLASH 813AM_DEFAULT_VERBOSITY 814AM_DEFAULT_V 815AM_V 816am__untar 817am__tar 818AMTAR 819am__leading_dot 820SET_MAKE 821AWK 822mkdir_p 823MKDIR_P 824INSTALL_STRIP_PROGRAM 825STRIP 826install_sh 827MAKEINFO 828AUTOHEADER 829AUTOMAKE 830AUTOCONF 831ACLOCAL 832VERSION 833PACKAGE 834CYGPATH_W 835am__isrc 836INSTALL_DATA 837INSTALL_SCRIPT 838INSTALL_PROGRAM 839target_alias 840host_alias 841build_alias 842LIBS 843ECHO_T 844ECHO_N 845ECHO_C 846DEFS 847mandir 848localedir 849libdir 850psdir 851pdfdir 852dvidir 853htmldir 854infodir 855docdir 856oldincludedir 857includedir 858localstatedir 859sharedstatedir 860sysconfdir 861datadir 862datarootdir 863libexecdir 864sbindir 865bindir 866program_transform_name 867prefix 868exec_prefix 869PACKAGE_URL 870PACKAGE_BUGREPORT 871PACKAGE_STRING 872PACKAGE_VERSION 873PACKAGE_TARNAME 874PACKAGE_NAME 875PATH_SEPARATOR 876SHELL' 877ac_subst_files='' 878ac_user_opts=' 879enable_option_checking 880enable_silent_rules 881enable_shared 882enable_static 883with_pic 884enable_fast_install 885enable_dependency_tracking 886with_gnu_ld 887with_sysroot 888enable_libtool_lock 889enable_selective_werror 890enable_strict_compilation 891enable_malloc0returnsnull 892enable_specs 893with_xmlto 894with_fop 895with_xsltproc 896with_perl 897enable_xkb 898enable_unit_tests 899with_glib 900with_xfile_search_path 901with_appdefaultdir 902' 903 ac_precious_vars='build_alias 904host_alias 905target_alias 906CC 907CFLAGS 908LDFLAGS 909LIBS 910CPPFLAGS 911CPP 912PKG_CONFIG 913XMLTO 914FOP 915XSLTPROC 916PERL 917XT_CFLAGS 918XT_LIBS 919XORG_MALLOC_DEBUG_ENV 920GLIB_CFLAGS 921GLIB_LIBS' 922 923 924# Initialize some variables set by options. 925ac_init_help= 926ac_init_version=false 927ac_unrecognized_opts= 928ac_unrecognized_sep= 929# The variables have the same names as the options, with 930# dashes changed to underlines. 931cache_file=/dev/null 932exec_prefix=NONE 933no_create= 934no_recursion= 935prefix=NONE 936program_prefix=NONE 937program_suffix=NONE 938program_transform_name=s,x,x, 939silent= 940site= 941srcdir= 942verbose= 943x_includes=NONE 944x_libraries=NONE 945 946# Installation directory options. 947# These are left unexpanded so users can "make install exec_prefix=/foo" 948# and all the variables that are supposed to be based on exec_prefix 949# by default will actually change. 950# Use braces instead of parens because sh, perl, etc. also accept them. 951# (The list follows the same order as the GNU Coding Standards.) 952bindir='${exec_prefix}/bin' 953sbindir='${exec_prefix}/sbin' 954libexecdir='${exec_prefix}/libexec' 955datarootdir='${prefix}/share' 956datadir='${datarootdir}' 957sysconfdir='${prefix}/etc' 958sharedstatedir='${prefix}/com' 959localstatedir='${prefix}/var' 960includedir='${prefix}/include' 961oldincludedir='/usr/include' 962docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 963infodir='${datarootdir}/info' 964htmldir='${docdir}' 965dvidir='${docdir}' 966pdfdir='${docdir}' 967psdir='${docdir}' 968libdir='${exec_prefix}/lib' 969localedir='${datarootdir}/locale' 970mandir='${datarootdir}/man' 971 972ac_prev= 973ac_dashdash= 974for ac_option 975do 976 # If the previous option needs an argument, assign it. 977 if test -n "$ac_prev"; then 978 eval $ac_prev=\$ac_option 979 ac_prev= 980 continue 981 fi 982 983 case $ac_option in 984 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 985 *=) ac_optarg= ;; 986 *) ac_optarg=yes ;; 987 esac 988 989 # Accept the important Cygnus configure options, so we can diagnose typos. 990 991 case $ac_dashdash$ac_option in 992 --) 993 ac_dashdash=yes ;; 994 995 -bindir | --bindir | --bindi | --bind | --bin | --bi) 996 ac_prev=bindir ;; 997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 998 bindir=$ac_optarg ;; 999 1000 -build | --build | --buil | --bui | --bu) 1001 ac_prev=build_alias ;; 1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1003 build_alias=$ac_optarg ;; 1004 1005 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1007 ac_prev=cache_file ;; 1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1010 cache_file=$ac_optarg ;; 1011 1012 --config-cache | -C) 1013 cache_file=config.cache ;; 1014 1015 -datadir | --datadir | --datadi | --datad) 1016 ac_prev=datadir ;; 1017 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1018 datadir=$ac_optarg ;; 1019 1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1021 | --dataroo | --dataro | --datar) 1022 ac_prev=datarootdir ;; 1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1025 datarootdir=$ac_optarg ;; 1026 1027 -disable-* | --disable-*) 1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1029 # Reject names that are not valid shell variable names. 1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1031 as_fn_error $? "invalid feature name: $ac_useropt" 1032 ac_useropt_orig=$ac_useropt 1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1034 case $ac_user_opts in 1035 *" 1036"enable_$ac_useropt" 1037"*) ;; 1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1039 ac_unrecognized_sep=', ';; 1040 esac 1041 eval enable_$ac_useropt=no ;; 1042 1043 -docdir | --docdir | --docdi | --doc | --do) 1044 ac_prev=docdir ;; 1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1046 docdir=$ac_optarg ;; 1047 1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1049 ac_prev=dvidir ;; 1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1051 dvidir=$ac_optarg ;; 1052 1053 -enable-* | --enable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062"enable_$ac_useropt" 1063"*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=\$ac_optarg ;; 1068 1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1071 | --exec | --exe | --ex) 1072 ac_prev=exec_prefix ;; 1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1075 | --exec=* | --exe=* | --ex=*) 1076 exec_prefix=$ac_optarg ;; 1077 1078 -gas | --gas | --ga | --g) 1079 # Obsolete; use --with-gas. 1080 with_gas=yes ;; 1081 1082 -help | --help | --hel | --he | -h) 1083 ac_init_help=long ;; 1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1085 ac_init_help=recursive ;; 1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1087 ac_init_help=short ;; 1088 1089 -host | --host | --hos | --ho) 1090 ac_prev=host_alias ;; 1091 -host=* | --host=* | --hos=* | --ho=*) 1092 host_alias=$ac_optarg ;; 1093 1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1095 ac_prev=htmldir ;; 1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1097 | --ht=*) 1098 htmldir=$ac_optarg ;; 1099 1100 -includedir | --includedir | --includedi | --included | --include \ 1101 | --includ | --inclu | --incl | --inc) 1102 ac_prev=includedir ;; 1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1104 | --includ=* | --inclu=* | --incl=* | --inc=*) 1105 includedir=$ac_optarg ;; 1106 1107 -infodir | --infodir | --infodi | --infod | --info | --inf) 1108 ac_prev=infodir ;; 1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1110 infodir=$ac_optarg ;; 1111 1112 -libdir | --libdir | --libdi | --libd) 1113 ac_prev=libdir ;; 1114 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1115 libdir=$ac_optarg ;; 1116 1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1118 | --libexe | --libex | --libe) 1119 ac_prev=libexecdir ;; 1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1121 | --libexe=* | --libex=* | --libe=*) 1122 libexecdir=$ac_optarg ;; 1123 1124 -localedir | --localedir | --localedi | --localed | --locale) 1125 ac_prev=localedir ;; 1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1127 localedir=$ac_optarg ;; 1128 1129 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1130 | --localstate | --localstat | --localsta | --localst | --locals) 1131 ac_prev=localstatedir ;; 1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1134 localstatedir=$ac_optarg ;; 1135 1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1137 ac_prev=mandir ;; 1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1139 mandir=$ac_optarg ;; 1140 1141 -nfp | --nfp | --nf) 1142 # Obsolete; use --without-fp. 1143 with_fp=no ;; 1144 1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1146 | --no-cr | --no-c | -n) 1147 no_create=yes ;; 1148 1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1151 no_recursion=yes ;; 1152 1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1155 | --oldin | --oldi | --old | --ol | --o) 1156 ac_prev=oldincludedir ;; 1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1160 oldincludedir=$ac_optarg ;; 1161 1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1163 ac_prev=prefix ;; 1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1165 prefix=$ac_optarg ;; 1166 1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1168 | --program-pre | --program-pr | --program-p) 1169 ac_prev=program_prefix ;; 1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1172 program_prefix=$ac_optarg ;; 1173 1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1175 | --program-suf | --program-su | --program-s) 1176 ac_prev=program_suffix ;; 1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1179 program_suffix=$ac_optarg ;; 1180 1181 -program-transform-name | --program-transform-name \ 1182 | --program-transform-nam | --program-transform-na \ 1183 | --program-transform-n | --program-transform- \ 1184 | --program-transform | --program-transfor \ 1185 | --program-transfo | --program-transf \ 1186 | --program-trans | --program-tran \ 1187 | --progr-tra | --program-tr | --program-t) 1188 ac_prev=program_transform_name ;; 1189 -program-transform-name=* | --program-transform-name=* \ 1190 | --program-transform-nam=* | --program-transform-na=* \ 1191 | --program-transform-n=* | --program-transform-=* \ 1192 | --program-transform=* | --program-transfor=* \ 1193 | --program-transfo=* | --program-transf=* \ 1194 | --program-trans=* | --program-tran=* \ 1195 | --progr-tra=* | --program-tr=* | --program-t=*) 1196 program_transform_name=$ac_optarg ;; 1197 1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1199 ac_prev=pdfdir ;; 1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1201 pdfdir=$ac_optarg ;; 1202 1203 -psdir | --psdir | --psdi | --psd | --ps) 1204 ac_prev=psdir ;; 1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1206 psdir=$ac_optarg ;; 1207 1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1209 | -silent | --silent | --silen | --sile | --sil) 1210 silent=yes ;; 1211 1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1213 ac_prev=sbindir ;; 1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1215 | --sbi=* | --sb=*) 1216 sbindir=$ac_optarg ;; 1217 1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1220 | --sharedst | --shareds | --shared | --share | --shar \ 1221 | --sha | --sh) 1222 ac_prev=sharedstatedir ;; 1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1226 | --sha=* | --sh=*) 1227 sharedstatedir=$ac_optarg ;; 1228 1229 -site | --site | --sit) 1230 ac_prev=site ;; 1231 -site=* | --site=* | --sit=*) 1232 site=$ac_optarg ;; 1233 1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1235 ac_prev=srcdir ;; 1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1237 srcdir=$ac_optarg ;; 1238 1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1240 | --syscon | --sysco | --sysc | --sys | --sy) 1241 ac_prev=sysconfdir ;; 1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1244 sysconfdir=$ac_optarg ;; 1245 1246 -target | --target | --targe | --targ | --tar | --ta | --t) 1247 ac_prev=target_alias ;; 1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1249 target_alias=$ac_optarg ;; 1250 1251 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1252 verbose=yes ;; 1253 1254 -version | --version | --versio | --versi | --vers | -V) 1255 ac_init_version=: ;; 1256 1257 -with-* | --with-*) 1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1259 # Reject names that are not valid shell variable names. 1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1261 as_fn_error $? "invalid package name: $ac_useropt" 1262 ac_useropt_orig=$ac_useropt 1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1264 case $ac_user_opts in 1265 *" 1266"with_$ac_useropt" 1267"*) ;; 1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1269 ac_unrecognized_sep=', ';; 1270 esac 1271 eval with_$ac_useropt=\$ac_optarg ;; 1272 1273 -without-* | --without-*) 1274 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1275 # Reject names that are not valid shell variable names. 1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1277 as_fn_error $? "invalid package name: $ac_useropt" 1278 ac_useropt_orig=$ac_useropt 1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1280 case $ac_user_opts in 1281 *" 1282"with_$ac_useropt" 1283"*) ;; 1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1285 ac_unrecognized_sep=', ';; 1286 esac 1287 eval with_$ac_useropt=no ;; 1288 1289 --x) 1290 # Obsolete; use --with-x. 1291 with_x=yes ;; 1292 1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1294 | --x-incl | --x-inc | --x-in | --x-i) 1295 ac_prev=x_includes ;; 1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1298 x_includes=$ac_optarg ;; 1299 1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1302 ac_prev=x_libraries ;; 1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1305 x_libraries=$ac_optarg ;; 1306 1307 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1308Try \`$0 --help' for more information" 1309 ;; 1310 1311 *=*) 1312 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1313 # Reject names that are not valid shell variable names. 1314 case $ac_envvar in #( 1315 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1316 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1317 esac 1318 eval $ac_envvar=\$ac_optarg 1319 export $ac_envvar ;; 1320 1321 *) 1322 # FIXME: should be removed in autoconf 3.0. 1323 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1325 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1326 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1327 ;; 1328 1329 esac 1330done 1331 1332if test -n "$ac_prev"; then 1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1334 as_fn_error $? "missing argument to $ac_option" 1335fi 1336 1337if test -n "$ac_unrecognized_opts"; then 1338 case $enable_option_checking in 1339 no) ;; 1340 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1341 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1342 esac 1343fi 1344 1345# Check all directory arguments for consistency. 1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1347 datadir sysconfdir sharedstatedir localstatedir includedir \ 1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1349 libdir localedir mandir 1350do 1351 eval ac_val=\$$ac_var 1352 # Remove trailing slashes. 1353 case $ac_val in 1354 */ ) 1355 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1356 eval $ac_var=\$ac_val;; 1357 esac 1358 # Be sure to have absolute directory names. 1359 case $ac_val in 1360 [\\/$]* | ?:[\\/]* ) continue;; 1361 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1362 esac 1363 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1364done 1365 1366# There might be people who depend on the old broken behavior: `$host' 1367# used to hold the argument of --host etc. 1368# FIXME: To remove some day. 1369build=$build_alias 1370host=$host_alias 1371target=$target_alias 1372 1373# FIXME: To remove some day. 1374if test "x$host_alias" != x; then 1375 if test "x$build_alias" = x; then 1376 cross_compiling=maybe 1377 elif test "x$build_alias" != "x$host_alias"; then 1378 cross_compiling=yes 1379 fi 1380fi 1381 1382ac_tool_prefix= 1383test -n "$host_alias" && ac_tool_prefix=$host_alias- 1384 1385test "$silent" = yes && exec 6>/dev/null 1386 1387 1388ac_pwd=`pwd` && test -n "$ac_pwd" && 1389ac_ls_di=`ls -di .` && 1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1391 as_fn_error $? "working directory cannot be determined" 1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1393 as_fn_error $? "pwd does not report name of working directory" 1394 1395 1396# Find the source files, if location was not specified. 1397if test -z "$srcdir"; then 1398 ac_srcdir_defaulted=yes 1399 # Try the directory containing this script, then the parent directory. 1400 ac_confdir=`$as_dirname -- "$as_myself" || 1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1402 X"$as_myself" : 'X\(//\)[^/]' \| \ 1403 X"$as_myself" : 'X\(//\)$' \| \ 1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1405$as_echo X"$as_myself" | 1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1407 s//\1/ 1408 q 1409 } 1410 /^X\(\/\/\)[^/].*/{ 1411 s//\1/ 1412 q 1413 } 1414 /^X\(\/\/\)$/{ 1415 s//\1/ 1416 q 1417 } 1418 /^X\(\/\).*/{ 1419 s//\1/ 1420 q 1421 } 1422 s/.*/./; q'` 1423 srcdir=$ac_confdir 1424 if test ! -r "$srcdir/$ac_unique_file"; then 1425 srcdir=.. 1426 fi 1427else 1428 ac_srcdir_defaulted=no 1429fi 1430if test ! -r "$srcdir/$ac_unique_file"; then 1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1433fi 1434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1435ac_abs_confdir=`( 1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1437 pwd)` 1438# When building in place, set srcdir=. 1439if test "$ac_abs_confdir" = "$ac_pwd"; then 1440 srcdir=. 1441fi 1442# Remove unnecessary trailing slashes from srcdir. 1443# Double slashes in file names in object file debugging info 1444# mess up M-x gdb in Emacs. 1445case $srcdir in 1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1447esac 1448for ac_var in $ac_precious_vars; do 1449 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1450 eval ac_env_${ac_var}_value=\$${ac_var} 1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1452 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1453done 1454 1455# 1456# Report the --help message. 1457# 1458if test "$ac_init_help" = "long"; then 1459 # Omit some internal or obsolete options to make the list less imposing. 1460 # This message is too long to be a string in the A/UX 3.1 sh. 1461 cat <<_ACEOF 1462\`configure' configures libXt 1.1.5 to adapt to many kinds of systems. 1463 1464Usage: $0 [OPTION]... [VAR=VALUE]... 1465 1466To assign environment variables (e.g., CC, CFLAGS...), specify them as 1467VAR=VALUE. See below for descriptions of some of the useful variables. 1468 1469Defaults for the options are specified in brackets. 1470 1471Configuration: 1472 -h, --help display this help and exit 1473 --help=short display options specific to this package 1474 --help=recursive display the short help of all the included packages 1475 -V, --version display version information and exit 1476 -q, --quiet, --silent do not print \`checking ...' messages 1477 --cache-file=FILE cache test results in FILE [disabled] 1478 -C, --config-cache alias for \`--cache-file=config.cache' 1479 -n, --no-create do not create output files 1480 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1481 1482Installation directories: 1483 --prefix=PREFIX install architecture-independent files in PREFIX 1484 [$ac_default_prefix] 1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1486 [PREFIX] 1487 1488By default, \`make install' will install all the files in 1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1490an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1491for instance \`--prefix=\$HOME'. 1492 1493For better control, use the options below. 1494 1495Fine tuning of the installation directories: 1496 --bindir=DIR user executables [EPREFIX/bin] 1497 --sbindir=DIR system admin executables [EPREFIX/sbin] 1498 --libexecdir=DIR program executables [EPREFIX/libexec] 1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1502 --libdir=DIR object code libraries [EPREFIX/lib] 1503 --includedir=DIR C header files [PREFIX/include] 1504 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1507 --infodir=DIR info documentation [DATAROOTDIR/info] 1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1509 --mandir=DIR man documentation [DATAROOTDIR/man] 1510 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt] 1511 --htmldir=DIR html documentation [DOCDIR] 1512 --dvidir=DIR dvi documentation [DOCDIR] 1513 --pdfdir=DIR pdf documentation [DOCDIR] 1514 --psdir=DIR ps documentation [DOCDIR] 1515_ACEOF 1516 1517 cat <<\_ACEOF 1518 1519Program names: 1520 --program-prefix=PREFIX prepend PREFIX to installed program names 1521 --program-suffix=SUFFIX append SUFFIX to installed program names 1522 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1523 1524System types: 1525 --build=BUILD configure for building on BUILD [guessed] 1526 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1527_ACEOF 1528fi 1529 1530if test -n "$ac_init_help"; then 1531 case $ac_init_help in 1532 short | recursive ) echo "Configuration of libXt 1.1.5:";; 1533 esac 1534 cat <<\_ACEOF 1535 1536Optional Features: 1537 --disable-option-checking ignore unrecognized --enable/--with options 1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1540 --enable-silent-rules less verbose build output (undo: "make V=1") 1541 --disable-silent-rules verbose build output (undo: "make V=0") 1542 --enable-shared[=PKGS] build shared libraries [default=yes] 1543 --enable-static[=PKGS] build static libraries [default=yes] 1544 --enable-fast-install[=PKGS] 1545 optimize for fast installation [default=yes] 1546 --enable-dependency-tracking 1547 do not reject slow dependency extractors 1548 --disable-dependency-tracking 1549 speeds up one-time build 1550 --disable-libtool-lock avoid locking (might break parallel builds) 1551 --disable-selective-werror 1552 Turn off selective compiler errors. (default: 1553 enabled) 1554 --enable-strict-compilation 1555 Enable all warnings from compiler and make them 1556 errors (default: disabled) 1557 --enable-malloc0returnsnull 1558 malloc(0) returns NULL (default: auto) 1559 --enable-specs Enable building the specs (default: yes) 1560 --disable-xkb Disable XKB support 1561 --enable-unit-tests Enable building unit test cases (default: auto) 1562 1563Optional Packages: 1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1566 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1567 both] 1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1569 --with-sysroot=DIR Search for dependent libraries within DIR 1570 (or the compiler's sysroot if not specified). 1571 --with-xmlto Use xmlto to regenerate documentation (default: 1572 auto) 1573 --with-fop Use fop to regenerate documentation (default: auto) 1574 --with-xsltproc Use xsltproc for the transformation of XML documents 1575 (default: auto) 1576 --with-perl Use perl for extracting information from files 1577 (default: auto) 1578 --with-glib Use GLib library for unit testing (default: auto) 1579 --with-xfile-search-path=<path> 1580 Set path to search for app-defaults and other files 1581 --with-appdefaultdir=<path> 1582 Set app-default directory (default: 1583 ${datadir}/X11/app-defaults) 1584 1585Some influential environment variables: 1586 CC C compiler command 1587 CFLAGS C compiler flags 1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1589 nonstandard directory <lib dir> 1590 LIBS libraries to pass to the linker, e.g. -l<library> 1591 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1592 you have headers in a nonstandard directory <include dir> 1593 CPP C preprocessor 1594 PKG_CONFIG path to pkg-config utility 1595 XMLTO Path to xmlto command 1596 FOP Path to fop command 1597 XSLTPROC Path to xsltproc command 1598 PERL Path to perl command 1599 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1600 XT_LIBS linker flags for XT, overriding pkg-config 1601 XORG_MALLOC_DEBUG_ENV 1602 Environment variables to enable memory checking in tests 1603 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1604 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1605 1606Use these variables to override the choices made by `configure' or to help 1607it to find libraries and programs with nonstandard names/locations. 1608 1609Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1610_ACEOF 1611ac_status=$? 1612fi 1613 1614if test "$ac_init_help" = "recursive"; then 1615 # If there are subdirs, report their specific --help. 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1617 test -d "$ac_dir" || 1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1619 continue 1620 ac_builddir=. 1621 1622case "$ac_dir" in 1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1624*) 1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1626 # A ".." for each directory in $ac_dir_suffix. 1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1628 case $ac_top_builddir_sub in 1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1631 esac ;; 1632esac 1633ac_abs_top_builddir=$ac_pwd 1634ac_abs_builddir=$ac_pwd$ac_dir_suffix 1635# for backward compatibility: 1636ac_top_builddir=$ac_top_build_prefix 1637 1638case $srcdir in 1639 .) # We are building in place. 1640 ac_srcdir=. 1641 ac_top_srcdir=$ac_top_builddir_sub 1642 ac_abs_top_srcdir=$ac_pwd ;; 1643 [\\/]* | ?:[\\/]* ) # Absolute name. 1644 ac_srcdir=$srcdir$ac_dir_suffix; 1645 ac_top_srcdir=$srcdir 1646 ac_abs_top_srcdir=$srcdir ;; 1647 *) # Relative name. 1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1649 ac_top_srcdir=$ac_top_build_prefix$srcdir 1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1651esac 1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1653 1654 cd "$ac_dir" || { ac_status=$?; continue; } 1655 # Check for guested configure. 1656 if test -f "$ac_srcdir/configure.gnu"; then 1657 echo && 1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1659 elif test -f "$ac_srcdir/configure"; then 1660 echo && 1661 $SHELL "$ac_srcdir/configure" --help=recursive 1662 else 1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1664 fi || ac_status=$? 1665 cd "$ac_pwd" || { ac_status=$?; break; } 1666 done 1667fi 1668 1669test -n "$ac_init_help" && exit $ac_status 1670if $ac_init_version; then 1671 cat <<\_ACEOF 1672libXt configure 1.1.5 1673generated by GNU Autoconf 2.69 1674 1675Copyright (C) 2012 Free Software Foundation, Inc. 1676This configure script is free software; the Free Software Foundation 1677gives unlimited permission to copy, distribute and modify it. 1678_ACEOF 1679 exit 1680fi 1681 1682## ------------------------ ## 1683## Autoconf initialization. ## 1684## ------------------------ ## 1685 1686# ac_fn_c_try_compile LINENO 1687# -------------------------- 1688# Try to compile conftest.$ac_ext, and return whether this succeeded. 1689ac_fn_c_try_compile () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 rm -f conftest.$ac_objext 1693 if { { ac_try="$ac_compile" 1694case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_compile") 2>conftest.err 1701 ac_status=$? 1702 if test -s conftest.err; then 1703 grep -v '^ *+' conftest.err >conftest.er1 1704 cat conftest.er1 >&5 1705 mv -f conftest.er1 conftest.err 1706 fi 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } && { 1709 test -z "$ac_c_werror_flag" || 1710 test ! -s conftest.err 1711 } && test -s conftest.$ac_objext; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1720 as_fn_set_status $ac_retval 1721 1722} # ac_fn_c_try_compile 1723 1724# ac_fn_c_try_link LINENO 1725# ----------------------- 1726# Try to link conftest.$ac_ext, and return whether this succeeded. 1727ac_fn_c_try_link () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 rm -f conftest.$ac_objext conftest$ac_exeext 1731 if { { ac_try="$ac_link" 1732case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_link") 2>conftest.err 1739 ac_status=$? 1740 if test -s conftest.err; then 1741 grep -v '^ *+' conftest.err >conftest.er1 1742 cat conftest.er1 >&5 1743 mv -f conftest.er1 conftest.err 1744 fi 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } && { 1747 test -z "$ac_c_werror_flag" || 1748 test ! -s conftest.err 1749 } && test -s conftest$ac_exeext && { 1750 test "$cross_compiling" = yes || 1751 test -x conftest$ac_exeext 1752 }; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759fi 1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1762 # interfere with the next link command; also delete a directory that is 1763 # left behind by Apple's compiler. We do this before executing the actions. 1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 as_fn_set_status $ac_retval 1767 1768} # ac_fn_c_try_link 1769 1770# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1771# ------------------------------------------------------- 1772# Tests whether HEADER exists and can be compiled using the include files in 1773# INCLUDES, setting the cache variable VAR accordingly. 1774ac_fn_c_check_header_compile () 1775{ 1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1778$as_echo_n "checking for $2... " >&6; } 1779if eval \${$3+:} false; then : 1780 $as_echo_n "(cached) " >&6 1781else 1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1783/* end confdefs.h. */ 1784$4 1785#include <$2> 1786_ACEOF 1787if ac_fn_c_try_compile "$LINENO"; then : 1788 eval "$3=yes" 1789else 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1793fi 1794eval ac_res=\$$3 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796$as_echo "$ac_res" >&6; } 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 1799} # ac_fn_c_check_header_compile 1800 1801# ac_fn_c_try_cpp LINENO 1802# ---------------------- 1803# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1804ac_fn_c_try_cpp () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 if { { ac_try="$ac_cpp conftest.$ac_ext" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } > conftest.i && { 1823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1824 test ! -s conftest.err 1825 }; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: failed program was:" >&5 1829sed 's/^/| /' conftest.$ac_ext >&5 1830 1831 ac_retval=1 1832fi 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_c_try_cpp 1837 1838# ac_fn_c_try_run LINENO 1839# ---------------------- 1840# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1841# that executables *can* be run. 1842ac_fn_c_try_run () 1843{ 1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1845 if { { ac_try="$ac_link" 1846case "(($ac_try" in 1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1848 *) ac_try_echo=$ac_try;; 1849esac 1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1851$as_echo "$ac_try_echo"; } >&5 1852 (eval "$ac_link") 2>&5 1853 ac_status=$? 1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1855 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1856 { { case "(($ac_try" in 1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1858 *) ac_try_echo=$ac_try;; 1859esac 1860eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1861$as_echo "$ac_try_echo"; } >&5 1862 (eval "$ac_try") 2>&5 1863 ac_status=$? 1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1865 test $ac_status = 0; }; }; then : 1866 ac_retval=0 1867else 1868 $as_echo "$as_me: program exited with status $ac_status" >&5 1869 $as_echo "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872 ac_retval=$ac_status 1873fi 1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 as_fn_set_status $ac_retval 1877 1878} # ac_fn_c_try_run 1879 1880# ac_fn_c_check_func LINENO FUNC VAR 1881# ---------------------------------- 1882# Tests whether FUNC exists, setting the cache variable VAR accordingly 1883ac_fn_c_check_func () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1887$as_echo_n "checking for $2... " >&6; } 1888if eval \${$3+:} false; then : 1889 $as_echo_n "(cached) " >&6 1890else 1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1892/* end confdefs.h. */ 1893/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1894 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1895#define $2 innocuous_$2 1896 1897/* System header to define __stub macros and hopefully few prototypes, 1898 which can conflict with char $2 (); below. 1899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1900 <limits.h> exists even on freestanding compilers. */ 1901 1902#ifdef __STDC__ 1903# include <limits.h> 1904#else 1905# include <assert.h> 1906#endif 1907 1908#undef $2 1909 1910/* Override any GCC internal prototype to avoid an error. 1911 Use char because int might match the return type of a GCC 1912 builtin and then its argument prototype would still apply. */ 1913#ifdef __cplusplus 1914extern "C" 1915#endif 1916char $2 (); 1917/* The GNU C library defines this for functions which it implements 1918 to always fail with ENOSYS. Some functions are actually named 1919 something starting with __ and the normal name is an alias. */ 1920#if defined __stub_$2 || defined __stub___$2 1921choke me 1922#endif 1923 1924int 1925main () 1926{ 1927return $2 (); 1928 ; 1929 return 0; 1930} 1931_ACEOF 1932if ac_fn_c_try_link "$LINENO"; then : 1933 eval "$3=yes" 1934else 1935 eval "$3=no" 1936fi 1937rm -f core conftest.err conftest.$ac_objext \ 1938 conftest$ac_exeext conftest.$ac_ext 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 1945} # ac_fn_c_check_func 1946 1947# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1948# --------------------------------------------- 1949# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1950# accordingly. 1951ac_fn_c_check_decl () 1952{ 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 as_decl_name=`echo $2|sed 's/ *(.*//'` 1955 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1957$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960else 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963$4 1964int 1965main () 1966{ 1967#ifndef $as_decl_name 1968#ifdef __cplusplus 1969 (void) $as_decl_use; 1970#else 1971 (void) $as_decl_name; 1972#endif 1973#endif 1974 1975 ; 1976 return 0; 1977} 1978_ACEOF 1979if ac_fn_c_try_compile "$LINENO"; then : 1980 eval "$3=yes" 1981else 1982 eval "$3=no" 1983fi 1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1985fi 1986eval ac_res=\$$3 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1988$as_echo "$ac_res" >&6; } 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 1991} # ac_fn_c_check_decl 1992 1993# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1994# ------------------------------------------------------- 1995# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1996# the include files in INCLUDES and setting the cache variable VAR 1997# accordingly. 1998ac_fn_c_check_header_mongrel () 1999{ 2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2001 if eval \${$3+:} false; then : 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2003$as_echo_n "checking for $2... " >&6; } 2004if eval \${$3+:} false; then : 2005 $as_echo_n "(cached) " >&6 2006fi 2007eval ac_res=\$$3 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2009$as_echo "$ac_res" >&6; } 2010else 2011 # Is the header compilable? 2012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2013$as_echo_n "checking $2 usability... " >&6; } 2014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017#include <$2> 2018_ACEOF 2019if ac_fn_c_try_compile "$LINENO"; then : 2020 ac_header_compiler=yes 2021else 2022 ac_header_compiler=no 2023fi 2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2026$as_echo "$ac_header_compiler" >&6; } 2027 2028# Is the header present? 2029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2030$as_echo_n "checking $2 presence... " >&6; } 2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2032/* end confdefs.h. */ 2033#include <$2> 2034_ACEOF 2035if ac_fn_c_try_cpp "$LINENO"; then : 2036 ac_header_preproc=yes 2037else 2038 ac_header_preproc=no 2039fi 2040rm -f conftest.err conftest.i conftest.$ac_ext 2041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2042$as_echo "$ac_header_preproc" >&6; } 2043 2044# So? What about this header? 2045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2046 yes:no: ) 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2048$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2050$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2051 ;; 2052 no:yes:* ) 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2054$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2056$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2058$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2060$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2062$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2063( $as_echo "## ---------------------------------------------------------------------- ## 2064## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2065## ---------------------------------------------------------------------- ##" 2066 ) | sed "s/^/$as_me: WARNING: /" >&2 2067 ;; 2068esac 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2070$as_echo_n "checking for $2... " >&6; } 2071if eval \${$3+:} false; then : 2072 $as_echo_n "(cached) " >&6 2073else 2074 eval "$3=\$ac_header_compiler" 2075fi 2076eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078$as_echo "$ac_res" >&6; } 2079fi 2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2081 2082} # ac_fn_c_check_header_mongrel 2083cat >config.log <<_ACEOF 2084This file contains any messages produced by compilers while 2085running configure, to aid debugging if configure makes a mistake. 2086 2087It was created by libXt $as_me 1.1.5, which was 2088generated by GNU Autoconf 2.69. Invocation command line was 2089 2090 $ $0 $@ 2091 2092_ACEOF 2093exec 5>>config.log 2094{ 2095cat <<_ASUNAME 2096## --------- ## 2097## Platform. ## 2098## --------- ## 2099 2100hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2101uname -m = `(uname -m) 2>/dev/null || echo unknown` 2102uname -r = `(uname -r) 2>/dev/null || echo unknown` 2103uname -s = `(uname -s) 2>/dev/null || echo unknown` 2104uname -v = `(uname -v) 2>/dev/null || echo unknown` 2105 2106/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2107/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2108 2109/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2110/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2111/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2112/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2113/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2114/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2115/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2116 2117_ASUNAME 2118 2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2120for as_dir in $PATH 2121do 2122 IFS=$as_save_IFS 2123 test -z "$as_dir" && as_dir=. 2124 $as_echo "PATH: $as_dir" 2125 done 2126IFS=$as_save_IFS 2127 2128} >&5 2129 2130cat >&5 <<_ACEOF 2131 2132 2133## ----------- ## 2134## Core tests. ## 2135## ----------- ## 2136 2137_ACEOF 2138 2139 2140# Keep a trace of the command line. 2141# Strip out --no-create and --no-recursion so they do not pile up. 2142# Strip out --silent because we don't want to record it for future runs. 2143# Also quote any args containing shell meta-characters. 2144# Make two passes to allow for proper duplicate-argument suppression. 2145ac_configure_args= 2146ac_configure_args0= 2147ac_configure_args1= 2148ac_must_keep_next=false 2149for ac_pass in 1 2 2150do 2151 for ac_arg 2152 do 2153 case $ac_arg in 2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2156 | -silent | --silent | --silen | --sile | --sil) 2157 continue ;; 2158 *\'*) 2159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2160 esac 2161 case $ac_pass in 2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2163 2) 2164 as_fn_append ac_configure_args1 " '$ac_arg'" 2165 if test $ac_must_keep_next = true; then 2166 ac_must_keep_next=false # Got value, back to normal. 2167 else 2168 case $ac_arg in 2169 *=* | --config-cache | -C | -disable-* | --disable-* \ 2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2172 | -with-* | --with-* | -without-* | --without-* | --x) 2173 case "$ac_configure_args0 " in 2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2175 esac 2176 ;; 2177 -* ) ac_must_keep_next=true ;; 2178 esac 2179 fi 2180 as_fn_append ac_configure_args " '$ac_arg'" 2181 ;; 2182 esac 2183 done 2184done 2185{ ac_configure_args0=; unset ac_configure_args0;} 2186{ ac_configure_args1=; unset ac_configure_args1;} 2187 2188# When interrupted or exit'd, cleanup temporary files, and complete 2189# config.log. We remove comments because anyway the quotes in there 2190# would cause problems or look ugly. 2191# WARNING: Use '\'' to represent an apostrophe within the trap. 2192# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2193trap 'exit_status=$? 2194 # Save into config.log some information that might help in debugging. 2195 { 2196 echo 2197 2198 $as_echo "## ---------------- ## 2199## Cache variables. ## 2200## ---------------- ##" 2201 echo 2202 # The following way of writing the cache mishandles newlines in values, 2203( 2204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2205 eval ac_val=\$$ac_var 2206 case $ac_val in #( 2207 *${as_nl}*) 2208 case $ac_var in #( 2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2210$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2211 esac 2212 case $ac_var in #( 2213 _ | IFS | as_nl) ;; #( 2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2215 *) { eval $ac_var=; unset $ac_var;} ;; 2216 esac ;; 2217 esac 2218 done 2219 (set) 2>&1 | 2220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2221 *${as_nl}ac_space=\ *) 2222 sed -n \ 2223 "s/'\''/'\''\\\\'\'''\''/g; 2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2225 ;; #( 2226 *) 2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2228 ;; 2229 esac | 2230 sort 2231) 2232 echo 2233 2234 $as_echo "## ----------------- ## 2235## Output variables. ## 2236## ----------------- ##" 2237 echo 2238 for ac_var in $ac_subst_vars 2239 do 2240 eval ac_val=\$$ac_var 2241 case $ac_val in 2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2243 esac 2244 $as_echo "$ac_var='\''$ac_val'\''" 2245 done | sort 2246 echo 2247 2248 if test -n "$ac_subst_files"; then 2249 $as_echo "## ------------------- ## 2250## File substitutions. ## 2251## ------------------- ##" 2252 echo 2253 for ac_var in $ac_subst_files 2254 do 2255 eval ac_val=\$$ac_var 2256 case $ac_val in 2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2258 esac 2259 $as_echo "$ac_var='\''$ac_val'\''" 2260 done | sort 2261 echo 2262 fi 2263 2264 if test -s confdefs.h; then 2265 $as_echo "## ----------- ## 2266## confdefs.h. ## 2267## ----------- ##" 2268 echo 2269 cat confdefs.h 2270 echo 2271 fi 2272 test "$ac_signal" != 0 && 2273 $as_echo "$as_me: caught signal $ac_signal" 2274 $as_echo "$as_me: exit $exit_status" 2275 } >&5 2276 rm -f core *.core core.conftest.* && 2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2278 exit $exit_status 2279' 0 2280for ac_signal in 1 2 13 15; do 2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2282done 2283ac_signal=0 2284 2285# confdefs.h avoids OS command line length limits that DEFS can exceed. 2286rm -f -r conftest* confdefs.h 2287 2288$as_echo "/* confdefs.h */" > confdefs.h 2289 2290# Predefined preprocessor variables. 2291 2292cat >>confdefs.h <<_ACEOF 2293#define PACKAGE_NAME "$PACKAGE_NAME" 2294_ACEOF 2295 2296cat >>confdefs.h <<_ACEOF 2297#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2298_ACEOF 2299 2300cat >>confdefs.h <<_ACEOF 2301#define PACKAGE_VERSION "$PACKAGE_VERSION" 2302_ACEOF 2303 2304cat >>confdefs.h <<_ACEOF 2305#define PACKAGE_STRING "$PACKAGE_STRING" 2306_ACEOF 2307 2308cat >>confdefs.h <<_ACEOF 2309#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2310_ACEOF 2311 2312cat >>confdefs.h <<_ACEOF 2313#define PACKAGE_URL "$PACKAGE_URL" 2314_ACEOF 2315 2316 2317# Let the site file select an alternate cache file if it wants to. 2318# Prefer an explicitly selected file to automatically selected ones. 2319ac_site_file1=NONE 2320ac_site_file2=NONE 2321if test -n "$CONFIG_SITE"; then 2322 # We do not want a PATH search for config.site. 2323 case $CONFIG_SITE in #(( 2324 -*) ac_site_file1=./$CONFIG_SITE;; 2325 */*) ac_site_file1=$CONFIG_SITE;; 2326 *) ac_site_file1=./$CONFIG_SITE;; 2327 esac 2328elif test "x$prefix" != xNONE; then 2329 ac_site_file1=$prefix/share/config.site 2330 ac_site_file2=$prefix/etc/config.site 2331else 2332 ac_site_file1=$ac_default_prefix/share/config.site 2333 ac_site_file2=$ac_default_prefix/etc/config.site 2334fi 2335for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2336do 2337 test "x$ac_site_file" = xNONE && continue 2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2340$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2341 sed 's/^/| /' "$ac_site_file" >&5 2342 . "$ac_site_file" \ 2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2345as_fn_error $? "failed to load site script $ac_site_file 2346See \`config.log' for more details" "$LINENO" 5; } 2347 fi 2348done 2349 2350if test -r "$cache_file"; then 2351 # Some versions of bash will fail to source /dev/null (special files 2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2355$as_echo "$as_me: loading cache $cache_file" >&6;} 2356 case $cache_file in 2357 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2358 *) . "./$cache_file";; 2359 esac 2360 fi 2361else 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2363$as_echo "$as_me: creating cache $cache_file" >&6;} 2364 >$cache_file 2365fi 2366 2367# Check that the precious variables saved in the cache have kept the same 2368# value. 2369ac_cache_corrupted=false 2370for ac_var in $ac_precious_vars; do 2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2372 eval ac_new_set=\$ac_env_${ac_var}_set 2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2374 eval ac_new_val=\$ac_env_${ac_var}_value 2375 case $ac_old_set,$ac_new_set in 2376 set,) 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2378$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2379 ac_cache_corrupted=: ;; 2380 ,set) 2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2382$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2383 ac_cache_corrupted=: ;; 2384 ,);; 2385 *) 2386 if test "x$ac_old_val" != "x$ac_new_val"; then 2387 # differences in whitespace do not lead to failure. 2388 ac_old_val_w=`echo x $ac_old_val` 2389 ac_new_val_w=`echo x $ac_new_val` 2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2392$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2393 ac_cache_corrupted=: 2394 else 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2396$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2397 eval $ac_var=\$ac_old_val 2398 fi 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2400$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2402$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2403 fi;; 2404 esac 2405 # Pass precious variables to config.status. 2406 if test "$ac_new_set" = set; then 2407 case $ac_new_val in 2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2409 *) ac_arg=$ac_var=$ac_new_val ;; 2410 esac 2411 case " $ac_configure_args " in 2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2414 esac 2415 fi 2416done 2417if $ac_cache_corrupted; then 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2421$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2423fi 2424## -------------------- ## 2425## Main body of script. ## 2426## -------------------- ## 2427 2428ac_ext=c 2429ac_cpp='$CPP $CPPFLAGS' 2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2432ac_compiler_gnu=$ac_cv_c_compiler_gnu 2433 2434 2435 2436ac_config_headers="$ac_config_headers config.h" 2437 2438 2439 2440# Initialize Automake 2441am__api_version='1.15' 2442 2443ac_aux_dir= 2444for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2445 if test -f "$ac_dir/install-sh"; then 2446 ac_aux_dir=$ac_dir 2447 ac_install_sh="$ac_aux_dir/install-sh -c" 2448 break 2449 elif test -f "$ac_dir/install.sh"; then 2450 ac_aux_dir=$ac_dir 2451 ac_install_sh="$ac_aux_dir/install.sh -c" 2452 break 2453 elif test -f "$ac_dir/shtool"; then 2454 ac_aux_dir=$ac_dir 2455 ac_install_sh="$ac_aux_dir/shtool install -c" 2456 break 2457 fi 2458done 2459if test -z "$ac_aux_dir"; then 2460 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2461fi 2462 2463# These three variables are undocumented and unsupported, 2464# and are intended to be withdrawn in a future Autoconf release. 2465# They can cause serious problems if a builder's source tree is in a directory 2466# whose full name contains unusual characters. 2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2470 2471 2472# Find a good install program. We prefer a C program (faster), 2473# so one script is as good as another. But avoid the broken or 2474# incompatible versions: 2475# SysV /etc/install, /usr/sbin/install 2476# SunOS /usr/etc/install 2477# IRIX /sbin/install 2478# AIX /bin/install 2479# AmigaOS /C/install, which installs bootblocks on floppy discs 2480# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2481# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2482# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2483# OS/2's system install, which has a completely different semantic 2484# ./install, which can be erroneously created by make from ./install.sh. 2485# Reject install programs that cannot install multiple files. 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2487$as_echo_n "checking for a BSD-compatible install... " >&6; } 2488if test -z "$INSTALL"; then 2489if ${ac_cv_path_install+:} false; then : 2490 $as_echo_n "(cached) " >&6 2491else 2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 # Account for people who put trailing slashes in PATH elements. 2498case $as_dir/ in #(( 2499 ./ | .// | /[cC]/* | \ 2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2502 /usr/ucb/* ) ;; 2503 *) 2504 # OSF1 and SCO ODT 3.0 have their own names for install. 2505 # Don't use installbsd from OSF since it installs stuff as root 2506 # by default. 2507 for ac_prog in ginstall scoinst install; do 2508 for ac_exec_ext in '' $ac_executable_extensions; do 2509 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2510 if test $ac_prog = install && 2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2512 # AIX install. It has an incompatible calling convention. 2513 : 2514 elif test $ac_prog = install && 2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2516 # program-specific install script used by HP pwplus--don't use. 2517 : 2518 else 2519 rm -rf conftest.one conftest.two conftest.dir 2520 echo one > conftest.one 2521 echo two > conftest.two 2522 mkdir conftest.dir 2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2524 test -s conftest.one && test -s conftest.two && 2525 test -s conftest.dir/conftest.one && 2526 test -s conftest.dir/conftest.two 2527 then 2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2529 break 3 2530 fi 2531 fi 2532 fi 2533 done 2534 done 2535 ;; 2536esac 2537 2538 done 2539IFS=$as_save_IFS 2540 2541rm -rf conftest.one conftest.two conftest.dir 2542 2543fi 2544 if test "${ac_cv_path_install+set}" = set; then 2545 INSTALL=$ac_cv_path_install 2546 else 2547 # As a last resort, use the slow shell script. Don't cache a 2548 # value for INSTALL within a source directory, because that will 2549 # break other packages using the cache if that directory is 2550 # removed, or if the value is a relative name. 2551 INSTALL=$ac_install_sh 2552 fi 2553fi 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2555$as_echo "$INSTALL" >&6; } 2556 2557# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2558# It thinks the first close brace ends the variable substitution. 2559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2560 2561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2562 2563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2564 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2566$as_echo_n "checking whether build environment is sane... " >&6; } 2567# Reject unsafe characters in $srcdir or the absolute working directory 2568# name. Accept space and tab only in the latter. 2569am_lf=' 2570' 2571case `pwd` in 2572 *[\\\"\#\$\&\'\`$am_lf]*) 2573 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2574esac 2575case $srcdir in 2576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2577 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2578esac 2579 2580# Do 'set' in a subshell so we don't clobber the current shell's 2581# arguments. Must try -L first in case configure is actually a 2582# symlink; some systems play weird games with the mod time of symlinks 2583# (eg FreeBSD returns the mod time of the symlink's containing 2584# directory). 2585if ( 2586 am_has_slept=no 2587 for am_try in 1 2; do 2588 echo "timestamp, slept: $am_has_slept" > conftest.file 2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2590 if test "$*" = "X"; then 2591 # -L didn't work. 2592 set X `ls -t "$srcdir/configure" conftest.file` 2593 fi 2594 if test "$*" != "X $srcdir/configure conftest.file" \ 2595 && test "$*" != "X conftest.file $srcdir/configure"; then 2596 2597 # If neither matched, then we have a broken ls. This can happen 2598 # if, for instance, CONFIG_SHELL is bash and it inherits a 2599 # broken ls alias from the environment. This has actually 2600 # happened. Such a system could not be considered "sane". 2601 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2602 alias in your environment" "$LINENO" 5 2603 fi 2604 if test "$2" = conftest.file || test $am_try -eq 2; then 2605 break 2606 fi 2607 # Just in case. 2608 sleep 1 2609 am_has_slept=yes 2610 done 2611 test "$2" = conftest.file 2612 ) 2613then 2614 # Ok. 2615 : 2616else 2617 as_fn_error $? "newly created file is older than distributed files! 2618Check your system clock" "$LINENO" 5 2619fi 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2621$as_echo "yes" >&6; } 2622# If we didn't sleep, we still need to ensure time stamps of config.status and 2623# generated files are strictly newer. 2624am_sleep_pid= 2625if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2626 ( sleep 1 ) & 2627 am_sleep_pid=$! 2628fi 2629 2630rm -f conftest.file 2631 2632test "$program_prefix" != NONE && 2633 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2634# Use a double $ so make ignores it. 2635test "$program_suffix" != NONE && 2636 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2637# Double any \ or $. 2638# By default was `s,x,x', remove it if useless. 2639ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2640program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2641 2642# Expand $ac_aux_dir to an absolute path. 2643am_aux_dir=`cd "$ac_aux_dir" && pwd` 2644 2645if test x"${MISSING+set}" != xset; then 2646 case $am_aux_dir in 2647 *\ * | *\ *) 2648 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2649 *) 2650 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2651 esac 2652fi 2653# Use eval to expand $SHELL 2654if eval "$MISSING --is-lightweight"; then 2655 am_missing_run="$MISSING " 2656else 2657 am_missing_run= 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2659$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2660fi 2661 2662if test x"${install_sh+set}" != xset; then 2663 case $am_aux_dir in 2664 *\ * | *\ *) 2665 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2666 *) 2667 install_sh="\${SHELL} $am_aux_dir/install-sh" 2668 esac 2669fi 2670 2671# Installed binaries are usually stripped using 'strip' when the user 2672# run "make install-strip". However 'strip' might not be the right 2673# tool to use in cross-compilation environments, therefore Automake 2674# will honor the 'STRIP' environment variable to overrule this program. 2675if test "$cross_compiling" != no; then 2676 if test -n "$ac_tool_prefix"; then 2677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2678set dummy ${ac_tool_prefix}strip; ac_word=$2 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2680$as_echo_n "checking for $ac_word... " >&6; } 2681if ${ac_cv_prog_STRIP+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 if test -n "$STRIP"; then 2685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2694 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699 done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704STRIP=$ac_cv_prog_STRIP 2705if test -n "$STRIP"; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2707$as_echo "$STRIP" >&6; } 2708else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2710$as_echo "no" >&6; } 2711fi 2712 2713 2714fi 2715if test -z "$ac_cv_prog_STRIP"; then 2716 ac_ct_STRIP=$STRIP 2717 # Extract the first word of "strip", so it can be a program name with args. 2718set dummy strip; ac_word=$2 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2720$as_echo_n "checking for $ac_word... " >&6; } 2721if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 if test -n "$ac_ct_STRIP"; then 2725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2734 ac_cv_prog_ac_ct_STRIP="strip" 2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2736 break 2 2737 fi 2738done 2739 done 2740IFS=$as_save_IFS 2741 2742fi 2743fi 2744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2745if test -n "$ac_ct_STRIP"; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2747$as_echo "$ac_ct_STRIP" >&6; } 2748else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750$as_echo "no" >&6; } 2751fi 2752 2753 if test "x$ac_ct_STRIP" = x; then 2754 STRIP=":" 2755 else 2756 case $cross_compiling:$ac_tool_warned in 2757yes:) 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2760ac_tool_warned=yes ;; 2761esac 2762 STRIP=$ac_ct_STRIP 2763 fi 2764else 2765 STRIP="$ac_cv_prog_STRIP" 2766fi 2767 2768fi 2769INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2770 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2772$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2773if test -z "$MKDIR_P"; then 2774 if ${ac_cv_path_mkdir+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2779do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_prog in mkdir gmkdir; do 2783 for ac_exec_ext in '' $ac_executable_extensions; do 2784 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2785 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2786 'mkdir (GNU coreutils) '* | \ 2787 'mkdir (coreutils) '* | \ 2788 'mkdir (fileutils) '4.1*) 2789 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2790 break 3;; 2791 esac 2792 done 2793 done 2794 done 2795IFS=$as_save_IFS 2796 2797fi 2798 2799 test -d ./--version && rmdir ./--version 2800 if test "${ac_cv_path_mkdir+set}" = set; then 2801 MKDIR_P="$ac_cv_path_mkdir -p" 2802 else 2803 # As a last resort, use the slow shell script. Don't cache a 2804 # value for MKDIR_P within a source directory, because that will 2805 # break other packages using the cache if that directory is 2806 # removed, or if the value is a relative name. 2807 MKDIR_P="$ac_install_sh -d" 2808 fi 2809fi 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2811$as_echo "$MKDIR_P" >&6; } 2812 2813for ac_prog in gawk mawk nawk awk 2814do 2815 # Extract the first word of "$ac_prog", so it can be a program name with args. 2816set dummy $ac_prog; ac_word=$2 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2818$as_echo_n "checking for $ac_word... " >&6; } 2819if ${ac_cv_prog_AWK+:} false; then : 2820 $as_echo_n "(cached) " >&6 2821else 2822 if test -n "$AWK"; then 2823 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2824else 2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826for as_dir in $PATH 2827do 2828 IFS=$as_save_IFS 2829 test -z "$as_dir" && as_dir=. 2830 for ac_exec_ext in '' $ac_executable_extensions; do 2831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2832 ac_cv_prog_AWK="$ac_prog" 2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2834 break 2 2835 fi 2836done 2837 done 2838IFS=$as_save_IFS 2839 2840fi 2841fi 2842AWK=$ac_cv_prog_AWK 2843if test -n "$AWK"; then 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2845$as_echo "$AWK" >&6; } 2846else 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2848$as_echo "no" >&6; } 2849fi 2850 2851 2852 test -n "$AWK" && break 2853done 2854 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2856$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2857set x ${MAKE-make} 2858ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2859if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2860 $as_echo_n "(cached) " >&6 2861else 2862 cat >conftest.make <<\_ACEOF 2863SHELL = /bin/sh 2864all: 2865 @echo '@@@%%%=$(MAKE)=@@@%%%' 2866_ACEOF 2867# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2868case `${MAKE-make} -f conftest.make 2>/dev/null` in 2869 *@@@%%%=?*=@@@%%%*) 2870 eval ac_cv_prog_make_${ac_make}_set=yes;; 2871 *) 2872 eval ac_cv_prog_make_${ac_make}_set=no;; 2873esac 2874rm -f conftest.make 2875fi 2876if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2878$as_echo "yes" >&6; } 2879 SET_MAKE= 2880else 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2882$as_echo "no" >&6; } 2883 SET_MAKE="MAKE=${MAKE-make}" 2884fi 2885 2886rm -rf .tst 2>/dev/null 2887mkdir .tst 2>/dev/null 2888if test -d .tst; then 2889 am__leading_dot=. 2890else 2891 am__leading_dot=_ 2892fi 2893rmdir .tst 2>/dev/null 2894 2895# Check whether --enable-silent-rules was given. 2896if test "${enable_silent_rules+set}" = set; then : 2897 enableval=$enable_silent_rules; 2898fi 2899 2900case $enable_silent_rules in # ((( 2901 yes) AM_DEFAULT_VERBOSITY=0;; 2902 no) AM_DEFAULT_VERBOSITY=1;; 2903 *) AM_DEFAULT_VERBOSITY=1;; 2904esac 2905am_make=${MAKE-make} 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2907$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2908if ${am_cv_make_support_nested_variables+:} false; then : 2909 $as_echo_n "(cached) " >&6 2910else 2911 if $as_echo 'TRUE=$(BAR$(V)) 2912BAR0=false 2913BAR1=true 2914V=1 2915am__doit: 2916 @$(TRUE) 2917.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2918 am_cv_make_support_nested_variables=yes 2919else 2920 am_cv_make_support_nested_variables=no 2921fi 2922fi 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2924$as_echo "$am_cv_make_support_nested_variables" >&6; } 2925if test $am_cv_make_support_nested_variables = yes; then 2926 AM_V='$(V)' 2927 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2928else 2929 AM_V=$AM_DEFAULT_VERBOSITY 2930 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2931fi 2932AM_BACKSLASH='\' 2933 2934if test "`cd $srcdir && pwd`" != "`pwd`"; then 2935 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2936 # is not polluted with repeated "-I." 2937 am__isrc=' -I$(srcdir)' 2938 # test to see if srcdir already configured 2939 if test -f $srcdir/config.status; then 2940 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2941 fi 2942fi 2943 2944# test whether we have cygpath 2945if test -z "$CYGPATH_W"; then 2946 if (cygpath --version) >/dev/null 2>/dev/null; then 2947 CYGPATH_W='cygpath -w' 2948 else 2949 CYGPATH_W=echo 2950 fi 2951fi 2952 2953 2954# Define the identity of the package. 2955 PACKAGE='libXt' 2956 VERSION='1.1.5' 2957 2958 2959cat >>confdefs.h <<_ACEOF 2960#define PACKAGE "$PACKAGE" 2961_ACEOF 2962 2963 2964cat >>confdefs.h <<_ACEOF 2965#define VERSION "$VERSION" 2966_ACEOF 2967 2968# Some tools Automake needs. 2969 2970ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2971 2972 2973AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2974 2975 2976AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2977 2978 2979AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2980 2981 2982MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2983 2984# For better backward compatibility. To be removed once Automake 1.9.x 2985# dies out for good. For more background, see: 2986# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2987# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2988mkdir_p='$(MKDIR_P)' 2989 2990# We need awk for the "check" target (and possibly the TAP driver). The 2991# system "awk" is bad on some platforms. 2992# Always define AMTAR for backward compatibility. Yes, it's still used 2993# in the wild :-( We should find a proper way to deprecate it ... 2994AMTAR='$${TAR-tar}' 2995 2996 2997# We'll loop over all known methods to create a tar archive until one works. 2998_am_tools='gnutar pax cpio none' 2999 3000am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3001 3002 3003 3004 3005 3006 3007# POSIX will say in a future version that running "rm -f" with no argument 3008# is OK; and we want to be able to make that assumption in our Makefile 3009# recipes. So use an aggressive probe to check that the usage we want is 3010# actually supported "in the wild" to an acceptable degree. 3011# See automake bug#10828. 3012# To make any issue more visible, cause the running configure to be aborted 3013# by default if the 'rm' program in use doesn't match our expectations; the 3014# user can still override this though. 3015if rm -f && rm -fr && rm -rf; then : OK; else 3016 cat >&2 <<'END' 3017Oops! 3018 3019Your 'rm' program seems unable to run without file operands specified 3020on the command line, even when the '-f' option is present. This is contrary 3021to the behaviour of most rm programs out there, and not conforming with 3022the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3023 3024Please tell bug-automake@gnu.org about your system, including the value 3025of your $PATH and any error possibly output before this message. This 3026can help us improve future automake versions. 3027 3028END 3029 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3030 echo 'Configuration will proceed anyway, since you have set the' >&2 3031 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3032 echo >&2 3033 else 3034 cat >&2 <<'END' 3035Aborting the configuration process, to ensure you take notice of the issue. 3036 3037You can download and install GNU coreutils to get an 'rm' implementation 3038that behaves properly: <http://www.gnu.org/software/coreutils/>. 3039 3040If you want to complete the configuration process using your problematic 3041'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3042to "yes", and re-run configure. 3043 3044END 3045 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3046 fi 3047fi 3048 3049 3050# Initialize libtool 3051case `pwd` in 3052 *\ * | *\ *) 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3054$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3055esac 3056 3057 3058 3059macro_version='2.4.2' 3060macro_revision='1.3337' 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074ltmain="$ac_aux_dir/ltmain.sh" 3075 3076# Make sure we can run config.sub. 3077$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3078 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3079 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3081$as_echo_n "checking build system type... " >&6; } 3082if ${ac_cv_build+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 ac_build_alias=$build_alias 3086test "x$ac_build_alias" = x && 3087 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3088test "x$ac_build_alias" = x && 3089 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3090ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3091 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3092 3093fi 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3095$as_echo "$ac_cv_build" >&6; } 3096case $ac_cv_build in 3097*-*-*) ;; 3098*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3099esac 3100build=$ac_cv_build 3101ac_save_IFS=$IFS; IFS='-' 3102set x $ac_cv_build 3103shift 3104build_cpu=$1 3105build_vendor=$2 3106shift; shift 3107# Remember, the first character of IFS is used to create $*, 3108# except with old shells: 3109build_os=$* 3110IFS=$ac_save_IFS 3111case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3112 3113 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3115$as_echo_n "checking host system type... " >&6; } 3116if ${ac_cv_host+:} false; then : 3117 $as_echo_n "(cached) " >&6 3118else 3119 if test "x$host_alias" = x; then 3120 ac_cv_host=$ac_cv_build 3121else 3122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3123 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3124fi 3125 3126fi 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3128$as_echo "$ac_cv_host" >&6; } 3129case $ac_cv_host in 3130*-*-*) ;; 3131*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3132esac 3133host=$ac_cv_host 3134ac_save_IFS=$IFS; IFS='-' 3135set x $ac_cv_host 3136shift 3137host_cpu=$1 3138host_vendor=$2 3139shift; shift 3140# Remember, the first character of IFS is used to create $*, 3141# except with old shells: 3142host_os=$* 3143IFS=$ac_save_IFS 3144case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3145 3146 3147# Backslashify metacharacters that are still active within 3148# double-quoted strings. 3149sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3150 3151# Same as above, but do not quote variable references. 3152double_quote_subst='s/\(["`\\]\)/\\\1/g' 3153 3154# Sed substitution to delay expansion of an escaped shell variable in a 3155# double_quote_subst'ed string. 3156delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3157 3158# Sed substitution to delay expansion of an escaped single quote. 3159delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3160 3161# Sed substitution to avoid accidental globbing in evaled expressions 3162no_glob_subst='s/\*/\\\*/g' 3163 3164ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3165ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3166ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3167 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3169$as_echo_n "checking how to print strings... " >&6; } 3170# Test print first, because it will be a builtin if present. 3171if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3172 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3173 ECHO='print -r --' 3174elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3175 ECHO='printf %s\n' 3176else 3177 # Use this function as a fallback that always works. 3178 func_fallback_echo () 3179 { 3180 eval 'cat <<_LTECHO_EOF 3181$1 3182_LTECHO_EOF' 3183 } 3184 ECHO='func_fallback_echo' 3185fi 3186 3187# func_echo_all arg... 3188# Invoke $ECHO with all args, space-separated. 3189func_echo_all () 3190{ 3191 $ECHO "" 3192} 3193 3194case "$ECHO" in 3195 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3196$as_echo "printf" >&6; } ;; 3197 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3198$as_echo "print -r" >&6; } ;; 3199 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3200$as_echo "cat" >&6; } ;; 3201esac 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216DEPDIR="${am__leading_dot}deps" 3217 3218ac_config_commands="$ac_config_commands depfiles" 3219 3220 3221am_make=${MAKE-make} 3222cat > confinc << 'END' 3223am__doit: 3224 @echo this is the am__doit target 3225.PHONY: am__doit 3226END 3227# If we don't find an include directive, just comment out the code. 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3229$as_echo_n "checking for style of include used by $am_make... " >&6; } 3230am__include="#" 3231am__quote= 3232_am_result=none 3233# First try GNU make style include. 3234echo "include confinc" > confmf 3235# Ignore all kinds of additional output from 'make'. 3236case `$am_make -s -f confmf 2> /dev/null` in #( 3237*the\ am__doit\ target*) 3238 am__include=include 3239 am__quote= 3240 _am_result=GNU 3241 ;; 3242esac 3243# Now try BSD make style include. 3244if test "$am__include" = "#"; then 3245 echo '.include "confinc"' > confmf 3246 case `$am_make -s -f confmf 2> /dev/null` in #( 3247 *the\ am__doit\ target*) 3248 am__include=.include 3249 am__quote="\"" 3250 _am_result=BSD 3251 ;; 3252 esac 3253fi 3254 3255 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3257$as_echo "$_am_result" >&6; } 3258rm -f confinc confmf 3259 3260# Check whether --enable-dependency-tracking was given. 3261if test "${enable_dependency_tracking+set}" = set; then : 3262 enableval=$enable_dependency_tracking; 3263fi 3264 3265if test "x$enable_dependency_tracking" != xno; then 3266 am_depcomp="$ac_aux_dir/depcomp" 3267 AMDEPBACKSLASH='\' 3268 am__nodep='_no' 3269fi 3270 if test "x$enable_dependency_tracking" != xno; then 3271 AMDEP_TRUE= 3272 AMDEP_FALSE='#' 3273else 3274 AMDEP_TRUE='#' 3275 AMDEP_FALSE= 3276fi 3277 3278 3279ac_ext=c 3280ac_cpp='$CPP $CPPFLAGS' 3281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3283ac_compiler_gnu=$ac_cv_c_compiler_gnu 3284if test -n "$ac_tool_prefix"; then 3285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3286set dummy ${ac_tool_prefix}gcc; ac_word=$2 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288$as_echo_n "checking for $ac_word... " >&6; } 3289if ${ac_cv_prog_CC+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291else 3292 if test -n "$CC"; then 3293 ac_cv_prog_CC="$CC" # Let the user override the test. 3294else 3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296for as_dir in $PATH 3297do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306done 3307 done 3308IFS=$as_save_IFS 3309 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 "$ac_cv_prog_CC"; then 3324 ac_ct_CC=$CC 3325 # Extract the first word of "gcc", so it can be a program name with args. 3326set dummy gcc; ac_word=$2 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3328$as_echo_n "checking for $ac_word... " >&6; } 3329if ${ac_cv_prog_ac_ct_CC+:} false; then : 3330 $as_echo_n "(cached) " >&6 3331else 3332 if test -n "$ac_ct_CC"; then 3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3334else 3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3336for as_dir in $PATH 3337do 3338 IFS=$as_save_IFS 3339 test -z "$as_dir" && as_dir=. 3340 for ac_exec_ext in '' $ac_executable_extensions; do 3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3342 ac_cv_prog_ac_ct_CC="gcc" 3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3344 break 2 3345 fi 3346done 3347 done 3348IFS=$as_save_IFS 3349 3350fi 3351fi 3352ac_ct_CC=$ac_cv_prog_ac_ct_CC 3353if test -n "$ac_ct_CC"; then 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3355$as_echo "$ac_ct_CC" >&6; } 3356else 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3358$as_echo "no" >&6; } 3359fi 3360 3361 if test "x$ac_ct_CC" = x; then 3362 CC="" 3363 else 3364 case $cross_compiling:$ac_tool_warned in 3365yes:) 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3368ac_tool_warned=yes ;; 3369esac 3370 CC=$ac_ct_CC 3371 fi 3372else 3373 CC="$ac_cv_prog_CC" 3374fi 3375 3376if test -z "$CC"; then 3377 if test -n "$ac_tool_prefix"; then 3378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3379set dummy ${ac_tool_prefix}cc; ac_word=$2 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3381$as_echo_n "checking for $ac_word... " >&6; } 3382if ${ac_cv_prog_CC+:} false; then : 3383 $as_echo_n "(cached) " >&6 3384else 3385 if test -n "$CC"; then 3386 ac_cv_prog_CC="$CC" # Let the user override the test. 3387else 3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3389for as_dir in $PATH 3390do 3391 IFS=$as_save_IFS 3392 test -z "$as_dir" && as_dir=. 3393 for ac_exec_ext in '' $ac_executable_extensions; do 3394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3395 ac_cv_prog_CC="${ac_tool_prefix}cc" 3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3397 break 2 3398 fi 3399done 3400 done 3401IFS=$as_save_IFS 3402 3403fi 3404fi 3405CC=$ac_cv_prog_CC 3406if test -n "$CC"; then 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3408$as_echo "$CC" >&6; } 3409else 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3411$as_echo "no" >&6; } 3412fi 3413 3414 3415 fi 3416fi 3417if test -z "$CC"; then 3418 # Extract the first word of "cc", so it can be a program name with args. 3419set dummy cc; ac_word=$2 3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3421$as_echo_n "checking for $ac_word... " >&6; } 3422if ${ac_cv_prog_CC+:} false; then : 3423 $as_echo_n "(cached) " >&6 3424else 3425 if test -n "$CC"; then 3426 ac_cv_prog_CC="$CC" # Let the user override the test. 3427else 3428 ac_prog_rejected=no 3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3430for as_dir in $PATH 3431do 3432 IFS=$as_save_IFS 3433 test -z "$as_dir" && as_dir=. 3434 for ac_exec_ext in '' $ac_executable_extensions; do 3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3437 ac_prog_rejected=yes 3438 continue 3439 fi 3440 ac_cv_prog_CC="cc" 3441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3442 break 2 3443 fi 3444done 3445 done 3446IFS=$as_save_IFS 3447 3448if test $ac_prog_rejected = yes; then 3449 # We found a bogon in the path, so make sure we never use it. 3450 set dummy $ac_cv_prog_CC 3451 shift 3452 if test $# != 0; then 3453 # We chose a different compiler from the bogus one. 3454 # However, it has the same basename, so the bogon will be chosen 3455 # first if we set CC to just the basename; use the full file name. 3456 shift 3457 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3458 fi 3459fi 3460fi 3461fi 3462CC=$ac_cv_prog_CC 3463if test -n "$CC"; then 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3465$as_echo "$CC" >&6; } 3466else 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468$as_echo "no" >&6; } 3469fi 3470 3471 3472fi 3473if test -z "$CC"; then 3474 if test -n "$ac_tool_prefix"; then 3475 for ac_prog in cl.exe 3476 do 3477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3478set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3480$as_echo_n "checking for $ac_word... " >&6; } 3481if ${ac_cv_prog_CC+:} false; then : 3482 $as_echo_n "(cached) " >&6 3483else 3484 if test -n "$CC"; then 3485 ac_cv_prog_CC="$CC" # Let the user override the test. 3486else 3487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3488for as_dir in $PATH 3489do 3490 IFS=$as_save_IFS 3491 test -z "$as_dir" && as_dir=. 3492 for ac_exec_ext in '' $ac_executable_extensions; do 3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3494 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3496 break 2 3497 fi 3498done 3499 done 3500IFS=$as_save_IFS 3501 3502fi 3503fi 3504CC=$ac_cv_prog_CC 3505if test -n "$CC"; then 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3507$as_echo "$CC" >&6; } 3508else 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3510$as_echo "no" >&6; } 3511fi 3512 3513 3514 test -n "$CC" && break 3515 done 3516fi 3517if test -z "$CC"; then 3518 ac_ct_CC=$CC 3519 for ac_prog in cl.exe 3520do 3521 # Extract the first word of "$ac_prog", so it can be a program name with args. 3522set dummy $ac_prog; ac_word=$2 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3524$as_echo_n "checking for $ac_word... " >&6; } 3525if ${ac_cv_prog_ac_ct_CC+:} false; then : 3526 $as_echo_n "(cached) " >&6 3527else 3528 if test -n "$ac_ct_CC"; then 3529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3530else 3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3532for as_dir in $PATH 3533do 3534 IFS=$as_save_IFS 3535 test -z "$as_dir" && as_dir=. 3536 for ac_exec_ext in '' $ac_executable_extensions; do 3537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3538 ac_cv_prog_ac_ct_CC="$ac_prog" 3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3540 break 2 3541 fi 3542done 3543 done 3544IFS=$as_save_IFS 3545 3546fi 3547fi 3548ac_ct_CC=$ac_cv_prog_ac_ct_CC 3549if test -n "$ac_ct_CC"; then 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3551$as_echo "$ac_ct_CC" >&6; } 3552else 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3554$as_echo "no" >&6; } 3555fi 3556 3557 3558 test -n "$ac_ct_CC" && break 3559done 3560 3561 if test "x$ac_ct_CC" = x; then 3562 CC="" 3563 else 3564 case $cross_compiling:$ac_tool_warned in 3565yes:) 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3568ac_tool_warned=yes ;; 3569esac 3570 CC=$ac_ct_CC 3571 fi 3572fi 3573 3574fi 3575 3576 3577test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3579as_fn_error $? "no acceptable C compiler found in \$PATH 3580See \`config.log' for more details" "$LINENO" 5; } 3581 3582# Provide some information about the compiler. 3583$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3584set X $ac_compile 3585ac_compiler=$2 3586for ac_option in --version -v -V -qversion; do 3587 { { ac_try="$ac_compiler $ac_option >&5" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3593$as_echo "$ac_try_echo"; } >&5 3594 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3595 ac_status=$? 3596 if test -s conftest.err; then 3597 sed '10a\ 3598... rest of stderr output deleted ... 3599 10q' conftest.err >conftest.er1 3600 cat conftest.er1 >&5 3601 fi 3602 rm -f conftest.er1 conftest.err 3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3604 test $ac_status = 0; } 3605done 3606 3607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609 3610int 3611main () 3612{ 3613 3614 ; 3615 return 0; 3616} 3617_ACEOF 3618ac_clean_files_save=$ac_clean_files 3619ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3620# Try to create an executable without -o first, disregard a.out. 3621# It will help us diagnose broken compilers, and finding out an intuition 3622# of exeext. 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3624$as_echo_n "checking whether the C compiler works... " >&6; } 3625ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3626 3627# The possible output files: 3628ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3629 3630ac_rmfiles= 3631for ac_file in $ac_files 3632do 3633 case $ac_file in 3634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3635 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3636 esac 3637done 3638rm -f $ac_rmfiles 3639 3640if { { ac_try="$ac_link_default" 3641case "(($ac_try" in 3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3643 *) ac_try_echo=$ac_try;; 3644esac 3645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3646$as_echo "$ac_try_echo"; } >&5 3647 (eval "$ac_link_default") 2>&5 3648 ac_status=$? 3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3650 test $ac_status = 0; }; then : 3651 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3652# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3653# in a Makefile. We should not override ac_cv_exeext if it was cached, 3654# so that the user can short-circuit this test for compilers unknown to 3655# Autoconf. 3656for ac_file in $ac_files '' 3657do 3658 test -f "$ac_file" || continue 3659 case $ac_file in 3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3661 ;; 3662 [ab].out ) 3663 # We found the default executable, but exeext='' is most 3664 # certainly right. 3665 break;; 3666 *.* ) 3667 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3668 then :; else 3669 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3670 fi 3671 # We set ac_cv_exeext here because the later test for it is not 3672 # safe: cross compilers may not add the suffix if given an `-o' 3673 # argument, so we may need to know it at that point already. 3674 # Even if this section looks crufty: it has the advantage of 3675 # actually working. 3676 break;; 3677 * ) 3678 break;; 3679 esac 3680done 3681test "$ac_cv_exeext" = no && ac_cv_exeext= 3682 3683else 3684 ac_file='' 3685fi 3686if test -z "$ac_file"; then : 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688$as_echo "no" >&6; } 3689$as_echo "$as_me: failed program was:" >&5 3690sed 's/^/| /' conftest.$ac_ext >&5 3691 3692{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3694as_fn_error 77 "C compiler cannot create executables 3695See \`config.log' for more details" "$LINENO" 5; } 3696else 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3698$as_echo "yes" >&6; } 3699fi 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3701$as_echo_n "checking for C compiler default output file name... " >&6; } 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3703$as_echo "$ac_file" >&6; } 3704ac_exeext=$ac_cv_exeext 3705 3706rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3707ac_clean_files=$ac_clean_files_save 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3709$as_echo_n "checking for suffix of executables... " >&6; } 3710if { { ac_try="$ac_link" 3711case "(($ac_try" in 3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3713 *) ac_try_echo=$ac_try;; 3714esac 3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3716$as_echo "$ac_try_echo"; } >&5 3717 (eval "$ac_link") 2>&5 3718 ac_status=$? 3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; }; then : 3721 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3722# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3723# work properly (i.e., refer to `conftest.exe'), while it won't with 3724# `rm'. 3725for ac_file in conftest.exe conftest conftest.*; do 3726 test -f "$ac_file" || continue 3727 case $ac_file in 3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3729 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3730 break;; 3731 * ) break;; 3732 esac 3733done 3734else 3735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3737as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3738See \`config.log' for more details" "$LINENO" 5; } 3739fi 3740rm -f conftest conftest$ac_cv_exeext 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3742$as_echo "$ac_cv_exeext" >&6; } 3743 3744rm -f conftest.$ac_ext 3745EXEEXT=$ac_cv_exeext 3746ac_exeext=$EXEEXT 3747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749#include <stdio.h> 3750int 3751main () 3752{ 3753FILE *f = fopen ("conftest.out", "w"); 3754 return ferror (f) || fclose (f) != 0; 3755 3756 ; 3757 return 0; 3758} 3759_ACEOF 3760ac_clean_files="$ac_clean_files conftest.out" 3761# Check that the compiler produces executables we can run. If not, either 3762# the compiler is broken, or we cross compile. 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3764$as_echo_n "checking whether we are cross compiling... " >&6; } 3765if test "$cross_compiling" != yes; then 3766 { { ac_try="$ac_link" 3767case "(($ac_try" in 3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3769 *) ac_try_echo=$ac_try;; 3770esac 3771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3772$as_echo "$ac_try_echo"; } >&5 3773 (eval "$ac_link") 2>&5 3774 ac_status=$? 3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3776 test $ac_status = 0; } 3777 if { ac_try='./conftest$ac_cv_exeext' 3778 { { case "(($ac_try" in 3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3780 *) ac_try_echo=$ac_try;; 3781esac 3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3783$as_echo "$ac_try_echo"; } >&5 3784 (eval "$ac_try") 2>&5 3785 ac_status=$? 3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3787 test $ac_status = 0; }; }; then 3788 cross_compiling=no 3789 else 3790 if test "$cross_compiling" = maybe; then 3791 cross_compiling=yes 3792 else 3793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3794$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3795as_fn_error $? "cannot run C compiled programs. 3796If you meant to cross compile, use \`--host'. 3797See \`config.log' for more details" "$LINENO" 5; } 3798 fi 3799 fi 3800fi 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3802$as_echo "$cross_compiling" >&6; } 3803 3804rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3805ac_clean_files=$ac_clean_files_save 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3807$as_echo_n "checking for suffix of object files... " >&6; } 3808if ${ac_cv_objext+:} false; then : 3809 $as_echo_n "(cached) " >&6 3810else 3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3812/* end confdefs.h. */ 3813 3814int 3815main () 3816{ 3817 3818 ; 3819 return 0; 3820} 3821_ACEOF 3822rm -f conftest.o conftest.obj 3823if { { ac_try="$ac_compile" 3824case "(($ac_try" in 3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3826 *) ac_try_echo=$ac_try;; 3827esac 3828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3829$as_echo "$ac_try_echo"; } >&5 3830 (eval "$ac_compile") 2>&5 3831 ac_status=$? 3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3833 test $ac_status = 0; }; then : 3834 for ac_file in conftest.o conftest.obj conftest.*; do 3835 test -f "$ac_file" || continue; 3836 case $ac_file in 3837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3838 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3839 break;; 3840 esac 3841done 3842else 3843 $as_echo "$as_me: failed program was:" >&5 3844sed 's/^/| /' conftest.$ac_ext >&5 3845 3846{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3848as_fn_error $? "cannot compute suffix of object files: cannot compile 3849See \`config.log' for more details" "$LINENO" 5; } 3850fi 3851rm -f conftest.$ac_cv_objext conftest.$ac_ext 3852fi 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3854$as_echo "$ac_cv_objext" >&6; } 3855OBJEXT=$ac_cv_objext 3856ac_objext=$OBJEXT 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3858$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3859if ${ac_cv_c_compiler_gnu+:} false; then : 3860 $as_echo_n "(cached) " >&6 3861else 3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3863/* end confdefs.h. */ 3864 3865int 3866main () 3867{ 3868#ifndef __GNUC__ 3869 choke me 3870#endif 3871 3872 ; 3873 return 0; 3874} 3875_ACEOF 3876if ac_fn_c_try_compile "$LINENO"; then : 3877 ac_compiler_gnu=yes 3878else 3879 ac_compiler_gnu=no 3880fi 3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3882ac_cv_c_compiler_gnu=$ac_compiler_gnu 3883 3884fi 3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3886$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3887if test $ac_compiler_gnu = yes; then 3888 GCC=yes 3889else 3890 GCC= 3891fi 3892ac_test_CFLAGS=${CFLAGS+set} 3893ac_save_CFLAGS=$CFLAGS 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3895$as_echo_n "checking whether $CC accepts -g... " >&6; } 3896if ${ac_cv_prog_cc_g+:} false; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 ac_save_c_werror_flag=$ac_c_werror_flag 3900 ac_c_werror_flag=yes 3901 ac_cv_prog_cc_g=no 3902 CFLAGS="-g" 3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904/* end confdefs.h. */ 3905 3906int 3907main () 3908{ 3909 3910 ; 3911 return 0; 3912} 3913_ACEOF 3914if ac_fn_c_try_compile "$LINENO"; then : 3915 ac_cv_prog_cc_g=yes 3916else 3917 CFLAGS="" 3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3919/* end confdefs.h. */ 3920 3921int 3922main () 3923{ 3924 3925 ; 3926 return 0; 3927} 3928_ACEOF 3929if ac_fn_c_try_compile "$LINENO"; then : 3930 3931else 3932 ac_c_werror_flag=$ac_save_c_werror_flag 3933 CFLAGS="-g" 3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935/* end confdefs.h. */ 3936 3937int 3938main () 3939{ 3940 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945if ac_fn_c_try_compile "$LINENO"; then : 3946 ac_cv_prog_cc_g=yes 3947fi 3948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3949fi 3950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3951fi 3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3953 ac_c_werror_flag=$ac_save_c_werror_flag 3954fi 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3956$as_echo "$ac_cv_prog_cc_g" >&6; } 3957if test "$ac_test_CFLAGS" = set; then 3958 CFLAGS=$ac_save_CFLAGS 3959elif test $ac_cv_prog_cc_g = yes; then 3960 if test "$GCC" = yes; then 3961 CFLAGS="-g -O2" 3962 else 3963 CFLAGS="-g" 3964 fi 3965else 3966 if test "$GCC" = yes; then 3967 CFLAGS="-O2" 3968 else 3969 CFLAGS= 3970 fi 3971fi 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3973$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3974if ${ac_cv_prog_cc_c89+:} false; then : 3975 $as_echo_n "(cached) " >&6 3976else 3977 ac_cv_prog_cc_c89=no 3978ac_save_CC=$CC 3979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3980/* end confdefs.h. */ 3981#include <stdarg.h> 3982#include <stdio.h> 3983struct stat; 3984/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3985struct buf { int x; }; 3986FILE * (*rcsopen) (struct buf *, struct stat *, int); 3987static char *e (p, i) 3988 char **p; 3989 int i; 3990{ 3991 return p[i]; 3992} 3993static char *f (char * (*g) (char **, int), char **p, ...) 3994{ 3995 char *s; 3996 va_list v; 3997 va_start (v,p); 3998 s = g (p, va_arg (v,int)); 3999 va_end (v); 4000 return s; 4001} 4002 4003/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4004 function prototypes and stuff, but not '\xHH' hex character constants. 4005 These don't provoke an error unfortunately, instead are silently treated 4006 as 'x'. The following induces an error, until -std is added to get 4007 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4008 array size at least. It's necessary to write '\x00'==0 to get something 4009 that's true only with -std. */ 4010int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4011 4012/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4013 inside strings and character constants. */ 4014#define FOO(x) 'x' 4015int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4016 4017int test (int i, double x); 4018struct s1 {int (*f) (int a);}; 4019struct s2 {int (*f) (double a);}; 4020int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4021int argc; 4022char **argv; 4023int 4024main () 4025{ 4026return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4027 ; 4028 return 0; 4029} 4030_ACEOF 4031for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4032 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4033do 4034 CC="$ac_save_CC $ac_arg" 4035 if ac_fn_c_try_compile "$LINENO"; then : 4036 ac_cv_prog_cc_c89=$ac_arg 4037fi 4038rm -f core conftest.err conftest.$ac_objext 4039 test "x$ac_cv_prog_cc_c89" != "xno" && break 4040done 4041rm -f conftest.$ac_ext 4042CC=$ac_save_CC 4043 4044fi 4045# AC_CACHE_VAL 4046case "x$ac_cv_prog_cc_c89" in 4047 x) 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4049$as_echo "none needed" >&6; } ;; 4050 xno) 4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4052$as_echo "unsupported" >&6; } ;; 4053 *) 4054 CC="$CC $ac_cv_prog_cc_c89" 4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4056$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4057esac 4058if test "x$ac_cv_prog_cc_c89" != xno; then : 4059 4060fi 4061 4062ac_ext=c 4063ac_cpp='$CPP $CPPFLAGS' 4064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4066ac_compiler_gnu=$ac_cv_c_compiler_gnu 4067 4068ac_ext=c 4069ac_cpp='$CPP $CPPFLAGS' 4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4072ac_compiler_gnu=$ac_cv_c_compiler_gnu 4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4074$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4075if ${am_cv_prog_cc_c_o+:} false; then : 4076 $as_echo_n "(cached) " >&6 4077else 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080 4081int 4082main () 4083{ 4084 4085 ; 4086 return 0; 4087} 4088_ACEOF 4089 # Make sure it works both with $CC and with simple cc. 4090 # Following AC_PROG_CC_C_O, we do the test twice because some 4091 # compilers refuse to overwrite an existing .o file with -o, 4092 # though they will create one. 4093 am_cv_prog_cc_c_o=yes 4094 for am_i in 1 2; do 4095 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4096 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4097 ac_status=$? 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); } \ 4100 && test -f conftest2.$ac_objext; then 4101 : OK 4102 else 4103 am_cv_prog_cc_c_o=no 4104 break 4105 fi 4106 done 4107 rm -f core conftest* 4108 unset am_i 4109fi 4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4111$as_echo "$am_cv_prog_cc_c_o" >&6; } 4112if test "$am_cv_prog_cc_c_o" != yes; then 4113 # Losing compiler, so override with the script. 4114 # FIXME: It is wrong to rewrite CC. 4115 # But if we don't then we get into trouble of one sort or another. 4116 # A longer-term fix would be to have automake use am__CC in this case, 4117 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4118 CC="$am_aux_dir/compile $CC" 4119fi 4120ac_ext=c 4121ac_cpp='$CPP $CPPFLAGS' 4122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4124ac_compiler_gnu=$ac_cv_c_compiler_gnu 4125 4126 4127depcc="$CC" am_compiler_list= 4128 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4130$as_echo_n "checking dependency style of $depcc... " >&6; } 4131if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133else 4134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4135 # We make a subdir and do the tests there. Otherwise we can end up 4136 # making bogus files that we don't know about and never remove. For 4137 # instance it was reported that on HP-UX the gcc test will end up 4138 # making a dummy file named 'D' -- because '-MD' means "put the output 4139 # in D". 4140 rm -rf conftest.dir 4141 mkdir conftest.dir 4142 # Copy depcomp to subdir because otherwise we won't find it if we're 4143 # using a relative directory. 4144 cp "$am_depcomp" conftest.dir 4145 cd conftest.dir 4146 # We will build objects and dependencies in a subdirectory because 4147 # it helps to detect inapplicable dependency modes. For instance 4148 # both Tru64's cc and ICC support -MD to output dependencies as a 4149 # side effect of compilation, but ICC will put the dependencies in 4150 # the current directory while Tru64 will put them in the object 4151 # directory. 4152 mkdir sub 4153 4154 am_cv_CC_dependencies_compiler_type=none 4155 if test "$am_compiler_list" = ""; then 4156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4157 fi 4158 am__universal=false 4159 case " $depcc " in #( 4160 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4161 esac 4162 4163 for depmode in $am_compiler_list; do 4164 # Setup a source with many dependencies, because some compilers 4165 # like to wrap large dependency lists on column 80 (with \), and 4166 # we should not choose a depcomp mode which is confused by this. 4167 # 4168 # We need to recreate these files for each test, as the compiler may 4169 # overwrite some of them when testing with obscure command lines. 4170 # This happens at least with the AIX C compiler. 4171 : > sub/conftest.c 4172 for i in 1 2 3 4 5 6; do 4173 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4174 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4175 # Solaris 10 /bin/sh. 4176 echo '/* dummy */' > sub/conftst$i.h 4177 done 4178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4179 4180 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4181 # mode. It turns out that the SunPro C++ compiler does not properly 4182 # handle '-M -o', and we need to detect this. Also, some Intel 4183 # versions had trouble with output in subdirs. 4184 am__obj=sub/conftest.${OBJEXT-o} 4185 am__minus_obj="-o $am__obj" 4186 case $depmode in 4187 gcc) 4188 # This depmode causes a compiler race in universal mode. 4189 test "$am__universal" = false || continue 4190 ;; 4191 nosideeffect) 4192 # After this tag, mechanisms are not by side-effect, so they'll 4193 # only be used when explicitly requested. 4194 if test "x$enable_dependency_tracking" = xyes; then 4195 continue 4196 else 4197 break 4198 fi 4199 ;; 4200 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4201 # This compiler won't grok '-c -o', but also, the minuso test has 4202 # not run yet. These depmodes are late enough in the game, and 4203 # so weak that their functioning should not be impacted. 4204 am__obj=conftest.${OBJEXT-o} 4205 am__minus_obj= 4206 ;; 4207 none) break ;; 4208 esac 4209 if depmode=$depmode \ 4210 source=sub/conftest.c object=$am__obj \ 4211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4213 >/dev/null 2>conftest.err && 4214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4218 # icc doesn't choke on unknown options, it will just issue warnings 4219 # or remarks (even with -Werror). So we grep stderr for any message 4220 # that says an option was ignored or not supported. 4221 # When given -MP, icc 7.0 and 7.1 complain thusly: 4222 # icc: Command line warning: ignoring option '-M'; no argument required 4223 # The diagnosis changed in icc 8.0: 4224 # icc: Command line remark: option '-MP' not supported 4225 if (grep 'ignoring option' conftest.err || 4226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4227 am_cv_CC_dependencies_compiler_type=$depmode 4228 break 4229 fi 4230 fi 4231 done 4232 4233 cd .. 4234 rm -rf conftest.dir 4235else 4236 am_cv_CC_dependencies_compiler_type=none 4237fi 4238 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4241$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4242CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4243 4244 if 4245 test "x$enable_dependency_tracking" != xno \ 4246 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4247 am__fastdepCC_TRUE= 4248 am__fastdepCC_FALSE='#' 4249else 4250 am__fastdepCC_TRUE='#' 4251 am__fastdepCC_FALSE= 4252fi 4253 4254 4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4256$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4257if ${ac_cv_path_SED+:} false; then : 4258 $as_echo_n "(cached) " >&6 4259else 4260 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4261 for ac_i in 1 2 3 4 5 6 7; do 4262 ac_script="$ac_script$as_nl$ac_script" 4263 done 4264 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4265 { ac_script=; unset ac_script;} 4266 if test -z "$SED"; then 4267 ac_path_SED_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 4271do 4272 IFS=$as_save_IFS 4273 test -z "$as_dir" && as_dir=. 4274 for ac_prog in sed gsed; do 4275 for ac_exec_ext in '' $ac_executable_extensions; do 4276 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4277 as_fn_executable_p "$ac_path_SED" || continue 4278# Check for GNU ac_path_SED and select it if it is found. 4279 # Check for GNU $ac_path_SED 4280case `"$ac_path_SED" --version 2>&1` in 4281*GNU*) 4282 ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl" 4292 "$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then 4296 # Best one so far, save it but keep looking for a better one 4297 ac_cv_path_SED="$ac_path_SED" 4298 ac_path_SED_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_SED_found && break 3 4307 done 4308 done 4309 done 4310IFS=$as_save_IFS 4311 if test -z "$ac_cv_path_SED"; then 4312 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4313 fi 4314else 4315 ac_cv_path_SED=$SED 4316fi 4317 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4320$as_echo "$ac_cv_path_SED" >&6; } 4321 SED="$ac_cv_path_SED" 4322 rm -f conftest.sed 4323 4324test -z "$SED" && SED=sed 4325Xsed="$SED -e 1s/^X//" 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4338$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4339if ${ac_cv_path_GREP+:} false; then : 4340 $as_echo_n "(cached) " >&6 4341else 4342 if test -z "$GREP"; then 4343 ac_path_GREP_found=false 4344 # Loop through the user's path and test for each of PROGNAME-LIST 4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4347do 4348 IFS=$as_save_IFS 4349 test -z "$as_dir" && as_dir=. 4350 for ac_prog in grep ggrep; do 4351 for ac_exec_ext in '' $ac_executable_extensions; do 4352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4353 as_fn_executable_p "$ac_path_GREP" || continue 4354# Check for GNU ac_path_GREP and select it if it is found. 4355 # Check for GNU $ac_path_GREP 4356case `"$ac_path_GREP" --version 2>&1` in 4357*GNU*) 4358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4359*) 4360 ac_count=0 4361 $as_echo_n 0123456789 >"conftest.in" 4362 while : 4363 do 4364 cat "conftest.in" "conftest.in" >"conftest.tmp" 4365 mv "conftest.tmp" "conftest.in" 4366 cp "conftest.in" "conftest.nl" 4367 $as_echo 'GREP' >> "conftest.nl" 4368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4370 as_fn_arith $ac_count + 1 && ac_count=$as_val 4371 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4372 # Best one so far, save it but keep looking for a better one 4373 ac_cv_path_GREP="$ac_path_GREP" 4374 ac_path_GREP_max=$ac_count 4375 fi 4376 # 10*(2^10) chars as input seems more than enough 4377 test $ac_count -gt 10 && break 4378 done 4379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4380esac 4381 4382 $ac_path_GREP_found && break 3 4383 done 4384 done 4385 done 4386IFS=$as_save_IFS 4387 if test -z "$ac_cv_path_GREP"; then 4388 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4389 fi 4390else 4391 ac_cv_path_GREP=$GREP 4392fi 4393 4394fi 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4396$as_echo "$ac_cv_path_GREP" >&6; } 4397 GREP="$ac_cv_path_GREP" 4398 4399 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4401$as_echo_n "checking for egrep... " >&6; } 4402if ${ac_cv_path_EGREP+:} false; then : 4403 $as_echo_n "(cached) " >&6 4404else 4405 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4406 then ac_cv_path_EGREP="$GREP -E" 4407 else 4408 if test -z "$EGREP"; then 4409 ac_path_EGREP_found=false 4410 # Loop through the user's path and test for each of PROGNAME-LIST 4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4413do 4414 IFS=$as_save_IFS 4415 test -z "$as_dir" && as_dir=. 4416 for ac_prog in egrep; do 4417 for ac_exec_ext in '' $ac_executable_extensions; do 4418 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4419 as_fn_executable_p "$ac_path_EGREP" || continue 4420# Check for GNU ac_path_EGREP and select it if it is found. 4421 # Check for GNU $ac_path_EGREP 4422case `"$ac_path_EGREP" --version 2>&1` in 4423*GNU*) 4424 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4425*) 4426 ac_count=0 4427 $as_echo_n 0123456789 >"conftest.in" 4428 while : 4429 do 4430 cat "conftest.in" "conftest.in" >"conftest.tmp" 4431 mv "conftest.tmp" "conftest.in" 4432 cp "conftest.in" "conftest.nl" 4433 $as_echo 'EGREP' >> "conftest.nl" 4434 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4436 as_fn_arith $ac_count + 1 && ac_count=$as_val 4437 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4438 # Best one so far, save it but keep looking for a better one 4439 ac_cv_path_EGREP="$ac_path_EGREP" 4440 ac_path_EGREP_max=$ac_count 4441 fi 4442 # 10*(2^10) chars as input seems more than enough 4443 test $ac_count -gt 10 && break 4444 done 4445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4446esac 4447 4448 $ac_path_EGREP_found && break 3 4449 done 4450 done 4451 done 4452IFS=$as_save_IFS 4453 if test -z "$ac_cv_path_EGREP"; then 4454 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4455 fi 4456else 4457 ac_cv_path_EGREP=$EGREP 4458fi 4459 4460 fi 4461fi 4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4463$as_echo "$ac_cv_path_EGREP" >&6; } 4464 EGREP="$ac_cv_path_EGREP" 4465 4466 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4468$as_echo_n "checking for fgrep... " >&6; } 4469if ${ac_cv_path_FGREP+:} false; then : 4470 $as_echo_n "(cached) " >&6 4471else 4472 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4473 then ac_cv_path_FGREP="$GREP -F" 4474 else 4475 if test -z "$FGREP"; then 4476 ac_path_FGREP_found=false 4477 # Loop through the user's path and test for each of PROGNAME-LIST 4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_prog in fgrep; do 4484 for ac_exec_ext in '' $ac_executable_extensions; do 4485 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4486 as_fn_executable_p "$ac_path_FGREP" || continue 4487# Check for GNU ac_path_FGREP and select it if it is found. 4488 # Check for GNU $ac_path_FGREP 4489case `"$ac_path_FGREP" --version 2>&1` in 4490*GNU*) 4491 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4492*) 4493 ac_count=0 4494 $as_echo_n 0123456789 >"conftest.in" 4495 while : 4496 do 4497 cat "conftest.in" "conftest.in" >"conftest.tmp" 4498 mv "conftest.tmp" "conftest.in" 4499 cp "conftest.in" "conftest.nl" 4500 $as_echo 'FGREP' >> "conftest.nl" 4501 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4503 as_fn_arith $ac_count + 1 && ac_count=$as_val 4504 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4505 # Best one so far, save it but keep looking for a better one 4506 ac_cv_path_FGREP="$ac_path_FGREP" 4507 ac_path_FGREP_max=$ac_count 4508 fi 4509 # 10*(2^10) chars as input seems more than enough 4510 test $ac_count -gt 10 && break 4511 done 4512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4513esac 4514 4515 $ac_path_FGREP_found && break 3 4516 done 4517 done 4518 done 4519IFS=$as_save_IFS 4520 if test -z "$ac_cv_path_FGREP"; then 4521 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4522 fi 4523else 4524 ac_cv_path_FGREP=$FGREP 4525fi 4526 4527 fi 4528fi 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4530$as_echo "$ac_cv_path_FGREP" >&6; } 4531 FGREP="$ac_cv_path_FGREP" 4532 4533 4534test -z "$GREP" && GREP=grep 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554# Check whether --with-gnu-ld was given. 4555if test "${with_gnu_ld+set}" = set; then : 4556 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4557else 4558 with_gnu_ld=no 4559fi 4560 4561ac_prog=ld 4562if test "$GCC" = yes; then 4563 # Check if gcc -print-prog-name=ld gives a path. 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4565$as_echo_n "checking for ld used by $CC... " >&6; } 4566 case $host in 4567 *-*-mingw*) 4568 # gcc leaves a trailing carriage return which upsets mingw 4569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4570 *) 4571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4572 esac 4573 case $ac_prog in 4574 # Accept absolute paths. 4575 [\\/]* | ?:[\\/]*) 4576 re_direlt='/[^/][^/]*/\.\./' 4577 # Canonicalize the pathname of ld 4578 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4579 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4580 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4581 done 4582 test -z "$LD" && LD="$ac_prog" 4583 ;; 4584 "") 4585 # If it fails, then pretend we aren't using GCC. 4586 ac_prog=ld 4587 ;; 4588 *) 4589 # If it is relative, then search for the first ld in PATH. 4590 with_gnu_ld=unknown 4591 ;; 4592 esac 4593elif test "$with_gnu_ld" = yes; then 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4595$as_echo_n "checking for GNU ld... " >&6; } 4596else 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4598$as_echo_n "checking for non-GNU ld... " >&6; } 4599fi 4600if ${lt_cv_path_LD+:} false; then : 4601 $as_echo_n "(cached) " >&6 4602else 4603 if test -z "$LD"; then 4604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4605 for ac_dir in $PATH; do 4606 IFS="$lt_save_ifs" 4607 test -z "$ac_dir" && ac_dir=. 4608 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4609 lt_cv_path_LD="$ac_dir/$ac_prog" 4610 # Check to see if the program is GNU ld. I'd rather use --version, 4611 # but apparently some variants of GNU ld only accept -v. 4612 # Break only if it was the GNU/non-GNU ld that we prefer. 4613 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4614 *GNU* | *'with BFD'*) 4615 test "$with_gnu_ld" != no && break 4616 ;; 4617 *) 4618 test "$with_gnu_ld" != yes && break 4619 ;; 4620 esac 4621 fi 4622 done 4623 IFS="$lt_save_ifs" 4624else 4625 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4626fi 4627fi 4628 4629LD="$lt_cv_path_LD" 4630if test -n "$LD"; then 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4632$as_echo "$LD" >&6; } 4633else 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4635$as_echo "no" >&6; } 4636fi 4637test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4639$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4640if ${lt_cv_prog_gnu_ld+:} false; then : 4641 $as_echo_n "(cached) " >&6 4642else 4643 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4644case `$LD -v 2>&1 </dev/null` in 4645*GNU* | *'with BFD'*) 4646 lt_cv_prog_gnu_ld=yes 4647 ;; 4648*) 4649 lt_cv_prog_gnu_ld=no 4650 ;; 4651esac 4652fi 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4654$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4655with_gnu_ld=$lt_cv_prog_gnu_ld 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4666$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4667if ${lt_cv_path_NM+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 if test -n "$NM"; then 4671 # Let the user override the test. 4672 lt_cv_path_NM="$NM" 4673else 4674 lt_nm_to_check="${ac_tool_prefix}nm" 4675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4676 lt_nm_to_check="$lt_nm_to_check nm" 4677 fi 4678 for lt_tmp_nm in $lt_nm_to_check; do 4679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4681 IFS="$lt_save_ifs" 4682 test -z "$ac_dir" && ac_dir=. 4683 tmp_nm="$ac_dir/$lt_tmp_nm" 4684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4685 # Check to see if the nm accepts a BSD-compat flag. 4686 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4687 # nm: unknown option "B" ignored 4688 # Tru64's nm complains that /dev/null is an invalid object file 4689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4690 */dev/null* | *'Invalid file or object type'*) 4691 lt_cv_path_NM="$tmp_nm -B" 4692 break 4693 ;; 4694 *) 4695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4696 */dev/null*) 4697 lt_cv_path_NM="$tmp_nm -p" 4698 break 4699 ;; 4700 *) 4701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4702 continue # so that we can try to find one that supports BSD flags 4703 ;; 4704 esac 4705 ;; 4706 esac 4707 fi 4708 done 4709 IFS="$lt_save_ifs" 4710 done 4711 : ${lt_cv_path_NM=no} 4712fi 4713fi 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4715$as_echo "$lt_cv_path_NM" >&6; } 4716if test "$lt_cv_path_NM" != "no"; then 4717 NM="$lt_cv_path_NM" 4718else 4719 # Didn't find any BSD compatible name lister, look for dumpbin. 4720 if test -n "$DUMPBIN"; then : 4721 # Let the user override the test. 4722 else 4723 if test -n "$ac_tool_prefix"; then 4724 for ac_prog in dumpbin "link -dump" 4725 do 4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4727set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4729$as_echo_n "checking for $ac_word... " >&6; } 4730if ${ac_cv_prog_DUMPBIN+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 if test -n "$DUMPBIN"; then 4734 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4735else 4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737for as_dir in $PATH 4738do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4743 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4745 break 2 4746 fi 4747done 4748 done 4749IFS=$as_save_IFS 4750 4751fi 4752fi 4753DUMPBIN=$ac_cv_prog_DUMPBIN 4754if test -n "$DUMPBIN"; then 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4756$as_echo "$DUMPBIN" >&6; } 4757else 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759$as_echo "no" >&6; } 4760fi 4761 4762 4763 test -n "$DUMPBIN" && break 4764 done 4765fi 4766if test -z "$DUMPBIN"; then 4767 ac_ct_DUMPBIN=$DUMPBIN 4768 for ac_prog in dumpbin "link -dump" 4769do 4770 # Extract the first word of "$ac_prog", so it can be a program name with args. 4771set dummy $ac_prog; ac_word=$2 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4773$as_echo_n "checking for $ac_word... " >&6; } 4774if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 if test -n "$ac_ct_DUMPBIN"; then 4778 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4779else 4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4781for as_dir in $PATH 4782do 4783 IFS=$as_save_IFS 4784 test -z "$as_dir" && as_dir=. 4785 for ac_exec_ext in '' $ac_executable_extensions; do 4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4787 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4789 break 2 4790 fi 4791done 4792 done 4793IFS=$as_save_IFS 4794 4795fi 4796fi 4797ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4798if test -n "$ac_ct_DUMPBIN"; then 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4800$as_echo "$ac_ct_DUMPBIN" >&6; } 4801else 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4803$as_echo "no" >&6; } 4804fi 4805 4806 4807 test -n "$ac_ct_DUMPBIN" && break 4808done 4809 4810 if test "x$ac_ct_DUMPBIN" = x; then 4811 DUMPBIN=":" 4812 else 4813 case $cross_compiling:$ac_tool_warned in 4814yes:) 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4817ac_tool_warned=yes ;; 4818esac 4819 DUMPBIN=$ac_ct_DUMPBIN 4820 fi 4821fi 4822 4823 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4824 *COFF*) 4825 DUMPBIN="$DUMPBIN -symbols" 4826 ;; 4827 *) 4828 DUMPBIN=: 4829 ;; 4830 esac 4831 fi 4832 4833 if test "$DUMPBIN" != ":"; then 4834 NM="$DUMPBIN" 4835 fi 4836fi 4837test -z "$NM" && NM=nm 4838 4839 4840 4841 4842 4843 4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4845$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4846if ${lt_cv_nm_interface+:} false; then : 4847 $as_echo_n "(cached) " >&6 4848else 4849 lt_cv_nm_interface="BSD nm" 4850 echo "int some_variable = 0;" > conftest.$ac_ext 4851 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4852 (eval "$ac_compile" 2>conftest.err) 4853 cat conftest.err >&5 4854 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4855 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4856 cat conftest.err >&5 4857 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4858 cat conftest.out >&5 4859 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4860 lt_cv_nm_interface="MS dumpbin" 4861 fi 4862 rm -f conftest* 4863fi 4864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4865$as_echo "$lt_cv_nm_interface" >&6; } 4866 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4868$as_echo_n "checking whether ln -s works... " >&6; } 4869LN_S=$as_ln_s 4870if test "$LN_S" = "ln -s"; then 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4872$as_echo "yes" >&6; } 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4875$as_echo "no, using $LN_S" >&6; } 4876fi 4877 4878# find the maximum length of command line arguments 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4880$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4881if ${lt_cv_sys_max_cmd_len+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883else 4884 i=0 4885 teststring="ABCD" 4886 4887 case $build_os in 4888 msdosdjgpp*) 4889 # On DJGPP, this test can blow up pretty badly due to problems in libc 4890 # (any single argument exceeding 2000 bytes causes a buffer overrun 4891 # during glob expansion). Even if it were fixed, the result of this 4892 # check would be larger than it should be. 4893 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4894 ;; 4895 4896 gnu*) 4897 # Under GNU Hurd, this test is not required because there is 4898 # no limit to the length of command line arguments. 4899 # Libtool will interpret -1 as no limit whatsoever 4900 lt_cv_sys_max_cmd_len=-1; 4901 ;; 4902 4903 cygwin* | mingw* | cegcc*) 4904 # On Win9x/ME, this test blows up -- it succeeds, but takes 4905 # about 5 minutes as the teststring grows exponentially. 4906 # Worse, since 9x/ME are not pre-emptively multitasking, 4907 # you end up with a "frozen" computer, even though with patience 4908 # the test eventually succeeds (with a max line length of 256k). 4909 # Instead, let's just punt: use the minimum linelength reported by 4910 # all of the supported platforms: 8192 (on NT/2K/XP). 4911 lt_cv_sys_max_cmd_len=8192; 4912 ;; 4913 4914 mint*) 4915 # On MiNT this can take a long time and run out of memory. 4916 lt_cv_sys_max_cmd_len=8192; 4917 ;; 4918 4919 amigaos*) 4920 # On AmigaOS with pdksh, this test takes hours, literally. 4921 # So we just punt and use a minimum line length of 8192. 4922 lt_cv_sys_max_cmd_len=8192; 4923 ;; 4924 4925 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4926 # This has been around since 386BSD, at least. Likely further. 4927 if test -x /sbin/sysctl; then 4928 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4929 elif test -x /usr/sbin/sysctl; then 4930 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4931 else 4932 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4933 fi 4934 # And add a safety zone 4935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4937 ;; 4938 4939 interix*) 4940 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4941 lt_cv_sys_max_cmd_len=196608 4942 ;; 4943 4944 os2*) 4945 # The test takes a long time on OS/2. 4946 lt_cv_sys_max_cmd_len=8192 4947 ;; 4948 4949 osf*) 4950 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4951 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4952 # nice to cause kernel panics so lets avoid the loop below. 4953 # First set a reasonable default. 4954 lt_cv_sys_max_cmd_len=16384 4955 # 4956 if test -x /sbin/sysconfig; then 4957 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4958 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4959 esac 4960 fi 4961 ;; 4962 sco3.2v5*) 4963 lt_cv_sys_max_cmd_len=102400 4964 ;; 4965 sysv5* | sco5v6* | sysv4.2uw2*) 4966 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4967 if test -n "$kargmax"; then 4968 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4969 else 4970 lt_cv_sys_max_cmd_len=32768 4971 fi 4972 ;; 4973 *) 4974 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4975 if test -n "$lt_cv_sys_max_cmd_len"; then 4976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4978 else 4979 # Make teststring a little bigger before we do anything with it. 4980 # a 1K string should be a reasonable start. 4981 for i in 1 2 3 4 5 6 7 8 ; do 4982 teststring=$teststring$teststring 4983 done 4984 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4985 # If test is not a shell built-in, we'll probably end up computing a 4986 # maximum length that is only half of the actual maximum length, but 4987 # we can't tell. 4988 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4989 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4990 test $i != 17 # 1/2 MB should be enough 4991 do 4992 i=`expr $i + 1` 4993 teststring=$teststring$teststring 4994 done 4995 # Only check the string length outside the loop. 4996 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4997 teststring= 4998 # Add a significant safety factor because C++ compilers can tack on 4999 # massive amounts of additional arguments before passing them to the 5000 # linker. It appears as though 1/2 is a usable value. 5001 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5002 fi 5003 ;; 5004 esac 5005 5006fi 5007 5008if test -n $lt_cv_sys_max_cmd_len ; then 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5010$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5011else 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5013$as_echo "none" >&6; } 5014fi 5015max_cmd_len=$lt_cv_sys_max_cmd_len 5016 5017 5018 5019 5020 5021 5022: ${CP="cp -f"} 5023: ${MV="mv -f"} 5024: ${RM="rm -f"} 5025 5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5027$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5028# Try some XSI features 5029xsi_shell=no 5030( _lt_dummy="a/b/c" 5031 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5032 = c,a/b,b/c, \ 5033 && eval 'test $(( 1 + 1 )) -eq 2 \ 5034 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5035 && xsi_shell=yes 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5037$as_echo "$xsi_shell" >&6; } 5038 5039 5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5041$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5042lt_shell_append=no 5043( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5044 >/dev/null 2>&1 \ 5045 && lt_shell_append=yes 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5047$as_echo "$lt_shell_append" >&6; } 5048 5049 5050if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5051 lt_unset=unset 5052else 5053 lt_unset=false 5054fi 5055 5056 5057 5058 5059 5060# test EBCDIC or ASCII 5061case `echo X|tr X '\101'` in 5062 A) # ASCII based system 5063 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5064 lt_SP2NL='tr \040 \012' 5065 lt_NL2SP='tr \015\012 \040\040' 5066 ;; 5067 *) # EBCDIC based system 5068 lt_SP2NL='tr \100 \n' 5069 lt_NL2SP='tr \r\n \100\100' 5070 ;; 5071esac 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5082$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5083if ${lt_cv_to_host_file_cmd+:} false; then : 5084 $as_echo_n "(cached) " >&6 5085else 5086 case $host in 5087 *-*-mingw* ) 5088 case $build in 5089 *-*-mingw* ) # actually msys 5090 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5091 ;; 5092 *-*-cygwin* ) 5093 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5094 ;; 5095 * ) # otherwise, assume *nix 5096 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5097 ;; 5098 esac 5099 ;; 5100 *-*-cygwin* ) 5101 case $build in 5102 *-*-mingw* ) # actually msys 5103 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5104 ;; 5105 *-*-cygwin* ) 5106 lt_cv_to_host_file_cmd=func_convert_file_noop 5107 ;; 5108 * ) # otherwise, assume *nix 5109 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5110 ;; 5111 esac 5112 ;; 5113 * ) # unhandled hosts (and "normal" native builds) 5114 lt_cv_to_host_file_cmd=func_convert_file_noop 5115 ;; 5116esac 5117 5118fi 5119 5120to_host_file_cmd=$lt_cv_to_host_file_cmd 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5122$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5123 5124 5125 5126 5127 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5129$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5130if ${lt_cv_to_tool_file_cmd+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 #assume ordinary cross tools, or native build. 5134lt_cv_to_tool_file_cmd=func_convert_file_noop 5135case $host in 5136 *-*-mingw* ) 5137 case $build in 5138 *-*-mingw* ) # actually msys 5139 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5140 ;; 5141 esac 5142 ;; 5143esac 5144 5145fi 5146 5147to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5149$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5150 5151 5152 5153 5154 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5156$as_echo_n "checking for $LD option to reload object files... " >&6; } 5157if ${lt_cv_ld_reload_flag+:} false; then : 5158 $as_echo_n "(cached) " >&6 5159else 5160 lt_cv_ld_reload_flag='-r' 5161fi 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5163$as_echo "$lt_cv_ld_reload_flag" >&6; } 5164reload_flag=$lt_cv_ld_reload_flag 5165case $reload_flag in 5166"" | " "*) ;; 5167*) reload_flag=" $reload_flag" ;; 5168esac 5169reload_cmds='$LD$reload_flag -o $output$reload_objs' 5170case $host_os in 5171 cygwin* | mingw* | pw32* | cegcc*) 5172 if test "$GCC" != yes; then 5173 reload_cmds=false 5174 fi 5175 ;; 5176 darwin*) 5177 if test "$GCC" = yes; then 5178 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5179 else 5180 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5181 fi 5182 ;; 5183esac 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193if test -n "$ac_tool_prefix"; then 5194 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5195set dummy ${ac_tool_prefix}objdump; ac_word=$2 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5197$as_echo_n "checking for $ac_word... " >&6; } 5198if ${ac_cv_prog_OBJDUMP+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 if test -n "$OBJDUMP"; then 5202 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5203else 5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5205for as_dir in $PATH 5206do 5207 IFS=$as_save_IFS 5208 test -z "$as_dir" && as_dir=. 5209 for ac_exec_ext in '' $ac_executable_extensions; do 5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5211 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5213 break 2 5214 fi 5215done 5216 done 5217IFS=$as_save_IFS 5218 5219fi 5220fi 5221OBJDUMP=$ac_cv_prog_OBJDUMP 5222if test -n "$OBJDUMP"; then 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5224$as_echo "$OBJDUMP" >&6; } 5225else 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5227$as_echo "no" >&6; } 5228fi 5229 5230 5231fi 5232if test -z "$ac_cv_prog_OBJDUMP"; then 5233 ac_ct_OBJDUMP=$OBJDUMP 5234 # Extract the first word of "objdump", so it can be a program name with args. 5235set dummy objdump; ac_word=$2 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5237$as_echo_n "checking for $ac_word... " >&6; } 5238if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5239 $as_echo_n "(cached) " >&6 5240else 5241 if test -n "$ac_ct_OBJDUMP"; then 5242 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5243else 5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5245for as_dir in $PATH 5246do 5247 IFS=$as_save_IFS 5248 test -z "$as_dir" && as_dir=. 5249 for ac_exec_ext in '' $ac_executable_extensions; do 5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5251 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5253 break 2 5254 fi 5255done 5256 done 5257IFS=$as_save_IFS 5258 5259fi 5260fi 5261ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5262if test -n "$ac_ct_OBJDUMP"; then 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5264$as_echo "$ac_ct_OBJDUMP" >&6; } 5265else 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5267$as_echo "no" >&6; } 5268fi 5269 5270 if test "x$ac_ct_OBJDUMP" = x; then 5271 OBJDUMP="false" 5272 else 5273 case $cross_compiling:$ac_tool_warned in 5274yes:) 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5277ac_tool_warned=yes ;; 5278esac 5279 OBJDUMP=$ac_ct_OBJDUMP 5280 fi 5281else 5282 OBJDUMP="$ac_cv_prog_OBJDUMP" 5283fi 5284 5285test -z "$OBJDUMP" && OBJDUMP=objdump 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5296$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5297if ${lt_cv_deplibs_check_method+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 lt_cv_file_magic_cmd='$MAGIC_CMD' 5301lt_cv_file_magic_test_file= 5302lt_cv_deplibs_check_method='unknown' 5303# Need to set the preceding variable on all platforms that support 5304# interlibrary dependencies. 5305# 'none' -- dependencies not supported. 5306# `unknown' -- same as none, but documents that we really don't know. 5307# 'pass_all' -- all dependencies passed with no checks. 5308# 'test_compile' -- check by making test program. 5309# 'file_magic [[regex]]' -- check by looking for files in library path 5310# which responds to the $file_magic_cmd with a given extended regex. 5311# If you have `file' or equivalent on your system and you're not sure 5312# whether `pass_all' will *always* work, you probably want this one. 5313 5314case $host_os in 5315aix[4-9]*) 5316 lt_cv_deplibs_check_method=pass_all 5317 ;; 5318 5319beos*) 5320 lt_cv_deplibs_check_method=pass_all 5321 ;; 5322 5323bsdi[45]*) 5324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5325 lt_cv_file_magic_cmd='/usr/bin/file -L' 5326 lt_cv_file_magic_test_file=/shlib/libc.so 5327 ;; 5328 5329cygwin*) 5330 # func_win32_libid is a shell function defined in ltmain.sh 5331 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5332 lt_cv_file_magic_cmd='func_win32_libid' 5333 ;; 5334 5335mingw* | pw32*) 5336 # Base MSYS/MinGW do not provide the 'file' command needed by 5337 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5338 # unless we find 'file', for example because we are cross-compiling. 5339 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5340 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5342 lt_cv_file_magic_cmd='func_win32_libid' 5343 else 5344 # Keep this pattern in sync with the one in func_win32_libid. 5345 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5346 lt_cv_file_magic_cmd='$OBJDUMP -f' 5347 fi 5348 ;; 5349 5350cegcc*) 5351 # use the weaker test based on 'objdump'. See mingw*. 5352 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5353 lt_cv_file_magic_cmd='$OBJDUMP -f' 5354 ;; 5355 5356darwin* | rhapsody*) 5357 lt_cv_deplibs_check_method=pass_all 5358 ;; 5359 5360freebsd* | dragonfly*) 5361 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5362 case $host_cpu in 5363 i*86 ) 5364 # Not sure whether the presence of OpenBSD here was a mistake. 5365 # Let's accept both of them until this is cleared up. 5366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5367 lt_cv_file_magic_cmd=/usr/bin/file 5368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5369 ;; 5370 esac 5371 else 5372 lt_cv_deplibs_check_method=pass_all 5373 fi 5374 ;; 5375 5376gnu*) 5377 lt_cv_deplibs_check_method=pass_all 5378 ;; 5379 5380haiku*) 5381 lt_cv_deplibs_check_method=pass_all 5382 ;; 5383 5384hpux10.20* | hpux11*) 5385 lt_cv_file_magic_cmd=/usr/bin/file 5386 case $host_cpu in 5387 ia64*) 5388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5389 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5390 ;; 5391 hppa*64*) 5392 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]' 5393 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5394 ;; 5395 *) 5396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5397 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5398 ;; 5399 esac 5400 ;; 5401 5402interix[3-9]*) 5403 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5405 ;; 5406 5407irix5* | irix6* | nonstopux*) 5408 case $LD in 5409 *-32|*"-32 ") libmagic=32-bit;; 5410 *-n32|*"-n32 ") libmagic=N32;; 5411 *-64|*"-64 ") libmagic=64-bit;; 5412 *) libmagic=never-match;; 5413 esac 5414 lt_cv_deplibs_check_method=pass_all 5415 ;; 5416 5417# This must be glibc/ELF. 5418linux* | k*bsd*-gnu | kopensolaris*-gnu) 5419 lt_cv_deplibs_check_method=pass_all 5420 ;; 5421 5422netbsd*) 5423 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5425 else 5426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5427 fi 5428 ;; 5429 5430newos6*) 5431 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5432 lt_cv_file_magic_cmd=/usr/bin/file 5433 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5434 ;; 5435 5436*nto* | *qnx*) 5437 lt_cv_deplibs_check_method=pass_all 5438 ;; 5439 5440openbsd*) 5441 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5443 else 5444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5445 fi 5446 ;; 5447 5448osf3* | osf4* | osf5*) 5449 lt_cv_deplibs_check_method=pass_all 5450 ;; 5451 5452rdos*) 5453 lt_cv_deplibs_check_method=pass_all 5454 ;; 5455 5456solaris*) 5457 lt_cv_deplibs_check_method=pass_all 5458 ;; 5459 5460sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5461 lt_cv_deplibs_check_method=pass_all 5462 ;; 5463 5464sysv4 | sysv4.3*) 5465 case $host_vendor in 5466 motorola) 5467 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]' 5468 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5469 ;; 5470 ncr) 5471 lt_cv_deplibs_check_method=pass_all 5472 ;; 5473 sequent) 5474 lt_cv_file_magic_cmd='/bin/file' 5475 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5476 ;; 5477 sni) 5478 lt_cv_file_magic_cmd='/bin/file' 5479 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5480 lt_cv_file_magic_test_file=/lib/libc.so 5481 ;; 5482 siemens) 5483 lt_cv_deplibs_check_method=pass_all 5484 ;; 5485 pc) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488 esac 5489 ;; 5490 5491tpf*) 5492 lt_cv_deplibs_check_method=pass_all 5493 ;; 5494esac 5495 5496fi 5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5498$as_echo "$lt_cv_deplibs_check_method" >&6; } 5499 5500file_magic_glob= 5501want_nocaseglob=no 5502if test "$build" = "$host"; then 5503 case $host_os in 5504 mingw* | pw32*) 5505 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5506 want_nocaseglob=yes 5507 else 5508 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5509 fi 5510 ;; 5511 esac 5512fi 5513 5514file_magic_cmd=$lt_cv_file_magic_cmd 5515deplibs_check_method=$lt_cv_deplibs_check_method 5516test -z "$deplibs_check_method" && deplibs_check_method=unknown 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539if test -n "$ac_tool_prefix"; then 5540 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5541set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5543$as_echo_n "checking for $ac_word... " >&6; } 5544if ${ac_cv_prog_DLLTOOL+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 if test -n "$DLLTOOL"; then 5548 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5549else 5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5551for as_dir in $PATH 5552do 5553 IFS=$as_save_IFS 5554 test -z "$as_dir" && as_dir=. 5555 for ac_exec_ext in '' $ac_executable_extensions; do 5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5557 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5559 break 2 5560 fi 5561done 5562 done 5563IFS=$as_save_IFS 5564 5565fi 5566fi 5567DLLTOOL=$ac_cv_prog_DLLTOOL 5568if test -n "$DLLTOOL"; then 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5570$as_echo "$DLLTOOL" >&6; } 5571else 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573$as_echo "no" >&6; } 5574fi 5575 5576 5577fi 5578if test -z "$ac_cv_prog_DLLTOOL"; then 5579 ac_ct_DLLTOOL=$DLLTOOL 5580 # Extract the first word of "dlltool", so it can be a program name with args. 5581set dummy dlltool; ac_word=$2 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5583$as_echo_n "checking for $ac_word... " >&6; } 5584if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5585 $as_echo_n "(cached) " >&6 5586else 5587 if test -n "$ac_ct_DLLTOOL"; then 5588 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5589else 5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5591for as_dir in $PATH 5592do 5593 IFS=$as_save_IFS 5594 test -z "$as_dir" && as_dir=. 5595 for ac_exec_ext in '' $ac_executable_extensions; do 5596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5597 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5599 break 2 5600 fi 5601done 5602 done 5603IFS=$as_save_IFS 5604 5605fi 5606fi 5607ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5608if test -n "$ac_ct_DLLTOOL"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5610$as_echo "$ac_ct_DLLTOOL" >&6; } 5611else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613$as_echo "no" >&6; } 5614fi 5615 5616 if test "x$ac_ct_DLLTOOL" = x; then 5617 DLLTOOL="false" 5618 else 5619 case $cross_compiling:$ac_tool_warned in 5620yes:) 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5623ac_tool_warned=yes ;; 5624esac 5625 DLLTOOL=$ac_ct_DLLTOOL 5626 fi 5627else 5628 DLLTOOL="$ac_cv_prog_DLLTOOL" 5629fi 5630 5631test -z "$DLLTOOL" && DLLTOOL=dlltool 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5643$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5644if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 lt_cv_sharedlib_from_linklib_cmd='unknown' 5648 5649case $host_os in 5650cygwin* | mingw* | pw32* | cegcc*) 5651 # two different shell functions defined in ltmain.sh 5652 # decide which to use based on capabilities of $DLLTOOL 5653 case `$DLLTOOL --help 2>&1` in 5654 *--identify-strict*) 5655 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5656 ;; 5657 *) 5658 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5659 ;; 5660 esac 5661 ;; 5662*) 5663 # fallback: assume linklib IS sharedlib 5664 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5665 ;; 5666esac 5667 5668fi 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5670$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5671sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5672test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5673 5674 5675 5676 5677 5678 5679 5680 5681if test -n "$ac_tool_prefix"; then 5682 for ac_prog in ar 5683 do 5684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5685set dummy $ac_tool_prefix$ac_prog; 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_AR+:} false; then : 5689 $as_echo_n "(cached) " >&6 5690else 5691 if test -n "$AR"; then 5692 ac_cv_prog_AR="$AR" # 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_AR="$ac_tool_prefix$ac_prog" 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 5711AR=$ac_cv_prog_AR 5712if test -n "$AR"; then 5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5714$as_echo "$AR" >&6; } 5715else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5717$as_echo "no" >&6; } 5718fi 5719 5720 5721 test -n "$AR" && break 5722 done 5723fi 5724if test -z "$AR"; then 5725 ac_ct_AR=$AR 5726 for ac_prog in ar 5727do 5728 # Extract the first word of "$ac_prog", so it can be a program name with args. 5729set dummy $ac_prog; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_ac_ct_AR+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$ac_ct_AR"; then 5736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_ac_ct_AR="$ac_prog" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755ac_ct_AR=$ac_cv_prog_ac_ct_AR 5756if test -n "$ac_ct_AR"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5758$as_echo "$ac_ct_AR" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 5765 test -n "$ac_ct_AR" && break 5766done 5767 5768 if test "x$ac_ct_AR" = x; then 5769 AR="false" 5770 else 5771 case $cross_compiling:$ac_tool_warned in 5772yes:) 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5775ac_tool_warned=yes ;; 5776esac 5777 AR=$ac_ct_AR 5778 fi 5779fi 5780 5781: ${AR=ar} 5782: ${AR_FLAGS=cru} 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5795$as_echo_n "checking for archiver @FILE support... " >&6; } 5796if ${lt_cv_ar_at_file+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798else 5799 lt_cv_ar_at_file=no 5800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5801/* end confdefs.h. */ 5802 5803int 5804main () 5805{ 5806 5807 ; 5808 return 0; 5809} 5810_ACEOF 5811if ac_fn_c_try_compile "$LINENO"; then : 5812 echo conftest.$ac_objext > conftest.lst 5813 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5815 (eval $lt_ar_try) 2>&5 5816 ac_status=$? 5817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5818 test $ac_status = 0; } 5819 if test "$ac_status" -eq 0; then 5820 # Ensure the archiver fails upon bogus file names. 5821 rm -f conftest.$ac_objext libconftest.a 5822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5823 (eval $lt_ar_try) 2>&5 5824 ac_status=$? 5825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5826 test $ac_status = 0; } 5827 if test "$ac_status" -ne 0; then 5828 lt_cv_ar_at_file=@ 5829 fi 5830 fi 5831 rm -f conftest.* libconftest.a 5832 5833fi 5834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5835 5836fi 5837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5838$as_echo "$lt_cv_ar_at_file" >&6; } 5839 5840if test "x$lt_cv_ar_at_file" = xno; then 5841 archiver_list_spec= 5842else 5843 archiver_list_spec=$lt_cv_ar_at_file 5844fi 5845 5846 5847 5848 5849 5850 5851 5852if test -n "$ac_tool_prefix"; then 5853 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5854set dummy ${ac_tool_prefix}strip; ac_word=$2 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5856$as_echo_n "checking for $ac_word... " >&6; } 5857if ${ac_cv_prog_STRIP+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 if test -n "$STRIP"; then 5861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5862else 5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5864for as_dir in $PATH 5865do 5866 IFS=$as_save_IFS 5867 test -z "$as_dir" && as_dir=. 5868 for ac_exec_ext in '' $ac_executable_extensions; do 5869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5870 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5872 break 2 5873 fi 5874done 5875 done 5876IFS=$as_save_IFS 5877 5878fi 5879fi 5880STRIP=$ac_cv_prog_STRIP 5881if test -n "$STRIP"; then 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5883$as_echo "$STRIP" >&6; } 5884else 5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886$as_echo "no" >&6; } 5887fi 5888 5889 5890fi 5891if test -z "$ac_cv_prog_STRIP"; then 5892 ac_ct_STRIP=$STRIP 5893 # Extract the first word of "strip", so it can be a program name with args. 5894set dummy strip; ac_word=$2 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5896$as_echo_n "checking for $ac_word... " >&6; } 5897if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5898 $as_echo_n "(cached) " >&6 5899else 5900 if test -n "$ac_ct_STRIP"; then 5901 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5902else 5903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5904for as_dir in $PATH 5905do 5906 IFS=$as_save_IFS 5907 test -z "$as_dir" && as_dir=. 5908 for ac_exec_ext in '' $ac_executable_extensions; do 5909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5910 ac_cv_prog_ac_ct_STRIP="strip" 5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5912 break 2 5913 fi 5914done 5915 done 5916IFS=$as_save_IFS 5917 5918fi 5919fi 5920ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5921if test -n "$ac_ct_STRIP"; then 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5923$as_echo "$ac_ct_STRIP" >&6; } 5924else 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5926$as_echo "no" >&6; } 5927fi 5928 5929 if test "x$ac_ct_STRIP" = x; then 5930 STRIP=":" 5931 else 5932 case $cross_compiling:$ac_tool_warned in 5933yes:) 5934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5936ac_tool_warned=yes ;; 5937esac 5938 STRIP=$ac_ct_STRIP 5939 fi 5940else 5941 STRIP="$ac_cv_prog_STRIP" 5942fi 5943 5944test -z "$STRIP" && STRIP=: 5945 5946 5947 5948 5949 5950 5951if test -n "$ac_tool_prefix"; then 5952 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5953set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5955$as_echo_n "checking for $ac_word... " >&6; } 5956if ${ac_cv_prog_RANLIB+:} false; then : 5957 $as_echo_n "(cached) " >&6 5958else 5959 if test -n "$RANLIB"; then 5960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5961else 5962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963for as_dir in $PATH 5964do 5965 IFS=$as_save_IFS 5966 test -z "$as_dir" && as_dir=. 5967 for ac_exec_ext in '' $ac_executable_extensions; do 5968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5969 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5971 break 2 5972 fi 5973done 5974 done 5975IFS=$as_save_IFS 5976 5977fi 5978fi 5979RANLIB=$ac_cv_prog_RANLIB 5980if test -n "$RANLIB"; then 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5982$as_echo "$RANLIB" >&6; } 5983else 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5985$as_echo "no" >&6; } 5986fi 5987 5988 5989fi 5990if test -z "$ac_cv_prog_RANLIB"; then 5991 ac_ct_RANLIB=$RANLIB 5992 # Extract the first word of "ranlib", so it can be a program name with args. 5993set dummy ranlib; ac_word=$2 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5995$as_echo_n "checking for $ac_word... " >&6; } 5996if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 if test -n "$ac_ct_RANLIB"; then 6000 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6001else 6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6003for as_dir in $PATH 6004do 6005 IFS=$as_save_IFS 6006 test -z "$as_dir" && as_dir=. 6007 for ac_exec_ext in '' $ac_executable_extensions; do 6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6009 ac_cv_prog_ac_ct_RANLIB="ranlib" 6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6011 break 2 6012 fi 6013done 6014 done 6015IFS=$as_save_IFS 6016 6017fi 6018fi 6019ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6020if test -n "$ac_ct_RANLIB"; then 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6022$as_echo "$ac_ct_RANLIB" >&6; } 6023else 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6025$as_echo "no" >&6; } 6026fi 6027 6028 if test "x$ac_ct_RANLIB" = x; then 6029 RANLIB=":" 6030 else 6031 case $cross_compiling:$ac_tool_warned in 6032yes:) 6033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6035ac_tool_warned=yes ;; 6036esac 6037 RANLIB=$ac_ct_RANLIB 6038 fi 6039else 6040 RANLIB="$ac_cv_prog_RANLIB" 6041fi 6042 6043test -z "$RANLIB" && RANLIB=: 6044 6045 6046 6047 6048 6049 6050# Determine commands to create old-style static archives. 6051old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6052old_postinstall_cmds='chmod 644 $oldlib' 6053old_postuninstall_cmds= 6054 6055if test -n "$RANLIB"; then 6056 case $host_os in 6057 openbsd*) 6058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6059 ;; 6060 *) 6061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6062 ;; 6063 esac 6064 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6065fi 6066 6067case $host_os in 6068 darwin*) 6069 lock_old_archive_extraction=yes ;; 6070 *) 6071 lock_old_archive_extraction=no ;; 6072esac 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112# If no C compiler was specified, use CC. 6113LTCC=${LTCC-"$CC"} 6114 6115# If no C compiler flags were specified, use CFLAGS. 6116LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6117 6118# Allow CC to be a program name with arguments. 6119compiler=$CC 6120 6121 6122# Check for command to grab the raw symbol name followed by C symbol from nm. 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6124$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6125if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127else 6128 6129# These are sane defaults that work on at least a few old systems. 6130# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6131 6132# Character class describing NM global symbol codes. 6133symcode='[BCDEGRST]' 6134 6135# Regexp to match symbols that can be accessed directly from C. 6136sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6137 6138# Define system-specific variables. 6139case $host_os in 6140aix*) 6141 symcode='[BCDT]' 6142 ;; 6143cygwin* | mingw* | pw32* | cegcc*) 6144 symcode='[ABCDGISTW]' 6145 ;; 6146hpux*) 6147 if test "$host_cpu" = ia64; then 6148 symcode='[ABCDEGRST]' 6149 fi 6150 ;; 6151irix* | nonstopux*) 6152 symcode='[BCDEGRST]' 6153 ;; 6154osf*) 6155 symcode='[BCDEGQRST]' 6156 ;; 6157solaris*) 6158 symcode='[BDRT]' 6159 ;; 6160sco3.2v5*) 6161 symcode='[DT]' 6162 ;; 6163sysv4.2uw2*) 6164 symcode='[DT]' 6165 ;; 6166sysv5* | sco5v6* | unixware* | OpenUNIX*) 6167 symcode='[ABDT]' 6168 ;; 6169sysv4) 6170 symcode='[DFNSTU]' 6171 ;; 6172esac 6173 6174# If we're using GNU nm, then use its standard symbol codes. 6175case `$NM -V 2>&1` in 6176*GNU* | *'with BFD'*) 6177 symcode='[ABCDGIRSTW]' ;; 6178esac 6179 6180# Transform an extracted symbol line into a proper C declaration. 6181# Some systems (esp. on ia64) link data and code symbols differently, 6182# so use this general approach. 6183lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6184 6185# Transform an extracted symbol line into symbol name and symbol address 6186lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6187lt_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'" 6188 6189# Handle CRLF in mingw tool chain 6190opt_cr= 6191case $build_os in 6192mingw*) 6193 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6194 ;; 6195esac 6196 6197# Try without a prefix underscore, then with it. 6198for ac_symprfx in "" "_"; do 6199 6200 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6201 symxfrm="\\1 $ac_symprfx\\2 \\2" 6202 6203 # Write the raw and C identifiers. 6204 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6205 # Fake it for dumpbin and say T for any non-static function 6206 # and D for any global variable. 6207 # Also find C++ and __fastcall symbols from MSVC++, 6208 # which start with @ or ?. 6209 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6210" {last_section=section; section=\$ 3};"\ 6211" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6212" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6213" \$ 0!~/External *\|/{next};"\ 6214" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6215" {if(hide[section]) next};"\ 6216" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6217" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6218" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6219" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6220" ' prfx=^$ac_symprfx" 6221 else 6222 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6223 fi 6224 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6225 6226 # Check to see that the pipe works correctly. 6227 pipe_works=no 6228 6229 rm -f conftest* 6230 cat > conftest.$ac_ext <<_LT_EOF 6231#ifdef __cplusplus 6232extern "C" { 6233#endif 6234char nm_test_var; 6235void nm_test_func(void); 6236void nm_test_func(void){} 6237#ifdef __cplusplus 6238} 6239#endif 6240int main(){nm_test_var='a';nm_test_func();return(0);} 6241_LT_EOF 6242 6243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6244 (eval $ac_compile) 2>&5 6245 ac_status=$? 6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6247 test $ac_status = 0; }; then 6248 # Now try to grab the symbols. 6249 nlist=conftest.nm 6250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6251 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6252 ac_status=$? 6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6254 test $ac_status = 0; } && test -s "$nlist"; then 6255 # Try sorting and uniquifying the output. 6256 if sort "$nlist" | uniq > "$nlist"T; then 6257 mv -f "$nlist"T "$nlist" 6258 else 6259 rm -f "$nlist"T 6260 fi 6261 6262 # Make sure that we snagged all the symbols we need. 6263 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6264 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6265 cat <<_LT_EOF > conftest.$ac_ext 6266/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6267#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6268/* DATA imports from DLLs on WIN32 con't be const, because runtime 6269 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6270# define LT_DLSYM_CONST 6271#elif defined(__osf__) 6272/* This system does not cope well with relocations in const data. */ 6273# define LT_DLSYM_CONST 6274#else 6275# define LT_DLSYM_CONST const 6276#endif 6277 6278#ifdef __cplusplus 6279extern "C" { 6280#endif 6281 6282_LT_EOF 6283 # Now generate the symbol file. 6284 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6285 6286 cat <<_LT_EOF >> conftest.$ac_ext 6287 6288/* The mapping between symbol names and symbols. */ 6289LT_DLSYM_CONST struct { 6290 const char *name; 6291 void *address; 6292} 6293lt__PROGRAM__LTX_preloaded_symbols[] = 6294{ 6295 { "@PROGRAM@", (void *) 0 }, 6296_LT_EOF 6297 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6298 cat <<\_LT_EOF >> conftest.$ac_ext 6299 {0, (void *) 0} 6300}; 6301 6302/* This works around a problem in FreeBSD linker */ 6303#ifdef FREEBSD_WORKAROUND 6304static const void *lt_preloaded_setup() { 6305 return lt__PROGRAM__LTX_preloaded_symbols; 6306} 6307#endif 6308 6309#ifdef __cplusplus 6310} 6311#endif 6312_LT_EOF 6313 # Now try linking the two files. 6314 mv conftest.$ac_objext conftstm.$ac_objext 6315 lt_globsym_save_LIBS=$LIBS 6316 lt_globsym_save_CFLAGS=$CFLAGS 6317 LIBS="conftstm.$ac_objext" 6318 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6320 (eval $ac_link) 2>&5 6321 ac_status=$? 6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6323 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6324 pipe_works=yes 6325 fi 6326 LIBS=$lt_globsym_save_LIBS 6327 CFLAGS=$lt_globsym_save_CFLAGS 6328 else 6329 echo "cannot find nm_test_func in $nlist" >&5 6330 fi 6331 else 6332 echo "cannot find nm_test_var in $nlist" >&5 6333 fi 6334 else 6335 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6336 fi 6337 else 6338 echo "$progname: failed program was:" >&5 6339 cat conftest.$ac_ext >&5 6340 fi 6341 rm -rf conftest* conftst* 6342 6343 # Do not use the global_symbol_pipe unless it works. 6344 if test "$pipe_works" = yes; then 6345 break 6346 else 6347 lt_cv_sys_global_symbol_pipe= 6348 fi 6349done 6350 6351fi 6352 6353if test -z "$lt_cv_sys_global_symbol_pipe"; then 6354 lt_cv_sys_global_symbol_to_cdecl= 6355fi 6356if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6358$as_echo "failed" >&6; } 6359else 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6361$as_echo "ok" >&6; } 6362fi 6363 6364# Response file support. 6365if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6366 nm_file_list_spec='@' 6367elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6368 nm_file_list_spec='@' 6369fi 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6398$as_echo_n "checking for sysroot... " >&6; } 6399 6400# Check whether --with-sysroot was given. 6401if test "${with_sysroot+set}" = set; then : 6402 withval=$with_sysroot; 6403else 6404 with_sysroot=no 6405fi 6406 6407 6408lt_sysroot= 6409case ${with_sysroot} in #( 6410 yes) 6411 if test "$GCC" = yes; then 6412 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6413 fi 6414 ;; #( 6415 /*) 6416 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6417 ;; #( 6418 no|'') 6419 ;; #( 6420 *) 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6422$as_echo "${with_sysroot}" >&6; } 6423 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6424 ;; 6425esac 6426 6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6428$as_echo "${lt_sysroot:-no}" >&6; } 6429 6430 6431 6432 6433 6434# Check whether --enable-libtool-lock was given. 6435if test "${enable_libtool_lock+set}" = set; then : 6436 enableval=$enable_libtool_lock; 6437fi 6438 6439test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6440 6441# Some flags need to be propagated to the compiler or linker for good 6442# libtool support. 6443case $host in 6444ia64-*-hpux*) 6445 # Find out which ABI we are using. 6446 echo 'int i;' > conftest.$ac_ext 6447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6448 (eval $ac_compile) 2>&5 6449 ac_status=$? 6450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6451 test $ac_status = 0; }; then 6452 case `/usr/bin/file conftest.$ac_objext` in 6453 *ELF-32*) 6454 HPUX_IA64_MODE="32" 6455 ;; 6456 *ELF-64*) 6457 HPUX_IA64_MODE="64" 6458 ;; 6459 esac 6460 fi 6461 rm -rf conftest* 6462 ;; 6463*-*-irix6*) 6464 # Find out which ABI we are using. 6465 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6467 (eval $ac_compile) 2>&5 6468 ac_status=$? 6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6470 test $ac_status = 0; }; then 6471 if test "$lt_cv_prog_gnu_ld" = yes; then 6472 case `/usr/bin/file conftest.$ac_objext` in 6473 *32-bit*) 6474 LD="${LD-ld} -melf32bsmip" 6475 ;; 6476 *N32*) 6477 LD="${LD-ld} -melf32bmipn32" 6478 ;; 6479 *64-bit*) 6480 LD="${LD-ld} -melf64bmip" 6481 ;; 6482 esac 6483 else 6484 case `/usr/bin/file conftest.$ac_objext` in 6485 *32-bit*) 6486 LD="${LD-ld} -32" 6487 ;; 6488 *N32*) 6489 LD="${LD-ld} -n32" 6490 ;; 6491 *64-bit*) 6492 LD="${LD-ld} -64" 6493 ;; 6494 esac 6495 fi 6496 fi 6497 rm -rf conftest* 6498 ;; 6499 6500x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6501s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6502 # Find out which ABI we are using. 6503 echo 'int i;' > conftest.$ac_ext 6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6505 (eval $ac_compile) 2>&5 6506 ac_status=$? 6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6508 test $ac_status = 0; }; then 6509 case `/usr/bin/file conftest.o` in 6510 *32-bit*) 6511 case $host in 6512 x86_64-*kfreebsd*-gnu) 6513 LD="${LD-ld} -m elf_i386_fbsd" 6514 ;; 6515 x86_64-*linux*) 6516 LD="${LD-ld} -m elf_i386" 6517 ;; 6518 ppc64-*linux*|powerpc64-*linux*) 6519 LD="${LD-ld} -m elf32ppclinux" 6520 ;; 6521 s390x-*linux*) 6522 LD="${LD-ld} -m elf_s390" 6523 ;; 6524 sparc64-*linux*) 6525 LD="${LD-ld} -m elf32_sparc" 6526 ;; 6527 esac 6528 ;; 6529 *64-bit*) 6530 case $host in 6531 x86_64-*kfreebsd*-gnu) 6532 LD="${LD-ld} -m elf_x86_64_fbsd" 6533 ;; 6534 x86_64-*linux*) 6535 LD="${LD-ld} -m elf_x86_64" 6536 ;; 6537 ppc*-*linux*|powerpc*-*linux*) 6538 LD="${LD-ld} -m elf64ppc" 6539 ;; 6540 s390*-*linux*|s390*-*tpf*) 6541 LD="${LD-ld} -m elf64_s390" 6542 ;; 6543 sparc*-*linux*) 6544 LD="${LD-ld} -m elf64_sparc" 6545 ;; 6546 esac 6547 ;; 6548 esac 6549 fi 6550 rm -rf conftest* 6551 ;; 6552 6553*-*-sco3.2v5*) 6554 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6555 SAVE_CFLAGS="$CFLAGS" 6556 CFLAGS="$CFLAGS -belf" 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6558$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6559if ${lt_cv_cc_needs_belf+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 ac_ext=c 6563ac_cpp='$CPP $CPPFLAGS' 6564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6566ac_compiler_gnu=$ac_cv_c_compiler_gnu 6567 6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569/* end confdefs.h. */ 6570 6571int 6572main () 6573{ 6574 6575 ; 6576 return 0; 6577} 6578_ACEOF 6579if ac_fn_c_try_link "$LINENO"; then : 6580 lt_cv_cc_needs_belf=yes 6581else 6582 lt_cv_cc_needs_belf=no 6583fi 6584rm -f core conftest.err conftest.$ac_objext \ 6585 conftest$ac_exeext conftest.$ac_ext 6586 ac_ext=c 6587ac_cpp='$CPP $CPPFLAGS' 6588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6590ac_compiler_gnu=$ac_cv_c_compiler_gnu 6591 6592fi 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6594$as_echo "$lt_cv_cc_needs_belf" >&6; } 6595 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6596 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6597 CFLAGS="$SAVE_CFLAGS" 6598 fi 6599 ;; 6600*-*solaris*) 6601 # Find out which ABI we are using. 6602 echo 'int i;' > conftest.$ac_ext 6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6604 (eval $ac_compile) 2>&5 6605 ac_status=$? 6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6607 test $ac_status = 0; }; then 6608 case `/usr/bin/file conftest.o` in 6609 *64-bit*) 6610 case $lt_cv_prog_gnu_ld in 6611 yes*) 6612 case $host in 6613 i?86-*-solaris*) 6614 LD="${LD-ld} -m elf_x86_64" 6615 ;; 6616 sparc*-*-solaris*) 6617 LD="${LD-ld} -m elf64_sparc" 6618 ;; 6619 esac 6620 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6621 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6622 LD="${LD-ld}_sol2" 6623 fi 6624 ;; 6625 *) 6626 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6627 LD="${LD-ld} -64" 6628 fi 6629 ;; 6630 esac 6631 ;; 6632 esac 6633 fi 6634 rm -rf conftest* 6635 ;; 6636esac 6637 6638need_locks="$enable_libtool_lock" 6639 6640if test -n "$ac_tool_prefix"; then 6641 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6642set dummy ${ac_tool_prefix}mt; ac_word=$2 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6644$as_echo_n "checking for $ac_word... " >&6; } 6645if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6646 $as_echo_n "(cached) " >&6 6647else 6648 if test -n "$MANIFEST_TOOL"; then 6649 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 test -z "$as_dir" && as_dir=. 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6658 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663 done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6669if test -n "$MANIFEST_TOOL"; then 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6671$as_echo "$MANIFEST_TOOL" >&6; } 6672else 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6674$as_echo "no" >&6; } 6675fi 6676 6677 6678fi 6679if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6680 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6681 # Extract the first word of "mt", so it can be a program name with args. 6682set dummy mt; ac_word=$2 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6684$as_echo_n "checking for $ac_word... " >&6; } 6685if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 if test -n "$ac_ct_MANIFEST_TOOL"; then 6689 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6698 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702done 6703 done 6704IFS=$as_save_IFS 6705 6706fi 6707fi 6708ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6709if test -n "$ac_ct_MANIFEST_TOOL"; then 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6711$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6714$as_echo "no" >&6; } 6715fi 6716 6717 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6718 MANIFEST_TOOL=":" 6719 else 6720 case $cross_compiling:$ac_tool_warned in 6721yes:) 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6724ac_tool_warned=yes ;; 6725esac 6726 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6727 fi 6728else 6729 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6730fi 6731 6732test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6734$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6735if ${lt_cv_path_mainfest_tool+:} false; then : 6736 $as_echo_n "(cached) " >&6 6737else 6738 lt_cv_path_mainfest_tool=no 6739 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6740 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6741 cat conftest.err >&5 6742 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6743 lt_cv_path_mainfest_tool=yes 6744 fi 6745 rm -f conftest* 6746fi 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6748$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6749if test "x$lt_cv_path_mainfest_tool" != xyes; then 6750 MANIFEST_TOOL=: 6751fi 6752 6753 6754 6755 6756 6757 6758 case $host_os in 6759 rhapsody* | darwin*) 6760 if test -n "$ac_tool_prefix"; then 6761 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6762set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6764$as_echo_n "checking for $ac_word... " >&6; } 6765if ${ac_cv_prog_DSYMUTIL+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 if test -n "$DSYMUTIL"; then 6769 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6770else 6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6772for as_dir in $PATH 6773do 6774 IFS=$as_save_IFS 6775 test -z "$as_dir" && as_dir=. 6776 for ac_exec_ext in '' $ac_executable_extensions; do 6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6778 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6780 break 2 6781 fi 6782done 6783 done 6784IFS=$as_save_IFS 6785 6786fi 6787fi 6788DSYMUTIL=$ac_cv_prog_DSYMUTIL 6789if test -n "$DSYMUTIL"; then 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6791$as_echo "$DSYMUTIL" >&6; } 6792else 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6794$as_echo "no" >&6; } 6795fi 6796 6797 6798fi 6799if test -z "$ac_cv_prog_DSYMUTIL"; then 6800 ac_ct_DSYMUTIL=$DSYMUTIL 6801 # Extract the first word of "dsymutil", so it can be a program name with args. 6802set dummy dsymutil; ac_word=$2 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6804$as_echo_n "checking for $ac_word... " >&6; } 6805if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6806 $as_echo_n "(cached) " >&6 6807else 6808 if test -n "$ac_ct_DSYMUTIL"; then 6809 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6810else 6811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6812for as_dir in $PATH 6813do 6814 IFS=$as_save_IFS 6815 test -z "$as_dir" && as_dir=. 6816 for ac_exec_ext in '' $ac_executable_extensions; do 6817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6818 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6820 break 2 6821 fi 6822done 6823 done 6824IFS=$as_save_IFS 6825 6826fi 6827fi 6828ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6829if test -n "$ac_ct_DSYMUTIL"; then 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6831$as_echo "$ac_ct_DSYMUTIL" >&6; } 6832else 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6834$as_echo "no" >&6; } 6835fi 6836 6837 if test "x$ac_ct_DSYMUTIL" = x; then 6838 DSYMUTIL=":" 6839 else 6840 case $cross_compiling:$ac_tool_warned in 6841yes:) 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6844ac_tool_warned=yes ;; 6845esac 6846 DSYMUTIL=$ac_ct_DSYMUTIL 6847 fi 6848else 6849 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6850fi 6851 6852 if test -n "$ac_tool_prefix"; then 6853 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6854set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6856$as_echo_n "checking for $ac_word... " >&6; } 6857if ${ac_cv_prog_NMEDIT+:} false; then : 6858 $as_echo_n "(cached) " >&6 6859else 6860 if test -n "$NMEDIT"; then 6861 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6862else 6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6864for as_dir in $PATH 6865do 6866 IFS=$as_save_IFS 6867 test -z "$as_dir" && as_dir=. 6868 for ac_exec_ext in '' $ac_executable_extensions; do 6869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6870 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6872 break 2 6873 fi 6874done 6875 done 6876IFS=$as_save_IFS 6877 6878fi 6879fi 6880NMEDIT=$ac_cv_prog_NMEDIT 6881if test -n "$NMEDIT"; then 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6883$as_echo "$NMEDIT" >&6; } 6884else 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6886$as_echo "no" >&6; } 6887fi 6888 6889 6890fi 6891if test -z "$ac_cv_prog_NMEDIT"; then 6892 ac_ct_NMEDIT=$NMEDIT 6893 # Extract the first word of "nmedit", so it can be a program name with args. 6894set dummy nmedit; ac_word=$2 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6896$as_echo_n "checking for $ac_word... " >&6; } 6897if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6898 $as_echo_n "(cached) " >&6 6899else 6900 if test -n "$ac_ct_NMEDIT"; then 6901 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6902else 6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6904for as_dir in $PATH 6905do 6906 IFS=$as_save_IFS 6907 test -z "$as_dir" && as_dir=. 6908 for ac_exec_ext in '' $ac_executable_extensions; do 6909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6910 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6912 break 2 6913 fi 6914done 6915 done 6916IFS=$as_save_IFS 6917 6918fi 6919fi 6920ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6921if test -n "$ac_ct_NMEDIT"; then 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6923$as_echo "$ac_ct_NMEDIT" >&6; } 6924else 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6926$as_echo "no" >&6; } 6927fi 6928 6929 if test "x$ac_ct_NMEDIT" = x; then 6930 NMEDIT=":" 6931 else 6932 case $cross_compiling:$ac_tool_warned in 6933yes:) 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6936ac_tool_warned=yes ;; 6937esac 6938 NMEDIT=$ac_ct_NMEDIT 6939 fi 6940else 6941 NMEDIT="$ac_cv_prog_NMEDIT" 6942fi 6943 6944 if test -n "$ac_tool_prefix"; then 6945 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6946set dummy ${ac_tool_prefix}lipo; ac_word=$2 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6948$as_echo_n "checking for $ac_word... " >&6; } 6949if ${ac_cv_prog_LIPO+:} false; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 if test -n "$LIPO"; then 6953 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6954else 6955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6956for as_dir in $PATH 6957do 6958 IFS=$as_save_IFS 6959 test -z "$as_dir" && as_dir=. 6960 for ac_exec_ext in '' $ac_executable_extensions; do 6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6962 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6964 break 2 6965 fi 6966done 6967 done 6968IFS=$as_save_IFS 6969 6970fi 6971fi 6972LIPO=$ac_cv_prog_LIPO 6973if test -n "$LIPO"; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6975$as_echo "$LIPO" >&6; } 6976else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6978$as_echo "no" >&6; } 6979fi 6980 6981 6982fi 6983if test -z "$ac_cv_prog_LIPO"; then 6984 ac_ct_LIPO=$LIPO 6985 # Extract the first word of "lipo", so it can be a program name with args. 6986set dummy lipo; ac_word=$2 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6988$as_echo_n "checking for $ac_word... " >&6; } 6989if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991else 6992 if test -n "$ac_ct_LIPO"; then 6993 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6994else 6995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6996for as_dir in $PATH 6997do 6998 IFS=$as_save_IFS 6999 test -z "$as_dir" && as_dir=. 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7002 ac_cv_prog_ac_ct_LIPO="lipo" 7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7004 break 2 7005 fi 7006done 7007 done 7008IFS=$as_save_IFS 7009 7010fi 7011fi 7012ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7013if test -n "$ac_ct_LIPO"; then 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7015$as_echo "$ac_ct_LIPO" >&6; } 7016else 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7018$as_echo "no" >&6; } 7019fi 7020 7021 if test "x$ac_ct_LIPO" = x; then 7022 LIPO=":" 7023 else 7024 case $cross_compiling:$ac_tool_warned in 7025yes:) 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7028ac_tool_warned=yes ;; 7029esac 7030 LIPO=$ac_ct_LIPO 7031 fi 7032else 7033 LIPO="$ac_cv_prog_LIPO" 7034fi 7035 7036 if test -n "$ac_tool_prefix"; then 7037 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7038set dummy ${ac_tool_prefix}otool; ac_word=$2 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7040$as_echo_n "checking for $ac_word... " >&6; } 7041if ${ac_cv_prog_OTOOL+:} false; then : 7042 $as_echo_n "(cached) " >&6 7043else 7044 if test -n "$OTOOL"; then 7045 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7046else 7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048for as_dir in $PATH 7049do 7050 IFS=$as_save_IFS 7051 test -z "$as_dir" && as_dir=. 7052 for ac_exec_ext in '' $ac_executable_extensions; do 7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7054 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7056 break 2 7057 fi 7058done 7059 done 7060IFS=$as_save_IFS 7061 7062fi 7063fi 7064OTOOL=$ac_cv_prog_OTOOL 7065if test -n "$OTOOL"; then 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7067$as_echo "$OTOOL" >&6; } 7068else 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7070$as_echo "no" >&6; } 7071fi 7072 7073 7074fi 7075if test -z "$ac_cv_prog_OTOOL"; then 7076 ac_ct_OTOOL=$OTOOL 7077 # Extract the first word of "otool", so it can be a program name with args. 7078set dummy otool; ac_word=$2 7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7080$as_echo_n "checking for $ac_word... " >&6; } 7081if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 if test -n "$ac_ct_OTOOL"; then 7085 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7086else 7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088for as_dir in $PATH 7089do 7090 IFS=$as_save_IFS 7091 test -z "$as_dir" && as_dir=. 7092 for ac_exec_ext in '' $ac_executable_extensions; do 7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7094 ac_cv_prog_ac_ct_OTOOL="otool" 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7096 break 2 7097 fi 7098done 7099 done 7100IFS=$as_save_IFS 7101 7102fi 7103fi 7104ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7105if test -n "$ac_ct_OTOOL"; then 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7107$as_echo "$ac_ct_OTOOL" >&6; } 7108else 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7110$as_echo "no" >&6; } 7111fi 7112 7113 if test "x$ac_ct_OTOOL" = x; then 7114 OTOOL=":" 7115 else 7116 case $cross_compiling:$ac_tool_warned in 7117yes:) 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7120ac_tool_warned=yes ;; 7121esac 7122 OTOOL=$ac_ct_OTOOL 7123 fi 7124else 7125 OTOOL="$ac_cv_prog_OTOOL" 7126fi 7127 7128 if test -n "$ac_tool_prefix"; then 7129 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7130set dummy ${ac_tool_prefix}otool64; ac_word=$2 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7132$as_echo_n "checking for $ac_word... " >&6; } 7133if ${ac_cv_prog_OTOOL64+:} false; then : 7134 $as_echo_n "(cached) " >&6 7135else 7136 if test -n "$OTOOL64"; then 7137 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7138else 7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7140for as_dir in $PATH 7141do 7142 IFS=$as_save_IFS 7143 test -z "$as_dir" && as_dir=. 7144 for ac_exec_ext in '' $ac_executable_extensions; do 7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7146 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7148 break 2 7149 fi 7150done 7151 done 7152IFS=$as_save_IFS 7153 7154fi 7155fi 7156OTOOL64=$ac_cv_prog_OTOOL64 7157if test -n "$OTOOL64"; then 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7159$as_echo "$OTOOL64" >&6; } 7160else 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7162$as_echo "no" >&6; } 7163fi 7164 7165 7166fi 7167if test -z "$ac_cv_prog_OTOOL64"; then 7168 ac_ct_OTOOL64=$OTOOL64 7169 # Extract the first word of "otool64", so it can be a program name with args. 7170set dummy otool64; ac_word=$2 7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7172$as_echo_n "checking for $ac_word... " >&6; } 7173if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7174 $as_echo_n "(cached) " >&6 7175else 7176 if test -n "$ac_ct_OTOOL64"; then 7177 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7178else 7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7180for as_dir in $PATH 7181do 7182 IFS=$as_save_IFS 7183 test -z "$as_dir" && as_dir=. 7184 for ac_exec_ext in '' $ac_executable_extensions; do 7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7186 ac_cv_prog_ac_ct_OTOOL64="otool64" 7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7188 break 2 7189 fi 7190done 7191 done 7192IFS=$as_save_IFS 7193 7194fi 7195fi 7196ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7197if test -n "$ac_ct_OTOOL64"; then 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7199$as_echo "$ac_ct_OTOOL64" >&6; } 7200else 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7202$as_echo "no" >&6; } 7203fi 7204 7205 if test "x$ac_ct_OTOOL64" = x; then 7206 OTOOL64=":" 7207 else 7208 case $cross_compiling:$ac_tool_warned in 7209yes:) 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7212ac_tool_warned=yes ;; 7213esac 7214 OTOOL64=$ac_ct_OTOOL64 7215 fi 7216else 7217 OTOOL64="$ac_cv_prog_OTOOL64" 7218fi 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7247$as_echo_n "checking for -single_module linker flag... " >&6; } 7248if ${lt_cv_apple_cc_single_mod+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 lt_cv_apple_cc_single_mod=no 7252 if test -z "${LT_MULTI_MODULE}"; then 7253 # By default we will add the -single_module flag. You can override 7254 # by either setting the environment variable LT_MULTI_MODULE 7255 # non-empty at configure time, or by adding -multi_module to the 7256 # link flags. 7257 rm -rf libconftest.dylib* 7258 echo "int foo(void){return 1;}" > conftest.c 7259 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7260-dynamiclib -Wl,-single_module conftest.c" >&5 7261 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7262 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7263 _lt_result=$? 7264 # If there is a non-empty error log, and "single_module" 7265 # appears in it, assume the flag caused a linker warning 7266 if test -s conftest.err && $GREP single_module conftest.err; then 7267 cat conftest.err >&5 7268 # Otherwise, if the output was created with a 0 exit code from 7269 # the compiler, it worked. 7270 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7271 lt_cv_apple_cc_single_mod=yes 7272 else 7273 cat conftest.err >&5 7274 fi 7275 rm -rf libconftest.dylib* 7276 rm -f conftest.* 7277 fi 7278fi 7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7280$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7281 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7283$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7284if ${lt_cv_ld_exported_symbols_list+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 lt_cv_ld_exported_symbols_list=no 7288 save_LDFLAGS=$LDFLAGS 7289 echo "_main" > conftest.sym 7290 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7292/* end confdefs.h. */ 7293 7294int 7295main () 7296{ 7297 7298 ; 7299 return 0; 7300} 7301_ACEOF 7302if ac_fn_c_try_link "$LINENO"; then : 7303 lt_cv_ld_exported_symbols_list=yes 7304else 7305 lt_cv_ld_exported_symbols_list=no 7306fi 7307rm -f core conftest.err conftest.$ac_objext \ 7308 conftest$ac_exeext conftest.$ac_ext 7309 LDFLAGS="$save_LDFLAGS" 7310 7311fi 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7313$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7314 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7316$as_echo_n "checking for -force_load linker flag... " >&6; } 7317if ${lt_cv_ld_force_load+:} false; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 lt_cv_ld_force_load=no 7321 cat > conftest.c << _LT_EOF 7322int forced_loaded() { return 2;} 7323_LT_EOF 7324 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7325 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7326 echo "$AR cru libconftest.a conftest.o" >&5 7327 $AR cru libconftest.a conftest.o 2>&5 7328 echo "$RANLIB libconftest.a" >&5 7329 $RANLIB libconftest.a 2>&5 7330 cat > conftest.c << _LT_EOF 7331int main() { return 0;} 7332_LT_EOF 7333 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7334 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7335 _lt_result=$? 7336 if test -s conftest.err && $GREP force_load conftest.err; then 7337 cat conftest.err >&5 7338 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7339 lt_cv_ld_force_load=yes 7340 else 7341 cat conftest.err >&5 7342 fi 7343 rm -f conftest.err libconftest.a conftest conftest.c 7344 rm -rf conftest.dSYM 7345 7346fi 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7348$as_echo "$lt_cv_ld_force_load" >&6; } 7349 case $host_os in 7350 rhapsody* | darwin1.[012]) 7351 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7352 darwin1.*) 7353 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7354 darwin*) # darwin 5.x on 7355 # if running on 10.5 or later, the deployment target defaults 7356 # to the OS version, if on x86, and 10.4, the deployment 7357 # target defaults to 10.4. Don't you love it? 7358 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7359 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7360 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7361 10.[012]*) 7362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7363 10.*) 7364 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7365 esac 7366 ;; 7367 esac 7368 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7369 _lt_dar_single_mod='$single_module' 7370 fi 7371 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7372 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7373 else 7374 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7375 fi 7376 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7377 _lt_dsymutil='~$DSYMUTIL $lib || :' 7378 else 7379 _lt_dsymutil= 7380 fi 7381 ;; 7382 esac 7383 7384ac_ext=c 7385ac_cpp='$CPP $CPPFLAGS' 7386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7388ac_compiler_gnu=$ac_cv_c_compiler_gnu 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7390$as_echo_n "checking how to run the C preprocessor... " >&6; } 7391# On Suns, sometimes $CPP names a directory. 7392if test -n "$CPP" && test -d "$CPP"; then 7393 CPP= 7394fi 7395if test -z "$CPP"; then 7396 if ${ac_cv_prog_CPP+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 # Double quotes because CPP needs to be expanded 7400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7401 do 7402 ac_preproc_ok=false 7403for ac_c_preproc_warn_flag in '' yes 7404do 7405 # Use a header file that comes with gcc, so configuring glibc 7406 # with a fresh cross-compiler works. 7407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7408 # <limits.h> exists even on freestanding compilers. 7409 # On the NeXT, cc -E runs the code through the compiler's parser, 7410 # not just through cpp. "Syntax error" is here to catch this case. 7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7412/* end confdefs.h. */ 7413#ifdef __STDC__ 7414# include <limits.h> 7415#else 7416# include <assert.h> 7417#endif 7418 Syntax error 7419_ACEOF 7420if ac_fn_c_try_cpp "$LINENO"; then : 7421 7422else 7423 # Broken: fails on valid input. 7424continue 7425fi 7426rm -f conftest.err conftest.i conftest.$ac_ext 7427 7428 # OK, works on sane cases. Now check whether nonexistent headers 7429 # can be detected and how. 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431/* end confdefs.h. */ 7432#include <ac_nonexistent.h> 7433_ACEOF 7434if ac_fn_c_try_cpp "$LINENO"; then : 7435 # Broken: success on invalid input. 7436continue 7437else 7438 # Passes both tests. 7439ac_preproc_ok=: 7440break 7441fi 7442rm -f conftest.err conftest.i conftest.$ac_ext 7443 7444done 7445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7446rm -f conftest.i conftest.err conftest.$ac_ext 7447if $ac_preproc_ok; then : 7448 break 7449fi 7450 7451 done 7452 ac_cv_prog_CPP=$CPP 7453 7454fi 7455 CPP=$ac_cv_prog_CPP 7456else 7457 ac_cv_prog_CPP=$CPP 7458fi 7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7460$as_echo "$CPP" >&6; } 7461ac_preproc_ok=false 7462for ac_c_preproc_warn_flag in '' yes 7463do 7464 # Use a header file that comes with gcc, so configuring glibc 7465 # with a fresh cross-compiler works. 7466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7467 # <limits.h> exists even on freestanding compilers. 7468 # On the NeXT, cc -E runs the code through the compiler's parser, 7469 # not just through cpp. "Syntax error" is here to catch this case. 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472#ifdef __STDC__ 7473# include <limits.h> 7474#else 7475# include <assert.h> 7476#endif 7477 Syntax error 7478_ACEOF 7479if ac_fn_c_try_cpp "$LINENO"; then : 7480 7481else 7482 # Broken: fails on valid input. 7483continue 7484fi 7485rm -f conftest.err conftest.i conftest.$ac_ext 7486 7487 # OK, works on sane cases. Now check whether nonexistent headers 7488 # can be detected and how. 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491#include <ac_nonexistent.h> 7492_ACEOF 7493if ac_fn_c_try_cpp "$LINENO"; then : 7494 # Broken: success on invalid input. 7495continue 7496else 7497 # Passes both tests. 7498ac_preproc_ok=: 7499break 7500fi 7501rm -f conftest.err conftest.i conftest.$ac_ext 7502 7503done 7504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7505rm -f conftest.i conftest.err conftest.$ac_ext 7506if $ac_preproc_ok; then : 7507 7508else 7509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7511as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7512See \`config.log' for more details" "$LINENO" 5; } 7513fi 7514 7515ac_ext=c 7516ac_cpp='$CPP $CPPFLAGS' 7517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7519ac_compiler_gnu=$ac_cv_c_compiler_gnu 7520 7521 7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7523$as_echo_n "checking for ANSI C header files... " >&6; } 7524if ${ac_cv_header_stdc+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7528/* end confdefs.h. */ 7529#include <stdlib.h> 7530#include <stdarg.h> 7531#include <string.h> 7532#include <float.h> 7533 7534int 7535main () 7536{ 7537 7538 ; 7539 return 0; 7540} 7541_ACEOF 7542if ac_fn_c_try_compile "$LINENO"; then : 7543 ac_cv_header_stdc=yes 7544else 7545 ac_cv_header_stdc=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7548 7549if test $ac_cv_header_stdc = yes; then 7550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7552/* end confdefs.h. */ 7553#include <string.h> 7554 7555_ACEOF 7556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7557 $EGREP "memchr" >/dev/null 2>&1; then : 7558 7559else 7560 ac_cv_header_stdc=no 7561fi 7562rm -f conftest* 7563 7564fi 7565 7566if test $ac_cv_header_stdc = yes; then 7567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7569/* end confdefs.h. */ 7570#include <stdlib.h> 7571 7572_ACEOF 7573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7574 $EGREP "free" >/dev/null 2>&1; then : 7575 7576else 7577 ac_cv_header_stdc=no 7578fi 7579rm -f conftest* 7580 7581fi 7582 7583if test $ac_cv_header_stdc = yes; then 7584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7585 if test "$cross_compiling" = yes; then : 7586 : 7587else 7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590#include <ctype.h> 7591#include <stdlib.h> 7592#if ((' ' & 0x0FF) == 0x020) 7593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7595#else 7596# define ISLOWER(c) \ 7597 (('a' <= (c) && (c) <= 'i') \ 7598 || ('j' <= (c) && (c) <= 'r') \ 7599 || ('s' <= (c) && (c) <= 'z')) 7600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7601#endif 7602 7603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7604int 7605main () 7606{ 7607 int i; 7608 for (i = 0; i < 256; i++) 7609 if (XOR (islower (i), ISLOWER (i)) 7610 || toupper (i) != TOUPPER (i)) 7611 return 2; 7612 return 0; 7613} 7614_ACEOF 7615if ac_fn_c_try_run "$LINENO"; then : 7616 7617else 7618 ac_cv_header_stdc=no 7619fi 7620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7621 conftest.$ac_objext conftest.beam conftest.$ac_ext 7622fi 7623 7624fi 7625fi 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7627$as_echo "$ac_cv_header_stdc" >&6; } 7628if test $ac_cv_header_stdc = yes; then 7629 7630$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7631 7632fi 7633 7634# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7636 inttypes.h stdint.h unistd.h 7637do : 7638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7640" 7641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7642 cat >>confdefs.h <<_ACEOF 7643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7644_ACEOF 7645 7646fi 7647 7648done 7649 7650 7651for ac_header in dlfcn.h 7652do : 7653 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7654" 7655if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7656 cat >>confdefs.h <<_ACEOF 7657#define HAVE_DLFCN_H 1 7658_ACEOF 7659 7660fi 7661 7662done 7663 7664 7665 7666 7667 7668# Set options 7669 7670 7671 7672 enable_dlopen=no 7673 7674 7675 enable_win32_dll=no 7676 7677 7678 # Check whether --enable-shared was given. 7679if test "${enable_shared+set}" = set; then : 7680 enableval=$enable_shared; p=${PACKAGE-default} 7681 case $enableval in 7682 yes) enable_shared=yes ;; 7683 no) enable_shared=no ;; 7684 *) 7685 enable_shared=no 7686 # Look at the argument we got. We use all the common list separators. 7687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7688 for pkg in $enableval; do 7689 IFS="$lt_save_ifs" 7690 if test "X$pkg" = "X$p"; then 7691 enable_shared=yes 7692 fi 7693 done 7694 IFS="$lt_save_ifs" 7695 ;; 7696 esac 7697else 7698 enable_shared=yes 7699fi 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 # Check whether --enable-static was given. 7710if test "${enable_static+set}" = set; then : 7711 enableval=$enable_static; p=${PACKAGE-default} 7712 case $enableval in 7713 yes) enable_static=yes ;; 7714 no) enable_static=no ;; 7715 *) 7716 enable_static=no 7717 # Look at the argument we got. We use all the common list separators. 7718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7719 for pkg in $enableval; do 7720 IFS="$lt_save_ifs" 7721 if test "X$pkg" = "X$p"; then 7722 enable_static=yes 7723 fi 7724 done 7725 IFS="$lt_save_ifs" 7726 ;; 7727 esac 7728else 7729 enable_static=yes 7730fi 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741# Check whether --with-pic was given. 7742if test "${with_pic+set}" = set; then : 7743 withval=$with_pic; lt_p=${PACKAGE-default} 7744 case $withval in 7745 yes|no) pic_mode=$withval ;; 7746 *) 7747 pic_mode=default 7748 # Look at the argument we got. We use all the common list separators. 7749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7750 for lt_pkg in $withval; do 7751 IFS="$lt_save_ifs" 7752 if test "X$lt_pkg" = "X$lt_p"; then 7753 pic_mode=yes 7754 fi 7755 done 7756 IFS="$lt_save_ifs" 7757 ;; 7758 esac 7759else 7760 pic_mode=default 7761fi 7762 7763 7764test -z "$pic_mode" && pic_mode=default 7765 7766 7767 7768 7769 7770 7771 7772 # Check whether --enable-fast-install was given. 7773if test "${enable_fast_install+set}" = set; then : 7774 enableval=$enable_fast_install; p=${PACKAGE-default} 7775 case $enableval in 7776 yes) enable_fast_install=yes ;; 7777 no) enable_fast_install=no ;; 7778 *) 7779 enable_fast_install=no 7780 # Look at the argument we got. We use all the common list separators. 7781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7782 for pkg in $enableval; do 7783 IFS="$lt_save_ifs" 7784 if test "X$pkg" = "X$p"; then 7785 enable_fast_install=yes 7786 fi 7787 done 7788 IFS="$lt_save_ifs" 7789 ;; 7790 esac 7791else 7792 enable_fast_install=yes 7793fi 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805# This can be used to rebuild libtool when needed 7806LIBTOOL_DEPS="$ltmain" 7807 7808# Always use our own libtool. 7809LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840test -z "$LN_S" && LN_S="ln -s" 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855if test -n "${ZSH_VERSION+set}" ; then 7856 setopt NO_GLOB_SUBST 7857fi 7858 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7860$as_echo_n "checking for objdir... " >&6; } 7861if ${lt_cv_objdir+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863else 7864 rm -f .libs 2>/dev/null 7865mkdir .libs 2>/dev/null 7866if test -d .libs; then 7867 lt_cv_objdir=.libs 7868else 7869 # MS-DOS does not allow filenames that begin with a dot. 7870 lt_cv_objdir=_libs 7871fi 7872rmdir .libs 2>/dev/null 7873fi 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7875$as_echo "$lt_cv_objdir" >&6; } 7876objdir=$lt_cv_objdir 7877 7878 7879 7880 7881 7882cat >>confdefs.h <<_ACEOF 7883#define LT_OBJDIR "$lt_cv_objdir/" 7884_ACEOF 7885 7886 7887 7888 7889case $host_os in 7890aix3*) 7891 # AIX sometimes has problems with the GCC collect2 program. For some 7892 # reason, if we set the COLLECT_NAMES environment variable, the problems 7893 # vanish in a puff of smoke. 7894 if test "X${COLLECT_NAMES+set}" != Xset; then 7895 COLLECT_NAMES= 7896 export COLLECT_NAMES 7897 fi 7898 ;; 7899esac 7900 7901# Global variables: 7902ofile=libtool 7903can_build_shared=yes 7904 7905# All known linkers require a `.a' archive for static linking (except MSVC, 7906# which needs '.lib'). 7907libext=a 7908 7909with_gnu_ld="$lt_cv_prog_gnu_ld" 7910 7911old_CC="$CC" 7912old_CFLAGS="$CFLAGS" 7913 7914# Set sane defaults for various variables 7915test -z "$CC" && CC=cc 7916test -z "$LTCC" && LTCC=$CC 7917test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7918test -z "$LD" && LD=ld 7919test -z "$ac_objext" && ac_objext=o 7920 7921for cc_temp in $compiler""; do 7922 case $cc_temp in 7923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7925 \-*) ;; 7926 *) break;; 7927 esac 7928done 7929cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7930 7931 7932# Only perform the check for file, if the check method requires it 7933test -z "$MAGIC_CMD" && MAGIC_CMD=file 7934case $deplibs_check_method in 7935file_magic*) 7936 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7938$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7939if ${lt_cv_path_MAGIC_CMD+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941else 7942 case $MAGIC_CMD in 7943[\\/*] | ?:[\\/]*) 7944 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7945 ;; 7946*) 7947 lt_save_MAGIC_CMD="$MAGIC_CMD" 7948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7949 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7950 for ac_dir in $ac_dummy; do 7951 IFS="$lt_save_ifs" 7952 test -z "$ac_dir" && ac_dir=. 7953 if test -f $ac_dir/${ac_tool_prefix}file; then 7954 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7955 if test -n "$file_magic_test_file"; then 7956 case $deplibs_check_method in 7957 "file_magic "*) 7958 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7960 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7961 $EGREP "$file_magic_regex" > /dev/null; then 7962 : 7963 else 7964 cat <<_LT_EOF 1>&2 7965 7966*** Warning: the command libtool uses to detect shared libraries, 7967*** $file_magic_cmd, produces output that libtool cannot recognize. 7968*** The result is that libtool may fail to recognize shared libraries 7969*** as such. This will affect the creation of libtool libraries that 7970*** depend on shared libraries, but programs linked with such libtool 7971*** libraries will work regardless of this problem. Nevertheless, you 7972*** may want to report the problem to your system manager and/or to 7973*** bug-libtool@gnu.org 7974 7975_LT_EOF 7976 fi ;; 7977 esac 7978 fi 7979 break 7980 fi 7981 done 7982 IFS="$lt_save_ifs" 7983 MAGIC_CMD="$lt_save_MAGIC_CMD" 7984 ;; 7985esac 7986fi 7987 7988MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7989if test -n "$MAGIC_CMD"; then 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7991$as_echo "$MAGIC_CMD" >&6; } 7992else 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7994$as_echo "no" >&6; } 7995fi 7996 7997 7998 7999 8000 8001if test -z "$lt_cv_path_MAGIC_CMD"; then 8002 if test -n "$ac_tool_prefix"; then 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8004$as_echo_n "checking for file... " >&6; } 8005if ${lt_cv_path_MAGIC_CMD+:} false; then : 8006 $as_echo_n "(cached) " >&6 8007else 8008 case $MAGIC_CMD in 8009[\\/*] | ?:[\\/]*) 8010 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8011 ;; 8012*) 8013 lt_save_MAGIC_CMD="$MAGIC_CMD" 8014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8015 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8016 for ac_dir in $ac_dummy; do 8017 IFS="$lt_save_ifs" 8018 test -z "$ac_dir" && ac_dir=. 8019 if test -f $ac_dir/file; then 8020 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8021 if test -n "$file_magic_test_file"; then 8022 case $deplibs_check_method in 8023 "file_magic "*) 8024 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8026 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8027 $EGREP "$file_magic_regex" > /dev/null; then 8028 : 8029 else 8030 cat <<_LT_EOF 1>&2 8031 8032*** Warning: the command libtool uses to detect shared libraries, 8033*** $file_magic_cmd, produces output that libtool cannot recognize. 8034*** The result is that libtool may fail to recognize shared libraries 8035*** as such. This will affect the creation of libtool libraries that 8036*** depend on shared libraries, but programs linked with such libtool 8037*** libraries will work regardless of this problem. Nevertheless, you 8038*** may want to report the problem to your system manager and/or to 8039*** bug-libtool@gnu.org 8040 8041_LT_EOF 8042 fi ;; 8043 esac 8044 fi 8045 break 8046 fi 8047 done 8048 IFS="$lt_save_ifs" 8049 MAGIC_CMD="$lt_save_MAGIC_CMD" 8050 ;; 8051esac 8052fi 8053 8054MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8055if test -n "$MAGIC_CMD"; then 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8057$as_echo "$MAGIC_CMD" >&6; } 8058else 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8060$as_echo "no" >&6; } 8061fi 8062 8063 8064 else 8065 MAGIC_CMD=: 8066 fi 8067fi 8068 8069 fi 8070 ;; 8071esac 8072 8073# Use C for the default configuration in the libtool script 8074 8075lt_save_CC="$CC" 8076ac_ext=c 8077ac_cpp='$CPP $CPPFLAGS' 8078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8080ac_compiler_gnu=$ac_cv_c_compiler_gnu 8081 8082 8083# Source file extension for C test sources. 8084ac_ext=c 8085 8086# Object file extension for compiled C test sources. 8087objext=o 8088objext=$objext 8089 8090# Code to be used in simple compile tests 8091lt_simple_compile_test_code="int some_variable = 0;" 8092 8093# Code to be used in simple link tests 8094lt_simple_link_test_code='int main(){return(0);}' 8095 8096 8097 8098 8099 8100 8101 8102# If no C compiler was specified, use CC. 8103LTCC=${LTCC-"$CC"} 8104 8105# If no C compiler flags were specified, use CFLAGS. 8106LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8107 8108# Allow CC to be a program name with arguments. 8109compiler=$CC 8110 8111# Save the default compiler, since it gets overwritten when the other 8112# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8113compiler_DEFAULT=$CC 8114 8115# save warnings/boilerplate of simple test code 8116ac_outfile=conftest.$ac_objext 8117echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8118eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8119_lt_compiler_boilerplate=`cat conftest.err` 8120$RM conftest* 8121 8122ac_outfile=conftest.$ac_objext 8123echo "$lt_simple_link_test_code" >conftest.$ac_ext 8124eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8125_lt_linker_boilerplate=`cat conftest.err` 8126$RM -r conftest* 8127 8128 8129if test -n "$compiler"; then 8130 8131lt_prog_compiler_no_builtin_flag= 8132 8133if test "$GCC" = yes; then 8134 case $cc_basename in 8135 nvcc*) 8136 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8137 *) 8138 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8139 esac 8140 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8142$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8143if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8144 $as_echo_n "(cached) " >&6 8145else 8146 lt_cv_prog_compiler_rtti_exceptions=no 8147 ac_outfile=conftest.$ac_objext 8148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8149 lt_compiler_flag="-fno-rtti -fno-exceptions" 8150 # Insert the option either (1) after the last *FLAGS variable, or 8151 # (2) before a word containing "conftest.", or (3) at the end. 8152 # Note that $ac_compile itself does not contain backslashes and begins 8153 # with a dollar sign (not a hyphen), so the echo should work correctly. 8154 # The option is referenced via a variable to avoid confusing sed. 8155 lt_compile=`echo "$ac_compile" | $SED \ 8156 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8158 -e 's:$: $lt_compiler_flag:'` 8159 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8160 (eval "$lt_compile" 2>conftest.err) 8161 ac_status=$? 8162 cat conftest.err >&5 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 if (exit $ac_status) && test -s "$ac_outfile"; then 8165 # The compiler can only warn and ignore the option if not recognized 8166 # So say no if there are warnings other than the usual output. 8167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8169 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8170 lt_cv_prog_compiler_rtti_exceptions=yes 8171 fi 8172 fi 8173 $RM conftest* 8174 8175fi 8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8177$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8178 8179if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8180 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8181else 8182 : 8183fi 8184 8185fi 8186 8187 8188 8189 8190 8191 8192 lt_prog_compiler_wl= 8193lt_prog_compiler_pic= 8194lt_prog_compiler_static= 8195 8196 8197 if test "$GCC" = yes; then 8198 lt_prog_compiler_wl='-Wl,' 8199 lt_prog_compiler_static='-static' 8200 8201 case $host_os in 8202 aix*) 8203 # All AIX code is PIC. 8204 if test "$host_cpu" = ia64; then 8205 # AIX 5 now supports IA64 processor 8206 lt_prog_compiler_static='-Bstatic' 8207 fi 8208 ;; 8209 8210 amigaos*) 8211 case $host_cpu in 8212 powerpc) 8213 # see comment about AmigaOS4 .so support 8214 lt_prog_compiler_pic='-fPIC' 8215 ;; 8216 m68k) 8217 # FIXME: we need at least 68020 code to build shared libraries, but 8218 # adding the `-m68020' flag to GCC prevents building anything better, 8219 # like `-m68040'. 8220 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8221 ;; 8222 esac 8223 ;; 8224 8225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8226 # PIC is the default for these OSes. 8227 ;; 8228 8229 mingw* | cygwin* | pw32* | os2* | cegcc*) 8230 # This hack is so that the source file can tell whether it is being 8231 # built for inclusion in a dll (and should export symbols for example). 8232 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8233 # (--disable-auto-import) libraries 8234 lt_prog_compiler_pic='-DDLL_EXPORT' 8235 ;; 8236 8237 darwin* | rhapsody*) 8238 # PIC is the default on this platform 8239 # Common symbols not allowed in MH_DYLIB files 8240 lt_prog_compiler_pic='-fno-common' 8241 ;; 8242 8243 haiku*) 8244 # PIC is the default for Haiku. 8245 # The "-static" flag exists, but is broken. 8246 lt_prog_compiler_static= 8247 ;; 8248 8249 hpux*) 8250 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8251 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8252 # sets the default TLS model and affects inlining. 8253 case $host_cpu in 8254 hppa*64*) 8255 # +Z the default 8256 ;; 8257 *) 8258 lt_prog_compiler_pic='-fPIC' 8259 ;; 8260 esac 8261 ;; 8262 8263 interix[3-9]*) 8264 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8265 # Instead, we relocate shared libraries at runtime. 8266 ;; 8267 8268 msdosdjgpp*) 8269 # Just because we use GCC doesn't mean we suddenly get shared libraries 8270 # on systems that don't support them. 8271 lt_prog_compiler_can_build_shared=no 8272 enable_shared=no 8273 ;; 8274 8275 *nto* | *qnx*) 8276 # QNX uses GNU C++, but need to define -shared option too, otherwise 8277 # it will coredump. 8278 lt_prog_compiler_pic='-fPIC -shared' 8279 ;; 8280 8281 sysv4*MP*) 8282 if test -d /usr/nec; then 8283 lt_prog_compiler_pic=-Kconform_pic 8284 fi 8285 ;; 8286 8287 *) 8288 lt_prog_compiler_pic='-fPIC' 8289 ;; 8290 esac 8291 8292 case $cc_basename in 8293 nvcc*) # Cuda Compiler Driver 2.2 8294 lt_prog_compiler_wl='-Xlinker ' 8295 if test -n "$lt_prog_compiler_pic"; then 8296 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8297 fi 8298 ;; 8299 esac 8300 else 8301 # PORTME Check for flag to pass linker flags through the system compiler. 8302 case $host_os in 8303 aix*) 8304 lt_prog_compiler_wl='-Wl,' 8305 if test "$host_cpu" = ia64; then 8306 # AIX 5 now supports IA64 processor 8307 lt_prog_compiler_static='-Bstatic' 8308 else 8309 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8310 fi 8311 ;; 8312 8313 mingw* | cygwin* | pw32* | os2* | cegcc*) 8314 # This hack is so that the source file can tell whether it is being 8315 # built for inclusion in a dll (and should export symbols for example). 8316 lt_prog_compiler_pic='-DDLL_EXPORT' 8317 ;; 8318 8319 hpux9* | hpux10* | hpux11*) 8320 lt_prog_compiler_wl='-Wl,' 8321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8322 # not for PA HP-UX. 8323 case $host_cpu in 8324 hppa*64*|ia64*) 8325 # +Z the default 8326 ;; 8327 *) 8328 lt_prog_compiler_pic='+Z' 8329 ;; 8330 esac 8331 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8332 lt_prog_compiler_static='${wl}-a ${wl}archive' 8333 ;; 8334 8335 irix5* | irix6* | nonstopux*) 8336 lt_prog_compiler_wl='-Wl,' 8337 # PIC (with -KPIC) is the default. 8338 lt_prog_compiler_static='-non_shared' 8339 ;; 8340 8341 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8342 case $cc_basename in 8343 # old Intel for x86_64 which still supported -KPIC. 8344 ecc*) 8345 lt_prog_compiler_wl='-Wl,' 8346 lt_prog_compiler_pic='-KPIC' 8347 lt_prog_compiler_static='-static' 8348 ;; 8349 # icc used to be incompatible with GCC. 8350 # ICC 10 doesn't accept -KPIC any more. 8351 icc* | ifort*) 8352 lt_prog_compiler_wl='-Wl,' 8353 lt_prog_compiler_pic='-fPIC' 8354 lt_prog_compiler_static='-static' 8355 ;; 8356 # Lahey Fortran 8.1. 8357 lf95*) 8358 lt_prog_compiler_wl='-Wl,' 8359 lt_prog_compiler_pic='--shared' 8360 lt_prog_compiler_static='--static' 8361 ;; 8362 nagfor*) 8363 # NAG Fortran compiler 8364 lt_prog_compiler_wl='-Wl,-Wl,,' 8365 lt_prog_compiler_pic='-PIC' 8366 lt_prog_compiler_static='-Bstatic' 8367 ;; 8368 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8369 # Portland Group compilers (*not* the Pentium gcc compiler, 8370 # which looks to be a dead project) 8371 lt_prog_compiler_wl='-Wl,' 8372 lt_prog_compiler_pic='-fpic' 8373 lt_prog_compiler_static='-Bstatic' 8374 ;; 8375 ccc*) 8376 lt_prog_compiler_wl='-Wl,' 8377 # All Alpha code is PIC. 8378 lt_prog_compiler_static='-non_shared' 8379 ;; 8380 xl* | bgxl* | bgf* | mpixl*) 8381 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8382 lt_prog_compiler_wl='-Wl,' 8383 lt_prog_compiler_pic='-qpic' 8384 lt_prog_compiler_static='-qstaticlink' 8385 ;; 8386 *) 8387 case `$CC -V 2>&1 | sed 5q` in 8388 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8389 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8390 lt_prog_compiler_pic='-KPIC' 8391 lt_prog_compiler_static='-Bstatic' 8392 lt_prog_compiler_wl='' 8393 ;; 8394 *Sun\ F* | *Sun*Fortran*) 8395 lt_prog_compiler_pic='-KPIC' 8396 lt_prog_compiler_static='-Bstatic' 8397 lt_prog_compiler_wl='-Qoption ld ' 8398 ;; 8399 *Sun\ C*) 8400 # Sun C 5.9 8401 lt_prog_compiler_pic='-KPIC' 8402 lt_prog_compiler_static='-Bstatic' 8403 lt_prog_compiler_wl='-Wl,' 8404 ;; 8405 *Intel*\ [CF]*Compiler*) 8406 lt_prog_compiler_wl='-Wl,' 8407 lt_prog_compiler_pic='-fPIC' 8408 lt_prog_compiler_static='-static' 8409 ;; 8410 *Portland\ Group*) 8411 lt_prog_compiler_wl='-Wl,' 8412 lt_prog_compiler_pic='-fpic' 8413 lt_prog_compiler_static='-Bstatic' 8414 ;; 8415 esac 8416 ;; 8417 esac 8418 ;; 8419 8420 newsos6) 8421 lt_prog_compiler_pic='-KPIC' 8422 lt_prog_compiler_static='-Bstatic' 8423 ;; 8424 8425 *nto* | *qnx*) 8426 # QNX uses GNU C++, but need to define -shared option too, otherwise 8427 # it will coredump. 8428 lt_prog_compiler_pic='-fPIC -shared' 8429 ;; 8430 8431 osf3* | osf4* | osf5*) 8432 lt_prog_compiler_wl='-Wl,' 8433 # All OSF/1 code is PIC. 8434 lt_prog_compiler_static='-non_shared' 8435 ;; 8436 8437 rdos*) 8438 lt_prog_compiler_static='-non_shared' 8439 ;; 8440 8441 solaris*) 8442 lt_prog_compiler_pic='-KPIC' 8443 lt_prog_compiler_static='-Bstatic' 8444 case $cc_basename in 8445 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8446 lt_prog_compiler_wl='-Qoption ld ';; 8447 *) 8448 lt_prog_compiler_wl='-Wl,';; 8449 esac 8450 ;; 8451 8452 sunos4*) 8453 lt_prog_compiler_wl='-Qoption ld ' 8454 lt_prog_compiler_pic='-PIC' 8455 lt_prog_compiler_static='-Bstatic' 8456 ;; 8457 8458 sysv4 | sysv4.2uw2* | sysv4.3*) 8459 lt_prog_compiler_wl='-Wl,' 8460 lt_prog_compiler_pic='-KPIC' 8461 lt_prog_compiler_static='-Bstatic' 8462 ;; 8463 8464 sysv4*MP*) 8465 if test -d /usr/nec ;then 8466 lt_prog_compiler_pic='-Kconform_pic' 8467 lt_prog_compiler_static='-Bstatic' 8468 fi 8469 ;; 8470 8471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8472 lt_prog_compiler_wl='-Wl,' 8473 lt_prog_compiler_pic='-KPIC' 8474 lt_prog_compiler_static='-Bstatic' 8475 ;; 8476 8477 unicos*) 8478 lt_prog_compiler_wl='-Wl,' 8479 lt_prog_compiler_can_build_shared=no 8480 ;; 8481 8482 uts4*) 8483 lt_prog_compiler_pic='-pic' 8484 lt_prog_compiler_static='-Bstatic' 8485 ;; 8486 8487 *) 8488 lt_prog_compiler_can_build_shared=no 8489 ;; 8490 esac 8491 fi 8492 8493case $host_os in 8494 # For platforms which do not support PIC, -DPIC is meaningless: 8495 *djgpp*) 8496 lt_prog_compiler_pic= 8497 ;; 8498 *) 8499 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8500 ;; 8501esac 8502 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8504$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8505if ${lt_cv_prog_compiler_pic+:} false; then : 8506 $as_echo_n "(cached) " >&6 8507else 8508 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8509fi 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8511$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8512lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8513 8514# 8515# Check to make sure the PIC flag actually works. 8516# 8517if test -n "$lt_prog_compiler_pic"; then 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8519$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8520if ${lt_cv_prog_compiler_pic_works+:} false; then : 8521 $as_echo_n "(cached) " >&6 8522else 8523 lt_cv_prog_compiler_pic_works=no 8524 ac_outfile=conftest.$ac_objext 8525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8526 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8527 # Insert the option either (1) after the last *FLAGS variable, or 8528 # (2) before a word containing "conftest.", or (3) at the end. 8529 # Note that $ac_compile itself does not contain backslashes and begins 8530 # with a dollar sign (not a hyphen), so the echo should work correctly. 8531 # The option is referenced via a variable to avoid confusing sed. 8532 lt_compile=`echo "$ac_compile" | $SED \ 8533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8535 -e 's:$: $lt_compiler_flag:'` 8536 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8537 (eval "$lt_compile" 2>conftest.err) 8538 ac_status=$? 8539 cat conftest.err >&5 8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8541 if (exit $ac_status) && test -s "$ac_outfile"; then 8542 # The compiler can only warn and ignore the option if not recognized 8543 # So say no if there are warnings other than the usual output. 8544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8546 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8547 lt_cv_prog_compiler_pic_works=yes 8548 fi 8549 fi 8550 $RM conftest* 8551 8552fi 8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8554$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8555 8556if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8557 case $lt_prog_compiler_pic in 8558 "" | " "*) ;; 8559 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8560 esac 8561else 8562 lt_prog_compiler_pic= 8563 lt_prog_compiler_can_build_shared=no 8564fi 8565 8566fi 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578# 8579# Check to make sure the static flag actually works. 8580# 8581wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8583$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8584if ${lt_cv_prog_compiler_static_works+:} false; then : 8585 $as_echo_n "(cached) " >&6 8586else 8587 lt_cv_prog_compiler_static_works=no 8588 save_LDFLAGS="$LDFLAGS" 8589 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8590 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8591 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8592 # The linker can only warn and ignore the option if not recognized 8593 # So say no if there are warnings 8594 if test -s conftest.err; then 8595 # Append any errors to the config.log. 8596 cat conftest.err 1>&5 8597 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8599 if diff conftest.exp conftest.er2 >/dev/null; then 8600 lt_cv_prog_compiler_static_works=yes 8601 fi 8602 else 8603 lt_cv_prog_compiler_static_works=yes 8604 fi 8605 fi 8606 $RM -r conftest* 8607 LDFLAGS="$save_LDFLAGS" 8608 8609fi 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8611$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8612 8613if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8614 : 8615else 8616 lt_prog_compiler_static= 8617fi 8618 8619 8620 8621 8622 8623 8624 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8626$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8627if ${lt_cv_prog_compiler_c_o+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 lt_cv_prog_compiler_c_o=no 8631 $RM -r conftest 2>/dev/null 8632 mkdir conftest 8633 cd conftest 8634 mkdir out 8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8636 8637 lt_compiler_flag="-o out/conftest2.$ac_objext" 8638 # Insert the option either (1) after the last *FLAGS variable, or 8639 # (2) before a word containing "conftest.", or (3) at the end. 8640 # Note that $ac_compile itself does not contain backslashes and begins 8641 # with a dollar sign (not a hyphen), so the echo should work correctly. 8642 lt_compile=`echo "$ac_compile" | $SED \ 8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8645 -e 's:$: $lt_compiler_flag:'` 8646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8647 (eval "$lt_compile" 2>out/conftest.err) 8648 ac_status=$? 8649 cat out/conftest.err >&5 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8652 then 8653 # The compiler can only warn and ignore the option if not recognized 8654 # So say no if there are warnings 8655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8658 lt_cv_prog_compiler_c_o=yes 8659 fi 8660 fi 8661 chmod u+w . 2>&5 8662 $RM conftest* 8663 # SGI C++ compiler will create directory out/ii_files/ for 8664 # template instantiation 8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8666 $RM out/* && rmdir out 8667 cd .. 8668 $RM -r conftest 8669 $RM conftest* 8670 8671fi 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8673$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8674 8675 8676 8677 8678 8679 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8681$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8682if ${lt_cv_prog_compiler_c_o+:} false; then : 8683 $as_echo_n "(cached) " >&6 8684else 8685 lt_cv_prog_compiler_c_o=no 8686 $RM -r conftest 2>/dev/null 8687 mkdir conftest 8688 cd conftest 8689 mkdir out 8690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8691 8692 lt_compiler_flag="-o out/conftest2.$ac_objext" 8693 # Insert the option either (1) after the last *FLAGS variable, or 8694 # (2) before a word containing "conftest.", or (3) at the end. 8695 # Note that $ac_compile itself does not contain backslashes and begins 8696 # with a dollar sign (not a hyphen), so the echo should work correctly. 8697 lt_compile=`echo "$ac_compile" | $SED \ 8698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8700 -e 's:$: $lt_compiler_flag:'` 8701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8702 (eval "$lt_compile" 2>out/conftest.err) 8703 ac_status=$? 8704 cat out/conftest.err >&5 8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8706 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8707 then 8708 # The compiler can only warn and ignore the option if not recognized 8709 # So say no if there are warnings 8710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8713 lt_cv_prog_compiler_c_o=yes 8714 fi 8715 fi 8716 chmod u+w . 2>&5 8717 $RM conftest* 8718 # SGI C++ compiler will create directory out/ii_files/ for 8719 # template instantiation 8720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8721 $RM out/* && rmdir out 8722 cd .. 8723 $RM -r conftest 8724 $RM conftest* 8725 8726fi 8727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8728$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8729 8730 8731 8732 8733hard_links="nottested" 8734if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8735 # do not overwrite the value of need_locks provided by the user 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8737$as_echo_n "checking if we can lock with hard links... " >&6; } 8738 hard_links=yes 8739 $RM conftest* 8740 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8741 touch conftest.a 8742 ln conftest.a conftest.b 2>&5 || hard_links=no 8743 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8745$as_echo "$hard_links" >&6; } 8746 if test "$hard_links" = no; then 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8748$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8749 need_locks=warn 8750 fi 8751else 8752 need_locks=no 8753fi 8754 8755 8756 8757 8758 8759 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8761$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8762 8763 runpath_var= 8764 allow_undefined_flag= 8765 always_export_symbols=no 8766 archive_cmds= 8767 archive_expsym_cmds= 8768 compiler_needs_object=no 8769 enable_shared_with_static_runtimes=no 8770 export_dynamic_flag_spec= 8771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8772 hardcode_automatic=no 8773 hardcode_direct=no 8774 hardcode_direct_absolute=no 8775 hardcode_libdir_flag_spec= 8776 hardcode_libdir_separator= 8777 hardcode_minus_L=no 8778 hardcode_shlibpath_var=unsupported 8779 inherit_rpath=no 8780 link_all_deplibs=unknown 8781 module_cmds= 8782 module_expsym_cmds= 8783 old_archive_from_new_cmds= 8784 old_archive_from_expsyms_cmds= 8785 thread_safe_flag_spec= 8786 whole_archive_flag_spec= 8787 # include_expsyms should be a list of space-separated symbols to be *always* 8788 # included in the symbol list 8789 include_expsyms= 8790 # exclude_expsyms can be an extended regexp of symbols to exclude 8791 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8792 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8793 # as well as any symbol that contains `d'. 8794 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8795 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8796 # platforms (ab)use it in PIC code, but their linkers get confused if 8797 # the symbol is explicitly referenced. Since portable code cannot 8798 # rely on this symbol name, it's probably fine to never include it in 8799 # preloaded symbol tables. 8800 # Exclude shared library initialization/finalization symbols. 8801 extract_expsyms_cmds= 8802 8803 case $host_os in 8804 cygwin* | mingw* | pw32* | cegcc*) 8805 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8806 # When not using gcc, we currently assume that we are using 8807 # Microsoft Visual C++. 8808 if test "$GCC" != yes; then 8809 with_gnu_ld=no 8810 fi 8811 ;; 8812 interix*) 8813 # we just hope/assume this is gcc and not c89 (= MSVC++) 8814 with_gnu_ld=yes 8815 ;; 8816 openbsd*) 8817 with_gnu_ld=no 8818 ;; 8819 esac 8820 8821 ld_shlibs=yes 8822 8823 # On some targets, GNU ld is compatible enough with the native linker 8824 # that we're better off using the native interface for both. 8825 lt_use_gnu_ld_interface=no 8826 if test "$with_gnu_ld" = yes; then 8827 case $host_os in 8828 aix*) 8829 # The AIX port of GNU ld has always aspired to compatibility 8830 # with the native linker. However, as the warning in the GNU ld 8831 # block says, versions before 2.19.5* couldn't really create working 8832 # shared libraries, regardless of the interface used. 8833 case `$LD -v 2>&1` in 8834 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8835 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8836 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8837 *) 8838 lt_use_gnu_ld_interface=yes 8839 ;; 8840 esac 8841 ;; 8842 *) 8843 lt_use_gnu_ld_interface=yes 8844 ;; 8845 esac 8846 fi 8847 8848 if test "$lt_use_gnu_ld_interface" = yes; then 8849 # If archive_cmds runs LD, not CC, wlarc should be empty 8850 wlarc='${wl}' 8851 8852 # Set some defaults for GNU ld with shared library support. These 8853 # are reset later if shared libraries are not supported. Putting them 8854 # here allows them to be overridden if necessary. 8855 runpath_var=LD_RUN_PATH 8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8857 export_dynamic_flag_spec='${wl}--export-dynamic' 8858 # ancient GNU ld didn't support --whole-archive et. al. 8859 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8860 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8861 else 8862 whole_archive_flag_spec= 8863 fi 8864 supports_anon_versioning=no 8865 case `$LD -v 2>&1` in 8866 *GNU\ gold*) supports_anon_versioning=yes ;; 8867 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8868 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8869 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8870 *\ 2.11.*) ;; # other 2.11 versions 8871 *) supports_anon_versioning=yes ;; 8872 esac 8873 8874 # See if GNU ld supports shared libraries. 8875 case $host_os in 8876 aix[3-9]*) 8877 # On AIX/PPC, the GNU linker is very broken 8878 if test "$host_cpu" != ia64; then 8879 ld_shlibs=no 8880 cat <<_LT_EOF 1>&2 8881 8882*** Warning: the GNU linker, at least up to release 2.19, is reported 8883*** to be unable to reliably create shared libraries on AIX. 8884*** Therefore, libtool is disabling shared libraries support. If you 8885*** really care for shared libraries, you may want to install binutils 8886*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8887*** You will then need to restart the configuration process. 8888 8889_LT_EOF 8890 fi 8891 ;; 8892 8893 amigaos*) 8894 case $host_cpu in 8895 powerpc) 8896 # see comment about AmigaOS4 .so support 8897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8898 archive_expsym_cmds='' 8899 ;; 8900 m68k) 8901 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)' 8902 hardcode_libdir_flag_spec='-L$libdir' 8903 hardcode_minus_L=yes 8904 ;; 8905 esac 8906 ;; 8907 8908 beos*) 8909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8910 allow_undefined_flag=unsupported 8911 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8912 # support --undefined. This deserves some investigation. FIXME 8913 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8914 else 8915 ld_shlibs=no 8916 fi 8917 ;; 8918 8919 cygwin* | mingw* | pw32* | cegcc*) 8920 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8921 # as there is no search path for DLLs. 8922 hardcode_libdir_flag_spec='-L$libdir' 8923 export_dynamic_flag_spec='${wl}--export-all-symbols' 8924 allow_undefined_flag=unsupported 8925 always_export_symbols=no 8926 enable_shared_with_static_runtimes=yes 8927 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' 8928 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8929 8930 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8932 # If the export-symbols file already is a .def file (1st line 8933 # is EXPORTS), use it as is; otherwise, prepend... 8934 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8935 cp $export_symbols $output_objdir/$soname.def; 8936 else 8937 echo EXPORTS > $output_objdir/$soname.def; 8938 cat $export_symbols >> $output_objdir/$soname.def; 8939 fi~ 8940 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8941 else 8942 ld_shlibs=no 8943 fi 8944 ;; 8945 8946 haiku*) 8947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8948 link_all_deplibs=yes 8949 ;; 8950 8951 interix[3-9]*) 8952 hardcode_direct=no 8953 hardcode_shlibpath_var=no 8954 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8955 export_dynamic_flag_spec='${wl}-E' 8956 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8957 # Instead, shared libraries are loaded at an image base (0x10000000 by 8958 # default) and relocated if they conflict, which is a slow very memory 8959 # consuming and fragmenting process. To avoid this, we pick a random, 8960 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8961 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8962 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8963 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' 8964 ;; 8965 8966 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8967 tmp_diet=no 8968 if test "$host_os" = linux-dietlibc; then 8969 case $cc_basename in 8970 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8971 esac 8972 fi 8973 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8974 && test "$tmp_diet" = no 8975 then 8976 tmp_addflag=' $pic_flag' 8977 tmp_sharedflag='-shared' 8978 case $cc_basename,$host_cpu in 8979 pgcc*) # Portland Group C compiler 8980 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' 8981 tmp_addflag=' $pic_flag' 8982 ;; 8983 pgf77* | pgf90* | pgf95* | pgfortran*) 8984 # Portland Group f77 and f90 compilers 8985 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' 8986 tmp_addflag=' $pic_flag -Mnomain' ;; 8987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8988 tmp_addflag=' -i_dynamic' ;; 8989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8990 tmp_addflag=' -i_dynamic -nofor_main' ;; 8991 ifc* | ifort*) # Intel Fortran compiler 8992 tmp_addflag=' -nofor_main' ;; 8993 lf95*) # Lahey Fortran 8.1 8994 whole_archive_flag_spec= 8995 tmp_sharedflag='--shared' ;; 8996 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8997 tmp_sharedflag='-qmkshrobj' 8998 tmp_addflag= ;; 8999 nvcc*) # Cuda Compiler Driver 2.2 9000 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' 9001 compiler_needs_object=yes 9002 ;; 9003 esac 9004 case `$CC -V 2>&1 | sed 5q` in 9005 *Sun\ C*) # Sun C 5.9 9006 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' 9007 compiler_needs_object=yes 9008 tmp_sharedflag='-G' ;; 9009 *Sun\ F*) # Sun Fortran 8.3 9010 tmp_sharedflag='-G' ;; 9011 esac 9012 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9013 9014 if test "x$supports_anon_versioning" = xyes; then 9015 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9016 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9017 echo "local: *; };" >> $output_objdir/$libname.ver~ 9018 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9019 fi 9020 9021 case $cc_basename in 9022 xlf* | bgf* | bgxlf* | mpixlf*) 9023 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9024 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9026 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9027 if test "x$supports_anon_versioning" = xyes; then 9028 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9029 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9030 echo "local: *; };" >> $output_objdir/$libname.ver~ 9031 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9032 fi 9033 ;; 9034 esac 9035 else 9036 ld_shlibs=no 9037 fi 9038 ;; 9039 9040 netbsd*) 9041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9042 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9043 wlarc= 9044 else 9045 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9046 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9047 fi 9048 ;; 9049 9050 solaris*) 9051 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9052 ld_shlibs=no 9053 cat <<_LT_EOF 1>&2 9054 9055*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9056*** create shared libraries on Solaris systems. Therefore, libtool 9057*** is disabling shared libraries support. We urge you to upgrade GNU 9058*** binutils to release 2.9.1 or newer. Another option is to modify 9059*** your PATH or compiler configuration so that the native linker is 9060*** used, and then restart. 9061 9062_LT_EOF 9063 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9065 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9066 else 9067 ld_shlibs=no 9068 fi 9069 ;; 9070 9071 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9072 case `$LD -v 2>&1` in 9073 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9074 ld_shlibs=no 9075 cat <<_LT_EOF 1>&2 9076 9077*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9078*** reliably create shared libraries on SCO systems. Therefore, libtool 9079*** is disabling shared libraries support. We urge you to upgrade GNU 9080*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9081*** your PATH or compiler configuration so that the native linker is 9082*** used, and then restart. 9083 9084_LT_EOF 9085 ;; 9086 *) 9087 # For security reasons, it is highly recommended that you always 9088 # use absolute paths for naming shared libraries, and exclude the 9089 # DT_RUNPATH tag from executables and libraries. But doing so 9090 # requires that you compile everything twice, which is a pain. 9091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9094 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9095 else 9096 ld_shlibs=no 9097 fi 9098 ;; 9099 esac 9100 ;; 9101 9102 sunos4*) 9103 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9104 wlarc= 9105 hardcode_direct=yes 9106 hardcode_shlibpath_var=no 9107 ;; 9108 9109 *) 9110 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9112 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9113 else 9114 ld_shlibs=no 9115 fi 9116 ;; 9117 esac 9118 9119 if test "$ld_shlibs" = no; then 9120 runpath_var= 9121 hardcode_libdir_flag_spec= 9122 export_dynamic_flag_spec= 9123 whole_archive_flag_spec= 9124 fi 9125 else 9126 # PORTME fill in a description of your system's linker (not GNU ld) 9127 case $host_os in 9128 aix3*) 9129 allow_undefined_flag=unsupported 9130 always_export_symbols=yes 9131 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' 9132 # Note: this linker hardcodes the directories in LIBPATH if there 9133 # are no directories specified by -L. 9134 hardcode_minus_L=yes 9135 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9136 # Neither direct hardcoding nor static linking is supported with a 9137 # broken collect2. 9138 hardcode_direct=unsupported 9139 fi 9140 ;; 9141 9142 aix[4-9]*) 9143 if test "$host_cpu" = ia64; then 9144 # On IA64, the linker does run time linking by default, so we don't 9145 # have to do anything special. 9146 aix_use_runtimelinking=no 9147 exp_sym_flag='-Bexport' 9148 no_entry_flag="" 9149 else 9150 # If we're using GNU nm, then we don't want the "-C" option. 9151 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9152 # Also, AIX nm treats weak defined symbols like other global 9153 # defined symbols, whereas GNU nm marks them as "W". 9154 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9155 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' 9156 else 9157 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' 9158 fi 9159 aix_use_runtimelinking=no 9160 9161 # Test if we are trying to use run time linking or normal 9162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9163 # need to do runtime linking. 9164 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9165 for ld_flag in $LDFLAGS; do 9166 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9167 aix_use_runtimelinking=yes 9168 break 9169 fi 9170 done 9171 ;; 9172 esac 9173 9174 exp_sym_flag='-bexport' 9175 no_entry_flag='-bnoentry' 9176 fi 9177 9178 # When large executables or shared objects are built, AIX ld can 9179 # have problems creating the table of contents. If linking a library 9180 # or program results in "error TOC overflow" add -mminimal-toc to 9181 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9182 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9183 9184 archive_cmds='' 9185 hardcode_direct=yes 9186 hardcode_direct_absolute=yes 9187 hardcode_libdir_separator=':' 9188 link_all_deplibs=yes 9189 file_list_spec='${wl}-f,' 9190 9191 if test "$GCC" = yes; then 9192 case $host_os in aix4.[012]|aix4.[012].*) 9193 # We only want to do this on AIX 4.2 and lower, the check 9194 # below for broken collect2 doesn't work under 4.3+ 9195 collect2name=`${CC} -print-prog-name=collect2` 9196 if test -f "$collect2name" && 9197 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9198 then 9199 # We have reworked collect2 9200 : 9201 else 9202 # We have old collect2 9203 hardcode_direct=unsupported 9204 # It fails to find uninstalled libraries when the uninstalled 9205 # path is not listed in the libpath. Setting hardcode_minus_L 9206 # to unsupported forces relinking 9207 hardcode_minus_L=yes 9208 hardcode_libdir_flag_spec='-L$libdir' 9209 hardcode_libdir_separator= 9210 fi 9211 ;; 9212 esac 9213 shared_flag='-shared' 9214 if test "$aix_use_runtimelinking" = yes; then 9215 shared_flag="$shared_flag "'${wl}-G' 9216 fi 9217 else 9218 # not using gcc 9219 if test "$host_cpu" = ia64; then 9220 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9221 # chokes on -Wl,-G. The following line is correct: 9222 shared_flag='-G' 9223 else 9224 if test "$aix_use_runtimelinking" = yes; then 9225 shared_flag='${wl}-G' 9226 else 9227 shared_flag='${wl}-bM:SRE' 9228 fi 9229 fi 9230 fi 9231 9232 export_dynamic_flag_spec='${wl}-bexpall' 9233 # It seems that -bexpall does not export symbols beginning with 9234 # underscore (_), so it is better to generate a list of symbols to export. 9235 always_export_symbols=yes 9236 if test "$aix_use_runtimelinking" = yes; then 9237 # Warning - without using the other runtime loading flags (-brtl), 9238 # -berok will link without error, but may produce a broken library. 9239 allow_undefined_flag='-berok' 9240 # Determine the default libpath from the value encoded in an 9241 # empty executable. 9242 if test "${lt_cv_aix_libpath+set}" = set; then 9243 aix_libpath=$lt_cv_aix_libpath 9244else 9245 if ${lt_cv_aix_libpath_+:} false; then : 9246 $as_echo_n "(cached) " >&6 9247else 9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9249/* end confdefs.h. */ 9250 9251int 9252main () 9253{ 9254 9255 ; 9256 return 0; 9257} 9258_ACEOF 9259if ac_fn_c_try_link "$LINENO"; then : 9260 9261 lt_aix_libpath_sed=' 9262 /Import File Strings/,/^$/ { 9263 /^0/ { 9264 s/^0 *\([^ ]*\) *$/\1/ 9265 p 9266 } 9267 }' 9268 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9269 # Check for a 64-bit object if we didn't find anything. 9270 if test -z "$lt_cv_aix_libpath_"; then 9271 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9272 fi 9273fi 9274rm -f core conftest.err conftest.$ac_objext \ 9275 conftest$ac_exeext conftest.$ac_ext 9276 if test -z "$lt_cv_aix_libpath_"; then 9277 lt_cv_aix_libpath_="/usr/lib:/lib" 9278 fi 9279 9280fi 9281 9282 aix_libpath=$lt_cv_aix_libpath_ 9283fi 9284 9285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9286 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" 9287 else 9288 if test "$host_cpu" = ia64; then 9289 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9290 allow_undefined_flag="-z nodefs" 9291 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" 9292 else 9293 # Determine the default libpath from the value encoded in an 9294 # empty executable. 9295 if test "${lt_cv_aix_libpath+set}" = set; then 9296 aix_libpath=$lt_cv_aix_libpath 9297else 9298 if ${lt_cv_aix_libpath_+:} false; then : 9299 $as_echo_n "(cached) " >&6 9300else 9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9302/* end confdefs.h. */ 9303 9304int 9305main () 9306{ 9307 9308 ; 9309 return 0; 9310} 9311_ACEOF 9312if ac_fn_c_try_link "$LINENO"; then : 9313 9314 lt_aix_libpath_sed=' 9315 /Import File Strings/,/^$/ { 9316 /^0/ { 9317 s/^0 *\([^ ]*\) *$/\1/ 9318 p 9319 } 9320 }' 9321 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9322 # Check for a 64-bit object if we didn't find anything. 9323 if test -z "$lt_cv_aix_libpath_"; then 9324 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9325 fi 9326fi 9327rm -f core conftest.err conftest.$ac_objext \ 9328 conftest$ac_exeext conftest.$ac_ext 9329 if test -z "$lt_cv_aix_libpath_"; then 9330 lt_cv_aix_libpath_="/usr/lib:/lib" 9331 fi 9332 9333fi 9334 9335 aix_libpath=$lt_cv_aix_libpath_ 9336fi 9337 9338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9339 # Warning - without using the other run time loading flags, 9340 # -berok will link without error, but may produce a broken library. 9341 no_undefined_flag=' ${wl}-bernotok' 9342 allow_undefined_flag=' ${wl}-berok' 9343 if test "$with_gnu_ld" = yes; then 9344 # We only use this code for GNU lds that support --whole-archive. 9345 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9346 else 9347 # Exported symbols can be pulled into shared objects from archives 9348 whole_archive_flag_spec='$convenience' 9349 fi 9350 archive_cmds_need_lc=yes 9351 # This is similar to how AIX traditionally builds its shared libraries. 9352 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' 9353 fi 9354 fi 9355 ;; 9356 9357 amigaos*) 9358 case $host_cpu in 9359 powerpc) 9360 # see comment about AmigaOS4 .so support 9361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9362 archive_expsym_cmds='' 9363 ;; 9364 m68k) 9365 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)' 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 hardcode_minus_L=yes 9368 ;; 9369 esac 9370 ;; 9371 9372 bsdi[45]*) 9373 export_dynamic_flag_spec=-rdynamic 9374 ;; 9375 9376 cygwin* | mingw* | pw32* | cegcc*) 9377 # When not using gcc, we currently assume that we are using 9378 # Microsoft Visual C++. 9379 # hardcode_libdir_flag_spec is actually meaningless, as there is 9380 # no search path for DLLs. 9381 case $cc_basename in 9382 cl*) 9383 # Native MSVC 9384 hardcode_libdir_flag_spec=' ' 9385 allow_undefined_flag=unsupported 9386 always_export_symbols=yes 9387 file_list_spec='@' 9388 # Tell ltmain to make .lib files, not .a files. 9389 libext=lib 9390 # Tell ltmain to make .dll files, not .so files. 9391 shrext_cmds=".dll" 9392 # FIXME: Setting linknames here is a bad hack. 9393 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9394 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9395 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9396 else 9397 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9398 fi~ 9399 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9400 linknames=' 9401 # The linker will not automatically build a static lib if we build a DLL. 9402 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9403 enable_shared_with_static_runtimes=yes 9404 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9406 # Don't use ranlib 9407 old_postinstall_cmds='chmod 644 $oldlib' 9408 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9409 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9410 case $lt_outputfile in 9411 *.exe|*.EXE) ;; 9412 *) 9413 lt_outputfile="$lt_outputfile.exe" 9414 lt_tool_outputfile="$lt_tool_outputfile.exe" 9415 ;; 9416 esac~ 9417 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9418 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9419 $RM "$lt_outputfile.manifest"; 9420 fi' 9421 ;; 9422 *) 9423 # Assume MSVC wrapper 9424 hardcode_libdir_flag_spec=' ' 9425 allow_undefined_flag=unsupported 9426 # Tell ltmain to make .lib files, not .a files. 9427 libext=lib 9428 # Tell ltmain to make .dll files, not .so files. 9429 shrext_cmds=".dll" 9430 # FIXME: Setting linknames here is a bad hack. 9431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9432 # The linker will automatically build a .lib file if we build a DLL. 9433 old_archive_from_new_cmds='true' 9434 # FIXME: Should let the user specify the lib program. 9435 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9436 enable_shared_with_static_runtimes=yes 9437 ;; 9438 esac 9439 ;; 9440 9441 darwin* | rhapsody*) 9442 9443 9444 archive_cmds_need_lc=no 9445 hardcode_direct=no 9446 hardcode_automatic=yes 9447 hardcode_shlibpath_var=unsupported 9448 if test "$lt_cv_ld_force_load" = "yes"; then 9449 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\"`' 9450 9451 else 9452 whole_archive_flag_spec='' 9453 fi 9454 link_all_deplibs=yes 9455 allow_undefined_flag="$_lt_dar_allow_undefined" 9456 case $cc_basename in 9457 ifort*) _lt_dar_can_shared=yes ;; 9458 *) _lt_dar_can_shared=$GCC ;; 9459 esac 9460 if test "$_lt_dar_can_shared" = "yes"; then 9461 output_verbose_link_cmd=func_echo_all 9462 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9463 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9464 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}" 9465 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}" 9466 9467 else 9468 ld_shlibs=no 9469 fi 9470 9471 ;; 9472 9473 dgux*) 9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9475 hardcode_libdir_flag_spec='-L$libdir' 9476 hardcode_shlibpath_var=no 9477 ;; 9478 9479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9480 # support. Future versions do this automatically, but an explicit c++rt0.o 9481 # does not break anything, and helps significantly (at the cost of a little 9482 # extra space). 9483 freebsd2.2*) 9484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9485 hardcode_libdir_flag_spec='-R$libdir' 9486 hardcode_direct=yes 9487 hardcode_shlibpath_var=no 9488 ;; 9489 9490 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9491 freebsd2.*) 9492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9493 hardcode_direct=yes 9494 hardcode_minus_L=yes 9495 hardcode_shlibpath_var=no 9496 ;; 9497 9498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9499 freebsd* | dragonfly*) 9500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9501 hardcode_libdir_flag_spec='-R$libdir' 9502 hardcode_direct=yes 9503 hardcode_shlibpath_var=no 9504 ;; 9505 9506 hpux9*) 9507 if test "$GCC" = yes; then 9508 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' 9509 else 9510 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' 9511 fi 9512 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9513 hardcode_libdir_separator=: 9514 hardcode_direct=yes 9515 9516 # hardcode_minus_L: Not really in the search PATH, 9517 # but as the default location of the library. 9518 hardcode_minus_L=yes 9519 export_dynamic_flag_spec='${wl}-E' 9520 ;; 9521 9522 hpux10*) 9523 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9524 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9525 else 9526 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9527 fi 9528 if test "$with_gnu_ld" = no; then 9529 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9530 hardcode_libdir_separator=: 9531 hardcode_direct=yes 9532 hardcode_direct_absolute=yes 9533 export_dynamic_flag_spec='${wl}-E' 9534 # hardcode_minus_L: Not really in the search PATH, 9535 # but as the default location of the library. 9536 hardcode_minus_L=yes 9537 fi 9538 ;; 9539 9540 hpux11*) 9541 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9542 case $host_cpu in 9543 hppa*64*) 9544 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9545 ;; 9546 ia64*) 9547 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9548 ;; 9549 *) 9550 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9551 ;; 9552 esac 9553 else 9554 case $host_cpu in 9555 hppa*64*) 9556 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9557 ;; 9558 ia64*) 9559 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9560 ;; 9561 *) 9562 9563 # Older versions of the 11.00 compiler do not understand -b yet 9564 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9566$as_echo_n "checking if $CC understands -b... " >&6; } 9567if ${lt_cv_prog_compiler__b+:} false; then : 9568 $as_echo_n "(cached) " >&6 9569else 9570 lt_cv_prog_compiler__b=no 9571 save_LDFLAGS="$LDFLAGS" 9572 LDFLAGS="$LDFLAGS -b" 9573 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9575 # The linker can only warn and ignore the option if not recognized 9576 # So say no if there are warnings 9577 if test -s conftest.err; then 9578 # Append any errors to the config.log. 9579 cat conftest.err 1>&5 9580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9582 if diff conftest.exp conftest.er2 >/dev/null; then 9583 lt_cv_prog_compiler__b=yes 9584 fi 9585 else 9586 lt_cv_prog_compiler__b=yes 9587 fi 9588 fi 9589 $RM -r conftest* 9590 LDFLAGS="$save_LDFLAGS" 9591 9592fi 9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9594$as_echo "$lt_cv_prog_compiler__b" >&6; } 9595 9596if test x"$lt_cv_prog_compiler__b" = xyes; then 9597 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9598else 9599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9600fi 9601 9602 ;; 9603 esac 9604 fi 9605 if test "$with_gnu_ld" = no; then 9606 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9607 hardcode_libdir_separator=: 9608 9609 case $host_cpu in 9610 hppa*64*|ia64*) 9611 hardcode_direct=no 9612 hardcode_shlibpath_var=no 9613 ;; 9614 *) 9615 hardcode_direct=yes 9616 hardcode_direct_absolute=yes 9617 export_dynamic_flag_spec='${wl}-E' 9618 9619 # hardcode_minus_L: Not really in the search PATH, 9620 # but as the default location of the library. 9621 hardcode_minus_L=yes 9622 ;; 9623 esac 9624 fi 9625 ;; 9626 9627 irix5* | irix6* | nonstopux*) 9628 if test "$GCC" = yes; then 9629 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' 9630 # Try to use the -exported_symbol ld option, if it does not 9631 # work, assume that -exports_file does not work either and 9632 # implicitly export all symbols. 9633 # This should be the same for all languages, so no per-tag cache variable. 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9635$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9636if ${lt_cv_irix_exported_symbol+:} false; then : 9637 $as_echo_n "(cached) " >&6 9638else 9639 save_LDFLAGS="$LDFLAGS" 9640 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9642/* end confdefs.h. */ 9643int foo (void) { return 0; } 9644_ACEOF 9645if ac_fn_c_try_link "$LINENO"; then : 9646 lt_cv_irix_exported_symbol=yes 9647else 9648 lt_cv_irix_exported_symbol=no 9649fi 9650rm -f core conftest.err conftest.$ac_objext \ 9651 conftest$ac_exeext conftest.$ac_ext 9652 LDFLAGS="$save_LDFLAGS" 9653fi 9654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9655$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9656 if test "$lt_cv_irix_exported_symbol" = yes; then 9657 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' 9658 fi 9659 else 9660 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' 9661 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' 9662 fi 9663 archive_cmds_need_lc='no' 9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9665 hardcode_libdir_separator=: 9666 inherit_rpath=yes 9667 link_all_deplibs=yes 9668 ;; 9669 9670 netbsd*) 9671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9673 else 9674 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9675 fi 9676 hardcode_libdir_flag_spec='-R$libdir' 9677 hardcode_direct=yes 9678 hardcode_shlibpath_var=no 9679 ;; 9680 9681 newsos6) 9682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9683 hardcode_direct=yes 9684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9685 hardcode_libdir_separator=: 9686 hardcode_shlibpath_var=no 9687 ;; 9688 9689 *nto* | *qnx*) 9690 ;; 9691 9692 openbsd*) 9693 if test -f /usr/libexec/ld.so; then 9694 hardcode_direct=yes 9695 hardcode_shlibpath_var=no 9696 hardcode_direct_absolute=yes 9697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9699 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9700 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9701 export_dynamic_flag_spec='${wl}-E' 9702 else 9703 case $host_os in 9704 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9705 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9706 hardcode_libdir_flag_spec='-R$libdir' 9707 ;; 9708 *) 9709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9711 ;; 9712 esac 9713 fi 9714 else 9715 ld_shlibs=no 9716 fi 9717 ;; 9718 9719 os2*) 9720 hardcode_libdir_flag_spec='-L$libdir' 9721 hardcode_minus_L=yes 9722 allow_undefined_flag=unsupported 9723 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' 9724 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9725 ;; 9726 9727 osf3*) 9728 if test "$GCC" = yes; then 9729 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9730 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' 9731 else 9732 allow_undefined_flag=' -expect_unresolved \*' 9733 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' 9734 fi 9735 archive_cmds_need_lc='no' 9736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9737 hardcode_libdir_separator=: 9738 ;; 9739 9740 osf4* | osf5*) # as osf3* with the addition of -msym flag 9741 if test "$GCC" = yes; then 9742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9743 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' 9744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9745 else 9746 allow_undefined_flag=' -expect_unresolved \*' 9747 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' 9748 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~ 9749 $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' 9750 9751 # Both c and cxx compiler support -rpath directly 9752 hardcode_libdir_flag_spec='-rpath $libdir' 9753 fi 9754 archive_cmds_need_lc='no' 9755 hardcode_libdir_separator=: 9756 ;; 9757 9758 solaris*) 9759 no_undefined_flag=' -z defs' 9760 if test "$GCC" = yes; then 9761 wlarc='${wl}' 9762 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9763 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9764 $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' 9765 else 9766 case `$CC -V 2>&1` in 9767 *"Compilers 5.0"*) 9768 wlarc='' 9769 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9770 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9771 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9772 ;; 9773 *) 9774 wlarc='${wl}' 9775 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9777 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9778 ;; 9779 esac 9780 fi 9781 hardcode_libdir_flag_spec='-R$libdir' 9782 hardcode_shlibpath_var=no 9783 case $host_os in 9784 solaris2.[0-5] | solaris2.[0-5].*) ;; 9785 *) 9786 # The compiler driver will combine and reorder linker options, 9787 # but understands `-z linker_flag'. GCC discards it without `$wl', 9788 # but is careful enough not to reorder. 9789 # Supported since Solaris 2.6 (maybe 2.5.1?) 9790 if test "$GCC" = yes; then 9791 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9792 else 9793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9794 fi 9795 ;; 9796 esac 9797 link_all_deplibs=yes 9798 ;; 9799 9800 sunos4*) 9801 if test "x$host_vendor" = xsequent; then 9802 # Use $CC to link under sequent, because it throws in some extra .o 9803 # files that make .init and .fini sections work. 9804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9805 else 9806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9807 fi 9808 hardcode_libdir_flag_spec='-L$libdir' 9809 hardcode_direct=yes 9810 hardcode_minus_L=yes 9811 hardcode_shlibpath_var=no 9812 ;; 9813 9814 sysv4) 9815 case $host_vendor in 9816 sni) 9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9818 hardcode_direct=yes # is this really true??? 9819 ;; 9820 siemens) 9821 ## LD is ld it makes a PLAMLIB 9822 ## CC just makes a GrossModule. 9823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9824 reload_cmds='$CC -r -o $output$reload_objs' 9825 hardcode_direct=no 9826 ;; 9827 motorola) 9828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9830 ;; 9831 esac 9832 runpath_var='LD_RUN_PATH' 9833 hardcode_shlibpath_var=no 9834 ;; 9835 9836 sysv4.3*) 9837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9838 hardcode_shlibpath_var=no 9839 export_dynamic_flag_spec='-Bexport' 9840 ;; 9841 9842 sysv4*MP*) 9843 if test -d /usr/nec; then 9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9845 hardcode_shlibpath_var=no 9846 runpath_var=LD_RUN_PATH 9847 hardcode_runpath_var=yes 9848 ld_shlibs=yes 9849 fi 9850 ;; 9851 9852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9853 no_undefined_flag='${wl}-z,text' 9854 archive_cmds_need_lc=no 9855 hardcode_shlibpath_var=no 9856 runpath_var='LD_RUN_PATH' 9857 9858 if test "$GCC" = yes; then 9859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9861 else 9862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9864 fi 9865 ;; 9866 9867 sysv5* | sco3.2v5* | sco5v6*) 9868 # Note: We can NOT use -z defs as we might desire, because we do not 9869 # link with -lc, and that would cause any symbols used from libc to 9870 # always be unresolved, which means just about no library would 9871 # ever link correctly. If we're not using GNU ld we use -z text 9872 # though, which does catch some bad symbols but isn't as heavy-handed 9873 # as -z defs. 9874 no_undefined_flag='${wl}-z,text' 9875 allow_undefined_flag='${wl}-z,nodefs' 9876 archive_cmds_need_lc=no 9877 hardcode_shlibpath_var=no 9878 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9879 hardcode_libdir_separator=':' 9880 link_all_deplibs=yes 9881 export_dynamic_flag_spec='${wl}-Bexport' 9882 runpath_var='LD_RUN_PATH' 9883 9884 if test "$GCC" = yes; then 9885 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9887 else 9888 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9890 fi 9891 ;; 9892 9893 uts4*) 9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9895 hardcode_libdir_flag_spec='-L$libdir' 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 *) 9900 ld_shlibs=no 9901 ;; 9902 esac 9903 9904 if test x$host_vendor = xsni; then 9905 case $host in 9906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9907 export_dynamic_flag_spec='${wl}-Blargedynsym' 9908 ;; 9909 esac 9910 fi 9911 fi 9912 9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9914$as_echo "$ld_shlibs" >&6; } 9915test "$ld_shlibs" = no && can_build_shared=no 9916 9917with_gnu_ld=$with_gnu_ld 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933# 9934# Do we need to explicitly link libc? 9935# 9936case "x$archive_cmds_need_lc" in 9937x|xyes) 9938 # Assume -lc should be added 9939 archive_cmds_need_lc=yes 9940 9941 if test "$enable_shared" = yes && test "$GCC" = yes; then 9942 case $archive_cmds in 9943 *'~'*) 9944 # FIXME: we may have to deal with multi-command sequences. 9945 ;; 9946 '$CC '*) 9947 # Test whether the compiler implicitly links with -lc since on some 9948 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9949 # to ld, don't add -lc before -lgcc. 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9951$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9952if ${lt_cv_archive_cmds_need_lc+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 $RM conftest* 9956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9957 9958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9959 (eval $ac_compile) 2>&5 9960 ac_status=$? 9961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9962 test $ac_status = 0; } 2>conftest.err; then 9963 soname=conftest 9964 lib=conftest 9965 libobjs=conftest.$ac_objext 9966 deplibs= 9967 wl=$lt_prog_compiler_wl 9968 pic_flag=$lt_prog_compiler_pic 9969 compiler_flags=-v 9970 linker_flags=-v 9971 verstring= 9972 output_objdir=. 9973 libname=conftest 9974 lt_save_allow_undefined_flag=$allow_undefined_flag 9975 allow_undefined_flag= 9976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9977 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9978 ac_status=$? 9979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9980 test $ac_status = 0; } 9981 then 9982 lt_cv_archive_cmds_need_lc=no 9983 else 9984 lt_cv_archive_cmds_need_lc=yes 9985 fi 9986 allow_undefined_flag=$lt_save_allow_undefined_flag 9987 else 9988 cat conftest.err 1>&5 9989 fi 9990 $RM conftest* 9991 9992fi 9993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9994$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9995 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9996 ;; 9997 esac 9998 fi 9999 ;; 10000esac 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10154$as_echo_n "checking dynamic linker characteristics... " >&6; } 10155 10156if test "$GCC" = yes; then 10157 case $host_os in 10158 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10159 *) lt_awk_arg="/^libraries:/" ;; 10160 esac 10161 case $host_os in 10162 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10163 *) lt_sed_strip_eq="s,=/,/,g" ;; 10164 esac 10165 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10166 case $lt_search_path_spec in 10167 *\;*) 10168 # if the path contains ";" then we assume it to be the separator 10169 # otherwise default to the standard path separator (i.e. ":") - it is 10170 # assumed that no part of a normal pathname contains ";" but that should 10171 # okay in the real world where ";" in dirpaths is itself problematic. 10172 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10173 ;; 10174 *) 10175 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10176 ;; 10177 esac 10178 # Ok, now we have the path, separated by spaces, we can step through it 10179 # and add multilib dir if necessary. 10180 lt_tmp_lt_search_path_spec= 10181 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10182 for lt_sys_path in $lt_search_path_spec; do 10183 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10184 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10185 else 10186 test -d "$lt_sys_path" && \ 10187 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10188 fi 10189 done 10190 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10191BEGIN {RS=" "; FS="/|\n";} { 10192 lt_foo=""; 10193 lt_count=0; 10194 for (lt_i = NF; lt_i > 0; lt_i--) { 10195 if ($lt_i != "" && $lt_i != ".") { 10196 if ($lt_i == "..") { 10197 lt_count++; 10198 } else { 10199 if (lt_count == 0) { 10200 lt_foo="/" $lt_i lt_foo; 10201 } else { 10202 lt_count--; 10203 } 10204 } 10205 } 10206 } 10207 if (lt_foo != "") { lt_freq[lt_foo]++; } 10208 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10209}'` 10210 # AWK program above erroneously prepends '/' to C:/dos/paths 10211 # for these hosts. 10212 case $host_os in 10213 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10214 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10215 esac 10216 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10217else 10218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10219fi 10220library_names_spec= 10221libname_spec='lib$name' 10222soname_spec= 10223shrext_cmds=".so" 10224postinstall_cmds= 10225postuninstall_cmds= 10226finish_cmds= 10227finish_eval= 10228shlibpath_var= 10229shlibpath_overrides_runpath=unknown 10230version_type=none 10231dynamic_linker="$host_os ld.so" 10232sys_lib_dlsearch_path_spec="/lib /usr/lib" 10233need_lib_prefix=unknown 10234hardcode_into_libs=no 10235 10236# when you set need_version to no, make sure it does not cause -set_version 10237# flags to be left without arguments 10238need_version=unknown 10239 10240case $host_os in 10241aix3*) 10242 version_type=linux # correct to gnu/linux during the next big refactor 10243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10244 shlibpath_var=LIBPATH 10245 10246 # AIX 3 has no versioning support, so we append a major version to the name. 10247 soname_spec='${libname}${release}${shared_ext}$major' 10248 ;; 10249 10250aix[4-9]*) 10251 version_type=linux # correct to gnu/linux during the next big refactor 10252 need_lib_prefix=no 10253 need_version=no 10254 hardcode_into_libs=yes 10255 if test "$host_cpu" = ia64; then 10256 # AIX 5 supports IA64 10257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10258 shlibpath_var=LD_LIBRARY_PATH 10259 else 10260 # With GCC up to 2.95.x, collect2 would create an import file 10261 # for dependence libraries. The import file would start with 10262 # the line `#! .'. This would cause the generated library to 10263 # depend on `.', always an invalid library. This was fixed in 10264 # development snapshots of GCC prior to 3.0. 10265 case $host_os in 10266 aix4 | aix4.[01] | aix4.[01].*) 10267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10268 echo ' yes ' 10269 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10270 : 10271 else 10272 can_build_shared=no 10273 fi 10274 ;; 10275 esac 10276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10277 # soname into executable. Probably we can add versioning support to 10278 # collect2, so additional links can be useful in future. 10279 if test "$aix_use_runtimelinking" = yes; then 10280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10281 # instead of lib<name>.a to let people know that these are not 10282 # typical AIX shared libraries. 10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10284 else 10285 # We preserve .a as extension for shared libraries through AIX4.2 10286 # and later when we are not doing run time linking. 10287 library_names_spec='${libname}${release}.a $libname.a' 10288 soname_spec='${libname}${release}${shared_ext}$major' 10289 fi 10290 shlibpath_var=LIBPATH 10291 fi 10292 ;; 10293 10294amigaos*) 10295 case $host_cpu in 10296 powerpc) 10297 # Since July 2007 AmigaOS4 officially supports .so libraries. 10298 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10300 ;; 10301 m68k) 10302 library_names_spec='$libname.ixlibrary $libname.a' 10303 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10304 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' 10305 ;; 10306 esac 10307 ;; 10308 10309beos*) 10310 library_names_spec='${libname}${shared_ext}' 10311 dynamic_linker="$host_os ld.so" 10312 shlibpath_var=LIBRARY_PATH 10313 ;; 10314 10315bsdi[45]*) 10316 version_type=linux # correct to gnu/linux during the next big refactor 10317 need_version=no 10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10319 soname_spec='${libname}${release}${shared_ext}$major' 10320 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10321 shlibpath_var=LD_LIBRARY_PATH 10322 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10323 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10324 # the default ld.so.conf also contains /usr/contrib/lib and 10325 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10326 # libtool to hard-code these into programs 10327 ;; 10328 10329cygwin* | mingw* | pw32* | cegcc*) 10330 version_type=windows 10331 shrext_cmds=".dll" 10332 need_version=no 10333 need_lib_prefix=no 10334 10335 case $GCC,$cc_basename in 10336 yes,*) 10337 # gcc 10338 library_names_spec='$libname.dll.a' 10339 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10340 postinstall_cmds='base_file=`basename \${file}`~ 10341 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10342 dldir=$destdir/`dirname \$dlpath`~ 10343 test -d \$dldir || mkdir -p \$dldir~ 10344 $install_prog $dir/$dlname \$dldir/$dlname~ 10345 chmod a+x \$dldir/$dlname~ 10346 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10347 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10348 fi' 10349 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10350 dlpath=$dir/\$dldll~ 10351 $RM \$dlpath' 10352 shlibpath_overrides_runpath=yes 10353 10354 case $host_os in 10355 cygwin*) 10356 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10357 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10358 10359 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10360 ;; 10361 mingw* | cegcc*) 10362 # MinGW DLLs use traditional 'lib' prefix 10363 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10364 ;; 10365 pw32*) 10366 # pw32 DLLs use 'pw' prefix rather than 'lib' 10367 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10368 ;; 10369 esac 10370 dynamic_linker='Win32 ld.exe' 10371 ;; 10372 10373 *,cl*) 10374 # Native MSVC 10375 libname_spec='$name' 10376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10377 library_names_spec='${libname}.dll.lib' 10378 10379 case $build_os in 10380 mingw*) 10381 sys_lib_search_path_spec= 10382 lt_save_ifs=$IFS 10383 IFS=';' 10384 for lt_path in $LIB 10385 do 10386 IFS=$lt_save_ifs 10387 # Let DOS variable expansion print the short 8.3 style file name. 10388 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10389 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10390 done 10391 IFS=$lt_save_ifs 10392 # Convert to MSYS style. 10393 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10394 ;; 10395 cygwin*) 10396 # Convert to unix form, then to dos form, then back to unix form 10397 # but this time dos style (no spaces!) so that the unix form looks 10398 # like /cygdrive/c/PROGRA~1:/cygdr... 10399 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10400 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10401 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10402 ;; 10403 *) 10404 sys_lib_search_path_spec="$LIB" 10405 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10406 # It is most probably a Windows format PATH. 10407 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10408 else 10409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10410 fi 10411 # FIXME: find the short name or the path components, as spaces are 10412 # common. (e.g. "Program Files" -> "PROGRA~1") 10413 ;; 10414 esac 10415 10416 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10417 postinstall_cmds='base_file=`basename \${file}`~ 10418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10419 dldir=$destdir/`dirname \$dlpath`~ 10420 test -d \$dldir || mkdir -p \$dldir~ 10421 $install_prog $dir/$dlname \$dldir/$dlname' 10422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10423 dlpath=$dir/\$dldll~ 10424 $RM \$dlpath' 10425 shlibpath_overrides_runpath=yes 10426 dynamic_linker='Win32 link.exe' 10427 ;; 10428 10429 *) 10430 # Assume MSVC wrapper 10431 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10432 dynamic_linker='Win32 ld.exe' 10433 ;; 10434 esac 10435 # FIXME: first we should search . and the directory the executable is in 10436 shlibpath_var=PATH 10437 ;; 10438 10439darwin* | rhapsody*) 10440 dynamic_linker="$host_os dyld" 10441 version_type=darwin 10442 need_lib_prefix=no 10443 need_version=no 10444 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10445 soname_spec='${libname}${release}${major}$shared_ext' 10446 shlibpath_overrides_runpath=yes 10447 shlibpath_var=DYLD_LIBRARY_PATH 10448 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10449 10450 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10452 ;; 10453 10454dgux*) 10455 version_type=linux # correct to gnu/linux during the next big refactor 10456 need_lib_prefix=no 10457 need_version=no 10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10459 soname_spec='${libname}${release}${shared_ext}$major' 10460 shlibpath_var=LD_LIBRARY_PATH 10461 ;; 10462 10463freebsd* | dragonfly*) 10464 # DragonFly does not have aout. When/if they implement a new 10465 # versioning mechanism, adjust this. 10466 if test -x /usr/bin/objformat; then 10467 objformat=`/usr/bin/objformat` 10468 else 10469 case $host_os in 10470 freebsd[23].*) objformat=aout ;; 10471 *) objformat=elf ;; 10472 esac 10473 fi 10474 version_type=freebsd-$objformat 10475 case $version_type in 10476 freebsd-elf*) 10477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10478 need_version=no 10479 need_lib_prefix=no 10480 ;; 10481 freebsd-*) 10482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10483 need_version=yes 10484 ;; 10485 esac 10486 shlibpath_var=LD_LIBRARY_PATH 10487 case $host_os in 10488 freebsd2.*) 10489 shlibpath_overrides_runpath=yes 10490 ;; 10491 freebsd3.[01]* | freebsdelf3.[01]*) 10492 shlibpath_overrides_runpath=yes 10493 hardcode_into_libs=yes 10494 ;; 10495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10497 shlibpath_overrides_runpath=no 10498 hardcode_into_libs=yes 10499 ;; 10500 *) # from 4.6 on, and DragonFly 10501 shlibpath_overrides_runpath=yes 10502 hardcode_into_libs=yes 10503 ;; 10504 esac 10505 ;; 10506 10507gnu*) 10508 version_type=linux # correct to gnu/linux during the next big refactor 10509 need_lib_prefix=no 10510 need_version=no 10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10512 soname_spec='${libname}${release}${shared_ext}$major' 10513 shlibpath_var=LD_LIBRARY_PATH 10514 shlibpath_overrides_runpath=no 10515 hardcode_into_libs=yes 10516 ;; 10517 10518haiku*) 10519 version_type=linux # correct to gnu/linux during the next big refactor 10520 need_lib_prefix=no 10521 need_version=no 10522 dynamic_linker="$host_os runtime_loader" 10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10524 soname_spec='${libname}${release}${shared_ext}$major' 10525 shlibpath_var=LIBRARY_PATH 10526 shlibpath_overrides_runpath=yes 10527 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10528 hardcode_into_libs=yes 10529 ;; 10530 10531hpux9* | hpux10* | hpux11*) 10532 # Give a soname corresponding to the major version so that dld.sl refuses to 10533 # link against other versions. 10534 version_type=sunos 10535 need_lib_prefix=no 10536 need_version=no 10537 case $host_cpu in 10538 ia64*) 10539 shrext_cmds='.so' 10540 hardcode_into_libs=yes 10541 dynamic_linker="$host_os dld.so" 10542 shlibpath_var=LD_LIBRARY_PATH 10543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10545 soname_spec='${libname}${release}${shared_ext}$major' 10546 if test "X$HPUX_IA64_MODE" = X32; then 10547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10548 else 10549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10550 fi 10551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10552 ;; 10553 hppa*64*) 10554 shrext_cmds='.sl' 10555 hardcode_into_libs=yes 10556 dynamic_linker="$host_os dld.sl" 10557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10560 soname_spec='${libname}${release}${shared_ext}$major' 10561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10563 ;; 10564 *) 10565 shrext_cmds='.sl' 10566 dynamic_linker="$host_os dld.sl" 10567 shlibpath_var=SHLIB_PATH 10568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10570 soname_spec='${libname}${release}${shared_ext}$major' 10571 ;; 10572 esac 10573 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10574 postinstall_cmds='chmod 555 $lib' 10575 # or fails outright, so override atomically: 10576 install_override_mode=555 10577 ;; 10578 10579interix[3-9]*) 10580 version_type=linux # correct to gnu/linux during the next big refactor 10581 need_lib_prefix=no 10582 need_version=no 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10584 soname_spec='${libname}${release}${shared_ext}$major' 10585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10586 shlibpath_var=LD_LIBRARY_PATH 10587 shlibpath_overrides_runpath=no 10588 hardcode_into_libs=yes 10589 ;; 10590 10591irix5* | irix6* | nonstopux*) 10592 case $host_os in 10593 nonstopux*) version_type=nonstopux ;; 10594 *) 10595 if test "$lt_cv_prog_gnu_ld" = yes; then 10596 version_type=linux # correct to gnu/linux during the next big refactor 10597 else 10598 version_type=irix 10599 fi ;; 10600 esac 10601 need_lib_prefix=no 10602 need_version=no 10603 soname_spec='${libname}${release}${shared_ext}$major' 10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10605 case $host_os in 10606 irix5* | nonstopux*) 10607 libsuff= shlibsuff= 10608 ;; 10609 *) 10610 case $LD in # libtool.m4 will add one of these switches to LD 10611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10612 libsuff= shlibsuff= libmagic=32-bit;; 10613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10614 libsuff=32 shlibsuff=N32 libmagic=N32;; 10615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10616 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10617 *) libsuff= shlibsuff= libmagic=never-match;; 10618 esac 10619 ;; 10620 esac 10621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10622 shlibpath_overrides_runpath=no 10623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10625 hardcode_into_libs=yes 10626 ;; 10627 10628# No shared lib support for Linux oldld, aout, or coff. 10629linux*oldld* | linux*aout* | linux*coff*) 10630 dynamic_linker=no 10631 ;; 10632 10633# This must be glibc/ELF. 10634linux* | k*bsd*-gnu | kopensolaris*-gnu) 10635 version_type=linux # correct to gnu/linux during the next big refactor 10636 need_lib_prefix=no 10637 need_version=no 10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10639 soname_spec='${libname}${release}${shared_ext}$major' 10640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10641 shlibpath_var=LD_LIBRARY_PATH 10642 shlibpath_overrides_runpath=no 10643 10644 # Some binutils ld are patched to set DT_RUNPATH 10645 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10646 $as_echo_n "(cached) " >&6 10647else 10648 lt_cv_shlibpath_overrides_runpath=no 10649 save_LDFLAGS=$LDFLAGS 10650 save_libdir=$libdir 10651 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10652 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10654/* end confdefs.h. */ 10655 10656int 10657main () 10658{ 10659 10660 ; 10661 return 0; 10662} 10663_ACEOF 10664if ac_fn_c_try_link "$LINENO"; then : 10665 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10666 lt_cv_shlibpath_overrides_runpath=yes 10667fi 10668fi 10669rm -f core conftest.err conftest.$ac_objext \ 10670 conftest$ac_exeext conftest.$ac_ext 10671 LDFLAGS=$save_LDFLAGS 10672 libdir=$save_libdir 10673 10674fi 10675 10676 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10677 10678 # This implies no fast_install, which is unacceptable. 10679 # Some rework will be needed to allow for fast_install 10680 # before this can be enabled. 10681 hardcode_into_libs=yes 10682 10683 # Append ld.so.conf contents to the search path 10684 if test -f /etc/ld.so.conf; then 10685 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' ' '` 10686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10687 fi 10688 10689 # We used to test for /lib/ld.so.1 and disable shared libraries on 10690 # powerpc, because MkLinux only supported shared libraries with the 10691 # GNU dynamic linker. Since this was broken with cross compilers, 10692 # most powerpc-linux boxes support dynamic linking these days and 10693 # people can always --disable-shared, the test was removed, and we 10694 # assume the GNU/Linux dynamic linker is in use. 10695 dynamic_linker='GNU/Linux ld.so' 10696 ;; 10697 10698netbsd*) 10699 version_type=sunos 10700 need_lib_prefix=no 10701 need_version=no 10702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10705 dynamic_linker='NetBSD (a.out) ld.so' 10706 else 10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10708 soname_spec='${libname}${release}${shared_ext}$major' 10709 dynamic_linker='NetBSD ld.elf_so' 10710 fi 10711 shlibpath_var=LD_LIBRARY_PATH 10712 shlibpath_overrides_runpath=yes 10713 hardcode_into_libs=yes 10714 ;; 10715 10716newsos6) 10717 version_type=linux # correct to gnu/linux during the next big refactor 10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10719 shlibpath_var=LD_LIBRARY_PATH 10720 shlibpath_overrides_runpath=yes 10721 ;; 10722 10723*nto* | *qnx*) 10724 version_type=qnx 10725 need_lib_prefix=no 10726 need_version=no 10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10728 soname_spec='${libname}${release}${shared_ext}$major' 10729 shlibpath_var=LD_LIBRARY_PATH 10730 shlibpath_overrides_runpath=no 10731 hardcode_into_libs=yes 10732 dynamic_linker='ldqnx.so' 10733 ;; 10734 10735openbsd*) 10736 version_type=sunos 10737 sys_lib_dlsearch_path_spec="/usr/lib" 10738 need_lib_prefix=no 10739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10740 case $host_os in 10741 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10742 *) need_version=no ;; 10743 esac 10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10746 shlibpath_var=LD_LIBRARY_PATH 10747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10748 case $host_os in 10749 openbsd2.[89] | openbsd2.[89].*) 10750 shlibpath_overrides_runpath=no 10751 ;; 10752 *) 10753 shlibpath_overrides_runpath=yes 10754 ;; 10755 esac 10756 else 10757 shlibpath_overrides_runpath=yes 10758 fi 10759 ;; 10760 10761os2*) 10762 libname_spec='$name' 10763 shrext_cmds=".dll" 10764 need_lib_prefix=no 10765 library_names_spec='$libname${shared_ext} $libname.a' 10766 dynamic_linker='OS/2 ld.exe' 10767 shlibpath_var=LIBPATH 10768 ;; 10769 10770osf3* | osf4* | osf5*) 10771 version_type=osf 10772 need_lib_prefix=no 10773 need_version=no 10774 soname_spec='${libname}${release}${shared_ext}$major' 10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10776 shlibpath_var=LD_LIBRARY_PATH 10777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10779 ;; 10780 10781rdos*) 10782 dynamic_linker=no 10783 ;; 10784 10785solaris*) 10786 version_type=linux # correct to gnu/linux during the next big refactor 10787 need_lib_prefix=no 10788 need_version=no 10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 shlibpath_var=LD_LIBRARY_PATH 10792 shlibpath_overrides_runpath=yes 10793 hardcode_into_libs=yes 10794 # ldd complains unless libraries are executable 10795 postinstall_cmds='chmod +x $lib' 10796 ;; 10797 10798sunos4*) 10799 version_type=sunos 10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10802 shlibpath_var=LD_LIBRARY_PATH 10803 shlibpath_overrides_runpath=yes 10804 if test "$with_gnu_ld" = yes; then 10805 need_lib_prefix=no 10806 fi 10807 need_version=yes 10808 ;; 10809 10810sysv4 | sysv4.3*) 10811 version_type=linux # correct to gnu/linux during the next big refactor 10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10813 soname_spec='${libname}${release}${shared_ext}$major' 10814 shlibpath_var=LD_LIBRARY_PATH 10815 case $host_vendor in 10816 sni) 10817 shlibpath_overrides_runpath=no 10818 need_lib_prefix=no 10819 runpath_var=LD_RUN_PATH 10820 ;; 10821 siemens) 10822 need_lib_prefix=no 10823 ;; 10824 motorola) 10825 need_lib_prefix=no 10826 need_version=no 10827 shlibpath_overrides_runpath=no 10828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10829 ;; 10830 esac 10831 ;; 10832 10833sysv4*MP*) 10834 if test -d /usr/nec ;then 10835 version_type=linux # correct to gnu/linux during the next big refactor 10836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10837 soname_spec='$libname${shared_ext}.$major' 10838 shlibpath_var=LD_LIBRARY_PATH 10839 fi 10840 ;; 10841 10842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10843 version_type=freebsd-elf 10844 need_lib_prefix=no 10845 need_version=no 10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10847 soname_spec='${libname}${release}${shared_ext}$major' 10848 shlibpath_var=LD_LIBRARY_PATH 10849 shlibpath_overrides_runpath=yes 10850 hardcode_into_libs=yes 10851 if test "$with_gnu_ld" = yes; then 10852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10853 else 10854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10855 case $host_os in 10856 sco3.2v5*) 10857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10858 ;; 10859 esac 10860 fi 10861 sys_lib_dlsearch_path_spec='/usr/lib' 10862 ;; 10863 10864tpf*) 10865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10866 version_type=linux # correct to gnu/linux during the next big refactor 10867 need_lib_prefix=no 10868 need_version=no 10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10870 shlibpath_var=LD_LIBRARY_PATH 10871 shlibpath_overrides_runpath=no 10872 hardcode_into_libs=yes 10873 ;; 10874 10875uts4*) 10876 version_type=linux # correct to gnu/linux during the next big refactor 10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10878 soname_spec='${libname}${release}${shared_ext}$major' 10879 shlibpath_var=LD_LIBRARY_PATH 10880 ;; 10881 10882*) 10883 dynamic_linker=no 10884 ;; 10885esac 10886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10887$as_echo "$dynamic_linker" >&6; } 10888test "$dynamic_linker" = no && can_build_shared=no 10889 10890variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10891if test "$GCC" = yes; then 10892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10893fi 10894 10895if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10896 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10897fi 10898if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10899 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10900fi 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10994$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10995hardcode_action= 10996if test -n "$hardcode_libdir_flag_spec" || 10997 test -n "$runpath_var" || 10998 test "X$hardcode_automatic" = "Xyes" ; then 10999 11000 # We can hardcode non-existent directories. 11001 if test "$hardcode_direct" != no && 11002 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11003 # have to relink, otherwise we might link with an installed library 11004 # when we should be linking with a yet-to-be-installed one 11005 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11006 test "$hardcode_minus_L" != no; then 11007 # Linking always hardcodes the temporary library directory. 11008 hardcode_action=relink 11009 else 11010 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11011 hardcode_action=immediate 11012 fi 11013else 11014 # We cannot hardcode anything, or else we can only hardcode existing 11015 # directories. 11016 hardcode_action=unsupported 11017fi 11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11019$as_echo "$hardcode_action" >&6; } 11020 11021if test "$hardcode_action" = relink || 11022 test "$inherit_rpath" = yes; then 11023 # Fast installation is not supported 11024 enable_fast_install=no 11025elif test "$shlibpath_overrides_runpath" = yes || 11026 test "$enable_shared" = no; then 11027 # Fast installation is not necessary 11028 enable_fast_install=needless 11029fi 11030 11031 11032 11033 11034 11035 11036 if test "x$enable_dlopen" != xyes; then 11037 enable_dlopen=unknown 11038 enable_dlopen_self=unknown 11039 enable_dlopen_self_static=unknown 11040else 11041 lt_cv_dlopen=no 11042 lt_cv_dlopen_libs= 11043 11044 case $host_os in 11045 beos*) 11046 lt_cv_dlopen="load_add_on" 11047 lt_cv_dlopen_libs= 11048 lt_cv_dlopen_self=yes 11049 ;; 11050 11051 mingw* | pw32* | cegcc*) 11052 lt_cv_dlopen="LoadLibrary" 11053 lt_cv_dlopen_libs= 11054 ;; 11055 11056 cygwin*) 11057 lt_cv_dlopen="dlopen" 11058 lt_cv_dlopen_libs= 11059 ;; 11060 11061 darwin*) 11062 # if libdl is installed we need to link against it 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11064$as_echo_n "checking for dlopen in -ldl... " >&6; } 11065if ${ac_cv_lib_dl_dlopen+:} false; then : 11066 $as_echo_n "(cached) " >&6 11067else 11068 ac_check_lib_save_LIBS=$LIBS 11069LIBS="-ldl $LIBS" 11070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11071/* end confdefs.h. */ 11072 11073/* Override any GCC internal prototype to avoid an error. 11074 Use char because int might match the return type of a GCC 11075 builtin and then its argument prototype would still apply. */ 11076#ifdef __cplusplus 11077extern "C" 11078#endif 11079char dlopen (); 11080int 11081main () 11082{ 11083return dlopen (); 11084 ; 11085 return 0; 11086} 11087_ACEOF 11088if ac_fn_c_try_link "$LINENO"; then : 11089 ac_cv_lib_dl_dlopen=yes 11090else 11091 ac_cv_lib_dl_dlopen=no 11092fi 11093rm -f core conftest.err conftest.$ac_objext \ 11094 conftest$ac_exeext conftest.$ac_ext 11095LIBS=$ac_check_lib_save_LIBS 11096fi 11097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11098$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11099if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11101else 11102 11103 lt_cv_dlopen="dyld" 11104 lt_cv_dlopen_libs= 11105 lt_cv_dlopen_self=yes 11106 11107fi 11108 11109 ;; 11110 11111 *) 11112 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11113if test "x$ac_cv_func_shl_load" = xyes; then : 11114 lt_cv_dlopen="shl_load" 11115else 11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11117$as_echo_n "checking for shl_load in -ldld... " >&6; } 11118if ${ac_cv_lib_dld_shl_load+:} false; then : 11119 $as_echo_n "(cached) " >&6 11120else 11121 ac_check_lib_save_LIBS=$LIBS 11122LIBS="-ldld $LIBS" 11123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11124/* end confdefs.h. */ 11125 11126/* Override any GCC internal prototype to avoid an error. 11127 Use char because int might match the return type of a GCC 11128 builtin and then its argument prototype would still apply. */ 11129#ifdef __cplusplus 11130extern "C" 11131#endif 11132char shl_load (); 11133int 11134main () 11135{ 11136return shl_load (); 11137 ; 11138 return 0; 11139} 11140_ACEOF 11141if ac_fn_c_try_link "$LINENO"; then : 11142 ac_cv_lib_dld_shl_load=yes 11143else 11144 ac_cv_lib_dld_shl_load=no 11145fi 11146rm -f core conftest.err conftest.$ac_objext \ 11147 conftest$ac_exeext conftest.$ac_ext 11148LIBS=$ac_check_lib_save_LIBS 11149fi 11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11151$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11152if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11153 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11154else 11155 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11156if test "x$ac_cv_func_dlopen" = xyes; then : 11157 lt_cv_dlopen="dlopen" 11158else 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11160$as_echo_n "checking for dlopen in -ldl... " >&6; } 11161if ${ac_cv_lib_dl_dlopen+:} false; then : 11162 $as_echo_n "(cached) " >&6 11163else 11164 ac_check_lib_save_LIBS=$LIBS 11165LIBS="-ldl $LIBS" 11166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11167/* end confdefs.h. */ 11168 11169/* Override any GCC internal prototype to avoid an error. 11170 Use char because int might match the return type of a GCC 11171 builtin and then its argument prototype would still apply. */ 11172#ifdef __cplusplus 11173extern "C" 11174#endif 11175char dlopen (); 11176int 11177main () 11178{ 11179return dlopen (); 11180 ; 11181 return 0; 11182} 11183_ACEOF 11184if ac_fn_c_try_link "$LINENO"; then : 11185 ac_cv_lib_dl_dlopen=yes 11186else 11187 ac_cv_lib_dl_dlopen=no 11188fi 11189rm -f core conftest.err conftest.$ac_objext \ 11190 conftest$ac_exeext conftest.$ac_ext 11191LIBS=$ac_check_lib_save_LIBS 11192fi 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11194$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11195if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11196 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11197else 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11199$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11200if ${ac_cv_lib_svld_dlopen+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 ac_check_lib_save_LIBS=$LIBS 11204LIBS="-lsvld $LIBS" 11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11206/* end confdefs.h. */ 11207 11208/* Override any GCC internal prototype to avoid an error. 11209 Use char because int might match the return type of a GCC 11210 builtin and then its argument prototype would still apply. */ 11211#ifdef __cplusplus 11212extern "C" 11213#endif 11214char dlopen (); 11215int 11216main () 11217{ 11218return dlopen (); 11219 ; 11220 return 0; 11221} 11222_ACEOF 11223if ac_fn_c_try_link "$LINENO"; then : 11224 ac_cv_lib_svld_dlopen=yes 11225else 11226 ac_cv_lib_svld_dlopen=no 11227fi 11228rm -f core conftest.err conftest.$ac_objext \ 11229 conftest$ac_exeext conftest.$ac_ext 11230LIBS=$ac_check_lib_save_LIBS 11231fi 11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11233$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11234if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11235 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11236else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11238$as_echo_n "checking for dld_link in -ldld... " >&6; } 11239if ${ac_cv_lib_dld_dld_link+:} false; then : 11240 $as_echo_n "(cached) " >&6 11241else 11242 ac_check_lib_save_LIBS=$LIBS 11243LIBS="-ldld $LIBS" 11244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11245/* end confdefs.h. */ 11246 11247/* Override any GCC internal prototype to avoid an error. 11248 Use char because int might match the return type of a GCC 11249 builtin and then its argument prototype would still apply. */ 11250#ifdef __cplusplus 11251extern "C" 11252#endif 11253char dld_link (); 11254int 11255main () 11256{ 11257return dld_link (); 11258 ; 11259 return 0; 11260} 11261_ACEOF 11262if ac_fn_c_try_link "$LINENO"; then : 11263 ac_cv_lib_dld_dld_link=yes 11264else 11265 ac_cv_lib_dld_dld_link=no 11266fi 11267rm -f core conftest.err conftest.$ac_objext \ 11268 conftest$ac_exeext conftest.$ac_ext 11269LIBS=$ac_check_lib_save_LIBS 11270fi 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11272$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11273if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11274 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11275fi 11276 11277 11278fi 11279 11280 11281fi 11282 11283 11284fi 11285 11286 11287fi 11288 11289 11290fi 11291 11292 ;; 11293 esac 11294 11295 if test "x$lt_cv_dlopen" != xno; then 11296 enable_dlopen=yes 11297 else 11298 enable_dlopen=no 11299 fi 11300 11301 case $lt_cv_dlopen in 11302 dlopen) 11303 save_CPPFLAGS="$CPPFLAGS" 11304 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11305 11306 save_LDFLAGS="$LDFLAGS" 11307 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11308 11309 save_LIBS="$LIBS" 11310 LIBS="$lt_cv_dlopen_libs $LIBS" 11311 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11313$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11314if ${lt_cv_dlopen_self+:} false; then : 11315 $as_echo_n "(cached) " >&6 11316else 11317 if test "$cross_compiling" = yes; then : 11318 lt_cv_dlopen_self=cross 11319else 11320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11321 lt_status=$lt_dlunknown 11322 cat > conftest.$ac_ext <<_LT_EOF 11323#line $LINENO "configure" 11324#include "confdefs.h" 11325 11326#if HAVE_DLFCN_H 11327#include <dlfcn.h> 11328#endif 11329 11330#include <stdio.h> 11331 11332#ifdef RTLD_GLOBAL 11333# define LT_DLGLOBAL RTLD_GLOBAL 11334#else 11335# ifdef DL_GLOBAL 11336# define LT_DLGLOBAL DL_GLOBAL 11337# else 11338# define LT_DLGLOBAL 0 11339# endif 11340#endif 11341 11342/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11343 find out it does not work in some platform. */ 11344#ifndef LT_DLLAZY_OR_NOW 11345# ifdef RTLD_LAZY 11346# define LT_DLLAZY_OR_NOW RTLD_LAZY 11347# else 11348# ifdef DL_LAZY 11349# define LT_DLLAZY_OR_NOW DL_LAZY 11350# else 11351# ifdef RTLD_NOW 11352# define LT_DLLAZY_OR_NOW RTLD_NOW 11353# else 11354# ifdef DL_NOW 11355# define LT_DLLAZY_OR_NOW DL_NOW 11356# else 11357# define LT_DLLAZY_OR_NOW 0 11358# endif 11359# endif 11360# endif 11361# endif 11362#endif 11363 11364/* When -fvisbility=hidden is used, assume the code has been annotated 11365 correspondingly for the symbols needed. */ 11366#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11367int fnord () __attribute__((visibility("default"))); 11368#endif 11369 11370int fnord () { return 42; } 11371int main () 11372{ 11373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11374 int status = $lt_dlunknown; 11375 11376 if (self) 11377 { 11378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11379 else 11380 { 11381 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11382 else puts (dlerror ()); 11383 } 11384 /* dlclose (self); */ 11385 } 11386 else 11387 puts (dlerror ()); 11388 11389 return status; 11390} 11391_LT_EOF 11392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11393 (eval $ac_link) 2>&5 11394 ac_status=$? 11395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11396 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11397 (./conftest; exit; ) >&5 2>/dev/null 11398 lt_status=$? 11399 case x$lt_status in 11400 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11401 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11402 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11403 esac 11404 else : 11405 # compilation failed 11406 lt_cv_dlopen_self=no 11407 fi 11408fi 11409rm -fr conftest* 11410 11411 11412fi 11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11414$as_echo "$lt_cv_dlopen_self" >&6; } 11415 11416 if test "x$lt_cv_dlopen_self" = xyes; then 11417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11419$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11420if ${lt_cv_dlopen_self_static+:} false; then : 11421 $as_echo_n "(cached) " >&6 11422else 11423 if test "$cross_compiling" = yes; then : 11424 lt_cv_dlopen_self_static=cross 11425else 11426 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11427 lt_status=$lt_dlunknown 11428 cat > conftest.$ac_ext <<_LT_EOF 11429#line $LINENO "configure" 11430#include "confdefs.h" 11431 11432#if HAVE_DLFCN_H 11433#include <dlfcn.h> 11434#endif 11435 11436#include <stdio.h> 11437 11438#ifdef RTLD_GLOBAL 11439# define LT_DLGLOBAL RTLD_GLOBAL 11440#else 11441# ifdef DL_GLOBAL 11442# define LT_DLGLOBAL DL_GLOBAL 11443# else 11444# define LT_DLGLOBAL 0 11445# endif 11446#endif 11447 11448/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11449 find out it does not work in some platform. */ 11450#ifndef LT_DLLAZY_OR_NOW 11451# ifdef RTLD_LAZY 11452# define LT_DLLAZY_OR_NOW RTLD_LAZY 11453# else 11454# ifdef DL_LAZY 11455# define LT_DLLAZY_OR_NOW DL_LAZY 11456# else 11457# ifdef RTLD_NOW 11458# define LT_DLLAZY_OR_NOW RTLD_NOW 11459# else 11460# ifdef DL_NOW 11461# define LT_DLLAZY_OR_NOW DL_NOW 11462# else 11463# define LT_DLLAZY_OR_NOW 0 11464# endif 11465# endif 11466# endif 11467# endif 11468#endif 11469 11470/* When -fvisbility=hidden is used, assume the code has been annotated 11471 correspondingly for the symbols needed. */ 11472#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11473int fnord () __attribute__((visibility("default"))); 11474#endif 11475 11476int fnord () { return 42; } 11477int main () 11478{ 11479 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11480 int status = $lt_dlunknown; 11481 11482 if (self) 11483 { 11484 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11485 else 11486 { 11487 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11488 else puts (dlerror ()); 11489 } 11490 /* dlclose (self); */ 11491 } 11492 else 11493 puts (dlerror ()); 11494 11495 return status; 11496} 11497_LT_EOF 11498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11499 (eval $ac_link) 2>&5 11500 ac_status=$? 11501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11502 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11503 (./conftest; exit; ) >&5 2>/dev/null 11504 lt_status=$? 11505 case x$lt_status in 11506 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11507 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11508 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11509 esac 11510 else : 11511 # compilation failed 11512 lt_cv_dlopen_self_static=no 11513 fi 11514fi 11515rm -fr conftest* 11516 11517 11518fi 11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11520$as_echo "$lt_cv_dlopen_self_static" >&6; } 11521 fi 11522 11523 CPPFLAGS="$save_CPPFLAGS" 11524 LDFLAGS="$save_LDFLAGS" 11525 LIBS="$save_LIBS" 11526 ;; 11527 esac 11528 11529 case $lt_cv_dlopen_self in 11530 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11531 *) enable_dlopen_self=unknown ;; 11532 esac 11533 11534 case $lt_cv_dlopen_self_static in 11535 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11536 *) enable_dlopen_self_static=unknown ;; 11537 esac 11538fi 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556striplib= 11557old_striplib= 11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11559$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11560if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11562 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11564$as_echo "yes" >&6; } 11565else 11566# FIXME - insert some real tests, host_os isn't really good enough 11567 case $host_os in 11568 darwin*) 11569 if test -n "$STRIP" ; then 11570 striplib="$STRIP -x" 11571 old_striplib="$STRIP -S" 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11573$as_echo "yes" >&6; } 11574 else 11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11576$as_echo "no" >&6; } 11577 fi 11578 ;; 11579 *) 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11581$as_echo "no" >&6; } 11582 ;; 11583 esac 11584fi 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 # Report which library types will actually be built 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11599$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11601$as_echo "$can_build_shared" >&6; } 11602 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11604$as_echo_n "checking whether to build shared libraries... " >&6; } 11605 test "$can_build_shared" = "no" && enable_shared=no 11606 11607 # On AIX, shared libraries and static libraries use the same namespace, and 11608 # are all built from PIC. 11609 case $host_os in 11610 aix3*) 11611 test "$enable_shared" = yes && enable_static=no 11612 if test -n "$RANLIB"; then 11613 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11614 postinstall_cmds='$RANLIB $lib' 11615 fi 11616 ;; 11617 11618 aix[4-9]*) 11619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11620 test "$enable_shared" = yes && enable_static=no 11621 fi 11622 ;; 11623 esac 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11625$as_echo "$enable_shared" >&6; } 11626 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11628$as_echo_n "checking whether to build static libraries... " >&6; } 11629 # Make sure either enable_shared or enable_static is yes. 11630 test "$enable_shared" = yes || enable_static=yes 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11632$as_echo "$enable_static" >&6; } 11633 11634 11635 11636 11637fi 11638ac_ext=c 11639ac_cpp='$CPP $CPPFLAGS' 11640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11642ac_compiler_gnu=$ac_cv_c_compiler_gnu 11643 11644CC="$lt_save_CC" 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 ac_config_commands="$ac_config_commands libtool" 11661 11662 11663 11664 11665# Only expand once: 11666 11667 11668 11669# Require X.Org macros 1.13 or later for XORG_ENABLE_UNIT_TESTS 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11682$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11683if ${ac_cv_prog_cc_c99+:} false; then : 11684 $as_echo_n "(cached) " >&6 11685else 11686 ac_cv_prog_cc_c99=no 11687ac_save_CC=$CC 11688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11689/* end confdefs.h. */ 11690#include <stdarg.h> 11691#include <stdbool.h> 11692#include <stdlib.h> 11693#include <wchar.h> 11694#include <stdio.h> 11695 11696// Check varargs macros. These examples are taken from C99 6.10.3.5. 11697#define debug(...) fprintf (stderr, __VA_ARGS__) 11698#define showlist(...) puts (#__VA_ARGS__) 11699#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11700static void 11701test_varargs_macros (void) 11702{ 11703 int x = 1234; 11704 int y = 5678; 11705 debug ("Flag"); 11706 debug ("X = %d\n", x); 11707 showlist (The first, second, and third items.); 11708 report (x>y, "x is %d but y is %d", x, y); 11709} 11710 11711// Check long long types. 11712#define BIG64 18446744073709551615ull 11713#define BIG32 4294967295ul 11714#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11715#if !BIG_OK 11716 your preprocessor is broken; 11717#endif 11718#if BIG_OK 11719#else 11720 your preprocessor is broken; 11721#endif 11722static long long int bignum = -9223372036854775807LL; 11723static unsigned long long int ubignum = BIG64; 11724 11725struct incomplete_array 11726{ 11727 int datasize; 11728 double data[]; 11729}; 11730 11731struct named_init { 11732 int number; 11733 const wchar_t *name; 11734 double average; 11735}; 11736 11737typedef const char *ccp; 11738 11739static inline int 11740test_restrict (ccp restrict text) 11741{ 11742 // See if C++-style comments work. 11743 // Iterate through items via the restricted pointer. 11744 // Also check for declarations in for loops. 11745 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11746 continue; 11747 return 0; 11748} 11749 11750// Check varargs and va_copy. 11751static void 11752test_varargs (const char *format, ...) 11753{ 11754 va_list args; 11755 va_start (args, format); 11756 va_list args_copy; 11757 va_copy (args_copy, args); 11758 11759 const char *str; 11760 int number; 11761 float fnumber; 11762 11763 while (*format) 11764 { 11765 switch (*format++) 11766 { 11767 case 's': // string 11768 str = va_arg (args_copy, const char *); 11769 break; 11770 case 'd': // int 11771 number = va_arg (args_copy, int); 11772 break; 11773 case 'f': // float 11774 fnumber = va_arg (args_copy, double); 11775 break; 11776 default: 11777 break; 11778 } 11779 } 11780 va_end (args_copy); 11781 va_end (args); 11782} 11783 11784int 11785main () 11786{ 11787 11788 // Check bool. 11789 _Bool success = false; 11790 11791 // Check restrict. 11792 if (test_restrict ("String literal") == 0) 11793 success = true; 11794 char *restrict newvar = "Another string"; 11795 11796 // Check varargs. 11797 test_varargs ("s, d' f .", "string", 65, 34.234); 11798 test_varargs_macros (); 11799 11800 // Check flexible array members. 11801 struct incomplete_array *ia = 11802 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11803 ia->datasize = 10; 11804 for (int i = 0; i < ia->datasize; ++i) 11805 ia->data[i] = i * 1.234; 11806 11807 // Check named initializers. 11808 struct named_init ni = { 11809 .number = 34, 11810 .name = L"Test wide string", 11811 .average = 543.34343, 11812 }; 11813 11814 ni.number = 58; 11815 11816 int dynamic_array[ni.number]; 11817 dynamic_array[ni.number - 1] = 543; 11818 11819 // work around unused variable warnings 11820 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11821 || dynamic_array[ni.number - 1] != 543); 11822 11823 ; 11824 return 0; 11825} 11826_ACEOF 11827for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 11828do 11829 CC="$ac_save_CC $ac_arg" 11830 if ac_fn_c_try_compile "$LINENO"; then : 11831 ac_cv_prog_cc_c99=$ac_arg 11832fi 11833rm -f core conftest.err conftest.$ac_objext 11834 test "x$ac_cv_prog_cc_c99" != "xno" && break 11835done 11836rm -f conftest.$ac_ext 11837CC=$ac_save_CC 11838 11839fi 11840# AC_CACHE_VAL 11841case "x$ac_cv_prog_cc_c99" in 11842 x) 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11844$as_echo "none needed" >&6; } ;; 11845 xno) 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11847$as_echo "unsupported" >&6; } ;; 11848 *) 11849 CC="$CC $ac_cv_prog_cc_c99" 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11851$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11852esac 11853if test "x$ac_cv_prog_cc_c99" != xno; then : 11854 11855fi 11856 11857 11858 11859 11860 11861 11862ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11863if test "x$ac_cv_have_decl___clang__" = xyes; then : 11864 CLANGCC="yes" 11865else 11866 CLANGCC="no" 11867fi 11868 11869ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11870if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11871 INTELCC="yes" 11872else 11873 INTELCC="no" 11874fi 11875 11876ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11877if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11878 SUNCC="yes" 11879else 11880 SUNCC="no" 11881fi 11882 11883 11884 11885 11886if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11887 if test -n "$ac_tool_prefix"; then 11888 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11889set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11891$as_echo_n "checking for $ac_word... " >&6; } 11892if ${ac_cv_path_PKG_CONFIG+:} false; then : 11893 $as_echo_n "(cached) " >&6 11894else 11895 case $PKG_CONFIG in 11896 [\\/]* | ?:[\\/]*) 11897 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11898 ;; 11899 *) 11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11901for as_dir in $PATH 11902do 11903 IFS=$as_save_IFS 11904 test -z "$as_dir" && as_dir=. 11905 for ac_exec_ext in '' $ac_executable_extensions; do 11906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11907 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11909 break 2 11910 fi 11911done 11912 done 11913IFS=$as_save_IFS 11914 11915 ;; 11916esac 11917fi 11918PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11919if test -n "$PKG_CONFIG"; then 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11921$as_echo "$PKG_CONFIG" >&6; } 11922else 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11924$as_echo "no" >&6; } 11925fi 11926 11927 11928fi 11929if test -z "$ac_cv_path_PKG_CONFIG"; then 11930 ac_pt_PKG_CONFIG=$PKG_CONFIG 11931 # Extract the first word of "pkg-config", so it can be a program name with args. 11932set dummy pkg-config; ac_word=$2 11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11934$as_echo_n "checking for $ac_word... " >&6; } 11935if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11936 $as_echo_n "(cached) " >&6 11937else 11938 case $ac_pt_PKG_CONFIG in 11939 [\\/]* | ?:[\\/]*) 11940 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11941 ;; 11942 *) 11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11944for as_dir in $PATH 11945do 11946 IFS=$as_save_IFS 11947 test -z "$as_dir" && as_dir=. 11948 for ac_exec_ext in '' $ac_executable_extensions; do 11949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11950 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11952 break 2 11953 fi 11954done 11955 done 11956IFS=$as_save_IFS 11957 11958 ;; 11959esac 11960fi 11961ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11962if test -n "$ac_pt_PKG_CONFIG"; then 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11964$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11965else 11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11967$as_echo "no" >&6; } 11968fi 11969 11970 if test "x$ac_pt_PKG_CONFIG" = x; then 11971 PKG_CONFIG="" 11972 else 11973 case $cross_compiling:$ac_tool_warned in 11974yes:) 11975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11977ac_tool_warned=yes ;; 11978esac 11979 PKG_CONFIG=$ac_pt_PKG_CONFIG 11980 fi 11981else 11982 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11983fi 11984 11985fi 11986if test -n "$PKG_CONFIG"; then 11987 _pkg_min_version=0.9.0 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11989$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11990 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11992$as_echo "yes" >&6; } 11993 else 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11995$as_echo "no" >&6; } 11996 PKG_CONFIG="" 11997 fi 11998 11999fi 12000 12001 12002 12003 12004 12005# Check whether --enable-selective-werror was given. 12006if test "${enable_selective_werror+set}" = set; then : 12007 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12008else 12009 SELECTIVE_WERROR=yes 12010fi 12011 12012 12013 12014 12015 12016# -v is too short to test reliably with XORG_TESTSET_CFLAG 12017if test "x$SUNCC" = "xyes"; then 12018 BASE_CFLAGS="-v" 12019else 12020 BASE_CFLAGS="" 12021fi 12022 12023# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037xorg_testset_save_CFLAGS="$CFLAGS" 12038 12039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12044 $as_echo_n "(cached) " >&6 12045else 12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12047/* end confdefs.h. */ 12048int i; 12049_ACEOF 12050if ac_fn_c_try_compile "$LINENO"; then : 12051 xorg_cv_cc_flag_unknown_warning_option=yes 12052else 12053 xorg_cv_cc_flag_unknown_warning_option=no 12054fi 12055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12056fi 12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12060 CFLAGS="$xorg_testset_save_CFLAGS" 12061fi 12062 12063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12066 fi 12067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12071 $as_echo_n "(cached) " >&6 12072else 12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12074/* end confdefs.h. */ 12075int i; 12076_ACEOF 12077if ac_fn_c_try_compile "$LINENO"; then : 12078 xorg_cv_cc_flag_unused_command_line_argument=yes 12079else 12080 xorg_cv_cc_flag_unused_command_line_argument=no 12081fi 12082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12083fi 12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12087 CFLAGS="$xorg_testset_save_CFLAGS" 12088fi 12089 12090found="no" 12091 12092 if test $found = "no" ; then 12093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12095 fi 12096 12097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12099 fi 12100 12101 CFLAGS="$CFLAGS -Wall" 12102 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12104$as_echo_n "checking if $CC supports -Wall... " >&6; } 12105 cacheid=xorg_cv_cc_flag__Wall 12106 if eval \${$cacheid+:} false; then : 12107 $as_echo_n "(cached) " >&6 12108else 12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12110/* end confdefs.h. */ 12111int i; 12112int 12113main () 12114{ 12115 12116 ; 12117 return 0; 12118} 12119_ACEOF 12120if ac_fn_c_try_link "$LINENO"; then : 12121 eval $cacheid=yes 12122else 12123 eval $cacheid=no 12124fi 12125rm -f core conftest.err conftest.$ac_objext \ 12126 conftest$ac_exeext conftest.$ac_ext 12127fi 12128 12129 12130 CFLAGS="$xorg_testset_save_CFLAGS" 12131 12132 eval supported=\$$cacheid 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12134$as_echo "$supported" >&6; } 12135 if test "$supported" = "yes" ; then 12136 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12137 found="yes" 12138 fi 12139 fi 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155xorg_testset_save_CFLAGS="$CFLAGS" 12156 12157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12162 $as_echo_n "(cached) " >&6 12163else 12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12165/* end confdefs.h. */ 12166int i; 12167_ACEOF 12168if ac_fn_c_try_compile "$LINENO"; then : 12169 xorg_cv_cc_flag_unknown_warning_option=yes 12170else 12171 xorg_cv_cc_flag_unknown_warning_option=no 12172fi 12173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12174fi 12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12178 CFLAGS="$xorg_testset_save_CFLAGS" 12179fi 12180 12181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12184 fi 12185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12192/* end confdefs.h. */ 12193int i; 12194_ACEOF 12195if ac_fn_c_try_compile "$LINENO"; then : 12196 xorg_cv_cc_flag_unused_command_line_argument=yes 12197else 12198 xorg_cv_cc_flag_unused_command_line_argument=no 12199fi 12200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12201fi 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12204 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12205 CFLAGS="$xorg_testset_save_CFLAGS" 12206fi 12207 12208found="no" 12209 12210 if test $found = "no" ; then 12211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12213 fi 12214 12215 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12217 fi 12218 12219 CFLAGS="$CFLAGS -Wpointer-arith" 12220 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12222$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12223 cacheid=xorg_cv_cc_flag__Wpointer_arith 12224 if eval \${$cacheid+:} false; then : 12225 $as_echo_n "(cached) " >&6 12226else 12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12228/* end confdefs.h. */ 12229int i; 12230int 12231main () 12232{ 12233 12234 ; 12235 return 0; 12236} 12237_ACEOF 12238if ac_fn_c_try_link "$LINENO"; then : 12239 eval $cacheid=yes 12240else 12241 eval $cacheid=no 12242fi 12243rm -f core conftest.err conftest.$ac_objext \ 12244 conftest$ac_exeext conftest.$ac_ext 12245fi 12246 12247 12248 CFLAGS="$xorg_testset_save_CFLAGS" 12249 12250 eval supported=\$$cacheid 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12252$as_echo "$supported" >&6; } 12253 if test "$supported" = "yes" ; then 12254 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12255 found="yes" 12256 fi 12257 fi 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273xorg_testset_save_CFLAGS="$CFLAGS" 12274 12275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12278$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12279if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12280 $as_echo_n "(cached) " >&6 12281else 12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12283/* end confdefs.h. */ 12284int i; 12285_ACEOF 12286if ac_fn_c_try_compile "$LINENO"; then : 12287 xorg_cv_cc_flag_unknown_warning_option=yes 12288else 12289 xorg_cv_cc_flag_unknown_warning_option=no 12290fi 12291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12292fi 12293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12294$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12296 CFLAGS="$xorg_testset_save_CFLAGS" 12297fi 12298 12299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12302 fi 12303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12305$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12306if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12307 $as_echo_n "(cached) " >&6 12308else 12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12310/* end confdefs.h. */ 12311int i; 12312_ACEOF 12313if ac_fn_c_try_compile "$LINENO"; then : 12314 xorg_cv_cc_flag_unused_command_line_argument=yes 12315else 12316 xorg_cv_cc_flag_unused_command_line_argument=no 12317fi 12318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12319fi 12320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12321$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12323 CFLAGS="$xorg_testset_save_CFLAGS" 12324fi 12325 12326found="no" 12327 12328 if test $found = "no" ; then 12329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12331 fi 12332 12333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12335 fi 12336 12337 CFLAGS="$CFLAGS -Wmissing-declarations" 12338 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12340$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12341 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12342 if eval \${$cacheid+:} false; then : 12343 $as_echo_n "(cached) " >&6 12344else 12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12346/* end confdefs.h. */ 12347int i; 12348int 12349main () 12350{ 12351 12352 ; 12353 return 0; 12354} 12355_ACEOF 12356if ac_fn_c_try_link "$LINENO"; then : 12357 eval $cacheid=yes 12358else 12359 eval $cacheid=no 12360fi 12361rm -f core conftest.err conftest.$ac_objext \ 12362 conftest$ac_exeext conftest.$ac_ext 12363fi 12364 12365 12366 CFLAGS="$xorg_testset_save_CFLAGS" 12367 12368 eval supported=\$$cacheid 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12370$as_echo "$supported" >&6; } 12371 if test "$supported" = "yes" ; then 12372 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12373 found="yes" 12374 fi 12375 fi 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391xorg_testset_save_CFLAGS="$CFLAGS" 12392 12393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12398 $as_echo_n "(cached) " >&6 12399else 12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12401/* end confdefs.h. */ 12402int i; 12403_ACEOF 12404if ac_fn_c_try_compile "$LINENO"; then : 12405 xorg_cv_cc_flag_unknown_warning_option=yes 12406else 12407 xorg_cv_cc_flag_unknown_warning_option=no 12408fi 12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12410fi 12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12414 CFLAGS="$xorg_testset_save_CFLAGS" 12415fi 12416 12417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12420 fi 12421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426else 12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12428/* end confdefs.h. */ 12429int i; 12430_ACEOF 12431if ac_fn_c_try_compile "$LINENO"; then : 12432 xorg_cv_cc_flag_unused_command_line_argument=yes 12433else 12434 xorg_cv_cc_flag_unused_command_line_argument=no 12435fi 12436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12437fi 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12441 CFLAGS="$xorg_testset_save_CFLAGS" 12442fi 12443 12444found="no" 12445 12446 if test $found = "no" ; then 12447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12449 fi 12450 12451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12453 fi 12454 12455 CFLAGS="$CFLAGS -Wformat=2" 12456 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12458$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12459 cacheid=xorg_cv_cc_flag__Wformat_2 12460 if eval \${$cacheid+:} false; then : 12461 $as_echo_n "(cached) " >&6 12462else 12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12464/* end confdefs.h. */ 12465int i; 12466int 12467main () 12468{ 12469 12470 ; 12471 return 0; 12472} 12473_ACEOF 12474if ac_fn_c_try_link "$LINENO"; then : 12475 eval $cacheid=yes 12476else 12477 eval $cacheid=no 12478fi 12479rm -f core conftest.err conftest.$ac_objext \ 12480 conftest$ac_exeext conftest.$ac_ext 12481fi 12482 12483 12484 CFLAGS="$xorg_testset_save_CFLAGS" 12485 12486 eval supported=\$$cacheid 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12488$as_echo "$supported" >&6; } 12489 if test "$supported" = "yes" ; then 12490 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12491 found="yes" 12492 fi 12493 fi 12494 12495 if test $found = "no" ; then 12496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12498 fi 12499 12500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12502 fi 12503 12504 CFLAGS="$CFLAGS -Wformat" 12505 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12507$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12508 cacheid=xorg_cv_cc_flag__Wformat 12509 if eval \${$cacheid+:} false; then : 12510 $as_echo_n "(cached) " >&6 12511else 12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513/* end confdefs.h. */ 12514int i; 12515int 12516main () 12517{ 12518 12519 ; 12520 return 0; 12521} 12522_ACEOF 12523if ac_fn_c_try_link "$LINENO"; then : 12524 eval $cacheid=yes 12525else 12526 eval $cacheid=no 12527fi 12528rm -f core conftest.err conftest.$ac_objext \ 12529 conftest$ac_exeext conftest.$ac_ext 12530fi 12531 12532 12533 CFLAGS="$xorg_testset_save_CFLAGS" 12534 12535 eval supported=\$$cacheid 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12537$as_echo "$supported" >&6; } 12538 if test "$supported" = "yes" ; then 12539 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12540 found="yes" 12541 fi 12542 fi 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560xorg_testset_save_CFLAGS="$CFLAGS" 12561 12562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12570/* end confdefs.h. */ 12571int i; 12572_ACEOF 12573if ac_fn_c_try_compile "$LINENO"; then : 12574 xorg_cv_cc_flag_unknown_warning_option=yes 12575else 12576 xorg_cv_cc_flag_unknown_warning_option=no 12577fi 12578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12579fi 12580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12583 CFLAGS="$xorg_testset_save_CFLAGS" 12584fi 12585 12586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12589 fi 12590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12594 $as_echo_n "(cached) " >&6 12595else 12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12597/* end confdefs.h. */ 12598int i; 12599_ACEOF 12600if ac_fn_c_try_compile "$LINENO"; then : 12601 xorg_cv_cc_flag_unused_command_line_argument=yes 12602else 12603 xorg_cv_cc_flag_unused_command_line_argument=no 12604fi 12605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12606fi 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12610 CFLAGS="$xorg_testset_save_CFLAGS" 12611fi 12612 12613found="no" 12614 12615 if test $found = "no" ; then 12616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12618 fi 12619 12620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12622 fi 12623 12624 CFLAGS="$CFLAGS -Wstrict-prototypes" 12625 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12627$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12628 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12629 if eval \${$cacheid+:} false; then : 12630 $as_echo_n "(cached) " >&6 12631else 12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12633/* end confdefs.h. */ 12634int i; 12635int 12636main () 12637{ 12638 12639 ; 12640 return 0; 12641} 12642_ACEOF 12643if ac_fn_c_try_link "$LINENO"; then : 12644 eval $cacheid=yes 12645else 12646 eval $cacheid=no 12647fi 12648rm -f core conftest.err conftest.$ac_objext \ 12649 conftest$ac_exeext conftest.$ac_ext 12650fi 12651 12652 12653 CFLAGS="$xorg_testset_save_CFLAGS" 12654 12655 eval supported=\$$cacheid 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12657$as_echo "$supported" >&6; } 12658 if test "$supported" = "yes" ; then 12659 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12660 found="yes" 12661 fi 12662 fi 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678xorg_testset_save_CFLAGS="$CFLAGS" 12679 12680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12685 $as_echo_n "(cached) " >&6 12686else 12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12688/* end confdefs.h. */ 12689int i; 12690_ACEOF 12691if ac_fn_c_try_compile "$LINENO"; then : 12692 xorg_cv_cc_flag_unknown_warning_option=yes 12693else 12694 xorg_cv_cc_flag_unknown_warning_option=no 12695fi 12696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12697fi 12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12701 CFLAGS="$xorg_testset_save_CFLAGS" 12702fi 12703 12704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12707 fi 12708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713else 12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12715/* end confdefs.h. */ 12716int i; 12717_ACEOF 12718if ac_fn_c_try_compile "$LINENO"; then : 12719 xorg_cv_cc_flag_unused_command_line_argument=yes 12720else 12721 xorg_cv_cc_flag_unused_command_line_argument=no 12722fi 12723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12724fi 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12728 CFLAGS="$xorg_testset_save_CFLAGS" 12729fi 12730 12731found="no" 12732 12733 if test $found = "no" ; then 12734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12736 fi 12737 12738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12740 fi 12741 12742 CFLAGS="$CFLAGS -Wmissing-prototypes" 12743 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 12745$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 12746 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 12747 if eval \${$cacheid+:} false; then : 12748 $as_echo_n "(cached) " >&6 12749else 12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12751/* end confdefs.h. */ 12752int i; 12753int 12754main () 12755{ 12756 12757 ; 12758 return 0; 12759} 12760_ACEOF 12761if ac_fn_c_try_link "$LINENO"; then : 12762 eval $cacheid=yes 12763else 12764 eval $cacheid=no 12765fi 12766rm -f core conftest.err conftest.$ac_objext \ 12767 conftest$ac_exeext conftest.$ac_ext 12768fi 12769 12770 12771 CFLAGS="$xorg_testset_save_CFLAGS" 12772 12773 eval supported=\$$cacheid 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12775$as_echo "$supported" >&6; } 12776 if test "$supported" = "yes" ; then 12777 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 12778 found="yes" 12779 fi 12780 fi 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796xorg_testset_save_CFLAGS="$CFLAGS" 12797 12798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804else 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807int i; 12808_ACEOF 12809if ac_fn_c_try_compile "$LINENO"; then : 12810 xorg_cv_cc_flag_unknown_warning_option=yes 12811else 12812 xorg_cv_cc_flag_unknown_warning_option=no 12813fi 12814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12819 CFLAGS="$xorg_testset_save_CFLAGS" 12820fi 12821 12822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12825 fi 12826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12830 $as_echo_n "(cached) " >&6 12831else 12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12833/* end confdefs.h. */ 12834int i; 12835_ACEOF 12836if ac_fn_c_try_compile "$LINENO"; then : 12837 xorg_cv_cc_flag_unused_command_line_argument=yes 12838else 12839 xorg_cv_cc_flag_unused_command_line_argument=no 12840fi 12841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12842fi 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12846 CFLAGS="$xorg_testset_save_CFLAGS" 12847fi 12848 12849found="no" 12850 12851 if test $found = "no" ; then 12852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12854 fi 12855 12856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12858 fi 12859 12860 CFLAGS="$CFLAGS -Wnested-externs" 12861 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 12863$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 12864 cacheid=xorg_cv_cc_flag__Wnested_externs 12865 if eval \${$cacheid+:} false; then : 12866 $as_echo_n "(cached) " >&6 12867else 12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12869/* end confdefs.h. */ 12870int i; 12871int 12872main () 12873{ 12874 12875 ; 12876 return 0; 12877} 12878_ACEOF 12879if ac_fn_c_try_link "$LINENO"; then : 12880 eval $cacheid=yes 12881else 12882 eval $cacheid=no 12883fi 12884rm -f core conftest.err conftest.$ac_objext \ 12885 conftest$ac_exeext conftest.$ac_ext 12886fi 12887 12888 12889 CFLAGS="$xorg_testset_save_CFLAGS" 12890 12891 eval supported=\$$cacheid 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12893$as_echo "$supported" >&6; } 12894 if test "$supported" = "yes" ; then 12895 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 12896 found="yes" 12897 fi 12898 fi 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914xorg_testset_save_CFLAGS="$CFLAGS" 12915 12916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12921 $as_echo_n "(cached) " >&6 12922else 12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12924/* end confdefs.h. */ 12925int i; 12926_ACEOF 12927if ac_fn_c_try_compile "$LINENO"; then : 12928 xorg_cv_cc_flag_unknown_warning_option=yes 12929else 12930 xorg_cv_cc_flag_unknown_warning_option=no 12931fi 12932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12933fi 12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12937 CFLAGS="$xorg_testset_save_CFLAGS" 12938fi 12939 12940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12943 fi 12944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12948 $as_echo_n "(cached) " >&6 12949else 12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12951/* end confdefs.h. */ 12952int i; 12953_ACEOF 12954if ac_fn_c_try_compile "$LINENO"; then : 12955 xorg_cv_cc_flag_unused_command_line_argument=yes 12956else 12957 xorg_cv_cc_flag_unused_command_line_argument=no 12958fi 12959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12960fi 12961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12964 CFLAGS="$xorg_testset_save_CFLAGS" 12965fi 12966 12967found="no" 12968 12969 if test $found = "no" ; then 12970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12972 fi 12973 12974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12976 fi 12977 12978 CFLAGS="$CFLAGS -Wbad-function-cast" 12979 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 12981$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 12982 cacheid=xorg_cv_cc_flag__Wbad_function_cast 12983 if eval \${$cacheid+:} false; then : 12984 $as_echo_n "(cached) " >&6 12985else 12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12987/* end confdefs.h. */ 12988int i; 12989int 12990main () 12991{ 12992 12993 ; 12994 return 0; 12995} 12996_ACEOF 12997if ac_fn_c_try_link "$LINENO"; then : 12998 eval $cacheid=yes 12999else 13000 eval $cacheid=no 13001fi 13002rm -f core conftest.err conftest.$ac_objext \ 13003 conftest$ac_exeext conftest.$ac_ext 13004fi 13005 13006 13007 CFLAGS="$xorg_testset_save_CFLAGS" 13008 13009 eval supported=\$$cacheid 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13011$as_echo "$supported" >&6; } 13012 if test "$supported" = "yes" ; then 13013 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13014 found="yes" 13015 fi 13016 fi 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032xorg_testset_save_CFLAGS="$CFLAGS" 13033 13034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13039 $as_echo_n "(cached) " >&6 13040else 13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13042/* end confdefs.h. */ 13043int i; 13044_ACEOF 13045if ac_fn_c_try_compile "$LINENO"; then : 13046 xorg_cv_cc_flag_unknown_warning_option=yes 13047else 13048 xorg_cv_cc_flag_unknown_warning_option=no 13049fi 13050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13051fi 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13055 CFLAGS="$xorg_testset_save_CFLAGS" 13056fi 13057 13058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13061 fi 13062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13066 $as_echo_n "(cached) " >&6 13067else 13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13069/* end confdefs.h. */ 13070int i; 13071_ACEOF 13072if ac_fn_c_try_compile "$LINENO"; then : 13073 xorg_cv_cc_flag_unused_command_line_argument=yes 13074else 13075 xorg_cv_cc_flag_unused_command_line_argument=no 13076fi 13077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13078fi 13079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13082 CFLAGS="$xorg_testset_save_CFLAGS" 13083fi 13084 13085found="no" 13086 13087 if test $found = "no" ; then 13088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13090 fi 13091 13092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13094 fi 13095 13096 CFLAGS="$CFLAGS -Wold-style-definition" 13097 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13099$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13100 cacheid=xorg_cv_cc_flag__Wold_style_definition 13101 if eval \${$cacheid+:} false; then : 13102 $as_echo_n "(cached) " >&6 13103else 13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13105/* end confdefs.h. */ 13106int i; 13107int 13108main () 13109{ 13110 13111 ; 13112 return 0; 13113} 13114_ACEOF 13115if ac_fn_c_try_link "$LINENO"; then : 13116 eval $cacheid=yes 13117else 13118 eval $cacheid=no 13119fi 13120rm -f core conftest.err conftest.$ac_objext \ 13121 conftest$ac_exeext conftest.$ac_ext 13122fi 13123 13124 13125 CFLAGS="$xorg_testset_save_CFLAGS" 13126 13127 eval supported=\$$cacheid 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13129$as_echo "$supported" >&6; } 13130 if test "$supported" = "yes" ; then 13131 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13132 found="yes" 13133 fi 13134 fi 13135 13136 if test $found = "no" ; then 13137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13139 fi 13140 13141 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13143 fi 13144 13145 CFLAGS="$CFLAGS -fd" 13146 13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13148$as_echo_n "checking if $CC supports -fd... " >&6; } 13149 cacheid=xorg_cv_cc_flag__fd 13150 if eval \${$cacheid+:} false; then : 13151 $as_echo_n "(cached) " >&6 13152else 13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13154/* end confdefs.h. */ 13155int i; 13156int 13157main () 13158{ 13159 13160 ; 13161 return 0; 13162} 13163_ACEOF 13164if ac_fn_c_try_link "$LINENO"; then : 13165 eval $cacheid=yes 13166else 13167 eval $cacheid=no 13168fi 13169rm -f core conftest.err conftest.$ac_objext \ 13170 conftest$ac_exeext conftest.$ac_ext 13171fi 13172 13173 13174 CFLAGS="$xorg_testset_save_CFLAGS" 13175 13176 eval supported=\$$cacheid 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13178$as_echo "$supported" >&6; } 13179 if test "$supported" = "yes" ; then 13180 BASE_CFLAGS="$BASE_CFLAGS -fd" 13181 found="yes" 13182 fi 13183 fi 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199xorg_testset_save_CFLAGS="$CFLAGS" 13200 13201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13206 $as_echo_n "(cached) " >&6 13207else 13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13209/* end confdefs.h. */ 13210int i; 13211_ACEOF 13212if ac_fn_c_try_compile "$LINENO"; then : 13213 xorg_cv_cc_flag_unknown_warning_option=yes 13214else 13215 xorg_cv_cc_flag_unknown_warning_option=no 13216fi 13217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13218fi 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13222 CFLAGS="$xorg_testset_save_CFLAGS" 13223fi 13224 13225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13228 fi 13229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13233 $as_echo_n "(cached) " >&6 13234else 13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13236/* end confdefs.h. */ 13237int i; 13238_ACEOF 13239if ac_fn_c_try_compile "$LINENO"; then : 13240 xorg_cv_cc_flag_unused_command_line_argument=yes 13241else 13242 xorg_cv_cc_flag_unused_command_line_argument=no 13243fi 13244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13245fi 13246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13249 CFLAGS="$xorg_testset_save_CFLAGS" 13250fi 13251 13252found="no" 13253 13254 if test $found = "no" ; then 13255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13257 fi 13258 13259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13261 fi 13262 13263 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13264 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13266$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13267 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13268 if eval \${$cacheid+:} false; then : 13269 $as_echo_n "(cached) " >&6 13270else 13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13272/* end confdefs.h. */ 13273int i; 13274int 13275main () 13276{ 13277 13278 ; 13279 return 0; 13280} 13281_ACEOF 13282if ac_fn_c_try_link "$LINENO"; then : 13283 eval $cacheid=yes 13284else 13285 eval $cacheid=no 13286fi 13287rm -f core conftest.err conftest.$ac_objext \ 13288 conftest$ac_exeext conftest.$ac_ext 13289fi 13290 13291 13292 CFLAGS="$xorg_testset_save_CFLAGS" 13293 13294 eval supported=\$$cacheid 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13296$as_echo "$supported" >&6; } 13297 if test "$supported" = "yes" ; then 13298 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13299 found="yes" 13300 fi 13301 fi 13302 13303 13304 13305 13306 13307# This chunk adds additional warnings that could catch undesired effects. 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321xorg_testset_save_CFLAGS="$CFLAGS" 13322 13323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13328 $as_echo_n "(cached) " >&6 13329else 13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13331/* end confdefs.h. */ 13332int i; 13333_ACEOF 13334if ac_fn_c_try_compile "$LINENO"; then : 13335 xorg_cv_cc_flag_unknown_warning_option=yes 13336else 13337 xorg_cv_cc_flag_unknown_warning_option=no 13338fi 13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13340fi 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13344 CFLAGS="$xorg_testset_save_CFLAGS" 13345fi 13346 13347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13350 fi 13351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13355 $as_echo_n "(cached) " >&6 13356else 13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13358/* end confdefs.h. */ 13359int i; 13360_ACEOF 13361if ac_fn_c_try_compile "$LINENO"; then : 13362 xorg_cv_cc_flag_unused_command_line_argument=yes 13363else 13364 xorg_cv_cc_flag_unused_command_line_argument=no 13365fi 13366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13367fi 13368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13371 CFLAGS="$xorg_testset_save_CFLAGS" 13372fi 13373 13374found="no" 13375 13376 if test $found = "no" ; then 13377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13379 fi 13380 13381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13383 fi 13384 13385 CFLAGS="$CFLAGS -Wunused" 13386 13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13388$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13389 cacheid=xorg_cv_cc_flag__Wunused 13390 if eval \${$cacheid+:} false; then : 13391 $as_echo_n "(cached) " >&6 13392else 13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13394/* end confdefs.h. */ 13395int i; 13396int 13397main () 13398{ 13399 13400 ; 13401 return 0; 13402} 13403_ACEOF 13404if ac_fn_c_try_link "$LINENO"; then : 13405 eval $cacheid=yes 13406else 13407 eval $cacheid=no 13408fi 13409rm -f core conftest.err conftest.$ac_objext \ 13410 conftest$ac_exeext conftest.$ac_ext 13411fi 13412 13413 13414 CFLAGS="$xorg_testset_save_CFLAGS" 13415 13416 eval supported=\$$cacheid 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13418$as_echo "$supported" >&6; } 13419 if test "$supported" = "yes" ; then 13420 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13421 found="yes" 13422 fi 13423 fi 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439xorg_testset_save_CFLAGS="$CFLAGS" 13440 13441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13446 $as_echo_n "(cached) " >&6 13447else 13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450int i; 13451_ACEOF 13452if ac_fn_c_try_compile "$LINENO"; then : 13453 xorg_cv_cc_flag_unknown_warning_option=yes 13454else 13455 xorg_cv_cc_flag_unknown_warning_option=no 13456fi 13457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13458fi 13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13462 CFLAGS="$xorg_testset_save_CFLAGS" 13463fi 13464 13465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13468 fi 13469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13473 $as_echo_n "(cached) " >&6 13474else 13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13476/* end confdefs.h. */ 13477int i; 13478_ACEOF 13479if ac_fn_c_try_compile "$LINENO"; then : 13480 xorg_cv_cc_flag_unused_command_line_argument=yes 13481else 13482 xorg_cv_cc_flag_unused_command_line_argument=no 13483fi 13484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13485fi 13486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13489 CFLAGS="$xorg_testset_save_CFLAGS" 13490fi 13491 13492found="no" 13493 13494 if test $found = "no" ; then 13495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13497 fi 13498 13499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13501 fi 13502 13503 CFLAGS="$CFLAGS -Wuninitialized" 13504 13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13506$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13507 cacheid=xorg_cv_cc_flag__Wuninitialized 13508 if eval \${$cacheid+:} false; then : 13509 $as_echo_n "(cached) " >&6 13510else 13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13512/* end confdefs.h. */ 13513int i; 13514int 13515main () 13516{ 13517 13518 ; 13519 return 0; 13520} 13521_ACEOF 13522if ac_fn_c_try_link "$LINENO"; then : 13523 eval $cacheid=yes 13524else 13525 eval $cacheid=no 13526fi 13527rm -f core conftest.err conftest.$ac_objext \ 13528 conftest$ac_exeext conftest.$ac_ext 13529fi 13530 13531 13532 CFLAGS="$xorg_testset_save_CFLAGS" 13533 13534 eval supported=\$$cacheid 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13536$as_echo "$supported" >&6; } 13537 if test "$supported" = "yes" ; then 13538 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13539 found="yes" 13540 fi 13541 fi 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557xorg_testset_save_CFLAGS="$CFLAGS" 13558 13559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13564 $as_echo_n "(cached) " >&6 13565else 13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13567/* end confdefs.h. */ 13568int i; 13569_ACEOF 13570if ac_fn_c_try_compile "$LINENO"; then : 13571 xorg_cv_cc_flag_unknown_warning_option=yes 13572else 13573 xorg_cv_cc_flag_unknown_warning_option=no 13574fi 13575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13576fi 13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13580 CFLAGS="$xorg_testset_save_CFLAGS" 13581fi 13582 13583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13586 fi 13587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13591 $as_echo_n "(cached) " >&6 13592else 13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13594/* end confdefs.h. */ 13595int i; 13596_ACEOF 13597if ac_fn_c_try_compile "$LINENO"; then : 13598 xorg_cv_cc_flag_unused_command_line_argument=yes 13599else 13600 xorg_cv_cc_flag_unused_command_line_argument=no 13601fi 13602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13603fi 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13607 CFLAGS="$xorg_testset_save_CFLAGS" 13608fi 13609 13610found="no" 13611 13612 if test $found = "no" ; then 13613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13615 fi 13616 13617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13619 fi 13620 13621 CFLAGS="$CFLAGS -Wshadow" 13622 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13624$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13625 cacheid=xorg_cv_cc_flag__Wshadow 13626 if eval \${$cacheid+:} false; then : 13627 $as_echo_n "(cached) " >&6 13628else 13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13630/* end confdefs.h. */ 13631int i; 13632int 13633main () 13634{ 13635 13636 ; 13637 return 0; 13638} 13639_ACEOF 13640if ac_fn_c_try_link "$LINENO"; then : 13641 eval $cacheid=yes 13642else 13643 eval $cacheid=no 13644fi 13645rm -f core conftest.err conftest.$ac_objext \ 13646 conftest$ac_exeext conftest.$ac_ext 13647fi 13648 13649 13650 CFLAGS="$xorg_testset_save_CFLAGS" 13651 13652 eval supported=\$$cacheid 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13654$as_echo "$supported" >&6; } 13655 if test "$supported" = "yes" ; then 13656 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13657 found="yes" 13658 fi 13659 fi 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675xorg_testset_save_CFLAGS="$CFLAGS" 13676 13677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13682 $as_echo_n "(cached) " >&6 13683else 13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13685/* end confdefs.h. */ 13686int i; 13687_ACEOF 13688if ac_fn_c_try_compile "$LINENO"; then : 13689 xorg_cv_cc_flag_unknown_warning_option=yes 13690else 13691 xorg_cv_cc_flag_unknown_warning_option=no 13692fi 13693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13694fi 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13698 CFLAGS="$xorg_testset_save_CFLAGS" 13699fi 13700 13701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13704 fi 13705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13709 $as_echo_n "(cached) " >&6 13710else 13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13712/* end confdefs.h. */ 13713int i; 13714_ACEOF 13715if ac_fn_c_try_compile "$LINENO"; then : 13716 xorg_cv_cc_flag_unused_command_line_argument=yes 13717else 13718 xorg_cv_cc_flag_unused_command_line_argument=no 13719fi 13720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13721fi 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13725 CFLAGS="$xorg_testset_save_CFLAGS" 13726fi 13727 13728found="no" 13729 13730 if test $found = "no" ; then 13731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13733 fi 13734 13735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13737 fi 13738 13739 CFLAGS="$CFLAGS -Wmissing-noreturn" 13740 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 13742$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 13743 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 13744 if eval \${$cacheid+:} false; then : 13745 $as_echo_n "(cached) " >&6 13746else 13747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13748/* end confdefs.h. */ 13749int i; 13750int 13751main () 13752{ 13753 13754 ; 13755 return 0; 13756} 13757_ACEOF 13758if ac_fn_c_try_link "$LINENO"; then : 13759 eval $cacheid=yes 13760else 13761 eval $cacheid=no 13762fi 13763rm -f core conftest.err conftest.$ac_objext \ 13764 conftest$ac_exeext conftest.$ac_ext 13765fi 13766 13767 13768 CFLAGS="$xorg_testset_save_CFLAGS" 13769 13770 eval supported=\$$cacheid 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13772$as_echo "$supported" >&6; } 13773 if test "$supported" = "yes" ; then 13774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 13775 found="yes" 13776 fi 13777 fi 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793xorg_testset_save_CFLAGS="$CFLAGS" 13794 13795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13803/* end confdefs.h. */ 13804int i; 13805_ACEOF 13806if ac_fn_c_try_compile "$LINENO"; then : 13807 xorg_cv_cc_flag_unknown_warning_option=yes 13808else 13809 xorg_cv_cc_flag_unknown_warning_option=no 13810fi 13811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13812fi 13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13816 CFLAGS="$xorg_testset_save_CFLAGS" 13817fi 13818 13819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13822 fi 13823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13827 $as_echo_n "(cached) " >&6 13828else 13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13830/* end confdefs.h. */ 13831int i; 13832_ACEOF 13833if ac_fn_c_try_compile "$LINENO"; then : 13834 xorg_cv_cc_flag_unused_command_line_argument=yes 13835else 13836 xorg_cv_cc_flag_unused_command_line_argument=no 13837fi 13838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13839fi 13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13843 CFLAGS="$xorg_testset_save_CFLAGS" 13844fi 13845 13846found="no" 13847 13848 if test $found = "no" ; then 13849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13851 fi 13852 13853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13855 fi 13856 13857 CFLAGS="$CFLAGS -Wmissing-format-attribute" 13858 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 13860$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 13861 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 13862 if eval \${$cacheid+:} false; then : 13863 $as_echo_n "(cached) " >&6 13864else 13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13866/* end confdefs.h. */ 13867int i; 13868int 13869main () 13870{ 13871 13872 ; 13873 return 0; 13874} 13875_ACEOF 13876if ac_fn_c_try_link "$LINENO"; then : 13877 eval $cacheid=yes 13878else 13879 eval $cacheid=no 13880fi 13881rm -f core conftest.err conftest.$ac_objext \ 13882 conftest$ac_exeext conftest.$ac_ext 13883fi 13884 13885 13886 CFLAGS="$xorg_testset_save_CFLAGS" 13887 13888 eval supported=\$$cacheid 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13890$as_echo "$supported" >&6; } 13891 if test "$supported" = "yes" ; then 13892 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 13893 found="yes" 13894 fi 13895 fi 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911xorg_testset_save_CFLAGS="$CFLAGS" 13912 13913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13918 $as_echo_n "(cached) " >&6 13919else 13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13921/* end confdefs.h. */ 13922int i; 13923_ACEOF 13924if ac_fn_c_try_compile "$LINENO"; then : 13925 xorg_cv_cc_flag_unknown_warning_option=yes 13926else 13927 xorg_cv_cc_flag_unknown_warning_option=no 13928fi 13929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13930fi 13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13934 CFLAGS="$xorg_testset_save_CFLAGS" 13935fi 13936 13937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13940 fi 13941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13945 $as_echo_n "(cached) " >&6 13946else 13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13948/* end confdefs.h. */ 13949int i; 13950_ACEOF 13951if ac_fn_c_try_compile "$LINENO"; then : 13952 xorg_cv_cc_flag_unused_command_line_argument=yes 13953else 13954 xorg_cv_cc_flag_unused_command_line_argument=no 13955fi 13956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13957fi 13958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13961 CFLAGS="$xorg_testset_save_CFLAGS" 13962fi 13963 13964found="no" 13965 13966 if test $found = "no" ; then 13967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13969 fi 13970 13971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13973 fi 13974 13975 CFLAGS="$CFLAGS -Wredundant-decls" 13976 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 13978$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 13979 cacheid=xorg_cv_cc_flag__Wredundant_decls 13980 if eval \${$cacheid+:} false; then : 13981 $as_echo_n "(cached) " >&6 13982else 13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13984/* end confdefs.h. */ 13985int i; 13986int 13987main () 13988{ 13989 13990 ; 13991 return 0; 13992} 13993_ACEOF 13994if ac_fn_c_try_link "$LINENO"; then : 13995 eval $cacheid=yes 13996else 13997 eval $cacheid=no 13998fi 13999rm -f core conftest.err conftest.$ac_objext \ 14000 conftest$ac_exeext conftest.$ac_ext 14001fi 14002 14003 14004 CFLAGS="$xorg_testset_save_CFLAGS" 14005 14006 eval supported=\$$cacheid 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14008$as_echo "$supported" >&6; } 14009 if test "$supported" = "yes" ; then 14010 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14011 found="yes" 14012 fi 14013 fi 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029xorg_testset_save_CFLAGS="$CFLAGS" 14030 14031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14036 $as_echo_n "(cached) " >&6 14037else 14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14039/* end confdefs.h. */ 14040int i; 14041_ACEOF 14042if ac_fn_c_try_compile "$LINENO"; then : 14043 xorg_cv_cc_flag_unknown_warning_option=yes 14044else 14045 xorg_cv_cc_flag_unknown_warning_option=no 14046fi 14047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14048fi 14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14052 CFLAGS="$xorg_testset_save_CFLAGS" 14053fi 14054 14055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14058 fi 14059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14063 $as_echo_n "(cached) " >&6 14064else 14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14066/* end confdefs.h. */ 14067int i; 14068_ACEOF 14069if ac_fn_c_try_compile "$LINENO"; then : 14070 xorg_cv_cc_flag_unused_command_line_argument=yes 14071else 14072 xorg_cv_cc_flag_unused_command_line_argument=no 14073fi 14074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14075fi 14076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14079 CFLAGS="$xorg_testset_save_CFLAGS" 14080fi 14081 14082found="no" 14083 14084 if test $found = "no" ; then 14085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14087 fi 14088 14089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14091 fi 14092 14093 CFLAGS="$CFLAGS -Wlogical-op" 14094 14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14096$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14097 cacheid=xorg_cv_cc_flag__Wlogical_op 14098 if eval \${$cacheid+:} false; then : 14099 $as_echo_n "(cached) " >&6 14100else 14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14102/* end confdefs.h. */ 14103int i; 14104int 14105main () 14106{ 14107 14108 ; 14109 return 0; 14110} 14111_ACEOF 14112if ac_fn_c_try_link "$LINENO"; then : 14113 eval $cacheid=yes 14114else 14115 eval $cacheid=no 14116fi 14117rm -f core conftest.err conftest.$ac_objext \ 14118 conftest$ac_exeext conftest.$ac_ext 14119fi 14120 14121 14122 CFLAGS="$xorg_testset_save_CFLAGS" 14123 14124 eval supported=\$$cacheid 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14126$as_echo "$supported" >&6; } 14127 if test "$supported" = "yes" ; then 14128 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14129 found="yes" 14130 fi 14131 fi 14132 14133 14134 14135# These are currently disabled because they are noisy. They will be enabled 14136# in the future once the codebase is sufficiently modernized to silence 14137# them. For now, I don't want them to drown out the other warnings. 14138# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14139# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14140# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14141 14142# Turn some warnings into errors, so we don't accidently get successful builds 14143# when there are problems that should be fixed. 14144 14145if test "x$SELECTIVE_WERROR" = "xyes" ; then 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159xorg_testset_save_CFLAGS="$CFLAGS" 14160 14161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14166 $as_echo_n "(cached) " >&6 14167else 14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14169/* end confdefs.h. */ 14170int i; 14171_ACEOF 14172if ac_fn_c_try_compile "$LINENO"; then : 14173 xorg_cv_cc_flag_unknown_warning_option=yes 14174else 14175 xorg_cv_cc_flag_unknown_warning_option=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14178fi 14179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14182 CFLAGS="$xorg_testset_save_CFLAGS" 14183fi 14184 14185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14188 fi 14189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14193 $as_echo_n "(cached) " >&6 14194else 14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196/* end confdefs.h. */ 14197int i; 14198_ACEOF 14199if ac_fn_c_try_compile "$LINENO"; then : 14200 xorg_cv_cc_flag_unused_command_line_argument=yes 14201else 14202 xorg_cv_cc_flag_unused_command_line_argument=no 14203fi 14204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14205fi 14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14209 CFLAGS="$xorg_testset_save_CFLAGS" 14210fi 14211 14212found="no" 14213 14214 if test $found = "no" ; then 14215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14217 fi 14218 14219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14221 fi 14222 14223 CFLAGS="$CFLAGS -Werror=implicit" 14224 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14226$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14227 cacheid=xorg_cv_cc_flag__Werror_implicit 14228 if eval \${$cacheid+:} false; then : 14229 $as_echo_n "(cached) " >&6 14230else 14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232/* end confdefs.h. */ 14233int i; 14234int 14235main () 14236{ 14237 14238 ; 14239 return 0; 14240} 14241_ACEOF 14242if ac_fn_c_try_link "$LINENO"; then : 14243 eval $cacheid=yes 14244else 14245 eval $cacheid=no 14246fi 14247rm -f core conftest.err conftest.$ac_objext \ 14248 conftest$ac_exeext conftest.$ac_ext 14249fi 14250 14251 14252 CFLAGS="$xorg_testset_save_CFLAGS" 14253 14254 eval supported=\$$cacheid 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14256$as_echo "$supported" >&6; } 14257 if test "$supported" = "yes" ; then 14258 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14259 found="yes" 14260 fi 14261 fi 14262 14263 if test $found = "no" ; then 14264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14266 fi 14267 14268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14270 fi 14271 14272 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14273 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14275$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14276 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14277 if eval \${$cacheid+:} false; then : 14278 $as_echo_n "(cached) " >&6 14279else 14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14281/* end confdefs.h. */ 14282int i; 14283int 14284main () 14285{ 14286 14287 ; 14288 return 0; 14289} 14290_ACEOF 14291if ac_fn_c_try_link "$LINENO"; then : 14292 eval $cacheid=yes 14293else 14294 eval $cacheid=no 14295fi 14296rm -f core conftest.err conftest.$ac_objext \ 14297 conftest$ac_exeext conftest.$ac_ext 14298fi 14299 14300 14301 CFLAGS="$xorg_testset_save_CFLAGS" 14302 14303 eval supported=\$$cacheid 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14305$as_echo "$supported" >&6; } 14306 if test "$supported" = "yes" ; then 14307 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14308 found="yes" 14309 fi 14310 fi 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326xorg_testset_save_CFLAGS="$CFLAGS" 14327 14328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14333 $as_echo_n "(cached) " >&6 14334else 14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14336/* end confdefs.h. */ 14337int i; 14338_ACEOF 14339if ac_fn_c_try_compile "$LINENO"; then : 14340 xorg_cv_cc_flag_unknown_warning_option=yes 14341else 14342 xorg_cv_cc_flag_unknown_warning_option=no 14343fi 14344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14345fi 14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14349 CFLAGS="$xorg_testset_save_CFLAGS" 14350fi 14351 14352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14355 fi 14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14360 $as_echo_n "(cached) " >&6 14361else 14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14363/* end confdefs.h. */ 14364int i; 14365_ACEOF 14366if ac_fn_c_try_compile "$LINENO"; then : 14367 xorg_cv_cc_flag_unused_command_line_argument=yes 14368else 14369 xorg_cv_cc_flag_unused_command_line_argument=no 14370fi 14371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14372fi 14373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14376 CFLAGS="$xorg_testset_save_CFLAGS" 14377fi 14378 14379found="no" 14380 14381 if test $found = "no" ; then 14382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14384 fi 14385 14386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14388 fi 14389 14390 CFLAGS="$CFLAGS -Werror=nonnull" 14391 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14393$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14394 cacheid=xorg_cv_cc_flag__Werror_nonnull 14395 if eval \${$cacheid+:} false; then : 14396 $as_echo_n "(cached) " >&6 14397else 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400int i; 14401int 14402main () 14403{ 14404 14405 ; 14406 return 0; 14407} 14408_ACEOF 14409if ac_fn_c_try_link "$LINENO"; then : 14410 eval $cacheid=yes 14411else 14412 eval $cacheid=no 14413fi 14414rm -f core conftest.err conftest.$ac_objext \ 14415 conftest$ac_exeext conftest.$ac_ext 14416fi 14417 14418 14419 CFLAGS="$xorg_testset_save_CFLAGS" 14420 14421 eval supported=\$$cacheid 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14423$as_echo "$supported" >&6; } 14424 if test "$supported" = "yes" ; then 14425 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14426 found="yes" 14427 fi 14428 fi 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444xorg_testset_save_CFLAGS="$CFLAGS" 14445 14446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14451 $as_echo_n "(cached) " >&6 14452else 14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14454/* end confdefs.h. */ 14455int i; 14456_ACEOF 14457if ac_fn_c_try_compile "$LINENO"; then : 14458 xorg_cv_cc_flag_unknown_warning_option=yes 14459else 14460 xorg_cv_cc_flag_unknown_warning_option=no 14461fi 14462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14463fi 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14467 CFLAGS="$xorg_testset_save_CFLAGS" 14468fi 14469 14470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 fi 14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14478 $as_echo_n "(cached) " >&6 14479else 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482int i; 14483_ACEOF 14484if ac_fn_c_try_compile "$LINENO"; then : 14485 xorg_cv_cc_flag_unused_command_line_argument=yes 14486else 14487 xorg_cv_cc_flag_unused_command_line_argument=no 14488fi 14489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14490fi 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14494 CFLAGS="$xorg_testset_save_CFLAGS" 14495fi 14496 14497found="no" 14498 14499 if test $found = "no" ; then 14500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14502 fi 14503 14504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14506 fi 14507 14508 CFLAGS="$CFLAGS -Werror=init-self" 14509 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14511$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14512 cacheid=xorg_cv_cc_flag__Werror_init_self 14513 if eval \${$cacheid+:} false; then : 14514 $as_echo_n "(cached) " >&6 14515else 14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14517/* end confdefs.h. */ 14518int i; 14519int 14520main () 14521{ 14522 14523 ; 14524 return 0; 14525} 14526_ACEOF 14527if ac_fn_c_try_link "$LINENO"; then : 14528 eval $cacheid=yes 14529else 14530 eval $cacheid=no 14531fi 14532rm -f core conftest.err conftest.$ac_objext \ 14533 conftest$ac_exeext conftest.$ac_ext 14534fi 14535 14536 14537 CFLAGS="$xorg_testset_save_CFLAGS" 14538 14539 eval supported=\$$cacheid 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14541$as_echo "$supported" >&6; } 14542 if test "$supported" = "yes" ; then 14543 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14544 found="yes" 14545 fi 14546 fi 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562xorg_testset_save_CFLAGS="$CFLAGS" 14563 14564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14569 $as_echo_n "(cached) " >&6 14570else 14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14572/* end confdefs.h. */ 14573int i; 14574_ACEOF 14575if ac_fn_c_try_compile "$LINENO"; then : 14576 xorg_cv_cc_flag_unknown_warning_option=yes 14577else 14578 xorg_cv_cc_flag_unknown_warning_option=no 14579fi 14580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14581fi 14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14585 CFLAGS="$xorg_testset_save_CFLAGS" 14586fi 14587 14588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14591 fi 14592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14596 $as_echo_n "(cached) " >&6 14597else 14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599/* end confdefs.h. */ 14600int i; 14601_ACEOF 14602if ac_fn_c_try_compile "$LINENO"; then : 14603 xorg_cv_cc_flag_unused_command_line_argument=yes 14604else 14605 xorg_cv_cc_flag_unused_command_line_argument=no 14606fi 14607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14608fi 14609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14612 CFLAGS="$xorg_testset_save_CFLAGS" 14613fi 14614 14615found="no" 14616 14617 if test $found = "no" ; then 14618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14620 fi 14621 14622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14624 fi 14625 14626 CFLAGS="$CFLAGS -Werror=main" 14627 14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14629$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14630 cacheid=xorg_cv_cc_flag__Werror_main 14631 if eval \${$cacheid+:} false; then : 14632 $as_echo_n "(cached) " >&6 14633else 14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636int i; 14637int 14638main () 14639{ 14640 14641 ; 14642 return 0; 14643} 14644_ACEOF 14645if ac_fn_c_try_link "$LINENO"; then : 14646 eval $cacheid=yes 14647else 14648 eval $cacheid=no 14649fi 14650rm -f core conftest.err conftest.$ac_objext \ 14651 conftest$ac_exeext conftest.$ac_ext 14652fi 14653 14654 14655 CFLAGS="$xorg_testset_save_CFLAGS" 14656 14657 eval supported=\$$cacheid 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14659$as_echo "$supported" >&6; } 14660 if test "$supported" = "yes" ; then 14661 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14662 found="yes" 14663 fi 14664 fi 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680xorg_testset_save_CFLAGS="$CFLAGS" 14681 14682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14687 $as_echo_n "(cached) " >&6 14688else 14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14690/* end confdefs.h. */ 14691int i; 14692_ACEOF 14693if ac_fn_c_try_compile "$LINENO"; then : 14694 xorg_cv_cc_flag_unknown_warning_option=yes 14695else 14696 xorg_cv_cc_flag_unknown_warning_option=no 14697fi 14698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14699fi 14700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14703 CFLAGS="$xorg_testset_save_CFLAGS" 14704fi 14705 14706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14709 fi 14710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14714 $as_echo_n "(cached) " >&6 14715else 14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14717/* end confdefs.h. */ 14718int i; 14719_ACEOF 14720if ac_fn_c_try_compile "$LINENO"; then : 14721 xorg_cv_cc_flag_unused_command_line_argument=yes 14722else 14723 xorg_cv_cc_flag_unused_command_line_argument=no 14724fi 14725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14726fi 14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14730 CFLAGS="$xorg_testset_save_CFLAGS" 14731fi 14732 14733found="no" 14734 14735 if test $found = "no" ; then 14736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14738 fi 14739 14740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14742 fi 14743 14744 CFLAGS="$CFLAGS -Werror=missing-braces" 14745 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 14747$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 14748 cacheid=xorg_cv_cc_flag__Werror_missing_braces 14749 if eval \${$cacheid+:} false; then : 14750 $as_echo_n "(cached) " >&6 14751else 14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754int i; 14755int 14756main () 14757{ 14758 14759 ; 14760 return 0; 14761} 14762_ACEOF 14763if ac_fn_c_try_link "$LINENO"; then : 14764 eval $cacheid=yes 14765else 14766 eval $cacheid=no 14767fi 14768rm -f core conftest.err conftest.$ac_objext \ 14769 conftest$ac_exeext conftest.$ac_ext 14770fi 14771 14772 14773 CFLAGS="$xorg_testset_save_CFLAGS" 14774 14775 eval supported=\$$cacheid 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14777$as_echo "$supported" >&6; } 14778 if test "$supported" = "yes" ; then 14779 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 14780 found="yes" 14781 fi 14782 fi 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798xorg_testset_save_CFLAGS="$CFLAGS" 14799 14800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14805 $as_echo_n "(cached) " >&6 14806else 14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14808/* end confdefs.h. */ 14809int i; 14810_ACEOF 14811if ac_fn_c_try_compile "$LINENO"; then : 14812 xorg_cv_cc_flag_unknown_warning_option=yes 14813else 14814 xorg_cv_cc_flag_unknown_warning_option=no 14815fi 14816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14817fi 14818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14821 CFLAGS="$xorg_testset_save_CFLAGS" 14822fi 14823 14824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14827 fi 14828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14835/* end confdefs.h. */ 14836int i; 14837_ACEOF 14838if ac_fn_c_try_compile "$LINENO"; then : 14839 xorg_cv_cc_flag_unused_command_line_argument=yes 14840else 14841 xorg_cv_cc_flag_unused_command_line_argument=no 14842fi 14843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14844fi 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14848 CFLAGS="$xorg_testset_save_CFLAGS" 14849fi 14850 14851found="no" 14852 14853 if test $found = "no" ; then 14854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14856 fi 14857 14858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14860 fi 14861 14862 CFLAGS="$CFLAGS -Werror=sequence-point" 14863 14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 14865$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 14866 cacheid=xorg_cv_cc_flag__Werror_sequence_point 14867 if eval \${$cacheid+:} false; then : 14868 $as_echo_n "(cached) " >&6 14869else 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871/* end confdefs.h. */ 14872int i; 14873int 14874main () 14875{ 14876 14877 ; 14878 return 0; 14879} 14880_ACEOF 14881if ac_fn_c_try_link "$LINENO"; then : 14882 eval $cacheid=yes 14883else 14884 eval $cacheid=no 14885fi 14886rm -f core conftest.err conftest.$ac_objext \ 14887 conftest$ac_exeext conftest.$ac_ext 14888fi 14889 14890 14891 CFLAGS="$xorg_testset_save_CFLAGS" 14892 14893 eval supported=\$$cacheid 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14895$as_echo "$supported" >&6; } 14896 if test "$supported" = "yes" ; then 14897 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 14898 found="yes" 14899 fi 14900 fi 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916xorg_testset_save_CFLAGS="$CFLAGS" 14917 14918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14923 $as_echo_n "(cached) " >&6 14924else 14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14926/* end confdefs.h. */ 14927int i; 14928_ACEOF 14929if ac_fn_c_try_compile "$LINENO"; then : 14930 xorg_cv_cc_flag_unknown_warning_option=yes 14931else 14932 xorg_cv_cc_flag_unknown_warning_option=no 14933fi 14934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14935fi 14936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14938 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14939 CFLAGS="$xorg_testset_save_CFLAGS" 14940fi 14941 14942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14945 fi 14946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14950 $as_echo_n "(cached) " >&6 14951else 14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14953/* end confdefs.h. */ 14954int i; 14955_ACEOF 14956if ac_fn_c_try_compile "$LINENO"; then : 14957 xorg_cv_cc_flag_unused_command_line_argument=yes 14958else 14959 xorg_cv_cc_flag_unused_command_line_argument=no 14960fi 14961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14962fi 14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14966 CFLAGS="$xorg_testset_save_CFLAGS" 14967fi 14968 14969found="no" 14970 14971 if test $found = "no" ; then 14972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14974 fi 14975 14976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14978 fi 14979 14980 CFLAGS="$CFLAGS -Werror=return-type" 14981 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 14983$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 14984 cacheid=xorg_cv_cc_flag__Werror_return_type 14985 if eval \${$cacheid+:} false; then : 14986 $as_echo_n "(cached) " >&6 14987else 14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14989/* end confdefs.h. */ 14990int i; 14991int 14992main () 14993{ 14994 14995 ; 14996 return 0; 14997} 14998_ACEOF 14999if ac_fn_c_try_link "$LINENO"; then : 15000 eval $cacheid=yes 15001else 15002 eval $cacheid=no 15003fi 15004rm -f core conftest.err conftest.$ac_objext \ 15005 conftest$ac_exeext conftest.$ac_ext 15006fi 15007 15008 15009 CFLAGS="$xorg_testset_save_CFLAGS" 15010 15011 eval supported=\$$cacheid 15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15013$as_echo "$supported" >&6; } 15014 if test "$supported" = "yes" ; then 15015 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15016 found="yes" 15017 fi 15018 fi 15019 15020 if test $found = "no" ; then 15021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15023 fi 15024 15025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15027 fi 15028 15029 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15030 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15032$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15033 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15034 if eval \${$cacheid+:} false; then : 15035 $as_echo_n "(cached) " >&6 15036else 15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15038/* end confdefs.h. */ 15039int i; 15040int 15041main () 15042{ 15043 15044 ; 15045 return 0; 15046} 15047_ACEOF 15048if ac_fn_c_try_link "$LINENO"; then : 15049 eval $cacheid=yes 15050else 15051 eval $cacheid=no 15052fi 15053rm -f core conftest.err conftest.$ac_objext \ 15054 conftest$ac_exeext conftest.$ac_ext 15055fi 15056 15057 15058 CFLAGS="$xorg_testset_save_CFLAGS" 15059 15060 eval supported=\$$cacheid 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15062$as_echo "$supported" >&6; } 15063 if test "$supported" = "yes" ; then 15064 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15065 found="yes" 15066 fi 15067 fi 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083xorg_testset_save_CFLAGS="$CFLAGS" 15084 15085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15088$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15089if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15090 $as_echo_n "(cached) " >&6 15091else 15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094int i; 15095_ACEOF 15096if ac_fn_c_try_compile "$LINENO"; then : 15097 xorg_cv_cc_flag_unknown_warning_option=yes 15098else 15099 xorg_cv_cc_flag_unknown_warning_option=no 15100fi 15101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15102fi 15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15104$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15106 CFLAGS="$xorg_testset_save_CFLAGS" 15107fi 15108 15109if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15112 fi 15113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15115$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15116if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15117 $as_echo_n "(cached) " >&6 15118else 15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15120/* end confdefs.h. */ 15121int i; 15122_ACEOF 15123if ac_fn_c_try_compile "$LINENO"; then : 15124 xorg_cv_cc_flag_unused_command_line_argument=yes 15125else 15126 xorg_cv_cc_flag_unused_command_line_argument=no 15127fi 15128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15129fi 15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15131$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15133 CFLAGS="$xorg_testset_save_CFLAGS" 15134fi 15135 15136found="no" 15137 15138 if test $found = "no" ; then 15139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15141 fi 15142 15143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15145 fi 15146 15147 CFLAGS="$CFLAGS -Werror=trigraphs" 15148 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15150$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15151 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15152 if eval \${$cacheid+:} false; then : 15153 $as_echo_n "(cached) " >&6 15154else 15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156/* end confdefs.h. */ 15157int i; 15158int 15159main () 15160{ 15161 15162 ; 15163 return 0; 15164} 15165_ACEOF 15166if ac_fn_c_try_link "$LINENO"; then : 15167 eval $cacheid=yes 15168else 15169 eval $cacheid=no 15170fi 15171rm -f core conftest.err conftest.$ac_objext \ 15172 conftest$ac_exeext conftest.$ac_ext 15173fi 15174 15175 15176 CFLAGS="$xorg_testset_save_CFLAGS" 15177 15178 eval supported=\$$cacheid 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15180$as_echo "$supported" >&6; } 15181 if test "$supported" = "yes" ; then 15182 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15183 found="yes" 15184 fi 15185 fi 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201xorg_testset_save_CFLAGS="$CFLAGS" 15202 15203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15208 $as_echo_n "(cached) " >&6 15209else 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211/* end confdefs.h. */ 15212int i; 15213_ACEOF 15214if ac_fn_c_try_compile "$LINENO"; then : 15215 xorg_cv_cc_flag_unknown_warning_option=yes 15216else 15217 xorg_cv_cc_flag_unknown_warning_option=no 15218fi 15219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15220fi 15221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15224 CFLAGS="$xorg_testset_save_CFLAGS" 15225fi 15226 15227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15230 fi 15231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15235 $as_echo_n "(cached) " >&6 15236else 15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15238/* end confdefs.h. */ 15239int i; 15240_ACEOF 15241if ac_fn_c_try_compile "$LINENO"; then : 15242 xorg_cv_cc_flag_unused_command_line_argument=yes 15243else 15244 xorg_cv_cc_flag_unused_command_line_argument=no 15245fi 15246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15247fi 15248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15251 CFLAGS="$xorg_testset_save_CFLAGS" 15252fi 15253 15254found="no" 15255 15256 if test $found = "no" ; then 15257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15259 fi 15260 15261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15263 fi 15264 15265 CFLAGS="$CFLAGS -Werror=array-bounds" 15266 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15268$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15269 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15270 if eval \${$cacheid+:} false; then : 15271 $as_echo_n "(cached) " >&6 15272else 15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15274/* end confdefs.h. */ 15275int i; 15276int 15277main () 15278{ 15279 15280 ; 15281 return 0; 15282} 15283_ACEOF 15284if ac_fn_c_try_link "$LINENO"; then : 15285 eval $cacheid=yes 15286else 15287 eval $cacheid=no 15288fi 15289rm -f core conftest.err conftest.$ac_objext \ 15290 conftest$ac_exeext conftest.$ac_ext 15291fi 15292 15293 15294 CFLAGS="$xorg_testset_save_CFLAGS" 15295 15296 eval supported=\$$cacheid 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15298$as_echo "$supported" >&6; } 15299 if test "$supported" = "yes" ; then 15300 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15301 found="yes" 15302 fi 15303 fi 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319xorg_testset_save_CFLAGS="$CFLAGS" 15320 15321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327else 15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15329/* end confdefs.h. */ 15330int i; 15331_ACEOF 15332if ac_fn_c_try_compile "$LINENO"; then : 15333 xorg_cv_cc_flag_unknown_warning_option=yes 15334else 15335 xorg_cv_cc_flag_unknown_warning_option=no 15336fi 15337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15338fi 15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15342 CFLAGS="$xorg_testset_save_CFLAGS" 15343fi 15344 15345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15348 fi 15349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15353 $as_echo_n "(cached) " >&6 15354else 15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15356/* end confdefs.h. */ 15357int i; 15358_ACEOF 15359if ac_fn_c_try_compile "$LINENO"; then : 15360 xorg_cv_cc_flag_unused_command_line_argument=yes 15361else 15362 xorg_cv_cc_flag_unused_command_line_argument=no 15363fi 15364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15365fi 15366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15369 CFLAGS="$xorg_testset_save_CFLAGS" 15370fi 15371 15372found="no" 15373 15374 if test $found = "no" ; then 15375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15377 fi 15378 15379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15381 fi 15382 15383 CFLAGS="$CFLAGS -Werror=write-strings" 15384 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15386$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15387 cacheid=xorg_cv_cc_flag__Werror_write_strings 15388 if eval \${$cacheid+:} false; then : 15389 $as_echo_n "(cached) " >&6 15390else 15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15392/* end confdefs.h. */ 15393int i; 15394int 15395main () 15396{ 15397 15398 ; 15399 return 0; 15400} 15401_ACEOF 15402if ac_fn_c_try_link "$LINENO"; then : 15403 eval $cacheid=yes 15404else 15405 eval $cacheid=no 15406fi 15407rm -f core conftest.err conftest.$ac_objext \ 15408 conftest$ac_exeext conftest.$ac_ext 15409fi 15410 15411 15412 CFLAGS="$xorg_testset_save_CFLAGS" 15413 15414 eval supported=\$$cacheid 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15416$as_echo "$supported" >&6; } 15417 if test "$supported" = "yes" ; then 15418 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15419 found="yes" 15420 fi 15421 fi 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437xorg_testset_save_CFLAGS="$CFLAGS" 15438 15439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15444 $as_echo_n "(cached) " >&6 15445else 15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15447/* end confdefs.h. */ 15448int i; 15449_ACEOF 15450if ac_fn_c_try_compile "$LINENO"; then : 15451 xorg_cv_cc_flag_unknown_warning_option=yes 15452else 15453 xorg_cv_cc_flag_unknown_warning_option=no 15454fi 15455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15456fi 15457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15460 CFLAGS="$xorg_testset_save_CFLAGS" 15461fi 15462 15463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15466 fi 15467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15471 $as_echo_n "(cached) " >&6 15472else 15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15474/* end confdefs.h. */ 15475int i; 15476_ACEOF 15477if ac_fn_c_try_compile "$LINENO"; then : 15478 xorg_cv_cc_flag_unused_command_line_argument=yes 15479else 15480 xorg_cv_cc_flag_unused_command_line_argument=no 15481fi 15482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15483fi 15484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15487 CFLAGS="$xorg_testset_save_CFLAGS" 15488fi 15489 15490found="no" 15491 15492 if test $found = "no" ; then 15493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15495 fi 15496 15497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15499 fi 15500 15501 CFLAGS="$CFLAGS -Werror=address" 15502 15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15504$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15505 cacheid=xorg_cv_cc_flag__Werror_address 15506 if eval \${$cacheid+:} false; then : 15507 $as_echo_n "(cached) " >&6 15508else 15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15510/* end confdefs.h. */ 15511int i; 15512int 15513main () 15514{ 15515 15516 ; 15517 return 0; 15518} 15519_ACEOF 15520if ac_fn_c_try_link "$LINENO"; then : 15521 eval $cacheid=yes 15522else 15523 eval $cacheid=no 15524fi 15525rm -f core conftest.err conftest.$ac_objext \ 15526 conftest$ac_exeext conftest.$ac_ext 15527fi 15528 15529 15530 CFLAGS="$xorg_testset_save_CFLAGS" 15531 15532 eval supported=\$$cacheid 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15534$as_echo "$supported" >&6; } 15535 if test "$supported" = "yes" ; then 15536 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15537 found="yes" 15538 fi 15539 fi 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555xorg_testset_save_CFLAGS="$CFLAGS" 15556 15557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15562 $as_echo_n "(cached) " >&6 15563else 15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15565/* end confdefs.h. */ 15566int i; 15567_ACEOF 15568if ac_fn_c_try_compile "$LINENO"; then : 15569 xorg_cv_cc_flag_unknown_warning_option=yes 15570else 15571 xorg_cv_cc_flag_unknown_warning_option=no 15572fi 15573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15574fi 15575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579fi 15580 15581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15584 fi 15585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15589 $as_echo_n "(cached) " >&6 15590else 15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15592/* end confdefs.h. */ 15593int i; 15594_ACEOF 15595if ac_fn_c_try_compile "$LINENO"; then : 15596 xorg_cv_cc_flag_unused_command_line_argument=yes 15597else 15598 xorg_cv_cc_flag_unused_command_line_argument=no 15599fi 15600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15601fi 15602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15605 CFLAGS="$xorg_testset_save_CFLAGS" 15606fi 15607 15608found="no" 15609 15610 if test $found = "no" ; then 15611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15613 fi 15614 15615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15617 fi 15618 15619 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15620 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15622$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15623 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15624 if eval \${$cacheid+:} false; then : 15625 $as_echo_n "(cached) " >&6 15626else 15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15628/* end confdefs.h. */ 15629int i; 15630int 15631main () 15632{ 15633 15634 ; 15635 return 0; 15636} 15637_ACEOF 15638if ac_fn_c_try_link "$LINENO"; then : 15639 eval $cacheid=yes 15640else 15641 eval $cacheid=no 15642fi 15643rm -f core conftest.err conftest.$ac_objext \ 15644 conftest$ac_exeext conftest.$ac_ext 15645fi 15646 15647 15648 CFLAGS="$xorg_testset_save_CFLAGS" 15649 15650 eval supported=\$$cacheid 15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15652$as_echo "$supported" >&6; } 15653 if test "$supported" = "yes" ; then 15654 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15655 found="yes" 15656 fi 15657 fi 15658 15659 if test $found = "no" ; then 15660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15662 fi 15663 15664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15666 fi 15667 15668 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15669 15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15671$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15672 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15673 if eval \${$cacheid+:} false; then : 15674 $as_echo_n "(cached) " >&6 15675else 15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15677/* end confdefs.h. */ 15678int i; 15679int 15680main () 15681{ 15682 15683 ; 15684 return 0; 15685} 15686_ACEOF 15687if ac_fn_c_try_link "$LINENO"; then : 15688 eval $cacheid=yes 15689else 15690 eval $cacheid=no 15691fi 15692rm -f core conftest.err conftest.$ac_objext \ 15693 conftest$ac_exeext conftest.$ac_ext 15694fi 15695 15696 15697 CFLAGS="$xorg_testset_save_CFLAGS" 15698 15699 eval supported=\$$cacheid 15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15701$as_echo "$supported" >&6; } 15702 if test "$supported" = "yes" ; then 15703 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15704 found="yes" 15705 fi 15706 fi 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722xorg_testset_save_CFLAGS="$CFLAGS" 15723 15724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15729 $as_echo_n "(cached) " >&6 15730else 15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15732/* end confdefs.h. */ 15733int i; 15734_ACEOF 15735if ac_fn_c_try_compile "$LINENO"; then : 15736 xorg_cv_cc_flag_unknown_warning_option=yes 15737else 15738 xorg_cv_cc_flag_unknown_warning_option=no 15739fi 15740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15741fi 15742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15745 CFLAGS="$xorg_testset_save_CFLAGS" 15746fi 15747 15748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15751 fi 15752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15756 $as_echo_n "(cached) " >&6 15757else 15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15759/* end confdefs.h. */ 15760int i; 15761_ACEOF 15762if ac_fn_c_try_compile "$LINENO"; then : 15763 xorg_cv_cc_flag_unused_command_line_argument=yes 15764else 15765 xorg_cv_cc_flag_unused_command_line_argument=no 15766fi 15767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15768fi 15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15772 CFLAGS="$xorg_testset_save_CFLAGS" 15773fi 15774 15775found="no" 15776 15777 if test $found = "no" ; then 15778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15780 fi 15781 15782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15784 fi 15785 15786 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 15787 15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 15789$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 15790 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 15791 if eval \${$cacheid+:} false; then : 15792 $as_echo_n "(cached) " >&6 15793else 15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15795/* end confdefs.h. */ 15796int i; 15797int 15798main () 15799{ 15800 15801 ; 15802 return 0; 15803} 15804_ACEOF 15805if ac_fn_c_try_link "$LINENO"; then : 15806 eval $cacheid=yes 15807else 15808 eval $cacheid=no 15809fi 15810rm -f core conftest.err conftest.$ac_objext \ 15811 conftest$ac_exeext conftest.$ac_ext 15812fi 15813 15814 15815 CFLAGS="$xorg_testset_save_CFLAGS" 15816 15817 eval supported=\$$cacheid 15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15819$as_echo "$supported" >&6; } 15820 if test "$supported" = "yes" ; then 15821 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 15822 found="yes" 15823 fi 15824 fi 15825 15826 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 15827else 15828{ $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 15829$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;} 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843xorg_testset_save_CFLAGS="$CFLAGS" 15844 15845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15850 $as_echo_n "(cached) " >&6 15851else 15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853/* end confdefs.h. */ 15854int i; 15855_ACEOF 15856if ac_fn_c_try_compile "$LINENO"; then : 15857 xorg_cv_cc_flag_unknown_warning_option=yes 15858else 15859 xorg_cv_cc_flag_unknown_warning_option=no 15860fi 15861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15862fi 15863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15866 CFLAGS="$xorg_testset_save_CFLAGS" 15867fi 15868 15869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15872 fi 15873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878else 15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881int i; 15882_ACEOF 15883if ac_fn_c_try_compile "$LINENO"; then : 15884 xorg_cv_cc_flag_unused_command_line_argument=yes 15885else 15886 xorg_cv_cc_flag_unused_command_line_argument=no 15887fi 15888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15889fi 15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15893 CFLAGS="$xorg_testset_save_CFLAGS" 15894fi 15895 15896found="no" 15897 15898 if test $found = "no" ; then 15899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15901 fi 15902 15903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15905 fi 15906 15907 CFLAGS="$CFLAGS -Wimplicit" 15908 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 15910$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 15911 cacheid=xorg_cv_cc_flag__Wimplicit 15912 if eval \${$cacheid+:} false; then : 15913 $as_echo_n "(cached) " >&6 15914else 15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15916/* end confdefs.h. */ 15917int i; 15918int 15919main () 15920{ 15921 15922 ; 15923 return 0; 15924} 15925_ACEOF 15926if ac_fn_c_try_link "$LINENO"; then : 15927 eval $cacheid=yes 15928else 15929 eval $cacheid=no 15930fi 15931rm -f core conftest.err conftest.$ac_objext \ 15932 conftest$ac_exeext conftest.$ac_ext 15933fi 15934 15935 15936 CFLAGS="$xorg_testset_save_CFLAGS" 15937 15938 eval supported=\$$cacheid 15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15940$as_echo "$supported" >&6; } 15941 if test "$supported" = "yes" ; then 15942 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 15943 found="yes" 15944 fi 15945 fi 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961xorg_testset_save_CFLAGS="$CFLAGS" 15962 15963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15968 $as_echo_n "(cached) " >&6 15969else 15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15971/* end confdefs.h. */ 15972int i; 15973_ACEOF 15974if ac_fn_c_try_compile "$LINENO"; then : 15975 xorg_cv_cc_flag_unknown_warning_option=yes 15976else 15977 xorg_cv_cc_flag_unknown_warning_option=no 15978fi 15979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15980fi 15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15984 CFLAGS="$xorg_testset_save_CFLAGS" 15985fi 15986 15987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15990 fi 15991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15995 $as_echo_n "(cached) " >&6 15996else 15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15998/* end confdefs.h. */ 15999int i; 16000_ACEOF 16001if ac_fn_c_try_compile "$LINENO"; then : 16002 xorg_cv_cc_flag_unused_command_line_argument=yes 16003else 16004 xorg_cv_cc_flag_unused_command_line_argument=no 16005fi 16006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16007fi 16008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16011 CFLAGS="$xorg_testset_save_CFLAGS" 16012fi 16013 16014found="no" 16015 16016 if test $found = "no" ; then 16017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16019 fi 16020 16021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16023 fi 16024 16025 CFLAGS="$CFLAGS -Wnonnull" 16026 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16028$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16029 cacheid=xorg_cv_cc_flag__Wnonnull 16030 if eval \${$cacheid+:} false; then : 16031 $as_echo_n "(cached) " >&6 16032else 16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16034/* end confdefs.h. */ 16035int i; 16036int 16037main () 16038{ 16039 16040 ; 16041 return 0; 16042} 16043_ACEOF 16044if ac_fn_c_try_link "$LINENO"; then : 16045 eval $cacheid=yes 16046else 16047 eval $cacheid=no 16048fi 16049rm -f core conftest.err conftest.$ac_objext \ 16050 conftest$ac_exeext conftest.$ac_ext 16051fi 16052 16053 16054 CFLAGS="$xorg_testset_save_CFLAGS" 16055 16056 eval supported=\$$cacheid 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16058$as_echo "$supported" >&6; } 16059 if test "$supported" = "yes" ; then 16060 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16061 found="yes" 16062 fi 16063 fi 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079xorg_testset_save_CFLAGS="$CFLAGS" 16080 16081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16086 $as_echo_n "(cached) " >&6 16087else 16088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16089/* end confdefs.h. */ 16090int i; 16091_ACEOF 16092if ac_fn_c_try_compile "$LINENO"; then : 16093 xorg_cv_cc_flag_unknown_warning_option=yes 16094else 16095 xorg_cv_cc_flag_unknown_warning_option=no 16096fi 16097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16098fi 16099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16102 CFLAGS="$xorg_testset_save_CFLAGS" 16103fi 16104 16105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16108 fi 16109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16113 $as_echo_n "(cached) " >&6 16114else 16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16116/* end confdefs.h. */ 16117int i; 16118_ACEOF 16119if ac_fn_c_try_compile "$LINENO"; then : 16120 xorg_cv_cc_flag_unused_command_line_argument=yes 16121else 16122 xorg_cv_cc_flag_unused_command_line_argument=no 16123fi 16124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16125fi 16126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16129 CFLAGS="$xorg_testset_save_CFLAGS" 16130fi 16131 16132found="no" 16133 16134 if test $found = "no" ; then 16135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16137 fi 16138 16139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16141 fi 16142 16143 CFLAGS="$CFLAGS -Winit-self" 16144 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16146$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16147 cacheid=xorg_cv_cc_flag__Winit_self 16148 if eval \${$cacheid+:} false; then : 16149 $as_echo_n "(cached) " >&6 16150else 16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16152/* end confdefs.h. */ 16153int i; 16154int 16155main () 16156{ 16157 16158 ; 16159 return 0; 16160} 16161_ACEOF 16162if ac_fn_c_try_link "$LINENO"; then : 16163 eval $cacheid=yes 16164else 16165 eval $cacheid=no 16166fi 16167rm -f core conftest.err conftest.$ac_objext \ 16168 conftest$ac_exeext conftest.$ac_ext 16169fi 16170 16171 16172 CFLAGS="$xorg_testset_save_CFLAGS" 16173 16174 eval supported=\$$cacheid 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16176$as_echo "$supported" >&6; } 16177 if test "$supported" = "yes" ; then 16178 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16179 found="yes" 16180 fi 16181 fi 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197xorg_testset_save_CFLAGS="$CFLAGS" 16198 16199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16204 $as_echo_n "(cached) " >&6 16205else 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208int i; 16209_ACEOF 16210if ac_fn_c_try_compile "$LINENO"; then : 16211 xorg_cv_cc_flag_unknown_warning_option=yes 16212else 16213 xorg_cv_cc_flag_unknown_warning_option=no 16214fi 16215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16216fi 16217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16220 CFLAGS="$xorg_testset_save_CFLAGS" 16221fi 16222 16223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16226 fi 16227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16231 $as_echo_n "(cached) " >&6 16232else 16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16234/* end confdefs.h. */ 16235int i; 16236_ACEOF 16237if ac_fn_c_try_compile "$LINENO"; then : 16238 xorg_cv_cc_flag_unused_command_line_argument=yes 16239else 16240 xorg_cv_cc_flag_unused_command_line_argument=no 16241fi 16242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16243fi 16244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16247 CFLAGS="$xorg_testset_save_CFLAGS" 16248fi 16249 16250found="no" 16251 16252 if test $found = "no" ; then 16253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16255 fi 16256 16257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16259 fi 16260 16261 CFLAGS="$CFLAGS -Wmain" 16262 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16264$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16265 cacheid=xorg_cv_cc_flag__Wmain 16266 if eval \${$cacheid+:} false; then : 16267 $as_echo_n "(cached) " >&6 16268else 16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16270/* end confdefs.h. */ 16271int i; 16272int 16273main () 16274{ 16275 16276 ; 16277 return 0; 16278} 16279_ACEOF 16280if ac_fn_c_try_link "$LINENO"; then : 16281 eval $cacheid=yes 16282else 16283 eval $cacheid=no 16284fi 16285rm -f core conftest.err conftest.$ac_objext \ 16286 conftest$ac_exeext conftest.$ac_ext 16287fi 16288 16289 16290 CFLAGS="$xorg_testset_save_CFLAGS" 16291 16292 eval supported=\$$cacheid 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16294$as_echo "$supported" >&6; } 16295 if test "$supported" = "yes" ; then 16296 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16297 found="yes" 16298 fi 16299 fi 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315xorg_testset_save_CFLAGS="$CFLAGS" 16316 16317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16322 $as_echo_n "(cached) " >&6 16323else 16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16325/* end confdefs.h. */ 16326int i; 16327_ACEOF 16328if ac_fn_c_try_compile "$LINENO"; then : 16329 xorg_cv_cc_flag_unknown_warning_option=yes 16330else 16331 xorg_cv_cc_flag_unknown_warning_option=no 16332fi 16333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16334fi 16335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16338 CFLAGS="$xorg_testset_save_CFLAGS" 16339fi 16340 16341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16344 fi 16345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16349 $as_echo_n "(cached) " >&6 16350else 16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353int i; 16354_ACEOF 16355if ac_fn_c_try_compile "$LINENO"; then : 16356 xorg_cv_cc_flag_unused_command_line_argument=yes 16357else 16358 xorg_cv_cc_flag_unused_command_line_argument=no 16359fi 16360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16361fi 16362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16365 CFLAGS="$xorg_testset_save_CFLAGS" 16366fi 16367 16368found="no" 16369 16370 if test $found = "no" ; then 16371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16373 fi 16374 16375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16377 fi 16378 16379 CFLAGS="$CFLAGS -Wmissing-braces" 16380 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16382$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16383 cacheid=xorg_cv_cc_flag__Wmissing_braces 16384 if eval \${$cacheid+:} false; then : 16385 $as_echo_n "(cached) " >&6 16386else 16387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16388/* end confdefs.h. */ 16389int i; 16390int 16391main () 16392{ 16393 16394 ; 16395 return 0; 16396} 16397_ACEOF 16398if ac_fn_c_try_link "$LINENO"; then : 16399 eval $cacheid=yes 16400else 16401 eval $cacheid=no 16402fi 16403rm -f core conftest.err conftest.$ac_objext \ 16404 conftest$ac_exeext conftest.$ac_ext 16405fi 16406 16407 16408 CFLAGS="$xorg_testset_save_CFLAGS" 16409 16410 eval supported=\$$cacheid 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16412$as_echo "$supported" >&6; } 16413 if test "$supported" = "yes" ; then 16414 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16415 found="yes" 16416 fi 16417 fi 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433xorg_testset_save_CFLAGS="$CFLAGS" 16434 16435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16438$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16439if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16440 $as_echo_n "(cached) " >&6 16441else 16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16443/* end confdefs.h. */ 16444int i; 16445_ACEOF 16446if ac_fn_c_try_compile "$LINENO"; then : 16447 xorg_cv_cc_flag_unknown_warning_option=yes 16448else 16449 xorg_cv_cc_flag_unknown_warning_option=no 16450fi 16451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16452fi 16453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16454$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16456 CFLAGS="$xorg_testset_save_CFLAGS" 16457fi 16458 16459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16462 fi 16463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16465$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16466if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16467 $as_echo_n "(cached) " >&6 16468else 16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470/* end confdefs.h. */ 16471int i; 16472_ACEOF 16473if ac_fn_c_try_compile "$LINENO"; then : 16474 xorg_cv_cc_flag_unused_command_line_argument=yes 16475else 16476 xorg_cv_cc_flag_unused_command_line_argument=no 16477fi 16478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16479fi 16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16481$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16483 CFLAGS="$xorg_testset_save_CFLAGS" 16484fi 16485 16486found="no" 16487 16488 if test $found = "no" ; then 16489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16491 fi 16492 16493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16495 fi 16496 16497 CFLAGS="$CFLAGS -Wsequence-point" 16498 16499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16500$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16501 cacheid=xorg_cv_cc_flag__Wsequence_point 16502 if eval \${$cacheid+:} false; then : 16503 $as_echo_n "(cached) " >&6 16504else 16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16506/* end confdefs.h. */ 16507int i; 16508int 16509main () 16510{ 16511 16512 ; 16513 return 0; 16514} 16515_ACEOF 16516if ac_fn_c_try_link "$LINENO"; then : 16517 eval $cacheid=yes 16518else 16519 eval $cacheid=no 16520fi 16521rm -f core conftest.err conftest.$ac_objext \ 16522 conftest$ac_exeext conftest.$ac_ext 16523fi 16524 16525 16526 CFLAGS="$xorg_testset_save_CFLAGS" 16527 16528 eval supported=\$$cacheid 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16530$as_echo "$supported" >&6; } 16531 if test "$supported" = "yes" ; then 16532 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16533 found="yes" 16534 fi 16535 fi 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551xorg_testset_save_CFLAGS="$CFLAGS" 16552 16553if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16556$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16557if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16558 $as_echo_n "(cached) " >&6 16559else 16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16561/* end confdefs.h. */ 16562int i; 16563_ACEOF 16564if ac_fn_c_try_compile "$LINENO"; then : 16565 xorg_cv_cc_flag_unknown_warning_option=yes 16566else 16567 xorg_cv_cc_flag_unknown_warning_option=no 16568fi 16569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16570fi 16571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16572$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16574 CFLAGS="$xorg_testset_save_CFLAGS" 16575fi 16576 16577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16580 fi 16581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16583$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16584if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16585 $as_echo_n "(cached) " >&6 16586else 16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16588/* end confdefs.h. */ 16589int i; 16590_ACEOF 16591if ac_fn_c_try_compile "$LINENO"; then : 16592 xorg_cv_cc_flag_unused_command_line_argument=yes 16593else 16594 xorg_cv_cc_flag_unused_command_line_argument=no 16595fi 16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16597fi 16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16599$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16601 CFLAGS="$xorg_testset_save_CFLAGS" 16602fi 16603 16604found="no" 16605 16606 if test $found = "no" ; then 16607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16609 fi 16610 16611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16613 fi 16614 16615 CFLAGS="$CFLAGS -Wreturn-type" 16616 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16618$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16619 cacheid=xorg_cv_cc_flag__Wreturn_type 16620 if eval \${$cacheid+:} false; then : 16621 $as_echo_n "(cached) " >&6 16622else 16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16624/* end confdefs.h. */ 16625int i; 16626int 16627main () 16628{ 16629 16630 ; 16631 return 0; 16632} 16633_ACEOF 16634if ac_fn_c_try_link "$LINENO"; then : 16635 eval $cacheid=yes 16636else 16637 eval $cacheid=no 16638fi 16639rm -f core conftest.err conftest.$ac_objext \ 16640 conftest$ac_exeext conftest.$ac_ext 16641fi 16642 16643 16644 CFLAGS="$xorg_testset_save_CFLAGS" 16645 16646 eval supported=\$$cacheid 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16648$as_echo "$supported" >&6; } 16649 if test "$supported" = "yes" ; then 16650 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16651 found="yes" 16652 fi 16653 fi 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669xorg_testset_save_CFLAGS="$CFLAGS" 16670 16671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16674$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16675if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16676 $as_echo_n "(cached) " >&6 16677else 16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16679/* end confdefs.h. */ 16680int i; 16681_ACEOF 16682if ac_fn_c_try_compile "$LINENO"; then : 16683 xorg_cv_cc_flag_unknown_warning_option=yes 16684else 16685 xorg_cv_cc_flag_unknown_warning_option=no 16686fi 16687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16688fi 16689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16690$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16692 CFLAGS="$xorg_testset_save_CFLAGS" 16693fi 16694 16695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16698 fi 16699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16701$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16702if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16703 $as_echo_n "(cached) " >&6 16704else 16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16706/* end confdefs.h. */ 16707int i; 16708_ACEOF 16709if ac_fn_c_try_compile "$LINENO"; then : 16710 xorg_cv_cc_flag_unused_command_line_argument=yes 16711else 16712 xorg_cv_cc_flag_unused_command_line_argument=no 16713fi 16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16715fi 16716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16717$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16719 CFLAGS="$xorg_testset_save_CFLAGS" 16720fi 16721 16722found="no" 16723 16724 if test $found = "no" ; then 16725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16727 fi 16728 16729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16731 fi 16732 16733 CFLAGS="$CFLAGS -Wtrigraphs" 16734 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 16736$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 16737 cacheid=xorg_cv_cc_flag__Wtrigraphs 16738 if eval \${$cacheid+:} false; then : 16739 $as_echo_n "(cached) " >&6 16740else 16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16742/* end confdefs.h. */ 16743int i; 16744int 16745main () 16746{ 16747 16748 ; 16749 return 0; 16750} 16751_ACEOF 16752if ac_fn_c_try_link "$LINENO"; then : 16753 eval $cacheid=yes 16754else 16755 eval $cacheid=no 16756fi 16757rm -f core conftest.err conftest.$ac_objext \ 16758 conftest$ac_exeext conftest.$ac_ext 16759fi 16760 16761 16762 CFLAGS="$xorg_testset_save_CFLAGS" 16763 16764 eval supported=\$$cacheid 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16766$as_echo "$supported" >&6; } 16767 if test "$supported" = "yes" ; then 16768 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 16769 found="yes" 16770 fi 16771 fi 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787xorg_testset_save_CFLAGS="$CFLAGS" 16788 16789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16794 $as_echo_n "(cached) " >&6 16795else 16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797/* end confdefs.h. */ 16798int i; 16799_ACEOF 16800if ac_fn_c_try_compile "$LINENO"; then : 16801 xorg_cv_cc_flag_unknown_warning_option=yes 16802else 16803 xorg_cv_cc_flag_unknown_warning_option=no 16804fi 16805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16806fi 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16810 CFLAGS="$xorg_testset_save_CFLAGS" 16811fi 16812 16813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16816 fi 16817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16821 $as_echo_n "(cached) " >&6 16822else 16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16824/* end confdefs.h. */ 16825int i; 16826_ACEOF 16827if ac_fn_c_try_compile "$LINENO"; then : 16828 xorg_cv_cc_flag_unused_command_line_argument=yes 16829else 16830 xorg_cv_cc_flag_unused_command_line_argument=no 16831fi 16832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16833fi 16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16836 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16837 CFLAGS="$xorg_testset_save_CFLAGS" 16838fi 16839 16840found="no" 16841 16842 if test $found = "no" ; then 16843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16845 fi 16846 16847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16849 fi 16850 16851 CFLAGS="$CFLAGS -Warray-bounds" 16852 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 16854$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 16855 cacheid=xorg_cv_cc_flag__Warray_bounds 16856 if eval \${$cacheid+:} false; then : 16857 $as_echo_n "(cached) " >&6 16858else 16859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16860/* end confdefs.h. */ 16861int i; 16862int 16863main () 16864{ 16865 16866 ; 16867 return 0; 16868} 16869_ACEOF 16870if ac_fn_c_try_link "$LINENO"; then : 16871 eval $cacheid=yes 16872else 16873 eval $cacheid=no 16874fi 16875rm -f core conftest.err conftest.$ac_objext \ 16876 conftest$ac_exeext conftest.$ac_ext 16877fi 16878 16879 16880 CFLAGS="$xorg_testset_save_CFLAGS" 16881 16882 eval supported=\$$cacheid 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16884$as_echo "$supported" >&6; } 16885 if test "$supported" = "yes" ; then 16886 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 16887 found="yes" 16888 fi 16889 fi 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905xorg_testset_save_CFLAGS="$CFLAGS" 16906 16907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16912 $as_echo_n "(cached) " >&6 16913else 16914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16915/* end confdefs.h. */ 16916int i; 16917_ACEOF 16918if ac_fn_c_try_compile "$LINENO"; then : 16919 xorg_cv_cc_flag_unknown_warning_option=yes 16920else 16921 xorg_cv_cc_flag_unknown_warning_option=no 16922fi 16923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16924fi 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16928 CFLAGS="$xorg_testset_save_CFLAGS" 16929fi 16930 16931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16934 fi 16935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16939 $as_echo_n "(cached) " >&6 16940else 16941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16942/* end confdefs.h. */ 16943int i; 16944_ACEOF 16945if ac_fn_c_try_compile "$LINENO"; then : 16946 xorg_cv_cc_flag_unused_command_line_argument=yes 16947else 16948 xorg_cv_cc_flag_unused_command_line_argument=no 16949fi 16950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16951fi 16952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16955 CFLAGS="$xorg_testset_save_CFLAGS" 16956fi 16957 16958found="no" 16959 16960 if test $found = "no" ; then 16961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16963 fi 16964 16965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16967 fi 16968 16969 CFLAGS="$CFLAGS -Wwrite-strings" 16970 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 16972$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 16973 cacheid=xorg_cv_cc_flag__Wwrite_strings 16974 if eval \${$cacheid+:} false; then : 16975 $as_echo_n "(cached) " >&6 16976else 16977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16978/* end confdefs.h. */ 16979int i; 16980int 16981main () 16982{ 16983 16984 ; 16985 return 0; 16986} 16987_ACEOF 16988if ac_fn_c_try_link "$LINENO"; then : 16989 eval $cacheid=yes 16990else 16991 eval $cacheid=no 16992fi 16993rm -f core conftest.err conftest.$ac_objext \ 16994 conftest$ac_exeext conftest.$ac_ext 16995fi 16996 16997 16998 CFLAGS="$xorg_testset_save_CFLAGS" 16999 17000 eval supported=\$$cacheid 17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17002$as_echo "$supported" >&6; } 17003 if test "$supported" = "yes" ; then 17004 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17005 found="yes" 17006 fi 17007 fi 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023xorg_testset_save_CFLAGS="$CFLAGS" 17024 17025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17030 $as_echo_n "(cached) " >&6 17031else 17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17033/* end confdefs.h. */ 17034int i; 17035_ACEOF 17036if ac_fn_c_try_compile "$LINENO"; then : 17037 xorg_cv_cc_flag_unknown_warning_option=yes 17038else 17039 xorg_cv_cc_flag_unknown_warning_option=no 17040fi 17041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17042fi 17043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17046 CFLAGS="$xorg_testset_save_CFLAGS" 17047fi 17048 17049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17052 fi 17053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17057 $as_echo_n "(cached) " >&6 17058else 17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17060/* end confdefs.h. */ 17061int i; 17062_ACEOF 17063if ac_fn_c_try_compile "$LINENO"; then : 17064 xorg_cv_cc_flag_unused_command_line_argument=yes 17065else 17066 xorg_cv_cc_flag_unused_command_line_argument=no 17067fi 17068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17069fi 17070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17073 CFLAGS="$xorg_testset_save_CFLAGS" 17074fi 17075 17076found="no" 17077 17078 if test $found = "no" ; then 17079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17081 fi 17082 17083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17085 fi 17086 17087 CFLAGS="$CFLAGS -Waddress" 17088 17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17090$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17091 cacheid=xorg_cv_cc_flag__Waddress 17092 if eval \${$cacheid+:} false; then : 17093 $as_echo_n "(cached) " >&6 17094else 17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17096/* end confdefs.h. */ 17097int i; 17098int 17099main () 17100{ 17101 17102 ; 17103 return 0; 17104} 17105_ACEOF 17106if ac_fn_c_try_link "$LINENO"; then : 17107 eval $cacheid=yes 17108else 17109 eval $cacheid=no 17110fi 17111rm -f core conftest.err conftest.$ac_objext \ 17112 conftest$ac_exeext conftest.$ac_ext 17113fi 17114 17115 17116 CFLAGS="$xorg_testset_save_CFLAGS" 17117 17118 eval supported=\$$cacheid 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17120$as_echo "$supported" >&6; } 17121 if test "$supported" = "yes" ; then 17122 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17123 found="yes" 17124 fi 17125 fi 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141xorg_testset_save_CFLAGS="$CFLAGS" 17142 17143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17148 $as_echo_n "(cached) " >&6 17149else 17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17151/* end confdefs.h. */ 17152int i; 17153_ACEOF 17154if ac_fn_c_try_compile "$LINENO"; then : 17155 xorg_cv_cc_flag_unknown_warning_option=yes 17156else 17157 xorg_cv_cc_flag_unknown_warning_option=no 17158fi 17159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17160fi 17161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17164 CFLAGS="$xorg_testset_save_CFLAGS" 17165fi 17166 17167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17170 fi 17171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17175 $as_echo_n "(cached) " >&6 17176else 17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17178/* end confdefs.h. */ 17179int i; 17180_ACEOF 17181if ac_fn_c_try_compile "$LINENO"; then : 17182 xorg_cv_cc_flag_unused_command_line_argument=yes 17183else 17184 xorg_cv_cc_flag_unused_command_line_argument=no 17185fi 17186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17187fi 17188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17191 CFLAGS="$xorg_testset_save_CFLAGS" 17192fi 17193 17194found="no" 17195 17196 if test $found = "no" ; then 17197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17199 fi 17200 17201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17203 fi 17204 17205 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17206 17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17208$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17209 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17210 if eval \${$cacheid+:} false; then : 17211 $as_echo_n "(cached) " >&6 17212else 17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17214/* end confdefs.h. */ 17215int i; 17216int 17217main () 17218{ 17219 17220 ; 17221 return 0; 17222} 17223_ACEOF 17224if ac_fn_c_try_link "$LINENO"; then : 17225 eval $cacheid=yes 17226else 17227 eval $cacheid=no 17228fi 17229rm -f core conftest.err conftest.$ac_objext \ 17230 conftest$ac_exeext conftest.$ac_ext 17231fi 17232 17233 17234 CFLAGS="$xorg_testset_save_CFLAGS" 17235 17236 eval supported=\$$cacheid 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17238$as_echo "$supported" >&6; } 17239 if test "$supported" = "yes" ; then 17240 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17241 found="yes" 17242 fi 17243 fi 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259xorg_testset_save_CFLAGS="$CFLAGS" 17260 17261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17264$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17265if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17266 $as_echo_n "(cached) " >&6 17267else 17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17269/* end confdefs.h. */ 17270int i; 17271_ACEOF 17272if ac_fn_c_try_compile "$LINENO"; then : 17273 xorg_cv_cc_flag_unknown_warning_option=yes 17274else 17275 xorg_cv_cc_flag_unknown_warning_option=no 17276fi 17277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17278fi 17279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17280$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17281 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17282 CFLAGS="$xorg_testset_save_CFLAGS" 17283fi 17284 17285if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17288 fi 17289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17291$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17292if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17293 $as_echo_n "(cached) " >&6 17294else 17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17296/* end confdefs.h. */ 17297int i; 17298_ACEOF 17299if ac_fn_c_try_compile "$LINENO"; then : 17300 xorg_cv_cc_flag_unused_command_line_argument=yes 17301else 17302 xorg_cv_cc_flag_unused_command_line_argument=no 17303fi 17304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17305fi 17306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17307$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17309 CFLAGS="$xorg_testset_save_CFLAGS" 17310fi 17311 17312found="no" 17313 17314 if test $found = "no" ; then 17315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17317 fi 17318 17319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17321 fi 17322 17323 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17324 17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17326$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17327 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17328 if eval \${$cacheid+:} false; then : 17329 $as_echo_n "(cached) " >&6 17330else 17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17332/* end confdefs.h. */ 17333int i; 17334int 17335main () 17336{ 17337 17338 ; 17339 return 0; 17340} 17341_ACEOF 17342if ac_fn_c_try_link "$LINENO"; then : 17343 eval $cacheid=yes 17344else 17345 eval $cacheid=no 17346fi 17347rm -f core conftest.err conftest.$ac_objext \ 17348 conftest$ac_exeext conftest.$ac_ext 17349fi 17350 17351 17352 CFLAGS="$xorg_testset_save_CFLAGS" 17353 17354 eval supported=\$$cacheid 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17356$as_echo "$supported" >&6; } 17357 if test "$supported" = "yes" ; then 17358 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17359 found="yes" 17360 fi 17361 fi 17362 17363 17364fi 17365 17366 17367 17368 17369 17370 17371 17372 CWARNFLAGS="$BASE_CFLAGS" 17373 if test "x$GCC" = xyes ; then 17374 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17375 fi 17376 17377 17378 17379 17380 17381 17382 17383 17384# Check whether --enable-strict-compilation was given. 17385if test "${enable_strict_compilation+set}" = set; then : 17386 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17387else 17388 STRICT_COMPILE=no 17389fi 17390 17391 17392 17393 17394 17395 17396STRICT_CFLAGS="" 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410xorg_testset_save_CFLAGS="$CFLAGS" 17411 17412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17417 $as_echo_n "(cached) " >&6 17418else 17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17420/* end confdefs.h. */ 17421int i; 17422_ACEOF 17423if ac_fn_c_try_compile "$LINENO"; then : 17424 xorg_cv_cc_flag_unknown_warning_option=yes 17425else 17426 xorg_cv_cc_flag_unknown_warning_option=no 17427fi 17428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17429fi 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434fi 17435 17436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17439 fi 17440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17444 $as_echo_n "(cached) " >&6 17445else 17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448int i; 17449_ACEOF 17450if ac_fn_c_try_compile "$LINENO"; then : 17451 xorg_cv_cc_flag_unused_command_line_argument=yes 17452else 17453 xorg_cv_cc_flag_unused_command_line_argument=no 17454fi 17455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17456fi 17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17460 CFLAGS="$xorg_testset_save_CFLAGS" 17461fi 17462 17463found="no" 17464 17465 if test $found = "no" ; then 17466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17468 fi 17469 17470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17472 fi 17473 17474 CFLAGS="$CFLAGS -pedantic" 17475 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17477$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17478 cacheid=xorg_cv_cc_flag__pedantic 17479 if eval \${$cacheid+:} false; then : 17480 $as_echo_n "(cached) " >&6 17481else 17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17483/* end confdefs.h. */ 17484int i; 17485int 17486main () 17487{ 17488 17489 ; 17490 return 0; 17491} 17492_ACEOF 17493if ac_fn_c_try_link "$LINENO"; then : 17494 eval $cacheid=yes 17495else 17496 eval $cacheid=no 17497fi 17498rm -f core conftest.err conftest.$ac_objext \ 17499 conftest$ac_exeext conftest.$ac_ext 17500fi 17501 17502 17503 CFLAGS="$xorg_testset_save_CFLAGS" 17504 17505 eval supported=\$$cacheid 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17507$as_echo "$supported" >&6; } 17508 if test "$supported" = "yes" ; then 17509 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17510 found="yes" 17511 fi 17512 fi 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528xorg_testset_save_CFLAGS="$CFLAGS" 17529 17530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17535 $as_echo_n "(cached) " >&6 17536else 17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17538/* end confdefs.h. */ 17539int i; 17540_ACEOF 17541if ac_fn_c_try_compile "$LINENO"; then : 17542 xorg_cv_cc_flag_unknown_warning_option=yes 17543else 17544 xorg_cv_cc_flag_unknown_warning_option=no 17545fi 17546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17547fi 17548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17551 CFLAGS="$xorg_testset_save_CFLAGS" 17552fi 17553 17554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17557 fi 17558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17562 $as_echo_n "(cached) " >&6 17563else 17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17565/* end confdefs.h. */ 17566int i; 17567_ACEOF 17568if ac_fn_c_try_compile "$LINENO"; then : 17569 xorg_cv_cc_flag_unused_command_line_argument=yes 17570else 17571 xorg_cv_cc_flag_unused_command_line_argument=no 17572fi 17573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17574fi 17575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17578 CFLAGS="$xorg_testset_save_CFLAGS" 17579fi 17580 17581found="no" 17582 17583 if test $found = "no" ; then 17584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17586 fi 17587 17588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17590 fi 17591 17592 CFLAGS="$CFLAGS -Werror" 17593 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17595$as_echo_n "checking if $CC supports -Werror... " >&6; } 17596 cacheid=xorg_cv_cc_flag__Werror 17597 if eval \${$cacheid+:} false; then : 17598 $as_echo_n "(cached) " >&6 17599else 17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17601/* end confdefs.h. */ 17602int i; 17603int 17604main () 17605{ 17606 17607 ; 17608 return 0; 17609} 17610_ACEOF 17611if ac_fn_c_try_link "$LINENO"; then : 17612 eval $cacheid=yes 17613else 17614 eval $cacheid=no 17615fi 17616rm -f core conftest.err conftest.$ac_objext \ 17617 conftest$ac_exeext conftest.$ac_ext 17618fi 17619 17620 17621 CFLAGS="$xorg_testset_save_CFLAGS" 17622 17623 eval supported=\$$cacheid 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17625$as_echo "$supported" >&6; } 17626 if test "$supported" = "yes" ; then 17627 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17628 found="yes" 17629 fi 17630 fi 17631 17632 if test $found = "no" ; then 17633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17635 fi 17636 17637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17639 fi 17640 17641 CFLAGS="$CFLAGS -errwarn" 17642 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17644$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17645 cacheid=xorg_cv_cc_flag__errwarn 17646 if eval \${$cacheid+:} false; then : 17647 $as_echo_n "(cached) " >&6 17648else 17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17650/* end confdefs.h. */ 17651int i; 17652int 17653main () 17654{ 17655 17656 ; 17657 return 0; 17658} 17659_ACEOF 17660if ac_fn_c_try_link "$LINENO"; then : 17661 eval $cacheid=yes 17662else 17663 eval $cacheid=no 17664fi 17665rm -f core conftest.err conftest.$ac_objext \ 17666 conftest$ac_exeext conftest.$ac_ext 17667fi 17668 17669 17670 CFLAGS="$xorg_testset_save_CFLAGS" 17671 17672 eval supported=\$$cacheid 17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17674$as_echo "$supported" >&6; } 17675 if test "$supported" = "yes" ; then 17676 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17677 found="yes" 17678 fi 17679 fi 17680 17681 17682 17683# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17684# activate it with -Werror, so we add it here explicitly. 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698xorg_testset_save_CFLAGS="$CFLAGS" 17699 17700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17705 $as_echo_n "(cached) " >&6 17706else 17707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17708/* end confdefs.h. */ 17709int i; 17710_ACEOF 17711if ac_fn_c_try_compile "$LINENO"; then : 17712 xorg_cv_cc_flag_unknown_warning_option=yes 17713else 17714 xorg_cv_cc_flag_unknown_warning_option=no 17715fi 17716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17717fi 17718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17721 CFLAGS="$xorg_testset_save_CFLAGS" 17722fi 17723 17724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17727 fi 17728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17732 $as_echo_n "(cached) " >&6 17733else 17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17735/* end confdefs.h. */ 17736int i; 17737_ACEOF 17738if ac_fn_c_try_compile "$LINENO"; then : 17739 xorg_cv_cc_flag_unused_command_line_argument=yes 17740else 17741 xorg_cv_cc_flag_unused_command_line_argument=no 17742fi 17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17744fi 17745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17748 CFLAGS="$xorg_testset_save_CFLAGS" 17749fi 17750 17751found="no" 17752 17753 if test $found = "no" ; then 17754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17756 fi 17757 17758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17760 fi 17761 17762 CFLAGS="$CFLAGS -Werror=attributes" 17763 17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 17765$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 17766 cacheid=xorg_cv_cc_flag__Werror_attributes 17767 if eval \${$cacheid+:} false; then : 17768 $as_echo_n "(cached) " >&6 17769else 17770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17771/* end confdefs.h. */ 17772int i; 17773int 17774main () 17775{ 17776 17777 ; 17778 return 0; 17779} 17780_ACEOF 17781if ac_fn_c_try_link "$LINENO"; then : 17782 eval $cacheid=yes 17783else 17784 eval $cacheid=no 17785fi 17786rm -f core conftest.err conftest.$ac_objext \ 17787 conftest$ac_exeext conftest.$ac_ext 17788fi 17789 17790 17791 CFLAGS="$xorg_testset_save_CFLAGS" 17792 17793 eval supported=\$$cacheid 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17795$as_echo "$supported" >&6; } 17796 if test "$supported" = "yes" ; then 17797 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 17798 found="yes" 17799 fi 17800 fi 17801 17802 17803 17804if test "x$STRICT_COMPILE" = "xyes"; then 17805 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 17806 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 17807fi 17808 17809 17810 17811 17812 17813 17814cat >>confdefs.h <<_ACEOF 17815#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 17816_ACEOF 17817 17818 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 17819 if test "x$PVM" = "x"; then 17820 PVM="0" 17821 fi 17822 17823cat >>confdefs.h <<_ACEOF 17824#define PACKAGE_VERSION_MINOR $PVM 17825_ACEOF 17826 17827 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 17828 if test "x$PVP" = "x"; then 17829 PVP="0" 17830 fi 17831 17832cat >>confdefs.h <<_ACEOF 17833#define PACKAGE_VERSION_PATCHLEVEL $PVP 17834_ACEOF 17835 17836 17837 17838CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 17839mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 17840|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 17841echo 'git directory not found: installing possibly empty changelog.' >&2)" 17842 17843 17844 17845 17846macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 17847INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 17848mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 17849|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 17850echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 17851 17852 17853 17854 17855 17856 17857if test x$APP_MAN_SUFFIX = x ; then 17858 APP_MAN_SUFFIX=1 17859fi 17860if test x$APP_MAN_DIR = x ; then 17861 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 17862fi 17863 17864if test x$LIB_MAN_SUFFIX = x ; then 17865 LIB_MAN_SUFFIX=3 17866fi 17867if test x$LIB_MAN_DIR = x ; then 17868 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 17869fi 17870 17871if test x$FILE_MAN_SUFFIX = x ; then 17872 case $host_os in 17873 solaris*) FILE_MAN_SUFFIX=4 ;; 17874 *) FILE_MAN_SUFFIX=5 ;; 17875 esac 17876fi 17877if test x$FILE_MAN_DIR = x ; then 17878 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 17879fi 17880 17881if test x$MISC_MAN_SUFFIX = x ; then 17882 case $host_os in 17883 solaris*) MISC_MAN_SUFFIX=5 ;; 17884 *) MISC_MAN_SUFFIX=7 ;; 17885 esac 17886fi 17887if test x$MISC_MAN_DIR = x ; then 17888 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 17889fi 17890 17891if test x$DRIVER_MAN_SUFFIX = x ; then 17892 case $host_os in 17893 solaris*) DRIVER_MAN_SUFFIX=7 ;; 17894 *) DRIVER_MAN_SUFFIX=4 ;; 17895 esac 17896fi 17897if test x$DRIVER_MAN_DIR = x ; then 17898 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 17899fi 17900 17901if test x$ADMIN_MAN_SUFFIX = x ; then 17902 case $host_os in 17903 solaris*) ADMIN_MAN_SUFFIX=1m ;; 17904 *) ADMIN_MAN_SUFFIX=8 ;; 17905 esac 17906fi 17907if test x$ADMIN_MAN_DIR = x ; then 17908 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 17909fi 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925XORG_MAN_PAGE="X Version 11" 17926 17927MAN_SUBSTS="\ 17928 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17929 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 17930 -e 's|__xservername__|Xorg|g' \ 17931 -e 's|__xconfigfile__|xorg.conf|g' \ 17932 -e 's|__projectroot__|\$(prefix)|g' \ 17933 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 17934 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 17935 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 17936 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 17937 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 17938 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 17939 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 17940 17941 17942 17943# Check whether --enable-silent-rules was given. 17944if test "${enable_silent_rules+set}" = set; then : 17945 enableval=$enable_silent_rules; 17946fi 17947 17948case $enable_silent_rules in # ((( 17949 yes) AM_DEFAULT_VERBOSITY=0;; 17950 no) AM_DEFAULT_VERBOSITY=1;; 17951 *) AM_DEFAULT_VERBOSITY=0;; 17952esac 17953am_make=${MAKE-make} 17954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 17955$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 17956if ${am_cv_make_support_nested_variables+:} false; then : 17957 $as_echo_n "(cached) " >&6 17958else 17959 if $as_echo 'TRUE=$(BAR$(V)) 17960BAR0=false 17961BAR1=true 17962V=1 17963am__doit: 17964 @$(TRUE) 17965.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 17966 am_cv_make_support_nested_variables=yes 17967else 17968 am_cv_make_support_nested_variables=no 17969fi 17970fi 17971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 17972$as_echo "$am_cv_make_support_nested_variables" >&6; } 17973if test $am_cv_make_support_nested_variables = yes; then 17974 AM_V='$(V)' 17975 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 17976else 17977 AM_V=$AM_DEFAULT_VERBOSITY 17978 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 17979fi 17980AM_BACKSLASH='\' 17981 17982 17983 17984# Check whether --enable-malloc0returnsnull was given. 17985if test "${enable_malloc0returnsnull+set}" = set; then : 17986 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 17987else 17988 MALLOC_ZERO_RETURNS_NULL=auto 17989fi 17990 17991 17992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 17993$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 17994if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 17995if ${xorg_cv_malloc0_returns_null+:} false; then : 17996 $as_echo_n "(cached) " >&6 17997else 17998 if test "$cross_compiling" = yes; then : 17999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18001as_fn_error $? "cannot run test program while cross compiling 18002See \`config.log' for more details" "$LINENO" 5; } 18003else 18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005/* end confdefs.h. */ 18006 18007#include <stdlib.h> 18008 18009int 18010main () 18011{ 18012 18013 char *m0, *r0, *c0, *p; 18014 m0 = malloc(0); 18015 p = malloc(10); 18016 r0 = realloc(p,0); 18017 c0 = calloc(0,10); 18018 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 18019 18020 ; 18021 return 0; 18022} 18023_ACEOF 18024if ac_fn_c_try_run "$LINENO"; then : 18025 xorg_cv_malloc0_returns_null=yes 18026else 18027 xorg_cv_malloc0_returns_null=no 18028fi 18029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18030 conftest.$ac_objext conftest.beam conftest.$ac_ext 18031fi 18032 18033fi 18034 18035MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 18036fi 18037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 18038$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 18039 18040if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 18041 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 18042 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 18043 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 18044else 18045 MALLOC_ZERO_CFLAGS="" 18046 XMALLOC_ZERO_CFLAGS="" 18047 XTMALLOC_ZERO_CFLAGS="" 18048fi 18049 18050 18051 18052 18053 18054 18055 18056# Check whether --enable-specs was given. 18057if test "${enable_specs+set}" = set; then : 18058 enableval=$enable_specs; build_specs=$enableval 18059else 18060 build_specs=yes 18061fi 18062 18063 18064 if test x$build_specs = xyes; then 18065 ENABLE_SPECS_TRUE= 18066 ENABLE_SPECS_FALSE='#' 18067else 18068 ENABLE_SPECS_TRUE='#' 18069 ENABLE_SPECS_FALSE= 18070fi 18071 18072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 18073$as_echo_n "checking whether to build functional specifications... " >&6; } 18074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 18075$as_echo "$build_specs" >&6; } 18076 18077 18078 18079 18080 18081# Check whether --with-xmlto was given. 18082if test "${with_xmlto+set}" = set; then : 18083 withval=$with_xmlto; use_xmlto=$withval 18084else 18085 use_xmlto=auto 18086fi 18087 18088 18089 18090if test "x$use_xmlto" = x"auto"; then 18091 # Extract the first word of "xmlto", so it can be a program name with args. 18092set dummy xmlto; ac_word=$2 18093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18094$as_echo_n "checking for $ac_word... " >&6; } 18095if ${ac_cv_path_XMLTO+:} false; then : 18096 $as_echo_n "(cached) " >&6 18097else 18098 case $XMLTO in 18099 [\\/]* | ?:[\\/]*) 18100 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18101 ;; 18102 *) 18103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18104for as_dir in $PATH 18105do 18106 IFS=$as_save_IFS 18107 test -z "$as_dir" && as_dir=. 18108 for ac_exec_ext in '' $ac_executable_extensions; do 18109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18110 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18112 break 2 18113 fi 18114done 18115 done 18116IFS=$as_save_IFS 18117 18118 ;; 18119esac 18120fi 18121XMLTO=$ac_cv_path_XMLTO 18122if test -n "$XMLTO"; then 18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18124$as_echo "$XMLTO" >&6; } 18125else 18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18127$as_echo "no" >&6; } 18128fi 18129 18130 18131 if test "x$XMLTO" = "x"; then 18132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18133$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18134 have_xmlto=no 18135 else 18136 have_xmlto=yes 18137 fi 18138elif test "x$use_xmlto" = x"yes" ; then 18139 # Extract the first word of "xmlto", so it can be a program name with args. 18140set dummy xmlto; ac_word=$2 18141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18142$as_echo_n "checking for $ac_word... " >&6; } 18143if ${ac_cv_path_XMLTO+:} false; then : 18144 $as_echo_n "(cached) " >&6 18145else 18146 case $XMLTO in 18147 [\\/]* | ?:[\\/]*) 18148 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18149 ;; 18150 *) 18151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18152for as_dir in $PATH 18153do 18154 IFS=$as_save_IFS 18155 test -z "$as_dir" && as_dir=. 18156 for ac_exec_ext in '' $ac_executable_extensions; do 18157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18158 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18160 break 2 18161 fi 18162done 18163 done 18164IFS=$as_save_IFS 18165 18166 ;; 18167esac 18168fi 18169XMLTO=$ac_cv_path_XMLTO 18170if test -n "$XMLTO"; then 18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18172$as_echo "$XMLTO" >&6; } 18173else 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18175$as_echo "no" >&6; } 18176fi 18177 18178 18179 if test "x$XMLTO" = "x"; then 18180 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18181 fi 18182 have_xmlto=yes 18183elif test "x$use_xmlto" = x"no" ; then 18184 if test "x$XMLTO" != "x"; then 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18186$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18187 fi 18188 have_xmlto=no 18189else 18190 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18191fi 18192 18193# Test for a minimum version of xmlto, if provided. 18194if test "$have_xmlto" = yes; then 18195 # scrape the xmlto version 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18197$as_echo_n "checking the xmlto version... " >&6; } 18198 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18200$as_echo "$xmlto_version" >&6; } 18201 as_arg_v1=$xmlto_version 18202as_arg_v2=0.0.20 18203awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18204case $? in #( 18205 1) : 18206 if test "x$use_xmlto" = xauto; then 18207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 18208$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 18209 have_xmlto=no 18210 else 18211 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 18212 fi ;; #( 18213 0) : 18214 ;; #( 18215 2) : 18216 ;; #( 18217 *) : 18218 ;; 18219esac 18220fi 18221 18222# Test for the ability of xmlto to generate a text target 18223have_xmlto_text=no 18224cat > conftest.xml << "EOF" 18225EOF 18226if test "$have_xmlto" = yes; then : 18227 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18228 have_xmlto_text=yes 18229else 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18231$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18232fi 18233fi 18234rm -f conftest.xml 18235 if test $have_xmlto_text = yes; then 18236 HAVE_XMLTO_TEXT_TRUE= 18237 HAVE_XMLTO_TEXT_FALSE='#' 18238else 18239 HAVE_XMLTO_TEXT_TRUE='#' 18240 HAVE_XMLTO_TEXT_FALSE= 18241fi 18242 18243 if test "$have_xmlto" = yes; then 18244 HAVE_XMLTO_TRUE= 18245 HAVE_XMLTO_FALSE='#' 18246else 18247 HAVE_XMLTO_TRUE='#' 18248 HAVE_XMLTO_FALSE= 18249fi 18250 18251 18252 18253 18254 18255 18256# Check whether --with-fop was given. 18257if test "${with_fop+set}" = set; then : 18258 withval=$with_fop; use_fop=$withval 18259else 18260 use_fop=auto 18261fi 18262 18263 18264 18265if test "x$use_fop" = x"auto"; then 18266 # Extract the first word of "fop", so it can be a program name with args. 18267set dummy fop; ac_word=$2 18268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18269$as_echo_n "checking for $ac_word... " >&6; } 18270if ${ac_cv_path_FOP+:} false; then : 18271 $as_echo_n "(cached) " >&6 18272else 18273 case $FOP in 18274 [\\/]* | ?:[\\/]*) 18275 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18276 ;; 18277 *) 18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18279for as_dir in $PATH 18280do 18281 IFS=$as_save_IFS 18282 test -z "$as_dir" && as_dir=. 18283 for ac_exec_ext in '' $ac_executable_extensions; do 18284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18285 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18287 break 2 18288 fi 18289done 18290 done 18291IFS=$as_save_IFS 18292 18293 ;; 18294esac 18295fi 18296FOP=$ac_cv_path_FOP 18297if test -n "$FOP"; then 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18299$as_echo "$FOP" >&6; } 18300else 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18302$as_echo "no" >&6; } 18303fi 18304 18305 18306 if test "x$FOP" = "x"; then 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18308$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18309 have_fop=no 18310 else 18311 have_fop=yes 18312 fi 18313elif test "x$use_fop" = x"yes" ; then 18314 # Extract the first word of "fop", so it can be a program name with args. 18315set dummy fop; ac_word=$2 18316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18317$as_echo_n "checking for $ac_word... " >&6; } 18318if ${ac_cv_path_FOP+:} false; then : 18319 $as_echo_n "(cached) " >&6 18320else 18321 case $FOP in 18322 [\\/]* | ?:[\\/]*) 18323 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18324 ;; 18325 *) 18326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18327for as_dir in $PATH 18328do 18329 IFS=$as_save_IFS 18330 test -z "$as_dir" && as_dir=. 18331 for ac_exec_ext in '' $ac_executable_extensions; do 18332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18333 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18335 break 2 18336 fi 18337done 18338 done 18339IFS=$as_save_IFS 18340 18341 ;; 18342esac 18343fi 18344FOP=$ac_cv_path_FOP 18345if test -n "$FOP"; then 18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18347$as_echo "$FOP" >&6; } 18348else 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18350$as_echo "no" >&6; } 18351fi 18352 18353 18354 if test "x$FOP" = "x"; then 18355 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18356 fi 18357 have_fop=yes 18358elif test "x$use_fop" = x"no" ; then 18359 if test "x$FOP" != "x"; then 18360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18361$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18362 fi 18363 have_fop=no 18364else 18365 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18366fi 18367 18368# Test for a minimum version of fop, if provided. 18369 18370 if test "$have_fop" = yes; then 18371 HAVE_FOP_TRUE= 18372 HAVE_FOP_FALSE='#' 18373else 18374 HAVE_FOP_TRUE='#' 18375 HAVE_FOP_FALSE= 18376fi 18377 18378 18379 18380 18381# Preserves the interface, should it be implemented later 18382 18383 18384 18385# Check whether --with-xsltproc was given. 18386if test "${with_xsltproc+set}" = set; then : 18387 withval=$with_xsltproc; use_xsltproc=$withval 18388else 18389 use_xsltproc=auto 18390fi 18391 18392 18393 18394if test "x$use_xsltproc" = x"auto"; then 18395 # Extract the first word of "xsltproc", so it can be a program name with args. 18396set dummy xsltproc; ac_word=$2 18397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18398$as_echo_n "checking for $ac_word... " >&6; } 18399if ${ac_cv_path_XSLTPROC+:} false; then : 18400 $as_echo_n "(cached) " >&6 18401else 18402 case $XSLTPROC in 18403 [\\/]* | ?:[\\/]*) 18404 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18405 ;; 18406 *) 18407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18408for as_dir in $PATH 18409do 18410 IFS=$as_save_IFS 18411 test -z "$as_dir" && as_dir=. 18412 for ac_exec_ext in '' $ac_executable_extensions; do 18413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18414 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18416 break 2 18417 fi 18418done 18419 done 18420IFS=$as_save_IFS 18421 18422 ;; 18423esac 18424fi 18425XSLTPROC=$ac_cv_path_XSLTPROC 18426if test -n "$XSLTPROC"; then 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18428$as_echo "$XSLTPROC" >&6; } 18429else 18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18431$as_echo "no" >&6; } 18432fi 18433 18434 18435 if test "x$XSLTPROC" = "x"; then 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18437$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18438 have_xsltproc=no 18439 else 18440 have_xsltproc=yes 18441 fi 18442elif test "x$use_xsltproc" = x"yes" ; then 18443 # Extract the first word of "xsltproc", so it can be a program name with args. 18444set dummy xsltproc; ac_word=$2 18445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18446$as_echo_n "checking for $ac_word... " >&6; } 18447if ${ac_cv_path_XSLTPROC+:} false; then : 18448 $as_echo_n "(cached) " >&6 18449else 18450 case $XSLTPROC in 18451 [\\/]* | ?:[\\/]*) 18452 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18453 ;; 18454 *) 18455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18456for as_dir in $PATH 18457do 18458 IFS=$as_save_IFS 18459 test -z "$as_dir" && as_dir=. 18460 for ac_exec_ext in '' $ac_executable_extensions; do 18461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18462 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18464 break 2 18465 fi 18466done 18467 done 18468IFS=$as_save_IFS 18469 18470 ;; 18471esac 18472fi 18473XSLTPROC=$ac_cv_path_XSLTPROC 18474if test -n "$XSLTPROC"; then 18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18476$as_echo "$XSLTPROC" >&6; } 18477else 18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18479$as_echo "no" >&6; } 18480fi 18481 18482 18483 if test "x$XSLTPROC" = "x"; then 18484 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18485 fi 18486 have_xsltproc=yes 18487elif test "x$use_xsltproc" = x"no" ; then 18488 if test "x$XSLTPROC" != "x"; then 18489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18490$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18491 fi 18492 have_xsltproc=no 18493else 18494 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18495fi 18496 18497 if test "$have_xsltproc" = yes; then 18498 HAVE_XSLTPROC_TRUE= 18499 HAVE_XSLTPROC_FALSE='#' 18500else 18501 HAVE_XSLTPROC_TRUE='#' 18502 HAVE_XSLTPROC_FALSE= 18503fi 18504 18505 18506 18507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.01" >&5 18508$as_echo_n "checking for X.Org SGML entities >= 1.01... " >&6; } 18509XORG_SGML_PATH= 18510if test -n "$PKG_CONFIG" && \ 18511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.01\""; } >&5 18512 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.01") 2>&5 18513 ac_status=$? 18514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18515 test $ac_status = 0; }; then 18516 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18517else 18518 : 18519 18520fi 18521 18522# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18523# the path and the name of the doc stylesheet 18524if test "x$XORG_SGML_PATH" != "x" ; then 18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18526$as_echo "$XORG_SGML_PATH" >&6; } 18527 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18528 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18529else 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18531$as_echo "no" >&6; } 18532fi 18533 18534 18535 18536 18537 if test "x$XSL_STYLESHEET" != "x"; then 18538 HAVE_STYLESHEETS_TRUE= 18539 HAVE_STYLESHEETS_FALSE='#' 18540else 18541 HAVE_STYLESHEETS_TRUE='#' 18542 HAVE_STYLESHEETS_FALSE= 18543fi 18544 18545 18546 18547 18548for ac_prog in cpp 18549do 18550 # Extract the first word of "$ac_prog", so it can be a program name with args. 18551set dummy $ac_prog; ac_word=$2 18552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18553$as_echo_n "checking for $ac_word... " >&6; } 18554if ${ac_cv_path_RAWCPP+:} false; then : 18555 $as_echo_n "(cached) " >&6 18556else 18557 case $RAWCPP in 18558 [\\/]* | ?:[\\/]*) 18559 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 18560 ;; 18561 *) 18562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18563as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 18564for as_dir in $as_dummy 18565do 18566 IFS=$as_save_IFS 18567 test -z "$as_dir" && as_dir=. 18568 for ac_exec_ext in '' $ac_executable_extensions; do 18569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18570 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 18571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18572 break 2 18573 fi 18574done 18575 done 18576IFS=$as_save_IFS 18577 18578 ;; 18579esac 18580fi 18581RAWCPP=$ac_cv_path_RAWCPP 18582if test -n "$RAWCPP"; then 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 18584$as_echo "$RAWCPP" >&6; } 18585else 18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18587$as_echo "no" >&6; } 18588fi 18589 18590 18591 test -n "$RAWCPP" && break 18592done 18593test -n "$RAWCPP" || RAWCPP="${CPP}" 18594 18595 18596# Check for flag to avoid builtin definitions - assumes unix is predefined, 18597# which is not the best choice for supporting other OS'es, but covers most 18598# of the ones we need for now. 18599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 18600$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 18601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18602/* end confdefs.h. */ 18603Does cpp redefine unix ? 18604_ACEOF 18605if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18607$as_echo "no" >&6; } 18608else 18609 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18610 RAWCPPFLAGS=-undef 18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18612$as_echo "yes" >&6; } 18613 # under Cygwin unix is still defined even with -undef 18614 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 18615 RAWCPPFLAGS="-undef -ansi" 18616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 18617$as_echo "yes, with -ansi" >&6; } 18618 else 18619 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 18620 fi 18621fi 18622rm -f conftest.$ac_ext 18623 18624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 18625$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 18626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18627/* end confdefs.h. */ 18628Does cpp preserve "whitespace"? 18629_ACEOF 18630if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18632$as_echo "no" >&6; } 18633else 18634 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 18635 TRADITIONALCPPFLAGS="-traditional" 18636 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18638$as_echo "yes" >&6; } 18639 else 18640 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 18641 fi 18642fi 18643rm -f conftest.$ac_ext 18644 18645 18646 18647 18648 18649# Preserves the interface, should it be implemented later 18650 18651 18652 18653# Check whether --with-perl was given. 18654if test "${with_perl+set}" = set; then : 18655 withval=$with_perl; use_perl=$withval 18656else 18657 use_perl=auto 18658fi 18659 18660 18661 18662if test "x$use_perl" = x"auto"; then 18663 # Extract the first word of "perl", so it can be a program name with args. 18664set dummy perl; ac_word=$2 18665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18666$as_echo_n "checking for $ac_word... " >&6; } 18667if ${ac_cv_path_PERL+:} false; then : 18668 $as_echo_n "(cached) " >&6 18669else 18670 case $PERL in 18671 [\\/]* | ?:[\\/]*) 18672 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18673 ;; 18674 *) 18675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18676for as_dir in $PATH 18677do 18678 IFS=$as_save_IFS 18679 test -z "$as_dir" && as_dir=. 18680 for ac_exec_ext in '' $ac_executable_extensions; do 18681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18682 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18684 break 2 18685 fi 18686done 18687 done 18688IFS=$as_save_IFS 18689 18690 ;; 18691esac 18692fi 18693PERL=$ac_cv_path_PERL 18694if test -n "$PERL"; then 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18696$as_echo "$PERL" >&6; } 18697else 18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18699$as_echo "no" >&6; } 18700fi 18701 18702 18703 if test "x$PERL" = "x"; then 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - cannot extract information and report" >&5 18705$as_echo "$as_me: WARNING: perl not found - cannot extract information and report" >&2;} 18706 have_perl=no 18707 else 18708 have_perl=yes 18709 fi 18710elif test "x$use_perl" = x"yes" ; then 18711 # Extract the first word of "perl", so it can be a program name with args. 18712set dummy perl; ac_word=$2 18713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18714$as_echo_n "checking for $ac_word... " >&6; } 18715if ${ac_cv_path_PERL+:} false; then : 18716 $as_echo_n "(cached) " >&6 18717else 18718 case $PERL in 18719 [\\/]* | ?:[\\/]*) 18720 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 18721 ;; 18722 *) 18723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18724for as_dir in $PATH 18725do 18726 IFS=$as_save_IFS 18727 test -z "$as_dir" && as_dir=. 18728 for ac_exec_ext in '' $ac_executable_extensions; do 18729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18730 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 18731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18732 break 2 18733 fi 18734done 18735 done 18736IFS=$as_save_IFS 18737 18738 ;; 18739esac 18740fi 18741PERL=$ac_cv_path_PERL 18742if test -n "$PERL"; then 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 18744$as_echo "$PERL" >&6; } 18745else 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18747$as_echo "no" >&6; } 18748fi 18749 18750 18751 if test "x$PERL" = "x"; then 18752 as_fn_error $? "--with-perl=yes specified but perl not found in PATH" "$LINENO" 5 18753 fi 18754 have_perl=yes 18755elif test "x$use_perl" = x"no" ; then 18756 if test "x$PERL" != "x"; then 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&5 18758$as_echo "$as_me: WARNING: ignoring PERL environment variable since --with-perl=no was specified" >&2;} 18759 fi 18760 have_perl=no 18761else 18762 as_fn_error $? "--with-perl expects 'yes' or 'no'" "$LINENO" 5 18763fi 18764 18765 if test "$have_perl" = yes; then 18766 HAVE_PERL_TRUE= 18767 HAVE_PERL_FALSE='#' 18768else 18769 HAVE_PERL_TRUE='#' 18770 HAVE_PERL_FALSE= 18771fi 18772 18773 18774 18775 18776# Checks for header files. 18777ac_fn_c_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 18778if test "x$ac_cv_header_alloca_h" = xyes; then : 18779 18780$as_echo "#define INCLUDE_ALLOCA_H 1" >>confdefs.h 18781 18782fi 18783 18784 18785 18786# Obtain compiler/linker options for depedencies 18787 18788pkg_failed=no 18789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XT" >&5 18790$as_echo_n "checking for XT... " >&6; } 18791 18792if test -n "$XT_CFLAGS"; then 18793 pkg_cv_XT_CFLAGS="$XT_CFLAGS" 18794 elif test -n "$PKG_CONFIG"; then 18795 if test -n "$PKG_CONFIG" && \ 18796 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 18797 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 18798 ac_status=$? 18799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18800 test $ac_status = 0; }; then 18801 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm ice x11 xproto kbproto" 2>/dev/null` 18802else 18803 pkg_failed=yes 18804fi 18805 else 18806 pkg_failed=untried 18807fi 18808if test -n "$XT_LIBS"; then 18809 pkg_cv_XT_LIBS="$XT_LIBS" 18810 elif test -n "$PKG_CONFIG"; then 18811 if test -n "$PKG_CONFIG" && \ 18812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sm ice x11 xproto kbproto\""; } >&5 18813 ($PKG_CONFIG --exists --print-errors "sm ice x11 xproto kbproto") 2>&5 18814 ac_status=$? 18815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18816 test $ac_status = 0; }; then 18817 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm ice x11 xproto kbproto" 2>/dev/null` 18818else 18819 pkg_failed=yes 18820fi 18821 else 18822 pkg_failed=untried 18823fi 18824 18825 18826 18827if test $pkg_failed = yes; then 18828 18829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18830 _pkg_short_errors_supported=yes 18831else 18832 _pkg_short_errors_supported=no 18833fi 18834 if test $_pkg_short_errors_supported = yes; then 18835 XT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sm ice x11 xproto kbproto" 2>&1` 18836 else 18837 XT_PKG_ERRORS=`$PKG_CONFIG --print-errors "sm ice x11 xproto kbproto" 2>&1` 18838 fi 18839 # Put the nasty error message in config.log where it belongs 18840 echo "$XT_PKG_ERRORS" >&5 18841 18842 as_fn_error $? "Package requirements (sm ice x11 xproto kbproto) were not met: 18843 18844$XT_PKG_ERRORS 18845 18846Consider adjusting the PKG_CONFIG_PATH environment variable if you 18847installed software in a non-standard prefix. 18848 18849Alternatively, you may set the environment variables XT_CFLAGS 18850and XT_LIBS to avoid the need to call pkg-config. 18851See the pkg-config man page for more details. 18852" "$LINENO" 5 18853elif test $pkg_failed = untried; then 18854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18856as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18857is in your PATH or set the PKG_CONFIG environment variable to the full 18858path to pkg-config. 18859 18860Alternatively, you may set the environment variables XT_CFLAGS 18861and XT_LIBS to avoid the need to call pkg-config. 18862See the pkg-config man page for more details. 18863 18864To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18865See \`config.log' for more details" "$LINENO" 5; } 18866else 18867 XT_CFLAGS=$pkg_cv_XT_CFLAGS 18868 XT_LIBS=$pkg_cv_XT_LIBS 18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18870$as_echo "yes" >&6; } 18871 : 18872fi 18873 18874# Set-up variables to use build machine compiler when cross-compiling 18875if test x"$CC_FOR_BUILD" = x; then 18876 if test x"$cross_compiling" = xyes; then 18877 for ac_prog in gcc cc 18878do 18879 # Extract the first word of "$ac_prog", so it can be a program name with args. 18880set dummy $ac_prog; ac_word=$2 18881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18882$as_echo_n "checking for $ac_word... " >&6; } 18883if ${ac_cv_prog_CC_FOR_BUILD+:} false; then : 18884 $as_echo_n "(cached) " >&6 18885else 18886 if test -n "$CC_FOR_BUILD"; then 18887 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 18888else 18889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18890for as_dir in $PATH 18891do 18892 IFS=$as_save_IFS 18893 test -z "$as_dir" && as_dir=. 18894 for ac_exec_ext in '' $ac_executable_extensions; do 18895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18896 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 18897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18898 break 2 18899 fi 18900done 18901 done 18902IFS=$as_save_IFS 18903 18904fi 18905fi 18906CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 18907if test -n "$CC_FOR_BUILD"; then 18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 18909$as_echo "$CC_FOR_BUILD" >&6; } 18910else 18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18912$as_echo "no" >&6; } 18913fi 18914 18915 18916 test -n "$CC_FOR_BUILD" && break 18917done 18918 18919 else 18920 CC_FOR_BUILD="$CC" 18921 fi 18922fi 18923 18924DEFAULT_CPPFLAGS_FOR_BUILD="${CPPFLAGS}" 18925ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 18926if test "x$ac_cv_func_asprintf" = xyes; then : 18927 DEFAULT_CPPFLAGS_FOR_BUILD="${DEFAULT_CPPFLAGS_FOR_BUILD} -DHAVE_ASPRINTF -D_GNU_SOURCE" 18928fi 18929 18930CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${DEFAULT_CPPFLAGS_FOR_BUILD}} 18931 18932DEFAULT_CFLAGS_FOR_BUILD="${CFLAGS} ${CWARNFLAGS}" 18933CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${DEFAULT_CFLAGS_FOR_BUILD}} 18934 18935LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} 18936 18937 18938# Map function checks to old Imake #defines 18939case $host_os in 18940 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 18941 darwin[789]*|darwin10*) ;; 18942 darwin*) 18943 _ac_xorg_macosx_version_min="" 18944 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 18945 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 18946 else 18947 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 18948 fi 18949 case $_ac_xorg_macosx_version_min in 18950 10.[0123456]|10.[0123456].*) ;; 18951 *) 18952 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 18953if test "x$ac_cv_func_poll" = xyes; then : 18954 18955$as_echo "#define USE_POLL 1" >>confdefs.h 18956 18957fi 18958 18959 ;; 18960 esac 18961 unset _ac_xorg_macosx_version_min 18962 ;; 18963 *) 18964 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 18965if test "x$ac_cv_func_poll" = xyes; then : 18966 18967$as_echo "#define USE_POLL 1" >>confdefs.h 18968 18969fi 18970 18971 ;; 18972esac 18973 18974# Link with winsock if mingw target 18975case $host_os in 18976 *mingw*) 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 18978$as_echo_n "checking for main in -lws2_32... " >&6; } 18979if ${ac_cv_lib_ws2_32_main+:} false; then : 18980 $as_echo_n "(cached) " >&6 18981else 18982 ac_check_lib_save_LIBS=$LIBS 18983LIBS="-lws2_32 $LIBS" 18984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18985/* end confdefs.h. */ 18986 18987 18988int 18989main () 18990{ 18991return main (); 18992 ; 18993 return 0; 18994} 18995_ACEOF 18996if ac_fn_c_try_link "$LINENO"; then : 18997 ac_cv_lib_ws2_32_main=yes 18998else 18999 ac_cv_lib_ws2_32_main=no 19000fi 19001rm -f core conftest.err conftest.$ac_objext \ 19002 conftest$ac_exeext conftest.$ac_ext 19003LIBS=$ac_check_lib_save_LIBS 19004fi 19005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19006$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19007if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19008 cat >>confdefs.h <<_ACEOF 19009#define HAVE_LIBWS2_32 1 19010_ACEOF 19011 19012 LIBS="-lws2_32 $LIBS" 19013 19014fi 19015ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 19016 19017 ;; 19018 *) 19019 ;; 19020esac 19021 19022# Options 19023# Check whether --enable-xkb was given. 19024if test "${enable_xkb+set}" = set; then : 19025 enableval=$enable_xkb; XKB="$enableval" 19026else 19027 XKB="yes" 19028fi 19029 19030if test "x$XKB" = "xyes" ; then 19031 19032$as_echo "#define XKB 1" >>confdefs.h 19033 19034fi 19035 19036# --enable-unit-tests 19037 19038 19039 19040 19041 19042# Check for different types of support on different platforms 19043case $host_os in 19044 solaris*) 19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19046$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19047if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19048 $as_echo_n "(cached) " >&6 19049else 19050 ac_check_lib_save_LIBS=$LIBS 19051LIBS="-lumem $LIBS" 19052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19053/* end confdefs.h. */ 19054 19055/* Override any GCC internal prototype to avoid an error. 19056 Use char because int might match the return type of a GCC 19057 builtin and then its argument prototype would still apply. */ 19058#ifdef __cplusplus 19059extern "C" 19060#endif 19061char umem_alloc (); 19062int 19063main () 19064{ 19065return umem_alloc (); 19066 ; 19067 return 0; 19068} 19069_ACEOF 19070if ac_fn_c_try_link "$LINENO"; then : 19071 ac_cv_lib_umem_umem_alloc=yes 19072else 19073 ac_cv_lib_umem_umem_alloc=no 19074fi 19075rm -f core conftest.err conftest.$ac_objext \ 19076 conftest$ac_exeext conftest.$ac_ext 19077LIBS=$ac_check_lib_save_LIBS 19078fi 19079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19080$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19081if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19082 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19083fi 19084 19085 ;; 19086 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19087 # both directly and inverted, so should not be 0 or 255. 19088 malloc_debug_env='MALLOC_PERTURB_=15' 19089 ;; 19090 darwin*) 19091 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 19092 ;; 19093 *bsd*) 19094 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 19095 ;; 19096esac 19097 19098# User supplied flags override default flags 19099if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 19100 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 19101fi 19102 19103XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 19104 19105 19106 19107 19108 19109 19110 19111# Check whether --enable-unit-tests was given. 19112if test "${enable_unit_tests+set}" = set; then : 19113 enableval=$enable_unit_tests; enable_unit_tests=$enableval 19114else 19115 enable_unit_tests=auto 19116fi 19117 19118 19119 if test "x$enable_unit_tests" != xno; then 19120 ENABLE_UNIT_TESTS_TRUE= 19121 ENABLE_UNIT_TESTS_FALSE='#' 19122else 19123 ENABLE_UNIT_TESTS_TRUE='#' 19124 ENABLE_UNIT_TESTS_FALSE= 19125fi 19126 19127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 19128$as_echo_n "checking whether to build unit test cases... " >&6; } 19129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 19130$as_echo "$enable_unit_tests" >&6; } 19131 19132 19133 19134 19135 19136# Check whether --with-glib was given. 19137if test "${with_glib+set}" = set; then : 19138 withval=$with_glib; with_glib=$withval 19139else 19140 with_glib=auto 19141fi 19142 19143 19144 19145have_glib=no 19146# Do not probe GLib if user explicitly disabled unit testing 19147if test "x$enable_unit_tests" != x"no"; then 19148 # Do not probe GLib if user explicitly disabled it 19149 if test "x$with_glib" != x"no"; then 19150 19151pkg_failed=no 19152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 19153$as_echo_n "checking for GLIB... " >&6; } 19154 19155if test -n "$GLIB_CFLAGS"; then 19156 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 19157 elif test -n "$PKG_CONFIG"; then 19158 if test -n "$PKG_CONFIG" && \ 19159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 19160 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 19161 ac_status=$? 19162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19163 test $ac_status = 0; }; then 19164 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null` 19165else 19166 pkg_failed=yes 19167fi 19168 else 19169 pkg_failed=untried 19170fi 19171if test -n "$GLIB_LIBS"; then 19172 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 19173 elif test -n "$PKG_CONFIG"; then 19174 if test -n "$PKG_CONFIG" && \ 19175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5 19176 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5 19177 ac_status=$? 19178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19179 test $ac_status = 0; }; then 19180 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null` 19181else 19182 pkg_failed=yes 19183fi 19184 else 19185 pkg_failed=untried 19186fi 19187 19188 19189 19190if test $pkg_failed = yes; then 19191 19192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19193 _pkg_short_errors_supported=yes 19194else 19195 _pkg_short_errors_supported=no 19196fi 19197 if test $_pkg_short_errors_supported = yes; then 19198 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.16" 2>&1` 19199 else 19200 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.16" 2>&1` 19201 fi 19202 # Put the nasty error message in config.log where it belongs 19203 echo "$GLIB_PKG_ERRORS" >&5 19204 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19206$as_echo "no" >&6; } 19207 have_glib=no 19208elif test $pkg_failed = untried; then 19209 have_glib=no 19210else 19211 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 19212 GLIB_LIBS=$pkg_cv_GLIB_LIBS 19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19214$as_echo "yes" >&6; } 19215 have_glib=yes 19216fi 19217 fi 19218fi 19219 19220# Not having GLib when unit testing has been explicitly requested is an error 19221if test "x$enable_unit_tests" = x"yes"; then 19222 if test "x$have_glib" = x"no"; then 19223 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19224 fi 19225fi 19226 19227# Having unit testing disabled when GLib has been explicitly requested is an error 19228if test "x$enable_unit_tests" = x"no"; then 19229 if test "x$with_glib" = x"yes"; then 19230 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 19231 fi 19232fi 19233 19234# Not having GLib when it has been explicitly requested is an error 19235if test "x$with_glib" = x"yes"; then 19236 if test "x$have_glib" = x"no"; then 19237 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5 19238 fi 19239fi 19240 19241 if test "$have_glib" = yes; then 19242 HAVE_GLIB_TRUE= 19243 HAVE_GLIB_FALSE='#' 19244else 19245 HAVE_GLIB_TRUE='#' 19246 HAVE_GLIB_FALSE= 19247fi 19248 19249 19250 19251# Memory checking support 19252case $host_os in 19253 solaris*) 19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 19255$as_echo_n "checking for umem_alloc in -lumem... " >&6; } 19256if ${ac_cv_lib_umem_umem_alloc+:} false; then : 19257 $as_echo_n "(cached) " >&6 19258else 19259 ac_check_lib_save_LIBS=$LIBS 19260LIBS="-lumem $LIBS" 19261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19262/* end confdefs.h. */ 19263 19264/* Override any GCC internal prototype to avoid an error. 19265 Use char because int might match the return type of a GCC 19266 builtin and then its argument prototype would still apply. */ 19267#ifdef __cplusplus 19268extern "C" 19269#endif 19270char umem_alloc (); 19271int 19272main () 19273{ 19274return umem_alloc (); 19275 ; 19276 return 0; 19277} 19278_ACEOF 19279if ac_fn_c_try_link "$LINENO"; then : 19280 ac_cv_lib_umem_umem_alloc=yes 19281else 19282 ac_cv_lib_umem_umem_alloc=no 19283fi 19284rm -f core conftest.err conftest.$ac_objext \ 19285 conftest$ac_exeext conftest.$ac_ext 19286LIBS=$ac_check_lib_save_LIBS 19287fi 19288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 19289$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } 19290if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : 19291 MALLOC_DEBUG_ENV='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 19292fi 19293 19294 ;; 19295 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 19296 # both directly and inverted, so should not be 0 or 255. 19297 MALLOC_DEBUG_ENV='MALLOC_PERTURB_=15' 19298 ;; 19299 *bsd*|darwin*) 19300 MALLOC_DEBUG_ENV='MallocPreScribble=1 MallocScribble=1' 19301 ;; 19302esac 19303 19304 19305# Replaces XFileSearchPathDefault from Imake configs 19306XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S' 19307 19308 19309# Check whether --with-xfile-search-path was given. 19310if test "${with_xfile_search_path+set}" = set; then : 19311 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval" 19312fi 19313 19314 19315 19316 19317# Check whether --with-appdefaultdir was given. 19318if test "${with_appdefaultdir+set}" = set; then : 19319 withval=$with_appdefaultdir; appdefaultdir="$withval" 19320else 19321 appdefaultdir=${datadir}/X11/app-defaults 19322fi 19323 19324 19325 prefix_NONE= 19326 exec_prefix_NONE= 19327 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19328 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19329 eval ax_define_dir="\"$appdefaultdir\"" 19330 eval ax_define_dir="\"$ax_define_dir\"" 19331 appdefaultdir="$ax_define_dir" 19332 19333 19334cat >>confdefs.h <<_ACEOF 19335#define appdefaultdir "$ax_define_dir" 19336_ACEOF 19337 19338 test "$prefix_NONE" && prefix=NONE 19339 test "$exec_prefix_NONE" && exec_prefix=NONE 19340 19341 19342# Replacement for Imake ToolkitStringsABIOptions, controls string tables 19343# generated by util/string.list in StringDefs.h & Shell.h 19344case $host_os in 19345 solaris*) 19346 # Solaris uses -intelabi even on SPARC 19347 STRINGSABIOPTIONS="-intelabi -solarisabinames" 19348 ;; 19349 sco* | svr4*) 19350 case $host_cpu in 19351 i*86) STRINGSABIOPTIONS="-intelabi" ;; 19352 *) STRINGSABIOPTIONS="" ;; 19353 esac 19354 ;; 19355esac 19356 19357 19358ERRORDBDIR=${datadir}/X11 19359 19360 19361case $host_os in 19362 darwin*) 19363 OS_CFLAGS="-Wl,-flat_namespace" 19364 ;; 19365 *) 19366 OS_CFLAGS= 19367 ;; 19368esac 19369 19370XT_CFLAGS="$XT_CFLAGS $OS_CFLAGS" 19371 19372ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile specs/Makefile test/Makefile xt.pc" 19373 19374cat >confcache <<\_ACEOF 19375# This file is a shell script that caches the results of configure 19376# tests run on this system so they can be shared between configure 19377# scripts and configure runs, see configure's option --config-cache. 19378# It is not useful on other systems. If it contains results you don't 19379# want to keep, you may remove or edit it. 19380# 19381# config.status only pays attention to the cache file if you give it 19382# the --recheck option to rerun configure. 19383# 19384# `ac_cv_env_foo' variables (set or unset) will be overridden when 19385# loading this file, other *unset* `ac_cv_foo' will be assigned the 19386# following values. 19387 19388_ACEOF 19389 19390# The following way of writing the cache mishandles newlines in values, 19391# but we know of no workaround that is simple, portable, and efficient. 19392# So, we kill variables containing newlines. 19393# Ultrix sh set writes to stderr and can't be redirected directly, 19394# and sets the high bit in the cache file unless we assign to the vars. 19395( 19396 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19397 eval ac_val=\$$ac_var 19398 case $ac_val in #( 19399 *${as_nl}*) 19400 case $ac_var in #( 19401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19403 esac 19404 case $ac_var in #( 19405 _ | IFS | as_nl) ;; #( 19406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19407 *) { eval $ac_var=; unset $ac_var;} ;; 19408 esac ;; 19409 esac 19410 done 19411 19412 (set) 2>&1 | 19413 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19414 *${as_nl}ac_space=\ *) 19415 # `set' does not quote correctly, so add quotes: double-quote 19416 # substitution turns \\\\ into \\, and sed turns \\ into \. 19417 sed -n \ 19418 "s/'/'\\\\''/g; 19419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19420 ;; #( 19421 *) 19422 # `set' quotes correctly as required by POSIX, so do not add quotes. 19423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19424 ;; 19425 esac | 19426 sort 19427) | 19428 sed ' 19429 /^ac_cv_env_/b end 19430 t clear 19431 :clear 19432 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19433 t end 19434 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19435 :end' >>confcache 19436if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19437 if test -w "$cache_file"; then 19438 if test "x$cache_file" != "x/dev/null"; then 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19440$as_echo "$as_me: updating cache $cache_file" >&6;} 19441 if test ! -f "$cache_file" || test -h "$cache_file"; then 19442 cat confcache >"$cache_file" 19443 else 19444 case $cache_file in #( 19445 */* | ?:*) 19446 mv -f confcache "$cache_file"$$ && 19447 mv -f "$cache_file"$$ "$cache_file" ;; #( 19448 *) 19449 mv -f confcache "$cache_file" ;; 19450 esac 19451 fi 19452 fi 19453 else 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19455$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19456 fi 19457fi 19458rm -f confcache 19459 19460test "x$prefix" = xNONE && prefix=$ac_default_prefix 19461# Let make expand exec_prefix. 19462test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19463 19464DEFS=-DHAVE_CONFIG_H 19465 19466ac_libobjs= 19467ac_ltlibobjs= 19468U= 19469for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19470 # 1. Remove the extension, and $U if already installed. 19471 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19472 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19473 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19474 # will be set to the directory where LIBOBJS objects are built. 19475 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19476 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19477done 19478LIBOBJS=$ac_libobjs 19479 19480LTLIBOBJS=$ac_ltlibobjs 19481 19482 19483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19484$as_echo_n "checking that generated files are newer than configure... " >&6; } 19485 if test -n "$am_sleep_pid"; then 19486 # Hide warnings about reused PIDs. 19487 wait $am_sleep_pid 2>/dev/null 19488 fi 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19490$as_echo "done" >&6; } 19491 if test -n "$EXEEXT"; then 19492 am__EXEEXT_TRUE= 19493 am__EXEEXT_FALSE='#' 19494else 19495 am__EXEEXT_TRUE='#' 19496 am__EXEEXT_FALSE= 19497fi 19498 19499if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19500 as_fn_error $? "conditional \"AMDEP\" was never defined. 19501Usually this means the macro was only invoked conditionally." "$LINENO" 5 19502fi 19503if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19504 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19505Usually this means the macro was only invoked conditionally." "$LINENO" 5 19506fi 19507if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 19508 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 19509Usually this means the macro was only invoked conditionally." "$LINENO" 5 19510fi 19511if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19512 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19513Usually this means the macro was only invoked conditionally." "$LINENO" 5 19514fi 19515if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19516 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19517Usually this means the macro was only invoked conditionally." "$LINENO" 5 19518fi 19519if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19520 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19521Usually this means the macro was only invoked conditionally." "$LINENO" 5 19522fi 19523if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 19524 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 19525Usually this means the macro was only invoked conditionally." "$LINENO" 5 19526fi 19527if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19528 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19529Usually this means the macro was only invoked conditionally." "$LINENO" 5 19530fi 19531if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 19532 as_fn_error $? "conditional \"HAVE_PERL\" was never defined. 19533Usually this means the macro was only invoked conditionally." "$LINENO" 5 19534fi 19535if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 19536 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 19537Usually this means the macro was only invoked conditionally." "$LINENO" 5 19538fi 19539if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then 19540 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. 19541Usually this means the macro was only invoked conditionally." "$LINENO" 5 19542fi 19543 19544: "${CONFIG_STATUS=./config.status}" 19545ac_write_fail=0 19546ac_clean_files_save=$ac_clean_files 19547ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19548{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19549$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19550as_write_fail=0 19551cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19552#! $SHELL 19553# Generated by $as_me. 19554# Run this file to recreate the current configuration. 19555# Compiler output produced by configure, useful for debugging 19556# configure, is in config.log if it exists. 19557 19558debug=false 19559ac_cs_recheck=false 19560ac_cs_silent=false 19561 19562SHELL=\${CONFIG_SHELL-$SHELL} 19563export SHELL 19564_ASEOF 19565cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19566## -------------------- ## 19567## M4sh Initialization. ## 19568## -------------------- ## 19569 19570# Be more Bourne compatible 19571DUALCASE=1; export DUALCASE # for MKS sh 19572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19573 emulate sh 19574 NULLCMD=: 19575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19576 # is contrary to our usage. Disable this feature. 19577 alias -g '${1+"$@"}'='"$@"' 19578 setopt NO_GLOB_SUBST 19579else 19580 case `(set -o) 2>/dev/null` in #( 19581 *posix*) : 19582 set -o posix ;; #( 19583 *) : 19584 ;; 19585esac 19586fi 19587 19588 19589as_nl=' 19590' 19591export as_nl 19592# Printing a long string crashes Solaris 7 /usr/bin/printf. 19593as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19594as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19595as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19596# Prefer a ksh shell builtin over an external printf program on Solaris, 19597# but without wasting forks for bash or zsh. 19598if test -z "$BASH_VERSION$ZSH_VERSION" \ 19599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19600 as_echo='print -r --' 19601 as_echo_n='print -rn --' 19602elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19603 as_echo='printf %s\n' 19604 as_echo_n='printf %s' 19605else 19606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19608 as_echo_n='/usr/ucb/echo -n' 19609 else 19610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19611 as_echo_n_body='eval 19612 arg=$1; 19613 case $arg in #( 19614 *"$as_nl"*) 19615 expr "X$arg" : "X\\(.*\\)$as_nl"; 19616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19617 esac; 19618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19619 ' 19620 export as_echo_n_body 19621 as_echo_n='sh -c $as_echo_n_body as_echo' 19622 fi 19623 export as_echo_body 19624 as_echo='sh -c $as_echo_body as_echo' 19625fi 19626 19627# The user is always right. 19628if test "${PATH_SEPARATOR+set}" != set; then 19629 PATH_SEPARATOR=: 19630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19632 PATH_SEPARATOR=';' 19633 } 19634fi 19635 19636 19637# IFS 19638# We need space, tab and new line, in precisely that order. Quoting is 19639# there to prevent editors from complaining about space-tab. 19640# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19641# splitting by setting IFS to empty value.) 19642IFS=" "" $as_nl" 19643 19644# Find who we are. Look in the path if we contain no directory separator. 19645as_myself= 19646case $0 in #(( 19647 *[\\/]* ) as_myself=$0 ;; 19648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19649for as_dir in $PATH 19650do 19651 IFS=$as_save_IFS 19652 test -z "$as_dir" && as_dir=. 19653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19654 done 19655IFS=$as_save_IFS 19656 19657 ;; 19658esac 19659# We did not find ourselves, most probably we were run as `sh COMMAND' 19660# in which case we are not to be found in the path. 19661if test "x$as_myself" = x; then 19662 as_myself=$0 19663fi 19664if test ! -f "$as_myself"; then 19665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19666 exit 1 19667fi 19668 19669# Unset variables that we do not need and which cause bugs (e.g. in 19670# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19671# suppresses any "Segmentation fault" message there. '((' could 19672# trigger a bug in pdksh 5.2.14. 19673for as_var in BASH_ENV ENV MAIL MAILPATH 19674do eval test x\${$as_var+set} = xset \ 19675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19676done 19677PS1='$ ' 19678PS2='> ' 19679PS4='+ ' 19680 19681# NLS nuisances. 19682LC_ALL=C 19683export LC_ALL 19684LANGUAGE=C 19685export LANGUAGE 19686 19687# CDPATH. 19688(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19689 19690 19691# as_fn_error STATUS ERROR [LINENO LOG_FD] 19692# ---------------------------------------- 19693# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19694# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19695# script with STATUS, using 1 if that was 0. 19696as_fn_error () 19697{ 19698 as_status=$1; test $as_status -eq 0 && as_status=1 19699 if test "$4"; then 19700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19702 fi 19703 $as_echo "$as_me: error: $2" >&2 19704 as_fn_exit $as_status 19705} # as_fn_error 19706 19707 19708# as_fn_set_status STATUS 19709# ----------------------- 19710# Set $? to STATUS, without forking. 19711as_fn_set_status () 19712{ 19713 return $1 19714} # as_fn_set_status 19715 19716# as_fn_exit STATUS 19717# ----------------- 19718# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19719as_fn_exit () 19720{ 19721 set +e 19722 as_fn_set_status $1 19723 exit $1 19724} # as_fn_exit 19725 19726# as_fn_unset VAR 19727# --------------- 19728# Portably unset VAR. 19729as_fn_unset () 19730{ 19731 { eval $1=; unset $1;} 19732} 19733as_unset=as_fn_unset 19734# as_fn_append VAR VALUE 19735# ---------------------- 19736# Append the text in VALUE to the end of the definition contained in VAR. Take 19737# advantage of any shell optimizations that allow amortized linear growth over 19738# repeated appends, instead of the typical quadratic growth present in naive 19739# implementations. 19740if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19741 eval 'as_fn_append () 19742 { 19743 eval $1+=\$2 19744 }' 19745else 19746 as_fn_append () 19747 { 19748 eval $1=\$$1\$2 19749 } 19750fi # as_fn_append 19751 19752# as_fn_arith ARG... 19753# ------------------ 19754# Perform arithmetic evaluation on the ARGs, and store the result in the 19755# global $as_val. Take advantage of shells that can avoid forks. The arguments 19756# must be portable across $(()) and expr. 19757if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19758 eval 'as_fn_arith () 19759 { 19760 as_val=$(( $* )) 19761 }' 19762else 19763 as_fn_arith () 19764 { 19765 as_val=`expr "$@" || test $? -eq 1` 19766 } 19767fi # as_fn_arith 19768 19769 19770if expr a : '\(a\)' >/dev/null 2>&1 && 19771 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19772 as_expr=expr 19773else 19774 as_expr=false 19775fi 19776 19777if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19778 as_basename=basename 19779else 19780 as_basename=false 19781fi 19782 19783if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19784 as_dirname=dirname 19785else 19786 as_dirname=false 19787fi 19788 19789as_me=`$as_basename -- "$0" || 19790$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19791 X"$0" : 'X\(//\)$' \| \ 19792 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19793$as_echo X/"$0" | 19794 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19795 s//\1/ 19796 q 19797 } 19798 /^X\/\(\/\/\)$/{ 19799 s//\1/ 19800 q 19801 } 19802 /^X\/\(\/\).*/{ 19803 s//\1/ 19804 q 19805 } 19806 s/.*/./; q'` 19807 19808# Avoid depending upon Character Ranges. 19809as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19810as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19811as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19812as_cr_digits='0123456789' 19813as_cr_alnum=$as_cr_Letters$as_cr_digits 19814 19815ECHO_C= ECHO_N= ECHO_T= 19816case `echo -n x` in #((((( 19817-n*) 19818 case `echo 'xy\c'` in 19819 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19820 xy) ECHO_C='\c';; 19821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19822 ECHO_T=' ';; 19823 esac;; 19824*) 19825 ECHO_N='-n';; 19826esac 19827 19828rm -f conf$$ conf$$.exe conf$$.file 19829if test -d conf$$.dir; then 19830 rm -f conf$$.dir/conf$$.file 19831else 19832 rm -f conf$$.dir 19833 mkdir conf$$.dir 2>/dev/null 19834fi 19835if (echo >conf$$.file) 2>/dev/null; then 19836 if ln -s conf$$.file conf$$ 2>/dev/null; then 19837 as_ln_s='ln -s' 19838 # ... but there are two gotchas: 19839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19841 # In both cases, we have to default to `cp -pR'. 19842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19843 as_ln_s='cp -pR' 19844 elif ln conf$$.file conf$$ 2>/dev/null; then 19845 as_ln_s=ln 19846 else 19847 as_ln_s='cp -pR' 19848 fi 19849else 19850 as_ln_s='cp -pR' 19851fi 19852rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19853rmdir conf$$.dir 2>/dev/null 19854 19855 19856# as_fn_mkdir_p 19857# ------------- 19858# Create "$as_dir" as a directory, including parents if necessary. 19859as_fn_mkdir_p () 19860{ 19861 19862 case $as_dir in #( 19863 -*) as_dir=./$as_dir;; 19864 esac 19865 test -d "$as_dir" || eval $as_mkdir_p || { 19866 as_dirs= 19867 while :; do 19868 case $as_dir in #( 19869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19870 *) as_qdir=$as_dir;; 19871 esac 19872 as_dirs="'$as_qdir' $as_dirs" 19873 as_dir=`$as_dirname -- "$as_dir" || 19874$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19875 X"$as_dir" : 'X\(//\)[^/]' \| \ 19876 X"$as_dir" : 'X\(//\)$' \| \ 19877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19878$as_echo X"$as_dir" | 19879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19880 s//\1/ 19881 q 19882 } 19883 /^X\(\/\/\)[^/].*/{ 19884 s//\1/ 19885 q 19886 } 19887 /^X\(\/\/\)$/{ 19888 s//\1/ 19889 q 19890 } 19891 /^X\(\/\).*/{ 19892 s//\1/ 19893 q 19894 } 19895 s/.*/./; q'` 19896 test -d "$as_dir" && break 19897 done 19898 test -z "$as_dirs" || eval "mkdir $as_dirs" 19899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19900 19901 19902} # as_fn_mkdir_p 19903if mkdir -p . 2>/dev/null; then 19904 as_mkdir_p='mkdir -p "$as_dir"' 19905else 19906 test -d ./-p && rmdir ./-p 19907 as_mkdir_p=false 19908fi 19909 19910 19911# as_fn_executable_p FILE 19912# ----------------------- 19913# Test if FILE is an executable regular file. 19914as_fn_executable_p () 19915{ 19916 test -f "$1" && test -x "$1" 19917} # as_fn_executable_p 19918as_test_x='test -x' 19919as_executable_p=as_fn_executable_p 19920 19921# Sed expression to map a string onto a valid CPP name. 19922as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19923 19924# Sed expression to map a string onto a valid variable name. 19925as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19926 19927 19928exec 6>&1 19929## ----------------------------------- ## 19930## Main body of $CONFIG_STATUS script. ## 19931## ----------------------------------- ## 19932_ASEOF 19933test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19934 19935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19936# Save the log message, to keep $0 and so on meaningful, and to 19937# report actual input values of CONFIG_FILES etc. instead of their 19938# values after options handling. 19939ac_log=" 19940This file was extended by libXt $as_me 1.1.5, which was 19941generated by GNU Autoconf 2.69. Invocation command line was 19942 19943 CONFIG_FILES = $CONFIG_FILES 19944 CONFIG_HEADERS = $CONFIG_HEADERS 19945 CONFIG_LINKS = $CONFIG_LINKS 19946 CONFIG_COMMANDS = $CONFIG_COMMANDS 19947 $ $0 $@ 19948 19949on `(hostname || uname -n) 2>/dev/null | sed 1q` 19950" 19951 19952_ACEOF 19953 19954case $ac_config_files in *" 19955"*) set x $ac_config_files; shift; ac_config_files=$*;; 19956esac 19957 19958case $ac_config_headers in *" 19959"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19960esac 19961 19962 19963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19964# Files that config.status was made for. 19965config_files="$ac_config_files" 19966config_headers="$ac_config_headers" 19967config_commands="$ac_config_commands" 19968 19969_ACEOF 19970 19971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19972ac_cs_usage="\ 19973\`$as_me' instantiates files and other configuration actions 19974from templates according to the current configuration. Unless the files 19975and actions are specified as TAGs, all are instantiated by default. 19976 19977Usage: $0 [OPTION]... [TAG]... 19978 19979 -h, --help print this help, then exit 19980 -V, --version print version number and configuration settings, then exit 19981 --config print configuration, then exit 19982 -q, --quiet, --silent 19983 do not print progress messages 19984 -d, --debug don't remove temporary files 19985 --recheck update $as_me by reconfiguring in the same conditions 19986 --file=FILE[:TEMPLATE] 19987 instantiate the configuration file FILE 19988 --header=FILE[:TEMPLATE] 19989 instantiate the configuration header FILE 19990 19991Configuration files: 19992$config_files 19993 19994Configuration headers: 19995$config_headers 19996 19997Configuration commands: 19998$config_commands 19999 20000Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20001 20002_ACEOF 20003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20004ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20005ac_cs_version="\\ 20006libXt config.status 1.1.5 20007configured by $0, generated by GNU Autoconf 2.69, 20008 with options \\"\$ac_cs_config\\" 20009 20010Copyright (C) 2012 Free Software Foundation, Inc. 20011This config.status script is free software; the Free Software Foundation 20012gives unlimited permission to copy, distribute and modify it." 20013 20014ac_pwd='$ac_pwd' 20015srcdir='$srcdir' 20016INSTALL='$INSTALL' 20017MKDIR_P='$MKDIR_P' 20018AWK='$AWK' 20019test -n "\$AWK" || AWK=awk 20020_ACEOF 20021 20022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20023# The default lists apply if the user does not specify any file. 20024ac_need_defaults=: 20025while test $# != 0 20026do 20027 case $1 in 20028 --*=?*) 20029 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20030 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20031 ac_shift=: 20032 ;; 20033 --*=) 20034 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20035 ac_optarg= 20036 ac_shift=: 20037 ;; 20038 *) 20039 ac_option=$1 20040 ac_optarg=$2 20041 ac_shift=shift 20042 ;; 20043 esac 20044 20045 case $ac_option in 20046 # Handling of the options. 20047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20048 ac_cs_recheck=: ;; 20049 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20050 $as_echo "$ac_cs_version"; exit ;; 20051 --config | --confi | --conf | --con | --co | --c ) 20052 $as_echo "$ac_cs_config"; exit ;; 20053 --debug | --debu | --deb | --de | --d | -d ) 20054 debug=: ;; 20055 --file | --fil | --fi | --f ) 20056 $ac_shift 20057 case $ac_optarg in 20058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20059 '') as_fn_error $? "missing file argument" ;; 20060 esac 20061 as_fn_append CONFIG_FILES " '$ac_optarg'" 20062 ac_need_defaults=false;; 20063 --header | --heade | --head | --hea ) 20064 $ac_shift 20065 case $ac_optarg in 20066 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20067 esac 20068 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20069 ac_need_defaults=false;; 20070 --he | --h) 20071 # Conflict between --help and --header 20072 as_fn_error $? "ambiguous option: \`$1' 20073Try \`$0 --help' for more information.";; 20074 --help | --hel | -h ) 20075 $as_echo "$ac_cs_usage"; exit ;; 20076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20077 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20078 ac_cs_silent=: ;; 20079 20080 # This is an error. 20081 -*) as_fn_error $? "unrecognized option: \`$1' 20082Try \`$0 --help' for more information." ;; 20083 20084 *) as_fn_append ac_config_targets " $1" 20085 ac_need_defaults=false ;; 20086 20087 esac 20088 shift 20089done 20090 20091ac_configure_extra_args= 20092 20093if $ac_cs_silent; then 20094 exec 6>/dev/null 20095 ac_configure_extra_args="$ac_configure_extra_args --silent" 20096fi 20097 20098_ACEOF 20099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20100if \$ac_cs_recheck; then 20101 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20102 shift 20103 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20104 CONFIG_SHELL='$SHELL' 20105 export CONFIG_SHELL 20106 exec "\$@" 20107fi 20108 20109_ACEOF 20110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20111exec 5>>config.log 20112{ 20113 echo 20114 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20115## Running $as_me. ## 20116_ASBOX 20117 $as_echo "$ac_log" 20118} >&5 20119 20120_ACEOF 20121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20122# 20123# INIT-COMMANDS 20124# 20125AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20126 20127 20128# The HP-UX ksh and POSIX shell print the target directory to stdout 20129# if CDPATH is set. 20130(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20131 20132sed_quote_subst='$sed_quote_subst' 20133double_quote_subst='$double_quote_subst' 20134delay_variable_subst='$delay_variable_subst' 20135macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20136macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20137enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20138enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20139pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20140enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20141SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20142ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20143PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20144host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20145host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20146host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20147build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20148build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20149build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20150SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20151Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20152GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20153EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20154FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20155LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20156NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20157LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20158max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20159ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20160exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20161lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20162lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20163lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20164lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20165lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20166reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20167reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20168OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20169deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20170file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20171file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20172want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20173DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20174sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20175AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20176AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20177archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20178STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20179RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20180old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20181old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20182old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20183lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20184CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20185CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20186compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20187GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20188lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20189lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20190lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20191lt_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"`' 20192nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20193lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20194objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20195MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20196lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20197lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20198lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20199lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20200lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20201need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20202MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20203DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20204NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20205LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20206OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20207OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20208libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20209shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20210extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20211archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20212enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20213export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20214whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20215compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20216old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20217old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20218archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20219archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20220module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20221module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20222with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20223allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20224no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20225hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20226hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20227hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20228hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20229hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20230hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20231hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20232inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20233link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20234always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20235export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20236exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20237include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20238prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20239postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20240file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20241variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20242need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20243need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20244version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20245runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20246shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20247shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20248libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20249library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20250soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20251install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20252postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20253postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20254finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20255finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20256hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20257sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20258sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 20259hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20260enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20261enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20262enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20263old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20264striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20265 20266LTCC='$LTCC' 20267LTCFLAGS='$LTCFLAGS' 20268compiler='$compiler_DEFAULT' 20269 20270# A function that is used when there is no print builtin or printf. 20271func_fallback_echo () 20272{ 20273 eval 'cat <<_LTECHO_EOF 20274\$1 20275_LTECHO_EOF' 20276} 20277 20278# Quote evaled strings. 20279for var in SHELL \ 20280ECHO \ 20281PATH_SEPARATOR \ 20282SED \ 20283GREP \ 20284EGREP \ 20285FGREP \ 20286LD \ 20287NM \ 20288LN_S \ 20289lt_SP2NL \ 20290lt_NL2SP \ 20291reload_flag \ 20292OBJDUMP \ 20293deplibs_check_method \ 20294file_magic_cmd \ 20295file_magic_glob \ 20296want_nocaseglob \ 20297DLLTOOL \ 20298sharedlib_from_linklib_cmd \ 20299AR \ 20300AR_FLAGS \ 20301archiver_list_spec \ 20302STRIP \ 20303RANLIB \ 20304CC \ 20305CFLAGS \ 20306compiler \ 20307lt_cv_sys_global_symbol_pipe \ 20308lt_cv_sys_global_symbol_to_cdecl \ 20309lt_cv_sys_global_symbol_to_c_name_address \ 20310lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20311nm_file_list_spec \ 20312lt_prog_compiler_no_builtin_flag \ 20313lt_prog_compiler_pic \ 20314lt_prog_compiler_wl \ 20315lt_prog_compiler_static \ 20316lt_cv_prog_compiler_c_o \ 20317need_locks \ 20318MANIFEST_TOOL \ 20319DSYMUTIL \ 20320NMEDIT \ 20321LIPO \ 20322OTOOL \ 20323OTOOL64 \ 20324shrext_cmds \ 20325export_dynamic_flag_spec \ 20326whole_archive_flag_spec \ 20327compiler_needs_object \ 20328with_gnu_ld \ 20329allow_undefined_flag \ 20330no_undefined_flag \ 20331hardcode_libdir_flag_spec \ 20332hardcode_libdir_separator \ 20333exclude_expsyms \ 20334include_expsyms \ 20335file_list_spec \ 20336variables_saved_for_relink \ 20337libname_spec \ 20338library_names_spec \ 20339soname_spec \ 20340install_override_mode \ 20341finish_eval \ 20342old_striplib \ 20343striplib; do 20344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20345 *[\\\\\\\`\\"\\\$]*) 20346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20347 ;; 20348 *) 20349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20350 ;; 20351 esac 20352done 20353 20354# Double-quote double-evaled strings. 20355for var in reload_cmds \ 20356old_postinstall_cmds \ 20357old_postuninstall_cmds \ 20358old_archive_cmds \ 20359extract_expsyms_cmds \ 20360old_archive_from_new_cmds \ 20361old_archive_from_expsyms_cmds \ 20362archive_cmds \ 20363archive_expsym_cmds \ 20364module_cmds \ 20365module_expsym_cmds \ 20366export_symbols_cmds \ 20367prelink_cmds \ 20368postlink_cmds \ 20369postinstall_cmds \ 20370postuninstall_cmds \ 20371finish_cmds \ 20372sys_lib_search_path_spec \ 20373sys_lib_dlsearch_path_spec; do 20374 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20375 *[\\\\\\\`\\"\\\$]*) 20376 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20377 ;; 20378 *) 20379 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20380 ;; 20381 esac 20382done 20383 20384ac_aux_dir='$ac_aux_dir' 20385xsi_shell='$xsi_shell' 20386lt_shell_append='$lt_shell_append' 20387 20388# See if we are running on zsh, and set the options which allow our 20389# commands through without removal of \ escapes INIT. 20390if test -n "\${ZSH_VERSION+set}" ; then 20391 setopt NO_GLOB_SUBST 20392fi 20393 20394 20395 PACKAGE='$PACKAGE' 20396 VERSION='$VERSION' 20397 TIMESTAMP='$TIMESTAMP' 20398 RM='$RM' 20399 ofile='$ofile' 20400 20401 20402 20403 20404_ACEOF 20405 20406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20407 20408# Handling of arguments. 20409for ac_config_target in $ac_config_targets 20410do 20411 case $ac_config_target in 20412 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20413 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20414 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20415 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20416 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20417 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 20418 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20419 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20420 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 20421 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20422 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;; 20423 20424 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20425 esac 20426done 20427 20428 20429# If the user did not use the arguments to specify the items to instantiate, 20430# then the envvar interface is used. Set only those that are not. 20431# We use the long form for the default assignment because of an extremely 20432# bizarre bug on SunOS 4.1.3. 20433if $ac_need_defaults; then 20434 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20435 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20436 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20437fi 20438 20439# Have a temporary directory for convenience. Make it in the build tree 20440# simply because there is no reason against having it here, and in addition, 20441# creating and moving files from /tmp can sometimes cause problems. 20442# Hook for its removal unless debugging. 20443# Note that there is a small window in which the directory will not be cleaned: 20444# after its creation but before its name has been assigned to `$tmp'. 20445$debug || 20446{ 20447 tmp= ac_tmp= 20448 trap 'exit_status=$? 20449 : "${ac_tmp:=$tmp}" 20450 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20451' 0 20452 trap 'as_fn_exit 1' 1 2 13 15 20453} 20454# Create a (secure) tmp directory for tmp files. 20455 20456{ 20457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20458 test -d "$tmp" 20459} || 20460{ 20461 tmp=./conf$$-$RANDOM 20462 (umask 077 && mkdir "$tmp") 20463} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20464ac_tmp=$tmp 20465 20466# Set up the scripts for CONFIG_FILES section. 20467# No need to generate them if there are no CONFIG_FILES. 20468# This happens for instance with `./config.status config.h'. 20469if test -n "$CONFIG_FILES"; then 20470 20471 20472ac_cr=`echo X | tr X '\015'` 20473# On cygwin, bash can eat \r inside `` if the user requested igncr. 20474# But we know of no other shell where ac_cr would be empty at this 20475# point, so we can use a bashism as a fallback. 20476if test "x$ac_cr" = x; then 20477 eval ac_cr=\$\'\\r\' 20478fi 20479ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20480if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20481 ac_cs_awk_cr='\\r' 20482else 20483 ac_cs_awk_cr=$ac_cr 20484fi 20485 20486echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20487_ACEOF 20488 20489 20490{ 20491 echo "cat >conf$$subs.awk <<_ACEOF" && 20492 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20493 echo "_ACEOF" 20494} >conf$$subs.sh || 20495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20496ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20497ac_delim='%!_!# ' 20498for ac_last_try in false false false false false :; do 20499 . ./conf$$subs.sh || 20500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20501 20502 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20503 if test $ac_delim_n = $ac_delim_num; then 20504 break 20505 elif $ac_last_try; then 20506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20507 else 20508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20509 fi 20510done 20511rm -f conf$$subs.sh 20512 20513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20514cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20515_ACEOF 20516sed -n ' 20517h 20518s/^/S["/; s/!.*/"]=/ 20519p 20520g 20521s/^[^!]*!// 20522:repl 20523t repl 20524s/'"$ac_delim"'$// 20525t delim 20526:nl 20527h 20528s/\(.\{148\}\)..*/\1/ 20529t more1 20530s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20531p 20532n 20533b repl 20534:more1 20535s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20536p 20537g 20538s/.\{148\}// 20539t nl 20540:delim 20541h 20542s/\(.\{148\}\)..*/\1/ 20543t more2 20544s/["\\]/\\&/g; s/^/"/; s/$/"/ 20545p 20546b 20547:more2 20548s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20549p 20550g 20551s/.\{148\}// 20552t delim 20553' <conf$$subs.awk | sed ' 20554/^[^""]/{ 20555 N 20556 s/\n// 20557} 20558' >>$CONFIG_STATUS || ac_write_fail=1 20559rm -f conf$$subs.awk 20560cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20561_ACAWK 20562cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20563 for (key in S) S_is_set[key] = 1 20564 FS = "" 20565 20566} 20567{ 20568 line = $ 0 20569 nfields = split(line, field, "@") 20570 substed = 0 20571 len = length(field[1]) 20572 for (i = 2; i < nfields; i++) { 20573 key = field[i] 20574 keylen = length(key) 20575 if (S_is_set[key]) { 20576 value = S[key] 20577 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20578 len += length(value) + length(field[++i]) 20579 substed = 1 20580 } else 20581 len += 1 + keylen 20582 } 20583 20584 print line 20585} 20586 20587_ACAWK 20588_ACEOF 20589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20590if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20592else 20593 cat 20594fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20596_ACEOF 20597 20598# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20599# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20600# trailing colons and then remove the whole line if VPATH becomes empty 20601# (actually we leave an empty line to preserve line numbers). 20602if test "x$srcdir" = x.; then 20603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20604h 20605s/// 20606s/^/:/ 20607s/[ ]*$/:/ 20608s/:\$(srcdir):/:/g 20609s/:\${srcdir}:/:/g 20610s/:@srcdir@:/:/g 20611s/^:*// 20612s/:*$// 20613x 20614s/\(=[ ]*\).*/\1/ 20615G 20616s/\n// 20617s/^[^=]*=[ ]*$// 20618}' 20619fi 20620 20621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20622fi # test -n "$CONFIG_FILES" 20623 20624# Set up the scripts for CONFIG_HEADERS section. 20625# No need to generate them if there are no CONFIG_HEADERS. 20626# This happens for instance with `./config.status Makefile'. 20627if test -n "$CONFIG_HEADERS"; then 20628cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20629BEGIN { 20630_ACEOF 20631 20632# Transform confdefs.h into an awk script `defines.awk', embedded as 20633# here-document in config.status, that substitutes the proper values into 20634# config.h.in to produce config.h. 20635 20636# Create a delimiter string that does not exist in confdefs.h, to ease 20637# handling of long lines. 20638ac_delim='%!_!# ' 20639for ac_last_try in false false :; do 20640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20641 if test -z "$ac_tt"; then 20642 break 20643 elif $ac_last_try; then 20644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20645 else 20646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20647 fi 20648done 20649 20650# For the awk script, D is an array of macro values keyed by name, 20651# likewise P contains macro parameters if any. Preserve backslash 20652# newline sequences. 20653 20654ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20655sed -n ' 20656s/.\{148\}/&'"$ac_delim"'/g 20657t rset 20658:rset 20659s/^[ ]*#[ ]*define[ ][ ]*/ / 20660t def 20661d 20662:def 20663s/\\$// 20664t bsnl 20665s/["\\]/\\&/g 20666s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20667D["\1"]=" \3"/p 20668s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20669d 20670:bsnl 20671s/["\\]/\\&/g 20672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20673D["\1"]=" \3\\\\\\n"\\/p 20674t cont 20675s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20676t cont 20677d 20678:cont 20679n 20680s/.\{148\}/&'"$ac_delim"'/g 20681t clear 20682:clear 20683s/\\$// 20684t bsnlc 20685s/["\\]/\\&/g; s/^/"/; s/$/"/p 20686d 20687:bsnlc 20688s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20689b cont 20690' <confdefs.h | sed ' 20691s/'"$ac_delim"'/"\\\ 20692"/g' >>$CONFIG_STATUS || ac_write_fail=1 20693 20694cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20695 for (key in D) D_is_set[key] = 1 20696 FS = "" 20697} 20698/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20699 line = \$ 0 20700 split(line, arg, " ") 20701 if (arg[1] == "#") { 20702 defundef = arg[2] 20703 mac1 = arg[3] 20704 } else { 20705 defundef = substr(arg[1], 2) 20706 mac1 = arg[2] 20707 } 20708 split(mac1, mac2, "(") #) 20709 macro = mac2[1] 20710 prefix = substr(line, 1, index(line, defundef) - 1) 20711 if (D_is_set[macro]) { 20712 # Preserve the white space surrounding the "#". 20713 print prefix "define", macro P[macro] D[macro] 20714 next 20715 } else { 20716 # Replace #undef with comments. This is necessary, for example, 20717 # in the case of _POSIX_SOURCE, which is predefined and required 20718 # on some systems where configure will not decide to define it. 20719 if (defundef == "undef") { 20720 print "/*", prefix defundef, macro, "*/" 20721 next 20722 } 20723 } 20724} 20725{ print } 20726_ACAWK 20727_ACEOF 20728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20730fi # test -n "$CONFIG_HEADERS" 20731 20732 20733eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20734shift 20735for ac_tag 20736do 20737 case $ac_tag in 20738 :[FHLC]) ac_mode=$ac_tag; continue;; 20739 esac 20740 case $ac_mode$ac_tag in 20741 :[FHL]*:*);; 20742 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20743 :[FH]-) ac_tag=-:-;; 20744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20745 esac 20746 ac_save_IFS=$IFS 20747 IFS=: 20748 set x $ac_tag 20749 IFS=$ac_save_IFS 20750 shift 20751 ac_file=$1 20752 shift 20753 20754 case $ac_mode in 20755 :L) ac_source=$1;; 20756 :[FH]) 20757 ac_file_inputs= 20758 for ac_f 20759 do 20760 case $ac_f in 20761 -) ac_f="$ac_tmp/stdin";; 20762 *) # Look for the file first in the build tree, then in the source tree 20763 # (if the path is not absolute). The absolute path cannot be DOS-style, 20764 # because $ac_f cannot contain `:'. 20765 test -f "$ac_f" || 20766 case $ac_f in 20767 [\\/$]*) false;; 20768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20769 esac || 20770 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20771 esac 20772 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20773 as_fn_append ac_file_inputs " '$ac_f'" 20774 done 20775 20776 # Let's still pretend it is `configure' which instantiates (i.e., don't 20777 # use $as_me), people would be surprised to read: 20778 # /* config.h. Generated by config.status. */ 20779 configure_input='Generated from '` 20780 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20781 `' by configure.' 20782 if test x"$ac_file" != x-; then 20783 configure_input="$ac_file. $configure_input" 20784 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20785$as_echo "$as_me: creating $ac_file" >&6;} 20786 fi 20787 # Neutralize special characters interpreted by sed in replacement strings. 20788 case $configure_input in #( 20789 *\&* | *\|* | *\\* ) 20790 ac_sed_conf_input=`$as_echo "$configure_input" | 20791 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20792 *) ac_sed_conf_input=$configure_input;; 20793 esac 20794 20795 case $ac_tag in 20796 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20798 esac 20799 ;; 20800 esac 20801 20802 ac_dir=`$as_dirname -- "$ac_file" || 20803$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20804 X"$ac_file" : 'X\(//\)[^/]' \| \ 20805 X"$ac_file" : 'X\(//\)$' \| \ 20806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20807$as_echo X"$ac_file" | 20808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20809 s//\1/ 20810 q 20811 } 20812 /^X\(\/\/\)[^/].*/{ 20813 s//\1/ 20814 q 20815 } 20816 /^X\(\/\/\)$/{ 20817 s//\1/ 20818 q 20819 } 20820 /^X\(\/\).*/{ 20821 s//\1/ 20822 q 20823 } 20824 s/.*/./; q'` 20825 as_dir="$ac_dir"; as_fn_mkdir_p 20826 ac_builddir=. 20827 20828case "$ac_dir" in 20829.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20830*) 20831 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20832 # A ".." for each directory in $ac_dir_suffix. 20833 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20834 case $ac_top_builddir_sub in 20835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20837 esac ;; 20838esac 20839ac_abs_top_builddir=$ac_pwd 20840ac_abs_builddir=$ac_pwd$ac_dir_suffix 20841# for backward compatibility: 20842ac_top_builddir=$ac_top_build_prefix 20843 20844case $srcdir in 20845 .) # We are building in place. 20846 ac_srcdir=. 20847 ac_top_srcdir=$ac_top_builddir_sub 20848 ac_abs_top_srcdir=$ac_pwd ;; 20849 [\\/]* | ?:[\\/]* ) # Absolute name. 20850 ac_srcdir=$srcdir$ac_dir_suffix; 20851 ac_top_srcdir=$srcdir 20852 ac_abs_top_srcdir=$srcdir ;; 20853 *) # Relative name. 20854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20855 ac_top_srcdir=$ac_top_build_prefix$srcdir 20856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20857esac 20858ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20859 20860 20861 case $ac_mode in 20862 :F) 20863 # 20864 # CONFIG_FILE 20865 # 20866 20867 case $INSTALL in 20868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20870 esac 20871 ac_MKDIR_P=$MKDIR_P 20872 case $MKDIR_P in 20873 [\\/$]* | ?:[\\/]* ) ;; 20874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20875 esac 20876_ACEOF 20877 20878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20879# If the template does not know about datarootdir, expand it. 20880# FIXME: This hack should be removed a few years after 2.60. 20881ac_datarootdir_hack=; ac_datarootdir_seen= 20882ac_sed_dataroot=' 20883/datarootdir/ { 20884 p 20885 q 20886} 20887/@datadir@/p 20888/@docdir@/p 20889/@infodir@/p 20890/@localedir@/p 20891/@mandir@/p' 20892case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20893*datarootdir*) ac_datarootdir_seen=yes;; 20894*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20896$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20897_ACEOF 20898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20899 ac_datarootdir_hack=' 20900 s&@datadir@&$datadir&g 20901 s&@docdir@&$docdir&g 20902 s&@infodir@&$infodir&g 20903 s&@localedir@&$localedir&g 20904 s&@mandir@&$mandir&g 20905 s&\\\${datarootdir}&$datarootdir&g' ;; 20906esac 20907_ACEOF 20908 20909# Neutralize VPATH when `$srcdir' = `.'. 20910# Shell code in configure.ac might set extrasub. 20911# FIXME: do we really want to maintain this feature? 20912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20913ac_sed_extra="$ac_vpsub 20914$extrasub 20915_ACEOF 20916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20917:t 20918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20919s|@configure_input@|$ac_sed_conf_input|;t t 20920s&@top_builddir@&$ac_top_builddir_sub&;t t 20921s&@top_build_prefix@&$ac_top_build_prefix&;t t 20922s&@srcdir@&$ac_srcdir&;t t 20923s&@abs_srcdir@&$ac_abs_srcdir&;t t 20924s&@top_srcdir@&$ac_top_srcdir&;t t 20925s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20926s&@builddir@&$ac_builddir&;t t 20927s&@abs_builddir@&$ac_abs_builddir&;t t 20928s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20929s&@INSTALL@&$ac_INSTALL&;t t 20930s&@MKDIR_P@&$ac_MKDIR_P&;t t 20931$ac_datarootdir_hack 20932" 20933eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20934 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20935 20936test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20937 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20939 "$ac_tmp/out"`; test -z "$ac_out"; } && 20940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20941which seems to be undefined. Please make sure it is defined" >&5 20942$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20943which seems to be undefined. Please make sure it is defined" >&2;} 20944 20945 rm -f "$ac_tmp/stdin" 20946 case $ac_file in 20947 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20948 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20949 esac \ 20950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20951 ;; 20952 :H) 20953 # 20954 # CONFIG_HEADER 20955 # 20956 if test x"$ac_file" != x-; then 20957 { 20958 $as_echo "/* $configure_input */" \ 20959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20960 } >"$ac_tmp/config.h" \ 20961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20962 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20963 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20964$as_echo "$as_me: $ac_file is unchanged" >&6;} 20965 else 20966 rm -f "$ac_file" 20967 mv "$ac_tmp/config.h" "$ac_file" \ 20968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20969 fi 20970 else 20971 $as_echo "/* $configure_input */" \ 20972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20973 || as_fn_error $? "could not create -" "$LINENO" 5 20974 fi 20975# Compute "$ac_file"'s index in $config_headers. 20976_am_arg="$ac_file" 20977_am_stamp_count=1 20978for _am_header in $config_headers :; do 20979 case $_am_header in 20980 $_am_arg | $_am_arg:* ) 20981 break ;; 20982 * ) 20983 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20984 esac 20985done 20986echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20987$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20988 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20989 X"$_am_arg" : 'X\(//\)$' \| \ 20990 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20991$as_echo X"$_am_arg" | 20992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20993 s//\1/ 20994 q 20995 } 20996 /^X\(\/\/\)[^/].*/{ 20997 s//\1/ 20998 q 20999 } 21000 /^X\(\/\/\)$/{ 21001 s//\1/ 21002 q 21003 } 21004 /^X\(\/\).*/{ 21005 s//\1/ 21006 q 21007 } 21008 s/.*/./; q'`/stamp-h$_am_stamp_count 21009 ;; 21010 21011 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21012$as_echo "$as_me: executing $ac_file commands" >&6;} 21013 ;; 21014 esac 21015 21016 21017 case $ac_file$ac_mode in 21018 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21019 # Older Autoconf quotes --file arguments for eval, but not when files 21020 # are listed without --file. Let's play safe and only enable the eval 21021 # if we detect the quoting. 21022 case $CONFIG_FILES in 21023 *\'*) eval set x "$CONFIG_FILES" ;; 21024 *) set x $CONFIG_FILES ;; 21025 esac 21026 shift 21027 for mf 21028 do 21029 # Strip MF so we end up with the name of the file. 21030 mf=`echo "$mf" | sed -e 's/:.*$//'` 21031 # Check whether this is an Automake generated Makefile or not. 21032 # We used to match only the files named 'Makefile.in', but 21033 # some people rename them; so instead we look at the file content. 21034 # Grep'ing the first line is not enough: some people post-process 21035 # each Makefile.in and add a new line on top of each file to say so. 21036 # Grep'ing the whole file is not good either: AIX grep has a line 21037 # limit of 2048, but all sed's we know have understand at least 4000. 21038 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21039 dirpart=`$as_dirname -- "$mf" || 21040$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21041 X"$mf" : 'X\(//\)[^/]' \| \ 21042 X"$mf" : 'X\(//\)$' \| \ 21043 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21044$as_echo X"$mf" | 21045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21046 s//\1/ 21047 q 21048 } 21049 /^X\(\/\/\)[^/].*/{ 21050 s//\1/ 21051 q 21052 } 21053 /^X\(\/\/\)$/{ 21054 s//\1/ 21055 q 21056 } 21057 /^X\(\/\).*/{ 21058 s//\1/ 21059 q 21060 } 21061 s/.*/./; q'` 21062 else 21063 continue 21064 fi 21065 # Extract the definition of DEPDIR, am__include, and am__quote 21066 # from the Makefile without running 'make'. 21067 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21068 test -z "$DEPDIR" && continue 21069 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21070 test -z "$am__include" && continue 21071 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21072 # Find all dependency output files, they are included files with 21073 # $(DEPDIR) in their names. We invoke sed twice because it is the 21074 # simplest approach to changing $(DEPDIR) to its actual value in the 21075 # expansion. 21076 for file in `sed -n " 21077 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21078 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21079 # Make sure the directory exists. 21080 test -f "$dirpart/$file" && continue 21081 fdir=`$as_dirname -- "$file" || 21082$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21083 X"$file" : 'X\(//\)[^/]' \| \ 21084 X"$file" : 'X\(//\)$' \| \ 21085 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21086$as_echo X"$file" | 21087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21088 s//\1/ 21089 q 21090 } 21091 /^X\(\/\/\)[^/].*/{ 21092 s//\1/ 21093 q 21094 } 21095 /^X\(\/\/\)$/{ 21096 s//\1/ 21097 q 21098 } 21099 /^X\(\/\).*/{ 21100 s//\1/ 21101 q 21102 } 21103 s/.*/./; q'` 21104 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21105 # echo "creating $dirpart/$file" 21106 echo '# dummy' > "$dirpart/$file" 21107 done 21108 done 21109} 21110 ;; 21111 "libtool":C) 21112 21113 # See if we are running on zsh, and set the options which allow our 21114 # commands through without removal of \ escapes. 21115 if test -n "${ZSH_VERSION+set}" ; then 21116 setopt NO_GLOB_SUBST 21117 fi 21118 21119 cfgfile="${ofile}T" 21120 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21121 $RM "$cfgfile" 21122 21123 cat <<_LT_EOF >> "$cfgfile" 21124#! $SHELL 21125 21126# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21127# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21128# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21129# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21130# 21131# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21132# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21133# Foundation, Inc. 21134# Written by Gordon Matzigkeit, 1996 21135# 21136# This file is part of GNU Libtool. 21137# 21138# GNU Libtool is free software; you can redistribute it and/or 21139# modify it under the terms of the GNU General Public License as 21140# published by the Free Software Foundation; either version 2 of 21141# the License, or (at your option) any later version. 21142# 21143# As a special exception to the GNU General Public License, 21144# if you distribute this file as part of a program or library that 21145# is built using GNU Libtool, you may include this file under the 21146# same distribution terms that you use for the rest of that program. 21147# 21148# GNU Libtool is distributed in the hope that it will be useful, 21149# but WITHOUT ANY WARRANTY; without even the implied warranty of 21150# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21151# GNU General Public License for more details. 21152# 21153# You should have received a copy of the GNU General Public License 21154# along with GNU Libtool; see the file COPYING. If not, a copy 21155# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21156# obtained by writing to the Free Software Foundation, Inc., 21157# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21158 21159 21160# The names of the tagged configurations supported by this script. 21161available_tags="" 21162 21163# ### BEGIN LIBTOOL CONFIG 21164 21165# Which release of libtool.m4 was used? 21166macro_version=$macro_version 21167macro_revision=$macro_revision 21168 21169# Whether or not to build shared libraries. 21170build_libtool_libs=$enable_shared 21171 21172# Whether or not to build static libraries. 21173build_old_libs=$enable_static 21174 21175# What type of objects to build. 21176pic_mode=$pic_mode 21177 21178# Whether or not to optimize for fast installation. 21179fast_install=$enable_fast_install 21180 21181# Shell to use when invoking shell scripts. 21182SHELL=$lt_SHELL 21183 21184# An echo program that protects backslashes. 21185ECHO=$lt_ECHO 21186 21187# The PATH separator for the build system. 21188PATH_SEPARATOR=$lt_PATH_SEPARATOR 21189 21190# The host system. 21191host_alias=$host_alias 21192host=$host 21193host_os=$host_os 21194 21195# The build system. 21196build_alias=$build_alias 21197build=$build 21198build_os=$build_os 21199 21200# A sed program that does not truncate output. 21201SED=$lt_SED 21202 21203# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21204Xsed="\$SED -e 1s/^X//" 21205 21206# A grep program that handles long lines. 21207GREP=$lt_GREP 21208 21209# An ERE matcher. 21210EGREP=$lt_EGREP 21211 21212# A literal string matcher. 21213FGREP=$lt_FGREP 21214 21215# A BSD- or MS-compatible name lister. 21216NM=$lt_NM 21217 21218# Whether we need soft or hard links. 21219LN_S=$lt_LN_S 21220 21221# What is the maximum length of a command? 21222max_cmd_len=$max_cmd_len 21223 21224# Object file suffix (normally "o"). 21225objext=$ac_objext 21226 21227# Executable file suffix (normally ""). 21228exeext=$exeext 21229 21230# whether the shell understands "unset". 21231lt_unset=$lt_unset 21232 21233# turn spaces into newlines. 21234SP2NL=$lt_lt_SP2NL 21235 21236# turn newlines into spaces. 21237NL2SP=$lt_lt_NL2SP 21238 21239# convert \$build file names to \$host format. 21240to_host_file_cmd=$lt_cv_to_host_file_cmd 21241 21242# convert \$build files to toolchain format. 21243to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21244 21245# An object symbol dumper. 21246OBJDUMP=$lt_OBJDUMP 21247 21248# Method to check whether dependent libraries are shared objects. 21249deplibs_check_method=$lt_deplibs_check_method 21250 21251# Command to use when deplibs_check_method = "file_magic". 21252file_magic_cmd=$lt_file_magic_cmd 21253 21254# How to find potential files when deplibs_check_method = "file_magic". 21255file_magic_glob=$lt_file_magic_glob 21256 21257# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21258want_nocaseglob=$lt_want_nocaseglob 21259 21260# DLL creation program. 21261DLLTOOL=$lt_DLLTOOL 21262 21263# Command to associate shared and link libraries. 21264sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21265 21266# The archiver. 21267AR=$lt_AR 21268 21269# Flags to create an archive. 21270AR_FLAGS=$lt_AR_FLAGS 21271 21272# How to feed a file listing to the archiver. 21273archiver_list_spec=$lt_archiver_list_spec 21274 21275# A symbol stripping program. 21276STRIP=$lt_STRIP 21277 21278# Commands used to install an old-style archive. 21279RANLIB=$lt_RANLIB 21280old_postinstall_cmds=$lt_old_postinstall_cmds 21281old_postuninstall_cmds=$lt_old_postuninstall_cmds 21282 21283# Whether to use a lock for old archive extraction. 21284lock_old_archive_extraction=$lock_old_archive_extraction 21285 21286# A C compiler. 21287LTCC=$lt_CC 21288 21289# LTCC compiler flags. 21290LTCFLAGS=$lt_CFLAGS 21291 21292# Take the output of nm and produce a listing of raw symbols and C names. 21293global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21294 21295# Transform the output of nm in a proper C declaration. 21296global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21297 21298# Transform the output of nm in a C name address pair. 21299global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21300 21301# Transform the output of nm in a C name address pair when lib prefix is needed. 21302global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21303 21304# Specify filename containing input files for \$NM. 21305nm_file_list_spec=$lt_nm_file_list_spec 21306 21307# The root where to search for dependent libraries,and in which our libraries should be installed. 21308lt_sysroot=$lt_sysroot 21309 21310# The name of the directory that contains temporary libtool files. 21311objdir=$objdir 21312 21313# Used to examine libraries when file_magic_cmd begins with "file". 21314MAGIC_CMD=$MAGIC_CMD 21315 21316# Must we lock files when doing compilation? 21317need_locks=$lt_need_locks 21318 21319# Manifest tool. 21320MANIFEST_TOOL=$lt_MANIFEST_TOOL 21321 21322# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21323DSYMUTIL=$lt_DSYMUTIL 21324 21325# Tool to change global to local symbols on Mac OS X. 21326NMEDIT=$lt_NMEDIT 21327 21328# Tool to manipulate fat objects and archives on Mac OS X. 21329LIPO=$lt_LIPO 21330 21331# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21332OTOOL=$lt_OTOOL 21333 21334# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21335OTOOL64=$lt_OTOOL64 21336 21337# Old archive suffix (normally "a"). 21338libext=$libext 21339 21340# Shared library suffix (normally ".so"). 21341shrext_cmds=$lt_shrext_cmds 21342 21343# The commands to extract the exported symbol list from a shared archive. 21344extract_expsyms_cmds=$lt_extract_expsyms_cmds 21345 21346# Variables whose values should be saved in libtool wrapper scripts and 21347# restored at link time. 21348variables_saved_for_relink=$lt_variables_saved_for_relink 21349 21350# Do we need the "lib" prefix for modules? 21351need_lib_prefix=$need_lib_prefix 21352 21353# Do we need a version for libraries? 21354need_version=$need_version 21355 21356# Library versioning type. 21357version_type=$version_type 21358 21359# Shared library runtime path variable. 21360runpath_var=$runpath_var 21361 21362# Shared library path variable. 21363shlibpath_var=$shlibpath_var 21364 21365# Is shlibpath searched before the hard-coded library search path? 21366shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21367 21368# Format of library name prefix. 21369libname_spec=$lt_libname_spec 21370 21371# List of archive names. First name is the real one, the rest are links. 21372# The last name is the one that the linker finds with -lNAME 21373library_names_spec=$lt_library_names_spec 21374 21375# The coded name of the library, if different from the real name. 21376soname_spec=$lt_soname_spec 21377 21378# Permission mode override for installation of shared libraries. 21379install_override_mode=$lt_install_override_mode 21380 21381# Command to use after installation of a shared archive. 21382postinstall_cmds=$lt_postinstall_cmds 21383 21384# Command to use after uninstallation of a shared archive. 21385postuninstall_cmds=$lt_postuninstall_cmds 21386 21387# Commands used to finish a libtool library installation in a directory. 21388finish_cmds=$lt_finish_cmds 21389 21390# As "finish_cmds", except a single script fragment to be evaled but 21391# not shown. 21392finish_eval=$lt_finish_eval 21393 21394# Whether we should hardcode library paths into libraries. 21395hardcode_into_libs=$hardcode_into_libs 21396 21397# Compile-time system search path for libraries. 21398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21399 21400# Run-time system search path for libraries. 21401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21402 21403# Whether dlopen is supported. 21404dlopen_support=$enable_dlopen 21405 21406# Whether dlopen of programs is supported. 21407dlopen_self=$enable_dlopen_self 21408 21409# Whether dlopen of statically linked programs is supported. 21410dlopen_self_static=$enable_dlopen_self_static 21411 21412# Commands to strip libraries. 21413old_striplib=$lt_old_striplib 21414striplib=$lt_striplib 21415 21416 21417# The linker used to build libraries. 21418LD=$lt_LD 21419 21420# How to create reloadable object files. 21421reload_flag=$lt_reload_flag 21422reload_cmds=$lt_reload_cmds 21423 21424# Commands used to build an old-style archive. 21425old_archive_cmds=$lt_old_archive_cmds 21426 21427# A language specific compiler. 21428CC=$lt_compiler 21429 21430# Is the compiler the GNU compiler? 21431with_gcc=$GCC 21432 21433# Compiler flag to turn off builtin functions. 21434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21435 21436# Additional compiler flags for building library objects. 21437pic_flag=$lt_lt_prog_compiler_pic 21438 21439# How to pass a linker flag through the compiler. 21440wl=$lt_lt_prog_compiler_wl 21441 21442# Compiler flag to prevent dynamic linking. 21443link_static_flag=$lt_lt_prog_compiler_static 21444 21445# Does compiler simultaneously support -c and -o options? 21446compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21447 21448# Whether or not to add -lc for building shared libraries. 21449build_libtool_need_lc=$archive_cmds_need_lc 21450 21451# Whether or not to disallow shared libs when runtime libs are static. 21452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21453 21454# Compiler flag to allow reflexive dlopens. 21455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21456 21457# Compiler flag to generate shared objects directly from archives. 21458whole_archive_flag_spec=$lt_whole_archive_flag_spec 21459 21460# Whether the compiler copes with passing no objects directly. 21461compiler_needs_object=$lt_compiler_needs_object 21462 21463# Create an old-style archive from a shared archive. 21464old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21465 21466# Create a temporary old-style archive to link instead of a shared archive. 21467old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21468 21469# Commands used to build a shared archive. 21470archive_cmds=$lt_archive_cmds 21471archive_expsym_cmds=$lt_archive_expsym_cmds 21472 21473# Commands used to build a loadable module if different from building 21474# a shared archive. 21475module_cmds=$lt_module_cmds 21476module_expsym_cmds=$lt_module_expsym_cmds 21477 21478# Whether we are building with GNU ld or not. 21479with_gnu_ld=$lt_with_gnu_ld 21480 21481# Flag that allows shared libraries with undefined symbols to be built. 21482allow_undefined_flag=$lt_allow_undefined_flag 21483 21484# Flag that enforces no undefined symbols. 21485no_undefined_flag=$lt_no_undefined_flag 21486 21487# Flag to hardcode \$libdir into a binary during linking. 21488# This must work even if \$libdir does not exist 21489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21490 21491# Whether we need a single "-rpath" flag with a separated argument. 21492hardcode_libdir_separator=$lt_hardcode_libdir_separator 21493 21494# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21495# DIR into the resulting binary. 21496hardcode_direct=$hardcode_direct 21497 21498# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21499# DIR into the resulting binary and the resulting library dependency is 21500# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21501# library is relocated. 21502hardcode_direct_absolute=$hardcode_direct_absolute 21503 21504# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21505# into the resulting binary. 21506hardcode_minus_L=$hardcode_minus_L 21507 21508# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21509# into the resulting binary. 21510hardcode_shlibpath_var=$hardcode_shlibpath_var 21511 21512# Set to "yes" if building a shared library automatically hardcodes DIR 21513# into the library and all subsequent libraries and executables linked 21514# against it. 21515hardcode_automatic=$hardcode_automatic 21516 21517# Set to yes if linker adds runtime paths of dependent libraries 21518# to runtime path list. 21519inherit_rpath=$inherit_rpath 21520 21521# Whether libtool must link a program against all its dependency libraries. 21522link_all_deplibs=$link_all_deplibs 21523 21524# Set to "yes" if exported symbols are required. 21525always_export_symbols=$always_export_symbols 21526 21527# The commands to list exported symbols. 21528export_symbols_cmds=$lt_export_symbols_cmds 21529 21530# Symbols that should not be listed in the preloaded symbols. 21531exclude_expsyms=$lt_exclude_expsyms 21532 21533# Symbols that must always be exported. 21534include_expsyms=$lt_include_expsyms 21535 21536# Commands necessary for linking programs (against libraries) with templates. 21537prelink_cmds=$lt_prelink_cmds 21538 21539# Commands necessary for finishing linking programs. 21540postlink_cmds=$lt_postlink_cmds 21541 21542# Specify filename containing input files. 21543file_list_spec=$lt_file_list_spec 21544 21545# How to hardcode a shared library path into an executable. 21546hardcode_action=$hardcode_action 21547 21548# ### END LIBTOOL CONFIG 21549 21550_LT_EOF 21551 21552 case $host_os in 21553 aix3*) 21554 cat <<\_LT_EOF >> "$cfgfile" 21555# AIX sometimes has problems with the GCC collect2 program. For some 21556# reason, if we set the COLLECT_NAMES environment variable, the problems 21557# vanish in a puff of smoke. 21558if test "X${COLLECT_NAMES+set}" != Xset; then 21559 COLLECT_NAMES= 21560 export COLLECT_NAMES 21561fi 21562_LT_EOF 21563 ;; 21564 esac 21565 21566 21567ltmain="$ac_aux_dir/ltmain.sh" 21568 21569 21570 # We use sed instead of cat because bash on DJGPP gets confused if 21571 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21572 # text mode, it properly converts lines to CR/LF. This bash problem 21573 # is reportedly fixed, but why not run on old versions too? 21574 sed '$q' "$ltmain" >> "$cfgfile" \ 21575 || (rm -f "$cfgfile"; exit 1) 21576 21577 if test x"$xsi_shell" = xyes; then 21578 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 21579func_dirname ()\ 21580{\ 21581\ case ${1} in\ 21582\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21583\ * ) func_dirname_result="${3}" ;;\ 21584\ esac\ 21585} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 21586 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21587 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21588test 0 -eq $? || _lt_function_replace_fail=: 21589 21590 21591 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 21592func_basename ()\ 21593{\ 21594\ func_basename_result="${1##*/}"\ 21595} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21596 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21597 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21598test 0 -eq $? || _lt_function_replace_fail=: 21599 21600 21601 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 21602func_dirname_and_basename ()\ 21603{\ 21604\ case ${1} in\ 21605\ */*) func_dirname_result="${1%/*}${2}" ;;\ 21606\ * ) func_dirname_result="${3}" ;;\ 21607\ esac\ 21608\ func_basename_result="${1##*/}"\ 21609} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 21610 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21611 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21612test 0 -eq $? || _lt_function_replace_fail=: 21613 21614 21615 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 21616func_stripname ()\ 21617{\ 21618\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 21619\ # positional parameters, so assign one to ordinary parameter first.\ 21620\ func_stripname_result=${3}\ 21621\ func_stripname_result=${func_stripname_result#"${1}"}\ 21622\ func_stripname_result=${func_stripname_result%"${2}"}\ 21623} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 21624 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21625 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21626test 0 -eq $? || _lt_function_replace_fail=: 21627 21628 21629 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 21630func_split_long_opt ()\ 21631{\ 21632\ func_split_long_opt_name=${1%%=*}\ 21633\ func_split_long_opt_arg=${1#*=}\ 21634} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21635 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21636 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21637test 0 -eq $? || _lt_function_replace_fail=: 21638 21639 21640 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 21641func_split_short_opt ()\ 21642{\ 21643\ func_split_short_opt_arg=${1#??}\ 21644\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 21645} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 21646 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21648test 0 -eq $? || _lt_function_replace_fail=: 21649 21650 21651 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 21652func_lo2o ()\ 21653{\ 21654\ case ${1} in\ 21655\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 21656\ *) func_lo2o_result=${1} ;;\ 21657\ esac\ 21658} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 21659 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21660 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21661test 0 -eq $? || _lt_function_replace_fail=: 21662 21663 21664 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 21665func_xform ()\ 21666{\ 21667 func_xform_result=${1%.*}.lo\ 21668} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 21669 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21670 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21671test 0 -eq $? || _lt_function_replace_fail=: 21672 21673 21674 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 21675func_arith ()\ 21676{\ 21677 func_arith_result=$(( $* ))\ 21678} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 21679 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21680 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21681test 0 -eq $? || _lt_function_replace_fail=: 21682 21683 21684 sed -e '/^func_len ()$/,/^} # func_len /c\ 21685func_len ()\ 21686{\ 21687 func_len_result=${#1}\ 21688} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 21689 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21690 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21691test 0 -eq $? || _lt_function_replace_fail=: 21692 21693fi 21694 21695if test x"$lt_shell_append" = xyes; then 21696 sed -e '/^func_append ()$/,/^} # func_append /c\ 21697func_append ()\ 21698{\ 21699 eval "${1}+=\\${2}"\ 21700} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 21701 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21703test 0 -eq $? || _lt_function_replace_fail=: 21704 21705 21706 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 21707func_append_quoted ()\ 21708{\ 21709\ func_quote_for_eval "${2}"\ 21710\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 21711} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 21712 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21714test 0 -eq $? || _lt_function_replace_fail=: 21715 21716 21717 # Save a `func_append' function call where possible by direct use of '+=' 21718 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 21719 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21721 test 0 -eq $? || _lt_function_replace_fail=: 21722else 21723 # Save a `func_append' function call even when '+=' is not available 21724 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 21725 && mv -f "$cfgfile.tmp" "$cfgfile" \ 21726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 21727 test 0 -eq $? || _lt_function_replace_fail=: 21728fi 21729 21730if test x"$_lt_function_replace_fail" = x":"; then 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 21732$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 21733fi 21734 21735 21736 mv -f "$cfgfile" "$ofile" || 21737 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21738 chmod +x "$ofile" 21739 21740 ;; 21741 21742 esac 21743done # for ac_tag 21744 21745 21746as_fn_exit 0 21747_ACEOF 21748ac_clean_files=$ac_clean_files_save 21749 21750test $ac_write_fail = 0 || 21751 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21752 21753 21754# configure is writing to config.log, and then calls config.status. 21755# config.status does its own redirection, appending to config.log. 21756# Unfortunately, on DOS this fails, as config.log is still kept open 21757# by configure, so config.status won't be able to write to it; its 21758# output is simply discarded. So we exec the FD to /dev/null, 21759# effectively closing config.log, so it can be properly (re)opened and 21760# appended to by config.status. When coming back to configure, we 21761# need to make the FD available again. 21762if test "$no_create" != yes; then 21763 ac_cs_success=: 21764 ac_config_status_args= 21765 test "$silent" = yes && 21766 ac_config_status_args="$ac_config_status_args --quiet" 21767 exec 5>/dev/null 21768 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21769 exec 5>>config.log 21770 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21771 # would make configure fail if this is the last instruction. 21772 $ac_cs_success || as_fn_exit 1 21773fi 21774if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21776$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21777fi 21778 21779