configure revision 6322c902
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-ati 7.7.0. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-video-ati' 593PACKAGE_TARNAME='xf86-video-ati' 594PACKAGE_VERSION='7.7.0' 595PACKAGE_STRING='xf86-video-ati 7.7.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642PCIACCESS_LIBS 643PCIACCESS_CFLAGS 644GLAMOR_FALSE 645GLAMOR_TRUE 646LIBGLAMOR_EGL_LIBS 647LIBGLAMOR_EGL_CFLAGS 648LIBGLAMOR_LIBS 649LIBGLAMOR_CFLAGS 650LIBUDEV_FALSE 651LIBUDEV_TRUE 652LIBUDEV_LIBS 653LIBUDEV_CFLAGS 654HAVE_XEXTPROTO_71_FALSE 655HAVE_XEXTPROTO_71_TRUE 656XEXT_LIBS 657XEXT_CFLAGS 658XORG_LIBS 659XORG_CFLAGS 660LIBDRM_RADEON_LIBS 661LIBDRM_RADEON_CFLAGS 662LIBDRM_LIBS 663LIBDRM_CFLAGS 664LT_SYS_LIBRARY_PATH 665OTOOL64 666OTOOL 667LIPO 668NMEDIT 669DSYMUTIL 670MANIFEST_TOOL 671RANLIB 672ac_ct_AR 673AR 674DLLTOOL 675OBJDUMP 676LN_S 677NM 678ac_ct_DUMPBIN 679DUMPBIN 680LD 681FGREP 682LIBTOOL 683MAN_SUBSTS 684XORG_MAN_PAGE 685ADMIN_MAN_DIR 686DRIVER_MAN_DIR 687MISC_MAN_DIR 688FILE_MAN_DIR 689LIB_MAN_DIR 690APP_MAN_DIR 691ADMIN_MAN_SUFFIX 692DRIVER_MAN_SUFFIX 693MISC_MAN_SUFFIX 694FILE_MAN_SUFFIX 695LIB_MAN_SUFFIX 696APP_MAN_SUFFIX 697SED 698host_os 699host_vendor 700host_cpu 701host 702build_os 703build_vendor 704build_cpu 705build 706INSTALL_CMD 707PKG_CONFIG_LIBDIR 708PKG_CONFIG_PATH 709PKG_CONFIG 710CHANGELOG_CMD 711STRICT_CFLAGS 712CWARNFLAGS 713BASE_CFLAGS 714EGREP 715GREP 716CPP 717MAINT 718MAINTAINER_MODE_FALSE 719MAINTAINER_MODE_TRUE 720am__fastdepCC_FALSE 721am__fastdepCC_TRUE 722CCDEPMODE 723am__nodep 724AMDEPBACKSLASH 725AMDEP_FALSE 726AMDEP_TRUE 727am__quote 728am__include 729DEPDIR 730OBJEXT 731EXEEXT 732ac_ct_CC 733CPPFLAGS 734LDFLAGS 735CFLAGS 736CC 737AM_BACKSLASH 738AM_DEFAULT_VERBOSITY 739AM_DEFAULT_V 740AM_V 741am__untar 742am__tar 743AMTAR 744am__leading_dot 745SET_MAKE 746AWK 747mkdir_p 748MKDIR_P 749INSTALL_STRIP_PROGRAM 750STRIP 751install_sh 752MAKEINFO 753AUTOHEADER 754AUTOMAKE 755AUTOCONF 756ACLOCAL 757VERSION 758PACKAGE 759CYGPATH_W 760am__isrc 761INSTALL_DATA 762INSTALL_SCRIPT 763INSTALL_PROGRAM 764target_alias 765host_alias 766build_alias 767LIBS 768ECHO_T 769ECHO_N 770ECHO_C 771DEFS 772mandir 773localedir 774libdir 775psdir 776pdfdir 777dvidir 778htmldir 779infodir 780docdir 781oldincludedir 782includedir 783runstatedir 784localstatedir 785sharedstatedir 786sysconfdir 787datadir 788datarootdir 789libexecdir 790sbindir 791bindir 792program_transform_name 793prefix 794exec_prefix 795PACKAGE_URL 796PACKAGE_BUGREPORT 797PACKAGE_STRING 798PACKAGE_VERSION 799PACKAGE_TARNAME 800PACKAGE_NAME 801PATH_SEPARATOR 802SHELL' 803ac_subst_files='' 804ac_user_opts=' 805enable_option_checking 806enable_silent_rules 807enable_largefile 808enable_dependency_tracking 809enable_maintainer_mode 810enable_selective_werror 811enable_strict_compilation 812enable_static 813enable_shared 814with_pic 815enable_fast_install 816with_aix_soname 817with_gnu_ld 818with_sysroot 819enable_libtool_lock 820with_xorg_module_dir 821enable_udev 822enable_glamor 823' 824 ac_precious_vars='build_alias 825host_alias 826target_alias 827CC 828CFLAGS 829LDFLAGS 830LIBS 831CPPFLAGS 832CPP 833PKG_CONFIG 834PKG_CONFIG_PATH 835PKG_CONFIG_LIBDIR 836LT_SYS_LIBRARY_PATH 837LIBDRM_CFLAGS 838LIBDRM_LIBS 839LIBDRM_RADEON_CFLAGS 840LIBDRM_RADEON_LIBS 841XORG_CFLAGS 842XORG_LIBS 843XEXT_CFLAGS 844XEXT_LIBS 845LIBUDEV_CFLAGS 846LIBUDEV_LIBS 847LIBGLAMOR_CFLAGS 848LIBGLAMOR_LIBS 849LIBGLAMOR_EGL_CFLAGS 850LIBGLAMOR_EGL_LIBS 851PCIACCESS_CFLAGS 852PCIACCESS_LIBS' 853 854 855# Initialize some variables set by options. 856ac_init_help= 857ac_init_version=false 858ac_unrecognized_opts= 859ac_unrecognized_sep= 860# The variables have the same names as the options, with 861# dashes changed to underlines. 862cache_file=/dev/null 863exec_prefix=NONE 864no_create= 865no_recursion= 866prefix=NONE 867program_prefix=NONE 868program_suffix=NONE 869program_transform_name=s,x,x, 870silent= 871site= 872srcdir= 873verbose= 874x_includes=NONE 875x_libraries=NONE 876 877# Installation directory options. 878# These are left unexpanded so users can "make install exec_prefix=/foo" 879# and all the variables that are supposed to be based on exec_prefix 880# by default will actually change. 881# Use braces instead of parens because sh, perl, etc. also accept them. 882# (The list follows the same order as the GNU Coding Standards.) 883bindir='${exec_prefix}/bin' 884sbindir='${exec_prefix}/sbin' 885libexecdir='${exec_prefix}/libexec' 886datarootdir='${prefix}/share' 887datadir='${datarootdir}' 888sysconfdir='${prefix}/etc' 889sharedstatedir='${prefix}/com' 890localstatedir='${prefix}/var' 891runstatedir='${localstatedir}/run' 892includedir='${prefix}/include' 893oldincludedir='/usr/include' 894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895infodir='${datarootdir}/info' 896htmldir='${docdir}' 897dvidir='${docdir}' 898pdfdir='${docdir}' 899psdir='${docdir}' 900libdir='${exec_prefix}/lib' 901localedir='${datarootdir}/locale' 902mandir='${datarootdir}/man' 903 904ac_prev= 905ac_dashdash= 906for ac_option 907do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 # Accept the important Cygnus configure options, so we can diagnose typos. 922 923 case $ac_dashdash$ac_option in 924 --) 925 ac_dashdash=yes ;; 926 927 -bindir | --bindir | --bindi | --bind | --bin | --bi) 928 ac_prev=bindir ;; 929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 930 bindir=$ac_optarg ;; 931 932 -build | --build | --buil | --bui | --bu) 933 ac_prev=build_alias ;; 934 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 935 build_alias=$ac_optarg ;; 936 937 -cache-file | --cache-file | --cache-fil | --cache-fi \ 938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 939 ac_prev=cache_file ;; 940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 942 cache_file=$ac_optarg ;; 943 944 --config-cache | -C) 945 cache_file=config.cache ;; 946 947 -datadir | --datadir | --datadi | --datad) 948 ac_prev=datadir ;; 949 -datadir=* | --datadir=* | --datadi=* | --datad=*) 950 datadir=$ac_optarg ;; 951 952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 953 | --dataroo | --dataro | --datar) 954 ac_prev=datarootdir ;; 955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 957 datarootdir=$ac_optarg ;; 958 959 -disable-* | --disable-*) 960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 961 # Reject names that are not valid shell variable names. 962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 963 as_fn_error $? "invalid feature name: $ac_useropt" 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968"enable_$ac_useropt" 969"*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=no ;; 974 975 -docdir | --docdir | --docdi | --doc | --do) 976 ac_prev=docdir ;; 977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 978 docdir=$ac_optarg ;; 979 980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 981 ac_prev=dvidir ;; 982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 983 dvidir=$ac_optarg ;; 984 985 -enable-* | --enable-*) 986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 987 # Reject names that are not valid shell variable names. 988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 989 as_fn_error $? "invalid feature name: $ac_useropt" 990 ac_useropt_orig=$ac_useropt 991 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 992 case $ac_user_opts in 993 *" 994"enable_$ac_useropt" 995"*) ;; 996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 997 ac_unrecognized_sep=', ';; 998 esac 999 eval enable_$ac_useropt=\$ac_optarg ;; 1000 1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1003 | --exec | --exe | --ex) 1004 ac_prev=exec_prefix ;; 1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1007 | --exec=* | --exe=* | --ex=*) 1008 exec_prefix=$ac_optarg ;; 1009 1010 -gas | --gas | --ga | --g) 1011 # Obsolete; use --with-gas. 1012 with_gas=yes ;; 1013 1014 -help | --help | --hel | --he | -h) 1015 ac_init_help=long ;; 1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1017 ac_init_help=recursive ;; 1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1019 ac_init_help=short ;; 1020 1021 -host | --host | --hos | --ho) 1022 ac_prev=host_alias ;; 1023 -host=* | --host=* | --hos=* | --ho=*) 1024 host_alias=$ac_optarg ;; 1025 1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1027 ac_prev=htmldir ;; 1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1029 | --ht=*) 1030 htmldir=$ac_optarg ;; 1031 1032 -includedir | --includedir | --includedi | --included | --include \ 1033 | --includ | --inclu | --incl | --inc) 1034 ac_prev=includedir ;; 1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1036 | --includ=* | --inclu=* | --incl=* | --inc=*) 1037 includedir=$ac_optarg ;; 1038 1039 -infodir | --infodir | --infodi | --infod | --info | --inf) 1040 ac_prev=infodir ;; 1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1042 infodir=$ac_optarg ;; 1043 1044 -libdir | --libdir | --libdi | --libd) 1045 ac_prev=libdir ;; 1046 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1047 libdir=$ac_optarg ;; 1048 1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1050 | --libexe | --libex | --libe) 1051 ac_prev=libexecdir ;; 1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1053 | --libexe=* | --libex=* | --libe=*) 1054 libexecdir=$ac_optarg ;; 1055 1056 -localedir | --localedir | --localedi | --localed | --locale) 1057 ac_prev=localedir ;; 1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1059 localedir=$ac_optarg ;; 1060 1061 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1062 | --localstate | --localstat | --localsta | --localst | --locals) 1063 ac_prev=localstatedir ;; 1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1066 localstatedir=$ac_optarg ;; 1067 1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1069 ac_prev=mandir ;; 1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1071 mandir=$ac_optarg ;; 1072 1073 -nfp | --nfp | --nf) 1074 # Obsolete; use --without-fp. 1075 with_fp=no ;; 1076 1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1078 | --no-cr | --no-c | -n) 1079 no_create=yes ;; 1080 1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1083 no_recursion=yes ;; 1084 1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1087 | --oldin | --oldi | --old | --ol | --o) 1088 ac_prev=oldincludedir ;; 1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1092 oldincludedir=$ac_optarg ;; 1093 1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1095 ac_prev=prefix ;; 1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1097 prefix=$ac_optarg ;; 1098 1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1100 | --program-pre | --program-pr | --program-p) 1101 ac_prev=program_prefix ;; 1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1104 program_prefix=$ac_optarg ;; 1105 1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1107 | --program-suf | --program-su | --program-s) 1108 ac_prev=program_suffix ;; 1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1111 program_suffix=$ac_optarg ;; 1112 1113 -program-transform-name | --program-transform-name \ 1114 | --program-transform-nam | --program-transform-na \ 1115 | --program-transform-n | --program-transform- \ 1116 | --program-transform | --program-transfor \ 1117 | --program-transfo | --program-transf \ 1118 | --program-trans | --program-tran \ 1119 | --progr-tra | --program-tr | --program-t) 1120 ac_prev=program_transform_name ;; 1121 -program-transform-name=* | --program-transform-name=* \ 1122 | --program-transform-nam=* | --program-transform-na=* \ 1123 | --program-transform-n=* | --program-transform-=* \ 1124 | --program-transform=* | --program-transfor=* \ 1125 | --program-transfo=* | --program-transf=* \ 1126 | --program-trans=* | --program-tran=* \ 1127 | --progr-tra=* | --program-tr=* | --program-t=*) 1128 program_transform_name=$ac_optarg ;; 1129 1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1131 ac_prev=pdfdir ;; 1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1133 pdfdir=$ac_optarg ;; 1134 1135 -psdir | --psdir | --psdi | --psd | --ps) 1136 ac_prev=psdir ;; 1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1138 psdir=$ac_optarg ;; 1139 1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1141 | -silent | --silent | --silen | --sile | --sil) 1142 silent=yes ;; 1143 1144 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1145 | --runstate | --runstat | --runsta | --runst | --runs \ 1146 | --run | --ru | --r) 1147 ac_prev=runstatedir ;; 1148 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1149 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1150 | --run=* | --ru=* | --r=*) 1151 runstatedir=$ac_optarg ;; 1152 1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1154 ac_prev=sbindir ;; 1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1156 | --sbi=* | --sb=*) 1157 sbindir=$ac_optarg ;; 1158 1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1161 | --sharedst | --shareds | --shared | --share | --shar \ 1162 | --sha | --sh) 1163 ac_prev=sharedstatedir ;; 1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1167 | --sha=* | --sh=*) 1168 sharedstatedir=$ac_optarg ;; 1169 1170 -site | --site | --sit) 1171 ac_prev=site ;; 1172 -site=* | --site=* | --sit=*) 1173 site=$ac_optarg ;; 1174 1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1176 ac_prev=srcdir ;; 1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1178 srcdir=$ac_optarg ;; 1179 1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1181 | --syscon | --sysco | --sysc | --sys | --sy) 1182 ac_prev=sysconfdir ;; 1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1185 sysconfdir=$ac_optarg ;; 1186 1187 -target | --target | --targe | --targ | --tar | --ta | --t) 1188 ac_prev=target_alias ;; 1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1190 target_alias=$ac_optarg ;; 1191 1192 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1193 verbose=yes ;; 1194 1195 -version | --version | --versio | --versi | --vers | -V) 1196 ac_init_version=: ;; 1197 1198 -with-* | --with-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: $ac_useropt" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207"with_$ac_useropt" 1208"*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=\$ac_optarg ;; 1213 1214 -without-* | --without-*) 1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1216 # Reject names that are not valid shell variable names. 1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1218 as_fn_error $? "invalid package name: $ac_useropt" 1219 ac_useropt_orig=$ac_useropt 1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1221 case $ac_user_opts in 1222 *" 1223"with_$ac_useropt" 1224"*) ;; 1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1226 ac_unrecognized_sep=', ';; 1227 esac 1228 eval with_$ac_useropt=no ;; 1229 1230 --x) 1231 # Obsolete; use --with-x. 1232 with_x=yes ;; 1233 1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1235 | --x-incl | --x-inc | --x-in | --x-i) 1236 ac_prev=x_includes ;; 1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1239 x_includes=$ac_optarg ;; 1240 1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1243 ac_prev=x_libraries ;; 1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1246 x_libraries=$ac_optarg ;; 1247 1248 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1249Try \`$0 --help' for more information" 1250 ;; 1251 1252 *=*) 1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1254 # Reject names that are not valid shell variable names. 1255 case $ac_envvar in #( 1256 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1258 esac 1259 eval $ac_envvar=\$ac_optarg 1260 export $ac_envvar ;; 1261 1262 *) 1263 # FIXME: should be removed in autoconf 3.0. 1264 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1266 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1268 ;; 1269 1270 esac 1271done 1272 1273if test -n "$ac_prev"; then 1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1275 as_fn_error $? "missing argument to $ac_option" 1276fi 1277 1278if test -n "$ac_unrecognized_opts"; then 1279 case $enable_option_checking in 1280 no) ;; 1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1282 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1283 esac 1284fi 1285 1286# Check all directory arguments for consistency. 1287for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1288 datadir sysconfdir sharedstatedir localstatedir includedir \ 1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1290 libdir localedir mandir runstatedir 1291do 1292 eval ac_val=\$$ac_var 1293 # Remove trailing slashes. 1294 case $ac_val in 1295 */ ) 1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1297 eval $ac_var=\$ac_val;; 1298 esac 1299 # Be sure to have absolute directory names. 1300 case $ac_val in 1301 [\\/$]* | ?:[\\/]* ) continue;; 1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1303 esac 1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1305done 1306 1307# There might be people who depend on the old broken behavior: `$host' 1308# used to hold the argument of --host etc. 1309# FIXME: To remove some day. 1310build=$build_alias 1311host=$host_alias 1312target=$target_alias 1313 1314# FIXME: To remove some day. 1315if test "x$host_alias" != x; then 1316 if test "x$build_alias" = x; then 1317 cross_compiling=maybe 1318 elif test "x$build_alias" != "x$host_alias"; then 1319 cross_compiling=yes 1320 fi 1321fi 1322 1323ac_tool_prefix= 1324test -n "$host_alias" && ac_tool_prefix=$host_alias- 1325 1326test "$silent" = yes && exec 6>/dev/null 1327 1328 1329ac_pwd=`pwd` && test -n "$ac_pwd" && 1330ac_ls_di=`ls -di .` && 1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1332 as_fn_error $? "working directory cannot be determined" 1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1334 as_fn_error $? "pwd does not report name of working directory" 1335 1336 1337# Find the source files, if location was not specified. 1338if test -z "$srcdir"; then 1339 ac_srcdir_defaulted=yes 1340 # Try the directory containing this script, then the parent directory. 1341 ac_confdir=`$as_dirname -- "$as_myself" || 1342$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1343 X"$as_myself" : 'X\(//\)[^/]' \| \ 1344 X"$as_myself" : 'X\(//\)$' \| \ 1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1346$as_echo X"$as_myself" | 1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)[^/].*/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\).*/{ 1360 s//\1/ 1361 q 1362 } 1363 s/.*/./; q'` 1364 srcdir=$ac_confdir 1365 if test ! -r "$srcdir/$ac_unique_file"; then 1366 srcdir=.. 1367 fi 1368else 1369 ac_srcdir_defaulted=no 1370fi 1371if test ! -r "$srcdir/$ac_unique_file"; then 1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1374fi 1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1376ac_abs_confdir=`( 1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1378 pwd)` 1379# When building in place, set srcdir=. 1380if test "$ac_abs_confdir" = "$ac_pwd"; then 1381 srcdir=. 1382fi 1383# Remove unnecessary trailing slashes from srcdir. 1384# Double slashes in file names in object file debugging info 1385# mess up M-x gdb in Emacs. 1386case $srcdir in 1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1388esac 1389for ac_var in $ac_precious_vars; do 1390 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_env_${ac_var}_value=\$${ac_var} 1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1393 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1394done 1395 1396# 1397# Report the --help message. 1398# 1399if test "$ac_init_help" = "long"; then 1400 # Omit some internal or obsolete options to make the list less imposing. 1401 # This message is too long to be a string in the A/UX 3.1 sh. 1402 cat <<_ACEOF 1403\`configure' configures xf86-video-ati 7.7.0 to adapt to many kinds of systems. 1404 1405Usage: $0 [OPTION]... [VAR=VALUE]... 1406 1407To assign environment variables (e.g., CC, CFLAGS...), specify them as 1408VAR=VALUE. See below for descriptions of some of the useful variables. 1409 1410Defaults for the options are specified in brackets. 1411 1412Configuration: 1413 -h, --help display this help and exit 1414 --help=short display options specific to this package 1415 --help=recursive display the short help of all the included packages 1416 -V, --version display version information and exit 1417 -q, --quiet, --silent do not print \`checking ...' messages 1418 --cache-file=FILE cache test results in FILE [disabled] 1419 -C, --config-cache alias for \`--cache-file=config.cache' 1420 -n, --no-create do not create output files 1421 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1422 1423Installation directories: 1424 --prefix=PREFIX install architecture-independent files in PREFIX 1425 [$ac_default_prefix] 1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1427 [PREFIX] 1428 1429By default, \`make install' will install all the files in 1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1431an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1432for instance \`--prefix=\$HOME'. 1433 1434For better control, use the options below. 1435 1436Fine tuning of the installation directories: 1437 --bindir=DIR user executables [EPREFIX/bin] 1438 --sbindir=DIR system admin executables [EPREFIX/sbin] 1439 --libexecdir=DIR program executables [EPREFIX/libexec] 1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1443 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1444 --libdir=DIR object code libraries [EPREFIX/lib] 1445 --includedir=DIR C header files [PREFIX/include] 1446 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1449 --infodir=DIR info documentation [DATAROOTDIR/info] 1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1451 --mandir=DIR man documentation [DATAROOTDIR/man] 1452 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ati] 1453 --htmldir=DIR html documentation [DOCDIR] 1454 --dvidir=DIR dvi documentation [DOCDIR] 1455 --pdfdir=DIR pdf documentation [DOCDIR] 1456 --psdir=DIR ps documentation [DOCDIR] 1457_ACEOF 1458 1459 cat <<\_ACEOF 1460 1461Program names: 1462 --program-prefix=PREFIX prepend PREFIX to installed program names 1463 --program-suffix=SUFFIX append SUFFIX to installed program names 1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1465 1466System types: 1467 --build=BUILD configure for building on BUILD [guessed] 1468 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1469_ACEOF 1470fi 1471 1472if test -n "$ac_init_help"; then 1473 case $ac_init_help in 1474 short | recursive ) echo "Configuration of xf86-video-ati 7.7.0:";; 1475 esac 1476 cat <<\_ACEOF 1477 1478Optional Features: 1479 --disable-option-checking ignore unrecognized --enable/--with options 1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1482 --enable-silent-rules less verbose build output (undo: "make V=1") 1483 --disable-silent-rules verbose build output (undo: "make V=0") 1484 --disable-largefile omit support for large files 1485 --enable-dependency-tracking 1486 do not reject slow dependency extractors 1487 --disable-dependency-tracking 1488 speeds up one-time build 1489 --enable-maintainer-mode 1490 enable make rules and dependencies not useful (and 1491 sometimes confusing) to the casual installer 1492 --disable-selective-werror 1493 Turn off selective compiler errors. (default: 1494 enabled) 1495 --enable-strict-compilation 1496 Enable all warnings from compiler and make them 1497 errors (default: disabled) 1498 --enable-static[=PKGS] build static libraries [default=no] 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-fast-install[=PKGS] 1501 optimize for fast installation [default=yes] 1502 --disable-libtool-lock avoid locking (might break parallel builds) 1503 --disable-udev Disable libudev support [default=auto] 1504 --disable-glamor Disable glamor, a new GL-based acceleration 1505 [default=enabled] 1506 1507Optional Packages: 1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1510 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1511 both] 1512 --with-aix-soname=aix|svr4|both 1513 shared library versioning (aka "SONAME") variant to 1514 provide on AIX, [default=aix]. 1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1516 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1517 compiler's sysroot if not specified). 1518 --with-xorg-module-dir=DIR 1519 Default xorg module directory 1520 [[default=$libdir/xorg/modules]] 1521 1522Some influential environment variables: 1523 CC C compiler command 1524 CFLAGS C compiler flags 1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1526 nonstandard directory <lib dir> 1527 LIBS libraries to pass to the linker, e.g. -l<library> 1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1529 you have headers in a nonstandard directory <include dir> 1530 CPP C preprocessor 1531 PKG_CONFIG path to pkg-config utility 1532 PKG_CONFIG_PATH 1533 directories to add to pkg-config's search path 1534 PKG_CONFIG_LIBDIR 1535 path overriding pkg-config's built-in search path 1536 LT_SYS_LIBRARY_PATH 1537 User-defined run-time library search path. 1538 LIBDRM_CFLAGS 1539 C compiler flags for LIBDRM, overriding pkg-config 1540 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1541 LIBDRM_RADEON_CFLAGS 1542 C compiler flags for LIBDRM_RADEON, overriding pkg-config 1543 LIBDRM_RADEON_LIBS 1544 linker flags for LIBDRM_RADEON, overriding pkg-config 1545 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1546 XORG_LIBS linker flags for XORG, overriding pkg-config 1547 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1548 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1549 LIBUDEV_CFLAGS 1550 C compiler flags for LIBUDEV, overriding pkg-config 1551 LIBUDEV_LIBS 1552 linker flags for LIBUDEV, overriding pkg-config 1553 LIBGLAMOR_CFLAGS 1554 C compiler flags for LIBGLAMOR, overriding pkg-config 1555 LIBGLAMOR_LIBS 1556 linker flags for LIBGLAMOR, overriding pkg-config 1557 LIBGLAMOR_EGL_CFLAGS 1558 C compiler flags for LIBGLAMOR_EGL, overriding pkg-config 1559 LIBGLAMOR_EGL_LIBS 1560 linker flags for LIBGLAMOR_EGL, overriding pkg-config 1561 PCIACCESS_CFLAGS 1562 C compiler flags for PCIACCESS, overriding pkg-config 1563 PCIACCESS_LIBS 1564 linker flags for PCIACCESS, overriding pkg-config 1565 1566Use these variables to override the choices made by `configure' or to help 1567it to find libraries and programs with nonstandard names/locations. 1568 1569Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1570_ACEOF 1571ac_status=$? 1572fi 1573 1574if test "$ac_init_help" = "recursive"; then 1575 # If there are subdirs, report their specific --help. 1576 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1577 test -d "$ac_dir" || 1578 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1579 continue 1580 ac_builddir=. 1581 1582case "$ac_dir" in 1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1584*) 1585 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1586 # A ".." for each directory in $ac_dir_suffix. 1587 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1588 case $ac_top_builddir_sub in 1589 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1590 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1591 esac ;; 1592esac 1593ac_abs_top_builddir=$ac_pwd 1594ac_abs_builddir=$ac_pwd$ac_dir_suffix 1595# for backward compatibility: 1596ac_top_builddir=$ac_top_build_prefix 1597 1598case $srcdir in 1599 .) # We are building in place. 1600 ac_srcdir=. 1601 ac_top_srcdir=$ac_top_builddir_sub 1602 ac_abs_top_srcdir=$ac_pwd ;; 1603 [\\/]* | ?:[\\/]* ) # Absolute name. 1604 ac_srcdir=$srcdir$ac_dir_suffix; 1605 ac_top_srcdir=$srcdir 1606 ac_abs_top_srcdir=$srcdir ;; 1607 *) # Relative name. 1608 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1609 ac_top_srcdir=$ac_top_build_prefix$srcdir 1610 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1611esac 1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1613 1614 cd "$ac_dir" || { ac_status=$?; continue; } 1615 # Check for guested configure. 1616 if test -f "$ac_srcdir/configure.gnu"; then 1617 echo && 1618 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1619 elif test -f "$ac_srcdir/configure"; then 1620 echo && 1621 $SHELL "$ac_srcdir/configure" --help=recursive 1622 else 1623 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1624 fi || ac_status=$? 1625 cd "$ac_pwd" || { ac_status=$?; break; } 1626 done 1627fi 1628 1629test -n "$ac_init_help" && exit $ac_status 1630if $ac_init_version; then 1631 cat <<\_ACEOF 1632xf86-video-ati configure 7.7.0 1633generated by GNU Autoconf 2.69 1634 1635Copyright (C) 2012 Free Software Foundation, Inc. 1636This configure script is free software; the Free Software Foundation 1637gives unlimited permission to copy, distribute and modify it. 1638_ACEOF 1639 exit 1640fi 1641 1642## ------------------------ ## 1643## Autoconf initialization. ## 1644## ------------------------ ## 1645 1646# ac_fn_c_try_compile LINENO 1647# -------------------------- 1648# Try to compile conftest.$ac_ext, and return whether this succeeded. 1649ac_fn_c_try_compile () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 rm -f conftest.$ac_objext 1653 if { { ac_try="$ac_compile" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_compile") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } && { 1669 test -z "$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 } && test -s conftest.$ac_objext; then : 1672 ac_retval=0 1673else 1674 $as_echo "$as_me: failed program was:" >&5 1675sed 's/^/| /' conftest.$ac_ext >&5 1676 1677 ac_retval=1 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_compile 1683 1684# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1685# --------------------------------------------- 1686# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1687# accordingly. 1688ac_fn_c_check_decl () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 as_decl_name=`echo $2|sed 's/ *(.*//'` 1692 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1694$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1695if eval \${$3+:} false; then : 1696 $as_echo_n "(cached) " >&6 1697else 1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1699/* end confdefs.h. */ 1700$4 1701int 1702main () 1703{ 1704#ifndef $as_decl_name 1705#ifdef __cplusplus 1706 (void) $as_decl_use; 1707#else 1708 (void) $as_decl_name; 1709#endif 1710#endif 1711 1712 ; 1713 return 0; 1714} 1715_ACEOF 1716if ac_fn_c_try_compile "$LINENO"; then : 1717 eval "$3=yes" 1718else 1719 eval "$3=no" 1720fi 1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1722fi 1723eval ac_res=\$$3 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725$as_echo "$ac_res" >&6; } 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 1728} # ac_fn_c_check_decl 1729 1730# ac_fn_c_try_cpp LINENO 1731# ---------------------- 1732# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1733ac_fn_c_try_cpp () 1734{ 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 if { { ac_try="$ac_cpp conftest.$ac_ext" 1737case "(($ac_try" in 1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1739 *) ac_try_echo=$ac_try;; 1740esac 1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1742$as_echo "$ac_try_echo"; } >&5 1743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1744 ac_status=$? 1745 if test -s conftest.err; then 1746 grep -v '^ *+' conftest.err >conftest.er1 1747 cat conftest.er1 >&5 1748 mv -f conftest.er1 conftest.err 1749 fi 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } > conftest.i && { 1752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1753 test ! -s conftest.err 1754 }; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: failed program was:" >&5 1758sed 's/^/| /' conftest.$ac_ext >&5 1759 1760 ac_retval=1 1761fi 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763 as_fn_set_status $ac_retval 1764 1765} # ac_fn_c_try_cpp 1766 1767# ac_fn_c_try_run LINENO 1768# ---------------------- 1769# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1770# that executables *can* be run. 1771ac_fn_c_try_run () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 if { { ac_try="$ac_link" 1775case "(($ac_try" in 1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1777 *) ac_try_echo=$ac_try;; 1778esac 1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1780$as_echo "$ac_try_echo"; } >&5 1781 (eval "$ac_link") 2>&5 1782 ac_status=$? 1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1785 { { case "(($ac_try" in 1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1787 *) ac_try_echo=$ac_try;; 1788esac 1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1790$as_echo "$ac_try_echo"; } >&5 1791 (eval "$ac_try") 2>&5 1792 ac_status=$? 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; }; }; then : 1795 ac_retval=0 1796else 1797 $as_echo "$as_me: program exited with status $ac_status" >&5 1798 $as_echo "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=$ac_status 1802fi 1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 as_fn_set_status $ac_retval 1806 1807} # ac_fn_c_try_run 1808 1809# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1810# ------------------------------------------------------- 1811# Tests whether HEADER exists and can be compiled using the include files in 1812# INCLUDES, setting the cache variable VAR accordingly. 1813ac_fn_c_check_header_compile () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817$as_echo_n "checking for $2... " >&6; } 1818if eval \${$3+:} false; then : 1819 $as_echo_n "(cached) " >&6 1820else 1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823$4 1824#include <$2> 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO"; then : 1827 eval "$3=yes" 1828else 1829 eval "$3=no" 1830fi 1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1832fi 1833eval ac_res=\$$3 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835$as_echo "$ac_res" >&6; } 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 1838} # ac_fn_c_check_header_compile 1839 1840# ac_fn_c_try_link LINENO 1841# ----------------------- 1842# Try to link conftest.$ac_ext, and return whether this succeeded. 1843ac_fn_c_try_link () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 rm -f conftest.$ac_objext conftest$ac_exeext 1847 if { { ac_try="$ac_link" 1848case "(($ac_try" in 1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 *) ac_try_echo=$ac_try;; 1851esac 1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853$as_echo "$ac_try_echo"; } >&5 1854 (eval "$ac_link") 2>conftest.err 1855 ac_status=$? 1856 if test -s conftest.err; then 1857 grep -v '^ *+' conftest.err >conftest.er1 1858 cat conftest.er1 >&5 1859 mv -f conftest.er1 conftest.err 1860 fi 1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; } && { 1863 test -z "$ac_c_werror_flag" || 1864 test ! -s conftest.err 1865 } && test -s conftest$ac_exeext && { 1866 test "$cross_compiling" = yes || 1867 test -x conftest$ac_exeext 1868 }; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: failed program was:" >&5 1872sed 's/^/| /' conftest.$ac_ext >&5 1873 1874 ac_retval=1 1875fi 1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1878 # interfere with the next link command; also delete a directory that is 1879 # left behind by Apple's compiler. We do this before executing the actions. 1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 as_fn_set_status $ac_retval 1883 1884} # ac_fn_c_try_link 1885 1886# ac_fn_c_check_func LINENO FUNC VAR 1887# ---------------------------------- 1888# Tests whether FUNC exists, setting the cache variable VAR accordingly 1889ac_fn_c_check_func () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896else 1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898/* end confdefs.h. */ 1899/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1901#define $2 innocuous_$2 1902 1903/* System header to define __stub macros and hopefully few prototypes, 1904 which can conflict with char $2 (); below. 1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1906 <limits.h> exists even on freestanding compilers. */ 1907 1908#ifdef __STDC__ 1909# include <limits.h> 1910#else 1911# include <assert.h> 1912#endif 1913 1914#undef $2 1915 1916/* Override any GCC internal prototype to avoid an error. 1917 Use char because int might match the return type of a GCC 1918 builtin and then its argument prototype would still apply. */ 1919#ifdef __cplusplus 1920extern "C" 1921#endif 1922char $2 (); 1923/* The GNU C library defines this for functions which it implements 1924 to always fail with ENOSYS. Some functions are actually named 1925 something starting with __ and the normal name is an alias. */ 1926#if defined __stub_$2 || defined __stub___$2 1927choke me 1928#endif 1929 1930int 1931main () 1932{ 1933return $2 (); 1934 ; 1935 return 0; 1936} 1937_ACEOF 1938if ac_fn_c_try_link "$LINENO"; then : 1939 eval "$3=yes" 1940else 1941 eval "$3=no" 1942fi 1943rm -f core conftest.err conftest.$ac_objext \ 1944 conftest$ac_exeext conftest.$ac_ext 1945fi 1946eval ac_res=\$$3 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1948$as_echo "$ac_res" >&6; } 1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1950 1951} # ac_fn_c_check_func 1952 1953# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1954# ------------------------------------------------------- 1955# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1956# the include files in INCLUDES and setting the cache variable VAR 1957# accordingly. 1958ac_fn_c_check_header_mongrel () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 if eval \${$3+:} false; then : 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1963$as_echo_n "checking for $2... " >&6; } 1964if eval \${$3+:} false; then : 1965 $as_echo_n "(cached) " >&6 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970else 1971 # Is the header compilable? 1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1973$as_echo_n "checking $2 usability... " >&6; } 1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975/* end confdefs.h. */ 1976$4 1977#include <$2> 1978_ACEOF 1979if ac_fn_c_try_compile "$LINENO"; then : 1980 ac_header_compiler=yes 1981else 1982 ac_header_compiler=no 1983fi 1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1986$as_echo "$ac_header_compiler" >&6; } 1987 1988# Is the header present? 1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1990$as_echo_n "checking $2 presence... " >&6; } 1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993#include <$2> 1994_ACEOF 1995if ac_fn_c_try_cpp "$LINENO"; then : 1996 ac_header_preproc=yes 1997else 1998 ac_header_preproc=no 1999fi 2000rm -f conftest.err conftest.i conftest.$ac_ext 2001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2002$as_echo "$ac_header_preproc" >&6; } 2003 2004# So? What about this header? 2005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2006 yes:no: ) 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2011 ;; 2012 no:yes:* ) 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2016$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2020$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2023( $as_echo "## ---------------------------------------------------------------------- ## 2024## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2025## ---------------------------------------------------------------------- ##" 2026 ) | sed "s/^/$as_me: WARNING: /" >&2 2027 ;; 2028esac 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2030$as_echo_n "checking for $2... " >&6; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033else 2034 eval "$3=\$ac_header_compiler" 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039fi 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2041 2042} # ac_fn_c_check_header_mongrel 2043cat >config.log <<_ACEOF 2044This file contains any messages produced by compilers while 2045running configure, to aid debugging if configure makes a mistake. 2046 2047It was created by xf86-video-ati $as_me 7.7.0, which was 2048generated by GNU Autoconf 2.69. Invocation command line was 2049 2050 $ $0 $@ 2051 2052_ACEOF 2053exec 5>>config.log 2054{ 2055cat <<_ASUNAME 2056## --------- ## 2057## Platform. ## 2058## --------- ## 2059 2060hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2061uname -m = `(uname -m) 2>/dev/null || echo unknown` 2062uname -r = `(uname -r) 2>/dev/null || echo unknown` 2063uname -s = `(uname -s) 2>/dev/null || echo unknown` 2064uname -v = `(uname -v) 2>/dev/null || echo unknown` 2065 2066/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2067/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2068 2069/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2070/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2072/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2073/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2074/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2075/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2076 2077_ASUNAME 2078 2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2080for as_dir in $PATH 2081do 2082 IFS=$as_save_IFS 2083 test -z "$as_dir" && as_dir=. 2084 $as_echo "PATH: $as_dir" 2085 done 2086IFS=$as_save_IFS 2087 2088} >&5 2089 2090cat >&5 <<_ACEOF 2091 2092 2093## ----------- ## 2094## Core tests. ## 2095## ----------- ## 2096 2097_ACEOF 2098 2099 2100# Keep a trace of the command line. 2101# Strip out --no-create and --no-recursion so they do not pile up. 2102# Strip out --silent because we don't want to record it for future runs. 2103# Also quote any args containing shell meta-characters. 2104# Make two passes to allow for proper duplicate-argument suppression. 2105ac_configure_args= 2106ac_configure_args0= 2107ac_configure_args1= 2108ac_must_keep_next=false 2109for ac_pass in 1 2 2110do 2111 for ac_arg 2112 do 2113 case $ac_arg in 2114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2116 | -silent | --silent | --silen | --sile | --sil) 2117 continue ;; 2118 *\'*) 2119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2120 esac 2121 case $ac_pass in 2122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2123 2) 2124 as_fn_append ac_configure_args1 " '$ac_arg'" 2125 if test $ac_must_keep_next = true; then 2126 ac_must_keep_next=false # Got value, back to normal. 2127 else 2128 case $ac_arg in 2129 *=* | --config-cache | -C | -disable-* | --disable-* \ 2130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2132 | -with-* | --with-* | -without-* | --without-* | --x) 2133 case "$ac_configure_args0 " in 2134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2135 esac 2136 ;; 2137 -* ) ac_must_keep_next=true ;; 2138 esac 2139 fi 2140 as_fn_append ac_configure_args " '$ac_arg'" 2141 ;; 2142 esac 2143 done 2144done 2145{ ac_configure_args0=; unset ac_configure_args0;} 2146{ ac_configure_args1=; unset ac_configure_args1;} 2147 2148# When interrupted or exit'd, cleanup temporary files, and complete 2149# config.log. We remove comments because anyway the quotes in there 2150# would cause problems or look ugly. 2151# WARNING: Use '\'' to represent an apostrophe within the trap. 2152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2153trap 'exit_status=$? 2154 # Save into config.log some information that might help in debugging. 2155 { 2156 echo 2157 2158 $as_echo "## ---------------- ## 2159## Cache variables. ## 2160## ---------------- ##" 2161 echo 2162 # The following way of writing the cache mishandles newlines in values, 2163( 2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2165 eval ac_val=\$$ac_var 2166 case $ac_val in #( 2167 *${as_nl}*) 2168 case $ac_var in #( 2169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2171 esac 2172 case $ac_var in #( 2173 _ | IFS | as_nl) ;; #( 2174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2175 *) { eval $ac_var=; unset $ac_var;} ;; 2176 esac ;; 2177 esac 2178 done 2179 (set) 2>&1 | 2180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2181 *${as_nl}ac_space=\ *) 2182 sed -n \ 2183 "s/'\''/'\''\\\\'\'''\''/g; 2184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2185 ;; #( 2186 *) 2187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2188 ;; 2189 esac | 2190 sort 2191) 2192 echo 2193 2194 $as_echo "## ----------------- ## 2195## Output variables. ## 2196## ----------------- ##" 2197 echo 2198 for ac_var in $ac_subst_vars 2199 do 2200 eval ac_val=\$$ac_var 2201 case $ac_val in 2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2203 esac 2204 $as_echo "$ac_var='\''$ac_val'\''" 2205 done | sort 2206 echo 2207 2208 if test -n "$ac_subst_files"; then 2209 $as_echo "## ------------------- ## 2210## File substitutions. ## 2211## ------------------- ##" 2212 echo 2213 for ac_var in $ac_subst_files 2214 do 2215 eval ac_val=\$$ac_var 2216 case $ac_val in 2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2218 esac 2219 $as_echo "$ac_var='\''$ac_val'\''" 2220 done | sort 2221 echo 2222 fi 2223 2224 if test -s confdefs.h; then 2225 $as_echo "## ----------- ## 2226## confdefs.h. ## 2227## ----------- ##" 2228 echo 2229 cat confdefs.h 2230 echo 2231 fi 2232 test "$ac_signal" != 0 && 2233 $as_echo "$as_me: caught signal $ac_signal" 2234 $as_echo "$as_me: exit $exit_status" 2235 } >&5 2236 rm -f core *.core core.conftest.* && 2237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2238 exit $exit_status 2239' 0 2240for ac_signal in 1 2 13 15; do 2241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2242done 2243ac_signal=0 2244 2245# confdefs.h avoids OS command line length limits that DEFS can exceed. 2246rm -f -r conftest* confdefs.h 2247 2248$as_echo "/* confdefs.h */" > confdefs.h 2249 2250# Predefined preprocessor variables. 2251 2252cat >>confdefs.h <<_ACEOF 2253#define PACKAGE_NAME "$PACKAGE_NAME" 2254_ACEOF 2255 2256cat >>confdefs.h <<_ACEOF 2257#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2258_ACEOF 2259 2260cat >>confdefs.h <<_ACEOF 2261#define PACKAGE_VERSION "$PACKAGE_VERSION" 2262_ACEOF 2263 2264cat >>confdefs.h <<_ACEOF 2265#define PACKAGE_STRING "$PACKAGE_STRING" 2266_ACEOF 2267 2268cat >>confdefs.h <<_ACEOF 2269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2270_ACEOF 2271 2272cat >>confdefs.h <<_ACEOF 2273#define PACKAGE_URL "$PACKAGE_URL" 2274_ACEOF 2275 2276 2277# Let the site file select an alternate cache file if it wants to. 2278# Prefer an explicitly selected file to automatically selected ones. 2279ac_site_file1=NONE 2280ac_site_file2=NONE 2281if test -n "$CONFIG_SITE"; then 2282 # We do not want a PATH search for config.site. 2283 case $CONFIG_SITE in #(( 2284 -*) ac_site_file1=./$CONFIG_SITE;; 2285 */*) ac_site_file1=$CONFIG_SITE;; 2286 *) ac_site_file1=./$CONFIG_SITE;; 2287 esac 2288elif test "x$prefix" != xNONE; then 2289 ac_site_file1=$prefix/share/config.site 2290 ac_site_file2=$prefix/etc/config.site 2291else 2292 ac_site_file1=$ac_default_prefix/share/config.site 2293 ac_site_file2=$ac_default_prefix/etc/config.site 2294fi 2295for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2296do 2297 test "x$ac_site_file" = xNONE && continue 2298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2300$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2301 sed 's/^/| /' "$ac_site_file" >&5 2302 . "$ac_site_file" \ 2303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2305as_fn_error $? "failed to load site script $ac_site_file 2306See \`config.log' for more details" "$LINENO" 5; } 2307 fi 2308done 2309 2310if test -r "$cache_file"; then 2311 # Some versions of bash will fail to source /dev/null (special files 2312 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2315$as_echo "$as_me: loading cache $cache_file" >&6;} 2316 case $cache_file in 2317 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2318 *) . "./$cache_file";; 2319 esac 2320 fi 2321else 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2323$as_echo "$as_me: creating cache $cache_file" >&6;} 2324 >$cache_file 2325fi 2326 2327# Check that the precious variables saved in the cache have kept the same 2328# value. 2329ac_cache_corrupted=false 2330for ac_var in $ac_precious_vars; do 2331 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2332 eval ac_new_set=\$ac_env_${ac_var}_set 2333 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2334 eval ac_new_val=\$ac_env_${ac_var}_value 2335 case $ac_old_set,$ac_new_set in 2336 set,) 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2338$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2339 ac_cache_corrupted=: ;; 2340 ,set) 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2342$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2343 ac_cache_corrupted=: ;; 2344 ,);; 2345 *) 2346 if test "x$ac_old_val" != "x$ac_new_val"; then 2347 # differences in whitespace do not lead to failure. 2348 ac_old_val_w=`echo x $ac_old_val` 2349 ac_new_val_w=`echo x $ac_new_val` 2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2352$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2353 ac_cache_corrupted=: 2354 else 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2356$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2357 eval $ac_var=\$ac_old_val 2358 fi 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2360$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2362$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2363 fi;; 2364 esac 2365 # Pass precious variables to config.status. 2366 if test "$ac_new_set" = set; then 2367 case $ac_new_val in 2368 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2369 *) ac_arg=$ac_var=$ac_new_val ;; 2370 esac 2371 case " $ac_configure_args " in 2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2373 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2374 esac 2375 fi 2376done 2377if $ac_cache_corrupted; then 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2381$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2382 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2383fi 2384## -------------------- ## 2385## Main body of script. ## 2386## -------------------- ## 2387 2388ac_ext=c 2389ac_cpp='$CPP $CPPFLAGS' 2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2392ac_compiler_gnu=$ac_cv_c_compiler_gnu 2393 2394 2395 2396 2397ac_config_headers="$ac_config_headers config.h" 2398 2399 2400ac_aux_dir= 2401for ac_dir in . "$srcdir"/.; do 2402 if test -f "$ac_dir/install-sh"; then 2403 ac_aux_dir=$ac_dir 2404 ac_install_sh="$ac_aux_dir/install-sh -c" 2405 break 2406 elif test -f "$ac_dir/install.sh"; then 2407 ac_aux_dir=$ac_dir 2408 ac_install_sh="$ac_aux_dir/install.sh -c" 2409 break 2410 elif test -f "$ac_dir/shtool"; then 2411 ac_aux_dir=$ac_dir 2412 ac_install_sh="$ac_aux_dir/shtool install -c" 2413 break 2414 fi 2415done 2416if test -z "$ac_aux_dir"; then 2417 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2418fi 2419 2420# These three variables are undocumented and unsupported, 2421# and are intended to be withdrawn in a future Autoconf release. 2422# They can cause serious problems if a builder's source tree is in a directory 2423# whose full name contains unusual characters. 2424ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2425ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2426ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2427 2428 2429 2430# Initialize Automake 2431am__api_version='1.15' 2432 2433# Find a good install program. We prefer a C program (faster), 2434# so one script is as good as another. But avoid the broken or 2435# incompatible versions: 2436# SysV /etc/install, /usr/sbin/install 2437# SunOS /usr/etc/install 2438# IRIX /sbin/install 2439# AIX /bin/install 2440# AmigaOS /C/install, which installs bootblocks on floppy discs 2441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2442# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2444# OS/2's system install, which has a completely different semantic 2445# ./install, which can be erroneously created by make from ./install.sh. 2446# Reject install programs that cannot install multiple files. 2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2448$as_echo_n "checking for a BSD-compatible install... " >&6; } 2449if test -z "$INSTALL"; then 2450if ${ac_cv_path_install+:} false; then : 2451 $as_echo_n "(cached) " >&6 2452else 2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2454for as_dir in $PATH 2455do 2456 IFS=$as_save_IFS 2457 test -z "$as_dir" && as_dir=. 2458 # Account for people who put trailing slashes in PATH elements. 2459case $as_dir/ in #(( 2460 ./ | .// | /[cC]/* | \ 2461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2463 /usr/ucb/* ) ;; 2464 *) 2465 # OSF1 and SCO ODT 3.0 have their own names for install. 2466 # Don't use installbsd from OSF since it installs stuff as root 2467 # by default. 2468 for ac_prog in ginstall scoinst install; do 2469 for ac_exec_ext in '' $ac_executable_extensions; do 2470 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2471 if test $ac_prog = install && 2472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2473 # AIX install. It has an incompatible calling convention. 2474 : 2475 elif test $ac_prog = install && 2476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2477 # program-specific install script used by HP pwplus--don't use. 2478 : 2479 else 2480 rm -rf conftest.one conftest.two conftest.dir 2481 echo one > conftest.one 2482 echo two > conftest.two 2483 mkdir conftest.dir 2484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2485 test -s conftest.one && test -s conftest.two && 2486 test -s conftest.dir/conftest.one && 2487 test -s conftest.dir/conftest.two 2488 then 2489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2490 break 3 2491 fi 2492 fi 2493 fi 2494 done 2495 done 2496 ;; 2497esac 2498 2499 done 2500IFS=$as_save_IFS 2501 2502rm -rf conftest.one conftest.two conftest.dir 2503 2504fi 2505 if test "${ac_cv_path_install+set}" = set; then 2506 INSTALL=$ac_cv_path_install 2507 else 2508 # As a last resort, use the slow shell script. Don't cache a 2509 # value for INSTALL within a source directory, because that will 2510 # break other packages using the cache if that directory is 2511 # removed, or if the value is a relative name. 2512 INSTALL=$ac_install_sh 2513 fi 2514fi 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2516$as_echo "$INSTALL" >&6; } 2517 2518# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2519# It thinks the first close brace ends the variable substitution. 2520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2521 2522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2523 2524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2525 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2527$as_echo_n "checking whether build environment is sane... " >&6; } 2528# Reject unsafe characters in $srcdir or the absolute working directory 2529# name. Accept space and tab only in the latter. 2530am_lf=' 2531' 2532case `pwd` in 2533 *[\\\"\#\$\&\'\`$am_lf]*) 2534 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2535esac 2536case $srcdir in 2537 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2538 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2539esac 2540 2541# Do 'set' in a subshell so we don't clobber the current shell's 2542# arguments. Must try -L first in case configure is actually a 2543# symlink; some systems play weird games with the mod time of symlinks 2544# (eg FreeBSD returns the mod time of the symlink's containing 2545# directory). 2546if ( 2547 am_has_slept=no 2548 for am_try in 1 2; do 2549 echo "timestamp, slept: $am_has_slept" > conftest.file 2550 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2551 if test "$*" = "X"; then 2552 # -L didn't work. 2553 set X `ls -t "$srcdir/configure" conftest.file` 2554 fi 2555 if test "$*" != "X $srcdir/configure conftest.file" \ 2556 && test "$*" != "X conftest.file $srcdir/configure"; then 2557 2558 # If neither matched, then we have a broken ls. This can happen 2559 # if, for instance, CONFIG_SHELL is bash and it inherits a 2560 # broken ls alias from the environment. This has actually 2561 # happened. Such a system could not be considered "sane". 2562 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2563 alias in your environment" "$LINENO" 5 2564 fi 2565 if test "$2" = conftest.file || test $am_try -eq 2; then 2566 break 2567 fi 2568 # Just in case. 2569 sleep 1 2570 am_has_slept=yes 2571 done 2572 test "$2" = conftest.file 2573 ) 2574then 2575 # Ok. 2576 : 2577else 2578 as_fn_error $? "newly created file is older than distributed files! 2579Check your system clock" "$LINENO" 5 2580fi 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2582$as_echo "yes" >&6; } 2583# If we didn't sleep, we still need to ensure time stamps of config.status and 2584# generated files are strictly newer. 2585am_sleep_pid= 2586if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2587 ( sleep 1 ) & 2588 am_sleep_pid=$! 2589fi 2590 2591rm -f conftest.file 2592 2593test "$program_prefix" != NONE && 2594 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2595# Use a double $ so make ignores it. 2596test "$program_suffix" != NONE && 2597 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2598# Double any \ or $. 2599# By default was `s,x,x', remove it if useless. 2600ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2601program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2602 2603# Expand $ac_aux_dir to an absolute path. 2604am_aux_dir=`cd "$ac_aux_dir" && pwd` 2605 2606if test x"${MISSING+set}" != xset; then 2607 case $am_aux_dir in 2608 *\ * | *\ *) 2609 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2610 *) 2611 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2612 esac 2613fi 2614# Use eval to expand $SHELL 2615if eval "$MISSING --is-lightweight"; then 2616 am_missing_run="$MISSING " 2617else 2618 am_missing_run= 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2620$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2621fi 2622 2623if test x"${install_sh+set}" != xset; then 2624 case $am_aux_dir in 2625 *\ * | *\ *) 2626 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2627 *) 2628 install_sh="\${SHELL} $am_aux_dir/install-sh" 2629 esac 2630fi 2631 2632# Installed binaries are usually stripped using 'strip' when the user 2633# run "make install-strip". However 'strip' might not be the right 2634# tool to use in cross-compilation environments, therefore Automake 2635# will honor the 'STRIP' environment variable to overrule this program. 2636if test "$cross_compiling" != no; then 2637 if test -n "$ac_tool_prefix"; then 2638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2639set dummy ${ac_tool_prefix}strip; ac_word=$2 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2641$as_echo_n "checking for $ac_word... " >&6; } 2642if ${ac_cv_prog_STRIP+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test -n "$STRIP"; then 2646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2655 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665STRIP=$ac_cv_prog_STRIP 2666if test -n "$STRIP"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2668$as_echo "$STRIP" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 2675fi 2676if test -z "$ac_cv_prog_STRIP"; then 2677 ac_ct_STRIP=$STRIP 2678 # Extract the first word of "strip", so it can be a program name with args. 2679set dummy strip; ac_word=$2 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2681$as_echo_n "checking for $ac_word... " >&6; } 2682if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684else 2685 if test -n "$ac_ct_STRIP"; then 2686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2687else 2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 for ac_exec_ext in '' $ac_executable_extensions; do 2694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2695 ac_cv_prog_ac_ct_STRIP="strip" 2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2697 break 2 2698 fi 2699done 2700 done 2701IFS=$as_save_IFS 2702 2703fi 2704fi 2705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2706if test -n "$ac_ct_STRIP"; then 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2708$as_echo "$ac_ct_STRIP" >&6; } 2709else 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2711$as_echo "no" >&6; } 2712fi 2713 2714 if test "x$ac_ct_STRIP" = x; then 2715 STRIP=":" 2716 else 2717 case $cross_compiling:$ac_tool_warned in 2718yes:) 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2721ac_tool_warned=yes ;; 2722esac 2723 STRIP=$ac_ct_STRIP 2724 fi 2725else 2726 STRIP="$ac_cv_prog_STRIP" 2727fi 2728 2729fi 2730INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2731 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2733$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2734if test -z "$MKDIR_P"; then 2735 if ${ac_cv_path_mkdir+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2740do 2741 IFS=$as_save_IFS 2742 test -z "$as_dir" && as_dir=. 2743 for ac_prog in mkdir gmkdir; do 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2746 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2747 'mkdir (GNU coreutils) '* | \ 2748 'mkdir (coreutils) '* | \ 2749 'mkdir (fileutils) '4.1*) 2750 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2751 break 3;; 2752 esac 2753 done 2754 done 2755 done 2756IFS=$as_save_IFS 2757 2758fi 2759 2760 test -d ./--version && rmdir ./--version 2761 if test "${ac_cv_path_mkdir+set}" = set; then 2762 MKDIR_P="$ac_cv_path_mkdir -p" 2763 else 2764 # As a last resort, use the slow shell script. Don't cache a 2765 # value for MKDIR_P within a source directory, because that will 2766 # break other packages using the cache if that directory is 2767 # removed, or if the value is a relative name. 2768 MKDIR_P="$ac_install_sh -d" 2769 fi 2770fi 2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2772$as_echo "$MKDIR_P" >&6; } 2773 2774for ac_prog in gawk mawk nawk awk 2775do 2776 # Extract the first word of "$ac_prog", so it can be a program name with args. 2777set dummy $ac_prog; ac_word=$2 2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2779$as_echo_n "checking for $ac_word... " >&6; } 2780if ${ac_cv_prog_AWK+:} false; then : 2781 $as_echo_n "(cached) " >&6 2782else 2783 if test -n "$AWK"; then 2784 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2785else 2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2787for as_dir in $PATH 2788do 2789 IFS=$as_save_IFS 2790 test -z "$as_dir" && as_dir=. 2791 for ac_exec_ext in '' $ac_executable_extensions; do 2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2793 ac_cv_prog_AWK="$ac_prog" 2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2795 break 2 2796 fi 2797done 2798 done 2799IFS=$as_save_IFS 2800 2801fi 2802fi 2803AWK=$ac_cv_prog_AWK 2804if test -n "$AWK"; then 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2806$as_echo "$AWK" >&6; } 2807else 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2809$as_echo "no" >&6; } 2810fi 2811 2812 2813 test -n "$AWK" && break 2814done 2815 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2817$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2818set x ${MAKE-make} 2819ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2820if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 cat >conftest.make <<\_ACEOF 2824SHELL = /bin/sh 2825all: 2826 @echo '@@@%%%=$(MAKE)=@@@%%%' 2827_ACEOF 2828# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2829case `${MAKE-make} -f conftest.make 2>/dev/null` in 2830 *@@@%%%=?*=@@@%%%*) 2831 eval ac_cv_prog_make_${ac_make}_set=yes;; 2832 *) 2833 eval ac_cv_prog_make_${ac_make}_set=no;; 2834esac 2835rm -f conftest.make 2836fi 2837if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2839$as_echo "yes" >&6; } 2840 SET_MAKE= 2841else 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843$as_echo "no" >&6; } 2844 SET_MAKE="MAKE=${MAKE-make}" 2845fi 2846 2847rm -rf .tst 2>/dev/null 2848mkdir .tst 2>/dev/null 2849if test -d .tst; then 2850 am__leading_dot=. 2851else 2852 am__leading_dot=_ 2853fi 2854rmdir .tst 2>/dev/null 2855 2856# Check whether --enable-silent-rules was given. 2857if test "${enable_silent_rules+set}" = set; then : 2858 enableval=$enable_silent_rules; 2859fi 2860 2861case $enable_silent_rules in # ((( 2862 yes) AM_DEFAULT_VERBOSITY=0;; 2863 no) AM_DEFAULT_VERBOSITY=1;; 2864 *) AM_DEFAULT_VERBOSITY=1;; 2865esac 2866am_make=${MAKE-make} 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2868$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2869if ${am_cv_make_support_nested_variables+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 if $as_echo 'TRUE=$(BAR$(V)) 2873BAR0=false 2874BAR1=true 2875V=1 2876am__doit: 2877 @$(TRUE) 2878.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2879 am_cv_make_support_nested_variables=yes 2880else 2881 am_cv_make_support_nested_variables=no 2882fi 2883fi 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2885$as_echo "$am_cv_make_support_nested_variables" >&6; } 2886if test $am_cv_make_support_nested_variables = yes; then 2887 AM_V='$(V)' 2888 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2889else 2890 AM_V=$AM_DEFAULT_VERBOSITY 2891 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2892fi 2893AM_BACKSLASH='\' 2894 2895if test "`cd $srcdir && pwd`" != "`pwd`"; then 2896 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2897 # is not polluted with repeated "-I." 2898 am__isrc=' -I$(srcdir)' 2899 # test to see if srcdir already configured 2900 if test -f $srcdir/config.status; then 2901 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2902 fi 2903fi 2904 2905# test whether we have cygpath 2906if test -z "$CYGPATH_W"; then 2907 if (cygpath --version) >/dev/null 2>/dev/null; then 2908 CYGPATH_W='cygpath -w' 2909 else 2910 CYGPATH_W=echo 2911 fi 2912fi 2913 2914 2915# Define the identity of the package. 2916 PACKAGE='xf86-video-ati' 2917 VERSION='7.7.0' 2918 2919 2920cat >>confdefs.h <<_ACEOF 2921#define PACKAGE "$PACKAGE" 2922_ACEOF 2923 2924 2925cat >>confdefs.h <<_ACEOF 2926#define VERSION "$VERSION" 2927_ACEOF 2928 2929# Some tools Automake needs. 2930 2931ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2932 2933 2934AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2935 2936 2937AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2938 2939 2940AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2941 2942 2943MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2944 2945# For better backward compatibility. To be removed once Automake 1.9.x 2946# dies out for good. For more background, see: 2947# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2948# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2949mkdir_p='$(MKDIR_P)' 2950 2951# We need awk for the "check" target (and possibly the TAP driver). The 2952# system "awk" is bad on some platforms. 2953# Always define AMTAR for backward compatibility. Yes, it's still used 2954# in the wild :-( We should find a proper way to deprecate it ... 2955AMTAR='$${TAR-tar}' 2956 2957 2958# We'll loop over all known methods to create a tar archive until one works. 2959_am_tools='gnutar pax cpio none' 2960 2961am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2962 2963 2964 2965 2966 2967 2968# POSIX will say in a future version that running "rm -f" with no argument 2969# is OK; and we want to be able to make that assumption in our Makefile 2970# recipes. So use an aggressive probe to check that the usage we want is 2971# actually supported "in the wild" to an acceptable degree. 2972# See automake bug#10828. 2973# To make any issue more visible, cause the running configure to be aborted 2974# by default if the 'rm' program in use doesn't match our expectations; the 2975# user can still override this though. 2976if rm -f && rm -fr && rm -rf; then : OK; else 2977 cat >&2 <<'END' 2978Oops! 2979 2980Your 'rm' program seems unable to run without file operands specified 2981on the command line, even when the '-f' option is present. This is contrary 2982to the behaviour of most rm programs out there, and not conforming with 2983the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2984 2985Please tell bug-automake@gnu.org about your system, including the value 2986of your $PATH and any error possibly output before this message. This 2987can help us improve future automake versions. 2988 2989END 2990 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2991 echo 'Configuration will proceed anyway, since you have set the' >&2 2992 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2993 echo >&2 2994 else 2995 cat >&2 <<'END' 2996Aborting the configuration process, to ensure you take notice of the issue. 2997 2998You can download and install GNU coreutils to get an 'rm' implementation 2999that behaves properly: <http://www.gnu.org/software/coreutils/>. 3000 3001If you want to complete the configuration process using your problematic 3002'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3003to "yes", and re-run configure. 3004 3005END 3006 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3007 fi 3008fi 3009 3010DEPDIR="${am__leading_dot}deps" 3011 3012ac_config_commands="$ac_config_commands depfiles" 3013 3014 3015am_make=${MAKE-make} 3016cat > confinc << 'END' 3017am__doit: 3018 @echo this is the am__doit target 3019.PHONY: am__doit 3020END 3021# If we don't find an include directive, just comment out the code. 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3023$as_echo_n "checking for style of include used by $am_make... " >&6; } 3024am__include="#" 3025am__quote= 3026_am_result=none 3027# First try GNU make style include. 3028echo "include confinc" > confmf 3029# Ignore all kinds of additional output from 'make'. 3030case `$am_make -s -f confmf 2> /dev/null` in #( 3031*the\ am__doit\ target*) 3032 am__include=include 3033 am__quote= 3034 _am_result=GNU 3035 ;; 3036esac 3037# Now try BSD make style include. 3038if test "$am__include" = "#"; then 3039 echo '.include "confinc"' > confmf 3040 case `$am_make -s -f confmf 2> /dev/null` in #( 3041 *the\ am__doit\ target*) 3042 am__include=.include 3043 am__quote="\"" 3044 _am_result=BSD 3045 ;; 3046 esac 3047fi 3048 3049 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3051$as_echo "$_am_result" >&6; } 3052rm -f confinc confmf 3053 3054# Check whether --enable-dependency-tracking was given. 3055if test "${enable_dependency_tracking+set}" = set; then : 3056 enableval=$enable_dependency_tracking; 3057fi 3058 3059if test "x$enable_dependency_tracking" != xno; then 3060 am_depcomp="$ac_aux_dir/depcomp" 3061 AMDEPBACKSLASH='\' 3062 am__nodep='_no' 3063fi 3064 if test "x$enable_dependency_tracking" != xno; then 3065 AMDEP_TRUE= 3066 AMDEP_FALSE='#' 3067else 3068 AMDEP_TRUE='#' 3069 AMDEP_FALSE= 3070fi 3071 3072 3073ac_ext=c 3074ac_cpp='$CPP $CPPFLAGS' 3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3077ac_compiler_gnu=$ac_cv_c_compiler_gnu 3078if test -n "$ac_tool_prefix"; then 3079 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3080set dummy ${ac_tool_prefix}gcc; ac_word=$2 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3082$as_echo_n "checking for $ac_word... " >&6; } 3083if ${ac_cv_prog_CC+:} false; then : 3084 $as_echo_n "(cached) " >&6 3085else 3086 if test -n "$CC"; then 3087 ac_cv_prog_CC="$CC" # Let the user override the test. 3088else 3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090for as_dir in $PATH 3091do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3096 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 break 2 3099 fi 3100done 3101 done 3102IFS=$as_save_IFS 3103 3104fi 3105fi 3106CC=$ac_cv_prog_CC 3107if test -n "$CC"; then 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3109$as_echo "$CC" >&6; } 3110else 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112$as_echo "no" >&6; } 3113fi 3114 3115 3116fi 3117if test -z "$ac_cv_prog_CC"; then 3118 ac_ct_CC=$CC 3119 # Extract the first word of "gcc", so it can be a program name with args. 3120set dummy gcc; ac_word=$2 3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122$as_echo_n "checking for $ac_word... " >&6; } 3123if ${ac_cv_prog_ac_ct_CC+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$ac_ct_CC"; then 3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3136 ac_cv_prog_ac_ct_CC="gcc" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146ac_ct_CC=$ac_cv_prog_ac_ct_CC 3147if test -n "$ac_ct_CC"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3149$as_echo "$ac_ct_CC" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 if test "x$ac_ct_CC" = x; then 3156 CC="" 3157 else 3158 case $cross_compiling:$ac_tool_warned in 3159yes:) 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3162ac_tool_warned=yes ;; 3163esac 3164 CC=$ac_ct_CC 3165 fi 3166else 3167 CC="$ac_cv_prog_CC" 3168fi 3169 3170if test -z "$CC"; then 3171 if test -n "$ac_tool_prefix"; then 3172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3173set dummy ${ac_tool_prefix}cc; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if ${ac_cv_prog_CC+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$CC"; then 3180 ac_cv_prog_CC="$CC" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_CC="${ac_tool_prefix}cc" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199CC=$ac_cv_prog_CC 3200if test -n "$CC"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3202$as_echo "$CC" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 3209 fi 3210fi 3211if test -z "$CC"; then 3212 # Extract the first word of "cc", so it can be a program name with args. 3213set dummy cc; ac_word=$2 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3215$as_echo_n "checking for $ac_word... " >&6; } 3216if ${ac_cv_prog_CC+:} false; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 if test -n "$CC"; then 3220 ac_cv_prog_CC="$CC" # Let the user override the test. 3221else 3222 ac_prog_rejected=no 3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3224for as_dir in $PATH 3225do 3226 IFS=$as_save_IFS 3227 test -z "$as_dir" && as_dir=. 3228 for ac_exec_ext in '' $ac_executable_extensions; do 3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3230 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3231 ac_prog_rejected=yes 3232 continue 3233 fi 3234 ac_cv_prog_CC="cc" 3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3236 break 2 3237 fi 3238done 3239 done 3240IFS=$as_save_IFS 3241 3242if test $ac_prog_rejected = yes; then 3243 # We found a bogon in the path, so make sure we never use it. 3244 set dummy $ac_cv_prog_CC 3245 shift 3246 if test $# != 0; then 3247 # We chose a different compiler from the bogus one. 3248 # However, it has the same basename, so the bogon will be chosen 3249 # first if we set CC to just the basename; use the full file name. 3250 shift 3251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3252 fi 3253fi 3254fi 3255fi 3256CC=$ac_cv_prog_CC 3257if test -n "$CC"; then 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3259$as_echo "$CC" >&6; } 3260else 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3262$as_echo "no" >&6; } 3263fi 3264 3265 3266fi 3267if test -z "$CC"; then 3268 if test -n "$ac_tool_prefix"; then 3269 for ac_prog in cl.exe 3270 do 3271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3274$as_echo_n "checking for $ac_word... " >&6; } 3275if ${ac_cv_prog_CC+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 if test -n "$CC"; then 3279 ac_cv_prog_CC="$CC" # Let the user override the test. 3280else 3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3282for as_dir in $PATH 3283do 3284 IFS=$as_save_IFS 3285 test -z "$as_dir" && as_dir=. 3286 for ac_exec_ext in '' $ac_executable_extensions; do 3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3288 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3290 break 2 3291 fi 3292done 3293 done 3294IFS=$as_save_IFS 3295 3296fi 3297fi 3298CC=$ac_cv_prog_CC 3299if test -n "$CC"; then 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3301$as_echo "$CC" >&6; } 3302else 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3304$as_echo "no" >&6; } 3305fi 3306 3307 3308 test -n "$CC" && break 3309 done 3310fi 3311if test -z "$CC"; then 3312 ac_ct_CC=$CC 3313 for ac_prog in cl.exe 3314do 3315 # Extract the first word of "$ac_prog", so it can be a program name with args. 3316set dummy $ac_prog; ac_word=$2 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3318$as_echo_n "checking for $ac_word... " >&6; } 3319if ${ac_cv_prog_ac_ct_CC+:} false; then : 3320 $as_echo_n "(cached) " >&6 3321else 3322 if test -n "$ac_ct_CC"; then 3323 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3324else 3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3326for as_dir in $PATH 3327do 3328 IFS=$as_save_IFS 3329 test -z "$as_dir" && as_dir=. 3330 for ac_exec_ext in '' $ac_executable_extensions; do 3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3332 ac_cv_prog_ac_ct_CC="$ac_prog" 3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3334 break 2 3335 fi 3336done 3337 done 3338IFS=$as_save_IFS 3339 3340fi 3341fi 3342ac_ct_CC=$ac_cv_prog_ac_ct_CC 3343if test -n "$ac_ct_CC"; then 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3345$as_echo "$ac_ct_CC" >&6; } 3346else 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3348$as_echo "no" >&6; } 3349fi 3350 3351 3352 test -n "$ac_ct_CC" && break 3353done 3354 3355 if test "x$ac_ct_CC" = x; then 3356 CC="" 3357 else 3358 case $cross_compiling:$ac_tool_warned in 3359yes:) 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3362ac_tool_warned=yes ;; 3363esac 3364 CC=$ac_ct_CC 3365 fi 3366fi 3367 3368fi 3369 3370 3371test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3373as_fn_error $? "no acceptable C compiler found in \$PATH 3374See \`config.log' for more details" "$LINENO" 5; } 3375 3376# Provide some information about the compiler. 3377$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3378set X $ac_compile 3379ac_compiler=$2 3380for ac_option in --version -v -V -qversion; do 3381 { { ac_try="$ac_compiler $ac_option >&5" 3382case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3387$as_echo "$ac_try_echo"; } >&5 3388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3389 ac_status=$? 3390 if test -s conftest.err; then 3391 sed '10a\ 3392... rest of stderr output deleted ... 3393 10q' conftest.err >conftest.er1 3394 cat conftest.er1 >&5 3395 fi 3396 rm -f conftest.er1 conftest.err 3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3398 test $ac_status = 0; } 3399done 3400 3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3402/* end confdefs.h. */ 3403 3404int 3405main () 3406{ 3407 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412ac_clean_files_save=$ac_clean_files 3413ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3414# Try to create an executable without -o first, disregard a.out. 3415# It will help us diagnose broken compilers, and finding out an intuition 3416# of exeext. 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3418$as_echo_n "checking whether the C compiler works... " >&6; } 3419ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3420 3421# The possible output files: 3422ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3423 3424ac_rmfiles= 3425for ac_file in $ac_files 3426do 3427 case $ac_file in 3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3429 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3430 esac 3431done 3432rm -f $ac_rmfiles 3433 3434if { { ac_try="$ac_link_default" 3435case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438esac 3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3440$as_echo "$ac_try_echo"; } >&5 3441 (eval "$ac_link_default") 2>&5 3442 ac_status=$? 3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3444 test $ac_status = 0; }; then : 3445 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3446# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3447# in a Makefile. We should not override ac_cv_exeext if it was cached, 3448# so that the user can short-circuit this test for compilers unknown to 3449# Autoconf. 3450for ac_file in $ac_files '' 3451do 3452 test -f "$ac_file" || continue 3453 case $ac_file in 3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3455 ;; 3456 [ab].out ) 3457 # We found the default executable, but exeext='' is most 3458 # certainly right. 3459 break;; 3460 *.* ) 3461 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3462 then :; else 3463 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3464 fi 3465 # We set ac_cv_exeext here because the later test for it is not 3466 # safe: cross compilers may not add the suffix if given an `-o' 3467 # argument, so we may need to know it at that point already. 3468 # Even if this section looks crufty: it has the advantage of 3469 # actually working. 3470 break;; 3471 * ) 3472 break;; 3473 esac 3474done 3475test "$ac_cv_exeext" = no && ac_cv_exeext= 3476 3477else 3478 ac_file='' 3479fi 3480if test -z "$ac_file"; then : 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3482$as_echo "no" >&6; } 3483$as_echo "$as_me: failed program was:" >&5 3484sed 's/^/| /' conftest.$ac_ext >&5 3485 3486{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3488as_fn_error 77 "C compiler cannot create executables 3489See \`config.log' for more details" "$LINENO" 5; } 3490else 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3492$as_echo "yes" >&6; } 3493fi 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3495$as_echo_n "checking for C compiler default output file name... " >&6; } 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3497$as_echo "$ac_file" >&6; } 3498ac_exeext=$ac_cv_exeext 3499 3500rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3501ac_clean_files=$ac_clean_files_save 3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3503$as_echo_n "checking for suffix of executables... " >&6; } 3504if { { ac_try="$ac_link" 3505case "(($ac_try" in 3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3507 *) ac_try_echo=$ac_try;; 3508esac 3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3510$as_echo "$ac_try_echo"; } >&5 3511 (eval "$ac_link") 2>&5 3512 ac_status=$? 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; }; then : 3515 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3516# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3517# work properly (i.e., refer to `conftest.exe'), while it won't with 3518# `rm'. 3519for ac_file in conftest.exe conftest conftest.*; do 3520 test -f "$ac_file" || continue 3521 case $ac_file in 3522 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3523 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3524 break;; 3525 * ) break;; 3526 esac 3527done 3528else 3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3531as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3532See \`config.log' for more details" "$LINENO" 5; } 3533fi 3534rm -f conftest conftest$ac_cv_exeext 3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3536$as_echo "$ac_cv_exeext" >&6; } 3537 3538rm -f conftest.$ac_ext 3539EXEEXT=$ac_cv_exeext 3540ac_exeext=$EXEEXT 3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543#include <stdio.h> 3544int 3545main () 3546{ 3547FILE *f = fopen ("conftest.out", "w"); 3548 return ferror (f) || fclose (f) != 0; 3549 3550 ; 3551 return 0; 3552} 3553_ACEOF 3554ac_clean_files="$ac_clean_files conftest.out" 3555# Check that the compiler produces executables we can run. If not, either 3556# the compiler is broken, or we cross compile. 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3558$as_echo_n "checking whether we are cross compiling... " >&6; } 3559if test "$cross_compiling" != yes; then 3560 { { ac_try="$ac_link" 3561case "(($ac_try" in 3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3563 *) ac_try_echo=$ac_try;; 3564esac 3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3566$as_echo "$ac_try_echo"; } >&5 3567 (eval "$ac_link") 2>&5 3568 ac_status=$? 3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3570 test $ac_status = 0; } 3571 if { ac_try='./conftest$ac_cv_exeext' 3572 { { case "(($ac_try" in 3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3574 *) ac_try_echo=$ac_try;; 3575esac 3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3577$as_echo "$ac_try_echo"; } >&5 3578 (eval "$ac_try") 2>&5 3579 ac_status=$? 3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3581 test $ac_status = 0; }; }; then 3582 cross_compiling=no 3583 else 3584 if test "$cross_compiling" = maybe; then 3585 cross_compiling=yes 3586 else 3587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3589as_fn_error $? "cannot run C compiled programs. 3590If you meant to cross compile, use \`--host'. 3591See \`config.log' for more details" "$LINENO" 5; } 3592 fi 3593 fi 3594fi 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3596$as_echo "$cross_compiling" >&6; } 3597 3598rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3599ac_clean_files=$ac_clean_files_save 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3601$as_echo_n "checking for suffix of object files... " >&6; } 3602if ${ac_cv_objext+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604else 3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3606/* end confdefs.h. */ 3607 3608int 3609main () 3610{ 3611 3612 ; 3613 return 0; 3614} 3615_ACEOF 3616rm -f conftest.o conftest.obj 3617if { { ac_try="$ac_compile" 3618case "(($ac_try" in 3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3620 *) ac_try_echo=$ac_try;; 3621esac 3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3623$as_echo "$ac_try_echo"; } >&5 3624 (eval "$ac_compile") 2>&5 3625 ac_status=$? 3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3627 test $ac_status = 0; }; then : 3628 for ac_file in conftest.o conftest.obj conftest.*; do 3629 test -f "$ac_file" || continue; 3630 case $ac_file in 3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3633 break;; 3634 esac 3635done 3636else 3637 $as_echo "$as_me: failed program was:" >&5 3638sed 's/^/| /' conftest.$ac_ext >&5 3639 3640{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3642as_fn_error $? "cannot compute suffix of object files: cannot compile 3643See \`config.log' for more details" "$LINENO" 5; } 3644fi 3645rm -f conftest.$ac_cv_objext conftest.$ac_ext 3646fi 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3648$as_echo "$ac_cv_objext" >&6; } 3649OBJEXT=$ac_cv_objext 3650ac_objext=$OBJEXT 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3652$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3653if ${ac_cv_c_compiler_gnu+:} false; then : 3654 $as_echo_n "(cached) " >&6 3655else 3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3657/* end confdefs.h. */ 3658 3659int 3660main () 3661{ 3662#ifndef __GNUC__ 3663 choke me 3664#endif 3665 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670if ac_fn_c_try_compile "$LINENO"; then : 3671 ac_compiler_gnu=yes 3672else 3673 ac_compiler_gnu=no 3674fi 3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3676ac_cv_c_compiler_gnu=$ac_compiler_gnu 3677 3678fi 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3680$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3681if test $ac_compiler_gnu = yes; then 3682 GCC=yes 3683else 3684 GCC= 3685fi 3686ac_test_CFLAGS=${CFLAGS+set} 3687ac_save_CFLAGS=$CFLAGS 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3689$as_echo_n "checking whether $CC accepts -g... " >&6; } 3690if ${ac_cv_prog_cc_g+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 ac_save_c_werror_flag=$ac_c_werror_flag 3694 ac_c_werror_flag=yes 3695 ac_cv_prog_cc_g=no 3696 CFLAGS="-g" 3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699 3700int 3701main () 3702{ 3703 3704 ; 3705 return 0; 3706} 3707_ACEOF 3708if ac_fn_c_try_compile "$LINENO"; then : 3709 ac_cv_prog_cc_g=yes 3710else 3711 CFLAGS="" 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714 3715int 3716main () 3717{ 3718 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723if ac_fn_c_try_compile "$LINENO"; then : 3724 3725else 3726 ac_c_werror_flag=$ac_save_c_werror_flag 3727 CFLAGS="-g" 3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3729/* end confdefs.h. */ 3730 3731int 3732main () 3733{ 3734 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739if ac_fn_c_try_compile "$LINENO"; then : 3740 ac_cv_prog_cc_g=yes 3741fi 3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3743fi 3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3745fi 3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3747 ac_c_werror_flag=$ac_save_c_werror_flag 3748fi 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3750$as_echo "$ac_cv_prog_cc_g" >&6; } 3751if test "$ac_test_CFLAGS" = set; then 3752 CFLAGS=$ac_save_CFLAGS 3753elif test $ac_cv_prog_cc_g = yes; then 3754 if test "$GCC" = yes; then 3755 CFLAGS="-g -O2" 3756 else 3757 CFLAGS="-g" 3758 fi 3759else 3760 if test "$GCC" = yes; then 3761 CFLAGS="-O2" 3762 else 3763 CFLAGS= 3764 fi 3765fi 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3767$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3768if ${ac_cv_prog_cc_c89+:} false; then : 3769 $as_echo_n "(cached) " >&6 3770else 3771 ac_cv_prog_cc_c89=no 3772ac_save_CC=$CC 3773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774/* end confdefs.h. */ 3775#include <stdarg.h> 3776#include <stdio.h> 3777struct stat; 3778/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3779struct buf { int x; }; 3780FILE * (*rcsopen) (struct buf *, struct stat *, int); 3781static char *e (p, i) 3782 char **p; 3783 int i; 3784{ 3785 return p[i]; 3786} 3787static char *f (char * (*g) (char **, int), char **p, ...) 3788{ 3789 char *s; 3790 va_list v; 3791 va_start (v,p); 3792 s = g (p, va_arg (v,int)); 3793 va_end (v); 3794 return s; 3795} 3796 3797/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3798 function prototypes and stuff, but not '\xHH' hex character constants. 3799 These don't provoke an error unfortunately, instead are silently treated 3800 as 'x'. The following induces an error, until -std is added to get 3801 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3802 array size at least. It's necessary to write '\x00'==0 to get something 3803 that's true only with -std. */ 3804int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3805 3806/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3807 inside strings and character constants. */ 3808#define FOO(x) 'x' 3809int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3810 3811int test (int i, double x); 3812struct s1 {int (*f) (int a);}; 3813struct s2 {int (*f) (double a);}; 3814int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3815int argc; 3816char **argv; 3817int 3818main () 3819{ 3820return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3826 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3827do 3828 CC="$ac_save_CC $ac_arg" 3829 if ac_fn_c_try_compile "$LINENO"; then : 3830 ac_cv_prog_cc_c89=$ac_arg 3831fi 3832rm -f core conftest.err conftest.$ac_objext 3833 test "x$ac_cv_prog_cc_c89" != "xno" && break 3834done 3835rm -f conftest.$ac_ext 3836CC=$ac_save_CC 3837 3838fi 3839# AC_CACHE_VAL 3840case "x$ac_cv_prog_cc_c89" in 3841 x) 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3843$as_echo "none needed" >&6; } ;; 3844 xno) 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3846$as_echo "unsupported" >&6; } ;; 3847 *) 3848 CC="$CC $ac_cv_prog_cc_c89" 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3850$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3851esac 3852if test "x$ac_cv_prog_cc_c89" != xno; then : 3853 3854fi 3855 3856ac_ext=c 3857ac_cpp='$CPP $CPPFLAGS' 3858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3860ac_compiler_gnu=$ac_cv_c_compiler_gnu 3861 3862ac_ext=c 3863ac_cpp='$CPP $CPPFLAGS' 3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3866ac_compiler_gnu=$ac_cv_c_compiler_gnu 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3868$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3869if ${am_cv_prog_cc_c_o+:} false; then : 3870 $as_echo_n "(cached) " >&6 3871else 3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874 3875int 3876main () 3877{ 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883 # Make sure it works both with $CC and with simple cc. 3884 # Following AC_PROG_CC_C_O, we do the test twice because some 3885 # compilers refuse to overwrite an existing .o file with -o, 3886 # though they will create one. 3887 am_cv_prog_cc_c_o=yes 3888 for am_i in 1 2; do 3889 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3890 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3891 ac_status=$? 3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3893 (exit $ac_status); } \ 3894 && test -f conftest2.$ac_objext; then 3895 : OK 3896 else 3897 am_cv_prog_cc_c_o=no 3898 break 3899 fi 3900 done 3901 rm -f core conftest* 3902 unset am_i 3903fi 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3905$as_echo "$am_cv_prog_cc_c_o" >&6; } 3906if test "$am_cv_prog_cc_c_o" != yes; then 3907 # Losing compiler, so override with the script. 3908 # FIXME: It is wrong to rewrite CC. 3909 # But if we don't then we get into trouble of one sort or another. 3910 # A longer-term fix would be to have automake use am__CC in this case, 3911 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3912 CC="$am_aux_dir/compile $CC" 3913fi 3914ac_ext=c 3915ac_cpp='$CPP $CPPFLAGS' 3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3918ac_compiler_gnu=$ac_cv_c_compiler_gnu 3919 3920 3921depcc="$CC" am_compiler_list= 3922 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3924$as_echo_n "checking dependency style of $depcc... " >&6; } 3925if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3926 $as_echo_n "(cached) " >&6 3927else 3928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3929 # We make a subdir and do the tests there. Otherwise we can end up 3930 # making bogus files that we don't know about and never remove. For 3931 # instance it was reported that on HP-UX the gcc test will end up 3932 # making a dummy file named 'D' -- because '-MD' means "put the output 3933 # in D". 3934 rm -rf conftest.dir 3935 mkdir conftest.dir 3936 # Copy depcomp to subdir because otherwise we won't find it if we're 3937 # using a relative directory. 3938 cp "$am_depcomp" conftest.dir 3939 cd conftest.dir 3940 # We will build objects and dependencies in a subdirectory because 3941 # it helps to detect inapplicable dependency modes. For instance 3942 # both Tru64's cc and ICC support -MD to output dependencies as a 3943 # side effect of compilation, but ICC will put the dependencies in 3944 # the current directory while Tru64 will put them in the object 3945 # directory. 3946 mkdir sub 3947 3948 am_cv_CC_dependencies_compiler_type=none 3949 if test "$am_compiler_list" = ""; then 3950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3951 fi 3952 am__universal=false 3953 case " $depcc " in #( 3954 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3955 esac 3956 3957 for depmode in $am_compiler_list; do 3958 # Setup a source with many dependencies, because some compilers 3959 # like to wrap large dependency lists on column 80 (with \), and 3960 # we should not choose a depcomp mode which is confused by this. 3961 # 3962 # We need to recreate these files for each test, as the compiler may 3963 # overwrite some of them when testing with obscure command lines. 3964 # This happens at least with the AIX C compiler. 3965 : > sub/conftest.c 3966 for i in 1 2 3 4 5 6; do 3967 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3968 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3969 # Solaris 10 /bin/sh. 3970 echo '/* dummy */' > sub/conftst$i.h 3971 done 3972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3973 3974 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3975 # mode. It turns out that the SunPro C++ compiler does not properly 3976 # handle '-M -o', and we need to detect this. Also, some Intel 3977 # versions had trouble with output in subdirs. 3978 am__obj=sub/conftest.${OBJEXT-o} 3979 am__minus_obj="-o $am__obj" 3980 case $depmode in 3981 gcc) 3982 # This depmode causes a compiler race in universal mode. 3983 test "$am__universal" = false || continue 3984 ;; 3985 nosideeffect) 3986 # After this tag, mechanisms are not by side-effect, so they'll 3987 # only be used when explicitly requested. 3988 if test "x$enable_dependency_tracking" = xyes; then 3989 continue 3990 else 3991 break 3992 fi 3993 ;; 3994 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3995 # This compiler won't grok '-c -o', but also, the minuso test has 3996 # not run yet. These depmodes are late enough in the game, and 3997 # so weak that their functioning should not be impacted. 3998 am__obj=conftest.${OBJEXT-o} 3999 am__minus_obj= 4000 ;; 4001 none) break ;; 4002 esac 4003 if depmode=$depmode \ 4004 source=sub/conftest.c object=$am__obj \ 4005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4006 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4007 >/dev/null 2>conftest.err && 4008 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4010 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4012 # icc doesn't choke on unknown options, it will just issue warnings 4013 # or remarks (even with -Werror). So we grep stderr for any message 4014 # that says an option was ignored or not supported. 4015 # When given -MP, icc 7.0 and 7.1 complain thusly: 4016 # icc: Command line warning: ignoring option '-M'; no argument required 4017 # The diagnosis changed in icc 8.0: 4018 # icc: Command line remark: option '-MP' not supported 4019 if (grep 'ignoring option' conftest.err || 4020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4021 am_cv_CC_dependencies_compiler_type=$depmode 4022 break 4023 fi 4024 fi 4025 done 4026 4027 cd .. 4028 rm -rf conftest.dir 4029else 4030 am_cv_CC_dependencies_compiler_type=none 4031fi 4032 4033fi 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4035$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4036CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4037 4038 if 4039 test "x$enable_dependency_tracking" != xno \ 4040 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4041 am__fastdepCC_TRUE= 4042 am__fastdepCC_FALSE='#' 4043else 4044 am__fastdepCC_TRUE='#' 4045 am__fastdepCC_FALSE= 4046fi 4047 4048 4049 4050# Check whether --enable-largefile was given. 4051if test "${enable_largefile+set}" = set; then : 4052 enableval=$enable_largefile; 4053fi 4054 4055if test "$enable_largefile" != no; then 4056 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4058$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 4059if ${ac_cv_sys_largefile_CC+:} false; then : 4060 $as_echo_n "(cached) " >&6 4061else 4062 ac_cv_sys_largefile_CC=no 4063 if test "$GCC" != yes; then 4064 ac_save_CC=$CC 4065 while :; do 4066 # IRIX 6.2 and later do not support large files by default, 4067 # so use the C compiler's -n32 option if that helps. 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070#include <sys/types.h> 4071 /* Check that off_t can represent 2**63 - 1 correctly. 4072 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4073 since some C++ compilers masquerading as C compilers 4074 incorrectly reject 9223372036854775807. */ 4075#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4077 && LARGE_OFF_T % 2147483647 == 1) 4078 ? 1 : -1]; 4079int 4080main () 4081{ 4082 4083 ; 4084 return 0; 4085} 4086_ACEOF 4087 if ac_fn_c_try_compile "$LINENO"; then : 4088 break 4089fi 4090rm -f core conftest.err conftest.$ac_objext 4091 CC="$CC -n32" 4092 if ac_fn_c_try_compile "$LINENO"; then : 4093 ac_cv_sys_largefile_CC=' -n32'; break 4094fi 4095rm -f core conftest.err conftest.$ac_objext 4096 break 4097 done 4098 CC=$ac_save_CC 4099 rm -f conftest.$ac_ext 4100 fi 4101fi 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4103$as_echo "$ac_cv_sys_largefile_CC" >&6; } 4104 if test "$ac_cv_sys_largefile_CC" != no; then 4105 CC=$CC$ac_cv_sys_largefile_CC 4106 fi 4107 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4109$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4110if ${ac_cv_sys_file_offset_bits+:} false; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 while :; do 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116#include <sys/types.h> 4117 /* Check that off_t can represent 2**63 - 1 correctly. 4118 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4119 since some C++ compilers masquerading as C compilers 4120 incorrectly reject 9223372036854775807. */ 4121#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4123 && LARGE_OFF_T % 2147483647 == 1) 4124 ? 1 : -1]; 4125int 4126main () 4127{ 4128 4129 ; 4130 return 0; 4131} 4132_ACEOF 4133if ac_fn_c_try_compile "$LINENO"; then : 4134 ac_cv_sys_file_offset_bits=no; break 4135fi 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139#define _FILE_OFFSET_BITS 64 4140#include <sys/types.h> 4141 /* Check that off_t can represent 2**63 - 1 correctly. 4142 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4143 since some C++ compilers masquerading as C compilers 4144 incorrectly reject 9223372036854775807. */ 4145#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4147 && LARGE_OFF_T % 2147483647 == 1) 4148 ? 1 : -1]; 4149int 4150main () 4151{ 4152 4153 ; 4154 return 0; 4155} 4156_ACEOF 4157if ac_fn_c_try_compile "$LINENO"; then : 4158 ac_cv_sys_file_offset_bits=64; break 4159fi 4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4161 ac_cv_sys_file_offset_bits=unknown 4162 break 4163done 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4166$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 4167case $ac_cv_sys_file_offset_bits in #( 4168 no | unknown) ;; 4169 *) 4170cat >>confdefs.h <<_ACEOF 4171#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 4172_ACEOF 4173;; 4174esac 4175rm -rf conftest* 4176 if test $ac_cv_sys_file_offset_bits = unknown; then 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4178$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 4179if ${ac_cv_sys_large_files+:} false; then : 4180 $as_echo_n "(cached) " >&6 4181else 4182 while :; do 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185#include <sys/types.h> 4186 /* Check that off_t can represent 2**63 - 1 correctly. 4187 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4188 since some C++ compilers masquerading as C compilers 4189 incorrectly reject 9223372036854775807. */ 4190#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4192 && LARGE_OFF_T % 2147483647 == 1) 4193 ? 1 : -1]; 4194int 4195main () 4196{ 4197 4198 ; 4199 return 0; 4200} 4201_ACEOF 4202if ac_fn_c_try_compile "$LINENO"; then : 4203 ac_cv_sys_large_files=no; break 4204fi 4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207/* end confdefs.h. */ 4208#define _LARGE_FILES 1 4209#include <sys/types.h> 4210 /* Check that off_t can represent 2**63 - 1 correctly. 4211 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4212 since some C++ compilers masquerading as C compilers 4213 incorrectly reject 9223372036854775807. */ 4214#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 4215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4216 && LARGE_OFF_T % 2147483647 == 1) 4217 ? 1 : -1]; 4218int 4219main () 4220{ 4221 4222 ; 4223 return 0; 4224} 4225_ACEOF 4226if ac_fn_c_try_compile "$LINENO"; then : 4227 ac_cv_sys_large_files=1; break 4228fi 4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4230 ac_cv_sys_large_files=unknown 4231 break 4232done 4233fi 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4235$as_echo "$ac_cv_sys_large_files" >&6; } 4236case $ac_cv_sys_large_files in #( 4237 no | unknown) ;; 4238 *) 4239cat >>confdefs.h <<_ACEOF 4240#define _LARGE_FILES $ac_cv_sys_large_files 4241_ACEOF 4242;; 4243esac 4244rm -rf conftest* 4245 fi 4246 4247 4248fi 4249 4250 4251 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4253$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4254 # Check whether --enable-maintainer-mode was given. 4255if test "${enable_maintainer_mode+set}" = set; then : 4256 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4257else 4258 USE_MAINTAINER_MODE=no 4259fi 4260 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4262$as_echo "$USE_MAINTAINER_MODE" >&6; } 4263 if test $USE_MAINTAINER_MODE = yes; then 4264 MAINTAINER_MODE_TRUE= 4265 MAINTAINER_MODE_FALSE='#' 4266else 4267 MAINTAINER_MODE_TRUE='#' 4268 MAINTAINER_MODE_FALSE= 4269fi 4270 4271 MAINT=$MAINTAINER_MODE_TRUE 4272 4273 4274 4275# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4288$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4289if ${ac_cv_prog_cc_c99+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 ac_cv_prog_cc_c99=no 4293ac_save_CC=$CC 4294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4295/* end confdefs.h. */ 4296#include <stdarg.h> 4297#include <stdbool.h> 4298#include <stdlib.h> 4299#include <wchar.h> 4300#include <stdio.h> 4301 4302// Check varargs macros. These examples are taken from C99 6.10.3.5. 4303#define debug(...) fprintf (stderr, __VA_ARGS__) 4304#define showlist(...) puts (#__VA_ARGS__) 4305#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4306static void 4307test_varargs_macros (void) 4308{ 4309 int x = 1234; 4310 int y = 5678; 4311 debug ("Flag"); 4312 debug ("X = %d\n", x); 4313 showlist (The first, second, and third items.); 4314 report (x>y, "x is %d but y is %d", x, y); 4315} 4316 4317// Check long long types. 4318#define BIG64 18446744073709551615ull 4319#define BIG32 4294967295ul 4320#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4321#if !BIG_OK 4322 your preprocessor is broken; 4323#endif 4324#if BIG_OK 4325#else 4326 your preprocessor is broken; 4327#endif 4328static long long int bignum = -9223372036854775807LL; 4329static unsigned long long int ubignum = BIG64; 4330 4331struct incomplete_array 4332{ 4333 int datasize; 4334 double data[]; 4335}; 4336 4337struct named_init { 4338 int number; 4339 const wchar_t *name; 4340 double average; 4341}; 4342 4343typedef const char *ccp; 4344 4345static inline int 4346test_restrict (ccp restrict text) 4347{ 4348 // See if C++-style comments work. 4349 // Iterate through items via the restricted pointer. 4350 // Also check for declarations in for loops. 4351 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4352 continue; 4353 return 0; 4354} 4355 4356// Check varargs and va_copy. 4357static void 4358test_varargs (const char *format, ...) 4359{ 4360 va_list args; 4361 va_start (args, format); 4362 va_list args_copy; 4363 va_copy (args_copy, args); 4364 4365 const char *str; 4366 int number; 4367 float fnumber; 4368 4369 while (*format) 4370 { 4371 switch (*format++) 4372 { 4373 case 's': // string 4374 str = va_arg (args_copy, const char *); 4375 break; 4376 case 'd': // int 4377 number = va_arg (args_copy, int); 4378 break; 4379 case 'f': // float 4380 fnumber = va_arg (args_copy, double); 4381 break; 4382 default: 4383 break; 4384 } 4385 } 4386 va_end (args_copy); 4387 va_end (args); 4388} 4389 4390int 4391main () 4392{ 4393 4394 // Check bool. 4395 _Bool success = false; 4396 4397 // Check restrict. 4398 if (test_restrict ("String literal") == 0) 4399 success = true; 4400 char *restrict newvar = "Another string"; 4401 4402 // Check varargs. 4403 test_varargs ("s, d' f .", "string", 65, 34.234); 4404 test_varargs_macros (); 4405 4406 // Check flexible array members. 4407 struct incomplete_array *ia = 4408 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4409 ia->datasize = 10; 4410 for (int i = 0; i < ia->datasize; ++i) 4411 ia->data[i] = i * 1.234; 4412 4413 // Check named initializers. 4414 struct named_init ni = { 4415 .number = 34, 4416 .name = L"Test wide string", 4417 .average = 543.34343, 4418 }; 4419 4420 ni.number = 58; 4421 4422 int dynamic_array[ni.number]; 4423 dynamic_array[ni.number - 1] = 543; 4424 4425 // work around unused variable warnings 4426 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4427 || dynamic_array[ni.number - 1] != 543); 4428 4429 ; 4430 return 0; 4431} 4432_ACEOF 4433for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4434do 4435 CC="$ac_save_CC $ac_arg" 4436 if ac_fn_c_try_compile "$LINENO"; then : 4437 ac_cv_prog_cc_c99=$ac_arg 4438fi 4439rm -f core conftest.err conftest.$ac_objext 4440 test "x$ac_cv_prog_cc_c99" != "xno" && break 4441done 4442rm -f conftest.$ac_ext 4443CC=$ac_save_CC 4444 4445fi 4446# AC_CACHE_VAL 4447case "x$ac_cv_prog_cc_c99" in 4448 x) 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4450$as_echo "none needed" >&6; } ;; 4451 xno) 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4453$as_echo "unsupported" >&6; } ;; 4454 *) 4455 CC="$CC $ac_cv_prog_cc_c99" 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4457$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4458esac 4459if test "x$ac_cv_prog_cc_c99" != xno; then : 4460 4461fi 4462 4463 4464ac_ext=c 4465ac_cpp='$CPP $CPPFLAGS' 4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4468ac_compiler_gnu=$ac_cv_c_compiler_gnu 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4470$as_echo_n "checking how to run the C preprocessor... " >&6; } 4471# On Suns, sometimes $CPP names a directory. 4472if test -n "$CPP" && test -d "$CPP"; then 4473 CPP= 4474fi 4475if test -z "$CPP"; then 4476 if ${ac_cv_prog_CPP+:} false; then : 4477 $as_echo_n "(cached) " >&6 4478else 4479 # Double quotes because CPP needs to be expanded 4480 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4481 do 4482 ac_preproc_ok=false 4483for ac_c_preproc_warn_flag in '' yes 4484do 4485 # Use a header file that comes with gcc, so configuring glibc 4486 # with a fresh cross-compiler works. 4487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4488 # <limits.h> exists even on freestanding compilers. 4489 # On the NeXT, cc -E runs the code through the compiler's parser, 4490 # not just through cpp. "Syntax error" is here to catch this case. 4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4492/* end confdefs.h. */ 4493#ifdef __STDC__ 4494# include <limits.h> 4495#else 4496# include <assert.h> 4497#endif 4498 Syntax error 4499_ACEOF 4500if ac_fn_c_try_cpp "$LINENO"; then : 4501 4502else 4503 # Broken: fails on valid input. 4504continue 4505fi 4506rm -f conftest.err conftest.i conftest.$ac_ext 4507 4508 # OK, works on sane cases. Now check whether nonexistent headers 4509 # can be detected and how. 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512#include <ac_nonexistent.h> 4513_ACEOF 4514if ac_fn_c_try_cpp "$LINENO"; then : 4515 # Broken: success on invalid input. 4516continue 4517else 4518 # Passes both tests. 4519ac_preproc_ok=: 4520break 4521fi 4522rm -f conftest.err conftest.i conftest.$ac_ext 4523 4524done 4525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4526rm -f conftest.i conftest.err conftest.$ac_ext 4527if $ac_preproc_ok; then : 4528 break 4529fi 4530 4531 done 4532 ac_cv_prog_CPP=$CPP 4533 4534fi 4535 CPP=$ac_cv_prog_CPP 4536else 4537 ac_cv_prog_CPP=$CPP 4538fi 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4540$as_echo "$CPP" >&6; } 4541ac_preproc_ok=false 4542for ac_c_preproc_warn_flag in '' yes 4543do 4544 # Use a header file that comes with gcc, so configuring glibc 4545 # with a fresh cross-compiler works. 4546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4547 # <limits.h> exists even on freestanding compilers. 4548 # On the NeXT, cc -E runs the code through the compiler's parser, 4549 # not just through cpp. "Syntax error" is here to catch this case. 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4551/* end confdefs.h. */ 4552#ifdef __STDC__ 4553# include <limits.h> 4554#else 4555# include <assert.h> 4556#endif 4557 Syntax error 4558_ACEOF 4559if ac_fn_c_try_cpp "$LINENO"; then : 4560 4561else 4562 # Broken: fails on valid input. 4563continue 4564fi 4565rm -f conftest.err conftest.i conftest.$ac_ext 4566 4567 # OK, works on sane cases. Now check whether nonexistent headers 4568 # can be detected and how. 4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4570/* end confdefs.h. */ 4571#include <ac_nonexistent.h> 4572_ACEOF 4573if ac_fn_c_try_cpp "$LINENO"; then : 4574 # Broken: success on invalid input. 4575continue 4576else 4577 # Passes both tests. 4578ac_preproc_ok=: 4579break 4580fi 4581rm -f conftest.err conftest.i conftest.$ac_ext 4582 4583done 4584# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4585rm -f conftest.i conftest.err conftest.$ac_ext 4586if $ac_preproc_ok; then : 4587 4588else 4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4591as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4592See \`config.log' for more details" "$LINENO" 5; } 4593fi 4594 4595ac_ext=c 4596ac_cpp='$CPP $CPPFLAGS' 4597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4599ac_compiler_gnu=$ac_cv_c_compiler_gnu 4600 4601 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4603$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4604if ${ac_cv_path_GREP+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 if test -z "$GREP"; then 4608 ac_path_GREP_found=false 4609 # Loop through the user's path and test for each of PROGNAME-LIST 4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4612do 4613 IFS=$as_save_IFS 4614 test -z "$as_dir" && as_dir=. 4615 for ac_prog in grep ggrep; do 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4618 as_fn_executable_p "$ac_path_GREP" || continue 4619# Check for GNU ac_path_GREP and select it if it is found. 4620 # Check for GNU $ac_path_GREP 4621case `"$ac_path_GREP" --version 2>&1` in 4622*GNU*) 4623 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4624*) 4625 ac_count=0 4626 $as_echo_n 0123456789 >"conftest.in" 4627 while : 4628 do 4629 cat "conftest.in" "conftest.in" >"conftest.tmp" 4630 mv "conftest.tmp" "conftest.in" 4631 cp "conftest.in" "conftest.nl" 4632 $as_echo 'GREP' >> "conftest.nl" 4633 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4635 as_fn_arith $ac_count + 1 && ac_count=$as_val 4636 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4637 # Best one so far, save it but keep looking for a better one 4638 ac_cv_path_GREP="$ac_path_GREP" 4639 ac_path_GREP_max=$ac_count 4640 fi 4641 # 10*(2^10) chars as input seems more than enough 4642 test $ac_count -gt 10 && break 4643 done 4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4645esac 4646 4647 $ac_path_GREP_found && break 3 4648 done 4649 done 4650 done 4651IFS=$as_save_IFS 4652 if test -z "$ac_cv_path_GREP"; then 4653 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4654 fi 4655else 4656 ac_cv_path_GREP=$GREP 4657fi 4658 4659fi 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4661$as_echo "$ac_cv_path_GREP" >&6; } 4662 GREP="$ac_cv_path_GREP" 4663 4664 4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4666$as_echo_n "checking for egrep... " >&6; } 4667if ${ac_cv_path_EGREP+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4671 then ac_cv_path_EGREP="$GREP -E" 4672 else 4673 if test -z "$EGREP"; then 4674 ac_path_EGREP_found=false 4675 # Loop through the user's path and test for each of PROGNAME-LIST 4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4678do 4679 IFS=$as_save_IFS 4680 test -z "$as_dir" && as_dir=. 4681 for ac_prog in egrep; do 4682 for ac_exec_ext in '' $ac_executable_extensions; do 4683 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4684 as_fn_executable_p "$ac_path_EGREP" || continue 4685# Check for GNU ac_path_EGREP and select it if it is found. 4686 # Check for GNU $ac_path_EGREP 4687case `"$ac_path_EGREP" --version 2>&1` in 4688*GNU*) 4689 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4690*) 4691 ac_count=0 4692 $as_echo_n 0123456789 >"conftest.in" 4693 while : 4694 do 4695 cat "conftest.in" "conftest.in" >"conftest.tmp" 4696 mv "conftest.tmp" "conftest.in" 4697 cp "conftest.in" "conftest.nl" 4698 $as_echo 'EGREP' >> "conftest.nl" 4699 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4701 as_fn_arith $ac_count + 1 && ac_count=$as_val 4702 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4703 # Best one so far, save it but keep looking for a better one 4704 ac_cv_path_EGREP="$ac_path_EGREP" 4705 ac_path_EGREP_max=$ac_count 4706 fi 4707 # 10*(2^10) chars as input seems more than enough 4708 test $ac_count -gt 10 && break 4709 done 4710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4711esac 4712 4713 $ac_path_EGREP_found && break 3 4714 done 4715 done 4716 done 4717IFS=$as_save_IFS 4718 if test -z "$ac_cv_path_EGREP"; then 4719 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4720 fi 4721else 4722 ac_cv_path_EGREP=$EGREP 4723fi 4724 4725 fi 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4728$as_echo "$ac_cv_path_EGREP" >&6; } 4729 EGREP="$ac_cv_path_EGREP" 4730 4731 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4733$as_echo_n "checking for ANSI C header files... " >&6; } 4734if ${ac_cv_header_stdc+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4738/* end confdefs.h. */ 4739#include <stdlib.h> 4740#include <stdarg.h> 4741#include <string.h> 4742#include <float.h> 4743 4744int 4745main () 4746{ 4747 4748 ; 4749 return 0; 4750} 4751_ACEOF 4752if ac_fn_c_try_compile "$LINENO"; then : 4753 ac_cv_header_stdc=yes 4754else 4755 ac_cv_header_stdc=no 4756fi 4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4758 4759if test $ac_cv_header_stdc = yes; then 4760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762/* end confdefs.h. */ 4763#include <string.h> 4764 4765_ACEOF 4766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4767 $EGREP "memchr" >/dev/null 2>&1; then : 4768 4769else 4770 ac_cv_header_stdc=no 4771fi 4772rm -f conftest* 4773 4774fi 4775 4776if test $ac_cv_header_stdc = yes; then 4777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4779/* end confdefs.h. */ 4780#include <stdlib.h> 4781 4782_ACEOF 4783if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4784 $EGREP "free" >/dev/null 2>&1; then : 4785 4786else 4787 ac_cv_header_stdc=no 4788fi 4789rm -f conftest* 4790 4791fi 4792 4793if test $ac_cv_header_stdc = yes; then 4794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4795 if test "$cross_compiling" = yes; then : 4796 : 4797else 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4799/* end confdefs.h. */ 4800#include <ctype.h> 4801#include <stdlib.h> 4802#if ((' ' & 0x0FF) == 0x020) 4803# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4804# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4805#else 4806# define ISLOWER(c) \ 4807 (('a' <= (c) && (c) <= 'i') \ 4808 || ('j' <= (c) && (c) <= 'r') \ 4809 || ('s' <= (c) && (c) <= 'z')) 4810# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4811#endif 4812 4813#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4814int 4815main () 4816{ 4817 int i; 4818 for (i = 0; i < 256; i++) 4819 if (XOR (islower (i), ISLOWER (i)) 4820 || toupper (i) != TOUPPER (i)) 4821 return 2; 4822 return 0; 4823} 4824_ACEOF 4825if ac_fn_c_try_run "$LINENO"; then : 4826 4827else 4828 ac_cv_header_stdc=no 4829fi 4830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4831 conftest.$ac_objext conftest.beam conftest.$ac_ext 4832fi 4833 4834fi 4835fi 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4837$as_echo "$ac_cv_header_stdc" >&6; } 4838if test $ac_cv_header_stdc = yes; then 4839 4840$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4841 4842fi 4843 4844# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4845for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4846 inttypes.h stdint.h unistd.h 4847do : 4848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4849ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4850" 4851if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4852 cat >>confdefs.h <<_ACEOF 4853#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4854_ACEOF 4855 4856fi 4857 4858done 4859 4860 4861 4862 4863 4864 4865ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4866if test "x$ac_cv_have_decl___clang__" = xyes; then : 4867 CLANGCC="yes" 4868else 4869 CLANGCC="no" 4870fi 4871 4872ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4873if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4874 INTELCC="yes" 4875else 4876 INTELCC="no" 4877fi 4878 4879ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4880if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4881 SUNCC="yes" 4882else 4883 SUNCC="no" 4884fi 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4895 if test -n "$ac_tool_prefix"; then 4896 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4897set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4899$as_echo_n "checking for $ac_word... " >&6; } 4900if ${ac_cv_path_PKG_CONFIG+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 case $PKG_CONFIG in 4904 [\\/]* | ?:[\\/]*) 4905 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4906 ;; 4907 *) 4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4909for as_dir in $PATH 4910do 4911 IFS=$as_save_IFS 4912 test -z "$as_dir" && as_dir=. 4913 for ac_exec_ext in '' $ac_executable_extensions; do 4914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4915 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4917 break 2 4918 fi 4919done 4920 done 4921IFS=$as_save_IFS 4922 4923 ;; 4924esac 4925fi 4926PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4927if test -n "$PKG_CONFIG"; then 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4929$as_echo "$PKG_CONFIG" >&6; } 4930else 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4932$as_echo "no" >&6; } 4933fi 4934 4935 4936fi 4937if test -z "$ac_cv_path_PKG_CONFIG"; then 4938 ac_pt_PKG_CONFIG=$PKG_CONFIG 4939 # Extract the first word of "pkg-config", so it can be a program name with args. 4940set dummy pkg-config; ac_word=$2 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4942$as_echo_n "checking for $ac_word... " >&6; } 4943if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 case $ac_pt_PKG_CONFIG in 4947 [\\/]* | ?:[\\/]*) 4948 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4949 ;; 4950 *) 4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4952for as_dir in $PATH 4953do 4954 IFS=$as_save_IFS 4955 test -z "$as_dir" && as_dir=. 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4958 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4960 break 2 4961 fi 4962done 4963 done 4964IFS=$as_save_IFS 4965 4966 ;; 4967esac 4968fi 4969ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4970if test -n "$ac_pt_PKG_CONFIG"; then 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4972$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4973else 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975$as_echo "no" >&6; } 4976fi 4977 4978 if test "x$ac_pt_PKG_CONFIG" = x; then 4979 PKG_CONFIG="" 4980 else 4981 case $cross_compiling:$ac_tool_warned in 4982yes:) 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4985ac_tool_warned=yes ;; 4986esac 4987 PKG_CONFIG=$ac_pt_PKG_CONFIG 4988 fi 4989else 4990 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4991fi 4992 4993fi 4994if test -n "$PKG_CONFIG"; then 4995 _pkg_min_version=0.9.0 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4997$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4998 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5000$as_echo "yes" >&6; } 5001 else 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5003$as_echo "no" >&6; } 5004 PKG_CONFIG="" 5005 fi 5006fi 5007# Make sure we can run config.sub. 5008$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5009 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5010 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5012$as_echo_n "checking build system type... " >&6; } 5013if ${ac_cv_build+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 ac_build_alias=$build_alias 5017test "x$ac_build_alias" = x && 5018 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5019test "x$ac_build_alias" = x && 5020 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5021ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5022 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5023 5024fi 5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5026$as_echo "$ac_cv_build" >&6; } 5027case $ac_cv_build in 5028*-*-*) ;; 5029*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5030esac 5031build=$ac_cv_build 5032ac_save_IFS=$IFS; IFS='-' 5033set x $ac_cv_build 5034shift 5035build_cpu=$1 5036build_vendor=$2 5037shift; shift 5038# Remember, the first character of IFS is used to create $*, 5039# except with old shells: 5040build_os=$* 5041IFS=$ac_save_IFS 5042case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5043 5044 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5046$as_echo_n "checking host system type... " >&6; } 5047if ${ac_cv_host+:} false; then : 5048 $as_echo_n "(cached) " >&6 5049else 5050 if test "x$host_alias" = x; then 5051 ac_cv_host=$ac_cv_build 5052else 5053 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5054 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5055fi 5056 5057fi 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5059$as_echo "$ac_cv_host" >&6; } 5060case $ac_cv_host in 5061*-*-*) ;; 5062*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5063esac 5064host=$ac_cv_host 5065ac_save_IFS=$IFS; IFS='-' 5066set x $ac_cv_host 5067shift 5068host_cpu=$1 5069host_vendor=$2 5070shift; shift 5071# Remember, the first character of IFS is used to create $*, 5072# except with old shells: 5073host_os=$* 5074IFS=$ac_save_IFS 5075case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5076 5077 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5079$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5080if ${ac_cv_path_SED+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5084 for ac_i in 1 2 3 4 5 6 7; do 5085 ac_script="$ac_script$as_nl$ac_script" 5086 done 5087 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5088 { ac_script=; unset ac_script;} 5089 if test -z "$SED"; then 5090 ac_path_SED_found=false 5091 # Loop through the user's path and test for each of PROGNAME-LIST 5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5093for as_dir in $PATH 5094do 5095 IFS=$as_save_IFS 5096 test -z "$as_dir" && as_dir=. 5097 for ac_prog in sed gsed; do 5098 for ac_exec_ext in '' $ac_executable_extensions; do 5099 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5100 as_fn_executable_p "$ac_path_SED" || continue 5101# Check for GNU ac_path_SED and select it if it is found. 5102 # Check for GNU $ac_path_SED 5103case `"$ac_path_SED" --version 2>&1` in 5104*GNU*) 5105 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5106*) 5107 ac_count=0 5108 $as_echo_n 0123456789 >"conftest.in" 5109 while : 5110 do 5111 cat "conftest.in" "conftest.in" >"conftest.tmp" 5112 mv "conftest.tmp" "conftest.in" 5113 cp "conftest.in" "conftest.nl" 5114 $as_echo '' >> "conftest.nl" 5115 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5117 as_fn_arith $ac_count + 1 && ac_count=$as_val 5118 if test $ac_count -gt ${ac_path_SED_max-0}; then 5119 # Best one so far, save it but keep looking for a better one 5120 ac_cv_path_SED="$ac_path_SED" 5121 ac_path_SED_max=$ac_count 5122 fi 5123 # 10*(2^10) chars as input seems more than enough 5124 test $ac_count -gt 10 && break 5125 done 5126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5127esac 5128 5129 $ac_path_SED_found && break 3 5130 done 5131 done 5132 done 5133IFS=$as_save_IFS 5134 if test -z "$ac_cv_path_SED"; then 5135 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5136 fi 5137else 5138 ac_cv_path_SED=$SED 5139fi 5140 5141fi 5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5143$as_echo "$ac_cv_path_SED" >&6; } 5144 SED="$ac_cv_path_SED" 5145 rm -f conftest.sed 5146 5147 5148 5149 5150 5151 5152# Check whether --enable-selective-werror was given. 5153if test "${enable_selective_werror+set}" = set; then : 5154 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5155else 5156 SELECTIVE_WERROR=yes 5157fi 5158 5159 5160 5161 5162 5163# -v is too short to test reliably with XORG_TESTSET_CFLAG 5164if test "x$SUNCC" = "xyes"; then 5165 BASE_CFLAGS="-v" 5166else 5167 BASE_CFLAGS="" 5168fi 5169 5170# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184xorg_testset_save_CFLAGS="$CFLAGS" 5185 5186if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5189$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5190if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5194/* end confdefs.h. */ 5195int i; 5196_ACEOF 5197if ac_fn_c_try_compile "$LINENO"; then : 5198 xorg_cv_cc_flag_unknown_warning_option=yes 5199else 5200 xorg_cv_cc_flag_unknown_warning_option=no 5201fi 5202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5203fi 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5205$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5207 CFLAGS="$xorg_testset_save_CFLAGS" 5208fi 5209 5210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5213 fi 5214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5216$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5217if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5218 $as_echo_n "(cached) " >&6 5219else 5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5221/* end confdefs.h. */ 5222int i; 5223_ACEOF 5224if ac_fn_c_try_compile "$LINENO"; then : 5225 xorg_cv_cc_flag_unused_command_line_argument=yes 5226else 5227 xorg_cv_cc_flag_unused_command_line_argument=no 5228fi 5229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5230fi 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5232$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5234 CFLAGS="$xorg_testset_save_CFLAGS" 5235fi 5236 5237found="no" 5238 5239 if test $found = "no" ; then 5240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5242 fi 5243 5244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5246 fi 5247 5248 CFLAGS="$CFLAGS -Wall" 5249 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5251$as_echo_n "checking if $CC supports -Wall... " >&6; } 5252 cacheid=xorg_cv_cc_flag__Wall 5253 if eval \${$cacheid+:} false; then : 5254 $as_echo_n "(cached) " >&6 5255else 5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257/* end confdefs.h. */ 5258int i; 5259int 5260main () 5261{ 5262 5263 ; 5264 return 0; 5265} 5266_ACEOF 5267if ac_fn_c_try_link "$LINENO"; then : 5268 eval $cacheid=yes 5269else 5270 eval $cacheid=no 5271fi 5272rm -f core conftest.err conftest.$ac_objext \ 5273 conftest$ac_exeext conftest.$ac_ext 5274fi 5275 5276 5277 CFLAGS="$xorg_testset_save_CFLAGS" 5278 5279 eval supported=\$$cacheid 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5281$as_echo "$supported" >&6; } 5282 if test "$supported" = "yes" ; then 5283 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5284 found="yes" 5285 fi 5286 fi 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302xorg_testset_save_CFLAGS="$CFLAGS" 5303 5304if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5307$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5308if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313int i; 5314_ACEOF 5315if ac_fn_c_try_compile "$LINENO"; then : 5316 xorg_cv_cc_flag_unknown_warning_option=yes 5317else 5318 xorg_cv_cc_flag_unknown_warning_option=no 5319fi 5320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5321fi 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5323$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5325 CFLAGS="$xorg_testset_save_CFLAGS" 5326fi 5327 5328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 fi 5332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5334$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5335if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339/* end confdefs.h. */ 5340int i; 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO"; then : 5343 xorg_cv_cc_flag_unused_command_line_argument=yes 5344else 5345 xorg_cv_cc_flag_unused_command_line_argument=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5350$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5352 CFLAGS="$xorg_testset_save_CFLAGS" 5353fi 5354 5355found="no" 5356 5357 if test $found = "no" ; then 5358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5360 fi 5361 5362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5364 fi 5365 5366 CFLAGS="$CFLAGS -Wpointer-arith" 5367 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5369$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5370 cacheid=xorg_cv_cc_flag__Wpointer_arith 5371 if eval \${$cacheid+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376int i; 5377int 5378main () 5379{ 5380 5381 ; 5382 return 0; 5383} 5384_ACEOF 5385if ac_fn_c_try_link "$LINENO"; then : 5386 eval $cacheid=yes 5387else 5388 eval $cacheid=no 5389fi 5390rm -f core conftest.err conftest.$ac_objext \ 5391 conftest$ac_exeext conftest.$ac_ext 5392fi 5393 5394 5395 CFLAGS="$xorg_testset_save_CFLAGS" 5396 5397 eval supported=\$$cacheid 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5399$as_echo "$supported" >&6; } 5400 if test "$supported" = "yes" ; then 5401 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5402 found="yes" 5403 fi 5404 fi 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420xorg_testset_save_CFLAGS="$CFLAGS" 5421 5422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5425$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5426if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431int i; 5432_ACEOF 5433if ac_fn_c_try_compile "$LINENO"; then : 5434 xorg_cv_cc_flag_unknown_warning_option=yes 5435else 5436 xorg_cv_cc_flag_unknown_warning_option=no 5437fi 5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5441$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444fi 5445 5446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 fi 5450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5452$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5453if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457/* end confdefs.h. */ 5458int i; 5459_ACEOF 5460if ac_fn_c_try_compile "$LINENO"; then : 5461 xorg_cv_cc_flag_unused_command_line_argument=yes 5462else 5463 xorg_cv_cc_flag_unused_command_line_argument=no 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5466fi 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5468$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5470 CFLAGS="$xorg_testset_save_CFLAGS" 5471fi 5472 5473found="no" 5474 5475 if test $found = "no" ; then 5476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5478 fi 5479 5480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5482 fi 5483 5484 CFLAGS="$CFLAGS -Wmissing-declarations" 5485 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5487$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5488 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5489 if eval \${$cacheid+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491else 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5493/* end confdefs.h. */ 5494int i; 5495int 5496main () 5497{ 5498 5499 ; 5500 return 0; 5501} 5502_ACEOF 5503if ac_fn_c_try_link "$LINENO"; then : 5504 eval $cacheid=yes 5505else 5506 eval $cacheid=no 5507fi 5508rm -f core conftest.err conftest.$ac_objext \ 5509 conftest$ac_exeext conftest.$ac_ext 5510fi 5511 5512 5513 CFLAGS="$xorg_testset_save_CFLAGS" 5514 5515 eval supported=\$$cacheid 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5517$as_echo "$supported" >&6; } 5518 if test "$supported" = "yes" ; then 5519 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5520 found="yes" 5521 fi 5522 fi 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538xorg_testset_save_CFLAGS="$CFLAGS" 5539 5540if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5543$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5544if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549int i; 5550_ACEOF 5551if ac_fn_c_try_compile "$LINENO"; then : 5552 xorg_cv_cc_flag_unknown_warning_option=yes 5553else 5554 xorg_cv_cc_flag_unknown_warning_option=no 5555fi 5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5557fi 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5559$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5561 CFLAGS="$xorg_testset_save_CFLAGS" 5562fi 5563 5564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 fi 5568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5570$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5571if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 xorg_cv_cc_flag_unused_command_line_argument=yes 5580else 5581 xorg_cv_cc_flag_unused_command_line_argument=no 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5586$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5588 CFLAGS="$xorg_testset_save_CFLAGS" 5589fi 5590 5591found="no" 5592 5593 if test $found = "no" ; then 5594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5596 fi 5597 5598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5600 fi 5601 5602 CFLAGS="$CFLAGS -Wformat=2" 5603 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5605$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5606 cacheid=xorg_cv_cc_flag__Wformat_2 5607 if eval \${$cacheid+:} false; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5611/* end confdefs.h. */ 5612int i; 5613int 5614main () 5615{ 5616 5617 ; 5618 return 0; 5619} 5620_ACEOF 5621if ac_fn_c_try_link "$LINENO"; then : 5622 eval $cacheid=yes 5623else 5624 eval $cacheid=no 5625fi 5626rm -f core conftest.err conftest.$ac_objext \ 5627 conftest$ac_exeext conftest.$ac_ext 5628fi 5629 5630 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 5633 eval supported=\$$cacheid 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5635$as_echo "$supported" >&6; } 5636 if test "$supported" = "yes" ; then 5637 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5638 found="yes" 5639 fi 5640 fi 5641 5642 if test $found = "no" ; then 5643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5645 fi 5646 5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5649 fi 5650 5651 CFLAGS="$CFLAGS -Wformat" 5652 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5654$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5655 cacheid=xorg_cv_cc_flag__Wformat 5656 if eval \${$cacheid+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661int i; 5662int 5663main () 5664{ 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670if ac_fn_c_try_link "$LINENO"; then : 5671 eval $cacheid=yes 5672else 5673 eval $cacheid=no 5674fi 5675rm -f core conftest.err conftest.$ac_objext \ 5676 conftest$ac_exeext conftest.$ac_ext 5677fi 5678 5679 5680 CFLAGS="$xorg_testset_save_CFLAGS" 5681 5682 eval supported=\$$cacheid 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5684$as_echo "$supported" >&6; } 5685 if test "$supported" = "yes" ; then 5686 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5687 found="yes" 5688 fi 5689 fi 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707xorg_testset_save_CFLAGS="$CFLAGS" 5708 5709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5712$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5713if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715else 5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717/* end confdefs.h. */ 5718int i; 5719_ACEOF 5720if ac_fn_c_try_compile "$LINENO"; then : 5721 xorg_cv_cc_flag_unknown_warning_option=yes 5722else 5723 xorg_cv_cc_flag_unknown_warning_option=no 5724fi 5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5726fi 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5728$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5729 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5730 CFLAGS="$xorg_testset_save_CFLAGS" 5731fi 5732 5733if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5736 fi 5737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5739$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5740if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5741 $as_echo_n "(cached) " >&6 5742else 5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5744/* end confdefs.h. */ 5745int i; 5746_ACEOF 5747if ac_fn_c_try_compile "$LINENO"; then : 5748 xorg_cv_cc_flag_unused_command_line_argument=yes 5749else 5750 xorg_cv_cc_flag_unused_command_line_argument=no 5751fi 5752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5753fi 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5755$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5757 CFLAGS="$xorg_testset_save_CFLAGS" 5758fi 5759 5760found="no" 5761 5762 if test $found = "no" ; then 5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5765 fi 5766 5767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5769 fi 5770 5771 CFLAGS="$CFLAGS -Wstrict-prototypes" 5772 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5774$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5775 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5776 if eval \${$cacheid+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780/* end confdefs.h. */ 5781int i; 5782int 5783main () 5784{ 5785 5786 ; 5787 return 0; 5788} 5789_ACEOF 5790if ac_fn_c_try_link "$LINENO"; then : 5791 eval $cacheid=yes 5792else 5793 eval $cacheid=no 5794fi 5795rm -f core conftest.err conftest.$ac_objext \ 5796 conftest$ac_exeext conftest.$ac_ext 5797fi 5798 5799 5800 CFLAGS="$xorg_testset_save_CFLAGS" 5801 5802 eval supported=\$$cacheid 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5804$as_echo "$supported" >&6; } 5805 if test "$supported" = "yes" ; then 5806 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5807 found="yes" 5808 fi 5809 fi 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825xorg_testset_save_CFLAGS="$CFLAGS" 5826 5827if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5830$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5831if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836int i; 5837_ACEOF 5838if ac_fn_c_try_compile "$LINENO"; then : 5839 xorg_cv_cc_flag_unknown_warning_option=yes 5840else 5841 xorg_cv_cc_flag_unknown_warning_option=no 5842fi 5843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5844fi 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5846$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5848 CFLAGS="$xorg_testset_save_CFLAGS" 5849fi 5850 5851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854 fi 5855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5857$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5858if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862/* end confdefs.h. */ 5863int i; 5864_ACEOF 5865if ac_fn_c_try_compile "$LINENO"; then : 5866 xorg_cv_cc_flag_unused_command_line_argument=yes 5867else 5868 xorg_cv_cc_flag_unused_command_line_argument=no 5869fi 5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5871fi 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5873$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5875 CFLAGS="$xorg_testset_save_CFLAGS" 5876fi 5877 5878found="no" 5879 5880 if test $found = "no" ; then 5881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5883 fi 5884 5885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5887 fi 5888 5889 CFLAGS="$CFLAGS -Wmissing-prototypes" 5890 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5892$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5893 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5894 if eval \${$cacheid+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5898/* end confdefs.h. */ 5899int i; 5900int 5901main () 5902{ 5903 5904 ; 5905 return 0; 5906} 5907_ACEOF 5908if ac_fn_c_try_link "$LINENO"; then : 5909 eval $cacheid=yes 5910else 5911 eval $cacheid=no 5912fi 5913rm -f core conftest.err conftest.$ac_objext \ 5914 conftest$ac_exeext conftest.$ac_ext 5915fi 5916 5917 5918 CFLAGS="$xorg_testset_save_CFLAGS" 5919 5920 eval supported=\$$cacheid 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5922$as_echo "$supported" >&6; } 5923 if test "$supported" = "yes" ; then 5924 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5925 found="yes" 5926 fi 5927 fi 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943xorg_testset_save_CFLAGS="$CFLAGS" 5944 5945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5953/* end confdefs.h. */ 5954int i; 5955_ACEOF 5956if ac_fn_c_try_compile "$LINENO"; then : 5957 xorg_cv_cc_flag_unknown_warning_option=yes 5958else 5959 xorg_cv_cc_flag_unknown_warning_option=no 5960fi 5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5962fi 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5966 CFLAGS="$xorg_testset_save_CFLAGS" 5967fi 5968 5969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5972 fi 5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5977 $as_echo_n "(cached) " >&6 5978else 5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5980/* end confdefs.h. */ 5981int i; 5982_ACEOF 5983if ac_fn_c_try_compile "$LINENO"; then : 5984 xorg_cv_cc_flag_unused_command_line_argument=yes 5985else 5986 xorg_cv_cc_flag_unused_command_line_argument=no 5987fi 5988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5989fi 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5993 CFLAGS="$xorg_testset_save_CFLAGS" 5994fi 5995 5996found="no" 5997 5998 if test $found = "no" ; then 5999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6001 fi 6002 6003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6005 fi 6006 6007 CFLAGS="$CFLAGS -Wnested-externs" 6008 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6010$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 6011 cacheid=xorg_cv_cc_flag__Wnested_externs 6012 if eval \${$cacheid+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017int i; 6018int 6019main () 6020{ 6021 6022 ; 6023 return 0; 6024} 6025_ACEOF 6026if ac_fn_c_try_link "$LINENO"; then : 6027 eval $cacheid=yes 6028else 6029 eval $cacheid=no 6030fi 6031rm -f core conftest.err conftest.$ac_objext \ 6032 conftest$ac_exeext conftest.$ac_ext 6033fi 6034 6035 6036 CFLAGS="$xorg_testset_save_CFLAGS" 6037 6038 eval supported=\$$cacheid 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6040$as_echo "$supported" >&6; } 6041 if test "$supported" = "yes" ; then 6042 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6043 found="yes" 6044 fi 6045 fi 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061xorg_testset_save_CFLAGS="$CFLAGS" 6062 6063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6066$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6067if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6068 $as_echo_n "(cached) " >&6 6069else 6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6071/* end confdefs.h. */ 6072int i; 6073_ACEOF 6074if ac_fn_c_try_compile "$LINENO"; then : 6075 xorg_cv_cc_flag_unknown_warning_option=yes 6076else 6077 xorg_cv_cc_flag_unknown_warning_option=no 6078fi 6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6080fi 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6082$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6084 CFLAGS="$xorg_testset_save_CFLAGS" 6085fi 6086 6087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 fi 6091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6093$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6094if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6098/* end confdefs.h. */ 6099int i; 6100_ACEOF 6101if ac_fn_c_try_compile "$LINENO"; then : 6102 xorg_cv_cc_flag_unused_command_line_argument=yes 6103else 6104 xorg_cv_cc_flag_unused_command_line_argument=no 6105fi 6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6107fi 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6109$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6111 CFLAGS="$xorg_testset_save_CFLAGS" 6112fi 6113 6114found="no" 6115 6116 if test $found = "no" ; then 6117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6119 fi 6120 6121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6123 fi 6124 6125 CFLAGS="$CFLAGS -Wbad-function-cast" 6126 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6128$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 6129 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6130 if eval \${$cacheid+:} false; then : 6131 $as_echo_n "(cached) " >&6 6132else 6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6134/* end confdefs.h. */ 6135int i; 6136int 6137main () 6138{ 6139 6140 ; 6141 return 0; 6142} 6143_ACEOF 6144if ac_fn_c_try_link "$LINENO"; then : 6145 eval $cacheid=yes 6146else 6147 eval $cacheid=no 6148fi 6149rm -f core conftest.err conftest.$ac_objext \ 6150 conftest$ac_exeext conftest.$ac_ext 6151fi 6152 6153 6154 CFLAGS="$xorg_testset_save_CFLAGS" 6155 6156 eval supported=\$$cacheid 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6158$as_echo "$supported" >&6; } 6159 if test "$supported" = "yes" ; then 6160 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6161 found="yes" 6162 fi 6163 fi 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179xorg_testset_save_CFLAGS="$CFLAGS" 6180 6181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6186 $as_echo_n "(cached) " >&6 6187else 6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6189/* end confdefs.h. */ 6190int i; 6191_ACEOF 6192if ac_fn_c_try_compile "$LINENO"; then : 6193 xorg_cv_cc_flag_unknown_warning_option=yes 6194else 6195 xorg_cv_cc_flag_unknown_warning_option=no 6196fi 6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6198fi 6199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6202 CFLAGS="$xorg_testset_save_CFLAGS" 6203fi 6204 6205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6208 fi 6209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216/* end confdefs.h. */ 6217int i; 6218_ACEOF 6219if ac_fn_c_try_compile "$LINENO"; then : 6220 xorg_cv_cc_flag_unused_command_line_argument=yes 6221else 6222 xorg_cv_cc_flag_unused_command_line_argument=no 6223fi 6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6225fi 6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6229 CFLAGS="$xorg_testset_save_CFLAGS" 6230fi 6231 6232found="no" 6233 6234 if test $found = "no" ; then 6235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6237 fi 6238 6239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6241 fi 6242 6243 CFLAGS="$CFLAGS -Wold-style-definition" 6244 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6246$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 6247 cacheid=xorg_cv_cc_flag__Wold_style_definition 6248 if eval \${$cacheid+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253int i; 6254int 6255main () 6256{ 6257 6258 ; 6259 return 0; 6260} 6261_ACEOF 6262if ac_fn_c_try_link "$LINENO"; then : 6263 eval $cacheid=yes 6264else 6265 eval $cacheid=no 6266fi 6267rm -f core conftest.err conftest.$ac_objext \ 6268 conftest$ac_exeext conftest.$ac_ext 6269fi 6270 6271 6272 CFLAGS="$xorg_testset_save_CFLAGS" 6273 6274 eval supported=\$$cacheid 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6276$as_echo "$supported" >&6; } 6277 if test "$supported" = "yes" ; then 6278 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6279 found="yes" 6280 fi 6281 fi 6282 6283 if test $found = "no" ; then 6284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6286 fi 6287 6288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6290 fi 6291 6292 CFLAGS="$CFLAGS -fd" 6293 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6295$as_echo_n "checking if $CC supports -fd... " >&6; } 6296 cacheid=xorg_cv_cc_flag__fd 6297 if eval \${$cacheid+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6301/* end confdefs.h. */ 6302int i; 6303int 6304main () 6305{ 6306 6307 ; 6308 return 0; 6309} 6310_ACEOF 6311if ac_fn_c_try_link "$LINENO"; then : 6312 eval $cacheid=yes 6313else 6314 eval $cacheid=no 6315fi 6316rm -f core conftest.err conftest.$ac_objext \ 6317 conftest$ac_exeext conftest.$ac_ext 6318fi 6319 6320 6321 CFLAGS="$xorg_testset_save_CFLAGS" 6322 6323 eval supported=\$$cacheid 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6325$as_echo "$supported" >&6; } 6326 if test "$supported" = "yes" ; then 6327 BASE_CFLAGS="$BASE_CFLAGS -fd" 6328 found="yes" 6329 fi 6330 fi 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346xorg_testset_save_CFLAGS="$CFLAGS" 6347 6348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6351$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6352if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6353 $as_echo_n "(cached) " >&6 6354else 6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6356/* end confdefs.h. */ 6357int i; 6358_ACEOF 6359if ac_fn_c_try_compile "$LINENO"; then : 6360 xorg_cv_cc_flag_unknown_warning_option=yes 6361else 6362 xorg_cv_cc_flag_unknown_warning_option=no 6363fi 6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6365fi 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6367$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6369 CFLAGS="$xorg_testset_save_CFLAGS" 6370fi 6371 6372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6375 fi 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6378$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6379if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6380 $as_echo_n "(cached) " >&6 6381else 6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6383/* end confdefs.h. */ 6384int i; 6385_ACEOF 6386if ac_fn_c_try_compile "$LINENO"; then : 6387 xorg_cv_cc_flag_unused_command_line_argument=yes 6388else 6389 xorg_cv_cc_flag_unused_command_line_argument=no 6390fi 6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6392fi 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6394$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6396 CFLAGS="$xorg_testset_save_CFLAGS" 6397fi 6398 6399found="no" 6400 6401 if test $found = "no" ; then 6402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6404 fi 6405 6406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6408 fi 6409 6410 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6411 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6413$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6414 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6415 if eval \${$cacheid+:} false; then : 6416 $as_echo_n "(cached) " >&6 6417else 6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6419/* end confdefs.h. */ 6420int i; 6421int 6422main () 6423{ 6424 6425 ; 6426 return 0; 6427} 6428_ACEOF 6429if ac_fn_c_try_link "$LINENO"; then : 6430 eval $cacheid=yes 6431else 6432 eval $cacheid=no 6433fi 6434rm -f core conftest.err conftest.$ac_objext \ 6435 conftest$ac_exeext conftest.$ac_ext 6436fi 6437 6438 6439 CFLAGS="$xorg_testset_save_CFLAGS" 6440 6441 eval supported=\$$cacheid 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6443$as_echo "$supported" >&6; } 6444 if test "$supported" = "yes" ; then 6445 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6446 found="yes" 6447 fi 6448 fi 6449 6450 6451 6452 6453 6454# This chunk adds additional warnings that could catch undesired effects. 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468xorg_testset_save_CFLAGS="$CFLAGS" 6469 6470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6473$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6474if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479int i; 6480_ACEOF 6481if ac_fn_c_try_compile "$LINENO"; then : 6482 xorg_cv_cc_flag_unknown_warning_option=yes 6483else 6484 xorg_cv_cc_flag_unknown_warning_option=no 6485fi 6486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6487fi 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6489$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6491 CFLAGS="$xorg_testset_save_CFLAGS" 6492fi 6493 6494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6500$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6501if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506int i; 6507_ACEOF 6508if ac_fn_c_try_compile "$LINENO"; then : 6509 xorg_cv_cc_flag_unused_command_line_argument=yes 6510else 6511 xorg_cv_cc_flag_unused_command_line_argument=no 6512fi 6513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6514fi 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6516$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6518 CFLAGS="$xorg_testset_save_CFLAGS" 6519fi 6520 6521found="no" 6522 6523 if test $found = "no" ; then 6524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6526 fi 6527 6528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6530 fi 6531 6532 CFLAGS="$CFLAGS -Wunused" 6533 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6535$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6536 cacheid=xorg_cv_cc_flag__Wunused 6537 if eval \${$cacheid+:} false; then : 6538 $as_echo_n "(cached) " >&6 6539else 6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6541/* end confdefs.h. */ 6542int i; 6543int 6544main () 6545{ 6546 6547 ; 6548 return 0; 6549} 6550_ACEOF 6551if ac_fn_c_try_link "$LINENO"; then : 6552 eval $cacheid=yes 6553else 6554 eval $cacheid=no 6555fi 6556rm -f core conftest.err conftest.$ac_objext \ 6557 conftest$ac_exeext conftest.$ac_ext 6558fi 6559 6560 6561 CFLAGS="$xorg_testset_save_CFLAGS" 6562 6563 eval supported=\$$cacheid 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6565$as_echo "$supported" >&6; } 6566 if test "$supported" = "yes" ; then 6567 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6568 found="yes" 6569 fi 6570 fi 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586xorg_testset_save_CFLAGS="$CFLAGS" 6587 6588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6591$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6592if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596/* end confdefs.h. */ 6597int i; 6598_ACEOF 6599if ac_fn_c_try_compile "$LINENO"; then : 6600 xorg_cv_cc_flag_unknown_warning_option=yes 6601else 6602 xorg_cv_cc_flag_unknown_warning_option=no 6603fi 6604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6605fi 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6607$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6608 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6609 CFLAGS="$xorg_testset_save_CFLAGS" 6610fi 6611 6612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6615 fi 6616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6618$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6619if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6620 $as_echo_n "(cached) " >&6 6621else 6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6623/* end confdefs.h. */ 6624int i; 6625_ACEOF 6626if ac_fn_c_try_compile "$LINENO"; then : 6627 xorg_cv_cc_flag_unused_command_line_argument=yes 6628else 6629 xorg_cv_cc_flag_unused_command_line_argument=no 6630fi 6631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6632fi 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6634$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6636 CFLAGS="$xorg_testset_save_CFLAGS" 6637fi 6638 6639found="no" 6640 6641 if test $found = "no" ; then 6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 fi 6645 6646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6648 fi 6649 6650 CFLAGS="$CFLAGS -Wuninitialized" 6651 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6653$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6654 cacheid=xorg_cv_cc_flag__Wuninitialized 6655 if eval \${$cacheid+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657else 6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6659/* end confdefs.h. */ 6660int i; 6661int 6662main () 6663{ 6664 6665 ; 6666 return 0; 6667} 6668_ACEOF 6669if ac_fn_c_try_link "$LINENO"; then : 6670 eval $cacheid=yes 6671else 6672 eval $cacheid=no 6673fi 6674rm -f core conftest.err conftest.$ac_objext \ 6675 conftest$ac_exeext conftest.$ac_ext 6676fi 6677 6678 6679 CFLAGS="$xorg_testset_save_CFLAGS" 6680 6681 eval supported=\$$cacheid 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6683$as_echo "$supported" >&6; } 6684 if test "$supported" = "yes" ; then 6685 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6686 found="yes" 6687 fi 6688 fi 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704xorg_testset_save_CFLAGS="$CFLAGS" 6705 6706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715int i; 6716_ACEOF 6717if ac_fn_c_try_compile "$LINENO"; then : 6718 xorg_cv_cc_flag_unknown_warning_option=yes 6719else 6720 xorg_cv_cc_flag_unknown_warning_option=no 6721fi 6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6723fi 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6727 CFLAGS="$xorg_testset_save_CFLAGS" 6728fi 6729 6730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6733 fi 6734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6738 $as_echo_n "(cached) " >&6 6739else 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741/* end confdefs.h. */ 6742int i; 6743_ACEOF 6744if ac_fn_c_try_compile "$LINENO"; then : 6745 xorg_cv_cc_flag_unused_command_line_argument=yes 6746else 6747 xorg_cv_cc_flag_unused_command_line_argument=no 6748fi 6749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6754 CFLAGS="$xorg_testset_save_CFLAGS" 6755fi 6756 6757found="no" 6758 6759 if test $found = "no" ; then 6760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6762 fi 6763 6764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6766 fi 6767 6768 CFLAGS="$CFLAGS -Wshadow" 6769 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6771$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6772 cacheid=xorg_cv_cc_flag__Wshadow 6773 if eval \${$cacheid+:} false; then : 6774 $as_echo_n "(cached) " >&6 6775else 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777/* end confdefs.h. */ 6778int i; 6779int 6780main () 6781{ 6782 6783 ; 6784 return 0; 6785} 6786_ACEOF 6787if ac_fn_c_try_link "$LINENO"; then : 6788 eval $cacheid=yes 6789else 6790 eval $cacheid=no 6791fi 6792rm -f core conftest.err conftest.$ac_objext \ 6793 conftest$ac_exeext conftest.$ac_ext 6794fi 6795 6796 6797 CFLAGS="$xorg_testset_save_CFLAGS" 6798 6799 eval supported=\$$cacheid 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6801$as_echo "$supported" >&6; } 6802 if test "$supported" = "yes" ; then 6803 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6804 found="yes" 6805 fi 6806 fi 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822xorg_testset_save_CFLAGS="$CFLAGS" 6823 6824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6827$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6828if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834_ACEOF 6835if ac_fn_c_try_compile "$LINENO"; then : 6836 xorg_cv_cc_flag_unknown_warning_option=yes 6837else 6838 xorg_cv_cc_flag_unknown_warning_option=no 6839fi 6840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6841fi 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6843$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6844 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6845 CFLAGS="$xorg_testset_save_CFLAGS" 6846fi 6847 6848if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6851 fi 6852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6854$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6855if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6856 $as_echo_n "(cached) " >&6 6857else 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860int i; 6861_ACEOF 6862if ac_fn_c_try_compile "$LINENO"; then : 6863 xorg_cv_cc_flag_unused_command_line_argument=yes 6864else 6865 xorg_cv_cc_flag_unused_command_line_argument=no 6866fi 6867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6868fi 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6870$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6872 CFLAGS="$xorg_testset_save_CFLAGS" 6873fi 6874 6875found="no" 6876 6877 if test $found = "no" ; then 6878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6880 fi 6881 6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6884 fi 6885 6886 CFLAGS="$CFLAGS -Wmissing-noreturn" 6887 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6889$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6890 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6891 if eval \${$cacheid+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896int i; 6897int 6898main () 6899{ 6900 6901 ; 6902 return 0; 6903} 6904_ACEOF 6905if ac_fn_c_try_link "$LINENO"; then : 6906 eval $cacheid=yes 6907else 6908 eval $cacheid=no 6909fi 6910rm -f core conftest.err conftest.$ac_objext \ 6911 conftest$ac_exeext conftest.$ac_ext 6912fi 6913 6914 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916 6917 eval supported=\$$cacheid 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6919$as_echo "$supported" >&6; } 6920 if test "$supported" = "yes" ; then 6921 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6922 found="yes" 6923 fi 6924 fi 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940xorg_testset_save_CFLAGS="$CFLAGS" 6941 6942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6945$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6946if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6950/* end confdefs.h. */ 6951int i; 6952_ACEOF 6953if ac_fn_c_try_compile "$LINENO"; then : 6954 xorg_cv_cc_flag_unknown_warning_option=yes 6955else 6956 xorg_cv_cc_flag_unknown_warning_option=no 6957fi 6958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6959fi 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6961$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6963 CFLAGS="$xorg_testset_save_CFLAGS" 6964fi 6965 6966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6969 fi 6970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6972$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6973if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975else 6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6977/* end confdefs.h. */ 6978int i; 6979_ACEOF 6980if ac_fn_c_try_compile "$LINENO"; then : 6981 xorg_cv_cc_flag_unused_command_line_argument=yes 6982else 6983 xorg_cv_cc_flag_unused_command_line_argument=no 6984fi 6985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6986fi 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6988$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6990 CFLAGS="$xorg_testset_save_CFLAGS" 6991fi 6992 6993found="no" 6994 6995 if test $found = "no" ; then 6996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6998 fi 6999 7000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7002 fi 7003 7004 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7005 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7007$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7008 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7009 if eval \${$cacheid+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7013/* end confdefs.h. */ 7014int i; 7015int 7016main () 7017{ 7018 7019 ; 7020 return 0; 7021} 7022_ACEOF 7023if ac_fn_c_try_link "$LINENO"; then : 7024 eval $cacheid=yes 7025else 7026 eval $cacheid=no 7027fi 7028rm -f core conftest.err conftest.$ac_objext \ 7029 conftest$ac_exeext conftest.$ac_ext 7030fi 7031 7032 7033 CFLAGS="$xorg_testset_save_CFLAGS" 7034 7035 eval supported=\$$cacheid 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7037$as_echo "$supported" >&6; } 7038 if test "$supported" = "yes" ; then 7039 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7040 found="yes" 7041 fi 7042 fi 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058xorg_testset_save_CFLAGS="$CFLAGS" 7059 7060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7063$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7064if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068/* end confdefs.h. */ 7069int i; 7070_ACEOF 7071if ac_fn_c_try_compile "$LINENO"; then : 7072 xorg_cv_cc_flag_unknown_warning_option=yes 7073else 7074 xorg_cv_cc_flag_unknown_warning_option=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7077fi 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7079$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7081 CFLAGS="$xorg_testset_save_CFLAGS" 7082fi 7083 7084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7087 fi 7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7090$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7091if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093else 7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095/* end confdefs.h. */ 7096int i; 7097_ACEOF 7098if ac_fn_c_try_compile "$LINENO"; then : 7099 xorg_cv_cc_flag_unused_command_line_argument=yes 7100else 7101 xorg_cv_cc_flag_unused_command_line_argument=no 7102fi 7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7104fi 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7106$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7108 CFLAGS="$xorg_testset_save_CFLAGS" 7109fi 7110 7111found="no" 7112 7113 if test $found = "no" ; then 7114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7116 fi 7117 7118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7120 fi 7121 7122 CFLAGS="$CFLAGS -Wredundant-decls" 7123 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7125$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 7126 cacheid=xorg_cv_cc_flag__Wredundant_decls 7127 if eval \${$cacheid+:} false; then : 7128 $as_echo_n "(cached) " >&6 7129else 7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7131/* end confdefs.h. */ 7132int i; 7133int 7134main () 7135{ 7136 7137 ; 7138 return 0; 7139} 7140_ACEOF 7141if ac_fn_c_try_link "$LINENO"; then : 7142 eval $cacheid=yes 7143else 7144 eval $cacheid=no 7145fi 7146rm -f core conftest.err conftest.$ac_objext \ 7147 conftest$ac_exeext conftest.$ac_ext 7148fi 7149 7150 7151 CFLAGS="$xorg_testset_save_CFLAGS" 7152 7153 eval supported=\$$cacheid 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7155$as_echo "$supported" >&6; } 7156 if test "$supported" = "yes" ; then 7157 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7158 found="yes" 7159 fi 7160 fi 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176xorg_testset_save_CFLAGS="$CFLAGS" 7177 7178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7183 $as_echo_n "(cached) " >&6 7184else 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187int i; 7188_ACEOF 7189if ac_fn_c_try_compile "$LINENO"; then : 7190 xorg_cv_cc_flag_unknown_warning_option=yes 7191else 7192 xorg_cv_cc_flag_unknown_warning_option=no 7193fi 7194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7195fi 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7199 CFLAGS="$xorg_testset_save_CFLAGS" 7200fi 7201 7202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7205 fi 7206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7210 $as_echo_n "(cached) " >&6 7211else 7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213/* end confdefs.h. */ 7214int i; 7215_ACEOF 7216if ac_fn_c_try_compile "$LINENO"; then : 7217 xorg_cv_cc_flag_unused_command_line_argument=yes 7218else 7219 xorg_cv_cc_flag_unused_command_line_argument=no 7220fi 7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222fi 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227fi 7228 7229found="no" 7230 7231 if test $found = "no" ; then 7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 fi 7235 7236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7238 fi 7239 7240 CFLAGS="$CFLAGS -Wlogical-op" 7241 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7243$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 7244 cacheid=xorg_cv_cc_flag__Wlogical_op 7245 if eval \${$cacheid+:} false; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250int i; 7251int 7252main () 7253{ 7254 7255 ; 7256 return 0; 7257} 7258_ACEOF 7259if ac_fn_c_try_link "$LINENO"; then : 7260 eval $cacheid=yes 7261else 7262 eval $cacheid=no 7263fi 7264rm -f core conftest.err conftest.$ac_objext \ 7265 conftest$ac_exeext conftest.$ac_ext 7266fi 7267 7268 7269 CFLAGS="$xorg_testset_save_CFLAGS" 7270 7271 eval supported=\$$cacheid 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7273$as_echo "$supported" >&6; } 7274 if test "$supported" = "yes" ; then 7275 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7276 found="yes" 7277 fi 7278 fi 7279 7280 7281 7282# These are currently disabled because they are noisy. They will be enabled 7283# in the future once the codebase is sufficiently modernized to silence 7284# them. For now, I don't want them to drown out the other warnings. 7285# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7286# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7287# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7288 7289# Turn some warnings into errors, so we don't accidently get successful builds 7290# when there are problems that should be fixed. 7291 7292if test "x$SELECTIVE_WERROR" = "xyes" ; then 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306xorg_testset_save_CFLAGS="$CFLAGS" 7307 7308if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7311$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7312if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7316/* end confdefs.h. */ 7317int i; 7318_ACEOF 7319if ac_fn_c_try_compile "$LINENO"; then : 7320 xorg_cv_cc_flag_unknown_warning_option=yes 7321else 7322 xorg_cv_cc_flag_unknown_warning_option=no 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7325fi 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7327$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7329 CFLAGS="$xorg_testset_save_CFLAGS" 7330fi 7331 7332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335 fi 7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7338$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7339if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7340 $as_echo_n "(cached) " >&6 7341else 7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7343/* end confdefs.h. */ 7344int i; 7345_ACEOF 7346if ac_fn_c_try_compile "$LINENO"; then : 7347 xorg_cv_cc_flag_unused_command_line_argument=yes 7348else 7349 xorg_cv_cc_flag_unused_command_line_argument=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7352fi 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7354$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7355 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7356 CFLAGS="$xorg_testset_save_CFLAGS" 7357fi 7358 7359found="no" 7360 7361 if test $found = "no" ; then 7362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7364 fi 7365 7366 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7368 fi 7369 7370 CFLAGS="$CFLAGS -Werror=implicit" 7371 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7373$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7374 cacheid=xorg_cv_cc_flag__Werror_implicit 7375 if eval \${$cacheid+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380int i; 7381int 7382main () 7383{ 7384 7385 ; 7386 return 0; 7387} 7388_ACEOF 7389if ac_fn_c_try_link "$LINENO"; then : 7390 eval $cacheid=yes 7391else 7392 eval $cacheid=no 7393fi 7394rm -f core conftest.err conftest.$ac_objext \ 7395 conftest$ac_exeext conftest.$ac_ext 7396fi 7397 7398 7399 CFLAGS="$xorg_testset_save_CFLAGS" 7400 7401 eval supported=\$$cacheid 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7403$as_echo "$supported" >&6; } 7404 if test "$supported" = "yes" ; then 7405 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7406 found="yes" 7407 fi 7408 fi 7409 7410 if test $found = "no" ; then 7411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7413 fi 7414 7415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7417 fi 7418 7419 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7420 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7422$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7423 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7424 if eval \${$cacheid+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7428/* end confdefs.h. */ 7429int i; 7430int 7431main () 7432{ 7433 7434 ; 7435 return 0; 7436} 7437_ACEOF 7438if ac_fn_c_try_link "$LINENO"; then : 7439 eval $cacheid=yes 7440else 7441 eval $cacheid=no 7442fi 7443rm -f core conftest.err conftest.$ac_objext \ 7444 conftest$ac_exeext conftest.$ac_ext 7445fi 7446 7447 7448 CFLAGS="$xorg_testset_save_CFLAGS" 7449 7450 eval supported=\$$cacheid 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7452$as_echo "$supported" >&6; } 7453 if test "$supported" = "yes" ; then 7454 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7455 found="yes" 7456 fi 7457 fi 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473xorg_testset_save_CFLAGS="$CFLAGS" 7474 7475if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7478$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7479if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7480 $as_echo_n "(cached) " >&6 7481else 7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7483/* end confdefs.h. */ 7484int i; 7485_ACEOF 7486if ac_fn_c_try_compile "$LINENO"; then : 7487 xorg_cv_cc_flag_unknown_warning_option=yes 7488else 7489 xorg_cv_cc_flag_unknown_warning_option=no 7490fi 7491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7492fi 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7494$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7496 CFLAGS="$xorg_testset_save_CFLAGS" 7497fi 7498 7499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7505$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7506if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7507 $as_echo_n "(cached) " >&6 7508else 7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7510/* end confdefs.h. */ 7511int i; 7512_ACEOF 7513if ac_fn_c_try_compile "$LINENO"; then : 7514 xorg_cv_cc_flag_unused_command_line_argument=yes 7515else 7516 xorg_cv_cc_flag_unused_command_line_argument=no 7517fi 7518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7519fi 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7521$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7523 CFLAGS="$xorg_testset_save_CFLAGS" 7524fi 7525 7526found="no" 7527 7528 if test $found = "no" ; then 7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7531 fi 7532 7533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7535 fi 7536 7537 CFLAGS="$CFLAGS -Werror=nonnull" 7538 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7540$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7541 cacheid=xorg_cv_cc_flag__Werror_nonnull 7542 if eval \${$cacheid+:} false; then : 7543 $as_echo_n "(cached) " >&6 7544else 7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7546/* end confdefs.h. */ 7547int i; 7548int 7549main () 7550{ 7551 7552 ; 7553 return 0; 7554} 7555_ACEOF 7556if ac_fn_c_try_link "$LINENO"; then : 7557 eval $cacheid=yes 7558else 7559 eval $cacheid=no 7560fi 7561rm -f core conftest.err conftest.$ac_objext \ 7562 conftest$ac_exeext conftest.$ac_ext 7563fi 7564 7565 7566 CFLAGS="$xorg_testset_save_CFLAGS" 7567 7568 eval supported=\$$cacheid 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7570$as_echo "$supported" >&6; } 7571 if test "$supported" = "yes" ; then 7572 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7573 found="yes" 7574 fi 7575 fi 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591xorg_testset_save_CFLAGS="$CFLAGS" 7592 7593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7596$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7597if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603_ACEOF 7604if ac_fn_c_try_compile "$LINENO"; then : 7605 xorg_cv_cc_flag_unknown_warning_option=yes 7606else 7607 xorg_cv_cc_flag_unknown_warning_option=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7610fi 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7612$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7614 CFLAGS="$xorg_testset_save_CFLAGS" 7615fi 7616 7617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7620 fi 7621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7623$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7624if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7625 $as_echo_n "(cached) " >&6 7626else 7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628/* end confdefs.h. */ 7629int i; 7630_ACEOF 7631if ac_fn_c_try_compile "$LINENO"; then : 7632 xorg_cv_cc_flag_unused_command_line_argument=yes 7633else 7634 xorg_cv_cc_flag_unused_command_line_argument=no 7635fi 7636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7637fi 7638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7639$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7641 CFLAGS="$xorg_testset_save_CFLAGS" 7642fi 7643 7644found="no" 7645 7646 if test $found = "no" ; then 7647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7649 fi 7650 7651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7653 fi 7654 7655 CFLAGS="$CFLAGS -Werror=init-self" 7656 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7658$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7659 cacheid=xorg_cv_cc_flag__Werror_init_self 7660 if eval \${$cacheid+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664/* end confdefs.h. */ 7665int i; 7666int 7667main () 7668{ 7669 7670 ; 7671 return 0; 7672} 7673_ACEOF 7674if ac_fn_c_try_link "$LINENO"; then : 7675 eval $cacheid=yes 7676else 7677 eval $cacheid=no 7678fi 7679rm -f core conftest.err conftest.$ac_objext \ 7680 conftest$ac_exeext conftest.$ac_ext 7681fi 7682 7683 7684 CFLAGS="$xorg_testset_save_CFLAGS" 7685 7686 eval supported=\$$cacheid 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7688$as_echo "$supported" >&6; } 7689 if test "$supported" = "yes" ; then 7690 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7691 found="yes" 7692 fi 7693 fi 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709xorg_testset_save_CFLAGS="$CFLAGS" 7710 7711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7714$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7715if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721_ACEOF 7722if ac_fn_c_try_compile "$LINENO"; then : 7723 xorg_cv_cc_flag_unknown_warning_option=yes 7724else 7725 xorg_cv_cc_flag_unknown_warning_option=no 7726fi 7727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7728fi 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7730$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7732 CFLAGS="$xorg_testset_save_CFLAGS" 7733fi 7734 7735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7738 fi 7739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7741$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7742if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747int i; 7748_ACEOF 7749if ac_fn_c_try_compile "$LINENO"; then : 7750 xorg_cv_cc_flag_unused_command_line_argument=yes 7751else 7752 xorg_cv_cc_flag_unused_command_line_argument=no 7753fi 7754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7757$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7759 CFLAGS="$xorg_testset_save_CFLAGS" 7760fi 7761 7762found="no" 7763 7764 if test $found = "no" ; then 7765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7767 fi 7768 7769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7771 fi 7772 7773 CFLAGS="$CFLAGS -Werror=main" 7774 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7776$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7777 cacheid=xorg_cv_cc_flag__Werror_main 7778 if eval \${$cacheid+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784int 7785main () 7786{ 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_link "$LINENO"; then : 7793 eval $cacheid=yes 7794else 7795 eval $cacheid=no 7796fi 7797rm -f core conftest.err conftest.$ac_objext \ 7798 conftest$ac_exeext conftest.$ac_ext 7799fi 7800 7801 7802 CFLAGS="$xorg_testset_save_CFLAGS" 7803 7804 eval supported=\$$cacheid 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7806$as_echo "$supported" >&6; } 7807 if test "$supported" = "yes" ; then 7808 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7809 found="yes" 7810 fi 7811 fi 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827xorg_testset_save_CFLAGS="$CFLAGS" 7828 7829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7832$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7833if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837/* end confdefs.h. */ 7838int i; 7839_ACEOF 7840if ac_fn_c_try_compile "$LINENO"; then : 7841 xorg_cv_cc_flag_unknown_warning_option=yes 7842else 7843 xorg_cv_cc_flag_unknown_warning_option=no 7844fi 7845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7846fi 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7848$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7850 CFLAGS="$xorg_testset_save_CFLAGS" 7851fi 7852 7853if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 fi 7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7859$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7860if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7864/* end confdefs.h. */ 7865int i; 7866_ACEOF 7867if ac_fn_c_try_compile "$LINENO"; then : 7868 xorg_cv_cc_flag_unused_command_line_argument=yes 7869else 7870 xorg_cv_cc_flag_unused_command_line_argument=no 7871fi 7872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7873fi 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7875$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7877 CFLAGS="$xorg_testset_save_CFLAGS" 7878fi 7879 7880found="no" 7881 7882 if test $found = "no" ; then 7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885 fi 7886 7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7889 fi 7890 7891 CFLAGS="$CFLAGS -Werror=missing-braces" 7892 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7894$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7895 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7896 if eval \${$cacheid+:} false; then : 7897 $as_echo_n "(cached) " >&6 7898else 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900/* end confdefs.h. */ 7901int i; 7902int 7903main () 7904{ 7905 7906 ; 7907 return 0; 7908} 7909_ACEOF 7910if ac_fn_c_try_link "$LINENO"; then : 7911 eval $cacheid=yes 7912else 7913 eval $cacheid=no 7914fi 7915rm -f core conftest.err conftest.$ac_objext \ 7916 conftest$ac_exeext conftest.$ac_ext 7917fi 7918 7919 7920 CFLAGS="$xorg_testset_save_CFLAGS" 7921 7922 eval supported=\$$cacheid 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7924$as_echo "$supported" >&6; } 7925 if test "$supported" = "yes" ; then 7926 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7927 found="yes" 7928 fi 7929 fi 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945xorg_testset_save_CFLAGS="$CFLAGS" 7946 7947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7952 $as_echo_n "(cached) " >&6 7953else 7954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7955/* end confdefs.h. */ 7956int i; 7957_ACEOF 7958if ac_fn_c_try_compile "$LINENO"; then : 7959 xorg_cv_cc_flag_unknown_warning_option=yes 7960else 7961 xorg_cv_cc_flag_unknown_warning_option=no 7962fi 7963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7964fi 7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7968 CFLAGS="$xorg_testset_save_CFLAGS" 7969fi 7970 7971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7974 fi 7975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7982/* end confdefs.h. */ 7983int i; 7984_ACEOF 7985if ac_fn_c_try_compile "$LINENO"; then : 7986 xorg_cv_cc_flag_unused_command_line_argument=yes 7987else 7988 xorg_cv_cc_flag_unused_command_line_argument=no 7989fi 7990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7991fi 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7995 CFLAGS="$xorg_testset_save_CFLAGS" 7996fi 7997 7998found="no" 7999 8000 if test $found = "no" ; then 8001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8003 fi 8004 8005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8007 fi 8008 8009 CFLAGS="$CFLAGS -Werror=sequence-point" 8010 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8012$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 8013 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8014 if eval \${$cacheid+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019int i; 8020int 8021main () 8022{ 8023 8024 ; 8025 return 0; 8026} 8027_ACEOF 8028if ac_fn_c_try_link "$LINENO"; then : 8029 eval $cacheid=yes 8030else 8031 eval $cacheid=no 8032fi 8033rm -f core conftest.err conftest.$ac_objext \ 8034 conftest$ac_exeext conftest.$ac_ext 8035fi 8036 8037 8038 CFLAGS="$xorg_testset_save_CFLAGS" 8039 8040 eval supported=\$$cacheid 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8042$as_echo "$supported" >&6; } 8043 if test "$supported" = "yes" ; then 8044 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8045 found="yes" 8046 fi 8047 fi 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063xorg_testset_save_CFLAGS="$CFLAGS" 8064 8065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8068$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8069if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8070 $as_echo_n "(cached) " >&6 8071else 8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8073/* end confdefs.h. */ 8074int i; 8075_ACEOF 8076if ac_fn_c_try_compile "$LINENO"; then : 8077 xorg_cv_cc_flag_unknown_warning_option=yes 8078else 8079 xorg_cv_cc_flag_unknown_warning_option=no 8080fi 8081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8082fi 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8084$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8086 CFLAGS="$xorg_testset_save_CFLAGS" 8087fi 8088 8089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 fi 8093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8095$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8096if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8097 $as_echo_n "(cached) " >&6 8098else 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101int i; 8102_ACEOF 8103if ac_fn_c_try_compile "$LINENO"; then : 8104 xorg_cv_cc_flag_unused_command_line_argument=yes 8105else 8106 xorg_cv_cc_flag_unused_command_line_argument=no 8107fi 8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8109fi 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8111$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114fi 8115 8116found="no" 8117 8118 if test $found = "no" ; then 8119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8121 fi 8122 8123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8125 fi 8126 8127 CFLAGS="$CFLAGS -Werror=return-type" 8128 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8130$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 8131 cacheid=xorg_cv_cc_flag__Werror_return_type 8132 if eval \${$cacheid+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8136/* end confdefs.h. */ 8137int i; 8138int 8139main () 8140{ 8141 8142 ; 8143 return 0; 8144} 8145_ACEOF 8146if ac_fn_c_try_link "$LINENO"; then : 8147 eval $cacheid=yes 8148else 8149 eval $cacheid=no 8150fi 8151rm -f core conftest.err conftest.$ac_objext \ 8152 conftest$ac_exeext conftest.$ac_ext 8153fi 8154 8155 8156 CFLAGS="$xorg_testset_save_CFLAGS" 8157 8158 eval supported=\$$cacheid 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8160$as_echo "$supported" >&6; } 8161 if test "$supported" = "yes" ; then 8162 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8163 found="yes" 8164 fi 8165 fi 8166 8167 if test $found = "no" ; then 8168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8170 fi 8171 8172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8174 fi 8175 8176 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8177 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8179$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8180 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8181 if eval \${$cacheid+:} false; then : 8182 $as_echo_n "(cached) " >&6 8183else 8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8185/* end confdefs.h. */ 8186int i; 8187int 8188main () 8189{ 8190 8191 ; 8192 return 0; 8193} 8194_ACEOF 8195if ac_fn_c_try_link "$LINENO"; then : 8196 eval $cacheid=yes 8197else 8198 eval $cacheid=no 8199fi 8200rm -f core conftest.err conftest.$ac_objext \ 8201 conftest$ac_exeext conftest.$ac_ext 8202fi 8203 8204 8205 CFLAGS="$xorg_testset_save_CFLAGS" 8206 8207 eval supported=\$$cacheid 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8209$as_echo "$supported" >&6; } 8210 if test "$supported" = "yes" ; then 8211 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8212 found="yes" 8213 fi 8214 fi 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230xorg_testset_save_CFLAGS="$CFLAGS" 8231 8232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240/* end confdefs.h. */ 8241int i; 8242_ACEOF 8243if ac_fn_c_try_compile "$LINENO"; then : 8244 xorg_cv_cc_flag_unknown_warning_option=yes 8245else 8246 xorg_cv_cc_flag_unknown_warning_option=no 8247fi 8248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8249fi 8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8253 CFLAGS="$xorg_testset_save_CFLAGS" 8254fi 8255 8256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8259 fi 8260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8264 $as_echo_n "(cached) " >&6 8265else 8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8267/* end confdefs.h. */ 8268int i; 8269_ACEOF 8270if ac_fn_c_try_compile "$LINENO"; then : 8271 xorg_cv_cc_flag_unused_command_line_argument=yes 8272else 8273 xorg_cv_cc_flag_unused_command_line_argument=no 8274fi 8275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8280 CFLAGS="$xorg_testset_save_CFLAGS" 8281fi 8282 8283found="no" 8284 8285 if test $found = "no" ; then 8286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8288 fi 8289 8290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8292 fi 8293 8294 CFLAGS="$CFLAGS -Werror=trigraphs" 8295 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8297$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8298 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8299 if eval \${$cacheid+:} false; then : 8300 $as_echo_n "(cached) " >&6 8301else 8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8303/* end confdefs.h. */ 8304int i; 8305int 8306main () 8307{ 8308 8309 ; 8310 return 0; 8311} 8312_ACEOF 8313if ac_fn_c_try_link "$LINENO"; then : 8314 eval $cacheid=yes 8315else 8316 eval $cacheid=no 8317fi 8318rm -f core conftest.err conftest.$ac_objext \ 8319 conftest$ac_exeext conftest.$ac_ext 8320fi 8321 8322 8323 CFLAGS="$xorg_testset_save_CFLAGS" 8324 8325 eval supported=\$$cacheid 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8327$as_echo "$supported" >&6; } 8328 if test "$supported" = "yes" ; then 8329 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8330 found="yes" 8331 fi 8332 fi 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348xorg_testset_save_CFLAGS="$CFLAGS" 8349 8350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO"; then : 8362 xorg_cv_cc_flag_unknown_warning_option=yes 8363else 8364 xorg_cv_cc_flag_unknown_warning_option=no 8365fi 8366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8367fi 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8371 CFLAGS="$xorg_testset_save_CFLAGS" 8372fi 8373 8374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8377 fi 8378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385/* end confdefs.h. */ 8386int i; 8387_ACEOF 8388if ac_fn_c_try_compile "$LINENO"; then : 8389 xorg_cv_cc_flag_unused_command_line_argument=yes 8390else 8391 xorg_cv_cc_flag_unused_command_line_argument=no 8392fi 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8394fi 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8398 CFLAGS="$xorg_testset_save_CFLAGS" 8399fi 8400 8401found="no" 8402 8403 if test $found = "no" ; then 8404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8406 fi 8407 8408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8410 fi 8411 8412 CFLAGS="$CFLAGS -Werror=array-bounds" 8413 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8415$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8416 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8417 if eval \${$cacheid+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422int i; 8423int 8424main () 8425{ 8426 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431if ac_fn_c_try_link "$LINENO"; then : 8432 eval $cacheid=yes 8433else 8434 eval $cacheid=no 8435fi 8436rm -f core conftest.err conftest.$ac_objext \ 8437 conftest$ac_exeext conftest.$ac_ext 8438fi 8439 8440 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 8443 eval supported=\$$cacheid 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8445$as_echo "$supported" >&6; } 8446 if test "$supported" = "yes" ; then 8447 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8448 found="yes" 8449 fi 8450 fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466xorg_testset_save_CFLAGS="$CFLAGS" 8467 8468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476/* end confdefs.h. */ 8477int i; 8478_ACEOF 8479if ac_fn_c_try_compile "$LINENO"; then : 8480 xorg_cv_cc_flag_unknown_warning_option=yes 8481else 8482 xorg_cv_cc_flag_unknown_warning_option=no 8483fi 8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8485fi 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8489 CFLAGS="$xorg_testset_save_CFLAGS" 8490fi 8491 8492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8495 fi 8496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8500 $as_echo_n "(cached) " >&6 8501else 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503/* end confdefs.h. */ 8504int i; 8505_ACEOF 8506if ac_fn_c_try_compile "$LINENO"; then : 8507 xorg_cv_cc_flag_unused_command_line_argument=yes 8508else 8509 xorg_cv_cc_flag_unused_command_line_argument=no 8510fi 8511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8512fi 8513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8516 CFLAGS="$xorg_testset_save_CFLAGS" 8517fi 8518 8519found="no" 8520 8521 if test $found = "no" ; then 8522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8524 fi 8525 8526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8528 fi 8529 8530 CFLAGS="$CFLAGS -Werror=write-strings" 8531 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8533$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8534 cacheid=xorg_cv_cc_flag__Werror_write_strings 8535 if eval \${$cacheid+:} false; then : 8536 $as_echo_n "(cached) " >&6 8537else 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540int i; 8541int 8542main () 8543{ 8544 8545 ; 8546 return 0; 8547} 8548_ACEOF 8549if ac_fn_c_try_link "$LINENO"; then : 8550 eval $cacheid=yes 8551else 8552 eval $cacheid=no 8553fi 8554rm -f core conftest.err conftest.$ac_objext \ 8555 conftest$ac_exeext conftest.$ac_ext 8556fi 8557 8558 8559 CFLAGS="$xorg_testset_save_CFLAGS" 8560 8561 eval supported=\$$cacheid 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8563$as_echo "$supported" >&6; } 8564 if test "$supported" = "yes" ; then 8565 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8566 found="yes" 8567 fi 8568 fi 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584xorg_testset_save_CFLAGS="$CFLAGS" 8585 8586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8594/* end confdefs.h. */ 8595int i; 8596_ACEOF 8597if ac_fn_c_try_compile "$LINENO"; then : 8598 xorg_cv_cc_flag_unknown_warning_option=yes 8599else 8600 xorg_cv_cc_flag_unknown_warning_option=no 8601fi 8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8603fi 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8607 CFLAGS="$xorg_testset_save_CFLAGS" 8608fi 8609 8610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8613 fi 8614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8618 $as_echo_n "(cached) " >&6 8619else 8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8621/* end confdefs.h. */ 8622int i; 8623_ACEOF 8624if ac_fn_c_try_compile "$LINENO"; then : 8625 xorg_cv_cc_flag_unused_command_line_argument=yes 8626else 8627 xorg_cv_cc_flag_unused_command_line_argument=no 8628fi 8629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8630fi 8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8634 CFLAGS="$xorg_testset_save_CFLAGS" 8635fi 8636 8637found="no" 8638 8639 if test $found = "no" ; then 8640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8642 fi 8643 8644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8646 fi 8647 8648 CFLAGS="$CFLAGS -Werror=address" 8649 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8651$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8652 cacheid=xorg_cv_cc_flag__Werror_address 8653 if eval \${$cacheid+:} false; then : 8654 $as_echo_n "(cached) " >&6 8655else 8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8657/* end confdefs.h. */ 8658int i; 8659int 8660main () 8661{ 8662 8663 ; 8664 return 0; 8665} 8666_ACEOF 8667if ac_fn_c_try_link "$LINENO"; then : 8668 eval $cacheid=yes 8669else 8670 eval $cacheid=no 8671fi 8672rm -f core conftest.err conftest.$ac_objext \ 8673 conftest$ac_exeext conftest.$ac_ext 8674fi 8675 8676 8677 CFLAGS="$xorg_testset_save_CFLAGS" 8678 8679 eval supported=\$$cacheid 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8681$as_echo "$supported" >&6; } 8682 if test "$supported" = "yes" ; then 8683 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8684 found="yes" 8685 fi 8686 fi 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702xorg_testset_save_CFLAGS="$CFLAGS" 8703 8704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713int i; 8714_ACEOF 8715if ac_fn_c_try_compile "$LINENO"; then : 8716 xorg_cv_cc_flag_unknown_warning_option=yes 8717else 8718 xorg_cv_cc_flag_unknown_warning_option=no 8719fi 8720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8721fi 8722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8725 CFLAGS="$xorg_testset_save_CFLAGS" 8726fi 8727 8728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8731 fi 8732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739/* end confdefs.h. */ 8740int i; 8741_ACEOF 8742if ac_fn_c_try_compile "$LINENO"; then : 8743 xorg_cv_cc_flag_unused_command_line_argument=yes 8744else 8745 xorg_cv_cc_flag_unused_command_line_argument=no 8746fi 8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8748fi 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8752 CFLAGS="$xorg_testset_save_CFLAGS" 8753fi 8754 8755found="no" 8756 8757 if test $found = "no" ; then 8758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8760 fi 8761 8762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8764 fi 8765 8766 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8767 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8769$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8770 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8771 if eval \${$cacheid+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777int 8778main () 8779{ 8780 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_link "$LINENO"; then : 8786 eval $cacheid=yes 8787else 8788 eval $cacheid=no 8789fi 8790rm -f core conftest.err conftest.$ac_objext \ 8791 conftest$ac_exeext conftest.$ac_ext 8792fi 8793 8794 8795 CFLAGS="$xorg_testset_save_CFLAGS" 8796 8797 eval supported=\$$cacheid 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8799$as_echo "$supported" >&6; } 8800 if test "$supported" = "yes" ; then 8801 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8802 found="yes" 8803 fi 8804 fi 8805 8806 if test $found = "no" ; then 8807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8809 fi 8810 8811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8813 fi 8814 8815 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8816 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8818$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8819 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8820 if eval \${$cacheid+:} false; then : 8821 $as_echo_n "(cached) " >&6 8822else 8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8824/* end confdefs.h. */ 8825int i; 8826int 8827main () 8828{ 8829 8830 ; 8831 return 0; 8832} 8833_ACEOF 8834if ac_fn_c_try_link "$LINENO"; then : 8835 eval $cacheid=yes 8836else 8837 eval $cacheid=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext \ 8840 conftest$ac_exeext conftest.$ac_ext 8841fi 8842 8843 8844 CFLAGS="$xorg_testset_save_CFLAGS" 8845 8846 eval supported=\$$cacheid 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8848$as_echo "$supported" >&6; } 8849 if test "$supported" = "yes" ; then 8850 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8851 found="yes" 8852 fi 8853 fi 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869xorg_testset_save_CFLAGS="$CFLAGS" 8870 8871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879/* end confdefs.h. */ 8880int i; 8881_ACEOF 8882if ac_fn_c_try_compile "$LINENO"; then : 8883 xorg_cv_cc_flag_unknown_warning_option=yes 8884else 8885 xorg_cv_cc_flag_unknown_warning_option=no 8886fi 8887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8888fi 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8892 CFLAGS="$xorg_testset_save_CFLAGS" 8893fi 8894 8895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8898 fi 8899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8906/* end confdefs.h. */ 8907int i; 8908_ACEOF 8909if ac_fn_c_try_compile "$LINENO"; then : 8910 xorg_cv_cc_flag_unused_command_line_argument=yes 8911else 8912 xorg_cv_cc_flag_unused_command_line_argument=no 8913fi 8914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8915fi 8916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8919 CFLAGS="$xorg_testset_save_CFLAGS" 8920fi 8921 8922found="no" 8923 8924 if test $found = "no" ; then 8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8927 fi 8928 8929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8931 fi 8932 8933 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8934 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8936$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8937 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8938 if eval \${$cacheid+:} false; then : 8939 $as_echo_n "(cached) " >&6 8940else 8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8942/* end confdefs.h. */ 8943int i; 8944int 8945main () 8946{ 8947 8948 ; 8949 return 0; 8950} 8951_ACEOF 8952if ac_fn_c_try_link "$LINENO"; then : 8953 eval $cacheid=yes 8954else 8955 eval $cacheid=no 8956fi 8957rm -f core conftest.err conftest.$ac_objext \ 8958 conftest$ac_exeext conftest.$ac_ext 8959fi 8960 8961 8962 CFLAGS="$xorg_testset_save_CFLAGS" 8963 8964 eval supported=\$$cacheid 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8966$as_echo "$supported" >&6; } 8967 if test "$supported" = "yes" ; then 8968 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8969 found="yes" 8970 fi 8971 fi 8972 8973 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8974else 8975{ $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 8976$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;} 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990xorg_testset_save_CFLAGS="$CFLAGS" 8991 8992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8995$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8996if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998else 8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9000/* end confdefs.h. */ 9001int i; 9002_ACEOF 9003if ac_fn_c_try_compile "$LINENO"; then : 9004 xorg_cv_cc_flag_unknown_warning_option=yes 9005else 9006 xorg_cv_cc_flag_unknown_warning_option=no 9007fi 9008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9009fi 9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9011$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014fi 9015 9016if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9019 fi 9020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9022$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9023if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9024 $as_echo_n "(cached) " >&6 9025else 9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027/* end confdefs.h. */ 9028int i; 9029_ACEOF 9030if ac_fn_c_try_compile "$LINENO"; then : 9031 xorg_cv_cc_flag_unused_command_line_argument=yes 9032else 9033 xorg_cv_cc_flag_unused_command_line_argument=no 9034fi 9035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9036fi 9037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9038$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9040 CFLAGS="$xorg_testset_save_CFLAGS" 9041fi 9042 9043found="no" 9044 9045 if test $found = "no" ; then 9046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9048 fi 9049 9050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9052 fi 9053 9054 CFLAGS="$CFLAGS -Wimplicit" 9055 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9057$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 9058 cacheid=xorg_cv_cc_flag__Wimplicit 9059 if eval \${$cacheid+:} false; then : 9060 $as_echo_n "(cached) " >&6 9061else 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9063/* end confdefs.h. */ 9064int i; 9065int 9066main () 9067{ 9068 9069 ; 9070 return 0; 9071} 9072_ACEOF 9073if ac_fn_c_try_link "$LINENO"; then : 9074 eval $cacheid=yes 9075else 9076 eval $cacheid=no 9077fi 9078rm -f core conftest.err conftest.$ac_objext \ 9079 conftest$ac_exeext conftest.$ac_ext 9080fi 9081 9082 9083 CFLAGS="$xorg_testset_save_CFLAGS" 9084 9085 eval supported=\$$cacheid 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9087$as_echo "$supported" >&6; } 9088 if test "$supported" = "yes" ; then 9089 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9090 found="yes" 9091 fi 9092 fi 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108xorg_testset_save_CFLAGS="$CFLAGS" 9109 9110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9113$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9114if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9118/* end confdefs.h. */ 9119int i; 9120_ACEOF 9121if ac_fn_c_try_compile "$LINENO"; then : 9122 xorg_cv_cc_flag_unknown_warning_option=yes 9123else 9124 xorg_cv_cc_flag_unknown_warning_option=no 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9127fi 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9129$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9131 CFLAGS="$xorg_testset_save_CFLAGS" 9132fi 9133 9134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9137 fi 9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9140$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9141if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9142 $as_echo_n "(cached) " >&6 9143else 9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9145/* end confdefs.h. */ 9146int i; 9147_ACEOF 9148if ac_fn_c_try_compile "$LINENO"; then : 9149 xorg_cv_cc_flag_unused_command_line_argument=yes 9150else 9151 xorg_cv_cc_flag_unused_command_line_argument=no 9152fi 9153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9154fi 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9156$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9158 CFLAGS="$xorg_testset_save_CFLAGS" 9159fi 9160 9161found="no" 9162 9163 if test $found = "no" ; then 9164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166 fi 9167 9168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9170 fi 9171 9172 CFLAGS="$CFLAGS -Wnonnull" 9173 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9175$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 9176 cacheid=xorg_cv_cc_flag__Wnonnull 9177 if eval \${$cacheid+:} false; then : 9178 $as_echo_n "(cached) " >&6 9179else 9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9181/* end confdefs.h. */ 9182int i; 9183int 9184main () 9185{ 9186 9187 ; 9188 return 0; 9189} 9190_ACEOF 9191if ac_fn_c_try_link "$LINENO"; then : 9192 eval $cacheid=yes 9193else 9194 eval $cacheid=no 9195fi 9196rm -f core conftest.err conftest.$ac_objext \ 9197 conftest$ac_exeext conftest.$ac_ext 9198fi 9199 9200 9201 CFLAGS="$xorg_testset_save_CFLAGS" 9202 9203 eval supported=\$$cacheid 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9205$as_echo "$supported" >&6; } 9206 if test "$supported" = "yes" ; then 9207 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9208 found="yes" 9209 fi 9210 fi 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226xorg_testset_save_CFLAGS="$CFLAGS" 9227 9228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9231$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9232if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237int i; 9238_ACEOF 9239if ac_fn_c_try_compile "$LINENO"; then : 9240 xorg_cv_cc_flag_unknown_warning_option=yes 9241else 9242 xorg_cv_cc_flag_unknown_warning_option=no 9243fi 9244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9245fi 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9247$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9249 CFLAGS="$xorg_testset_save_CFLAGS" 9250fi 9251 9252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9255 fi 9256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9258$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9259if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9260 $as_echo_n "(cached) " >&6 9261else 9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9263/* end confdefs.h. */ 9264int i; 9265_ACEOF 9266if ac_fn_c_try_compile "$LINENO"; then : 9267 xorg_cv_cc_flag_unused_command_line_argument=yes 9268else 9269 xorg_cv_cc_flag_unused_command_line_argument=no 9270fi 9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9272fi 9273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9274$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9276 CFLAGS="$xorg_testset_save_CFLAGS" 9277fi 9278 9279found="no" 9280 9281 if test $found = "no" ; then 9282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9284 fi 9285 9286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9288 fi 9289 9290 CFLAGS="$CFLAGS -Winit-self" 9291 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9293$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9294 cacheid=xorg_cv_cc_flag__Winit_self 9295 if eval \${$cacheid+:} false; then : 9296 $as_echo_n "(cached) " >&6 9297else 9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9299/* end confdefs.h. */ 9300int i; 9301int 9302main () 9303{ 9304 9305 ; 9306 return 0; 9307} 9308_ACEOF 9309if ac_fn_c_try_link "$LINENO"; then : 9310 eval $cacheid=yes 9311else 9312 eval $cacheid=no 9313fi 9314rm -f core conftest.err conftest.$ac_objext \ 9315 conftest$ac_exeext conftest.$ac_ext 9316fi 9317 9318 9319 CFLAGS="$xorg_testset_save_CFLAGS" 9320 9321 eval supported=\$$cacheid 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9323$as_echo "$supported" >&6; } 9324 if test "$supported" = "yes" ; then 9325 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9326 found="yes" 9327 fi 9328 fi 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344xorg_testset_save_CFLAGS="$CFLAGS" 9345 9346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9349$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9350if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9351 $as_echo_n "(cached) " >&6 9352else 9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9354/* end confdefs.h. */ 9355int i; 9356_ACEOF 9357if ac_fn_c_try_compile "$LINENO"; then : 9358 xorg_cv_cc_flag_unknown_warning_option=yes 9359else 9360 xorg_cv_cc_flag_unknown_warning_option=no 9361fi 9362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9363fi 9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9365$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9367 CFLAGS="$xorg_testset_save_CFLAGS" 9368fi 9369 9370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 fi 9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9376$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9377if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9378 $as_echo_n "(cached) " >&6 9379else 9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9381/* end confdefs.h. */ 9382int i; 9383_ACEOF 9384if ac_fn_c_try_compile "$LINENO"; then : 9385 xorg_cv_cc_flag_unused_command_line_argument=yes 9386else 9387 xorg_cv_cc_flag_unused_command_line_argument=no 9388fi 9389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9390fi 9391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9392$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9394 CFLAGS="$xorg_testset_save_CFLAGS" 9395fi 9396 9397found="no" 9398 9399 if test $found = "no" ; then 9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 fi 9403 9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9406 fi 9407 9408 CFLAGS="$CFLAGS -Wmain" 9409 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9411$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9412 cacheid=xorg_cv_cc_flag__Wmain 9413 if eval \${$cacheid+:} false; then : 9414 $as_echo_n "(cached) " >&6 9415else 9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418int i; 9419int 9420main () 9421{ 9422 9423 ; 9424 return 0; 9425} 9426_ACEOF 9427if ac_fn_c_try_link "$LINENO"; then : 9428 eval $cacheid=yes 9429else 9430 eval $cacheid=no 9431fi 9432rm -f core conftest.err conftest.$ac_objext \ 9433 conftest$ac_exeext conftest.$ac_ext 9434fi 9435 9436 9437 CFLAGS="$xorg_testset_save_CFLAGS" 9438 9439 eval supported=\$$cacheid 9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9441$as_echo "$supported" >&6; } 9442 if test "$supported" = "yes" ; then 9443 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9444 found="yes" 9445 fi 9446 fi 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462xorg_testset_save_CFLAGS="$CFLAGS" 9463 9464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9467$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9468if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9469 $as_echo_n "(cached) " >&6 9470else 9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9472/* end confdefs.h. */ 9473int i; 9474_ACEOF 9475if ac_fn_c_try_compile "$LINENO"; then : 9476 xorg_cv_cc_flag_unknown_warning_option=yes 9477else 9478 xorg_cv_cc_flag_unknown_warning_option=no 9479fi 9480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9481fi 9482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9483$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9485 CFLAGS="$xorg_testset_save_CFLAGS" 9486fi 9487 9488if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9491 fi 9492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9494$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9495if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9496 $as_echo_n "(cached) " >&6 9497else 9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499/* end confdefs.h. */ 9500int i; 9501_ACEOF 9502if ac_fn_c_try_compile "$LINENO"; then : 9503 xorg_cv_cc_flag_unused_command_line_argument=yes 9504else 9505 xorg_cv_cc_flag_unused_command_line_argument=no 9506fi 9507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9508fi 9509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9510$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9512 CFLAGS="$xorg_testset_save_CFLAGS" 9513fi 9514 9515found="no" 9516 9517 if test $found = "no" ; then 9518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9520 fi 9521 9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9524 fi 9525 9526 CFLAGS="$CFLAGS -Wmissing-braces" 9527 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9529$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9530 cacheid=xorg_cv_cc_flag__Wmissing_braces 9531 if eval \${$cacheid+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535/* end confdefs.h. */ 9536int i; 9537int 9538main () 9539{ 9540 9541 ; 9542 return 0; 9543} 9544_ACEOF 9545if ac_fn_c_try_link "$LINENO"; then : 9546 eval $cacheid=yes 9547else 9548 eval $cacheid=no 9549fi 9550rm -f core conftest.err conftest.$ac_objext \ 9551 conftest$ac_exeext conftest.$ac_ext 9552fi 9553 9554 9555 CFLAGS="$xorg_testset_save_CFLAGS" 9556 9557 eval supported=\$$cacheid 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9559$as_echo "$supported" >&6; } 9560 if test "$supported" = "yes" ; then 9561 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9562 found="yes" 9563 fi 9564 fi 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580xorg_testset_save_CFLAGS="$CFLAGS" 9581 9582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9585$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9586if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9587 $as_echo_n "(cached) " >&6 9588else 9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590/* end confdefs.h. */ 9591int i; 9592_ACEOF 9593if ac_fn_c_try_compile "$LINENO"; then : 9594 xorg_cv_cc_flag_unknown_warning_option=yes 9595else 9596 xorg_cv_cc_flag_unknown_warning_option=no 9597fi 9598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9599fi 9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9601$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9603 CFLAGS="$xorg_testset_save_CFLAGS" 9604fi 9605 9606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9609 fi 9610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9612$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9613if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9617/* end confdefs.h. */ 9618int i; 9619_ACEOF 9620if ac_fn_c_try_compile "$LINENO"; then : 9621 xorg_cv_cc_flag_unused_command_line_argument=yes 9622else 9623 xorg_cv_cc_flag_unused_command_line_argument=no 9624fi 9625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9626fi 9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9628$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9630 CFLAGS="$xorg_testset_save_CFLAGS" 9631fi 9632 9633found="no" 9634 9635 if test $found = "no" ; then 9636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9638 fi 9639 9640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9642 fi 9643 9644 CFLAGS="$CFLAGS -Wsequence-point" 9645 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9647$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9648 cacheid=xorg_cv_cc_flag__Wsequence_point 9649 if eval \${$cacheid+:} false; then : 9650 $as_echo_n "(cached) " >&6 9651else 9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9653/* end confdefs.h. */ 9654int i; 9655int 9656main () 9657{ 9658 9659 ; 9660 return 0; 9661} 9662_ACEOF 9663if ac_fn_c_try_link "$LINENO"; then : 9664 eval $cacheid=yes 9665else 9666 eval $cacheid=no 9667fi 9668rm -f core conftest.err conftest.$ac_objext \ 9669 conftest$ac_exeext conftest.$ac_ext 9670fi 9671 9672 9673 CFLAGS="$xorg_testset_save_CFLAGS" 9674 9675 eval supported=\$$cacheid 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9677$as_echo "$supported" >&6; } 9678 if test "$supported" = "yes" ; then 9679 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9680 found="yes" 9681 fi 9682 fi 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698xorg_testset_save_CFLAGS="$CFLAGS" 9699 9700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9703$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9704if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9705 $as_echo_n "(cached) " >&6 9706else 9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708/* end confdefs.h. */ 9709int i; 9710_ACEOF 9711if ac_fn_c_try_compile "$LINENO"; then : 9712 xorg_cv_cc_flag_unknown_warning_option=yes 9713else 9714 xorg_cv_cc_flag_unknown_warning_option=no 9715fi 9716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9717fi 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9719$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9721 CFLAGS="$xorg_testset_save_CFLAGS" 9722fi 9723 9724if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9727 fi 9728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9730$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9731if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9732 $as_echo_n "(cached) " >&6 9733else 9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9735/* end confdefs.h. */ 9736int i; 9737_ACEOF 9738if ac_fn_c_try_compile "$LINENO"; then : 9739 xorg_cv_cc_flag_unused_command_line_argument=yes 9740else 9741 xorg_cv_cc_flag_unused_command_line_argument=no 9742fi 9743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9744fi 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9746$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9748 CFLAGS="$xorg_testset_save_CFLAGS" 9749fi 9750 9751found="no" 9752 9753 if test $found = "no" ; then 9754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9756 fi 9757 9758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9760 fi 9761 9762 CFLAGS="$CFLAGS -Wreturn-type" 9763 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9765$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9766 cacheid=xorg_cv_cc_flag__Wreturn_type 9767 if eval \${$cacheid+:} false; then : 9768 $as_echo_n "(cached) " >&6 9769else 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9771/* end confdefs.h. */ 9772int i; 9773int 9774main () 9775{ 9776 9777 ; 9778 return 0; 9779} 9780_ACEOF 9781if ac_fn_c_try_link "$LINENO"; then : 9782 eval $cacheid=yes 9783else 9784 eval $cacheid=no 9785fi 9786rm -f core conftest.err conftest.$ac_objext \ 9787 conftest$ac_exeext conftest.$ac_ext 9788fi 9789 9790 9791 CFLAGS="$xorg_testset_save_CFLAGS" 9792 9793 eval supported=\$$cacheid 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9795$as_echo "$supported" >&6; } 9796 if test "$supported" = "yes" ; then 9797 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9798 found="yes" 9799 fi 9800 fi 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816xorg_testset_save_CFLAGS="$CFLAGS" 9817 9818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9821$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9822if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9823 $as_echo_n "(cached) " >&6 9824else 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827int i; 9828_ACEOF 9829if ac_fn_c_try_compile "$LINENO"; then : 9830 xorg_cv_cc_flag_unknown_warning_option=yes 9831else 9832 xorg_cv_cc_flag_unknown_warning_option=no 9833fi 9834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9835fi 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9837$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840fi 9841 9842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 fi 9846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9848$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9849if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9850 $as_echo_n "(cached) " >&6 9851else 9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9853/* end confdefs.h. */ 9854int i; 9855_ACEOF 9856if ac_fn_c_try_compile "$LINENO"; then : 9857 xorg_cv_cc_flag_unused_command_line_argument=yes 9858else 9859 xorg_cv_cc_flag_unused_command_line_argument=no 9860fi 9861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9862fi 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9864$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9866 CFLAGS="$xorg_testset_save_CFLAGS" 9867fi 9868 9869found="no" 9870 9871 if test $found = "no" ; then 9872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9874 fi 9875 9876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9878 fi 9879 9880 CFLAGS="$CFLAGS -Wtrigraphs" 9881 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9883$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9884 cacheid=xorg_cv_cc_flag__Wtrigraphs 9885 if eval \${$cacheid+:} false; then : 9886 $as_echo_n "(cached) " >&6 9887else 9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9889/* end confdefs.h. */ 9890int i; 9891int 9892main () 9893{ 9894 9895 ; 9896 return 0; 9897} 9898_ACEOF 9899if ac_fn_c_try_link "$LINENO"; then : 9900 eval $cacheid=yes 9901else 9902 eval $cacheid=no 9903fi 9904rm -f core conftest.err conftest.$ac_objext \ 9905 conftest$ac_exeext conftest.$ac_ext 9906fi 9907 9908 9909 CFLAGS="$xorg_testset_save_CFLAGS" 9910 9911 eval supported=\$$cacheid 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9913$as_echo "$supported" >&6; } 9914 if test "$supported" = "yes" ; then 9915 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9916 found="yes" 9917 fi 9918 fi 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934xorg_testset_save_CFLAGS="$CFLAGS" 9935 9936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9939$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9940if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9941 $as_echo_n "(cached) " >&6 9942else 9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9944/* end confdefs.h. */ 9945int i; 9946_ACEOF 9947if ac_fn_c_try_compile "$LINENO"; then : 9948 xorg_cv_cc_flag_unknown_warning_option=yes 9949else 9950 xorg_cv_cc_flag_unknown_warning_option=no 9951fi 9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9953fi 9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9955$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9957 CFLAGS="$xorg_testset_save_CFLAGS" 9958fi 9959 9960if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9963 fi 9964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9966$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9967if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9968 $as_echo_n "(cached) " >&6 9969else 9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9971/* end confdefs.h. */ 9972int i; 9973_ACEOF 9974if ac_fn_c_try_compile "$LINENO"; then : 9975 xorg_cv_cc_flag_unused_command_line_argument=yes 9976else 9977 xorg_cv_cc_flag_unused_command_line_argument=no 9978fi 9979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9980fi 9981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9982$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9984 CFLAGS="$xorg_testset_save_CFLAGS" 9985fi 9986 9987found="no" 9988 9989 if test $found = "no" ; then 9990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9992 fi 9993 9994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9996 fi 9997 9998 CFLAGS="$CFLAGS -Warray-bounds" 9999 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10001$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 10002 cacheid=xorg_cv_cc_flag__Warray_bounds 10003 if eval \${$cacheid+:} false; then : 10004 $as_echo_n "(cached) " >&6 10005else 10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10007/* end confdefs.h. */ 10008int i; 10009int 10010main () 10011{ 10012 10013 ; 10014 return 0; 10015} 10016_ACEOF 10017if ac_fn_c_try_link "$LINENO"; then : 10018 eval $cacheid=yes 10019else 10020 eval $cacheid=no 10021fi 10022rm -f core conftest.err conftest.$ac_objext \ 10023 conftest$ac_exeext conftest.$ac_ext 10024fi 10025 10026 10027 CFLAGS="$xorg_testset_save_CFLAGS" 10028 10029 eval supported=\$$cacheid 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10031$as_echo "$supported" >&6; } 10032 if test "$supported" = "yes" ; then 10033 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10034 found="yes" 10035 fi 10036 fi 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052xorg_testset_save_CFLAGS="$CFLAGS" 10053 10054if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10057$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10058if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064_ACEOF 10065if ac_fn_c_try_compile "$LINENO"; then : 10066 xorg_cv_cc_flag_unknown_warning_option=yes 10067else 10068 xorg_cv_cc_flag_unknown_warning_option=no 10069fi 10070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10073$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10075 CFLAGS="$xorg_testset_save_CFLAGS" 10076fi 10077 10078if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10084$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10085if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10086 $as_echo_n "(cached) " >&6 10087else 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int i; 10091_ACEOF 10092if ac_fn_c_try_compile "$LINENO"; then : 10093 xorg_cv_cc_flag_unused_command_line_argument=yes 10094else 10095 xorg_cv_cc_flag_unused_command_line_argument=no 10096fi 10097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10098fi 10099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10100$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10102 CFLAGS="$xorg_testset_save_CFLAGS" 10103fi 10104 10105found="no" 10106 10107 if test $found = "no" ; then 10108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10110 fi 10111 10112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10114 fi 10115 10116 CFLAGS="$CFLAGS -Wwrite-strings" 10117 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10119$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 10120 cacheid=xorg_cv_cc_flag__Wwrite_strings 10121 if eval \${$cacheid+:} false; then : 10122 $as_echo_n "(cached) " >&6 10123else 10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10125/* end confdefs.h. */ 10126int i; 10127int 10128main () 10129{ 10130 10131 ; 10132 return 0; 10133} 10134_ACEOF 10135if ac_fn_c_try_link "$LINENO"; then : 10136 eval $cacheid=yes 10137else 10138 eval $cacheid=no 10139fi 10140rm -f core conftest.err conftest.$ac_objext \ 10141 conftest$ac_exeext conftest.$ac_ext 10142fi 10143 10144 10145 CFLAGS="$xorg_testset_save_CFLAGS" 10146 10147 eval supported=\$$cacheid 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10149$as_echo "$supported" >&6; } 10150 if test "$supported" = "yes" ; then 10151 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10152 found="yes" 10153 fi 10154 fi 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170xorg_testset_save_CFLAGS="$CFLAGS" 10171 10172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10175$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10176if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180/* end confdefs.h. */ 10181int i; 10182_ACEOF 10183if ac_fn_c_try_compile "$LINENO"; then : 10184 xorg_cv_cc_flag_unknown_warning_option=yes 10185else 10186 xorg_cv_cc_flag_unknown_warning_option=no 10187fi 10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10189fi 10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10191$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10193 CFLAGS="$xorg_testset_save_CFLAGS" 10194fi 10195 10196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10199 fi 10200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10202$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10203if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10204 $as_echo_n "(cached) " >&6 10205else 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208int i; 10209_ACEOF 10210if ac_fn_c_try_compile "$LINENO"; then : 10211 xorg_cv_cc_flag_unused_command_line_argument=yes 10212else 10213 xorg_cv_cc_flag_unused_command_line_argument=no 10214fi 10215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10216fi 10217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10218$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10220 CFLAGS="$xorg_testset_save_CFLAGS" 10221fi 10222 10223found="no" 10224 10225 if test $found = "no" ; then 10226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10228 fi 10229 10230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 fi 10233 10234 CFLAGS="$CFLAGS -Waddress" 10235 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10237$as_echo_n "checking if $CC supports -Waddress... " >&6; } 10238 cacheid=xorg_cv_cc_flag__Waddress 10239 if eval \${$cacheid+:} false; then : 10240 $as_echo_n "(cached) " >&6 10241else 10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10243/* end confdefs.h. */ 10244int i; 10245int 10246main () 10247{ 10248 10249 ; 10250 return 0; 10251} 10252_ACEOF 10253if ac_fn_c_try_link "$LINENO"; then : 10254 eval $cacheid=yes 10255else 10256 eval $cacheid=no 10257fi 10258rm -f core conftest.err conftest.$ac_objext \ 10259 conftest$ac_exeext conftest.$ac_ext 10260fi 10261 10262 10263 CFLAGS="$xorg_testset_save_CFLAGS" 10264 10265 eval supported=\$$cacheid 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10267$as_echo "$supported" >&6; } 10268 if test "$supported" = "yes" ; then 10269 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10270 found="yes" 10271 fi 10272 fi 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288xorg_testset_save_CFLAGS="$CFLAGS" 10289 10290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10298/* end confdefs.h. */ 10299int i; 10300_ACEOF 10301if ac_fn_c_try_compile "$LINENO"; then : 10302 xorg_cv_cc_flag_unknown_warning_option=yes 10303else 10304 xorg_cv_cc_flag_unknown_warning_option=no 10305fi 10306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10307fi 10308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10311 CFLAGS="$xorg_testset_save_CFLAGS" 10312fi 10313 10314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10317 fi 10318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10322 $as_echo_n "(cached) " >&6 10323else 10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10325/* end confdefs.h. */ 10326int i; 10327_ACEOF 10328if ac_fn_c_try_compile "$LINENO"; then : 10329 xorg_cv_cc_flag_unused_command_line_argument=yes 10330else 10331 xorg_cv_cc_flag_unused_command_line_argument=no 10332fi 10333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10334fi 10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10338 CFLAGS="$xorg_testset_save_CFLAGS" 10339fi 10340 10341found="no" 10342 10343 if test $found = "no" ; then 10344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10346 fi 10347 10348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10350 fi 10351 10352 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10353 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10355$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10356 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10357 if eval \${$cacheid+:} false; then : 10358 $as_echo_n "(cached) " >&6 10359else 10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10361/* end confdefs.h. */ 10362int i; 10363int 10364main () 10365{ 10366 10367 ; 10368 return 0; 10369} 10370_ACEOF 10371if ac_fn_c_try_link "$LINENO"; then : 10372 eval $cacheid=yes 10373else 10374 eval $cacheid=no 10375fi 10376rm -f core conftest.err conftest.$ac_objext \ 10377 conftest$ac_exeext conftest.$ac_ext 10378fi 10379 10380 10381 CFLAGS="$xorg_testset_save_CFLAGS" 10382 10383 eval supported=\$$cacheid 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10385$as_echo "$supported" >&6; } 10386 if test "$supported" = "yes" ; then 10387 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10388 found="yes" 10389 fi 10390 fi 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406xorg_testset_save_CFLAGS="$CFLAGS" 10407 10408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10411$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10412if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10413 $as_echo_n "(cached) " >&6 10414else 10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417int i; 10418_ACEOF 10419if ac_fn_c_try_compile "$LINENO"; then : 10420 xorg_cv_cc_flag_unknown_warning_option=yes 10421else 10422 xorg_cv_cc_flag_unknown_warning_option=no 10423fi 10424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10425fi 10426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10427$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10429 CFLAGS="$xorg_testset_save_CFLAGS" 10430fi 10431 10432if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10435 fi 10436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10438$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10439if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10440 $as_echo_n "(cached) " >&6 10441else 10442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10443/* end confdefs.h. */ 10444int i; 10445_ACEOF 10446if ac_fn_c_try_compile "$LINENO"; then : 10447 xorg_cv_cc_flag_unused_command_line_argument=yes 10448else 10449 xorg_cv_cc_flag_unused_command_line_argument=no 10450fi 10451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10452fi 10453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10454$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10456 CFLAGS="$xorg_testset_save_CFLAGS" 10457fi 10458 10459found="no" 10460 10461 if test $found = "no" ; then 10462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10464 fi 10465 10466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10468 fi 10469 10470 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10471 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10473$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10474 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10475 if eval \${$cacheid+:} false; then : 10476 $as_echo_n "(cached) " >&6 10477else 10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10479/* end confdefs.h. */ 10480int i; 10481int 10482main () 10483{ 10484 10485 ; 10486 return 0; 10487} 10488_ACEOF 10489if ac_fn_c_try_link "$LINENO"; then : 10490 eval $cacheid=yes 10491else 10492 eval $cacheid=no 10493fi 10494rm -f core conftest.err conftest.$ac_objext \ 10495 conftest$ac_exeext conftest.$ac_ext 10496fi 10497 10498 10499 CFLAGS="$xorg_testset_save_CFLAGS" 10500 10501 eval supported=\$$cacheid 10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10503$as_echo "$supported" >&6; } 10504 if test "$supported" = "yes" ; then 10505 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10506 found="yes" 10507 fi 10508 fi 10509 10510 10511fi 10512 10513 10514 10515 10516 10517 10518 10519 CWARNFLAGS="$BASE_CFLAGS" 10520 if test "x$GCC" = xyes ; then 10521 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10522 fi 10523 10524 10525 10526 10527 10528 10529 10530 10531# Check whether --enable-strict-compilation was given. 10532if test "${enable_strict_compilation+set}" = set; then : 10533 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10534else 10535 STRICT_COMPILE=no 10536fi 10537 10538 10539 10540 10541 10542 10543STRICT_CFLAGS="" 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557xorg_testset_save_CFLAGS="$CFLAGS" 10558 10559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565else 10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567/* end confdefs.h. */ 10568int i; 10569_ACEOF 10570if ac_fn_c_try_compile "$LINENO"; then : 10571 xorg_cv_cc_flag_unknown_warning_option=yes 10572else 10573 xorg_cv_cc_flag_unknown_warning_option=no 10574fi 10575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10576fi 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581fi 10582 10583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10586 fi 10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10594/* end confdefs.h. */ 10595int i; 10596_ACEOF 10597if ac_fn_c_try_compile "$LINENO"; then : 10598 xorg_cv_cc_flag_unused_command_line_argument=yes 10599else 10600 xorg_cv_cc_flag_unused_command_line_argument=no 10601fi 10602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10603fi 10604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10607 CFLAGS="$xorg_testset_save_CFLAGS" 10608fi 10609 10610found="no" 10611 10612 if test $found = "no" ; then 10613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10615 fi 10616 10617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10619 fi 10620 10621 CFLAGS="$CFLAGS -pedantic" 10622 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10624$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10625 cacheid=xorg_cv_cc_flag__pedantic 10626 if eval \${$cacheid+:} false; then : 10627 $as_echo_n "(cached) " >&6 10628else 10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10630/* end confdefs.h. */ 10631int i; 10632int 10633main () 10634{ 10635 10636 ; 10637 return 0; 10638} 10639_ACEOF 10640if ac_fn_c_try_link "$LINENO"; then : 10641 eval $cacheid=yes 10642else 10643 eval $cacheid=no 10644fi 10645rm -f core conftest.err conftest.$ac_objext \ 10646 conftest$ac_exeext conftest.$ac_ext 10647fi 10648 10649 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651 10652 eval supported=\$$cacheid 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10654$as_echo "$supported" >&6; } 10655 if test "$supported" = "yes" ; then 10656 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10657 found="yes" 10658 fi 10659 fi 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675xorg_testset_save_CFLAGS="$CFLAGS" 10676 10677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10682 $as_echo_n "(cached) " >&6 10683else 10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10685/* end confdefs.h. */ 10686int i; 10687_ACEOF 10688if ac_fn_c_try_compile "$LINENO"; then : 10689 xorg_cv_cc_flag_unknown_warning_option=yes 10690else 10691 xorg_cv_cc_flag_unknown_warning_option=no 10692fi 10693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10694fi 10695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10698 CFLAGS="$xorg_testset_save_CFLAGS" 10699fi 10700 10701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10704 fi 10705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710else 10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10712/* end confdefs.h. */ 10713int i; 10714_ACEOF 10715if ac_fn_c_try_compile "$LINENO"; then : 10716 xorg_cv_cc_flag_unused_command_line_argument=yes 10717else 10718 xorg_cv_cc_flag_unused_command_line_argument=no 10719fi 10720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10721fi 10722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10725 CFLAGS="$xorg_testset_save_CFLAGS" 10726fi 10727 10728found="no" 10729 10730 if test $found = "no" ; then 10731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10733 fi 10734 10735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10737 fi 10738 10739 CFLAGS="$CFLAGS -Werror" 10740 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10742$as_echo_n "checking if $CC supports -Werror... " >&6; } 10743 cacheid=xorg_cv_cc_flag__Werror 10744 if eval \${$cacheid+:} false; then : 10745 $as_echo_n "(cached) " >&6 10746else 10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10748/* end confdefs.h. */ 10749int i; 10750int 10751main () 10752{ 10753 10754 ; 10755 return 0; 10756} 10757_ACEOF 10758if ac_fn_c_try_link "$LINENO"; then : 10759 eval $cacheid=yes 10760else 10761 eval $cacheid=no 10762fi 10763rm -f core conftest.err conftest.$ac_objext \ 10764 conftest$ac_exeext conftest.$ac_ext 10765fi 10766 10767 10768 CFLAGS="$xorg_testset_save_CFLAGS" 10769 10770 eval supported=\$$cacheid 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10772$as_echo "$supported" >&6; } 10773 if test "$supported" = "yes" ; then 10774 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10775 found="yes" 10776 fi 10777 fi 10778 10779 if test $found = "no" ; then 10780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10782 fi 10783 10784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10786 fi 10787 10788 CFLAGS="$CFLAGS -errwarn" 10789 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10791$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10792 cacheid=xorg_cv_cc_flag__errwarn 10793 if eval \${$cacheid+:} false; then : 10794 $as_echo_n "(cached) " >&6 10795else 10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10797/* end confdefs.h. */ 10798int i; 10799int 10800main () 10801{ 10802 10803 ; 10804 return 0; 10805} 10806_ACEOF 10807if ac_fn_c_try_link "$LINENO"; then : 10808 eval $cacheid=yes 10809else 10810 eval $cacheid=no 10811fi 10812rm -f core conftest.err conftest.$ac_objext \ 10813 conftest$ac_exeext conftest.$ac_ext 10814fi 10815 10816 10817 CFLAGS="$xorg_testset_save_CFLAGS" 10818 10819 eval supported=\$$cacheid 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10821$as_echo "$supported" >&6; } 10822 if test "$supported" = "yes" ; then 10823 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10824 found="yes" 10825 fi 10826 fi 10827 10828 10829 10830# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10831# activate it with -Werror, so we add it here explicitly. 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845xorg_testset_save_CFLAGS="$CFLAGS" 10846 10847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10852 $as_echo_n "(cached) " >&6 10853else 10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10855/* end confdefs.h. */ 10856int i; 10857_ACEOF 10858if ac_fn_c_try_compile "$LINENO"; then : 10859 xorg_cv_cc_flag_unknown_warning_option=yes 10860else 10861 xorg_cv_cc_flag_unknown_warning_option=no 10862fi 10863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10864fi 10865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10868 CFLAGS="$xorg_testset_save_CFLAGS" 10869fi 10870 10871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10874 fi 10875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10879 $as_echo_n "(cached) " >&6 10880else 10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10882/* end confdefs.h. */ 10883int i; 10884_ACEOF 10885if ac_fn_c_try_compile "$LINENO"; then : 10886 xorg_cv_cc_flag_unused_command_line_argument=yes 10887else 10888 xorg_cv_cc_flag_unused_command_line_argument=no 10889fi 10890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10891fi 10892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10895 CFLAGS="$xorg_testset_save_CFLAGS" 10896fi 10897 10898found="no" 10899 10900 if test $found = "no" ; then 10901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10903 fi 10904 10905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10907 fi 10908 10909 CFLAGS="$CFLAGS -Werror=attributes" 10910 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10912$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10913 cacheid=xorg_cv_cc_flag__Werror_attributes 10914 if eval \${$cacheid+:} false; then : 10915 $as_echo_n "(cached) " >&6 10916else 10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918/* end confdefs.h. */ 10919int i; 10920int 10921main () 10922{ 10923 10924 ; 10925 return 0; 10926} 10927_ACEOF 10928if ac_fn_c_try_link "$LINENO"; then : 10929 eval $cacheid=yes 10930else 10931 eval $cacheid=no 10932fi 10933rm -f core conftest.err conftest.$ac_objext \ 10934 conftest$ac_exeext conftest.$ac_ext 10935fi 10936 10937 10938 CFLAGS="$xorg_testset_save_CFLAGS" 10939 10940 eval supported=\$$cacheid 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10942$as_echo "$supported" >&6; } 10943 if test "$supported" = "yes" ; then 10944 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10945 found="yes" 10946 fi 10947 fi 10948 10949 10950 10951if test "x$STRICT_COMPILE" = "xyes"; then 10952 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10953 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10954fi 10955 10956 10957 10958 10959 10960 10961cat >>confdefs.h <<_ACEOF 10962#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10963_ACEOF 10964 10965 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10966 if test "x$PVM" = "x"; then 10967 PVM="0" 10968 fi 10969 10970cat >>confdefs.h <<_ACEOF 10971#define PACKAGE_VERSION_MINOR $PVM 10972_ACEOF 10973 10974 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10975 if test "x$PVP" = "x"; then 10976 PVP="0" 10977 fi 10978 10979cat >>confdefs.h <<_ACEOF 10980#define PACKAGE_VERSION_PATCHLEVEL $PVP 10981_ACEOF 10982 10983 10984 10985CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10986mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10987|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10988echo 'git directory not found: installing possibly empty changelog.' >&2)" 10989 10990 10991 10992 10993macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10994INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10995mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10996|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10997echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10998 10999 11000 11001 11002 11003 11004if test x$APP_MAN_SUFFIX = x ; then 11005 APP_MAN_SUFFIX=1 11006fi 11007if test x$APP_MAN_DIR = x ; then 11008 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11009fi 11010 11011if test x$LIB_MAN_SUFFIX = x ; then 11012 LIB_MAN_SUFFIX=3 11013fi 11014if test x$LIB_MAN_DIR = x ; then 11015 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11016fi 11017 11018if test x$FILE_MAN_SUFFIX = x ; then 11019 case $host_os in 11020 solaris*) FILE_MAN_SUFFIX=4 ;; 11021 *) FILE_MAN_SUFFIX=5 ;; 11022 esac 11023fi 11024if test x$FILE_MAN_DIR = x ; then 11025 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11026fi 11027 11028if test x$MISC_MAN_SUFFIX = x ; then 11029 case $host_os in 11030 solaris*) MISC_MAN_SUFFIX=5 ;; 11031 *) MISC_MAN_SUFFIX=7 ;; 11032 esac 11033fi 11034if test x$MISC_MAN_DIR = x ; then 11035 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11036fi 11037 11038if test x$DRIVER_MAN_SUFFIX = x ; then 11039 case $host_os in 11040 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11041 *) DRIVER_MAN_SUFFIX=4 ;; 11042 esac 11043fi 11044if test x$DRIVER_MAN_DIR = x ; then 11045 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11046fi 11047 11048if test x$ADMIN_MAN_SUFFIX = x ; then 11049 case $host_os in 11050 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11051 *) ADMIN_MAN_SUFFIX=8 ;; 11052 esac 11053fi 11054if test x$ADMIN_MAN_DIR = x ; then 11055 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11056fi 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072XORG_MAN_PAGE="X Version 11" 11073 11074MAN_SUBSTS="\ 11075 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11076 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11077 -e 's|__xservername__|Xorg|g' \ 11078 -e 's|__xconfigfile__|xorg.conf|g' \ 11079 -e 's|__projectroot__|\$(prefix)|g' \ 11080 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11081 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11082 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11083 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11084 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11085 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11086 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11087 11088 11089 11090# Check whether --enable-silent-rules was given. 11091if test "${enable_silent_rules+set}" = set; then : 11092 enableval=$enable_silent_rules; 11093fi 11094 11095case $enable_silent_rules in # ((( 11096 yes) AM_DEFAULT_VERBOSITY=0;; 11097 no) AM_DEFAULT_VERBOSITY=1;; 11098 *) AM_DEFAULT_VERBOSITY=0;; 11099esac 11100am_make=${MAKE-make} 11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11102$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11103if ${am_cv_make_support_nested_variables+:} false; then : 11104 $as_echo_n "(cached) " >&6 11105else 11106 if $as_echo 'TRUE=$(BAR$(V)) 11107BAR0=false 11108BAR1=true 11109V=1 11110am__doit: 11111 @$(TRUE) 11112.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11113 am_cv_make_support_nested_variables=yes 11114else 11115 am_cv_make_support_nested_variables=no 11116fi 11117fi 11118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11119$as_echo "$am_cv_make_support_nested_variables" >&6; } 11120if test $am_cv_make_support_nested_variables = yes; then 11121 AM_V='$(V)' 11122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11123else 11124 AM_V=$AM_DEFAULT_VERBOSITY 11125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11126fi 11127AM_BACKSLASH='\' 11128 11129 11130 11131# Initialize libtool 11132# Check whether --enable-static was given. 11133if test "${enable_static+set}" = set; then : 11134 enableval=$enable_static; p=${PACKAGE-default} 11135 case $enableval in 11136 yes) enable_static=yes ;; 11137 no) enable_static=no ;; 11138 *) 11139 enable_static=no 11140 # Look at the argument we got. We use all the common list separators. 11141 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11142 for pkg in $enableval; do 11143 IFS=$lt_save_ifs 11144 if test "X$pkg" = "X$p"; then 11145 enable_static=yes 11146 fi 11147 done 11148 IFS=$lt_save_ifs 11149 ;; 11150 esac 11151else 11152 enable_static=no 11153fi 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163case `pwd` in 11164 *\ * | *\ *) 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11166$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11167esac 11168 11169 11170 11171macro_version='2.4.6' 11172macro_revision='2.4.6' 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186ltmain=$ac_aux_dir/ltmain.sh 11187 11188# Backslashify metacharacters that are still active within 11189# double-quoted strings. 11190sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11191 11192# Same as above, but do not quote variable references. 11193double_quote_subst='s/\(["`\\]\)/\\\1/g' 11194 11195# Sed substitution to delay expansion of an escaped shell variable in a 11196# double_quote_subst'ed string. 11197delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11198 11199# Sed substitution to delay expansion of an escaped single quote. 11200delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11201 11202# Sed substitution to avoid accidental globbing in evaled expressions 11203no_glob_subst='s/\*/\\\*/g' 11204 11205ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11206ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11207ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11208 11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11210$as_echo_n "checking how to print strings... " >&6; } 11211# Test print first, because it will be a builtin if present. 11212if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11213 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11214 ECHO='print -r --' 11215elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11216 ECHO='printf %s\n' 11217else 11218 # Use this function as a fallback that always works. 11219 func_fallback_echo () 11220 { 11221 eval 'cat <<_LTECHO_EOF 11222$1 11223_LTECHO_EOF' 11224 } 11225 ECHO='func_fallback_echo' 11226fi 11227 11228# func_echo_all arg... 11229# Invoke $ECHO with all args, space-separated. 11230func_echo_all () 11231{ 11232 $ECHO "" 11233} 11234 11235case $ECHO in 11236 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11237$as_echo "printf" >&6; } ;; 11238 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11239$as_echo "print -r" >&6; } ;; 11240 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11241$as_echo "cat" >&6; } ;; 11242esac 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11258$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11259if ${ac_cv_path_SED+:} false; then : 11260 $as_echo_n "(cached) " >&6 11261else 11262 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11263 for ac_i in 1 2 3 4 5 6 7; do 11264 ac_script="$ac_script$as_nl$ac_script" 11265 done 11266 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11267 { ac_script=; unset ac_script;} 11268 if test -z "$SED"; then 11269 ac_path_SED_found=false 11270 # Loop through the user's path and test for each of PROGNAME-LIST 11271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11272for as_dir in $PATH 11273do 11274 IFS=$as_save_IFS 11275 test -z "$as_dir" && as_dir=. 11276 for ac_prog in sed gsed; do 11277 for ac_exec_ext in '' $ac_executable_extensions; do 11278 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11279 as_fn_executable_p "$ac_path_SED" || continue 11280# Check for GNU ac_path_SED and select it if it is found. 11281 # Check for GNU $ac_path_SED 11282case `"$ac_path_SED" --version 2>&1` in 11283*GNU*) 11284 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11285*) 11286 ac_count=0 11287 $as_echo_n 0123456789 >"conftest.in" 11288 while : 11289 do 11290 cat "conftest.in" "conftest.in" >"conftest.tmp" 11291 mv "conftest.tmp" "conftest.in" 11292 cp "conftest.in" "conftest.nl" 11293 $as_echo '' >> "conftest.nl" 11294 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11296 as_fn_arith $ac_count + 1 && ac_count=$as_val 11297 if test $ac_count -gt ${ac_path_SED_max-0}; then 11298 # Best one so far, save it but keep looking for a better one 11299 ac_cv_path_SED="$ac_path_SED" 11300 ac_path_SED_max=$ac_count 11301 fi 11302 # 10*(2^10) chars as input seems more than enough 11303 test $ac_count -gt 10 && break 11304 done 11305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11306esac 11307 11308 $ac_path_SED_found && break 3 11309 done 11310 done 11311 done 11312IFS=$as_save_IFS 11313 if test -z "$ac_cv_path_SED"; then 11314 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11315 fi 11316else 11317 ac_cv_path_SED=$SED 11318fi 11319 11320fi 11321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11322$as_echo "$ac_cv_path_SED" >&6; } 11323 SED="$ac_cv_path_SED" 11324 rm -f conftest.sed 11325 11326test -z "$SED" && SED=sed 11327Xsed="$SED -e 1s/^X//" 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11340$as_echo_n "checking for fgrep... " >&6; } 11341if ${ac_cv_path_FGREP+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343else 11344 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11345 then ac_cv_path_FGREP="$GREP -F" 11346 else 11347 if test -z "$FGREP"; then 11348 ac_path_FGREP_found=false 11349 # Loop through the user's path and test for each of PROGNAME-LIST 11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11351for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11352do 11353 IFS=$as_save_IFS 11354 test -z "$as_dir" && as_dir=. 11355 for ac_prog in fgrep; do 11356 for ac_exec_ext in '' $ac_executable_extensions; do 11357 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11358 as_fn_executable_p "$ac_path_FGREP" || continue 11359# Check for GNU ac_path_FGREP and select it if it is found. 11360 # Check for GNU $ac_path_FGREP 11361case `"$ac_path_FGREP" --version 2>&1` in 11362*GNU*) 11363 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11364*) 11365 ac_count=0 11366 $as_echo_n 0123456789 >"conftest.in" 11367 while : 11368 do 11369 cat "conftest.in" "conftest.in" >"conftest.tmp" 11370 mv "conftest.tmp" "conftest.in" 11371 cp "conftest.in" "conftest.nl" 11372 $as_echo 'FGREP' >> "conftest.nl" 11373 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11375 as_fn_arith $ac_count + 1 && ac_count=$as_val 11376 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11377 # Best one so far, save it but keep looking for a better one 11378 ac_cv_path_FGREP="$ac_path_FGREP" 11379 ac_path_FGREP_max=$ac_count 11380 fi 11381 # 10*(2^10) chars as input seems more than enough 11382 test $ac_count -gt 10 && break 11383 done 11384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11385esac 11386 11387 $ac_path_FGREP_found && break 3 11388 done 11389 done 11390 done 11391IFS=$as_save_IFS 11392 if test -z "$ac_cv_path_FGREP"; then 11393 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11394 fi 11395else 11396 ac_cv_path_FGREP=$FGREP 11397fi 11398 11399 fi 11400fi 11401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11402$as_echo "$ac_cv_path_FGREP" >&6; } 11403 FGREP="$ac_cv_path_FGREP" 11404 11405 11406test -z "$GREP" && GREP=grep 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426# Check whether --with-gnu-ld was given. 11427if test "${with_gnu_ld+set}" = set; then : 11428 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11429else 11430 with_gnu_ld=no 11431fi 11432 11433ac_prog=ld 11434if test yes = "$GCC"; then 11435 # Check if gcc -print-prog-name=ld gives a path. 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11437$as_echo_n "checking for ld used by $CC... " >&6; } 11438 case $host in 11439 *-*-mingw*) 11440 # gcc leaves a trailing carriage return, which upsets mingw 11441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11442 *) 11443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11444 esac 11445 case $ac_prog in 11446 # Accept absolute paths. 11447 [\\/]* | ?:[\\/]*) 11448 re_direlt='/[^/][^/]*/\.\./' 11449 # Canonicalize the pathname of ld 11450 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11451 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11452 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11453 done 11454 test -z "$LD" && LD=$ac_prog 11455 ;; 11456 "") 11457 # If it fails, then pretend we aren't using GCC. 11458 ac_prog=ld 11459 ;; 11460 *) 11461 # If it is relative, then search for the first ld in PATH. 11462 with_gnu_ld=unknown 11463 ;; 11464 esac 11465elif test yes = "$with_gnu_ld"; then 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11467$as_echo_n "checking for GNU ld... " >&6; } 11468else 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11470$as_echo_n "checking for non-GNU ld... " >&6; } 11471fi 11472if ${lt_cv_path_LD+:} false; then : 11473 $as_echo_n "(cached) " >&6 11474else 11475 if test -z "$LD"; then 11476 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11477 for ac_dir in $PATH; do 11478 IFS=$lt_save_ifs 11479 test -z "$ac_dir" && ac_dir=. 11480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11481 lt_cv_path_LD=$ac_dir/$ac_prog 11482 # Check to see if the program is GNU ld. I'd rather use --version, 11483 # but apparently some variants of GNU ld only accept -v. 11484 # Break only if it was the GNU/non-GNU ld that we prefer. 11485 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11486 *GNU* | *'with BFD'*) 11487 test no != "$with_gnu_ld" && break 11488 ;; 11489 *) 11490 test yes != "$with_gnu_ld" && break 11491 ;; 11492 esac 11493 fi 11494 done 11495 IFS=$lt_save_ifs 11496else 11497 lt_cv_path_LD=$LD # Let the user override the test with a path. 11498fi 11499fi 11500 11501LD=$lt_cv_path_LD 11502if test -n "$LD"; then 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11504$as_echo "$LD" >&6; } 11505else 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11507$as_echo "no" >&6; } 11508fi 11509test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11511$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11512if ${lt_cv_prog_gnu_ld+:} false; then : 11513 $as_echo_n "(cached) " >&6 11514else 11515 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11516case `$LD -v 2>&1 </dev/null` in 11517*GNU* | *'with BFD'*) 11518 lt_cv_prog_gnu_ld=yes 11519 ;; 11520*) 11521 lt_cv_prog_gnu_ld=no 11522 ;; 11523esac 11524fi 11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11526$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11527with_gnu_ld=$lt_cv_prog_gnu_ld 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11538$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11539if ${lt_cv_path_NM+:} false; then : 11540 $as_echo_n "(cached) " >&6 11541else 11542 if test -n "$NM"; then 11543 # Let the user override the test. 11544 lt_cv_path_NM=$NM 11545else 11546 lt_nm_to_check=${ac_tool_prefix}nm 11547 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11548 lt_nm_to_check="$lt_nm_to_check nm" 11549 fi 11550 for lt_tmp_nm in $lt_nm_to_check; do 11551 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11552 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11553 IFS=$lt_save_ifs 11554 test -z "$ac_dir" && ac_dir=. 11555 tmp_nm=$ac_dir/$lt_tmp_nm 11556 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11557 # Check to see if the nm accepts a BSD-compat flag. 11558 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11559 # nm: unknown option "B" ignored 11560 # Tru64's nm complains that /dev/null is an invalid object file 11561 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11562 case $build_os in 11563 mingw*) lt_bad_file=conftest.nm/nofile ;; 11564 *) lt_bad_file=/dev/null ;; 11565 esac 11566 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11567 *$lt_bad_file* | *'Invalid file or object type'*) 11568 lt_cv_path_NM="$tmp_nm -B" 11569 break 2 11570 ;; 11571 *) 11572 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11573 */dev/null*) 11574 lt_cv_path_NM="$tmp_nm -p" 11575 break 2 11576 ;; 11577 *) 11578 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11579 continue # so that we can try to find one that supports BSD flags 11580 ;; 11581 esac 11582 ;; 11583 esac 11584 fi 11585 done 11586 IFS=$lt_save_ifs 11587 done 11588 : ${lt_cv_path_NM=no} 11589fi 11590fi 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11592$as_echo "$lt_cv_path_NM" >&6; } 11593if test no != "$lt_cv_path_NM"; then 11594 NM=$lt_cv_path_NM 11595else 11596 # Didn't find any BSD compatible name lister, look for dumpbin. 11597 if test -n "$DUMPBIN"; then : 11598 # Let the user override the test. 11599 else 11600 if test -n "$ac_tool_prefix"; then 11601 for ac_prog in dumpbin "link -dump" 11602 do 11603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11604set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11606$as_echo_n "checking for $ac_word... " >&6; } 11607if ${ac_cv_prog_DUMPBIN+:} false; then : 11608 $as_echo_n "(cached) " >&6 11609else 11610 if test -n "$DUMPBIN"; then 11611 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11612else 11613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11614for as_dir in $PATH 11615do 11616 IFS=$as_save_IFS 11617 test -z "$as_dir" && as_dir=. 11618 for ac_exec_ext in '' $ac_executable_extensions; do 11619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11620 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11622 break 2 11623 fi 11624done 11625 done 11626IFS=$as_save_IFS 11627 11628fi 11629fi 11630DUMPBIN=$ac_cv_prog_DUMPBIN 11631if test -n "$DUMPBIN"; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11633$as_echo "$DUMPBIN" >&6; } 11634else 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11636$as_echo "no" >&6; } 11637fi 11638 11639 11640 test -n "$DUMPBIN" && break 11641 done 11642fi 11643if test -z "$DUMPBIN"; then 11644 ac_ct_DUMPBIN=$DUMPBIN 11645 for ac_prog in dumpbin "link -dump" 11646do 11647 # Extract the first word of "$ac_prog", so it can be a program name with args. 11648set dummy $ac_prog; ac_word=$2 11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11650$as_echo_n "checking for $ac_word... " >&6; } 11651if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11652 $as_echo_n "(cached) " >&6 11653else 11654 if test -n "$ac_ct_DUMPBIN"; then 11655 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11656else 11657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11658for as_dir in $PATH 11659do 11660 IFS=$as_save_IFS 11661 test -z "$as_dir" && as_dir=. 11662 for ac_exec_ext in '' $ac_executable_extensions; do 11663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11664 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11666 break 2 11667 fi 11668done 11669 done 11670IFS=$as_save_IFS 11671 11672fi 11673fi 11674ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11675if test -n "$ac_ct_DUMPBIN"; then 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11677$as_echo "$ac_ct_DUMPBIN" >&6; } 11678else 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11680$as_echo "no" >&6; } 11681fi 11682 11683 11684 test -n "$ac_ct_DUMPBIN" && break 11685done 11686 11687 if test "x$ac_ct_DUMPBIN" = x; then 11688 DUMPBIN=":" 11689 else 11690 case $cross_compiling:$ac_tool_warned in 11691yes:) 11692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11694ac_tool_warned=yes ;; 11695esac 11696 DUMPBIN=$ac_ct_DUMPBIN 11697 fi 11698fi 11699 11700 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11701 *COFF*) 11702 DUMPBIN="$DUMPBIN -symbols -headers" 11703 ;; 11704 *) 11705 DUMPBIN=: 11706 ;; 11707 esac 11708 fi 11709 11710 if test : != "$DUMPBIN"; then 11711 NM=$DUMPBIN 11712 fi 11713fi 11714test -z "$NM" && NM=nm 11715 11716 11717 11718 11719 11720 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11722$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11723if ${lt_cv_nm_interface+:} false; then : 11724 $as_echo_n "(cached) " >&6 11725else 11726 lt_cv_nm_interface="BSD nm" 11727 echo "int some_variable = 0;" > conftest.$ac_ext 11728 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11729 (eval "$ac_compile" 2>conftest.err) 11730 cat conftest.err >&5 11731 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11733 cat conftest.err >&5 11734 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11735 cat conftest.out >&5 11736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11737 lt_cv_nm_interface="MS dumpbin" 11738 fi 11739 rm -f conftest* 11740fi 11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11742$as_echo "$lt_cv_nm_interface" >&6; } 11743 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11745$as_echo_n "checking whether ln -s works... " >&6; } 11746LN_S=$as_ln_s 11747if test "$LN_S" = "ln -s"; then 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11749$as_echo "yes" >&6; } 11750else 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11752$as_echo "no, using $LN_S" >&6; } 11753fi 11754 11755# find the maximum length of command line arguments 11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11757$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11758if ${lt_cv_sys_max_cmd_len+:} false; then : 11759 $as_echo_n "(cached) " >&6 11760else 11761 i=0 11762 teststring=ABCD 11763 11764 case $build_os in 11765 msdosdjgpp*) 11766 # On DJGPP, this test can blow up pretty badly due to problems in libc 11767 # (any single argument exceeding 2000 bytes causes a buffer overrun 11768 # during glob expansion). Even if it were fixed, the result of this 11769 # check would be larger than it should be. 11770 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11771 ;; 11772 11773 gnu*) 11774 # Under GNU Hurd, this test is not required because there is 11775 # no limit to the length of command line arguments. 11776 # Libtool will interpret -1 as no limit whatsoever 11777 lt_cv_sys_max_cmd_len=-1; 11778 ;; 11779 11780 cygwin* | mingw* | cegcc*) 11781 # On Win9x/ME, this test blows up -- it succeeds, but takes 11782 # about 5 minutes as the teststring grows exponentially. 11783 # Worse, since 9x/ME are not pre-emptively multitasking, 11784 # you end up with a "frozen" computer, even though with patience 11785 # the test eventually succeeds (with a max line length of 256k). 11786 # Instead, let's just punt: use the minimum linelength reported by 11787 # all of the supported platforms: 8192 (on NT/2K/XP). 11788 lt_cv_sys_max_cmd_len=8192; 11789 ;; 11790 11791 mint*) 11792 # On MiNT this can take a long time and run out of memory. 11793 lt_cv_sys_max_cmd_len=8192; 11794 ;; 11795 11796 amigaos*) 11797 # On AmigaOS with pdksh, this test takes hours, literally. 11798 # So we just punt and use a minimum line length of 8192. 11799 lt_cv_sys_max_cmd_len=8192; 11800 ;; 11801 11802 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11803 # This has been around since 386BSD, at least. Likely further. 11804 if test -x /sbin/sysctl; then 11805 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11806 elif test -x /usr/sbin/sysctl; then 11807 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11808 else 11809 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11810 fi 11811 # And add a safety zone 11812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11814 ;; 11815 11816 interix*) 11817 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11818 lt_cv_sys_max_cmd_len=196608 11819 ;; 11820 11821 os2*) 11822 # The test takes a long time on OS/2. 11823 lt_cv_sys_max_cmd_len=8192 11824 ;; 11825 11826 osf*) 11827 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11828 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11829 # nice to cause kernel panics so lets avoid the loop below. 11830 # First set a reasonable default. 11831 lt_cv_sys_max_cmd_len=16384 11832 # 11833 if test -x /sbin/sysconfig; then 11834 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11835 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11836 esac 11837 fi 11838 ;; 11839 sco3.2v5*) 11840 lt_cv_sys_max_cmd_len=102400 11841 ;; 11842 sysv5* | sco5v6* | sysv4.2uw2*) 11843 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11844 if test -n "$kargmax"; then 11845 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11846 else 11847 lt_cv_sys_max_cmd_len=32768 11848 fi 11849 ;; 11850 *) 11851 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11852 if test -n "$lt_cv_sys_max_cmd_len" && \ 11853 test undefined != "$lt_cv_sys_max_cmd_len"; then 11854 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11855 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11856 else 11857 # Make teststring a little bigger before we do anything with it. 11858 # a 1K string should be a reasonable start. 11859 for i in 1 2 3 4 5 6 7 8; do 11860 teststring=$teststring$teststring 11861 done 11862 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11863 # If test is not a shell built-in, we'll probably end up computing a 11864 # maximum length that is only half of the actual maximum length, but 11865 # we can't tell. 11866 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11867 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11868 test 17 != "$i" # 1/2 MB should be enough 11869 do 11870 i=`expr $i + 1` 11871 teststring=$teststring$teststring 11872 done 11873 # Only check the string length outside the loop. 11874 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11875 teststring= 11876 # Add a significant safety factor because C++ compilers can tack on 11877 # massive amounts of additional arguments before passing them to the 11878 # linker. It appears as though 1/2 is a usable value. 11879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11880 fi 11881 ;; 11882 esac 11883 11884fi 11885 11886if test -n "$lt_cv_sys_max_cmd_len"; then 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11888$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11889else 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11891$as_echo "none" >&6; } 11892fi 11893max_cmd_len=$lt_cv_sys_max_cmd_len 11894 11895 11896 11897 11898 11899 11900: ${CP="cp -f"} 11901: ${MV="mv -f"} 11902: ${RM="rm -f"} 11903 11904if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11905 lt_unset=unset 11906else 11907 lt_unset=false 11908fi 11909 11910 11911 11912 11913 11914# test EBCDIC or ASCII 11915case `echo X|tr X '\101'` in 11916 A) # ASCII based system 11917 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11918 lt_SP2NL='tr \040 \012' 11919 lt_NL2SP='tr \015\012 \040\040' 11920 ;; 11921 *) # EBCDIC based system 11922 lt_SP2NL='tr \100 \n' 11923 lt_NL2SP='tr \r\n \100\100' 11924 ;; 11925esac 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11936$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11937if ${lt_cv_to_host_file_cmd+:} false; then : 11938 $as_echo_n "(cached) " >&6 11939else 11940 case $host in 11941 *-*-mingw* ) 11942 case $build in 11943 *-*-mingw* ) # actually msys 11944 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11945 ;; 11946 *-*-cygwin* ) 11947 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11948 ;; 11949 * ) # otherwise, assume *nix 11950 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11951 ;; 11952 esac 11953 ;; 11954 *-*-cygwin* ) 11955 case $build in 11956 *-*-mingw* ) # actually msys 11957 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11958 ;; 11959 *-*-cygwin* ) 11960 lt_cv_to_host_file_cmd=func_convert_file_noop 11961 ;; 11962 * ) # otherwise, assume *nix 11963 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11964 ;; 11965 esac 11966 ;; 11967 * ) # unhandled hosts (and "normal" native builds) 11968 lt_cv_to_host_file_cmd=func_convert_file_noop 11969 ;; 11970esac 11971 11972fi 11973 11974to_host_file_cmd=$lt_cv_to_host_file_cmd 11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11976$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11977 11978 11979 11980 11981 11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11983$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11984if ${lt_cv_to_tool_file_cmd+:} false; then : 11985 $as_echo_n "(cached) " >&6 11986else 11987 #assume ordinary cross tools, or native build. 11988lt_cv_to_tool_file_cmd=func_convert_file_noop 11989case $host in 11990 *-*-mingw* ) 11991 case $build in 11992 *-*-mingw* ) # actually msys 11993 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11994 ;; 11995 esac 11996 ;; 11997esac 11998 11999fi 12000 12001to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12003$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12004 12005 12006 12007 12008 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12010$as_echo_n "checking for $LD option to reload object files... " >&6; } 12011if ${lt_cv_ld_reload_flag+:} false; then : 12012 $as_echo_n "(cached) " >&6 12013else 12014 lt_cv_ld_reload_flag='-r' 12015fi 12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12017$as_echo "$lt_cv_ld_reload_flag" >&6; } 12018reload_flag=$lt_cv_ld_reload_flag 12019case $reload_flag in 12020"" | " "*) ;; 12021*) reload_flag=" $reload_flag" ;; 12022esac 12023reload_cmds='$LD$reload_flag -o $output$reload_objs' 12024case $host_os in 12025 cygwin* | mingw* | pw32* | cegcc*) 12026 if test yes != "$GCC"; then 12027 reload_cmds=false 12028 fi 12029 ;; 12030 darwin*) 12031 if test yes = "$GCC"; then 12032 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12033 else 12034 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12035 fi 12036 ;; 12037esac 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047if test -n "$ac_tool_prefix"; then 12048 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12049set dummy ${ac_tool_prefix}objdump; ac_word=$2 12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12051$as_echo_n "checking for $ac_word... " >&6; } 12052if ${ac_cv_prog_OBJDUMP+:} false; then : 12053 $as_echo_n "(cached) " >&6 12054else 12055 if test -n "$OBJDUMP"; then 12056 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12057else 12058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12059for as_dir in $PATH 12060do 12061 IFS=$as_save_IFS 12062 test -z "$as_dir" && as_dir=. 12063 for ac_exec_ext in '' $ac_executable_extensions; do 12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12065 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12067 break 2 12068 fi 12069done 12070 done 12071IFS=$as_save_IFS 12072 12073fi 12074fi 12075OBJDUMP=$ac_cv_prog_OBJDUMP 12076if test -n "$OBJDUMP"; then 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12078$as_echo "$OBJDUMP" >&6; } 12079else 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12081$as_echo "no" >&6; } 12082fi 12083 12084 12085fi 12086if test -z "$ac_cv_prog_OBJDUMP"; then 12087 ac_ct_OBJDUMP=$OBJDUMP 12088 # Extract the first word of "objdump", so it can be a program name with args. 12089set dummy objdump; ac_word=$2 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12091$as_echo_n "checking for $ac_word... " >&6; } 12092if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12093 $as_echo_n "(cached) " >&6 12094else 12095 if test -n "$ac_ct_OBJDUMP"; then 12096 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12097else 12098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12099for as_dir in $PATH 12100do 12101 IFS=$as_save_IFS 12102 test -z "$as_dir" && as_dir=. 12103 for ac_exec_ext in '' $ac_executable_extensions; do 12104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12105 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12107 break 2 12108 fi 12109done 12110 done 12111IFS=$as_save_IFS 12112 12113fi 12114fi 12115ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12116if test -n "$ac_ct_OBJDUMP"; then 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12118$as_echo "$ac_ct_OBJDUMP" >&6; } 12119else 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12121$as_echo "no" >&6; } 12122fi 12123 12124 if test "x$ac_ct_OBJDUMP" = x; then 12125 OBJDUMP="false" 12126 else 12127 case $cross_compiling:$ac_tool_warned in 12128yes:) 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12131ac_tool_warned=yes ;; 12132esac 12133 OBJDUMP=$ac_ct_OBJDUMP 12134 fi 12135else 12136 OBJDUMP="$ac_cv_prog_OBJDUMP" 12137fi 12138 12139test -z "$OBJDUMP" && OBJDUMP=objdump 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12150$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12151if ${lt_cv_deplibs_check_method+:} false; then : 12152 $as_echo_n "(cached) " >&6 12153else 12154 lt_cv_file_magic_cmd='$MAGIC_CMD' 12155lt_cv_file_magic_test_file= 12156lt_cv_deplibs_check_method='unknown' 12157# Need to set the preceding variable on all platforms that support 12158# interlibrary dependencies. 12159# 'none' -- dependencies not supported. 12160# 'unknown' -- same as none, but documents that we really don't know. 12161# 'pass_all' -- all dependencies passed with no checks. 12162# 'test_compile' -- check by making test program. 12163# 'file_magic [[regex]]' -- check by looking for files in library path 12164# that responds to the $file_magic_cmd with a given extended regex. 12165# If you have 'file' or equivalent on your system and you're not sure 12166# whether 'pass_all' will *always* work, you probably want this one. 12167 12168case $host_os in 12169aix[4-9]*) 12170 lt_cv_deplibs_check_method=pass_all 12171 ;; 12172 12173beos*) 12174 lt_cv_deplibs_check_method=pass_all 12175 ;; 12176 12177bsdi[45]*) 12178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12179 lt_cv_file_magic_cmd='/usr/bin/file -L' 12180 lt_cv_file_magic_test_file=/shlib/libc.so 12181 ;; 12182 12183cygwin*) 12184 # func_win32_libid is a shell function defined in ltmain.sh 12185 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12186 lt_cv_file_magic_cmd='func_win32_libid' 12187 ;; 12188 12189mingw* | pw32*) 12190 # Base MSYS/MinGW do not provide the 'file' command needed by 12191 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12192 # unless we find 'file', for example because we are cross-compiling. 12193 if ( file / ) >/dev/null 2>&1; then 12194 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12195 lt_cv_file_magic_cmd='func_win32_libid' 12196 else 12197 # Keep this pattern in sync with the one in func_win32_libid. 12198 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12199 lt_cv_file_magic_cmd='$OBJDUMP -f' 12200 fi 12201 ;; 12202 12203cegcc*) 12204 # use the weaker test based on 'objdump'. See mingw*. 12205 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12206 lt_cv_file_magic_cmd='$OBJDUMP -f' 12207 ;; 12208 12209darwin* | rhapsody*) 12210 lt_cv_deplibs_check_method=pass_all 12211 ;; 12212 12213freebsd* | dragonfly*) 12214 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12215 case $host_cpu in 12216 i*86 ) 12217 # Not sure whether the presence of OpenBSD here was a mistake. 12218 # Let's accept both of them until this is cleared up. 12219 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12220 lt_cv_file_magic_cmd=/usr/bin/file 12221 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12222 ;; 12223 esac 12224 else 12225 lt_cv_deplibs_check_method=pass_all 12226 fi 12227 ;; 12228 12229haiku*) 12230 lt_cv_deplibs_check_method=pass_all 12231 ;; 12232 12233hpux10.20* | hpux11*) 12234 lt_cv_file_magic_cmd=/usr/bin/file 12235 case $host_cpu in 12236 ia64*) 12237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12238 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12239 ;; 12240 hppa*64*) 12241 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]' 12242 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12243 ;; 12244 *) 12245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12246 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12247 ;; 12248 esac 12249 ;; 12250 12251interix[3-9]*) 12252 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12254 ;; 12255 12256irix5* | irix6* | nonstopux*) 12257 case $LD in 12258 *-32|*"-32 ") libmagic=32-bit;; 12259 *-n32|*"-n32 ") libmagic=N32;; 12260 *-64|*"-64 ") libmagic=64-bit;; 12261 *) libmagic=never-match;; 12262 esac 12263 lt_cv_deplibs_check_method=pass_all 12264 ;; 12265 12266# This must be glibc/ELF. 12267linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12268 lt_cv_deplibs_check_method=pass_all 12269 ;; 12270 12271netbsd* | netbsdelf*-gnu) 12272 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12274 else 12275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12276 fi 12277 ;; 12278 12279newos6*) 12280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12281 lt_cv_file_magic_cmd=/usr/bin/file 12282 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12283 ;; 12284 12285*nto* | *qnx*) 12286 lt_cv_deplibs_check_method=pass_all 12287 ;; 12288 12289openbsd* | bitrig*) 12290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12292 else 12293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12294 fi 12295 ;; 12296 12297osf3* | osf4* | osf5*) 12298 lt_cv_deplibs_check_method=pass_all 12299 ;; 12300 12301rdos*) 12302 lt_cv_deplibs_check_method=pass_all 12303 ;; 12304 12305solaris*) 12306 lt_cv_deplibs_check_method=pass_all 12307 ;; 12308 12309sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12310 lt_cv_deplibs_check_method=pass_all 12311 ;; 12312 12313sysv4 | sysv4.3*) 12314 case $host_vendor in 12315 motorola) 12316 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]' 12317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12318 ;; 12319 ncr) 12320 lt_cv_deplibs_check_method=pass_all 12321 ;; 12322 sequent) 12323 lt_cv_file_magic_cmd='/bin/file' 12324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12325 ;; 12326 sni) 12327 lt_cv_file_magic_cmd='/bin/file' 12328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12329 lt_cv_file_magic_test_file=/lib/libc.so 12330 ;; 12331 siemens) 12332 lt_cv_deplibs_check_method=pass_all 12333 ;; 12334 pc) 12335 lt_cv_deplibs_check_method=pass_all 12336 ;; 12337 esac 12338 ;; 12339 12340tpf*) 12341 lt_cv_deplibs_check_method=pass_all 12342 ;; 12343os2*) 12344 lt_cv_deplibs_check_method=pass_all 12345 ;; 12346esac 12347 12348fi 12349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12350$as_echo "$lt_cv_deplibs_check_method" >&6; } 12351 12352file_magic_glob= 12353want_nocaseglob=no 12354if test "$build" = "$host"; then 12355 case $host_os in 12356 mingw* | pw32*) 12357 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12358 want_nocaseglob=yes 12359 else 12360 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12361 fi 12362 ;; 12363 esac 12364fi 12365 12366file_magic_cmd=$lt_cv_file_magic_cmd 12367deplibs_check_method=$lt_cv_deplibs_check_method 12368test -z "$deplibs_check_method" && deplibs_check_method=unknown 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391if test -n "$ac_tool_prefix"; then 12392 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12393set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12395$as_echo_n "checking for $ac_word... " >&6; } 12396if ${ac_cv_prog_DLLTOOL+:} false; then : 12397 $as_echo_n "(cached) " >&6 12398else 12399 if test -n "$DLLTOOL"; then 12400 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12401else 12402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12403for as_dir in $PATH 12404do 12405 IFS=$as_save_IFS 12406 test -z "$as_dir" && as_dir=. 12407 for ac_exec_ext in '' $ac_executable_extensions; do 12408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12409 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12411 break 2 12412 fi 12413done 12414 done 12415IFS=$as_save_IFS 12416 12417fi 12418fi 12419DLLTOOL=$ac_cv_prog_DLLTOOL 12420if test -n "$DLLTOOL"; then 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12422$as_echo "$DLLTOOL" >&6; } 12423else 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12425$as_echo "no" >&6; } 12426fi 12427 12428 12429fi 12430if test -z "$ac_cv_prog_DLLTOOL"; then 12431 ac_ct_DLLTOOL=$DLLTOOL 12432 # Extract the first word of "dlltool", so it can be a program name with args. 12433set dummy dlltool; ac_word=$2 12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12435$as_echo_n "checking for $ac_word... " >&6; } 12436if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12437 $as_echo_n "(cached) " >&6 12438else 12439 if test -n "$ac_ct_DLLTOOL"; then 12440 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12441else 12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12443for as_dir in $PATH 12444do 12445 IFS=$as_save_IFS 12446 test -z "$as_dir" && as_dir=. 12447 for ac_exec_ext in '' $ac_executable_extensions; do 12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12449 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12451 break 2 12452 fi 12453done 12454 done 12455IFS=$as_save_IFS 12456 12457fi 12458fi 12459ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12460if test -n "$ac_ct_DLLTOOL"; then 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12462$as_echo "$ac_ct_DLLTOOL" >&6; } 12463else 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12465$as_echo "no" >&6; } 12466fi 12467 12468 if test "x$ac_ct_DLLTOOL" = x; then 12469 DLLTOOL="false" 12470 else 12471 case $cross_compiling:$ac_tool_warned in 12472yes:) 12473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12475ac_tool_warned=yes ;; 12476esac 12477 DLLTOOL=$ac_ct_DLLTOOL 12478 fi 12479else 12480 DLLTOOL="$ac_cv_prog_DLLTOOL" 12481fi 12482 12483test -z "$DLLTOOL" && DLLTOOL=dlltool 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12495$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12496if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 lt_cv_sharedlib_from_linklib_cmd='unknown' 12500 12501case $host_os in 12502cygwin* | mingw* | pw32* | cegcc*) 12503 # two different shell functions defined in ltmain.sh; 12504 # decide which one to use based on capabilities of $DLLTOOL 12505 case `$DLLTOOL --help 2>&1` in 12506 *--identify-strict*) 12507 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12508 ;; 12509 *) 12510 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12511 ;; 12512 esac 12513 ;; 12514*) 12515 # fallback: assume linklib IS sharedlib 12516 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12517 ;; 12518esac 12519 12520fi 12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12522$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12523sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12524test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12525 12526 12527 12528 12529 12530 12531 12532if test -n "$ac_tool_prefix"; then 12533 for ac_prog in ar 12534 do 12535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12536set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12538$as_echo_n "checking for $ac_word... " >&6; } 12539if ${ac_cv_prog_AR+:} false; then : 12540 $as_echo_n "(cached) " >&6 12541else 12542 if test -n "$AR"; then 12543 ac_cv_prog_AR="$AR" # Let the user override the test. 12544else 12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12546for as_dir in $PATH 12547do 12548 IFS=$as_save_IFS 12549 test -z "$as_dir" && as_dir=. 12550 for ac_exec_ext in '' $ac_executable_extensions; do 12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12552 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12554 break 2 12555 fi 12556done 12557 done 12558IFS=$as_save_IFS 12559 12560fi 12561fi 12562AR=$ac_cv_prog_AR 12563if test -n "$AR"; then 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12565$as_echo "$AR" >&6; } 12566else 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12568$as_echo "no" >&6; } 12569fi 12570 12571 12572 test -n "$AR" && break 12573 done 12574fi 12575if test -z "$AR"; then 12576 ac_ct_AR=$AR 12577 for ac_prog in ar 12578do 12579 # Extract the first word of "$ac_prog", so it can be a program name with args. 12580set dummy $ac_prog; ac_word=$2 12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12582$as_echo_n "checking for $ac_word... " >&6; } 12583if ${ac_cv_prog_ac_ct_AR+:} false; then : 12584 $as_echo_n "(cached) " >&6 12585else 12586 if test -n "$ac_ct_AR"; then 12587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12588else 12589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12590for as_dir in $PATH 12591do 12592 IFS=$as_save_IFS 12593 test -z "$as_dir" && as_dir=. 12594 for ac_exec_ext in '' $ac_executable_extensions; do 12595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12596 ac_cv_prog_ac_ct_AR="$ac_prog" 12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12598 break 2 12599 fi 12600done 12601 done 12602IFS=$as_save_IFS 12603 12604fi 12605fi 12606ac_ct_AR=$ac_cv_prog_ac_ct_AR 12607if test -n "$ac_ct_AR"; then 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12609$as_echo "$ac_ct_AR" >&6; } 12610else 12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12612$as_echo "no" >&6; } 12613fi 12614 12615 12616 test -n "$ac_ct_AR" && break 12617done 12618 12619 if test "x$ac_ct_AR" = x; then 12620 AR="false" 12621 else 12622 case $cross_compiling:$ac_tool_warned in 12623yes:) 12624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12626ac_tool_warned=yes ;; 12627esac 12628 AR=$ac_ct_AR 12629 fi 12630fi 12631 12632: ${AR=ar} 12633: ${AR_FLAGS=cru} 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12646$as_echo_n "checking for archiver @FILE support... " >&6; } 12647if ${lt_cv_ar_at_file+:} false; then : 12648 $as_echo_n "(cached) " >&6 12649else 12650 lt_cv_ar_at_file=no 12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12652/* end confdefs.h. */ 12653 12654int 12655main () 12656{ 12657 12658 ; 12659 return 0; 12660} 12661_ACEOF 12662if ac_fn_c_try_compile "$LINENO"; then : 12663 echo conftest.$ac_objext > conftest.lst 12664 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12666 (eval $lt_ar_try) 2>&5 12667 ac_status=$? 12668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12669 test $ac_status = 0; } 12670 if test 0 -eq "$ac_status"; then 12671 # Ensure the archiver fails upon bogus file names. 12672 rm -f conftest.$ac_objext libconftest.a 12673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12674 (eval $lt_ar_try) 2>&5 12675 ac_status=$? 12676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12677 test $ac_status = 0; } 12678 if test 0 -ne "$ac_status"; then 12679 lt_cv_ar_at_file=@ 12680 fi 12681 fi 12682 rm -f conftest.* libconftest.a 12683 12684fi 12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12686 12687fi 12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12689$as_echo "$lt_cv_ar_at_file" >&6; } 12690 12691if test no = "$lt_cv_ar_at_file"; then 12692 archiver_list_spec= 12693else 12694 archiver_list_spec=$lt_cv_ar_at_file 12695fi 12696 12697 12698 12699 12700 12701 12702 12703if test -n "$ac_tool_prefix"; then 12704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12705set dummy ${ac_tool_prefix}strip; ac_word=$2 12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12707$as_echo_n "checking for $ac_word... " >&6; } 12708if ${ac_cv_prog_STRIP+:} false; then : 12709 $as_echo_n "(cached) " >&6 12710else 12711 if test -n "$STRIP"; then 12712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12713else 12714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12715for as_dir in $PATH 12716do 12717 IFS=$as_save_IFS 12718 test -z "$as_dir" && as_dir=. 12719 for ac_exec_ext in '' $ac_executable_extensions; do 12720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12721 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12723 break 2 12724 fi 12725done 12726 done 12727IFS=$as_save_IFS 12728 12729fi 12730fi 12731STRIP=$ac_cv_prog_STRIP 12732if test -n "$STRIP"; then 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12734$as_echo "$STRIP" >&6; } 12735else 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12737$as_echo "no" >&6; } 12738fi 12739 12740 12741fi 12742if test -z "$ac_cv_prog_STRIP"; then 12743 ac_ct_STRIP=$STRIP 12744 # Extract the first word of "strip", so it can be a program name with args. 12745set dummy strip; ac_word=$2 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12747$as_echo_n "checking for $ac_word... " >&6; } 12748if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12749 $as_echo_n "(cached) " >&6 12750else 12751 if test -n "$ac_ct_STRIP"; then 12752 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12753else 12754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12755for as_dir in $PATH 12756do 12757 IFS=$as_save_IFS 12758 test -z "$as_dir" && as_dir=. 12759 for ac_exec_ext in '' $ac_executable_extensions; do 12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12761 ac_cv_prog_ac_ct_STRIP="strip" 12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12763 break 2 12764 fi 12765done 12766 done 12767IFS=$as_save_IFS 12768 12769fi 12770fi 12771ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12772if test -n "$ac_ct_STRIP"; then 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12774$as_echo "$ac_ct_STRIP" >&6; } 12775else 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12777$as_echo "no" >&6; } 12778fi 12779 12780 if test "x$ac_ct_STRIP" = x; then 12781 STRIP=":" 12782 else 12783 case $cross_compiling:$ac_tool_warned in 12784yes:) 12785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12787ac_tool_warned=yes ;; 12788esac 12789 STRIP=$ac_ct_STRIP 12790 fi 12791else 12792 STRIP="$ac_cv_prog_STRIP" 12793fi 12794 12795test -z "$STRIP" && STRIP=: 12796 12797 12798 12799 12800 12801 12802if test -n "$ac_tool_prefix"; then 12803 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12804set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12806$as_echo_n "checking for $ac_word... " >&6; } 12807if ${ac_cv_prog_RANLIB+:} false; then : 12808 $as_echo_n "(cached) " >&6 12809else 12810 if test -n "$RANLIB"; then 12811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12812else 12813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12814for as_dir in $PATH 12815do 12816 IFS=$as_save_IFS 12817 test -z "$as_dir" && as_dir=. 12818 for ac_exec_ext in '' $ac_executable_extensions; do 12819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12820 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12822 break 2 12823 fi 12824done 12825 done 12826IFS=$as_save_IFS 12827 12828fi 12829fi 12830RANLIB=$ac_cv_prog_RANLIB 12831if test -n "$RANLIB"; then 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12833$as_echo "$RANLIB" >&6; } 12834else 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12836$as_echo "no" >&6; } 12837fi 12838 12839 12840fi 12841if test -z "$ac_cv_prog_RANLIB"; then 12842 ac_ct_RANLIB=$RANLIB 12843 # Extract the first word of "ranlib", so it can be a program name with args. 12844set dummy ranlib; ac_word=$2 12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12846$as_echo_n "checking for $ac_word... " >&6; } 12847if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12848 $as_echo_n "(cached) " >&6 12849else 12850 if test -n "$ac_ct_RANLIB"; then 12851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12852else 12853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12854for as_dir in $PATH 12855do 12856 IFS=$as_save_IFS 12857 test -z "$as_dir" && as_dir=. 12858 for ac_exec_ext in '' $ac_executable_extensions; do 12859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12860 ac_cv_prog_ac_ct_RANLIB="ranlib" 12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12862 break 2 12863 fi 12864done 12865 done 12866IFS=$as_save_IFS 12867 12868fi 12869fi 12870ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12871if test -n "$ac_ct_RANLIB"; then 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12873$as_echo "$ac_ct_RANLIB" >&6; } 12874else 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876$as_echo "no" >&6; } 12877fi 12878 12879 if test "x$ac_ct_RANLIB" = x; then 12880 RANLIB=":" 12881 else 12882 case $cross_compiling:$ac_tool_warned in 12883yes:) 12884{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12885$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12886ac_tool_warned=yes ;; 12887esac 12888 RANLIB=$ac_ct_RANLIB 12889 fi 12890else 12891 RANLIB="$ac_cv_prog_RANLIB" 12892fi 12893 12894test -z "$RANLIB" && RANLIB=: 12895 12896 12897 12898 12899 12900 12901# Determine commands to create old-style static archives. 12902old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12903old_postinstall_cmds='chmod 644 $oldlib' 12904old_postuninstall_cmds= 12905 12906if test -n "$RANLIB"; then 12907 case $host_os in 12908 bitrig* | openbsd*) 12909 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12910 ;; 12911 *) 12912 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12913 ;; 12914 esac 12915 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12916fi 12917 12918case $host_os in 12919 darwin*) 12920 lock_old_archive_extraction=yes ;; 12921 *) 12922 lock_old_archive_extraction=no ;; 12923esac 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963# If no C compiler was specified, use CC. 12964LTCC=${LTCC-"$CC"} 12965 12966# If no C compiler flags were specified, use CFLAGS. 12967LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12968 12969# Allow CC to be a program name with arguments. 12970compiler=$CC 12971 12972 12973# Check for command to grab the raw symbol name followed by C symbol from nm. 12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12975$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12976if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12977 $as_echo_n "(cached) " >&6 12978else 12979 12980# These are sane defaults that work on at least a few old systems. 12981# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12982 12983# Character class describing NM global symbol codes. 12984symcode='[BCDEGRST]' 12985 12986# Regexp to match symbols that can be accessed directly from C. 12987sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12988 12989# Define system-specific variables. 12990case $host_os in 12991aix*) 12992 symcode='[BCDT]' 12993 ;; 12994cygwin* | mingw* | pw32* | cegcc*) 12995 symcode='[ABCDGISTW]' 12996 ;; 12997hpux*) 12998 if test ia64 = "$host_cpu"; then 12999 symcode='[ABCDEGRST]' 13000 fi 13001 ;; 13002irix* | nonstopux*) 13003 symcode='[BCDEGRST]' 13004 ;; 13005osf*) 13006 symcode='[BCDEGQRST]' 13007 ;; 13008solaris*) 13009 symcode='[BDRT]' 13010 ;; 13011sco3.2v5*) 13012 symcode='[DT]' 13013 ;; 13014sysv4.2uw2*) 13015 symcode='[DT]' 13016 ;; 13017sysv5* | sco5v6* | unixware* | OpenUNIX*) 13018 symcode='[ABDT]' 13019 ;; 13020sysv4) 13021 symcode='[DFNSTU]' 13022 ;; 13023esac 13024 13025# If we're using GNU nm, then use its standard symbol codes. 13026case `$NM -V 2>&1` in 13027*GNU* | *'with BFD'*) 13028 symcode='[ABCDGIRSTW]' ;; 13029esac 13030 13031if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13032 # Gets list of data symbols to import. 13033 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 13034 # Adjust the below global symbol transforms to fixup imported variables. 13035 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13036 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13037 lt_c_name_lib_hook="\ 13038 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13039 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13040else 13041 # Disable hooks by default. 13042 lt_cv_sys_global_symbol_to_import= 13043 lt_cdecl_hook= 13044 lt_c_name_hook= 13045 lt_c_name_lib_hook= 13046fi 13047 13048# Transform an extracted symbol line into a proper C declaration. 13049# Some systems (esp. on ia64) link data and code symbols differently, 13050# so use this general approach. 13051lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 13052$lt_cdecl_hook\ 13053" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13054" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13055 13056# Transform an extracted symbol line into symbol name and symbol address 13057lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 13058$lt_c_name_hook\ 13059" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13060" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13061 13062# Transform an extracted symbol line into symbol name with lib prefix and 13063# symbol address. 13064lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 13065$lt_c_name_lib_hook\ 13066" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13067" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13068" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13069 13070# Handle CRLF in mingw tool chain 13071opt_cr= 13072case $build_os in 13073mingw*) 13074 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13075 ;; 13076esac 13077 13078# Try without a prefix underscore, then with it. 13079for ac_symprfx in "" "_"; do 13080 13081 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13082 symxfrm="\\1 $ac_symprfx\\2 \\2" 13083 13084 # Write the raw and C identifiers. 13085 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13086 # Fake it for dumpbin and say T for any non-static function, 13087 # D for any global variable and I for any imported variable. 13088 # Also find C++ and __fastcall symbols from MSVC++, 13089 # which start with @ or ?. 13090 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13091" {last_section=section; section=\$ 3};"\ 13092" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13093" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13094" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13095" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13096" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13097" \$ 0!~/External *\|/{next};"\ 13098" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13099" {if(hide[section]) next};"\ 13100" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13101" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13102" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13103" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13104" ' prfx=^$ac_symprfx" 13105 else 13106 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13107 fi 13108 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13109 13110 # Check to see that the pipe works correctly. 13111 pipe_works=no 13112 13113 rm -f conftest* 13114 cat > conftest.$ac_ext <<_LT_EOF 13115#ifdef __cplusplus 13116extern "C" { 13117#endif 13118char nm_test_var; 13119void nm_test_func(void); 13120void nm_test_func(void){} 13121#ifdef __cplusplus 13122} 13123#endif 13124int main(){nm_test_var='a';nm_test_func();return(0);} 13125_LT_EOF 13126 13127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13128 (eval $ac_compile) 2>&5 13129 ac_status=$? 13130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13131 test $ac_status = 0; }; then 13132 # Now try to grab the symbols. 13133 nlist=conftest.nm 13134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13135 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13136 ac_status=$? 13137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13138 test $ac_status = 0; } && test -s "$nlist"; then 13139 # Try sorting and uniquifying the output. 13140 if sort "$nlist" | uniq > "$nlist"T; then 13141 mv -f "$nlist"T "$nlist" 13142 else 13143 rm -f "$nlist"T 13144 fi 13145 13146 # Make sure that we snagged all the symbols we need. 13147 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13148 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13149 cat <<_LT_EOF > conftest.$ac_ext 13150/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13151#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13152/* DATA imports from DLLs on WIN32 can't be const, because runtime 13153 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13154# define LT_DLSYM_CONST 13155#elif defined __osf__ 13156/* This system does not cope well with relocations in const data. */ 13157# define LT_DLSYM_CONST 13158#else 13159# define LT_DLSYM_CONST const 13160#endif 13161 13162#ifdef __cplusplus 13163extern "C" { 13164#endif 13165 13166_LT_EOF 13167 # Now generate the symbol file. 13168 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13169 13170 cat <<_LT_EOF >> conftest.$ac_ext 13171 13172/* The mapping between symbol names and symbols. */ 13173LT_DLSYM_CONST struct { 13174 const char *name; 13175 void *address; 13176} 13177lt__PROGRAM__LTX_preloaded_symbols[] = 13178{ 13179 { "@PROGRAM@", (void *) 0 }, 13180_LT_EOF 13181 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13182 cat <<\_LT_EOF >> conftest.$ac_ext 13183 {0, (void *) 0} 13184}; 13185 13186/* This works around a problem in FreeBSD linker */ 13187#ifdef FREEBSD_WORKAROUND 13188static const void *lt_preloaded_setup() { 13189 return lt__PROGRAM__LTX_preloaded_symbols; 13190} 13191#endif 13192 13193#ifdef __cplusplus 13194} 13195#endif 13196_LT_EOF 13197 # Now try linking the two files. 13198 mv conftest.$ac_objext conftstm.$ac_objext 13199 lt_globsym_save_LIBS=$LIBS 13200 lt_globsym_save_CFLAGS=$CFLAGS 13201 LIBS=conftstm.$ac_objext 13202 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13204 (eval $ac_link) 2>&5 13205 ac_status=$? 13206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13207 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13208 pipe_works=yes 13209 fi 13210 LIBS=$lt_globsym_save_LIBS 13211 CFLAGS=$lt_globsym_save_CFLAGS 13212 else 13213 echo "cannot find nm_test_func in $nlist" >&5 13214 fi 13215 else 13216 echo "cannot find nm_test_var in $nlist" >&5 13217 fi 13218 else 13219 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13220 fi 13221 else 13222 echo "$progname: failed program was:" >&5 13223 cat conftest.$ac_ext >&5 13224 fi 13225 rm -rf conftest* conftst* 13226 13227 # Do not use the global_symbol_pipe unless it works. 13228 if test yes = "$pipe_works"; then 13229 break 13230 else 13231 lt_cv_sys_global_symbol_pipe= 13232 fi 13233done 13234 13235fi 13236 13237if test -z "$lt_cv_sys_global_symbol_pipe"; then 13238 lt_cv_sys_global_symbol_to_cdecl= 13239fi 13240if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13242$as_echo "failed" >&6; } 13243else 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13245$as_echo "ok" >&6; } 13246fi 13247 13248# Response file support. 13249if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13250 nm_file_list_spec='@' 13251elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13252 nm_file_list_spec='@' 13253fi 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13292$as_echo_n "checking for sysroot... " >&6; } 13293 13294# Check whether --with-sysroot was given. 13295if test "${with_sysroot+set}" = set; then : 13296 withval=$with_sysroot; 13297else 13298 with_sysroot=no 13299fi 13300 13301 13302lt_sysroot= 13303case $with_sysroot in #( 13304 yes) 13305 if test yes = "$GCC"; then 13306 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13307 fi 13308 ;; #( 13309 /*) 13310 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13311 ;; #( 13312 no|'') 13313 ;; #( 13314 *) 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13316$as_echo "$with_sysroot" >&6; } 13317 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13318 ;; 13319esac 13320 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13322$as_echo "${lt_sysroot:-no}" >&6; } 13323 13324 13325 13326 13327 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13329$as_echo_n "checking for a working dd... " >&6; } 13330if ${ac_cv_path_lt_DD+:} false; then : 13331 $as_echo_n "(cached) " >&6 13332else 13333 printf 0123456789abcdef0123456789abcdef >conftest.i 13334cat conftest.i conftest.i >conftest2.i 13335: ${lt_DD:=$DD} 13336if test -z "$lt_DD"; then 13337 ac_path_lt_DD_found=false 13338 # Loop through the user's path and test for each of PROGNAME-LIST 13339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13340for as_dir in $PATH 13341do 13342 IFS=$as_save_IFS 13343 test -z "$as_dir" && as_dir=. 13344 for ac_prog in dd; do 13345 for ac_exec_ext in '' $ac_executable_extensions; do 13346 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13347 as_fn_executable_p "$ac_path_lt_DD" || continue 13348if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13349 cmp -s conftest.i conftest.out \ 13350 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13351fi 13352 $ac_path_lt_DD_found && break 3 13353 done 13354 done 13355 done 13356IFS=$as_save_IFS 13357 if test -z "$ac_cv_path_lt_DD"; then 13358 : 13359 fi 13360else 13361 ac_cv_path_lt_DD=$lt_DD 13362fi 13363 13364rm -f conftest.i conftest2.i conftest.out 13365fi 13366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13367$as_echo "$ac_cv_path_lt_DD" >&6; } 13368 13369 13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13371$as_echo_n "checking how to truncate binary pipes... " >&6; } 13372if ${lt_cv_truncate_bin+:} false; then : 13373 $as_echo_n "(cached) " >&6 13374else 13375 printf 0123456789abcdef0123456789abcdef >conftest.i 13376cat conftest.i conftest.i >conftest2.i 13377lt_cv_truncate_bin= 13378if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13379 cmp -s conftest.i conftest.out \ 13380 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13381fi 13382rm -f conftest.i conftest2.i conftest.out 13383test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13384fi 13385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13386$as_echo "$lt_cv_truncate_bin" >&6; } 13387 13388 13389 13390 13391 13392 13393 13394# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13395func_cc_basename () 13396{ 13397 for cc_temp in $*""; do 13398 case $cc_temp in 13399 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13400 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13401 \-*) ;; 13402 *) break;; 13403 esac 13404 done 13405 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13406} 13407 13408# Check whether --enable-libtool-lock was given. 13409if test "${enable_libtool_lock+set}" = set; then : 13410 enableval=$enable_libtool_lock; 13411fi 13412 13413test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13414 13415# Some flags need to be propagated to the compiler or linker for good 13416# libtool support. 13417case $host in 13418ia64-*-hpux*) 13419 # Find out what ABI is being produced by ac_compile, and set mode 13420 # options accordingly. 13421 echo 'int i;' > conftest.$ac_ext 13422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13423 (eval $ac_compile) 2>&5 13424 ac_status=$? 13425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13426 test $ac_status = 0; }; then 13427 case `/usr/bin/file conftest.$ac_objext` in 13428 *ELF-32*) 13429 HPUX_IA64_MODE=32 13430 ;; 13431 *ELF-64*) 13432 HPUX_IA64_MODE=64 13433 ;; 13434 esac 13435 fi 13436 rm -rf conftest* 13437 ;; 13438*-*-irix6*) 13439 # Find out what ABI is being produced by ac_compile, and set linker 13440 # options accordingly. 13441 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13443 (eval $ac_compile) 2>&5 13444 ac_status=$? 13445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13446 test $ac_status = 0; }; then 13447 if test yes = "$lt_cv_prog_gnu_ld"; then 13448 case `/usr/bin/file conftest.$ac_objext` in 13449 *32-bit*) 13450 LD="${LD-ld} -melf32bsmip" 13451 ;; 13452 *N32*) 13453 LD="${LD-ld} -melf32bmipn32" 13454 ;; 13455 *64-bit*) 13456 LD="${LD-ld} -melf64bmip" 13457 ;; 13458 esac 13459 else 13460 case `/usr/bin/file conftest.$ac_objext` in 13461 *32-bit*) 13462 LD="${LD-ld} -32" 13463 ;; 13464 *N32*) 13465 LD="${LD-ld} -n32" 13466 ;; 13467 *64-bit*) 13468 LD="${LD-ld} -64" 13469 ;; 13470 esac 13471 fi 13472 fi 13473 rm -rf conftest* 13474 ;; 13475 13476mips64*-*linux*) 13477 # Find out what ABI is being produced by ac_compile, and set linker 13478 # options accordingly. 13479 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13481 (eval $ac_compile) 2>&5 13482 ac_status=$? 13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13484 test $ac_status = 0; }; then 13485 emul=elf 13486 case `/usr/bin/file conftest.$ac_objext` in 13487 *32-bit*) 13488 emul="${emul}32" 13489 ;; 13490 *64-bit*) 13491 emul="${emul}64" 13492 ;; 13493 esac 13494 case `/usr/bin/file conftest.$ac_objext` in 13495 *MSB*) 13496 emul="${emul}btsmip" 13497 ;; 13498 *LSB*) 13499 emul="${emul}ltsmip" 13500 ;; 13501 esac 13502 case `/usr/bin/file conftest.$ac_objext` in 13503 *N32*) 13504 emul="${emul}n32" 13505 ;; 13506 esac 13507 LD="${LD-ld} -m $emul" 13508 fi 13509 rm -rf conftest* 13510 ;; 13511 13512x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13513s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13514 # Find out what ABI is being produced by ac_compile, and set linker 13515 # options accordingly. Note that the listed cases only cover the 13516 # situations where additional linker options are needed (such as when 13517 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13518 # vice versa); the common cases where no linker options are needed do 13519 # not appear in the list. 13520 echo 'int i;' > conftest.$ac_ext 13521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13522 (eval $ac_compile) 2>&5 13523 ac_status=$? 13524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13525 test $ac_status = 0; }; then 13526 case `/usr/bin/file conftest.o` in 13527 *32-bit*) 13528 case $host in 13529 x86_64-*kfreebsd*-gnu) 13530 LD="${LD-ld} -m elf_i386_fbsd" 13531 ;; 13532 x86_64-*linux*) 13533 case `/usr/bin/file conftest.o` in 13534 *x86-64*) 13535 LD="${LD-ld} -m elf32_x86_64" 13536 ;; 13537 *) 13538 LD="${LD-ld} -m elf_i386" 13539 ;; 13540 esac 13541 ;; 13542 powerpc64le-*linux*) 13543 LD="${LD-ld} -m elf32lppclinux" 13544 ;; 13545 powerpc64-*linux*) 13546 LD="${LD-ld} -m elf32ppclinux" 13547 ;; 13548 s390x-*linux*) 13549 LD="${LD-ld} -m elf_s390" 13550 ;; 13551 sparc64-*linux*) 13552 LD="${LD-ld} -m elf32_sparc" 13553 ;; 13554 esac 13555 ;; 13556 *64-bit*) 13557 case $host in 13558 x86_64-*kfreebsd*-gnu) 13559 LD="${LD-ld} -m elf_x86_64_fbsd" 13560 ;; 13561 x86_64-*linux*) 13562 LD="${LD-ld} -m elf_x86_64" 13563 ;; 13564 powerpcle-*linux*) 13565 LD="${LD-ld} -m elf64lppc" 13566 ;; 13567 powerpc-*linux*) 13568 LD="${LD-ld} -m elf64ppc" 13569 ;; 13570 s390*-*linux*|s390*-*tpf*) 13571 LD="${LD-ld} -m elf64_s390" 13572 ;; 13573 sparc*-*linux*) 13574 LD="${LD-ld} -m elf64_sparc" 13575 ;; 13576 esac 13577 ;; 13578 esac 13579 fi 13580 rm -rf conftest* 13581 ;; 13582 13583*-*-sco3.2v5*) 13584 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13585 SAVE_CFLAGS=$CFLAGS 13586 CFLAGS="$CFLAGS -belf" 13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13588$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13589if ${lt_cv_cc_needs_belf+:} false; then : 13590 $as_echo_n "(cached) " >&6 13591else 13592 ac_ext=c 13593ac_cpp='$CPP $CPPFLAGS' 13594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13596ac_compiler_gnu=$ac_cv_c_compiler_gnu 13597 13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13599/* end confdefs.h. */ 13600 13601int 13602main () 13603{ 13604 13605 ; 13606 return 0; 13607} 13608_ACEOF 13609if ac_fn_c_try_link "$LINENO"; then : 13610 lt_cv_cc_needs_belf=yes 13611else 13612 lt_cv_cc_needs_belf=no 13613fi 13614rm -f core conftest.err conftest.$ac_objext \ 13615 conftest$ac_exeext conftest.$ac_ext 13616 ac_ext=c 13617ac_cpp='$CPP $CPPFLAGS' 13618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13620ac_compiler_gnu=$ac_cv_c_compiler_gnu 13621 13622fi 13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13624$as_echo "$lt_cv_cc_needs_belf" >&6; } 13625 if test yes != "$lt_cv_cc_needs_belf"; then 13626 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13627 CFLAGS=$SAVE_CFLAGS 13628 fi 13629 ;; 13630*-*solaris*) 13631 # Find out what ABI is being produced by ac_compile, and set linker 13632 # options accordingly. 13633 echo 'int i;' > conftest.$ac_ext 13634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13635 (eval $ac_compile) 2>&5 13636 ac_status=$? 13637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13638 test $ac_status = 0; }; then 13639 case `/usr/bin/file conftest.o` in 13640 *64-bit*) 13641 case $lt_cv_prog_gnu_ld in 13642 yes*) 13643 case $host in 13644 i?86-*-solaris*|x86_64-*-solaris*) 13645 LD="${LD-ld} -m elf_x86_64" 13646 ;; 13647 sparc*-*-solaris*) 13648 LD="${LD-ld} -m elf64_sparc" 13649 ;; 13650 esac 13651 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13652 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13653 LD=${LD-ld}_sol2 13654 fi 13655 ;; 13656 *) 13657 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13658 LD="${LD-ld} -64" 13659 fi 13660 ;; 13661 esac 13662 ;; 13663 esac 13664 fi 13665 rm -rf conftest* 13666 ;; 13667esac 13668 13669need_locks=$enable_libtool_lock 13670 13671if test -n "$ac_tool_prefix"; then 13672 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13673set dummy ${ac_tool_prefix}mt; ac_word=$2 13674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13675$as_echo_n "checking for $ac_word... " >&6; } 13676if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13677 $as_echo_n "(cached) " >&6 13678else 13679 if test -n "$MANIFEST_TOOL"; then 13680 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13681else 13682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13683for as_dir in $PATH 13684do 13685 IFS=$as_save_IFS 13686 test -z "$as_dir" && as_dir=. 13687 for ac_exec_ext in '' $ac_executable_extensions; do 13688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13689 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13691 break 2 13692 fi 13693done 13694 done 13695IFS=$as_save_IFS 13696 13697fi 13698fi 13699MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13700if test -n "$MANIFEST_TOOL"; then 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13702$as_echo "$MANIFEST_TOOL" >&6; } 13703else 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13705$as_echo "no" >&6; } 13706fi 13707 13708 13709fi 13710if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13711 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13712 # Extract the first word of "mt", so it can be a program name with args. 13713set dummy mt; ac_word=$2 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13715$as_echo_n "checking for $ac_word... " >&6; } 13716if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718else 13719 if test -n "$ac_ct_MANIFEST_TOOL"; then 13720 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13721else 13722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13723for as_dir in $PATH 13724do 13725 IFS=$as_save_IFS 13726 test -z "$as_dir" && as_dir=. 13727 for ac_exec_ext in '' $ac_executable_extensions; do 13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13729 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13731 break 2 13732 fi 13733done 13734 done 13735IFS=$as_save_IFS 13736 13737fi 13738fi 13739ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13740if test -n "$ac_ct_MANIFEST_TOOL"; then 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13742$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13743else 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13745$as_echo "no" >&6; } 13746fi 13747 13748 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13749 MANIFEST_TOOL=":" 13750 else 13751 case $cross_compiling:$ac_tool_warned in 13752yes:) 13753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13755ac_tool_warned=yes ;; 13756esac 13757 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13758 fi 13759else 13760 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13761fi 13762 13763test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13765$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13766if ${lt_cv_path_mainfest_tool+:} false; then : 13767 $as_echo_n "(cached) " >&6 13768else 13769 lt_cv_path_mainfest_tool=no 13770 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13771 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13772 cat conftest.err >&5 13773 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13774 lt_cv_path_mainfest_tool=yes 13775 fi 13776 rm -f conftest* 13777fi 13778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13779$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13780if test yes != "$lt_cv_path_mainfest_tool"; then 13781 MANIFEST_TOOL=: 13782fi 13783 13784 13785 13786 13787 13788 13789 case $host_os in 13790 rhapsody* | darwin*) 13791 if test -n "$ac_tool_prefix"; then 13792 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13793set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13795$as_echo_n "checking for $ac_word... " >&6; } 13796if ${ac_cv_prog_DSYMUTIL+:} false; then : 13797 $as_echo_n "(cached) " >&6 13798else 13799 if test -n "$DSYMUTIL"; then 13800 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13801else 13802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13803for as_dir in $PATH 13804do 13805 IFS=$as_save_IFS 13806 test -z "$as_dir" && as_dir=. 13807 for ac_exec_ext in '' $ac_executable_extensions; do 13808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13809 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13811 break 2 13812 fi 13813done 13814 done 13815IFS=$as_save_IFS 13816 13817fi 13818fi 13819DSYMUTIL=$ac_cv_prog_DSYMUTIL 13820if test -n "$DSYMUTIL"; then 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13822$as_echo "$DSYMUTIL" >&6; } 13823else 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13825$as_echo "no" >&6; } 13826fi 13827 13828 13829fi 13830if test -z "$ac_cv_prog_DSYMUTIL"; then 13831 ac_ct_DSYMUTIL=$DSYMUTIL 13832 # Extract the first word of "dsymutil", so it can be a program name with args. 13833set dummy dsymutil; ac_word=$2 13834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13835$as_echo_n "checking for $ac_word... " >&6; } 13836if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13837 $as_echo_n "(cached) " >&6 13838else 13839 if test -n "$ac_ct_DSYMUTIL"; then 13840 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13841else 13842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13843for as_dir in $PATH 13844do 13845 IFS=$as_save_IFS 13846 test -z "$as_dir" && as_dir=. 13847 for ac_exec_ext in '' $ac_executable_extensions; do 13848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13849 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13851 break 2 13852 fi 13853done 13854 done 13855IFS=$as_save_IFS 13856 13857fi 13858fi 13859ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13860if test -n "$ac_ct_DSYMUTIL"; then 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13862$as_echo "$ac_ct_DSYMUTIL" >&6; } 13863else 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13865$as_echo "no" >&6; } 13866fi 13867 13868 if test "x$ac_ct_DSYMUTIL" = x; then 13869 DSYMUTIL=":" 13870 else 13871 case $cross_compiling:$ac_tool_warned in 13872yes:) 13873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13875ac_tool_warned=yes ;; 13876esac 13877 DSYMUTIL=$ac_ct_DSYMUTIL 13878 fi 13879else 13880 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13881fi 13882 13883 if test -n "$ac_tool_prefix"; then 13884 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13885set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13887$as_echo_n "checking for $ac_word... " >&6; } 13888if ${ac_cv_prog_NMEDIT+:} false; then : 13889 $as_echo_n "(cached) " >&6 13890else 13891 if test -n "$NMEDIT"; then 13892 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13893else 13894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13895for as_dir in $PATH 13896do 13897 IFS=$as_save_IFS 13898 test -z "$as_dir" && as_dir=. 13899 for ac_exec_ext in '' $ac_executable_extensions; do 13900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13901 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13903 break 2 13904 fi 13905done 13906 done 13907IFS=$as_save_IFS 13908 13909fi 13910fi 13911NMEDIT=$ac_cv_prog_NMEDIT 13912if test -n "$NMEDIT"; then 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13914$as_echo "$NMEDIT" >&6; } 13915else 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13917$as_echo "no" >&6; } 13918fi 13919 13920 13921fi 13922if test -z "$ac_cv_prog_NMEDIT"; then 13923 ac_ct_NMEDIT=$NMEDIT 13924 # Extract the first word of "nmedit", so it can be a program name with args. 13925set dummy nmedit; ac_word=$2 13926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13927$as_echo_n "checking for $ac_word... " >&6; } 13928if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13929 $as_echo_n "(cached) " >&6 13930else 13931 if test -n "$ac_ct_NMEDIT"; then 13932 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13933else 13934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13935for as_dir in $PATH 13936do 13937 IFS=$as_save_IFS 13938 test -z "$as_dir" && as_dir=. 13939 for ac_exec_ext in '' $ac_executable_extensions; do 13940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13941 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13943 break 2 13944 fi 13945done 13946 done 13947IFS=$as_save_IFS 13948 13949fi 13950fi 13951ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13952if test -n "$ac_ct_NMEDIT"; then 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13954$as_echo "$ac_ct_NMEDIT" >&6; } 13955else 13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13957$as_echo "no" >&6; } 13958fi 13959 13960 if test "x$ac_ct_NMEDIT" = x; then 13961 NMEDIT=":" 13962 else 13963 case $cross_compiling:$ac_tool_warned in 13964yes:) 13965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13967ac_tool_warned=yes ;; 13968esac 13969 NMEDIT=$ac_ct_NMEDIT 13970 fi 13971else 13972 NMEDIT="$ac_cv_prog_NMEDIT" 13973fi 13974 13975 if test -n "$ac_tool_prefix"; then 13976 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13977set dummy ${ac_tool_prefix}lipo; ac_word=$2 13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13979$as_echo_n "checking for $ac_word... " >&6; } 13980if ${ac_cv_prog_LIPO+:} false; then : 13981 $as_echo_n "(cached) " >&6 13982else 13983 if test -n "$LIPO"; then 13984 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13985else 13986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13987for as_dir in $PATH 13988do 13989 IFS=$as_save_IFS 13990 test -z "$as_dir" && as_dir=. 13991 for ac_exec_ext in '' $ac_executable_extensions; do 13992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13993 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13995 break 2 13996 fi 13997done 13998 done 13999IFS=$as_save_IFS 14000 14001fi 14002fi 14003LIPO=$ac_cv_prog_LIPO 14004if test -n "$LIPO"; then 14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14006$as_echo "$LIPO" >&6; } 14007else 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14009$as_echo "no" >&6; } 14010fi 14011 14012 14013fi 14014if test -z "$ac_cv_prog_LIPO"; then 14015 ac_ct_LIPO=$LIPO 14016 # Extract the first word of "lipo", so it can be a program name with args. 14017set dummy lipo; ac_word=$2 14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14019$as_echo_n "checking for $ac_word... " >&6; } 14020if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14021 $as_echo_n "(cached) " >&6 14022else 14023 if test -n "$ac_ct_LIPO"; then 14024 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14025else 14026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14027for as_dir in $PATH 14028do 14029 IFS=$as_save_IFS 14030 test -z "$as_dir" && as_dir=. 14031 for ac_exec_ext in '' $ac_executable_extensions; do 14032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14033 ac_cv_prog_ac_ct_LIPO="lipo" 14034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14035 break 2 14036 fi 14037done 14038 done 14039IFS=$as_save_IFS 14040 14041fi 14042fi 14043ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14044if test -n "$ac_ct_LIPO"; then 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14046$as_echo "$ac_ct_LIPO" >&6; } 14047else 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14049$as_echo "no" >&6; } 14050fi 14051 14052 if test "x$ac_ct_LIPO" = x; then 14053 LIPO=":" 14054 else 14055 case $cross_compiling:$ac_tool_warned in 14056yes:) 14057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14059ac_tool_warned=yes ;; 14060esac 14061 LIPO=$ac_ct_LIPO 14062 fi 14063else 14064 LIPO="$ac_cv_prog_LIPO" 14065fi 14066 14067 if test -n "$ac_tool_prefix"; then 14068 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14069set dummy ${ac_tool_prefix}otool; ac_word=$2 14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14071$as_echo_n "checking for $ac_word... " >&6; } 14072if ${ac_cv_prog_OTOOL+:} false; then : 14073 $as_echo_n "(cached) " >&6 14074else 14075 if test -n "$OTOOL"; then 14076 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14077else 14078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14079for as_dir in $PATH 14080do 14081 IFS=$as_save_IFS 14082 test -z "$as_dir" && as_dir=. 14083 for ac_exec_ext in '' $ac_executable_extensions; do 14084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14085 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14087 break 2 14088 fi 14089done 14090 done 14091IFS=$as_save_IFS 14092 14093fi 14094fi 14095OTOOL=$ac_cv_prog_OTOOL 14096if test -n "$OTOOL"; then 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14098$as_echo "$OTOOL" >&6; } 14099else 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14101$as_echo "no" >&6; } 14102fi 14103 14104 14105fi 14106if test -z "$ac_cv_prog_OTOOL"; then 14107 ac_ct_OTOOL=$OTOOL 14108 # Extract the first word of "otool", so it can be a program name with args. 14109set dummy otool; ac_word=$2 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14111$as_echo_n "checking for $ac_word... " >&6; } 14112if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14113 $as_echo_n "(cached) " >&6 14114else 14115 if test -n "$ac_ct_OTOOL"; then 14116 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14117else 14118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14119for as_dir in $PATH 14120do 14121 IFS=$as_save_IFS 14122 test -z "$as_dir" && as_dir=. 14123 for ac_exec_ext in '' $ac_executable_extensions; do 14124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14125 ac_cv_prog_ac_ct_OTOOL="otool" 14126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14127 break 2 14128 fi 14129done 14130 done 14131IFS=$as_save_IFS 14132 14133fi 14134fi 14135ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14136if test -n "$ac_ct_OTOOL"; then 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14138$as_echo "$ac_ct_OTOOL" >&6; } 14139else 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14141$as_echo "no" >&6; } 14142fi 14143 14144 if test "x$ac_ct_OTOOL" = x; then 14145 OTOOL=":" 14146 else 14147 case $cross_compiling:$ac_tool_warned in 14148yes:) 14149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14151ac_tool_warned=yes ;; 14152esac 14153 OTOOL=$ac_ct_OTOOL 14154 fi 14155else 14156 OTOOL="$ac_cv_prog_OTOOL" 14157fi 14158 14159 if test -n "$ac_tool_prefix"; then 14160 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14161set dummy ${ac_tool_prefix}otool64; ac_word=$2 14162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14163$as_echo_n "checking for $ac_word... " >&6; } 14164if ${ac_cv_prog_OTOOL64+:} false; then : 14165 $as_echo_n "(cached) " >&6 14166else 14167 if test -n "$OTOOL64"; then 14168 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14169else 14170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14171for as_dir in $PATH 14172do 14173 IFS=$as_save_IFS 14174 test -z "$as_dir" && as_dir=. 14175 for ac_exec_ext in '' $ac_executable_extensions; do 14176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14177 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14179 break 2 14180 fi 14181done 14182 done 14183IFS=$as_save_IFS 14184 14185fi 14186fi 14187OTOOL64=$ac_cv_prog_OTOOL64 14188if test -n "$OTOOL64"; then 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14190$as_echo "$OTOOL64" >&6; } 14191else 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14193$as_echo "no" >&6; } 14194fi 14195 14196 14197fi 14198if test -z "$ac_cv_prog_OTOOL64"; then 14199 ac_ct_OTOOL64=$OTOOL64 14200 # Extract the first word of "otool64", so it can be a program name with args. 14201set dummy otool64; ac_word=$2 14202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14203$as_echo_n "checking for $ac_word... " >&6; } 14204if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14205 $as_echo_n "(cached) " >&6 14206else 14207 if test -n "$ac_ct_OTOOL64"; then 14208 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14209else 14210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14211for as_dir in $PATH 14212do 14213 IFS=$as_save_IFS 14214 test -z "$as_dir" && as_dir=. 14215 for ac_exec_ext in '' $ac_executable_extensions; do 14216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14217 ac_cv_prog_ac_ct_OTOOL64="otool64" 14218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14219 break 2 14220 fi 14221done 14222 done 14223IFS=$as_save_IFS 14224 14225fi 14226fi 14227ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14228if test -n "$ac_ct_OTOOL64"; then 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14230$as_echo "$ac_ct_OTOOL64" >&6; } 14231else 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14233$as_echo "no" >&6; } 14234fi 14235 14236 if test "x$ac_ct_OTOOL64" = x; then 14237 OTOOL64=":" 14238 else 14239 case $cross_compiling:$ac_tool_warned in 14240yes:) 14241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14243ac_tool_warned=yes ;; 14244esac 14245 OTOOL64=$ac_ct_OTOOL64 14246 fi 14247else 14248 OTOOL64="$ac_cv_prog_OTOOL64" 14249fi 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14278$as_echo_n "checking for -single_module linker flag... " >&6; } 14279if ${lt_cv_apple_cc_single_mod+:} false; then : 14280 $as_echo_n "(cached) " >&6 14281else 14282 lt_cv_apple_cc_single_mod=no 14283 if test -z "$LT_MULTI_MODULE"; then 14284 # By default we will add the -single_module flag. You can override 14285 # by either setting the environment variable LT_MULTI_MODULE 14286 # non-empty at configure time, or by adding -multi_module to the 14287 # link flags. 14288 rm -rf libconftest.dylib* 14289 echo "int foo(void){return 1;}" > conftest.c 14290 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14291-dynamiclib -Wl,-single_module conftest.c" >&5 14292 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14293 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14294 _lt_result=$? 14295 # If there is a non-empty error log, and "single_module" 14296 # appears in it, assume the flag caused a linker warning 14297 if test -s conftest.err && $GREP single_module conftest.err; then 14298 cat conftest.err >&5 14299 # Otherwise, if the output was created with a 0 exit code from 14300 # the compiler, it worked. 14301 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14302 lt_cv_apple_cc_single_mod=yes 14303 else 14304 cat conftest.err >&5 14305 fi 14306 rm -rf libconftest.dylib* 14307 rm -f conftest.* 14308 fi 14309fi 14310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14311$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14312 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14314$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14315if ${lt_cv_ld_exported_symbols_list+:} false; then : 14316 $as_echo_n "(cached) " >&6 14317else 14318 lt_cv_ld_exported_symbols_list=no 14319 save_LDFLAGS=$LDFLAGS 14320 echo "_main" > conftest.sym 14321 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14323/* end confdefs.h. */ 14324 14325int 14326main () 14327{ 14328 14329 ; 14330 return 0; 14331} 14332_ACEOF 14333if ac_fn_c_try_link "$LINENO"; then : 14334 lt_cv_ld_exported_symbols_list=yes 14335else 14336 lt_cv_ld_exported_symbols_list=no 14337fi 14338rm -f core conftest.err conftest.$ac_objext \ 14339 conftest$ac_exeext conftest.$ac_ext 14340 LDFLAGS=$save_LDFLAGS 14341 14342fi 14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14344$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14345 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14347$as_echo_n "checking for -force_load linker flag... " >&6; } 14348if ${lt_cv_ld_force_load+:} false; then : 14349 $as_echo_n "(cached) " >&6 14350else 14351 lt_cv_ld_force_load=no 14352 cat > conftest.c << _LT_EOF 14353int forced_loaded() { return 2;} 14354_LT_EOF 14355 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14356 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14357 echo "$AR cru libconftest.a conftest.o" >&5 14358 $AR cru libconftest.a conftest.o 2>&5 14359 echo "$RANLIB libconftest.a" >&5 14360 $RANLIB libconftest.a 2>&5 14361 cat > conftest.c << _LT_EOF 14362int main() { return 0;} 14363_LT_EOF 14364 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14365 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14366 _lt_result=$? 14367 if test -s conftest.err && $GREP force_load conftest.err; then 14368 cat conftest.err >&5 14369 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14370 lt_cv_ld_force_load=yes 14371 else 14372 cat conftest.err >&5 14373 fi 14374 rm -f conftest.err libconftest.a conftest conftest.c 14375 rm -rf conftest.dSYM 14376 14377fi 14378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14379$as_echo "$lt_cv_ld_force_load" >&6; } 14380 case $host_os in 14381 rhapsody* | darwin1.[012]) 14382 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14383 darwin1.*) 14384 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14385 darwin*) # darwin 5.x on 14386 # if running on 10.5 or later, the deployment target defaults 14387 # to the OS version, if on x86, and 10.4, the deployment 14388 # target defaults to 10.4. Don't you love it? 14389 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14390 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14391 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14392 10.[012][,.]*) 14393 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14394 10.*) 14395 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14396 esac 14397 ;; 14398 esac 14399 if test yes = "$lt_cv_apple_cc_single_mod"; then 14400 _lt_dar_single_mod='$single_module' 14401 fi 14402 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14403 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14404 else 14405 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14406 fi 14407 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14408 _lt_dsymutil='~$DSYMUTIL $lib || :' 14409 else 14410 _lt_dsymutil= 14411 fi 14412 ;; 14413 esac 14414 14415# func_munge_path_list VARIABLE PATH 14416# ----------------------------------- 14417# VARIABLE is name of variable containing _space_ separated list of 14418# directories to be munged by the contents of PATH, which is string 14419# having a format: 14420# "DIR[:DIR]:" 14421# string "DIR[ DIR]" will be prepended to VARIABLE 14422# ":DIR[:DIR]" 14423# string "DIR[ DIR]" will be appended to VARIABLE 14424# "DIRP[:DIRP]::[DIRA:]DIRA" 14425# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14426# "DIRA[ DIRA]" will be appended to VARIABLE 14427# "DIR[:DIR]" 14428# VARIABLE will be replaced by "DIR[ DIR]" 14429func_munge_path_list () 14430{ 14431 case x$2 in 14432 x) 14433 ;; 14434 *:) 14435 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14436 ;; 14437 x:*) 14438 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14439 ;; 14440 *::*) 14441 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14442 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14443 ;; 14444 *) 14445 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14446 ;; 14447 esac 14448} 14449 14450for ac_header in dlfcn.h 14451do : 14452 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14453" 14454if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14455 cat >>confdefs.h <<_ACEOF 14456#define HAVE_DLFCN_H 1 14457_ACEOF 14458 14459fi 14460 14461done 14462 14463 14464 14465 14466 14467# Set options 14468 14469 14470 14471 enable_dlopen=no 14472 14473 14474 enable_win32_dll=no 14475 14476 14477 # Check whether --enable-shared was given. 14478if test "${enable_shared+set}" = set; then : 14479 enableval=$enable_shared; p=${PACKAGE-default} 14480 case $enableval in 14481 yes) enable_shared=yes ;; 14482 no) enable_shared=no ;; 14483 *) 14484 enable_shared=no 14485 # Look at the argument we got. We use all the common list separators. 14486 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14487 for pkg in $enableval; do 14488 IFS=$lt_save_ifs 14489 if test "X$pkg" = "X$p"; then 14490 enable_shared=yes 14491 fi 14492 done 14493 IFS=$lt_save_ifs 14494 ;; 14495 esac 14496else 14497 enable_shared=yes 14498fi 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510# Check whether --with-pic was given. 14511if test "${with_pic+set}" = set; then : 14512 withval=$with_pic; lt_p=${PACKAGE-default} 14513 case $withval in 14514 yes|no) pic_mode=$withval ;; 14515 *) 14516 pic_mode=default 14517 # Look at the argument we got. We use all the common list separators. 14518 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14519 for lt_pkg in $withval; do 14520 IFS=$lt_save_ifs 14521 if test "X$lt_pkg" = "X$lt_p"; then 14522 pic_mode=yes 14523 fi 14524 done 14525 IFS=$lt_save_ifs 14526 ;; 14527 esac 14528else 14529 pic_mode=default 14530fi 14531 14532 14533 14534 14535 14536 14537 14538 14539 # Check whether --enable-fast-install was given. 14540if test "${enable_fast_install+set}" = set; then : 14541 enableval=$enable_fast_install; p=${PACKAGE-default} 14542 case $enableval in 14543 yes) enable_fast_install=yes ;; 14544 no) enable_fast_install=no ;; 14545 *) 14546 enable_fast_install=no 14547 # Look at the argument we got. We use all the common list separators. 14548 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14549 for pkg in $enableval; do 14550 IFS=$lt_save_ifs 14551 if test "X$pkg" = "X$p"; then 14552 enable_fast_install=yes 14553 fi 14554 done 14555 IFS=$lt_save_ifs 14556 ;; 14557 esac 14558else 14559 enable_fast_install=yes 14560fi 14561 14562 14563 14564 14565 14566 14567 14568 14569 shared_archive_member_spec= 14570case $host,$enable_shared in 14571power*-*-aix[5-9]*,yes) 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14573$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14574 14575# Check whether --with-aix-soname was given. 14576if test "${with_aix_soname+set}" = set; then : 14577 withval=$with_aix_soname; case $withval in 14578 aix|svr4|both) 14579 ;; 14580 *) 14581 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14582 ;; 14583 esac 14584 lt_cv_with_aix_soname=$with_aix_soname 14585else 14586 if ${lt_cv_with_aix_soname+:} false; then : 14587 $as_echo_n "(cached) " >&6 14588else 14589 lt_cv_with_aix_soname=aix 14590fi 14591 14592 with_aix_soname=$lt_cv_with_aix_soname 14593fi 14594 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14596$as_echo "$with_aix_soname" >&6; } 14597 if test aix != "$with_aix_soname"; then 14598 # For the AIX way of multilib, we name the shared archive member 14599 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14600 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14601 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14602 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14603 if test 64 = "${OBJECT_MODE-32}"; then 14604 shared_archive_member_spec=shr_64 14605 else 14606 shared_archive_member_spec=shr 14607 fi 14608 fi 14609 ;; 14610*) 14611 with_aix_soname=aix 14612 ;; 14613esac 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624# This can be used to rebuild libtool when needed 14625LIBTOOL_DEPS=$ltmain 14626 14627# Always use our own libtool. 14628LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659test -z "$LN_S" && LN_S="ln -s" 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674if test -n "${ZSH_VERSION+set}"; then 14675 setopt NO_GLOB_SUBST 14676fi 14677 14678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14679$as_echo_n "checking for objdir... " >&6; } 14680if ${lt_cv_objdir+:} false; then : 14681 $as_echo_n "(cached) " >&6 14682else 14683 rm -f .libs 2>/dev/null 14684mkdir .libs 2>/dev/null 14685if test -d .libs; then 14686 lt_cv_objdir=.libs 14687else 14688 # MS-DOS does not allow filenames that begin with a dot. 14689 lt_cv_objdir=_libs 14690fi 14691rmdir .libs 2>/dev/null 14692fi 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14694$as_echo "$lt_cv_objdir" >&6; } 14695objdir=$lt_cv_objdir 14696 14697 14698 14699 14700 14701cat >>confdefs.h <<_ACEOF 14702#define LT_OBJDIR "$lt_cv_objdir/" 14703_ACEOF 14704 14705 14706 14707 14708case $host_os in 14709aix3*) 14710 # AIX sometimes has problems with the GCC collect2 program. For some 14711 # reason, if we set the COLLECT_NAMES environment variable, the problems 14712 # vanish in a puff of smoke. 14713 if test set != "${COLLECT_NAMES+set}"; then 14714 COLLECT_NAMES= 14715 export COLLECT_NAMES 14716 fi 14717 ;; 14718esac 14719 14720# Global variables: 14721ofile=libtool 14722can_build_shared=yes 14723 14724# All known linkers require a '.a' archive for static linking (except MSVC, 14725# which needs '.lib'). 14726libext=a 14727 14728with_gnu_ld=$lt_cv_prog_gnu_ld 14729 14730old_CC=$CC 14731old_CFLAGS=$CFLAGS 14732 14733# Set sane defaults for various variables 14734test -z "$CC" && CC=cc 14735test -z "$LTCC" && LTCC=$CC 14736test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14737test -z "$LD" && LD=ld 14738test -z "$ac_objext" && ac_objext=o 14739 14740func_cc_basename $compiler 14741cc_basename=$func_cc_basename_result 14742 14743 14744# Only perform the check for file, if the check method requires it 14745test -z "$MAGIC_CMD" && MAGIC_CMD=file 14746case $deplibs_check_method in 14747file_magic*) 14748 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14750$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14751if ${lt_cv_path_MAGIC_CMD+:} false; then : 14752 $as_echo_n "(cached) " >&6 14753else 14754 case $MAGIC_CMD in 14755[\\/*] | ?:[\\/]*) 14756 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14757 ;; 14758*) 14759 lt_save_MAGIC_CMD=$MAGIC_CMD 14760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14761 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14762 for ac_dir in $ac_dummy; do 14763 IFS=$lt_save_ifs 14764 test -z "$ac_dir" && ac_dir=. 14765 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14766 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14767 if test -n "$file_magic_test_file"; then 14768 case $deplibs_check_method in 14769 "file_magic "*) 14770 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14771 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14772 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14773 $EGREP "$file_magic_regex" > /dev/null; then 14774 : 14775 else 14776 cat <<_LT_EOF 1>&2 14777 14778*** Warning: the command libtool uses to detect shared libraries, 14779*** $file_magic_cmd, produces output that libtool cannot recognize. 14780*** The result is that libtool may fail to recognize shared libraries 14781*** as such. This will affect the creation of libtool libraries that 14782*** depend on shared libraries, but programs linked with such libtool 14783*** libraries will work regardless of this problem. Nevertheless, you 14784*** may want to report the problem to your system manager and/or to 14785*** bug-libtool@gnu.org 14786 14787_LT_EOF 14788 fi ;; 14789 esac 14790 fi 14791 break 14792 fi 14793 done 14794 IFS=$lt_save_ifs 14795 MAGIC_CMD=$lt_save_MAGIC_CMD 14796 ;; 14797esac 14798fi 14799 14800MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14801if test -n "$MAGIC_CMD"; then 14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14803$as_echo "$MAGIC_CMD" >&6; } 14804else 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14806$as_echo "no" >&6; } 14807fi 14808 14809 14810 14811 14812 14813if test -z "$lt_cv_path_MAGIC_CMD"; then 14814 if test -n "$ac_tool_prefix"; then 14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14816$as_echo_n "checking for file... " >&6; } 14817if ${lt_cv_path_MAGIC_CMD+:} false; then : 14818 $as_echo_n "(cached) " >&6 14819else 14820 case $MAGIC_CMD in 14821[\\/*] | ?:[\\/]*) 14822 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14823 ;; 14824*) 14825 lt_save_MAGIC_CMD=$MAGIC_CMD 14826 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14828 for ac_dir in $ac_dummy; do 14829 IFS=$lt_save_ifs 14830 test -z "$ac_dir" && ac_dir=. 14831 if test -f "$ac_dir/file"; then 14832 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14833 if test -n "$file_magic_test_file"; then 14834 case $deplibs_check_method in 14835 "file_magic "*) 14836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14839 $EGREP "$file_magic_regex" > /dev/null; then 14840 : 14841 else 14842 cat <<_LT_EOF 1>&2 14843 14844*** Warning: the command libtool uses to detect shared libraries, 14845*** $file_magic_cmd, produces output that libtool cannot recognize. 14846*** The result is that libtool may fail to recognize shared libraries 14847*** as such. This will affect the creation of libtool libraries that 14848*** depend on shared libraries, but programs linked with such libtool 14849*** libraries will work regardless of this problem. Nevertheless, you 14850*** may want to report the problem to your system manager and/or to 14851*** bug-libtool@gnu.org 14852 14853_LT_EOF 14854 fi ;; 14855 esac 14856 fi 14857 break 14858 fi 14859 done 14860 IFS=$lt_save_ifs 14861 MAGIC_CMD=$lt_save_MAGIC_CMD 14862 ;; 14863esac 14864fi 14865 14866MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14867if test -n "$MAGIC_CMD"; then 14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14869$as_echo "$MAGIC_CMD" >&6; } 14870else 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14872$as_echo "no" >&6; } 14873fi 14874 14875 14876 else 14877 MAGIC_CMD=: 14878 fi 14879fi 14880 14881 fi 14882 ;; 14883esac 14884 14885# Use C for the default configuration in the libtool script 14886 14887lt_save_CC=$CC 14888ac_ext=c 14889ac_cpp='$CPP $CPPFLAGS' 14890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14892ac_compiler_gnu=$ac_cv_c_compiler_gnu 14893 14894 14895# Source file extension for C test sources. 14896ac_ext=c 14897 14898# Object file extension for compiled C test sources. 14899objext=o 14900objext=$objext 14901 14902# Code to be used in simple compile tests 14903lt_simple_compile_test_code="int some_variable = 0;" 14904 14905# Code to be used in simple link tests 14906lt_simple_link_test_code='int main(){return(0);}' 14907 14908 14909 14910 14911 14912 14913 14914# If no C compiler was specified, use CC. 14915LTCC=${LTCC-"$CC"} 14916 14917# If no C compiler flags were specified, use CFLAGS. 14918LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14919 14920# Allow CC to be a program name with arguments. 14921compiler=$CC 14922 14923# Save the default compiler, since it gets overwritten when the other 14924# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14925compiler_DEFAULT=$CC 14926 14927# save warnings/boilerplate of simple test code 14928ac_outfile=conftest.$ac_objext 14929echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14930eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14931_lt_compiler_boilerplate=`cat conftest.err` 14932$RM conftest* 14933 14934ac_outfile=conftest.$ac_objext 14935echo "$lt_simple_link_test_code" >conftest.$ac_ext 14936eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14937_lt_linker_boilerplate=`cat conftest.err` 14938$RM -r conftest* 14939 14940 14941if test -n "$compiler"; then 14942 14943lt_prog_compiler_no_builtin_flag= 14944 14945if test yes = "$GCC"; then 14946 case $cc_basename in 14947 nvcc*) 14948 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14949 *) 14950 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14951 esac 14952 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14954$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14955if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14956 $as_echo_n "(cached) " >&6 14957else 14958 lt_cv_prog_compiler_rtti_exceptions=no 14959 ac_outfile=conftest.$ac_objext 14960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14961 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14962 # Insert the option either (1) after the last *FLAGS variable, or 14963 # (2) before a word containing "conftest.", or (3) at the end. 14964 # Note that $ac_compile itself does not contain backslashes and begins 14965 # with a dollar sign (not a hyphen), so the echo should work correctly. 14966 # The option is referenced via a variable to avoid confusing sed. 14967 lt_compile=`echo "$ac_compile" | $SED \ 14968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14970 -e 's:$: $lt_compiler_flag:'` 14971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14972 (eval "$lt_compile" 2>conftest.err) 14973 ac_status=$? 14974 cat conftest.err >&5 14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14976 if (exit $ac_status) && test -s "$ac_outfile"; then 14977 # The compiler can only warn and ignore the option if not recognized 14978 # So say no if there are warnings other than the usual output. 14979 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14982 lt_cv_prog_compiler_rtti_exceptions=yes 14983 fi 14984 fi 14985 $RM conftest* 14986 14987fi 14988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14989$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14990 14991if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14992 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14993else 14994 : 14995fi 14996 14997fi 14998 14999 15000 15001 15002 15003 15004 lt_prog_compiler_wl= 15005lt_prog_compiler_pic= 15006lt_prog_compiler_static= 15007 15008 15009 if test yes = "$GCC"; then 15010 lt_prog_compiler_wl='-Wl,' 15011 lt_prog_compiler_static='-static' 15012 15013 case $host_os in 15014 aix*) 15015 # All AIX code is PIC. 15016 if test ia64 = "$host_cpu"; then 15017 # AIX 5 now supports IA64 processor 15018 lt_prog_compiler_static='-Bstatic' 15019 fi 15020 lt_prog_compiler_pic='-fPIC' 15021 ;; 15022 15023 amigaos*) 15024 case $host_cpu in 15025 powerpc) 15026 # see comment about AmigaOS4 .so support 15027 lt_prog_compiler_pic='-fPIC' 15028 ;; 15029 m68k) 15030 # FIXME: we need at least 68020 code to build shared libraries, but 15031 # adding the '-m68020' flag to GCC prevents building anything better, 15032 # like '-m68040'. 15033 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15034 ;; 15035 esac 15036 ;; 15037 15038 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15039 # PIC is the default for these OSes. 15040 ;; 15041 15042 mingw* | cygwin* | pw32* | os2* | cegcc*) 15043 # This hack is so that the source file can tell whether it is being 15044 # built for inclusion in a dll (and should export symbols for example). 15045 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15046 # (--disable-auto-import) libraries 15047 lt_prog_compiler_pic='-DDLL_EXPORT' 15048 case $host_os in 15049 os2*) 15050 lt_prog_compiler_static='$wl-static' 15051 ;; 15052 esac 15053 ;; 15054 15055 darwin* | rhapsody*) 15056 # PIC is the default on this platform 15057 # Common symbols not allowed in MH_DYLIB files 15058 lt_prog_compiler_pic='-fno-common' 15059 ;; 15060 15061 haiku*) 15062 # PIC is the default for Haiku. 15063 # The "-static" flag exists, but is broken. 15064 lt_prog_compiler_static= 15065 ;; 15066 15067 hpux*) 15068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15070 # sets the default TLS model and affects inlining. 15071 case $host_cpu in 15072 hppa*64*) 15073 # +Z the default 15074 ;; 15075 *) 15076 lt_prog_compiler_pic='-fPIC' 15077 ;; 15078 esac 15079 ;; 15080 15081 interix[3-9]*) 15082 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15083 # Instead, we relocate shared libraries at runtime. 15084 ;; 15085 15086 msdosdjgpp*) 15087 # Just because we use GCC doesn't mean we suddenly get shared libraries 15088 # on systems that don't support them. 15089 lt_prog_compiler_can_build_shared=no 15090 enable_shared=no 15091 ;; 15092 15093 *nto* | *qnx*) 15094 # QNX uses GNU C++, but need to define -shared option too, otherwise 15095 # it will coredump. 15096 lt_prog_compiler_pic='-fPIC -shared' 15097 ;; 15098 15099 sysv4*MP*) 15100 if test -d /usr/nec; then 15101 lt_prog_compiler_pic=-Kconform_pic 15102 fi 15103 ;; 15104 15105 *) 15106 lt_prog_compiler_pic='-fPIC' 15107 ;; 15108 esac 15109 15110 case $cc_basename in 15111 nvcc*) # Cuda Compiler Driver 2.2 15112 lt_prog_compiler_wl='-Xlinker ' 15113 if test -n "$lt_prog_compiler_pic"; then 15114 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15115 fi 15116 ;; 15117 esac 15118 else 15119 # PORTME Check for flag to pass linker flags through the system compiler. 15120 case $host_os in 15121 aix*) 15122 lt_prog_compiler_wl='-Wl,' 15123 if test ia64 = "$host_cpu"; then 15124 # AIX 5 now supports IA64 processor 15125 lt_prog_compiler_static='-Bstatic' 15126 else 15127 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15128 fi 15129 ;; 15130 15131 darwin* | rhapsody*) 15132 # PIC is the default on this platform 15133 # Common symbols not allowed in MH_DYLIB files 15134 lt_prog_compiler_pic='-fno-common' 15135 case $cc_basename in 15136 nagfor*) 15137 # NAG Fortran compiler 15138 lt_prog_compiler_wl='-Wl,-Wl,,' 15139 lt_prog_compiler_pic='-PIC' 15140 lt_prog_compiler_static='-Bstatic' 15141 ;; 15142 esac 15143 ;; 15144 15145 mingw* | cygwin* | pw32* | os2* | cegcc*) 15146 # This hack is so that the source file can tell whether it is being 15147 # built for inclusion in a dll (and should export symbols for example). 15148 lt_prog_compiler_pic='-DDLL_EXPORT' 15149 case $host_os in 15150 os2*) 15151 lt_prog_compiler_static='$wl-static' 15152 ;; 15153 esac 15154 ;; 15155 15156 hpux9* | hpux10* | hpux11*) 15157 lt_prog_compiler_wl='-Wl,' 15158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15159 # not for PA HP-UX. 15160 case $host_cpu in 15161 hppa*64*|ia64*) 15162 # +Z the default 15163 ;; 15164 *) 15165 lt_prog_compiler_pic='+Z' 15166 ;; 15167 esac 15168 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15169 lt_prog_compiler_static='$wl-a ${wl}archive' 15170 ;; 15171 15172 irix5* | irix6* | nonstopux*) 15173 lt_prog_compiler_wl='-Wl,' 15174 # PIC (with -KPIC) is the default. 15175 lt_prog_compiler_static='-non_shared' 15176 ;; 15177 15178 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15179 case $cc_basename in 15180 # old Intel for x86_64, which still supported -KPIC. 15181 ecc*) 15182 lt_prog_compiler_wl='-Wl,' 15183 lt_prog_compiler_pic='-KPIC' 15184 lt_prog_compiler_static='-static' 15185 ;; 15186 # icc used to be incompatible with GCC. 15187 # ICC 10 doesn't accept -KPIC any more. 15188 icc* | ifort*) 15189 lt_prog_compiler_wl='-Wl,' 15190 lt_prog_compiler_pic='-fPIC' 15191 lt_prog_compiler_static='-static' 15192 ;; 15193 # Lahey Fortran 8.1. 15194 lf95*) 15195 lt_prog_compiler_wl='-Wl,' 15196 lt_prog_compiler_pic='--shared' 15197 lt_prog_compiler_static='--static' 15198 ;; 15199 nagfor*) 15200 # NAG Fortran compiler 15201 lt_prog_compiler_wl='-Wl,-Wl,,' 15202 lt_prog_compiler_pic='-PIC' 15203 lt_prog_compiler_static='-Bstatic' 15204 ;; 15205 tcc*) 15206 # Fabrice Bellard et al's Tiny C Compiler 15207 lt_prog_compiler_wl='-Wl,' 15208 lt_prog_compiler_pic='-fPIC' 15209 lt_prog_compiler_static='-static' 15210 ;; 15211 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15212 # Portland Group compilers (*not* the Pentium gcc compiler, 15213 # which looks to be a dead project) 15214 lt_prog_compiler_wl='-Wl,' 15215 lt_prog_compiler_pic='-fpic' 15216 lt_prog_compiler_static='-Bstatic' 15217 ;; 15218 ccc*) 15219 lt_prog_compiler_wl='-Wl,' 15220 # All Alpha code is PIC. 15221 lt_prog_compiler_static='-non_shared' 15222 ;; 15223 xl* | bgxl* | bgf* | mpixl*) 15224 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15225 lt_prog_compiler_wl='-Wl,' 15226 lt_prog_compiler_pic='-qpic' 15227 lt_prog_compiler_static='-qstaticlink' 15228 ;; 15229 *) 15230 case `$CC -V 2>&1 | sed 5q` in 15231 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15232 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15233 lt_prog_compiler_pic='-KPIC' 15234 lt_prog_compiler_static='-Bstatic' 15235 lt_prog_compiler_wl='' 15236 ;; 15237 *Sun\ F* | *Sun*Fortran*) 15238 lt_prog_compiler_pic='-KPIC' 15239 lt_prog_compiler_static='-Bstatic' 15240 lt_prog_compiler_wl='-Qoption ld ' 15241 ;; 15242 *Sun\ C*) 15243 # Sun C 5.9 15244 lt_prog_compiler_pic='-KPIC' 15245 lt_prog_compiler_static='-Bstatic' 15246 lt_prog_compiler_wl='-Wl,' 15247 ;; 15248 *Intel*\ [CF]*Compiler*) 15249 lt_prog_compiler_wl='-Wl,' 15250 lt_prog_compiler_pic='-fPIC' 15251 lt_prog_compiler_static='-static' 15252 ;; 15253 *Portland\ Group*) 15254 lt_prog_compiler_wl='-Wl,' 15255 lt_prog_compiler_pic='-fpic' 15256 lt_prog_compiler_static='-Bstatic' 15257 ;; 15258 esac 15259 ;; 15260 esac 15261 ;; 15262 15263 newsos6) 15264 lt_prog_compiler_pic='-KPIC' 15265 lt_prog_compiler_static='-Bstatic' 15266 ;; 15267 15268 *nto* | *qnx*) 15269 # QNX uses GNU C++, but need to define -shared option too, otherwise 15270 # it will coredump. 15271 lt_prog_compiler_pic='-fPIC -shared' 15272 ;; 15273 15274 osf3* | osf4* | osf5*) 15275 lt_prog_compiler_wl='-Wl,' 15276 # All OSF/1 code is PIC. 15277 lt_prog_compiler_static='-non_shared' 15278 ;; 15279 15280 rdos*) 15281 lt_prog_compiler_static='-non_shared' 15282 ;; 15283 15284 solaris*) 15285 lt_prog_compiler_pic='-KPIC' 15286 lt_prog_compiler_static='-Bstatic' 15287 case $cc_basename in 15288 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15289 lt_prog_compiler_wl='-Qoption ld ';; 15290 *) 15291 lt_prog_compiler_wl='-Wl,';; 15292 esac 15293 ;; 15294 15295 sunos4*) 15296 lt_prog_compiler_wl='-Qoption ld ' 15297 lt_prog_compiler_pic='-PIC' 15298 lt_prog_compiler_static='-Bstatic' 15299 ;; 15300 15301 sysv4 | sysv4.2uw2* | sysv4.3*) 15302 lt_prog_compiler_wl='-Wl,' 15303 lt_prog_compiler_pic='-KPIC' 15304 lt_prog_compiler_static='-Bstatic' 15305 ;; 15306 15307 sysv4*MP*) 15308 if test -d /usr/nec; then 15309 lt_prog_compiler_pic='-Kconform_pic' 15310 lt_prog_compiler_static='-Bstatic' 15311 fi 15312 ;; 15313 15314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15315 lt_prog_compiler_wl='-Wl,' 15316 lt_prog_compiler_pic='-KPIC' 15317 lt_prog_compiler_static='-Bstatic' 15318 ;; 15319 15320 unicos*) 15321 lt_prog_compiler_wl='-Wl,' 15322 lt_prog_compiler_can_build_shared=no 15323 ;; 15324 15325 uts4*) 15326 lt_prog_compiler_pic='-pic' 15327 lt_prog_compiler_static='-Bstatic' 15328 ;; 15329 15330 *) 15331 lt_prog_compiler_can_build_shared=no 15332 ;; 15333 esac 15334 fi 15335 15336case $host_os in 15337 # For platforms that do not support PIC, -DPIC is meaningless: 15338 *djgpp*) 15339 lt_prog_compiler_pic= 15340 ;; 15341 *) 15342 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15343 ;; 15344esac 15345 15346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15347$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15348if ${lt_cv_prog_compiler_pic+:} false; then : 15349 $as_echo_n "(cached) " >&6 15350else 15351 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15352fi 15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15354$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15355lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15356 15357# 15358# Check to make sure the PIC flag actually works. 15359# 15360if test -n "$lt_prog_compiler_pic"; then 15361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15362$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15363if ${lt_cv_prog_compiler_pic_works+:} false; then : 15364 $as_echo_n "(cached) " >&6 15365else 15366 lt_cv_prog_compiler_pic_works=no 15367 ac_outfile=conftest.$ac_objext 15368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15369 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15370 # Insert the option either (1) after the last *FLAGS variable, or 15371 # (2) before a word containing "conftest.", or (3) at the end. 15372 # Note that $ac_compile itself does not contain backslashes and begins 15373 # with a dollar sign (not a hyphen), so the echo should work correctly. 15374 # The option is referenced via a variable to avoid confusing sed. 15375 lt_compile=`echo "$ac_compile" | $SED \ 15376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15378 -e 's:$: $lt_compiler_flag:'` 15379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15380 (eval "$lt_compile" 2>conftest.err) 15381 ac_status=$? 15382 cat conftest.err >&5 15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15384 if (exit $ac_status) && test -s "$ac_outfile"; then 15385 # The compiler can only warn and ignore the option if not recognized 15386 # So say no if there are warnings other than the usual output. 15387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15390 lt_cv_prog_compiler_pic_works=yes 15391 fi 15392 fi 15393 $RM conftest* 15394 15395fi 15396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15397$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15398 15399if test yes = "$lt_cv_prog_compiler_pic_works"; then 15400 case $lt_prog_compiler_pic in 15401 "" | " "*) ;; 15402 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15403 esac 15404else 15405 lt_prog_compiler_pic= 15406 lt_prog_compiler_can_build_shared=no 15407fi 15408 15409fi 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421# 15422# Check to make sure the static flag actually works. 15423# 15424wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15426$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15427if ${lt_cv_prog_compiler_static_works+:} false; then : 15428 $as_echo_n "(cached) " >&6 15429else 15430 lt_cv_prog_compiler_static_works=no 15431 save_LDFLAGS=$LDFLAGS 15432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15433 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15435 # The linker can only warn and ignore the option if not recognized 15436 # So say no if there are warnings 15437 if test -s conftest.err; then 15438 # Append any errors to the config.log. 15439 cat conftest.err 1>&5 15440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15442 if diff conftest.exp conftest.er2 >/dev/null; then 15443 lt_cv_prog_compiler_static_works=yes 15444 fi 15445 else 15446 lt_cv_prog_compiler_static_works=yes 15447 fi 15448 fi 15449 $RM -r conftest* 15450 LDFLAGS=$save_LDFLAGS 15451 15452fi 15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15454$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15455 15456if test yes = "$lt_cv_prog_compiler_static_works"; then 15457 : 15458else 15459 lt_prog_compiler_static= 15460fi 15461 15462 15463 15464 15465 15466 15467 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15469$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15470if ${lt_cv_prog_compiler_c_o+:} false; then : 15471 $as_echo_n "(cached) " >&6 15472else 15473 lt_cv_prog_compiler_c_o=no 15474 $RM -r conftest 2>/dev/null 15475 mkdir conftest 15476 cd conftest 15477 mkdir out 15478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15479 15480 lt_compiler_flag="-o out/conftest2.$ac_objext" 15481 # Insert the option either (1) after the last *FLAGS variable, or 15482 # (2) before a word containing "conftest.", or (3) at the end. 15483 # Note that $ac_compile itself does not contain backslashes and begins 15484 # with a dollar sign (not a hyphen), so the echo should work correctly. 15485 lt_compile=`echo "$ac_compile" | $SED \ 15486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15488 -e 's:$: $lt_compiler_flag:'` 15489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15490 (eval "$lt_compile" 2>out/conftest.err) 15491 ac_status=$? 15492 cat out/conftest.err >&5 15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15494 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15495 then 15496 # The compiler can only warn and ignore the option if not recognized 15497 # So say no if there are warnings 15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15501 lt_cv_prog_compiler_c_o=yes 15502 fi 15503 fi 15504 chmod u+w . 2>&5 15505 $RM conftest* 15506 # SGI C++ compiler will create directory out/ii_files/ for 15507 # template instantiation 15508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15509 $RM out/* && rmdir out 15510 cd .. 15511 $RM -r conftest 15512 $RM conftest* 15513 15514fi 15515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15516$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15517 15518 15519 15520 15521 15522 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15524$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15525if ${lt_cv_prog_compiler_c_o+:} false; then : 15526 $as_echo_n "(cached) " >&6 15527else 15528 lt_cv_prog_compiler_c_o=no 15529 $RM -r conftest 2>/dev/null 15530 mkdir conftest 15531 cd conftest 15532 mkdir out 15533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15534 15535 lt_compiler_flag="-o out/conftest2.$ac_objext" 15536 # Insert the option either (1) after the last *FLAGS variable, or 15537 # (2) before a word containing "conftest.", or (3) at the end. 15538 # Note that $ac_compile itself does not contain backslashes and begins 15539 # with a dollar sign (not a hyphen), so the echo should work correctly. 15540 lt_compile=`echo "$ac_compile" | $SED \ 15541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15543 -e 's:$: $lt_compiler_flag:'` 15544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15545 (eval "$lt_compile" 2>out/conftest.err) 15546 ac_status=$? 15547 cat out/conftest.err >&5 15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15549 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15550 then 15551 # The compiler can only warn and ignore the option if not recognized 15552 # So say no if there are warnings 15553 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15556 lt_cv_prog_compiler_c_o=yes 15557 fi 15558 fi 15559 chmod u+w . 2>&5 15560 $RM conftest* 15561 # SGI C++ compiler will create directory out/ii_files/ for 15562 # template instantiation 15563 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15564 $RM out/* && rmdir out 15565 cd .. 15566 $RM -r conftest 15567 $RM conftest* 15568 15569fi 15570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15571$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15572 15573 15574 15575 15576hard_links=nottested 15577if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15578 # do not overwrite the value of need_locks provided by the user 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15580$as_echo_n "checking if we can lock with hard links... " >&6; } 15581 hard_links=yes 15582 $RM conftest* 15583 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15584 touch conftest.a 15585 ln conftest.a conftest.b 2>&5 || hard_links=no 15586 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15588$as_echo "$hard_links" >&6; } 15589 if test no = "$hard_links"; then 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15591$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15592 need_locks=warn 15593 fi 15594else 15595 need_locks=no 15596fi 15597 15598 15599 15600 15601 15602 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15604$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15605 15606 runpath_var= 15607 allow_undefined_flag= 15608 always_export_symbols=no 15609 archive_cmds= 15610 archive_expsym_cmds= 15611 compiler_needs_object=no 15612 enable_shared_with_static_runtimes=no 15613 export_dynamic_flag_spec= 15614 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15615 hardcode_automatic=no 15616 hardcode_direct=no 15617 hardcode_direct_absolute=no 15618 hardcode_libdir_flag_spec= 15619 hardcode_libdir_separator= 15620 hardcode_minus_L=no 15621 hardcode_shlibpath_var=unsupported 15622 inherit_rpath=no 15623 link_all_deplibs=unknown 15624 module_cmds= 15625 module_expsym_cmds= 15626 old_archive_from_new_cmds= 15627 old_archive_from_expsyms_cmds= 15628 thread_safe_flag_spec= 15629 whole_archive_flag_spec= 15630 # include_expsyms should be a list of space-separated symbols to be *always* 15631 # included in the symbol list 15632 include_expsyms= 15633 # exclude_expsyms can be an extended regexp of symbols to exclude 15634 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15635 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15636 # as well as any symbol that contains 'd'. 15637 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15638 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15639 # platforms (ab)use it in PIC code, but their linkers get confused if 15640 # the symbol is explicitly referenced. Since portable code cannot 15641 # rely on this symbol name, it's probably fine to never include it in 15642 # preloaded symbol tables. 15643 # Exclude shared library initialization/finalization symbols. 15644 extract_expsyms_cmds= 15645 15646 case $host_os in 15647 cygwin* | mingw* | pw32* | cegcc*) 15648 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15649 # When not using gcc, we currently assume that we are using 15650 # Microsoft Visual C++. 15651 if test yes != "$GCC"; then 15652 with_gnu_ld=no 15653 fi 15654 ;; 15655 interix*) 15656 # we just hope/assume this is gcc and not c89 (= MSVC++) 15657 with_gnu_ld=yes 15658 ;; 15659 openbsd* | bitrig*) 15660 with_gnu_ld=no 15661 ;; 15662 linux* | k*bsd*-gnu | gnu*) 15663 link_all_deplibs=no 15664 ;; 15665 esac 15666 15667 ld_shlibs=yes 15668 15669 # On some targets, GNU ld is compatible enough with the native linker 15670 # that we're better off using the native interface for both. 15671 lt_use_gnu_ld_interface=no 15672 if test yes = "$with_gnu_ld"; then 15673 case $host_os in 15674 aix*) 15675 # The AIX port of GNU ld has always aspired to compatibility 15676 # with the native linker. However, as the warning in the GNU ld 15677 # block says, versions before 2.19.5* couldn't really create working 15678 # shared libraries, regardless of the interface used. 15679 case `$LD -v 2>&1` in 15680 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15681 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15682 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15683 *) 15684 lt_use_gnu_ld_interface=yes 15685 ;; 15686 esac 15687 ;; 15688 *) 15689 lt_use_gnu_ld_interface=yes 15690 ;; 15691 esac 15692 fi 15693 15694 if test yes = "$lt_use_gnu_ld_interface"; then 15695 # If archive_cmds runs LD, not CC, wlarc should be empty 15696 wlarc='$wl' 15697 15698 # Set some defaults for GNU ld with shared library support. These 15699 # are reset later if shared libraries are not supported. Putting them 15700 # here allows them to be overridden if necessary. 15701 runpath_var=LD_RUN_PATH 15702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15703 export_dynamic_flag_spec='$wl--export-dynamic' 15704 # ancient GNU ld didn't support --whole-archive et. al. 15705 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15706 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15707 else 15708 whole_archive_flag_spec= 15709 fi 15710 supports_anon_versioning=no 15711 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15712 *GNU\ gold*) supports_anon_versioning=yes ;; 15713 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15714 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15715 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15716 *\ 2.11.*) ;; # other 2.11 versions 15717 *) supports_anon_versioning=yes ;; 15718 esac 15719 15720 # See if GNU ld supports shared libraries. 15721 case $host_os in 15722 aix[3-9]*) 15723 # On AIX/PPC, the GNU linker is very broken 15724 if test ia64 != "$host_cpu"; then 15725 ld_shlibs=no 15726 cat <<_LT_EOF 1>&2 15727 15728*** Warning: the GNU linker, at least up to release 2.19, is reported 15729*** to be unable to reliably create shared libraries on AIX. 15730*** Therefore, libtool is disabling shared libraries support. If you 15731*** really care for shared libraries, you may want to install binutils 15732*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15733*** You will then need to restart the configuration process. 15734 15735_LT_EOF 15736 fi 15737 ;; 15738 15739 amigaos*) 15740 case $host_cpu in 15741 powerpc) 15742 # see comment about AmigaOS4 .so support 15743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15744 archive_expsym_cmds='' 15745 ;; 15746 m68k) 15747 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)' 15748 hardcode_libdir_flag_spec='-L$libdir' 15749 hardcode_minus_L=yes 15750 ;; 15751 esac 15752 ;; 15753 15754 beos*) 15755 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15756 allow_undefined_flag=unsupported 15757 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15758 # support --undefined. This deserves some investigation. FIXME 15759 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15760 else 15761 ld_shlibs=no 15762 fi 15763 ;; 15764 15765 cygwin* | mingw* | pw32* | cegcc*) 15766 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15767 # as there is no search path for DLLs. 15768 hardcode_libdir_flag_spec='-L$libdir' 15769 export_dynamic_flag_spec='$wl--export-all-symbols' 15770 allow_undefined_flag=unsupported 15771 always_export_symbols=no 15772 enable_shared_with_static_runtimes=yes 15773 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' 15774 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15775 15776 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15778 # If the export-symbols file already is a .def file, use it as 15779 # is; otherwise, prepend EXPORTS... 15780 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15781 cp $export_symbols $output_objdir/$soname.def; 15782 else 15783 echo EXPORTS > $output_objdir/$soname.def; 15784 cat $export_symbols >> $output_objdir/$soname.def; 15785 fi~ 15786 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15787 else 15788 ld_shlibs=no 15789 fi 15790 ;; 15791 15792 haiku*) 15793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15794 link_all_deplibs=yes 15795 ;; 15796 15797 os2*) 15798 hardcode_libdir_flag_spec='-L$libdir' 15799 hardcode_minus_L=yes 15800 allow_undefined_flag=unsupported 15801 shrext_cmds=.dll 15802 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15803 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15804 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15805 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15806 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15807 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15808 emximp -o $lib $output_objdir/$libname.def' 15809 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15810 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15811 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15812 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15813 prefix_cmds="$SED"~ 15814 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15815 prefix_cmds="$prefix_cmds -e 1d"; 15816 fi~ 15817 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15818 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15819 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15820 emximp -o $lib $output_objdir/$libname.def' 15821 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15822 enable_shared_with_static_runtimes=yes 15823 ;; 15824 15825 interix[3-9]*) 15826 hardcode_direct=no 15827 hardcode_shlibpath_var=no 15828 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15829 export_dynamic_flag_spec='$wl-E' 15830 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15831 # Instead, shared libraries are loaded at an image base (0x10000000 by 15832 # default) and relocated if they conflict, which is a slow very memory 15833 # consuming and fragmenting process. To avoid this, we pick a random, 15834 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15835 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15837 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' 15838 ;; 15839 15840 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15841 tmp_diet=no 15842 if test linux-dietlibc = "$host_os"; then 15843 case $cc_basename in 15844 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15845 esac 15846 fi 15847 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15848 && test no = "$tmp_diet" 15849 then 15850 tmp_addflag=' $pic_flag' 15851 tmp_sharedflag='-shared' 15852 case $cc_basename,$host_cpu in 15853 pgcc*) # Portland Group C compiler 15854 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' 15855 tmp_addflag=' $pic_flag' 15856 ;; 15857 pgf77* | pgf90* | pgf95* | pgfortran*) 15858 # Portland Group f77 and f90 compilers 15859 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' 15860 tmp_addflag=' $pic_flag -Mnomain' ;; 15861 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15862 tmp_addflag=' -i_dynamic' ;; 15863 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15864 tmp_addflag=' -i_dynamic -nofor_main' ;; 15865 ifc* | ifort*) # Intel Fortran compiler 15866 tmp_addflag=' -nofor_main' ;; 15867 lf95*) # Lahey Fortran 8.1 15868 whole_archive_flag_spec= 15869 tmp_sharedflag='--shared' ;; 15870 nagfor*) # NAGFOR 5.3 15871 tmp_sharedflag='-Wl,-shared' ;; 15872 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15873 tmp_sharedflag='-qmkshrobj' 15874 tmp_addflag= ;; 15875 nvcc*) # Cuda Compiler Driver 2.2 15876 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' 15877 compiler_needs_object=yes 15878 ;; 15879 esac 15880 case `$CC -V 2>&1 | sed 5q` in 15881 *Sun\ C*) # Sun C 5.9 15882 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' 15883 compiler_needs_object=yes 15884 tmp_sharedflag='-G' ;; 15885 *Sun\ F*) # Sun Fortran 8.3 15886 tmp_sharedflag='-G' ;; 15887 esac 15888 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15889 15890 if test yes = "$supports_anon_versioning"; then 15891 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15892 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15893 echo "local: *; };" >> $output_objdir/$libname.ver~ 15894 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15895 fi 15896 15897 case $cc_basename in 15898 tcc*) 15899 export_dynamic_flag_spec='-rdynamic' 15900 ;; 15901 xlf* | bgf* | bgxlf* | mpixlf*) 15902 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15903 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15905 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15906 if test yes = "$supports_anon_versioning"; then 15907 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15908 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15909 echo "local: *; };" >> $output_objdir/$libname.ver~ 15910 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15911 fi 15912 ;; 15913 esac 15914 else 15915 ld_shlibs=no 15916 fi 15917 ;; 15918 15919 netbsd* | netbsdelf*-gnu) 15920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15921 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15922 wlarc= 15923 else 15924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15925 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15926 fi 15927 ;; 15928 15929 solaris*) 15930 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15931 ld_shlibs=no 15932 cat <<_LT_EOF 1>&2 15933 15934*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15935*** create shared libraries on Solaris systems. Therefore, libtool 15936*** is disabling shared libraries support. We urge you to upgrade GNU 15937*** binutils to release 2.9.1 or newer. Another option is to modify 15938*** your PATH or compiler configuration so that the native linker is 15939*** used, and then restart. 15940 15941_LT_EOF 15942 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15943 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15944 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15945 else 15946 ld_shlibs=no 15947 fi 15948 ;; 15949 15950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15951 case `$LD -v 2>&1` in 15952 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15953 ld_shlibs=no 15954 cat <<_LT_EOF 1>&2 15955 15956*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15957*** reliably create shared libraries on SCO systems. Therefore, libtool 15958*** is disabling shared libraries support. We urge you to upgrade GNU 15959*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15960*** your PATH or compiler configuration so that the native linker is 15961*** used, and then restart. 15962 15963_LT_EOF 15964 ;; 15965 *) 15966 # For security reasons, it is highly recommended that you always 15967 # use absolute paths for naming shared libraries, and exclude the 15968 # DT_RUNPATH tag from executables and libraries. But doing so 15969 # requires that you compile everything twice, which is a pain. 15970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15974 else 15975 ld_shlibs=no 15976 fi 15977 ;; 15978 esac 15979 ;; 15980 15981 sunos4*) 15982 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15983 wlarc= 15984 hardcode_direct=yes 15985 hardcode_shlibpath_var=no 15986 ;; 15987 15988 *) 15989 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15990 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15991 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15992 else 15993 ld_shlibs=no 15994 fi 15995 ;; 15996 esac 15997 15998 if test no = "$ld_shlibs"; then 15999 runpath_var= 16000 hardcode_libdir_flag_spec= 16001 export_dynamic_flag_spec= 16002 whole_archive_flag_spec= 16003 fi 16004 else 16005 # PORTME fill in a description of your system's linker (not GNU ld) 16006 case $host_os in 16007 aix3*) 16008 allow_undefined_flag=unsupported 16009 always_export_symbols=yes 16010 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' 16011 # Note: this linker hardcodes the directories in LIBPATH if there 16012 # are no directories specified by -L. 16013 hardcode_minus_L=yes 16014 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16015 # Neither direct hardcoding nor static linking is supported with a 16016 # broken collect2. 16017 hardcode_direct=unsupported 16018 fi 16019 ;; 16020 16021 aix[4-9]*) 16022 if test ia64 = "$host_cpu"; then 16023 # On IA64, the linker does run time linking by default, so we don't 16024 # have to do anything special. 16025 aix_use_runtimelinking=no 16026 exp_sym_flag='-Bexport' 16027 no_entry_flag= 16028 else 16029 # If we're using GNU nm, then we don't want the "-C" option. 16030 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16031 # Without the "-l" option, or with the "-B" option, AIX nm treats 16032 # weak defined symbols like other global defined symbols, whereas 16033 # GNU nm marks them as "W". 16034 # While the 'weak' keyword is ignored in the Export File, we need 16035 # it in the Import File for the 'aix-soname' feature, so we have 16036 # to replace the "-B" option with "-P" for AIX nm. 16037 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16038 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16039 else 16040 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16041 fi 16042 aix_use_runtimelinking=no 16043 16044 # Test if we are trying to use run time linking or normal 16045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16046 # have runtime linking enabled, and use it for executables. 16047 # For shared libraries, we enable/disable runtime linking 16048 # depending on the kind of the shared library created - 16049 # when "with_aix_soname,aix_use_runtimelinking" is: 16050 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16051 # "aix,yes" lib.so shared, rtl:yes, for executables 16052 # lib.a static archive 16053 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16054 # lib.a(lib.so.V) shared, rtl:no, for executables 16055 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16056 # lib.a(lib.so.V) shared, rtl:no 16057 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16058 # lib.a static archive 16059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16060 for ld_flag in $LDFLAGS; do 16061 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16062 aix_use_runtimelinking=yes 16063 break 16064 fi 16065 done 16066 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16067 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16068 # so we don't have lib.a shared libs to link our executables. 16069 # We have to force runtime linking in this case. 16070 aix_use_runtimelinking=yes 16071 LDFLAGS="$LDFLAGS -Wl,-brtl" 16072 fi 16073 ;; 16074 esac 16075 16076 exp_sym_flag='-bexport' 16077 no_entry_flag='-bnoentry' 16078 fi 16079 16080 # When large executables or shared objects are built, AIX ld can 16081 # have problems creating the table of contents. If linking a library 16082 # or program results in "error TOC overflow" add -mminimal-toc to 16083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16085 16086 archive_cmds='' 16087 hardcode_direct=yes 16088 hardcode_direct_absolute=yes 16089 hardcode_libdir_separator=':' 16090 link_all_deplibs=yes 16091 file_list_spec='$wl-f,' 16092 case $with_aix_soname,$aix_use_runtimelinking in 16093 aix,*) ;; # traditional, no import file 16094 svr4,* | *,yes) # use import file 16095 # The Import File defines what to hardcode. 16096 hardcode_direct=no 16097 hardcode_direct_absolute=no 16098 ;; 16099 esac 16100 16101 if test yes = "$GCC"; then 16102 case $host_os in aix4.[012]|aix4.[012].*) 16103 # We only want to do this on AIX 4.2 and lower, the check 16104 # below for broken collect2 doesn't work under 4.3+ 16105 collect2name=`$CC -print-prog-name=collect2` 16106 if test -f "$collect2name" && 16107 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16108 then 16109 # We have reworked collect2 16110 : 16111 else 16112 # We have old collect2 16113 hardcode_direct=unsupported 16114 # It fails to find uninstalled libraries when the uninstalled 16115 # path is not listed in the libpath. Setting hardcode_minus_L 16116 # to unsupported forces relinking 16117 hardcode_minus_L=yes 16118 hardcode_libdir_flag_spec='-L$libdir' 16119 hardcode_libdir_separator= 16120 fi 16121 ;; 16122 esac 16123 shared_flag='-shared' 16124 if test yes = "$aix_use_runtimelinking"; then 16125 shared_flag="$shared_flag "'$wl-G' 16126 fi 16127 # Need to ensure runtime linking is disabled for the traditional 16128 # shared library, or the linker may eventually find shared libraries 16129 # /with/ Import File - we do not want to mix them. 16130 shared_flag_aix='-shared' 16131 shared_flag_svr4='-shared $wl-G' 16132 else 16133 # not using gcc 16134 if test ia64 = "$host_cpu"; then 16135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16136 # chokes on -Wl,-G. The following line is correct: 16137 shared_flag='-G' 16138 else 16139 if test yes = "$aix_use_runtimelinking"; then 16140 shared_flag='$wl-G' 16141 else 16142 shared_flag='$wl-bM:SRE' 16143 fi 16144 shared_flag_aix='$wl-bM:SRE' 16145 shared_flag_svr4='$wl-G' 16146 fi 16147 fi 16148 16149 export_dynamic_flag_spec='$wl-bexpall' 16150 # It seems that -bexpall does not export symbols beginning with 16151 # underscore (_), so it is better to generate a list of symbols to export. 16152 always_export_symbols=yes 16153 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16154 # Warning - without using the other runtime loading flags (-brtl), 16155 # -berok will link without error, but may produce a broken library. 16156 allow_undefined_flag='-berok' 16157 # Determine the default libpath from the value encoded in an 16158 # empty executable. 16159 if test set = "${lt_cv_aix_libpath+set}"; then 16160 aix_libpath=$lt_cv_aix_libpath 16161else 16162 if ${lt_cv_aix_libpath_+:} false; then : 16163 $as_echo_n "(cached) " >&6 16164else 16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16166/* end confdefs.h. */ 16167 16168int 16169main () 16170{ 16171 16172 ; 16173 return 0; 16174} 16175_ACEOF 16176if ac_fn_c_try_link "$LINENO"; then : 16177 16178 lt_aix_libpath_sed=' 16179 /Import File Strings/,/^$/ { 16180 /^0/ { 16181 s/^0 *\([^ ]*\) *$/\1/ 16182 p 16183 } 16184 }' 16185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16186 # Check for a 64-bit object if we didn't find anything. 16187 if test -z "$lt_cv_aix_libpath_"; then 16188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16189 fi 16190fi 16191rm -f core conftest.err conftest.$ac_objext \ 16192 conftest$ac_exeext conftest.$ac_ext 16193 if test -z "$lt_cv_aix_libpath_"; then 16194 lt_cv_aix_libpath_=/usr/lib:/lib 16195 fi 16196 16197fi 16198 16199 aix_libpath=$lt_cv_aix_libpath_ 16200fi 16201 16202 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16203 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 16204 else 16205 if test ia64 = "$host_cpu"; then 16206 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16207 allow_undefined_flag="-z nodefs" 16208 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" 16209 else 16210 # Determine the default libpath from the value encoded in an 16211 # empty executable. 16212 if test set = "${lt_cv_aix_libpath+set}"; then 16213 aix_libpath=$lt_cv_aix_libpath 16214else 16215 if ${lt_cv_aix_libpath_+:} false; then : 16216 $as_echo_n "(cached) " >&6 16217else 16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16219/* end confdefs.h. */ 16220 16221int 16222main () 16223{ 16224 16225 ; 16226 return 0; 16227} 16228_ACEOF 16229if ac_fn_c_try_link "$LINENO"; then : 16230 16231 lt_aix_libpath_sed=' 16232 /Import File Strings/,/^$/ { 16233 /^0/ { 16234 s/^0 *\([^ ]*\) *$/\1/ 16235 p 16236 } 16237 }' 16238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16239 # Check for a 64-bit object if we didn't find anything. 16240 if test -z "$lt_cv_aix_libpath_"; then 16241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16242 fi 16243fi 16244rm -f core conftest.err conftest.$ac_objext \ 16245 conftest$ac_exeext conftest.$ac_ext 16246 if test -z "$lt_cv_aix_libpath_"; then 16247 lt_cv_aix_libpath_=/usr/lib:/lib 16248 fi 16249 16250fi 16251 16252 aix_libpath=$lt_cv_aix_libpath_ 16253fi 16254 16255 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16256 # Warning - without using the other run time loading flags, 16257 # -berok will link without error, but may produce a broken library. 16258 no_undefined_flag=' $wl-bernotok' 16259 allow_undefined_flag=' $wl-berok' 16260 if test yes = "$with_gnu_ld"; then 16261 # We only use this code for GNU lds that support --whole-archive. 16262 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16263 else 16264 # Exported symbols can be pulled into shared objects from archives 16265 whole_archive_flag_spec='$convenience' 16266 fi 16267 archive_cmds_need_lc=yes 16268 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16269 # -brtl affects multiple linker settings, -berok does not and is overridden later 16270 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16271 if test svr4 != "$with_aix_soname"; then 16272 # This is similar to how AIX traditionally builds its shared libraries. 16273 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 16274 fi 16275 if test aix != "$with_aix_soname"; then 16276 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 16277 else 16278 # used by -dlpreopen to get the symbols 16279 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16280 fi 16281 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16282 fi 16283 fi 16284 ;; 16285 16286 amigaos*) 16287 case $host_cpu in 16288 powerpc) 16289 # see comment about AmigaOS4 .so support 16290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16291 archive_expsym_cmds='' 16292 ;; 16293 m68k) 16294 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)' 16295 hardcode_libdir_flag_spec='-L$libdir' 16296 hardcode_minus_L=yes 16297 ;; 16298 esac 16299 ;; 16300 16301 bsdi[45]*) 16302 export_dynamic_flag_spec=-rdynamic 16303 ;; 16304 16305 cygwin* | mingw* | pw32* | cegcc*) 16306 # When not using gcc, we currently assume that we are using 16307 # Microsoft Visual C++. 16308 # hardcode_libdir_flag_spec is actually meaningless, as there is 16309 # no search path for DLLs. 16310 case $cc_basename in 16311 cl*) 16312 # Native MSVC 16313 hardcode_libdir_flag_spec=' ' 16314 allow_undefined_flag=unsupported 16315 always_export_symbols=yes 16316 file_list_spec='@' 16317 # Tell ltmain to make .lib files, not .a files. 16318 libext=lib 16319 # Tell ltmain to make .dll files, not .so files. 16320 shrext_cmds=.dll 16321 # FIXME: Setting linknames here is a bad hack. 16322 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16323 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16324 cp "$export_symbols" "$output_objdir/$soname.def"; 16325 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16326 else 16327 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16328 fi~ 16329 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16330 linknames=' 16331 # The linker will not automatically build a static lib if we build a DLL. 16332 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16333 enable_shared_with_static_runtimes=yes 16334 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16336 # Don't use ranlib 16337 old_postinstall_cmds='chmod 644 $oldlib' 16338 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16339 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16340 case $lt_outputfile in 16341 *.exe|*.EXE) ;; 16342 *) 16343 lt_outputfile=$lt_outputfile.exe 16344 lt_tool_outputfile=$lt_tool_outputfile.exe 16345 ;; 16346 esac~ 16347 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16348 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16349 $RM "$lt_outputfile.manifest"; 16350 fi' 16351 ;; 16352 *) 16353 # Assume MSVC wrapper 16354 hardcode_libdir_flag_spec=' ' 16355 allow_undefined_flag=unsupported 16356 # Tell ltmain to make .lib files, not .a files. 16357 libext=lib 16358 # Tell ltmain to make .dll files, not .so files. 16359 shrext_cmds=.dll 16360 # FIXME: Setting linknames here is a bad hack. 16361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16362 # The linker will automatically build a .lib file if we build a DLL. 16363 old_archive_from_new_cmds='true' 16364 # FIXME: Should let the user specify the lib program. 16365 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16366 enable_shared_with_static_runtimes=yes 16367 ;; 16368 esac 16369 ;; 16370 16371 darwin* | rhapsody*) 16372 16373 16374 archive_cmds_need_lc=no 16375 hardcode_direct=no 16376 hardcode_automatic=yes 16377 hardcode_shlibpath_var=unsupported 16378 if test yes = "$lt_cv_ld_force_load"; then 16379 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\"`' 16380 16381 else 16382 whole_archive_flag_spec='' 16383 fi 16384 link_all_deplibs=yes 16385 allow_undefined_flag=$_lt_dar_allow_undefined 16386 case $cc_basename in 16387 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16388 *) _lt_dar_can_shared=$GCC ;; 16389 esac 16390 if test yes = "$_lt_dar_can_shared"; then 16391 output_verbose_link_cmd=func_echo_all 16392 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16393 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16394 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" 16395 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" 16396 16397 else 16398 ld_shlibs=no 16399 fi 16400 16401 ;; 16402 16403 dgux*) 16404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16405 hardcode_libdir_flag_spec='-L$libdir' 16406 hardcode_shlibpath_var=no 16407 ;; 16408 16409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16410 # support. Future versions do this automatically, but an explicit c++rt0.o 16411 # does not break anything, and helps significantly (at the cost of a little 16412 # extra space). 16413 freebsd2.2*) 16414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16415 hardcode_libdir_flag_spec='-R$libdir' 16416 hardcode_direct=yes 16417 hardcode_shlibpath_var=no 16418 ;; 16419 16420 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16421 freebsd2.*) 16422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16423 hardcode_direct=yes 16424 hardcode_minus_L=yes 16425 hardcode_shlibpath_var=no 16426 ;; 16427 16428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16429 freebsd* | dragonfly*) 16430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16431 hardcode_libdir_flag_spec='-R$libdir' 16432 hardcode_direct=yes 16433 hardcode_shlibpath_var=no 16434 ;; 16435 16436 hpux9*) 16437 if test yes = "$GCC"; then 16438 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16439 else 16440 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16441 fi 16442 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16443 hardcode_libdir_separator=: 16444 hardcode_direct=yes 16445 16446 # hardcode_minus_L: Not really in the search PATH, 16447 # but as the default location of the library. 16448 hardcode_minus_L=yes 16449 export_dynamic_flag_spec='$wl-E' 16450 ;; 16451 16452 hpux10*) 16453 if test yes,no = "$GCC,$with_gnu_ld"; then 16454 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16455 else 16456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16457 fi 16458 if test no = "$with_gnu_ld"; then 16459 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16460 hardcode_libdir_separator=: 16461 hardcode_direct=yes 16462 hardcode_direct_absolute=yes 16463 export_dynamic_flag_spec='$wl-E' 16464 # hardcode_minus_L: Not really in the search PATH, 16465 # but as the default location of the library. 16466 hardcode_minus_L=yes 16467 fi 16468 ;; 16469 16470 hpux11*) 16471 if test yes,no = "$GCC,$with_gnu_ld"; then 16472 case $host_cpu in 16473 hppa*64*) 16474 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16475 ;; 16476 ia64*) 16477 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16478 ;; 16479 *) 16480 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16481 ;; 16482 esac 16483 else 16484 case $host_cpu in 16485 hppa*64*) 16486 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16487 ;; 16488 ia64*) 16489 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16490 ;; 16491 *) 16492 16493 # Older versions of the 11.00 compiler do not understand -b yet 16494 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16496$as_echo_n "checking if $CC understands -b... " >&6; } 16497if ${lt_cv_prog_compiler__b+:} false; then : 16498 $as_echo_n "(cached) " >&6 16499else 16500 lt_cv_prog_compiler__b=no 16501 save_LDFLAGS=$LDFLAGS 16502 LDFLAGS="$LDFLAGS -b" 16503 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16505 # The linker can only warn and ignore the option if not recognized 16506 # So say no if there are warnings 16507 if test -s conftest.err; then 16508 # Append any errors to the config.log. 16509 cat conftest.err 1>&5 16510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16512 if diff conftest.exp conftest.er2 >/dev/null; then 16513 lt_cv_prog_compiler__b=yes 16514 fi 16515 else 16516 lt_cv_prog_compiler__b=yes 16517 fi 16518 fi 16519 $RM -r conftest* 16520 LDFLAGS=$save_LDFLAGS 16521 16522fi 16523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16524$as_echo "$lt_cv_prog_compiler__b" >&6; } 16525 16526if test yes = "$lt_cv_prog_compiler__b"; then 16527 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16528else 16529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16530fi 16531 16532 ;; 16533 esac 16534 fi 16535 if test no = "$with_gnu_ld"; then 16536 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16537 hardcode_libdir_separator=: 16538 16539 case $host_cpu in 16540 hppa*64*|ia64*) 16541 hardcode_direct=no 16542 hardcode_shlibpath_var=no 16543 ;; 16544 *) 16545 hardcode_direct=yes 16546 hardcode_direct_absolute=yes 16547 export_dynamic_flag_spec='$wl-E' 16548 16549 # hardcode_minus_L: Not really in the search PATH, 16550 # but as the default location of the library. 16551 hardcode_minus_L=yes 16552 ;; 16553 esac 16554 fi 16555 ;; 16556 16557 irix5* | irix6* | nonstopux*) 16558 if test yes = "$GCC"; then 16559 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' 16560 # Try to use the -exported_symbol ld option, if it does not 16561 # work, assume that -exports_file does not work either and 16562 # implicitly export all symbols. 16563 # This should be the same for all languages, so no per-tag cache variable. 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16565$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16566if ${lt_cv_irix_exported_symbol+:} false; then : 16567 $as_echo_n "(cached) " >&6 16568else 16569 save_LDFLAGS=$LDFLAGS 16570 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16572/* end confdefs.h. */ 16573int foo (void) { return 0; } 16574_ACEOF 16575if ac_fn_c_try_link "$LINENO"; then : 16576 lt_cv_irix_exported_symbol=yes 16577else 16578 lt_cv_irix_exported_symbol=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext \ 16581 conftest$ac_exeext conftest.$ac_ext 16582 LDFLAGS=$save_LDFLAGS 16583fi 16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16585$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16586 if test yes = "$lt_cv_irix_exported_symbol"; then 16587 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' 16588 fi 16589 link_all_deplibs=no 16590 else 16591 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' 16592 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' 16593 fi 16594 archive_cmds_need_lc='no' 16595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16596 hardcode_libdir_separator=: 16597 inherit_rpath=yes 16598 link_all_deplibs=yes 16599 ;; 16600 16601 linux*) 16602 case $cc_basename in 16603 tcc*) 16604 # Fabrice Bellard et al's Tiny C Compiler 16605 ld_shlibs=yes 16606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16607 ;; 16608 esac 16609 ;; 16610 16611 netbsd* | netbsdelf*-gnu) 16612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16614 else 16615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16616 fi 16617 hardcode_libdir_flag_spec='-R$libdir' 16618 hardcode_direct=yes 16619 hardcode_shlibpath_var=no 16620 ;; 16621 16622 newsos6) 16623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16624 hardcode_direct=yes 16625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16626 hardcode_libdir_separator=: 16627 hardcode_shlibpath_var=no 16628 ;; 16629 16630 *nto* | *qnx*) 16631 ;; 16632 16633 openbsd* | bitrig*) 16634 if test -f /usr/libexec/ld.so; then 16635 hardcode_direct=yes 16636 hardcode_shlibpath_var=no 16637 hardcode_direct_absolute=yes 16638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16640 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16641 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16642 export_dynamic_flag_spec='$wl-E' 16643 else 16644 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16645 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16646 fi 16647 else 16648 ld_shlibs=no 16649 fi 16650 ;; 16651 16652 os2*) 16653 hardcode_libdir_flag_spec='-L$libdir' 16654 hardcode_minus_L=yes 16655 allow_undefined_flag=unsupported 16656 shrext_cmds=.dll 16657 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16658 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16659 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16660 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16661 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16662 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16663 emximp -o $lib $output_objdir/$libname.def' 16664 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16665 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16666 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16667 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16668 prefix_cmds="$SED"~ 16669 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16670 prefix_cmds="$prefix_cmds -e 1d"; 16671 fi~ 16672 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16673 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16674 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16675 emximp -o $lib $output_objdir/$libname.def' 16676 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16677 enable_shared_with_static_runtimes=yes 16678 ;; 16679 16680 osf3*) 16681 if test yes = "$GCC"; then 16682 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16683 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' 16684 else 16685 allow_undefined_flag=' -expect_unresolved \*' 16686 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' 16687 fi 16688 archive_cmds_need_lc='no' 16689 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16690 hardcode_libdir_separator=: 16691 ;; 16692 16693 osf4* | osf5*) # as osf3* with the addition of -msym flag 16694 if test yes = "$GCC"; then 16695 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16696 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' 16697 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16698 else 16699 allow_undefined_flag=' -expect_unresolved \*' 16700 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' 16701 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~ 16702 $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' 16703 16704 # Both c and cxx compiler support -rpath directly 16705 hardcode_libdir_flag_spec='-rpath $libdir' 16706 fi 16707 archive_cmds_need_lc='no' 16708 hardcode_libdir_separator=: 16709 ;; 16710 16711 solaris*) 16712 no_undefined_flag=' -z defs' 16713 if test yes = "$GCC"; then 16714 wlarc='$wl' 16715 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16716 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16717 $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' 16718 else 16719 case `$CC -V 2>&1` in 16720 *"Compilers 5.0"*) 16721 wlarc='' 16722 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16723 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16724 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16725 ;; 16726 *) 16727 wlarc='$wl' 16728 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16729 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16730 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16731 ;; 16732 esac 16733 fi 16734 hardcode_libdir_flag_spec='-R$libdir' 16735 hardcode_shlibpath_var=no 16736 case $host_os in 16737 solaris2.[0-5] | solaris2.[0-5].*) ;; 16738 *) 16739 # The compiler driver will combine and reorder linker options, 16740 # but understands '-z linker_flag'. GCC discards it without '$wl', 16741 # but is careful enough not to reorder. 16742 # Supported since Solaris 2.6 (maybe 2.5.1?) 16743 if test yes = "$GCC"; then 16744 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16745 else 16746 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16747 fi 16748 ;; 16749 esac 16750 link_all_deplibs=yes 16751 ;; 16752 16753 sunos4*) 16754 if test sequent = "$host_vendor"; then 16755 # Use $CC to link under sequent, because it throws in some extra .o 16756 # files that make .init and .fini sections work. 16757 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16758 else 16759 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16760 fi 16761 hardcode_libdir_flag_spec='-L$libdir' 16762 hardcode_direct=yes 16763 hardcode_minus_L=yes 16764 hardcode_shlibpath_var=no 16765 ;; 16766 16767 sysv4) 16768 case $host_vendor in 16769 sni) 16770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16771 hardcode_direct=yes # is this really true??? 16772 ;; 16773 siemens) 16774 ## LD is ld it makes a PLAMLIB 16775 ## CC just makes a GrossModule. 16776 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16777 reload_cmds='$CC -r -o $output$reload_objs' 16778 hardcode_direct=no 16779 ;; 16780 motorola) 16781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16782 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16783 ;; 16784 esac 16785 runpath_var='LD_RUN_PATH' 16786 hardcode_shlibpath_var=no 16787 ;; 16788 16789 sysv4.3*) 16790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16791 hardcode_shlibpath_var=no 16792 export_dynamic_flag_spec='-Bexport' 16793 ;; 16794 16795 sysv4*MP*) 16796 if test -d /usr/nec; then 16797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16798 hardcode_shlibpath_var=no 16799 runpath_var=LD_RUN_PATH 16800 hardcode_runpath_var=yes 16801 ld_shlibs=yes 16802 fi 16803 ;; 16804 16805 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16806 no_undefined_flag='$wl-z,text' 16807 archive_cmds_need_lc=no 16808 hardcode_shlibpath_var=no 16809 runpath_var='LD_RUN_PATH' 16810 16811 if test yes = "$GCC"; then 16812 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16813 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16814 else 16815 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16816 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16817 fi 16818 ;; 16819 16820 sysv5* | sco3.2v5* | sco5v6*) 16821 # Note: We CANNOT use -z defs as we might desire, because we do not 16822 # link with -lc, and that would cause any symbols used from libc to 16823 # always be unresolved, which means just about no library would 16824 # ever link correctly. If we're not using GNU ld we use -z text 16825 # though, which does catch some bad symbols but isn't as heavy-handed 16826 # as -z defs. 16827 no_undefined_flag='$wl-z,text' 16828 allow_undefined_flag='$wl-z,nodefs' 16829 archive_cmds_need_lc=no 16830 hardcode_shlibpath_var=no 16831 hardcode_libdir_flag_spec='$wl-R,$libdir' 16832 hardcode_libdir_separator=':' 16833 link_all_deplibs=yes 16834 export_dynamic_flag_spec='$wl-Bexport' 16835 runpath_var='LD_RUN_PATH' 16836 16837 if test yes = "$GCC"; then 16838 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16839 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16840 else 16841 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16842 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16843 fi 16844 ;; 16845 16846 uts4*) 16847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16848 hardcode_libdir_flag_spec='-L$libdir' 16849 hardcode_shlibpath_var=no 16850 ;; 16851 16852 *) 16853 ld_shlibs=no 16854 ;; 16855 esac 16856 16857 if test sni = "$host_vendor"; then 16858 case $host in 16859 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16860 export_dynamic_flag_spec='$wl-Blargedynsym' 16861 ;; 16862 esac 16863 fi 16864 fi 16865 16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16867$as_echo "$ld_shlibs" >&6; } 16868test no = "$ld_shlibs" && can_build_shared=no 16869 16870with_gnu_ld=$with_gnu_ld 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886# 16887# Do we need to explicitly link libc? 16888# 16889case "x$archive_cmds_need_lc" in 16890x|xyes) 16891 # Assume -lc should be added 16892 archive_cmds_need_lc=yes 16893 16894 if test yes,yes = "$GCC,$enable_shared"; then 16895 case $archive_cmds in 16896 *'~'*) 16897 # FIXME: we may have to deal with multi-command sequences. 16898 ;; 16899 '$CC '*) 16900 # Test whether the compiler implicitly links with -lc since on some 16901 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16902 # to ld, don't add -lc before -lgcc. 16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16904$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16905if ${lt_cv_archive_cmds_need_lc+:} false; then : 16906 $as_echo_n "(cached) " >&6 16907else 16908 $RM conftest* 16909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16910 16911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16912 (eval $ac_compile) 2>&5 16913 ac_status=$? 16914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16915 test $ac_status = 0; } 2>conftest.err; then 16916 soname=conftest 16917 lib=conftest 16918 libobjs=conftest.$ac_objext 16919 deplibs= 16920 wl=$lt_prog_compiler_wl 16921 pic_flag=$lt_prog_compiler_pic 16922 compiler_flags=-v 16923 linker_flags=-v 16924 verstring= 16925 output_objdir=. 16926 libname=conftest 16927 lt_save_allow_undefined_flag=$allow_undefined_flag 16928 allow_undefined_flag= 16929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16930 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16931 ac_status=$? 16932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16933 test $ac_status = 0; } 16934 then 16935 lt_cv_archive_cmds_need_lc=no 16936 else 16937 lt_cv_archive_cmds_need_lc=yes 16938 fi 16939 allow_undefined_flag=$lt_save_allow_undefined_flag 16940 else 16941 cat conftest.err 1>&5 16942 fi 16943 $RM conftest* 16944 16945fi 16946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16947$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16948 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16949 ;; 16950 esac 16951 fi 16952 ;; 16953esac 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17107$as_echo_n "checking dynamic linker characteristics... " >&6; } 17108 17109if test yes = "$GCC"; then 17110 case $host_os in 17111 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17112 *) lt_awk_arg='/^libraries:/' ;; 17113 esac 17114 case $host_os in 17115 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17116 *) lt_sed_strip_eq='s|=/|/|g' ;; 17117 esac 17118 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17119 case $lt_search_path_spec in 17120 *\;*) 17121 # if the path contains ";" then we assume it to be the separator 17122 # otherwise default to the standard path separator (i.e. ":") - it is 17123 # assumed that no part of a normal pathname contains ";" but that should 17124 # okay in the real world where ";" in dirpaths is itself problematic. 17125 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17126 ;; 17127 *) 17128 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17129 ;; 17130 esac 17131 # Ok, now we have the path, separated by spaces, we can step through it 17132 # and add multilib dir if necessary... 17133 lt_tmp_lt_search_path_spec= 17134 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17135 # ...but if some path component already ends with the multilib dir we assume 17136 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17137 case "$lt_multi_os_dir; $lt_search_path_spec " in 17138 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17139 lt_multi_os_dir= 17140 ;; 17141 esac 17142 for lt_sys_path in $lt_search_path_spec; do 17143 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17144 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17145 elif test -n "$lt_multi_os_dir"; then 17146 test -d "$lt_sys_path" && \ 17147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17148 fi 17149 done 17150 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17151BEGIN {RS = " "; FS = "/|\n";} { 17152 lt_foo = ""; 17153 lt_count = 0; 17154 for (lt_i = NF; lt_i > 0; lt_i--) { 17155 if ($lt_i != "" && $lt_i != ".") { 17156 if ($lt_i == "..") { 17157 lt_count++; 17158 } else { 17159 if (lt_count == 0) { 17160 lt_foo = "/" $lt_i lt_foo; 17161 } else { 17162 lt_count--; 17163 } 17164 } 17165 } 17166 } 17167 if (lt_foo != "") { lt_freq[lt_foo]++; } 17168 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17169}'` 17170 # AWK program above erroneously prepends '/' to C:/dos/paths 17171 # for these hosts. 17172 case $host_os in 17173 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17174 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17175 esac 17176 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17177else 17178 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17179fi 17180library_names_spec= 17181libname_spec='lib$name' 17182soname_spec= 17183shrext_cmds=.so 17184postinstall_cmds= 17185postuninstall_cmds= 17186finish_cmds= 17187finish_eval= 17188shlibpath_var= 17189shlibpath_overrides_runpath=unknown 17190version_type=none 17191dynamic_linker="$host_os ld.so" 17192sys_lib_dlsearch_path_spec="/lib /usr/lib" 17193need_lib_prefix=unknown 17194hardcode_into_libs=no 17195 17196# when you set need_version to no, make sure it does not cause -set_version 17197# flags to be left without arguments 17198need_version=unknown 17199 17200 17201 17202case $host_os in 17203aix3*) 17204 version_type=linux # correct to gnu/linux during the next big refactor 17205 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17206 shlibpath_var=LIBPATH 17207 17208 # AIX 3 has no versioning support, so we append a major version to the name. 17209 soname_spec='$libname$release$shared_ext$major' 17210 ;; 17211 17212aix[4-9]*) 17213 version_type=linux # correct to gnu/linux during the next big refactor 17214 need_lib_prefix=no 17215 need_version=no 17216 hardcode_into_libs=yes 17217 if test ia64 = "$host_cpu"; then 17218 # AIX 5 supports IA64 17219 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17220 shlibpath_var=LD_LIBRARY_PATH 17221 else 17222 # With GCC up to 2.95.x, collect2 would create an import file 17223 # for dependence libraries. The import file would start with 17224 # the line '#! .'. This would cause the generated library to 17225 # depend on '.', always an invalid library. This was fixed in 17226 # development snapshots of GCC prior to 3.0. 17227 case $host_os in 17228 aix4 | aix4.[01] | aix4.[01].*) 17229 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17230 echo ' yes ' 17231 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17232 : 17233 else 17234 can_build_shared=no 17235 fi 17236 ;; 17237 esac 17238 # Using Import Files as archive members, it is possible to support 17239 # filename-based versioning of shared library archives on AIX. While 17240 # this would work for both with and without runtime linking, it will 17241 # prevent static linking of such archives. So we do filename-based 17242 # shared library versioning with .so extension only, which is used 17243 # when both runtime linking and shared linking is enabled. 17244 # Unfortunately, runtime linking may impact performance, so we do 17245 # not want this to be the default eventually. Also, we use the 17246 # versioned .so libs for executables only if there is the -brtl 17247 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17248 # To allow for filename-based versioning support, we need to create 17249 # libNAME.so.V as an archive file, containing: 17250 # *) an Import File, referring to the versioned filename of the 17251 # archive as well as the shared archive member, telling the 17252 # bitwidth (32 or 64) of that shared object, and providing the 17253 # list of exported symbols of that shared object, eventually 17254 # decorated with the 'weak' keyword 17255 # *) the shared object with the F_LOADONLY flag set, to really avoid 17256 # it being seen by the linker. 17257 # At run time we better use the real file rather than another symlink, 17258 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17259 17260 case $with_aix_soname,$aix_use_runtimelinking in 17261 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17262 # soname into executable. Probably we can add versioning support to 17263 # collect2, so additional links can be useful in future. 17264 aix,yes) # traditional libtool 17265 dynamic_linker='AIX unversionable lib.so' 17266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17267 # instead of lib<name>.a to let people know that these are not 17268 # typical AIX shared libraries. 17269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17270 ;; 17271 aix,no) # traditional AIX only 17272 dynamic_linker='AIX lib.a(lib.so.V)' 17273 # We preserve .a as extension for shared libraries through AIX4.2 17274 # and later when we are not doing run time linking. 17275 library_names_spec='$libname$release.a $libname.a' 17276 soname_spec='$libname$release$shared_ext$major' 17277 ;; 17278 svr4,*) # full svr4 only 17279 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17280 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17281 # We do not specify a path in Import Files, so LIBPATH fires. 17282 shlibpath_overrides_runpath=yes 17283 ;; 17284 *,yes) # both, prefer svr4 17285 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17286 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17287 # unpreferred sharedlib libNAME.a needs extra handling 17288 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 17289 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 17290 # We do not specify a path in Import Files, so LIBPATH fires. 17291 shlibpath_overrides_runpath=yes 17292 ;; 17293 *,no) # both, prefer aix 17294 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17295 library_names_spec='$libname$release.a $libname.a' 17296 soname_spec='$libname$release$shared_ext$major' 17297 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17298 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 17299 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 17300 ;; 17301 esac 17302 shlibpath_var=LIBPATH 17303 fi 17304 ;; 17305 17306amigaos*) 17307 case $host_cpu in 17308 powerpc) 17309 # Since July 2007 AmigaOS4 officially supports .so libraries. 17310 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17312 ;; 17313 m68k) 17314 library_names_spec='$libname.ixlibrary $libname.a' 17315 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17316 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 17317 ;; 17318 esac 17319 ;; 17320 17321beos*) 17322 library_names_spec='$libname$shared_ext' 17323 dynamic_linker="$host_os ld.so" 17324 shlibpath_var=LIBRARY_PATH 17325 ;; 17326 17327bsdi[45]*) 17328 version_type=linux # correct to gnu/linux during the next big refactor 17329 need_version=no 17330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17331 soname_spec='$libname$release$shared_ext$major' 17332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17333 shlibpath_var=LD_LIBRARY_PATH 17334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17336 # the default ld.so.conf also contains /usr/contrib/lib and 17337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17338 # libtool to hard-code these into programs 17339 ;; 17340 17341cygwin* | mingw* | pw32* | cegcc*) 17342 version_type=windows 17343 shrext_cmds=.dll 17344 need_version=no 17345 need_lib_prefix=no 17346 17347 case $GCC,$cc_basename in 17348 yes,*) 17349 # gcc 17350 library_names_spec='$libname.dll.a' 17351 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17352 postinstall_cmds='base_file=`basename \$file`~ 17353 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17354 dldir=$destdir/`dirname \$dlpath`~ 17355 test -d \$dldir || mkdir -p \$dldir~ 17356 $install_prog $dir/$dlname \$dldir/$dlname~ 17357 chmod a+x \$dldir/$dlname~ 17358 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17359 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17360 fi' 17361 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17362 dlpath=$dir/\$dldll~ 17363 $RM \$dlpath' 17364 shlibpath_overrides_runpath=yes 17365 17366 case $host_os in 17367 cygwin*) 17368 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17369 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17370 17371 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17372 ;; 17373 mingw* | cegcc*) 17374 # MinGW DLLs use traditional 'lib' prefix 17375 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17376 ;; 17377 pw32*) 17378 # pw32 DLLs use 'pw' prefix rather than 'lib' 17379 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17380 ;; 17381 esac 17382 dynamic_linker='Win32 ld.exe' 17383 ;; 17384 17385 *,cl*) 17386 # Native MSVC 17387 libname_spec='$name' 17388 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17389 library_names_spec='$libname.dll.lib' 17390 17391 case $build_os in 17392 mingw*) 17393 sys_lib_search_path_spec= 17394 lt_save_ifs=$IFS 17395 IFS=';' 17396 for lt_path in $LIB 17397 do 17398 IFS=$lt_save_ifs 17399 # Let DOS variable expansion print the short 8.3 style file name. 17400 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17401 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17402 done 17403 IFS=$lt_save_ifs 17404 # Convert to MSYS style. 17405 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17406 ;; 17407 cygwin*) 17408 # Convert to unix form, then to dos form, then back to unix form 17409 # but this time dos style (no spaces!) so that the unix form looks 17410 # like /cygdrive/c/PROGRA~1:/cygdr... 17411 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17412 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17413 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17414 ;; 17415 *) 17416 sys_lib_search_path_spec=$LIB 17417 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17418 # It is most probably a Windows format PATH. 17419 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17420 else 17421 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17422 fi 17423 # FIXME: find the short name or the path components, as spaces are 17424 # common. (e.g. "Program Files" -> "PROGRA~1") 17425 ;; 17426 esac 17427 17428 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17429 postinstall_cmds='base_file=`basename \$file`~ 17430 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17431 dldir=$destdir/`dirname \$dlpath`~ 17432 test -d \$dldir || mkdir -p \$dldir~ 17433 $install_prog $dir/$dlname \$dldir/$dlname' 17434 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17435 dlpath=$dir/\$dldll~ 17436 $RM \$dlpath' 17437 shlibpath_overrides_runpath=yes 17438 dynamic_linker='Win32 link.exe' 17439 ;; 17440 17441 *) 17442 # Assume MSVC wrapper 17443 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17444 dynamic_linker='Win32 ld.exe' 17445 ;; 17446 esac 17447 # FIXME: first we should search . and the directory the executable is in 17448 shlibpath_var=PATH 17449 ;; 17450 17451darwin* | rhapsody*) 17452 dynamic_linker="$host_os dyld" 17453 version_type=darwin 17454 need_lib_prefix=no 17455 need_version=no 17456 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17457 soname_spec='$libname$release$major$shared_ext' 17458 shlibpath_overrides_runpath=yes 17459 shlibpath_var=DYLD_LIBRARY_PATH 17460 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17461 17462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17464 ;; 17465 17466dgux*) 17467 version_type=linux # correct to gnu/linux during the next big refactor 17468 need_lib_prefix=no 17469 need_version=no 17470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17471 soname_spec='$libname$release$shared_ext$major' 17472 shlibpath_var=LD_LIBRARY_PATH 17473 ;; 17474 17475freebsd* | dragonfly*) 17476 # DragonFly does not have aout. When/if they implement a new 17477 # versioning mechanism, adjust this. 17478 if test -x /usr/bin/objformat; then 17479 objformat=`/usr/bin/objformat` 17480 else 17481 case $host_os in 17482 freebsd[23].*) objformat=aout ;; 17483 *) objformat=elf ;; 17484 esac 17485 fi 17486 version_type=freebsd-$objformat 17487 case $version_type in 17488 freebsd-elf*) 17489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17490 soname_spec='$libname$release$shared_ext$major' 17491 need_version=no 17492 need_lib_prefix=no 17493 ;; 17494 freebsd-*) 17495 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17496 need_version=yes 17497 ;; 17498 esac 17499 shlibpath_var=LD_LIBRARY_PATH 17500 case $host_os in 17501 freebsd2.*) 17502 shlibpath_overrides_runpath=yes 17503 ;; 17504 freebsd3.[01]* | freebsdelf3.[01]*) 17505 shlibpath_overrides_runpath=yes 17506 hardcode_into_libs=yes 17507 ;; 17508 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17509 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17510 shlibpath_overrides_runpath=no 17511 hardcode_into_libs=yes 17512 ;; 17513 *) # from 4.6 on, and DragonFly 17514 shlibpath_overrides_runpath=yes 17515 hardcode_into_libs=yes 17516 ;; 17517 esac 17518 ;; 17519 17520haiku*) 17521 version_type=linux # correct to gnu/linux during the next big refactor 17522 need_lib_prefix=no 17523 need_version=no 17524 dynamic_linker="$host_os runtime_loader" 17525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17526 soname_spec='$libname$release$shared_ext$major' 17527 shlibpath_var=LIBRARY_PATH 17528 shlibpath_overrides_runpath=no 17529 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17530 hardcode_into_libs=yes 17531 ;; 17532 17533hpux9* | hpux10* | hpux11*) 17534 # Give a soname corresponding to the major version so that dld.sl refuses to 17535 # link against other versions. 17536 version_type=sunos 17537 need_lib_prefix=no 17538 need_version=no 17539 case $host_cpu in 17540 ia64*) 17541 shrext_cmds='.so' 17542 hardcode_into_libs=yes 17543 dynamic_linker="$host_os dld.so" 17544 shlibpath_var=LD_LIBRARY_PATH 17545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17547 soname_spec='$libname$release$shared_ext$major' 17548 if test 32 = "$HPUX_IA64_MODE"; then 17549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17550 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17551 else 17552 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17553 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17554 fi 17555 ;; 17556 hppa*64*) 17557 shrext_cmds='.sl' 17558 hardcode_into_libs=yes 17559 dynamic_linker="$host_os dld.sl" 17560 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17561 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17563 soname_spec='$libname$release$shared_ext$major' 17564 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17566 ;; 17567 *) 17568 shrext_cmds='.sl' 17569 dynamic_linker="$host_os dld.sl" 17570 shlibpath_var=SHLIB_PATH 17571 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17573 soname_spec='$libname$release$shared_ext$major' 17574 ;; 17575 esac 17576 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17577 postinstall_cmds='chmod 555 $lib' 17578 # or fails outright, so override atomically: 17579 install_override_mode=555 17580 ;; 17581 17582interix[3-9]*) 17583 version_type=linux # correct to gnu/linux during the next big refactor 17584 need_lib_prefix=no 17585 need_version=no 17586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17587 soname_spec='$libname$release$shared_ext$major' 17588 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17589 shlibpath_var=LD_LIBRARY_PATH 17590 shlibpath_overrides_runpath=no 17591 hardcode_into_libs=yes 17592 ;; 17593 17594irix5* | irix6* | nonstopux*) 17595 case $host_os in 17596 nonstopux*) version_type=nonstopux ;; 17597 *) 17598 if test yes = "$lt_cv_prog_gnu_ld"; then 17599 version_type=linux # correct to gnu/linux during the next big refactor 17600 else 17601 version_type=irix 17602 fi ;; 17603 esac 17604 need_lib_prefix=no 17605 need_version=no 17606 soname_spec='$libname$release$shared_ext$major' 17607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17608 case $host_os in 17609 irix5* | nonstopux*) 17610 libsuff= shlibsuff= 17611 ;; 17612 *) 17613 case $LD in # libtool.m4 will add one of these switches to LD 17614 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17615 libsuff= shlibsuff= libmagic=32-bit;; 17616 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17617 libsuff=32 shlibsuff=N32 libmagic=N32;; 17618 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17619 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17620 *) libsuff= shlibsuff= libmagic=never-match;; 17621 esac 17622 ;; 17623 esac 17624 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17625 shlibpath_overrides_runpath=no 17626 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17627 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17628 hardcode_into_libs=yes 17629 ;; 17630 17631# No shared lib support for Linux oldld, aout, or coff. 17632linux*oldld* | linux*aout* | linux*coff*) 17633 dynamic_linker=no 17634 ;; 17635 17636linux*android*) 17637 version_type=none # Android doesn't support versioned libraries. 17638 need_lib_prefix=no 17639 need_version=no 17640 library_names_spec='$libname$release$shared_ext' 17641 soname_spec='$libname$release$shared_ext' 17642 finish_cmds= 17643 shlibpath_var=LD_LIBRARY_PATH 17644 shlibpath_overrides_runpath=yes 17645 17646 # This implies no fast_install, which is unacceptable. 17647 # Some rework will be needed to allow for fast_install 17648 # before this can be enabled. 17649 hardcode_into_libs=yes 17650 17651 dynamic_linker='Android linker' 17652 # Don't embed -rpath directories since the linker doesn't support them. 17653 hardcode_libdir_flag_spec='-L$libdir' 17654 ;; 17655 17656# This must be glibc/ELF. 17657linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17658 version_type=linux # correct to gnu/linux during the next big refactor 17659 need_lib_prefix=no 17660 need_version=no 17661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17662 soname_spec='$libname$release$shared_ext$major' 17663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17664 shlibpath_var=LD_LIBRARY_PATH 17665 shlibpath_overrides_runpath=no 17666 17667 # Some binutils ld are patched to set DT_RUNPATH 17668 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17669 $as_echo_n "(cached) " >&6 17670else 17671 lt_cv_shlibpath_overrides_runpath=no 17672 save_LDFLAGS=$LDFLAGS 17673 save_libdir=$libdir 17674 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17675 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17677/* end confdefs.h. */ 17678 17679int 17680main () 17681{ 17682 17683 ; 17684 return 0; 17685} 17686_ACEOF 17687if ac_fn_c_try_link "$LINENO"; then : 17688 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17689 lt_cv_shlibpath_overrides_runpath=yes 17690fi 17691fi 17692rm -f core conftest.err conftest.$ac_objext \ 17693 conftest$ac_exeext conftest.$ac_ext 17694 LDFLAGS=$save_LDFLAGS 17695 libdir=$save_libdir 17696 17697fi 17698 17699 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17700 17701 # This implies no fast_install, which is unacceptable. 17702 # Some rework will be needed to allow for fast_install 17703 # before this can be enabled. 17704 hardcode_into_libs=yes 17705 17706 # Ideally, we could use ldconfig to report *all* directores which are 17707 # searched for libraries, however this is still not possible. Aside from not 17708 # being certain /sbin/ldconfig is available, command 17709 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17710 # even though it is searched at run-time. Try to do the best guess by 17711 # appending ld.so.conf contents (and includes) to the search path. 17712 if test -f /etc/ld.so.conf; then 17713 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' ' '` 17714 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17715 fi 17716 17717 # We used to test for /lib/ld.so.1 and disable shared libraries on 17718 # powerpc, because MkLinux only supported shared libraries with the 17719 # GNU dynamic linker. Since this was broken with cross compilers, 17720 # most powerpc-linux boxes support dynamic linking these days and 17721 # people can always --disable-shared, the test was removed, and we 17722 # assume the GNU/Linux dynamic linker is in use. 17723 dynamic_linker='GNU/Linux ld.so' 17724 ;; 17725 17726netbsdelf*-gnu) 17727 version_type=linux 17728 need_lib_prefix=no 17729 need_version=no 17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17731 soname_spec='${libname}${release}${shared_ext}$major' 17732 shlibpath_var=LD_LIBRARY_PATH 17733 shlibpath_overrides_runpath=no 17734 hardcode_into_libs=yes 17735 dynamic_linker='NetBSD ld.elf_so' 17736 ;; 17737 17738netbsd*) 17739 version_type=sunos 17740 need_lib_prefix=no 17741 need_version=no 17742 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17743 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17745 dynamic_linker='NetBSD (a.out) ld.so' 17746 else 17747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17748 soname_spec='$libname$release$shared_ext$major' 17749 dynamic_linker='NetBSD ld.elf_so' 17750 fi 17751 shlibpath_var=LD_LIBRARY_PATH 17752 shlibpath_overrides_runpath=yes 17753 hardcode_into_libs=yes 17754 ;; 17755 17756newsos6) 17757 version_type=linux # correct to gnu/linux during the next big refactor 17758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17759 shlibpath_var=LD_LIBRARY_PATH 17760 shlibpath_overrides_runpath=yes 17761 ;; 17762 17763*nto* | *qnx*) 17764 version_type=qnx 17765 need_lib_prefix=no 17766 need_version=no 17767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17768 soname_spec='$libname$release$shared_ext$major' 17769 shlibpath_var=LD_LIBRARY_PATH 17770 shlibpath_overrides_runpath=no 17771 hardcode_into_libs=yes 17772 dynamic_linker='ldqnx.so' 17773 ;; 17774 17775openbsd* | bitrig*) 17776 version_type=sunos 17777 sys_lib_dlsearch_path_spec=/usr/lib 17778 need_lib_prefix=no 17779 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17780 need_version=no 17781 else 17782 need_version=yes 17783 fi 17784 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17786 shlibpath_var=LD_LIBRARY_PATH 17787 shlibpath_overrides_runpath=yes 17788 ;; 17789 17790os2*) 17791 libname_spec='$name' 17792 version_type=windows 17793 shrext_cmds=.dll 17794 need_version=no 17795 need_lib_prefix=no 17796 # OS/2 can only load a DLL with a base name of 8 characters or less. 17797 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17798 v=$($ECHO $release$versuffix | tr -d .-); 17799 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17800 $ECHO $n$v`$shared_ext' 17801 library_names_spec='${libname}_dll.$libext' 17802 dynamic_linker='OS/2 ld.exe' 17803 shlibpath_var=BEGINLIBPATH 17804 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17806 postinstall_cmds='base_file=`basename \$file`~ 17807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17808 dldir=$destdir/`dirname \$dlpath`~ 17809 test -d \$dldir || mkdir -p \$dldir~ 17810 $install_prog $dir/$dlname \$dldir/$dlname~ 17811 chmod a+x \$dldir/$dlname~ 17812 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17813 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17814 fi' 17815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17816 dlpath=$dir/\$dldll~ 17817 $RM \$dlpath' 17818 ;; 17819 17820osf3* | osf4* | osf5*) 17821 version_type=osf 17822 need_lib_prefix=no 17823 need_version=no 17824 soname_spec='$libname$release$shared_ext$major' 17825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17826 shlibpath_var=LD_LIBRARY_PATH 17827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17828 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17829 ;; 17830 17831rdos*) 17832 dynamic_linker=no 17833 ;; 17834 17835solaris*) 17836 version_type=linux # correct to gnu/linux during the next big refactor 17837 need_lib_prefix=no 17838 need_version=no 17839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17840 soname_spec='$libname$release$shared_ext$major' 17841 shlibpath_var=LD_LIBRARY_PATH 17842 shlibpath_overrides_runpath=yes 17843 hardcode_into_libs=yes 17844 # ldd complains unless libraries are executable 17845 postinstall_cmds='chmod +x $lib' 17846 ;; 17847 17848sunos4*) 17849 version_type=sunos 17850 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17852 shlibpath_var=LD_LIBRARY_PATH 17853 shlibpath_overrides_runpath=yes 17854 if test yes = "$with_gnu_ld"; then 17855 need_lib_prefix=no 17856 fi 17857 need_version=yes 17858 ;; 17859 17860sysv4 | sysv4.3*) 17861 version_type=linux # correct to gnu/linux during the next big refactor 17862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17863 soname_spec='$libname$release$shared_ext$major' 17864 shlibpath_var=LD_LIBRARY_PATH 17865 case $host_vendor in 17866 sni) 17867 shlibpath_overrides_runpath=no 17868 need_lib_prefix=no 17869 runpath_var=LD_RUN_PATH 17870 ;; 17871 siemens) 17872 need_lib_prefix=no 17873 ;; 17874 motorola) 17875 need_lib_prefix=no 17876 need_version=no 17877 shlibpath_overrides_runpath=no 17878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17879 ;; 17880 esac 17881 ;; 17882 17883sysv4*MP*) 17884 if test -d /usr/nec; then 17885 version_type=linux # correct to gnu/linux during the next big refactor 17886 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17887 soname_spec='$libname$shared_ext.$major' 17888 shlibpath_var=LD_LIBRARY_PATH 17889 fi 17890 ;; 17891 17892sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17893 version_type=sco 17894 need_lib_prefix=no 17895 need_version=no 17896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17897 soname_spec='$libname$release$shared_ext$major' 17898 shlibpath_var=LD_LIBRARY_PATH 17899 shlibpath_overrides_runpath=yes 17900 hardcode_into_libs=yes 17901 if test yes = "$with_gnu_ld"; then 17902 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17903 else 17904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17905 case $host_os in 17906 sco3.2v5*) 17907 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17908 ;; 17909 esac 17910 fi 17911 sys_lib_dlsearch_path_spec='/usr/lib' 17912 ;; 17913 17914tpf*) 17915 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17916 version_type=linux # correct to gnu/linux during the next big refactor 17917 need_lib_prefix=no 17918 need_version=no 17919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17920 shlibpath_var=LD_LIBRARY_PATH 17921 shlibpath_overrides_runpath=no 17922 hardcode_into_libs=yes 17923 ;; 17924 17925uts4*) 17926 version_type=linux # correct to gnu/linux during the next big refactor 17927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17928 soname_spec='$libname$release$shared_ext$major' 17929 shlibpath_var=LD_LIBRARY_PATH 17930 ;; 17931 17932*) 17933 dynamic_linker=no 17934 ;; 17935esac 17936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17937$as_echo "$dynamic_linker" >&6; } 17938test no = "$dynamic_linker" && can_build_shared=no 17939 17940variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17941if test yes = "$GCC"; then 17942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17943fi 17944 17945if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17946 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17947fi 17948 17949if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17950 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17951fi 17952 17953# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17954configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17955 17956# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17957func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17958 17959# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17960configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18059$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18060hardcode_action= 18061if test -n "$hardcode_libdir_flag_spec" || 18062 test -n "$runpath_var" || 18063 test yes = "$hardcode_automatic"; then 18064 18065 # We can hardcode non-existent directories. 18066 if test no != "$hardcode_direct" && 18067 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18068 # have to relink, otherwise we might link with an installed library 18069 # when we should be linking with a yet-to-be-installed one 18070 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18071 test no != "$hardcode_minus_L"; then 18072 # Linking always hardcodes the temporary library directory. 18073 hardcode_action=relink 18074 else 18075 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18076 hardcode_action=immediate 18077 fi 18078else 18079 # We cannot hardcode anything, or else we can only hardcode existing 18080 # directories. 18081 hardcode_action=unsupported 18082fi 18083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18084$as_echo "$hardcode_action" >&6; } 18085 18086if test relink = "$hardcode_action" || 18087 test yes = "$inherit_rpath"; then 18088 # Fast installation is not supported 18089 enable_fast_install=no 18090elif test yes = "$shlibpath_overrides_runpath" || 18091 test no = "$enable_shared"; then 18092 # Fast installation is not necessary 18093 enable_fast_install=needless 18094fi 18095 18096 18097 18098 18099 18100 18101 if test yes != "$enable_dlopen"; then 18102 enable_dlopen=unknown 18103 enable_dlopen_self=unknown 18104 enable_dlopen_self_static=unknown 18105else 18106 lt_cv_dlopen=no 18107 lt_cv_dlopen_libs= 18108 18109 case $host_os in 18110 beos*) 18111 lt_cv_dlopen=load_add_on 18112 lt_cv_dlopen_libs= 18113 lt_cv_dlopen_self=yes 18114 ;; 18115 18116 mingw* | pw32* | cegcc*) 18117 lt_cv_dlopen=LoadLibrary 18118 lt_cv_dlopen_libs= 18119 ;; 18120 18121 cygwin*) 18122 lt_cv_dlopen=dlopen 18123 lt_cv_dlopen_libs= 18124 ;; 18125 18126 darwin*) 18127 # if libdl is installed we need to link against it 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18129$as_echo_n "checking for dlopen in -ldl... " >&6; } 18130if ${ac_cv_lib_dl_dlopen+:} false; then : 18131 $as_echo_n "(cached) " >&6 18132else 18133 ac_check_lib_save_LIBS=$LIBS 18134LIBS="-ldl $LIBS" 18135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18136/* end confdefs.h. */ 18137 18138/* Override any GCC internal prototype to avoid an error. 18139 Use char because int might match the return type of a GCC 18140 builtin and then its argument prototype would still apply. */ 18141#ifdef __cplusplus 18142extern "C" 18143#endif 18144char dlopen (); 18145int 18146main () 18147{ 18148return dlopen (); 18149 ; 18150 return 0; 18151} 18152_ACEOF 18153if ac_fn_c_try_link "$LINENO"; then : 18154 ac_cv_lib_dl_dlopen=yes 18155else 18156 ac_cv_lib_dl_dlopen=no 18157fi 18158rm -f core conftest.err conftest.$ac_objext \ 18159 conftest$ac_exeext conftest.$ac_ext 18160LIBS=$ac_check_lib_save_LIBS 18161fi 18162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18163$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18164if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18165 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18166else 18167 18168 lt_cv_dlopen=dyld 18169 lt_cv_dlopen_libs= 18170 lt_cv_dlopen_self=yes 18171 18172fi 18173 18174 ;; 18175 18176 tpf*) 18177 # Don't try to run any link tests for TPF. We know it's impossible 18178 # because TPF is a cross-compiler, and we know how we open DSOs. 18179 lt_cv_dlopen=dlopen 18180 lt_cv_dlopen_libs= 18181 lt_cv_dlopen_self=no 18182 ;; 18183 18184 *) 18185 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18186if test "x$ac_cv_func_shl_load" = xyes; then : 18187 lt_cv_dlopen=shl_load 18188else 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18190$as_echo_n "checking for shl_load in -ldld... " >&6; } 18191if ${ac_cv_lib_dld_shl_load+:} false; then : 18192 $as_echo_n "(cached) " >&6 18193else 18194 ac_check_lib_save_LIBS=$LIBS 18195LIBS="-ldld $LIBS" 18196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18197/* end confdefs.h. */ 18198 18199/* Override any GCC internal prototype to avoid an error. 18200 Use char because int might match the return type of a GCC 18201 builtin and then its argument prototype would still apply. */ 18202#ifdef __cplusplus 18203extern "C" 18204#endif 18205char shl_load (); 18206int 18207main () 18208{ 18209return shl_load (); 18210 ; 18211 return 0; 18212} 18213_ACEOF 18214if ac_fn_c_try_link "$LINENO"; then : 18215 ac_cv_lib_dld_shl_load=yes 18216else 18217 ac_cv_lib_dld_shl_load=no 18218fi 18219rm -f core conftest.err conftest.$ac_objext \ 18220 conftest$ac_exeext conftest.$ac_ext 18221LIBS=$ac_check_lib_save_LIBS 18222fi 18223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18224$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18225if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 18226 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18227else 18228 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18229if test "x$ac_cv_func_dlopen" = xyes; then : 18230 lt_cv_dlopen=dlopen 18231else 18232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18233$as_echo_n "checking for dlopen in -ldl... " >&6; } 18234if ${ac_cv_lib_dl_dlopen+:} false; then : 18235 $as_echo_n "(cached) " >&6 18236else 18237 ac_check_lib_save_LIBS=$LIBS 18238LIBS="-ldl $LIBS" 18239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18240/* end confdefs.h. */ 18241 18242/* Override any GCC internal prototype to avoid an error. 18243 Use char because int might match the return type of a GCC 18244 builtin and then its argument prototype would still apply. */ 18245#ifdef __cplusplus 18246extern "C" 18247#endif 18248char dlopen (); 18249int 18250main () 18251{ 18252return dlopen (); 18253 ; 18254 return 0; 18255} 18256_ACEOF 18257if ac_fn_c_try_link "$LINENO"; then : 18258 ac_cv_lib_dl_dlopen=yes 18259else 18260 ac_cv_lib_dl_dlopen=no 18261fi 18262rm -f core conftest.err conftest.$ac_objext \ 18263 conftest$ac_exeext conftest.$ac_ext 18264LIBS=$ac_check_lib_save_LIBS 18265fi 18266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18267$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18268if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18270else 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18272$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18273if ${ac_cv_lib_svld_dlopen+:} false; then : 18274 $as_echo_n "(cached) " >&6 18275else 18276 ac_check_lib_save_LIBS=$LIBS 18277LIBS="-lsvld $LIBS" 18278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18279/* end confdefs.h. */ 18280 18281/* Override any GCC internal prototype to avoid an error. 18282 Use char because int might match the return type of a GCC 18283 builtin and then its argument prototype would still apply. */ 18284#ifdef __cplusplus 18285extern "C" 18286#endif 18287char dlopen (); 18288int 18289main () 18290{ 18291return dlopen (); 18292 ; 18293 return 0; 18294} 18295_ACEOF 18296if ac_fn_c_try_link "$LINENO"; then : 18297 ac_cv_lib_svld_dlopen=yes 18298else 18299 ac_cv_lib_svld_dlopen=no 18300fi 18301rm -f core conftest.err conftest.$ac_objext \ 18302 conftest$ac_exeext conftest.$ac_ext 18303LIBS=$ac_check_lib_save_LIBS 18304fi 18305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18306$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18307if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18308 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18309else 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18311$as_echo_n "checking for dld_link in -ldld... " >&6; } 18312if ${ac_cv_lib_dld_dld_link+:} false; then : 18313 $as_echo_n "(cached) " >&6 18314else 18315 ac_check_lib_save_LIBS=$LIBS 18316LIBS="-ldld $LIBS" 18317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18318/* end confdefs.h. */ 18319 18320/* Override any GCC internal prototype to avoid an error. 18321 Use char because int might match the return type of a GCC 18322 builtin and then its argument prototype would still apply. */ 18323#ifdef __cplusplus 18324extern "C" 18325#endif 18326char dld_link (); 18327int 18328main () 18329{ 18330return dld_link (); 18331 ; 18332 return 0; 18333} 18334_ACEOF 18335if ac_fn_c_try_link "$LINENO"; then : 18336 ac_cv_lib_dld_dld_link=yes 18337else 18338 ac_cv_lib_dld_dld_link=no 18339fi 18340rm -f core conftest.err conftest.$ac_objext \ 18341 conftest$ac_exeext conftest.$ac_ext 18342LIBS=$ac_check_lib_save_LIBS 18343fi 18344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18345$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18346if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18347 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18348fi 18349 18350 18351fi 18352 18353 18354fi 18355 18356 18357fi 18358 18359 18360fi 18361 18362 18363fi 18364 18365 ;; 18366 esac 18367 18368 if test no = "$lt_cv_dlopen"; then 18369 enable_dlopen=no 18370 else 18371 enable_dlopen=yes 18372 fi 18373 18374 case $lt_cv_dlopen in 18375 dlopen) 18376 save_CPPFLAGS=$CPPFLAGS 18377 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18378 18379 save_LDFLAGS=$LDFLAGS 18380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18381 18382 save_LIBS=$LIBS 18383 LIBS="$lt_cv_dlopen_libs $LIBS" 18384 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18386$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18387if ${lt_cv_dlopen_self+:} false; then : 18388 $as_echo_n "(cached) " >&6 18389else 18390 if test yes = "$cross_compiling"; then : 18391 lt_cv_dlopen_self=cross 18392else 18393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18394 lt_status=$lt_dlunknown 18395 cat > conftest.$ac_ext <<_LT_EOF 18396#line $LINENO "configure" 18397#include "confdefs.h" 18398 18399#if HAVE_DLFCN_H 18400#include <dlfcn.h> 18401#endif 18402 18403#include <stdio.h> 18404 18405#ifdef RTLD_GLOBAL 18406# define LT_DLGLOBAL RTLD_GLOBAL 18407#else 18408# ifdef DL_GLOBAL 18409# define LT_DLGLOBAL DL_GLOBAL 18410# else 18411# define LT_DLGLOBAL 0 18412# endif 18413#endif 18414 18415/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18416 find out it does not work in some platform. */ 18417#ifndef LT_DLLAZY_OR_NOW 18418# ifdef RTLD_LAZY 18419# define LT_DLLAZY_OR_NOW RTLD_LAZY 18420# else 18421# ifdef DL_LAZY 18422# define LT_DLLAZY_OR_NOW DL_LAZY 18423# else 18424# ifdef RTLD_NOW 18425# define LT_DLLAZY_OR_NOW RTLD_NOW 18426# else 18427# ifdef DL_NOW 18428# define LT_DLLAZY_OR_NOW DL_NOW 18429# else 18430# define LT_DLLAZY_OR_NOW 0 18431# endif 18432# endif 18433# endif 18434# endif 18435#endif 18436 18437/* When -fvisibility=hidden is used, assume the code has been annotated 18438 correspondingly for the symbols needed. */ 18439#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18440int fnord () __attribute__((visibility("default"))); 18441#endif 18442 18443int fnord () { return 42; } 18444int main () 18445{ 18446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18447 int status = $lt_dlunknown; 18448 18449 if (self) 18450 { 18451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18452 else 18453 { 18454 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18455 else puts (dlerror ()); 18456 } 18457 /* dlclose (self); */ 18458 } 18459 else 18460 puts (dlerror ()); 18461 18462 return status; 18463} 18464_LT_EOF 18465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18466 (eval $ac_link) 2>&5 18467 ac_status=$? 18468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18469 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18470 (./conftest; exit; ) >&5 2>/dev/null 18471 lt_status=$? 18472 case x$lt_status in 18473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18475 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18476 esac 18477 else : 18478 # compilation failed 18479 lt_cv_dlopen_self=no 18480 fi 18481fi 18482rm -fr conftest* 18483 18484 18485fi 18486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18487$as_echo "$lt_cv_dlopen_self" >&6; } 18488 18489 if test yes = "$lt_cv_dlopen_self"; then 18490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18492$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18493if ${lt_cv_dlopen_self_static+:} false; then : 18494 $as_echo_n "(cached) " >&6 18495else 18496 if test yes = "$cross_compiling"; then : 18497 lt_cv_dlopen_self_static=cross 18498else 18499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18500 lt_status=$lt_dlunknown 18501 cat > conftest.$ac_ext <<_LT_EOF 18502#line $LINENO "configure" 18503#include "confdefs.h" 18504 18505#if HAVE_DLFCN_H 18506#include <dlfcn.h> 18507#endif 18508 18509#include <stdio.h> 18510 18511#ifdef RTLD_GLOBAL 18512# define LT_DLGLOBAL RTLD_GLOBAL 18513#else 18514# ifdef DL_GLOBAL 18515# define LT_DLGLOBAL DL_GLOBAL 18516# else 18517# define LT_DLGLOBAL 0 18518# endif 18519#endif 18520 18521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18522 find out it does not work in some platform. */ 18523#ifndef LT_DLLAZY_OR_NOW 18524# ifdef RTLD_LAZY 18525# define LT_DLLAZY_OR_NOW RTLD_LAZY 18526# else 18527# ifdef DL_LAZY 18528# define LT_DLLAZY_OR_NOW DL_LAZY 18529# else 18530# ifdef RTLD_NOW 18531# define LT_DLLAZY_OR_NOW RTLD_NOW 18532# else 18533# ifdef DL_NOW 18534# define LT_DLLAZY_OR_NOW DL_NOW 18535# else 18536# define LT_DLLAZY_OR_NOW 0 18537# endif 18538# endif 18539# endif 18540# endif 18541#endif 18542 18543/* When -fvisibility=hidden is used, assume the code has been annotated 18544 correspondingly for the symbols needed. */ 18545#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18546int fnord () __attribute__((visibility("default"))); 18547#endif 18548 18549int fnord () { return 42; } 18550int main () 18551{ 18552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18553 int status = $lt_dlunknown; 18554 18555 if (self) 18556 { 18557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18558 else 18559 { 18560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18561 else puts (dlerror ()); 18562 } 18563 /* dlclose (self); */ 18564 } 18565 else 18566 puts (dlerror ()); 18567 18568 return status; 18569} 18570_LT_EOF 18571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18572 (eval $ac_link) 2>&5 18573 ac_status=$? 18574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18575 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18576 (./conftest; exit; ) >&5 2>/dev/null 18577 lt_status=$? 18578 case x$lt_status in 18579 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18580 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18581 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18582 esac 18583 else : 18584 # compilation failed 18585 lt_cv_dlopen_self_static=no 18586 fi 18587fi 18588rm -fr conftest* 18589 18590 18591fi 18592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18593$as_echo "$lt_cv_dlopen_self_static" >&6; } 18594 fi 18595 18596 CPPFLAGS=$save_CPPFLAGS 18597 LDFLAGS=$save_LDFLAGS 18598 LIBS=$save_LIBS 18599 ;; 18600 esac 18601 18602 case $lt_cv_dlopen_self in 18603 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18604 *) enable_dlopen_self=unknown ;; 18605 esac 18606 18607 case $lt_cv_dlopen_self_static in 18608 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18609 *) enable_dlopen_self_static=unknown ;; 18610 esac 18611fi 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629striplib= 18630old_striplib= 18631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18632$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18633if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18634 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18635 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18637$as_echo "yes" >&6; } 18638else 18639# FIXME - insert some real tests, host_os isn't really good enough 18640 case $host_os in 18641 darwin*) 18642 if test -n "$STRIP"; then 18643 striplib="$STRIP -x" 18644 old_striplib="$STRIP -S" 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18646$as_echo "yes" >&6; } 18647 else 18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18649$as_echo "no" >&6; } 18650 fi 18651 ;; 18652 *) 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18654$as_echo "no" >&6; } 18655 ;; 18656 esac 18657fi 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 # Report what library types will actually be built 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18672$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18674$as_echo "$can_build_shared" >&6; } 18675 18676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18677$as_echo_n "checking whether to build shared libraries... " >&6; } 18678 test no = "$can_build_shared" && enable_shared=no 18679 18680 # On AIX, shared libraries and static libraries use the same namespace, and 18681 # are all built from PIC. 18682 case $host_os in 18683 aix3*) 18684 test yes = "$enable_shared" && enable_static=no 18685 if test -n "$RANLIB"; then 18686 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18687 postinstall_cmds='$RANLIB $lib' 18688 fi 18689 ;; 18690 18691 aix[4-9]*) 18692 if test ia64 != "$host_cpu"; then 18693 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18694 yes,aix,yes) ;; # shared object as lib.so file only 18695 yes,svr4,*) ;; # shared object as lib.so archive member only 18696 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18697 esac 18698 fi 18699 ;; 18700 esac 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18702$as_echo "$enable_shared" >&6; } 18703 18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18705$as_echo_n "checking whether to build static libraries... " >&6; } 18706 # Make sure either enable_shared or enable_static is yes. 18707 test yes = "$enable_shared" || enable_static=yes 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18709$as_echo "$enable_static" >&6; } 18710 18711 18712 18713 18714fi 18715ac_ext=c 18716ac_cpp='$CPP $CPPFLAGS' 18717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18719ac_compiler_gnu=$ac_cv_c_compiler_gnu 18720 18721CC=$lt_save_CC 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 ac_config_commands="$ac_config_commands libtool" 18738 18739 18740 18741 18742# Only expand once: 18743 18744 18745 18746# Checks for programs. 18747 18748 18749if test "x$GCC" = "xyes"; then 18750 CPPFLAGS="$CPPFLAGS -Wall" 18751fi 18752 18753 18754 18755# Define a configure option for an alternate module directory 18756 18757# Check whether --with-xorg-module-dir was given. 18758if test "${with_xorg_module_dir+set}" = set; then : 18759 withval=$with_xorg_module_dir; moduledir="$withval" 18760else 18761 moduledir="$libdir/xorg/modules" 18762fi 18763 18764 18765# Store the list of server defined optional extensions in REQUIRED_MODULES 18766 18767 18768 SAVE_CFLAGS="$CFLAGS" 18769 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18771/* end confdefs.h. */ 18772 18773#include "xorg-server.h" 18774#if !defined RANDR 18775#error RANDR not defined 18776#endif 18777 18778int 18779main () 18780{ 18781 18782 ; 18783 return 0; 18784} 18785_ACEOF 18786if ac_fn_c_try_compile "$LINENO"; then : 18787 _EXT_CHECK=yes 18788else 18789 _EXT_CHECK=no 18790fi 18791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18792 CFLAGS="$SAVE_CFLAGS" 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18794$as_echo_n "checking if RANDR is defined... " >&6; } 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18796$as_echo "$_EXT_CHECK" >&6; } 18797 if test "$_EXT_CHECK" != no; then 18798 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18799 fi 18800 18801 18802 18803 SAVE_CFLAGS="$CFLAGS" 18804 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18806/* end confdefs.h. */ 18807 18808#include "xorg-server.h" 18809#if !defined RENDER 18810#error RENDER not defined 18811#endif 18812 18813int 18814main () 18815{ 18816 18817 ; 18818 return 0; 18819} 18820_ACEOF 18821if ac_fn_c_try_compile "$LINENO"; then : 18822 _EXT_CHECK=yes 18823else 18824 _EXT_CHECK=no 18825fi 18826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18827 CFLAGS="$SAVE_CFLAGS" 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18829$as_echo_n "checking if RENDER is defined... " >&6; } 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18831$as_echo "$_EXT_CHECK" >&6; } 18832 if test "$_EXT_CHECK" != no; then 18833 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18834 fi 18835 18836 18837 18838 SAVE_CFLAGS="$CFLAGS" 18839 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18841/* end confdefs.h. */ 18842 18843#include "xorg-server.h" 18844#if !defined XV 18845#error XV not defined 18846#endif 18847 18848int 18849main () 18850{ 18851 18852 ; 18853 return 0; 18854} 18855_ACEOF 18856if ac_fn_c_try_compile "$LINENO"; then : 18857 _EXT_CHECK=yes 18858else 18859 _EXT_CHECK=no 18860fi 18861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18862 CFLAGS="$SAVE_CFLAGS" 18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18864$as_echo_n "checking if XV is defined... " >&6; } 18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18866$as_echo "$_EXT_CHECK" >&6; } 18867 if test "$_EXT_CHECK" != no; then 18868 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18869 fi 18870 18871 18872 18873 SAVE_CFLAGS="$CFLAGS" 18874 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18876/* end confdefs.h. */ 18877 18878#include "xorg-server.h" 18879#if !defined DPMSExtension 18880#error DPMSExtension not defined 18881#endif 18882 18883int 18884main () 18885{ 18886 18887 ; 18888 return 0; 18889} 18890_ACEOF 18891if ac_fn_c_try_compile "$LINENO"; then : 18892 _EXT_CHECK=yes 18893else 18894 _EXT_CHECK=no 18895fi 18896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18897 CFLAGS="$SAVE_CFLAGS" 18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18899$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18901$as_echo "$_EXT_CHECK" >&6; } 18902 if test "$_EXT_CHECK" != no; then 18903 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18904 fi 18905 18906 18907# Checks for libraries. 18908 18909pkg_failed=no 18910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5 18911$as_echo_n "checking for LIBDRM... " >&6; } 18912 18913if test -n "$LIBDRM_CFLAGS"; then 18914 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 18915 elif test -n "$PKG_CONFIG"; then 18916 if test -n "$PKG_CONFIG" && \ 18917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5 18918 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5 18919 ac_status=$? 18920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18921 test $ac_status = 0; }; then 18922 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.58" 2>/dev/null` 18923 test "x$?" != "x0" && pkg_failed=yes 18924else 18925 pkg_failed=yes 18926fi 18927 else 18928 pkg_failed=untried 18929fi 18930if test -n "$LIBDRM_LIBS"; then 18931 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 18932 elif test -n "$PKG_CONFIG"; then 18933 if test -n "$PKG_CONFIG" && \ 18934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.58\""; } >&5 18935 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.58") 2>&5 18936 ac_status=$? 18937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18938 test $ac_status = 0; }; then 18939 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.58" 2>/dev/null` 18940 test "x$?" != "x0" && pkg_failed=yes 18941else 18942 pkg_failed=yes 18943fi 18944 else 18945 pkg_failed=untried 18946fi 18947 18948 18949 18950if test $pkg_failed = yes; then 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18952$as_echo "no" >&6; } 18953 18954if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18955 _pkg_short_errors_supported=yes 18956else 18957 _pkg_short_errors_supported=no 18958fi 18959 if test $_pkg_short_errors_supported = yes; then 18960 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1` 18961 else 18962 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.58" 2>&1` 18963 fi 18964 # Put the nasty error message in config.log where it belongs 18965 echo "$LIBDRM_PKG_ERRORS" >&5 18966 18967 as_fn_error $? "Package requirements (libdrm >= 2.4.58) were not met: 18968 18969$LIBDRM_PKG_ERRORS 18970 18971Consider adjusting the PKG_CONFIG_PATH environment variable if you 18972installed software in a non-standard prefix. 18973 18974Alternatively, you may set the environment variables LIBDRM_CFLAGS 18975and LIBDRM_LIBS to avoid the need to call pkg-config. 18976See the pkg-config man page for more details." "$LINENO" 5 18977elif test $pkg_failed = untried; then 18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18979$as_echo "no" >&6; } 18980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18982as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18983is in your PATH or set the PKG_CONFIG environment variable to the full 18984path to pkg-config. 18985 18986Alternatively, you may set the environment variables LIBDRM_CFLAGS 18987and LIBDRM_LIBS to avoid the need to call pkg-config. 18988See the pkg-config man page for more details. 18989 18990To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18991See \`config.log' for more details" "$LINENO" 5; } 18992else 18993 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 18994 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18996$as_echo "yes" >&6; } 18997 18998fi 18999 19000pkg_failed=no 19001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5 19002$as_echo_n "checking for LIBDRM_RADEON... " >&6; } 19003 19004if test -n "$LIBDRM_RADEON_CFLAGS"; then 19005 pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS" 19006 elif test -n "$PKG_CONFIG"; then 19007 if test -n "$PKG_CONFIG" && \ 19008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5 19009 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5 19010 ac_status=$? 19011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19012 test $ac_status = 0; }; then 19013 pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null` 19014 test "x$?" != "x0" && pkg_failed=yes 19015else 19016 pkg_failed=yes 19017fi 19018 else 19019 pkg_failed=untried 19020fi 19021if test -n "$LIBDRM_RADEON_LIBS"; then 19022 pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS" 19023 elif test -n "$PKG_CONFIG"; then 19024 if test -n "$PKG_CONFIG" && \ 19025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5 19026 ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5 19027 ac_status=$? 19028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19029 test $ac_status = 0; }; then 19030 pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null` 19031 test "x$?" != "x0" && pkg_failed=yes 19032else 19033 pkg_failed=yes 19034fi 19035 else 19036 pkg_failed=untried 19037fi 19038 19039 19040 19041if test $pkg_failed = yes; then 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19043$as_echo "no" >&6; } 19044 19045if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19046 _pkg_short_errors_supported=yes 19047else 19048 _pkg_short_errors_supported=no 19049fi 19050 if test $_pkg_short_errors_supported = yes; then 19051 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1` 19052 else 19053 LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1` 19054 fi 19055 # Put the nasty error message in config.log where it belongs 19056 echo "$LIBDRM_RADEON_PKG_ERRORS" >&5 19057 19058 as_fn_error $? "Package requirements (libdrm_radeon) were not met: 19059 19060$LIBDRM_RADEON_PKG_ERRORS 19061 19062Consider adjusting the PKG_CONFIG_PATH environment variable if you 19063installed software in a non-standard prefix. 19064 19065Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS 19066and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config. 19067See the pkg-config man page for more details." "$LINENO" 5 19068elif test $pkg_failed = untried; then 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19070$as_echo "no" >&6; } 19071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19073as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19074is in your PATH or set the PKG_CONFIG environment variable to the full 19075path to pkg-config. 19076 19077Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS 19078and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config. 19079See the pkg-config man page for more details. 19080 19081To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19082See \`config.log' for more details" "$LINENO" 5; } 19083else 19084 LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS 19085 LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19087$as_echo "yes" >&6; } 19088 19089fi 19090 19091# Obtain compiler/linker options for the driver dependencies 19092 19093pkg_failed=no 19094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19095$as_echo_n "checking for XORG... " >&6; } 19096 19097if test -n "$XORG_CFLAGS"; then 19098 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19099 elif test -n "$PKG_CONFIG"; then 19100 if test -n "$PKG_CONFIG" && \ 19101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.9 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19102 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19103 ac_status=$? 19104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19105 test $ac_status = 0; }; then 19106 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19107 test "x$?" != "x0" && pkg_failed=yes 19108else 19109 pkg_failed=yes 19110fi 19111 else 19112 pkg_failed=untried 19113fi 19114if test -n "$XORG_LIBS"; then 19115 pkg_cv_XORG_LIBS="$XORG_LIBS" 19116 elif test -n "$PKG_CONFIG"; then 19117 if test -n "$PKG_CONFIG" && \ 19118 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.9 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5 19119 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5 19120 ac_status=$? 19121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19122 test $ac_status = 0; }; then 19123 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null` 19124 test "x$?" != "x0" && pkg_failed=yes 19125else 19126 pkg_failed=yes 19127fi 19128 else 19129 pkg_failed=untried 19130fi 19131 19132 19133 19134if test $pkg_failed = yes; then 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19136$as_echo "no" >&6; } 19137 19138if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19139 _pkg_short_errors_supported=yes 19140else 19141 _pkg_short_errors_supported=no 19142fi 19143 if test $_pkg_short_errors_supported = yes; then 19144 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19145 else 19146 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1` 19147 fi 19148 # Put the nasty error message in config.log where it belongs 19149 echo "$XORG_PKG_ERRORS" >&5 19150 19151 as_fn_error $? "Package requirements (xorg-server >= 1.9 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met: 19152 19153$XORG_PKG_ERRORS 19154 19155Consider adjusting the PKG_CONFIG_PATH environment variable if you 19156installed software in a non-standard prefix. 19157 19158Alternatively, you may set the environment variables XORG_CFLAGS 19159and XORG_LIBS to avoid the need to call pkg-config. 19160See the pkg-config man page for more details." "$LINENO" 5 19161elif test $pkg_failed = untried; then 19162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19163$as_echo "no" >&6; } 19164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19165$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19166as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19167is in your PATH or set the PKG_CONFIG environment variable to the full 19168path to pkg-config. 19169 19170Alternatively, you may set the environment variables XORG_CFLAGS 19171and XORG_LIBS to avoid the need to call pkg-config. 19172See the pkg-config man page for more details. 19173 19174To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19175See \`config.log' for more details" "$LINENO" 5; } 19176else 19177 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19178 XORG_LIBS=$pkg_cv_XORG_LIBS 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19180$as_echo "yes" >&6; } 19181 19182fi 19183 19184pkg_failed=no 19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19186$as_echo_n "checking for XEXT... " >&6; } 19187 19188if test -n "$XEXT_CFLAGS"; then 19189 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19190 elif test -n "$PKG_CONFIG"; then 19191 if test -n "$PKG_CONFIG" && \ 19192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19193 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19194 ac_status=$? 19195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19196 test $ac_status = 0; }; then 19197 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19198 test "x$?" != "x0" && pkg_failed=yes 19199else 19200 pkg_failed=yes 19201fi 19202 else 19203 pkg_failed=untried 19204fi 19205if test -n "$XEXT_LIBS"; then 19206 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19207 elif test -n "$PKG_CONFIG"; then 19208 if test -n "$PKG_CONFIG" && \ 19209 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19210 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19211 ac_status=$? 19212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19213 test $ac_status = 0; }; then 19214 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19215 test "x$?" != "x0" && pkg_failed=yes 19216else 19217 pkg_failed=yes 19218fi 19219 else 19220 pkg_failed=untried 19221fi 19222 19223 19224 19225if test $pkg_failed = yes; then 19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19227$as_echo "no" >&6; } 19228 19229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19230 _pkg_short_errors_supported=yes 19231else 19232 _pkg_short_errors_supported=no 19233fi 19234 if test $_pkg_short_errors_supported = yes; then 19235 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19236 else 19237 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19238 fi 19239 # Put the nasty error message in config.log where it belongs 19240 echo "$XEXT_PKG_ERRORS" >&5 19241 19242 HAVE_XEXTPROTO_71="no" 19243elif test $pkg_failed = untried; then 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19245$as_echo "no" >&6; } 19246 HAVE_XEXTPROTO_71="no" 19247else 19248 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19249 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19251$as_echo "yes" >&6; } 19252 HAVE_XEXTPROTO_71="yes"; 19253$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19254 19255fi 19256 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19257 HAVE_XEXTPROTO_71_TRUE= 19258 HAVE_XEXTPROTO_71_FALSE='#' 19259else 19260 HAVE_XEXTPROTO_71_TRUE='#' 19261 HAVE_XEXTPROTO_71_FALSE= 19262fi 19263 19264 19265# Check whether --enable-udev was given. 19266if test "${enable_udev+set}" = set; then : 19267 enableval=$enable_udev; enable_udev="$enableval" 19268else 19269 enable_udev=auto 19270fi 19271 19272if test "x$enable_udev" != "xno"; then 19273 19274pkg_failed=no 19275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 19276$as_echo_n "checking for LIBUDEV... " >&6; } 19277 19278if test -n "$LIBUDEV_CFLAGS"; then 19279 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 19280 elif test -n "$PKG_CONFIG"; then 19281 if test -n "$PKG_CONFIG" && \ 19282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19283 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19284 ac_status=$? 19285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19286 test $ac_status = 0; }; then 19287 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19288 test "x$?" != "x0" && pkg_failed=yes 19289else 19290 pkg_failed=yes 19291fi 19292 else 19293 pkg_failed=untried 19294fi 19295if test -n "$LIBUDEV_LIBS"; then 19296 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 19297 elif test -n "$PKG_CONFIG"; then 19298 if test -n "$PKG_CONFIG" && \ 19299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19300 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19301 ac_status=$? 19302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19303 test $ac_status = 0; }; then 19304 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19305 test "x$?" != "x0" && pkg_failed=yes 19306else 19307 pkg_failed=yes 19308fi 19309 else 19310 pkg_failed=untried 19311fi 19312 19313 19314 19315if test $pkg_failed = yes; then 19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19317$as_echo "no" >&6; } 19318 19319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19320 _pkg_short_errors_supported=yes 19321else 19322 _pkg_short_errors_supported=no 19323fi 19324 if test $_pkg_short_errors_supported = yes; then 19325 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19326 else 19327 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19328 fi 19329 # Put the nasty error message in config.log where it belongs 19330 echo "$LIBUDEV_PKG_ERRORS" >&5 19331 19332 LIBUDEV=no 19333elif test $pkg_failed = untried; then 19334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19335$as_echo "no" >&6; } 19336 LIBUDEV=no 19337else 19338 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 19339 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19341$as_echo "yes" >&6; } 19342 LIBUDEV=yes 19343fi 19344 if test "x$LIBUDEV" = xyes; then 19345 19346$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h 19347 19348 elif test "x$enable_udev" != "xauto"; then 19349 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 19350 fi 19351fi 19352 if test x$LIBUDEV = xyes; then 19353 LIBUDEV_TRUE= 19354 LIBUDEV_FALSE='#' 19355else 19356 LIBUDEV_TRUE='#' 19357 LIBUDEV_FALSE= 19358fi 19359 19360 19361SAVE_CPPFLAGS="$CPPFLAGS" 19362CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19363 19364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5 19365$as_echo_n "checking whether to include GLAMOR support... " >&6; } 19366# Check whether --enable-glamor was given. 19367if test "${enable_glamor+set}" = set; then : 19368 enableval=$enable_glamor; GLAMOR="$enableval" 19369else 19370 GLAMOR=yes 19371fi 19372 19373 19374if test "x$GLAMOR" != "xno"; then 19375 for ac_header in glamor.h 19376do : 19377 ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\" 19378" 19379if test "x$ac_cv_header_glamor_h" = xyes; then : 19380 cat >>confdefs.h <<_ACEOF 19381#define HAVE_GLAMOR_H 1 19382_ACEOF 19383 GLAMOR_H="yes" 19384else 19385 GLAMOR_H="no" 19386fi 19387 19388done 19389 19390 19391 if test "x$GLAMOR_H" = xyes; then 19392 ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\" 19393 #include \"glamor.h\" 19394" 19395if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then : 19396 GLAMOR_XSERVER="yes" 19397else 19398 GLAMOR_XSERVER="no" 19399fi 19400 19401 19402 ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\" 19403 #include \"glamor.h\" 19404" 19405if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then : 19406 19407$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h 19408 19409fi 19410 19411 19412 ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\" 19413 #include \"glamor.h\" 19414" 19415if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then : 19416 19417$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h 19418 19419fi 19420 19421 fi 19422 19423 if test "x$GLAMOR_XSERVER" != xyes; then 19424 19425pkg_failed=no 19426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5 19427$as_echo_n "checking for LIBGLAMOR... " >&6; } 19428 19429if test -n "$LIBGLAMOR_CFLAGS"; then 19430 pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS" 19431 elif test -n "$PKG_CONFIG"; then 19432 if test -n "$PKG_CONFIG" && \ 19433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19434 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19435 ac_status=$? 19436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19437 test $ac_status = 0; }; then 19438 pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null` 19439 test "x$?" != "x0" && pkg_failed=yes 19440else 19441 pkg_failed=yes 19442fi 19443 else 19444 pkg_failed=untried 19445fi 19446if test -n "$LIBGLAMOR_LIBS"; then 19447 pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS" 19448 elif test -n "$PKG_CONFIG"; then 19449 if test -n "$PKG_CONFIG" && \ 19450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5 19451 ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5 19452 ac_status=$? 19453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19454 test $ac_status = 0; }; then 19455 pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null` 19456 test "x$?" != "x0" && pkg_failed=yes 19457else 19458 pkg_failed=yes 19459fi 19460 else 19461 pkg_failed=untried 19462fi 19463 19464 19465 19466if test $pkg_failed = yes; then 19467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19468$as_echo "no" >&6; } 19469 19470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19471 _pkg_short_errors_supported=yes 19472else 19473 _pkg_short_errors_supported=no 19474fi 19475 if test $_pkg_short_errors_supported = yes; then 19476 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19477 else 19478 LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1` 19479 fi 19480 # Put the nasty error message in config.log where it belongs 19481 echo "$LIBGLAMOR_PKG_ERRORS" >&5 19482 19483 as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met: 19484 19485$LIBGLAMOR_PKG_ERRORS 19486 19487Consider adjusting the PKG_CONFIG_PATH environment variable if you 19488installed software in a non-standard prefix. 19489 19490Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19491and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19492See the pkg-config man page for more details." "$LINENO" 5 19493elif test $pkg_failed = untried; then 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19495$as_echo "no" >&6; } 19496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19498as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19499is in your PATH or set the PKG_CONFIG environment variable to the full 19500path to pkg-config. 19501 19502Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS 19503and LIBGLAMOR_LIBS to avoid the need to call pkg-config. 19504See the pkg-config man page for more details. 19505 19506To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19507See \`config.log' for more details" "$LINENO" 5; } 19508else 19509 LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS 19510 LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS 19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19512$as_echo "yes" >&6; } 19513 19514fi 19515 19516pkg_failed=no 19517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5 19518$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; } 19519 19520if test -n "$LIBGLAMOR_EGL_CFLAGS"; then 19521 pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS" 19522 elif test -n "$PKG_CONFIG"; then 19523 if test -n "$PKG_CONFIG" && \ 19524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19525 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19526 ac_status=$? 19527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19528 test $ac_status = 0; }; then 19529 pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null` 19530 test "x$?" != "x0" && pkg_failed=yes 19531else 19532 pkg_failed=yes 19533fi 19534 else 19535 pkg_failed=untried 19536fi 19537if test -n "$LIBGLAMOR_EGL_LIBS"; then 19538 pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS" 19539 elif test -n "$PKG_CONFIG"; then 19540 if test -n "$PKG_CONFIG" && \ 19541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5 19542 ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5 19543 ac_status=$? 19544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19545 test $ac_status = 0; }; then 19546 pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null` 19547 test "x$?" != "x0" && pkg_failed=yes 19548else 19549 pkg_failed=yes 19550fi 19551 else 19552 pkg_failed=untried 19553fi 19554 19555 19556 19557if test $pkg_failed = yes; then 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19559$as_echo "no" >&6; } 19560 19561if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19562 _pkg_short_errors_supported=yes 19563else 19564 _pkg_short_errors_supported=no 19565fi 19566 if test $_pkg_short_errors_supported = yes; then 19567 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1` 19568 else 19569 LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1` 19570 fi 19571 # Put the nasty error message in config.log where it belongs 19572 echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5 19573 19574 as_fn_error $? "Package requirements (glamor-egl) were not met: 19575 19576$LIBGLAMOR_EGL_PKG_ERRORS 19577 19578Consider adjusting the PKG_CONFIG_PATH environment variable if you 19579installed software in a non-standard prefix. 19580 19581Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19582and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19583See the pkg-config man page for more details." "$LINENO" 5 19584elif test $pkg_failed = untried; then 19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19586$as_echo "no" >&6; } 19587 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19589as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19590is in your PATH or set the PKG_CONFIG environment variable to the full 19591path to pkg-config. 19592 19593Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS 19594and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config. 19595See the pkg-config man page for more details. 19596 19597To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19598See \`config.log' for more details" "$LINENO" 5; } 19599else 19600 LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS 19601 LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS 19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19603$as_echo "yes" >&6; } 19604 19605fi 19606 fi 19607 19608$as_echo "#define USE_GLAMOR 1" >>confdefs.h 19609 19610else 19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5 19612$as_echo "$GLAMOR" >&6; } 19613fi 19614 if test x$GLAMOR != xno; then 19615 GLAMOR_TRUE= 19616 GLAMOR_FALSE='#' 19617else 19618 GLAMOR_TRUE='#' 19619 GLAMOR_FALSE= 19620fi 19621 19622 19623ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h> 19624 #include <X11/Xfuncproto.h> 19625 #include <X11/extensions/renderproto.h> 19626 #include <xorg-server.h> 19627 #include <picture.h> 19628 #include <glyphstr.h> 19629 #include <fbpict.h> 19630" 19631if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then : 19632 19633$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h 19634 19635fi 19636 19637 19638ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h> 19639 #include <xf86Cursor.h> 19640" 19641if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then : 19642 19643$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h 19644 19645fi 19646 19647 19648ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h> 19649 #include \"xorg-server.h\" 19650 #include \"list.h\" 19651" 19652if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then : 19653 19654$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h 19655 19656fi 19657 19658 19659for ac_header in misyncshm.h 19660do : 19661 ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h> 19662 #include <X11/Xfuncproto.h> 19663 #include <xorg-server.h> 19664 #include <screenint.h> 19665" 19666if test "x$ac_cv_header_misyncshm_h" = xyes; then : 19667 cat >>confdefs.h <<_ACEOF 19668#define HAVE_MISYNCSHM_H 1 19669_ACEOF 19670 19671fi 19672 19673done 19674 19675 19676for ac_header in present.h 19677do : 19678 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h> 19679 #include <X11/Xproto.h> 19680 #include <X11/X.h> 19681 #include \"xorg-server.h\" 19682" 19683if test "x$ac_cv_header_present_h" = xyes; then : 19684 cat >>confdefs.h <<_ACEOF 19685#define HAVE_PRESENT_H 1 19686_ACEOF 19687 19688fi 19689 19690done 19691 19692 19693for ac_header in dri3.h 19694do : 19695 ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h> 19696 #include <xorg-server.h> 19697" 19698if test "x$ac_cv_header_dri3_h" = xyes; then : 19699 cat >>confdefs.h <<_ACEOF 19700#define HAVE_DRI3_H 1 19701_ACEOF 19702 19703fi 19704 19705done 19706 19707 19708CPPFLAGS="$SAVE_CPPFLAGS" 19709 19710 19711pkg_failed=no 19712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19713$as_echo_n "checking for PCIACCESS... " >&6; } 19714 19715if test -n "$PCIACCESS_CFLAGS"; then 19716 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19717 elif test -n "$PKG_CONFIG"; then 19718 if test -n "$PKG_CONFIG" && \ 19719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19720 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19721 ac_status=$? 19722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19723 test $ac_status = 0; }; then 19724 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19725 test "x$?" != "x0" && pkg_failed=yes 19726else 19727 pkg_failed=yes 19728fi 19729 else 19730 pkg_failed=untried 19731fi 19732if test -n "$PCIACCESS_LIBS"; then 19733 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19734 elif test -n "$PKG_CONFIG"; then 19735 if test -n "$PKG_CONFIG" && \ 19736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19737 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19738 ac_status=$? 19739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19740 test $ac_status = 0; }; then 19741 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19742 test "x$?" != "x0" && pkg_failed=yes 19743else 19744 pkg_failed=yes 19745fi 19746 else 19747 pkg_failed=untried 19748fi 19749 19750 19751 19752if test $pkg_failed = yes; then 19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19754$as_echo "no" >&6; } 19755 19756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19757 _pkg_short_errors_supported=yes 19758else 19759 _pkg_short_errors_supported=no 19760fi 19761 if test $_pkg_short_errors_supported = yes; then 19762 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19763 else 19764 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19765 fi 19766 # Put the nasty error message in config.log where it belongs 19767 echo "$PCIACCESS_PKG_ERRORS" >&5 19768 19769 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19770 19771$PCIACCESS_PKG_ERRORS 19772 19773Consider adjusting the PKG_CONFIG_PATH environment variable if you 19774installed software in a non-standard prefix. 19775 19776Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19777and PCIACCESS_LIBS to avoid the need to call pkg-config. 19778See the pkg-config man page for more details." "$LINENO" 5 19779elif test $pkg_failed = untried; then 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19781$as_echo "no" >&6; } 19782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19784as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19785is in your PATH or set the PKG_CONFIG environment variable to the full 19786path to pkg-config. 19787 19788Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19789and PCIACCESS_LIBS to avoid the need to call pkg-config. 19790See the pkg-config man page for more details. 19791 19792To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19793See \`config.log' for more details" "$LINENO" 5; } 19794else 19795 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19796 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19798$as_echo "yes" >&6; } 19799 19800fi 19801XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19802 19803# Checks for headers/macros for byte swapping 19804# Known variants: 19805# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc) 19806# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD) 19807# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's) 19808# and a fallback to local macros if none of the above are found 19809 19810# if <byteswap.h> is found, assume it's the correct version 19811for ac_header in byteswap.h 19812do : 19813 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 19814if test "x$ac_cv_header_byteswap_h" = xyes; then : 19815 cat >>confdefs.h <<_ACEOF 19816#define HAVE_BYTESWAP_H 1 19817_ACEOF 19818 19819fi 19820 19821done 19822 19823 19824# if <sys/endian.h> is found, have to check which version 19825ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 19826if test "x$ac_cv_header_sys_endian_h" = xyes; then : 19827 HAVE_SYS_ENDIAN_H="yes" 19828else 19829 HAVE_SYS_ENDIAN_H="no" 19830fi 19831 19832 19833 19834if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then 19835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5 19836$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19838/* end confdefs.h. */ 19839 19840#include <sys/types.h> 19841#include <sys/endian.h> 19842 19843int 19844main () 19845{ 19846 19847int a = 1, b; 19848b = __swap16(a); 19849 19850 ; 19851 return 0; 19852} 19853 19854_ACEOF 19855if ac_fn_c_try_link "$LINENO"; then : 19856 SYS_ENDIAN__SWAP='yes' 19857else 19858 SYS_ENDIAN__SWAP='no' 19859fi 19860rm -f core conftest.err conftest.$ac_objext \ 19861 conftest$ac_exeext conftest.$ac_ext 19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5 19863$as_echo "$SYS_ENDIAN__SWAP" >&6; } 19864 19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5 19866$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; } 19867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19868/* end confdefs.h. */ 19869 19870#include <sys/types.h> 19871#include <sys/endian.h> 19872 19873int 19874main () 19875{ 19876 19877int a = 1, b; 19878b = bswap16(a); 19879 19880 ; 19881 return 0; 19882} 19883 19884_ACEOF 19885if ac_fn_c_try_link "$LINENO"; then : 19886 SYS_ENDIAN_BSWAP='yes' 19887else 19888 SYS_ENDIAN_BSWAP='no' 19889fi 19890rm -f core conftest.err conftest.$ac_objext \ 19891 conftest$ac_exeext conftest.$ac_ext 19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5 19893$as_echo "$SYS_ENDIAN_BSWAP" >&6; } 19894 19895 if test "$SYS_ENDIAN_BSWAP" = "yes" ; then 19896 USE_SYS_ENDIAN_H=yes 19897 BSWAP=bswap 19898 else 19899 if test "$SYS_ENDIAN__SWAP" = "yes" ; then 19900 USE_SYS_ENDIAN_H=yes 19901 BSWAP=__swap 19902 else 19903 USE_SYS_ENDIAN_H=no 19904 fi 19905 fi 19906 19907 if test "$USE_SYS_ENDIAN_H" = "yes" ; then 19908 19909$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h 19910 19911 19912cat >>confdefs.h <<_ACEOF 19913#define bswap_16 ${BSWAP}16 19914_ACEOF 19915 19916 19917cat >>confdefs.h <<_ACEOF 19918#define bswap_32 ${BSWAP}32 19919_ACEOF 19920 19921 19922cat >>confdefs.h <<_ACEOF 19923#define bswap_64 ${BSWAP}64 19924_ACEOF 19925 19926 fi 19927fi 19928 19929 19930 19931DRIVER_NAME=ati 19932 19933 19934{ $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64: 19935 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 19936Please install that driver as well for mach64-based cards. 19937" >&5 19938$as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64: 19939 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64 19940Please install that driver as well for mach64-based cards. 19941" >&6;} 19942 19943{ $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128: 19944 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 19945Please install that driver as well for rage128-based cards. 19946" >&5 19947$as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128: 19948 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128 19949Please install that driver as well for rage128-based cards. 19950" >&6;} 19951 19952ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19953 19954cat >confcache <<\_ACEOF 19955# This file is a shell script that caches the results of configure 19956# tests run on this system so they can be shared between configure 19957# scripts and configure runs, see configure's option --config-cache. 19958# It is not useful on other systems. If it contains results you don't 19959# want to keep, you may remove or edit it. 19960# 19961# config.status only pays attention to the cache file if you give it 19962# the --recheck option to rerun configure. 19963# 19964# `ac_cv_env_foo' variables (set or unset) will be overridden when 19965# loading this file, other *unset* `ac_cv_foo' will be assigned the 19966# following values. 19967 19968_ACEOF 19969 19970# The following way of writing the cache mishandles newlines in values, 19971# but we know of no workaround that is simple, portable, and efficient. 19972# So, we kill variables containing newlines. 19973# Ultrix sh set writes to stderr and can't be redirected directly, 19974# and sets the high bit in the cache file unless we assign to the vars. 19975( 19976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19977 eval ac_val=\$$ac_var 19978 case $ac_val in #( 19979 *${as_nl}*) 19980 case $ac_var in #( 19981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19982$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19983 esac 19984 case $ac_var in #( 19985 _ | IFS | as_nl) ;; #( 19986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19987 *) { eval $ac_var=; unset $ac_var;} ;; 19988 esac ;; 19989 esac 19990 done 19991 19992 (set) 2>&1 | 19993 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19994 *${as_nl}ac_space=\ *) 19995 # `set' does not quote correctly, so add quotes: double-quote 19996 # substitution turns \\\\ into \\, and sed turns \\ into \. 19997 sed -n \ 19998 "s/'/'\\\\''/g; 19999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20000 ;; #( 20001 *) 20002 # `set' quotes correctly as required by POSIX, so do not add quotes. 20003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20004 ;; 20005 esac | 20006 sort 20007) | 20008 sed ' 20009 /^ac_cv_env_/b end 20010 t clear 20011 :clear 20012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20013 t end 20014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20015 :end' >>confcache 20016if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20017 if test -w "$cache_file"; then 20018 if test "x$cache_file" != "x/dev/null"; then 20019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20020$as_echo "$as_me: updating cache $cache_file" >&6;} 20021 if test ! -f "$cache_file" || test -h "$cache_file"; then 20022 cat confcache >"$cache_file" 20023 else 20024 case $cache_file in #( 20025 */* | ?:*) 20026 mv -f confcache "$cache_file"$$ && 20027 mv -f "$cache_file"$$ "$cache_file" ;; #( 20028 *) 20029 mv -f confcache "$cache_file" ;; 20030 esac 20031 fi 20032 fi 20033 else 20034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20035$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20036 fi 20037fi 20038rm -f confcache 20039 20040test "x$prefix" = xNONE && prefix=$ac_default_prefix 20041# Let make expand exec_prefix. 20042test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20043 20044DEFS=-DHAVE_CONFIG_H 20045 20046ac_libobjs= 20047ac_ltlibobjs= 20048U= 20049for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20050 # 1. Remove the extension, and $U if already installed. 20051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20054 # will be set to the directory where LIBOBJS objects are built. 20055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20057done 20058LIBOBJS=$ac_libobjs 20059 20060LTLIBOBJS=$ac_ltlibobjs 20061 20062 20063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20064$as_echo_n "checking that generated files are newer than configure... " >&6; } 20065 if test -n "$am_sleep_pid"; then 20066 # Hide warnings about reused PIDs. 20067 wait $am_sleep_pid 2>/dev/null 20068 fi 20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20070$as_echo "done" >&6; } 20071 if test -n "$EXEEXT"; then 20072 am__EXEEXT_TRUE= 20073 am__EXEEXT_FALSE='#' 20074else 20075 am__EXEEXT_TRUE='#' 20076 am__EXEEXT_FALSE= 20077fi 20078 20079if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20080 as_fn_error $? "conditional \"AMDEP\" was never defined. 20081Usually this means the macro was only invoked conditionally." "$LINENO" 5 20082fi 20083if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20084 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20085Usually this means the macro was only invoked conditionally." "$LINENO" 5 20086fi 20087if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20088 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20089Usually this means the macro was only invoked conditionally." "$LINENO" 5 20090fi 20091if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20092 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20093Usually this means the macro was only invoked conditionally." "$LINENO" 5 20094fi 20095if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20096 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20097Usually this means the macro was only invoked conditionally." "$LINENO" 5 20098fi 20099if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then 20100 as_fn_error $? "conditional \"GLAMOR\" was never defined. 20101Usually this means the macro was only invoked conditionally." "$LINENO" 5 20102fi 20103 20104: "${CONFIG_STATUS=./config.status}" 20105ac_write_fail=0 20106ac_clean_files_save=$ac_clean_files 20107ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20108{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20109$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20110as_write_fail=0 20111cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20112#! $SHELL 20113# Generated by $as_me. 20114# Run this file to recreate the current configuration. 20115# Compiler output produced by configure, useful for debugging 20116# configure, is in config.log if it exists. 20117 20118debug=false 20119ac_cs_recheck=false 20120ac_cs_silent=false 20121 20122SHELL=\${CONFIG_SHELL-$SHELL} 20123export SHELL 20124_ASEOF 20125cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20126## -------------------- ## 20127## M4sh Initialization. ## 20128## -------------------- ## 20129 20130# Be more Bourne compatible 20131DUALCASE=1; export DUALCASE # for MKS sh 20132if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20133 emulate sh 20134 NULLCMD=: 20135 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20136 # is contrary to our usage. Disable this feature. 20137 alias -g '${1+"$@"}'='"$@"' 20138 setopt NO_GLOB_SUBST 20139else 20140 case `(set -o) 2>/dev/null` in #( 20141 *posix*) : 20142 set -o posix ;; #( 20143 *) : 20144 ;; 20145esac 20146fi 20147 20148 20149as_nl=' 20150' 20151export as_nl 20152# Printing a long string crashes Solaris 7 /usr/bin/printf. 20153as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20154as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20155as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20156# Prefer a ksh shell builtin over an external printf program on Solaris, 20157# but without wasting forks for bash or zsh. 20158if test -z "$BASH_VERSION$ZSH_VERSION" \ 20159 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20160 as_echo='print -r --' 20161 as_echo_n='print -rn --' 20162elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20163 as_echo='printf %s\n' 20164 as_echo_n='printf %s' 20165else 20166 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20167 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20168 as_echo_n='/usr/ucb/echo -n' 20169 else 20170 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20171 as_echo_n_body='eval 20172 arg=$1; 20173 case $arg in #( 20174 *"$as_nl"*) 20175 expr "X$arg" : "X\\(.*\\)$as_nl"; 20176 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20177 esac; 20178 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20179 ' 20180 export as_echo_n_body 20181 as_echo_n='sh -c $as_echo_n_body as_echo' 20182 fi 20183 export as_echo_body 20184 as_echo='sh -c $as_echo_body as_echo' 20185fi 20186 20187# The user is always right. 20188if test "${PATH_SEPARATOR+set}" != set; then 20189 PATH_SEPARATOR=: 20190 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20191 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20192 PATH_SEPARATOR=';' 20193 } 20194fi 20195 20196 20197# IFS 20198# We need space, tab and new line, in precisely that order. Quoting is 20199# there to prevent editors from complaining about space-tab. 20200# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20201# splitting by setting IFS to empty value.) 20202IFS=" "" $as_nl" 20203 20204# Find who we are. Look in the path if we contain no directory separator. 20205as_myself= 20206case $0 in #(( 20207 *[\\/]* ) as_myself=$0 ;; 20208 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20209for as_dir in $PATH 20210do 20211 IFS=$as_save_IFS 20212 test -z "$as_dir" && as_dir=. 20213 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20214 done 20215IFS=$as_save_IFS 20216 20217 ;; 20218esac 20219# We did not find ourselves, most probably we were run as `sh COMMAND' 20220# in which case we are not to be found in the path. 20221if test "x$as_myself" = x; then 20222 as_myself=$0 20223fi 20224if test ! -f "$as_myself"; then 20225 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20226 exit 1 20227fi 20228 20229# Unset variables that we do not need and which cause bugs (e.g. in 20230# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20231# suppresses any "Segmentation fault" message there. '((' could 20232# trigger a bug in pdksh 5.2.14. 20233for as_var in BASH_ENV ENV MAIL MAILPATH 20234do eval test x\${$as_var+set} = xset \ 20235 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20236done 20237PS1='$ ' 20238PS2='> ' 20239PS4='+ ' 20240 20241# NLS nuisances. 20242LC_ALL=C 20243export LC_ALL 20244LANGUAGE=C 20245export LANGUAGE 20246 20247# CDPATH. 20248(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20249 20250 20251# as_fn_error STATUS ERROR [LINENO LOG_FD] 20252# ---------------------------------------- 20253# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20254# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20255# script with STATUS, using 1 if that was 0. 20256as_fn_error () 20257{ 20258 as_status=$1; test $as_status -eq 0 && as_status=1 20259 if test "$4"; then 20260 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20261 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20262 fi 20263 $as_echo "$as_me: error: $2" >&2 20264 as_fn_exit $as_status 20265} # as_fn_error 20266 20267 20268# as_fn_set_status STATUS 20269# ----------------------- 20270# Set $? to STATUS, without forking. 20271as_fn_set_status () 20272{ 20273 return $1 20274} # as_fn_set_status 20275 20276# as_fn_exit STATUS 20277# ----------------- 20278# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20279as_fn_exit () 20280{ 20281 set +e 20282 as_fn_set_status $1 20283 exit $1 20284} # as_fn_exit 20285 20286# as_fn_unset VAR 20287# --------------- 20288# Portably unset VAR. 20289as_fn_unset () 20290{ 20291 { eval $1=; unset $1;} 20292} 20293as_unset=as_fn_unset 20294# as_fn_append VAR VALUE 20295# ---------------------- 20296# Append the text in VALUE to the end of the definition contained in VAR. Take 20297# advantage of any shell optimizations that allow amortized linear growth over 20298# repeated appends, instead of the typical quadratic growth present in naive 20299# implementations. 20300if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20301 eval 'as_fn_append () 20302 { 20303 eval $1+=\$2 20304 }' 20305else 20306 as_fn_append () 20307 { 20308 eval $1=\$$1\$2 20309 } 20310fi # as_fn_append 20311 20312# as_fn_arith ARG... 20313# ------------------ 20314# Perform arithmetic evaluation on the ARGs, and store the result in the 20315# global $as_val. Take advantage of shells that can avoid forks. The arguments 20316# must be portable across $(()) and expr. 20317if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20318 eval 'as_fn_arith () 20319 { 20320 as_val=$(( $* )) 20321 }' 20322else 20323 as_fn_arith () 20324 { 20325 as_val=`expr "$@" || test $? -eq 1` 20326 } 20327fi # as_fn_arith 20328 20329 20330if expr a : '\(a\)' >/dev/null 2>&1 && 20331 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20332 as_expr=expr 20333else 20334 as_expr=false 20335fi 20336 20337if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20338 as_basename=basename 20339else 20340 as_basename=false 20341fi 20342 20343if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20344 as_dirname=dirname 20345else 20346 as_dirname=false 20347fi 20348 20349as_me=`$as_basename -- "$0" || 20350$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20351 X"$0" : 'X\(//\)$' \| \ 20352 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20353$as_echo X/"$0" | 20354 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20355 s//\1/ 20356 q 20357 } 20358 /^X\/\(\/\/\)$/{ 20359 s//\1/ 20360 q 20361 } 20362 /^X\/\(\/\).*/{ 20363 s//\1/ 20364 q 20365 } 20366 s/.*/./; q'` 20367 20368# Avoid depending upon Character Ranges. 20369as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20370as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20371as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20372as_cr_digits='0123456789' 20373as_cr_alnum=$as_cr_Letters$as_cr_digits 20374 20375ECHO_C= ECHO_N= ECHO_T= 20376case `echo -n x` in #((((( 20377-n*) 20378 case `echo 'xy\c'` in 20379 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20380 xy) ECHO_C='\c';; 20381 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20382 ECHO_T=' ';; 20383 esac;; 20384*) 20385 ECHO_N='-n';; 20386esac 20387 20388rm -f conf$$ conf$$.exe conf$$.file 20389if test -d conf$$.dir; then 20390 rm -f conf$$.dir/conf$$.file 20391else 20392 rm -f conf$$.dir 20393 mkdir conf$$.dir 2>/dev/null 20394fi 20395if (echo >conf$$.file) 2>/dev/null; then 20396 if ln -s conf$$.file conf$$ 2>/dev/null; then 20397 as_ln_s='ln -s' 20398 # ... but there are two gotchas: 20399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20401 # In both cases, we have to default to `cp -pR'. 20402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20403 as_ln_s='cp -pR' 20404 elif ln conf$$.file conf$$ 2>/dev/null; then 20405 as_ln_s=ln 20406 else 20407 as_ln_s='cp -pR' 20408 fi 20409else 20410 as_ln_s='cp -pR' 20411fi 20412rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20413rmdir conf$$.dir 2>/dev/null 20414 20415 20416# as_fn_mkdir_p 20417# ------------- 20418# Create "$as_dir" as a directory, including parents if necessary. 20419as_fn_mkdir_p () 20420{ 20421 20422 case $as_dir in #( 20423 -*) as_dir=./$as_dir;; 20424 esac 20425 test -d "$as_dir" || eval $as_mkdir_p || { 20426 as_dirs= 20427 while :; do 20428 case $as_dir in #( 20429 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20430 *) as_qdir=$as_dir;; 20431 esac 20432 as_dirs="'$as_qdir' $as_dirs" 20433 as_dir=`$as_dirname -- "$as_dir" || 20434$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20435 X"$as_dir" : 'X\(//\)[^/]' \| \ 20436 X"$as_dir" : 'X\(//\)$' \| \ 20437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20438$as_echo X"$as_dir" | 20439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20440 s//\1/ 20441 q 20442 } 20443 /^X\(\/\/\)[^/].*/{ 20444 s//\1/ 20445 q 20446 } 20447 /^X\(\/\/\)$/{ 20448 s//\1/ 20449 q 20450 } 20451 /^X\(\/\).*/{ 20452 s//\1/ 20453 q 20454 } 20455 s/.*/./; q'` 20456 test -d "$as_dir" && break 20457 done 20458 test -z "$as_dirs" || eval "mkdir $as_dirs" 20459 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20460 20461 20462} # as_fn_mkdir_p 20463if mkdir -p . 2>/dev/null; then 20464 as_mkdir_p='mkdir -p "$as_dir"' 20465else 20466 test -d ./-p && rmdir ./-p 20467 as_mkdir_p=false 20468fi 20469 20470 20471# as_fn_executable_p FILE 20472# ----------------------- 20473# Test if FILE is an executable regular file. 20474as_fn_executable_p () 20475{ 20476 test -f "$1" && test -x "$1" 20477} # as_fn_executable_p 20478as_test_x='test -x' 20479as_executable_p=as_fn_executable_p 20480 20481# Sed expression to map a string onto a valid CPP name. 20482as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20483 20484# Sed expression to map a string onto a valid variable name. 20485as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20486 20487 20488exec 6>&1 20489## ----------------------------------- ## 20490## Main body of $CONFIG_STATUS script. ## 20491## ----------------------------------- ## 20492_ASEOF 20493test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20494 20495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20496# Save the log message, to keep $0 and so on meaningful, and to 20497# report actual input values of CONFIG_FILES etc. instead of their 20498# values after options handling. 20499ac_log=" 20500This file was extended by xf86-video-ati $as_me 7.7.0, which was 20501generated by GNU Autoconf 2.69. Invocation command line was 20502 20503 CONFIG_FILES = $CONFIG_FILES 20504 CONFIG_HEADERS = $CONFIG_HEADERS 20505 CONFIG_LINKS = $CONFIG_LINKS 20506 CONFIG_COMMANDS = $CONFIG_COMMANDS 20507 $ $0 $@ 20508 20509on `(hostname || uname -n) 2>/dev/null | sed 1q` 20510" 20511 20512_ACEOF 20513 20514case $ac_config_files in *" 20515"*) set x $ac_config_files; shift; ac_config_files=$*;; 20516esac 20517 20518case $ac_config_headers in *" 20519"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20520esac 20521 20522 20523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20524# Files that config.status was made for. 20525config_files="$ac_config_files" 20526config_headers="$ac_config_headers" 20527config_commands="$ac_config_commands" 20528 20529_ACEOF 20530 20531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20532ac_cs_usage="\ 20533\`$as_me' instantiates files and other configuration actions 20534from templates according to the current configuration. Unless the files 20535and actions are specified as TAGs, all are instantiated by default. 20536 20537Usage: $0 [OPTION]... [TAG]... 20538 20539 -h, --help print this help, then exit 20540 -V, --version print version number and configuration settings, then exit 20541 --config print configuration, then exit 20542 -q, --quiet, --silent 20543 do not print progress messages 20544 -d, --debug don't remove temporary files 20545 --recheck update $as_me by reconfiguring in the same conditions 20546 --file=FILE[:TEMPLATE] 20547 instantiate the configuration file FILE 20548 --header=FILE[:TEMPLATE] 20549 instantiate the configuration header FILE 20550 20551Configuration files: 20552$config_files 20553 20554Configuration headers: 20555$config_headers 20556 20557Configuration commands: 20558$config_commands 20559 20560Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 20561 20562_ACEOF 20563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20564ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20565ac_cs_version="\\ 20566xf86-video-ati config.status 7.7.0 20567configured by $0, generated by GNU Autoconf 2.69, 20568 with options \\"\$ac_cs_config\\" 20569 20570Copyright (C) 2012 Free Software Foundation, Inc. 20571This config.status script is free software; the Free Software Foundation 20572gives unlimited permission to copy, distribute and modify it." 20573 20574ac_pwd='$ac_pwd' 20575srcdir='$srcdir' 20576INSTALL='$INSTALL' 20577MKDIR_P='$MKDIR_P' 20578AWK='$AWK' 20579test -n "\$AWK" || AWK=awk 20580_ACEOF 20581 20582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20583# The default lists apply if the user does not specify any file. 20584ac_need_defaults=: 20585while test $# != 0 20586do 20587 case $1 in 20588 --*=?*) 20589 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20590 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20591 ac_shift=: 20592 ;; 20593 --*=) 20594 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20595 ac_optarg= 20596 ac_shift=: 20597 ;; 20598 *) 20599 ac_option=$1 20600 ac_optarg=$2 20601 ac_shift=shift 20602 ;; 20603 esac 20604 20605 case $ac_option in 20606 # Handling of the options. 20607 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20608 ac_cs_recheck=: ;; 20609 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20610 $as_echo "$ac_cs_version"; exit ;; 20611 --config | --confi | --conf | --con | --co | --c ) 20612 $as_echo "$ac_cs_config"; exit ;; 20613 --debug | --debu | --deb | --de | --d | -d ) 20614 debug=: ;; 20615 --file | --fil | --fi | --f ) 20616 $ac_shift 20617 case $ac_optarg in 20618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20619 '') as_fn_error $? "missing file argument" ;; 20620 esac 20621 as_fn_append CONFIG_FILES " '$ac_optarg'" 20622 ac_need_defaults=false;; 20623 --header | --heade | --head | --hea ) 20624 $ac_shift 20625 case $ac_optarg in 20626 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20627 esac 20628 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20629 ac_need_defaults=false;; 20630 --he | --h) 20631 # Conflict between --help and --header 20632 as_fn_error $? "ambiguous option: \`$1' 20633Try \`$0 --help' for more information.";; 20634 --help | --hel | -h ) 20635 $as_echo "$ac_cs_usage"; exit ;; 20636 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20637 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20638 ac_cs_silent=: ;; 20639 20640 # This is an error. 20641 -*) as_fn_error $? "unrecognized option: \`$1' 20642Try \`$0 --help' for more information." ;; 20643 20644 *) as_fn_append ac_config_targets " $1" 20645 ac_need_defaults=false ;; 20646 20647 esac 20648 shift 20649done 20650 20651ac_configure_extra_args= 20652 20653if $ac_cs_silent; then 20654 exec 6>/dev/null 20655 ac_configure_extra_args="$ac_configure_extra_args --silent" 20656fi 20657 20658_ACEOF 20659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20660if \$ac_cs_recheck; then 20661 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20662 shift 20663 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20664 CONFIG_SHELL='$SHELL' 20665 export CONFIG_SHELL 20666 exec "\$@" 20667fi 20668 20669_ACEOF 20670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20671exec 5>>config.log 20672{ 20673 echo 20674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20675## Running $as_me. ## 20676_ASBOX 20677 $as_echo "$ac_log" 20678} >&5 20679 20680_ACEOF 20681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20682# 20683# INIT-COMMANDS 20684# 20685AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20686 20687 20688# The HP-UX ksh and POSIX shell print the target directory to stdout 20689# if CDPATH is set. 20690(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20691 20692sed_quote_subst='$sed_quote_subst' 20693double_quote_subst='$double_quote_subst' 20694delay_variable_subst='$delay_variable_subst' 20695enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20696macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20697macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20698enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20699pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20700enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20701shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20702SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20703ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20704PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20705host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20706host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20707host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20708build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20709build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20710build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20711SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20712Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20713GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20714EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20715FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20716LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20717NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20718LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20719max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20720ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20721exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20722lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20723lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20724lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20725lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20726lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20727reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20728reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20729OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20730deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20731file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20732file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20733want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20734DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20735sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20736AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20737AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20738archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20739STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20740RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20741old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20742old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20743old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20744lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20745CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20746CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20747compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20748GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20749lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20750lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20751lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20752lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20753lt_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"`' 20754lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20755nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20756lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20757lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20758objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20759MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20760lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20761lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20762lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20763lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20764lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20765need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20766MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20767DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20768NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20769LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20770OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20771OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20772libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20773shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20774extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20775archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20776enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20777export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20778whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20779compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20780old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20781old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20782archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20783archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20784module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20785module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20786with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20787allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20788no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20789hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20790hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20791hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20792hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20793hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20794hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20795hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20796inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20797link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20798always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20799export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20800exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20801include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20802prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20803postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20804file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20805variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20806need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20807need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20808version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20809runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20810shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20811shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20812libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20813library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20814soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20815install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20816postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20817postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20818finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20819finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20820hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20821sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20822configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20823configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20824hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20825enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20826enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20827enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20828old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20829striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20830 20831LTCC='$LTCC' 20832LTCFLAGS='$LTCFLAGS' 20833compiler='$compiler_DEFAULT' 20834 20835# A function that is used when there is no print builtin or printf. 20836func_fallback_echo () 20837{ 20838 eval 'cat <<_LTECHO_EOF 20839\$1 20840_LTECHO_EOF' 20841} 20842 20843# Quote evaled strings. 20844for var in SHELL \ 20845ECHO \ 20846PATH_SEPARATOR \ 20847SED \ 20848GREP \ 20849EGREP \ 20850FGREP \ 20851LD \ 20852NM \ 20853LN_S \ 20854lt_SP2NL \ 20855lt_NL2SP \ 20856reload_flag \ 20857OBJDUMP \ 20858deplibs_check_method \ 20859file_magic_cmd \ 20860file_magic_glob \ 20861want_nocaseglob \ 20862DLLTOOL \ 20863sharedlib_from_linklib_cmd \ 20864AR \ 20865AR_FLAGS \ 20866archiver_list_spec \ 20867STRIP \ 20868RANLIB \ 20869CC \ 20870CFLAGS \ 20871compiler \ 20872lt_cv_sys_global_symbol_pipe \ 20873lt_cv_sys_global_symbol_to_cdecl \ 20874lt_cv_sys_global_symbol_to_import \ 20875lt_cv_sys_global_symbol_to_c_name_address \ 20876lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20877lt_cv_nm_interface \ 20878nm_file_list_spec \ 20879lt_cv_truncate_bin \ 20880lt_prog_compiler_no_builtin_flag \ 20881lt_prog_compiler_pic \ 20882lt_prog_compiler_wl \ 20883lt_prog_compiler_static \ 20884lt_cv_prog_compiler_c_o \ 20885need_locks \ 20886MANIFEST_TOOL \ 20887DSYMUTIL \ 20888NMEDIT \ 20889LIPO \ 20890OTOOL \ 20891OTOOL64 \ 20892shrext_cmds \ 20893export_dynamic_flag_spec \ 20894whole_archive_flag_spec \ 20895compiler_needs_object \ 20896with_gnu_ld \ 20897allow_undefined_flag \ 20898no_undefined_flag \ 20899hardcode_libdir_flag_spec \ 20900hardcode_libdir_separator \ 20901exclude_expsyms \ 20902include_expsyms \ 20903file_list_spec \ 20904variables_saved_for_relink \ 20905libname_spec \ 20906library_names_spec \ 20907soname_spec \ 20908install_override_mode \ 20909finish_eval \ 20910old_striplib \ 20911striplib; do 20912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20913 *[\\\\\\\`\\"\\\$]*) 20914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20915 ;; 20916 *) 20917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20918 ;; 20919 esac 20920done 20921 20922# Double-quote double-evaled strings. 20923for var in reload_cmds \ 20924old_postinstall_cmds \ 20925old_postuninstall_cmds \ 20926old_archive_cmds \ 20927extract_expsyms_cmds \ 20928old_archive_from_new_cmds \ 20929old_archive_from_expsyms_cmds \ 20930archive_cmds \ 20931archive_expsym_cmds \ 20932module_cmds \ 20933module_expsym_cmds \ 20934export_symbols_cmds \ 20935prelink_cmds \ 20936postlink_cmds \ 20937postinstall_cmds \ 20938postuninstall_cmds \ 20939finish_cmds \ 20940sys_lib_search_path_spec \ 20941configure_time_dlsearch_path \ 20942configure_time_lt_sys_library_path; do 20943 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20944 *[\\\\\\\`\\"\\\$]*) 20945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20946 ;; 20947 *) 20948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20949 ;; 20950 esac 20951done 20952 20953ac_aux_dir='$ac_aux_dir' 20954 20955# See if we are running on zsh, and set the options that allow our 20956# commands through without removal of \ escapes INIT. 20957if test -n "\${ZSH_VERSION+set}"; then 20958 setopt NO_GLOB_SUBST 20959fi 20960 20961 20962 PACKAGE='$PACKAGE' 20963 VERSION='$VERSION' 20964 RM='$RM' 20965 ofile='$ofile' 20966 20967 20968 20969 20970_ACEOF 20971 20972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20973 20974# Handling of arguments. 20975for ac_config_target in $ac_config_targets 20976do 20977 case $ac_config_target in 20978 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20979 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20980 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20981 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20982 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20983 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20984 20985 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20986 esac 20987done 20988 20989 20990# If the user did not use the arguments to specify the items to instantiate, 20991# then the envvar interface is used. Set only those that are not. 20992# We use the long form for the default assignment because of an extremely 20993# bizarre bug on SunOS 4.1.3. 20994if $ac_need_defaults; then 20995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20996 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20997 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20998fi 20999 21000# Have a temporary directory for convenience. Make it in the build tree 21001# simply because there is no reason against having it here, and in addition, 21002# creating and moving files from /tmp can sometimes cause problems. 21003# Hook for its removal unless debugging. 21004# Note that there is a small window in which the directory will not be cleaned: 21005# after its creation but before its name has been assigned to `$tmp'. 21006$debug || 21007{ 21008 tmp= ac_tmp= 21009 trap 'exit_status=$? 21010 : "${ac_tmp:=$tmp}" 21011 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21012' 0 21013 trap 'as_fn_exit 1' 1 2 13 15 21014} 21015# Create a (secure) tmp directory for tmp files. 21016 21017{ 21018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21019 test -d "$tmp" 21020} || 21021{ 21022 tmp=./conf$$-$RANDOM 21023 (umask 077 && mkdir "$tmp") 21024} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21025ac_tmp=$tmp 21026 21027# Set up the scripts for CONFIG_FILES section. 21028# No need to generate them if there are no CONFIG_FILES. 21029# This happens for instance with `./config.status config.h'. 21030if test -n "$CONFIG_FILES"; then 21031 21032 21033ac_cr=`echo X | tr X '\015'` 21034# On cygwin, bash can eat \r inside `` if the user requested igncr. 21035# But we know of no other shell where ac_cr would be empty at this 21036# point, so we can use a bashism as a fallback. 21037if test "x$ac_cr" = x; then 21038 eval ac_cr=\$\'\\r\' 21039fi 21040ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21041if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21042 ac_cs_awk_cr='\\r' 21043else 21044 ac_cs_awk_cr=$ac_cr 21045fi 21046 21047echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21048_ACEOF 21049 21050 21051{ 21052 echo "cat >conf$$subs.awk <<_ACEOF" && 21053 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21054 echo "_ACEOF" 21055} >conf$$subs.sh || 21056 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21057ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21058ac_delim='%!_!# ' 21059for ac_last_try in false false false false false :; do 21060 . ./conf$$subs.sh || 21061 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21062 21063 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21064 if test $ac_delim_n = $ac_delim_num; then 21065 break 21066 elif $ac_last_try; then 21067 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21068 else 21069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21070 fi 21071done 21072rm -f conf$$subs.sh 21073 21074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21075cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21076_ACEOF 21077sed -n ' 21078h 21079s/^/S["/; s/!.*/"]=/ 21080p 21081g 21082s/^[^!]*!// 21083:repl 21084t repl 21085s/'"$ac_delim"'$// 21086t delim 21087:nl 21088h 21089s/\(.\{148\}\)..*/\1/ 21090t more1 21091s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21092p 21093n 21094b repl 21095:more1 21096s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21097p 21098g 21099s/.\{148\}// 21100t nl 21101:delim 21102h 21103s/\(.\{148\}\)..*/\1/ 21104t more2 21105s/["\\]/\\&/g; s/^/"/; s/$/"/ 21106p 21107b 21108:more2 21109s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21110p 21111g 21112s/.\{148\}// 21113t delim 21114' <conf$$subs.awk | sed ' 21115/^[^""]/{ 21116 N 21117 s/\n// 21118} 21119' >>$CONFIG_STATUS || ac_write_fail=1 21120rm -f conf$$subs.awk 21121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21122_ACAWK 21123cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21124 for (key in S) S_is_set[key] = 1 21125 FS = "" 21126 21127} 21128{ 21129 line = $ 0 21130 nfields = split(line, field, "@") 21131 substed = 0 21132 len = length(field[1]) 21133 for (i = 2; i < nfields; i++) { 21134 key = field[i] 21135 keylen = length(key) 21136 if (S_is_set[key]) { 21137 value = S[key] 21138 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21139 len += length(value) + length(field[++i]) 21140 substed = 1 21141 } else 21142 len += 1 + keylen 21143 } 21144 21145 print line 21146} 21147 21148_ACAWK 21149_ACEOF 21150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21151if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21152 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21153else 21154 cat 21155fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21156 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21157_ACEOF 21158 21159# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21160# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21161# trailing colons and then remove the whole line if VPATH becomes empty 21162# (actually we leave an empty line to preserve line numbers). 21163if test "x$srcdir" = x.; then 21164 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21165h 21166s/// 21167s/^/:/ 21168s/[ ]*$/:/ 21169s/:\$(srcdir):/:/g 21170s/:\${srcdir}:/:/g 21171s/:@srcdir@:/:/g 21172s/^:*// 21173s/:*$// 21174x 21175s/\(=[ ]*\).*/\1/ 21176G 21177s/\n// 21178s/^[^=]*=[ ]*$// 21179}' 21180fi 21181 21182cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21183fi # test -n "$CONFIG_FILES" 21184 21185# Set up the scripts for CONFIG_HEADERS section. 21186# No need to generate them if there are no CONFIG_HEADERS. 21187# This happens for instance with `./config.status Makefile'. 21188if test -n "$CONFIG_HEADERS"; then 21189cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21190BEGIN { 21191_ACEOF 21192 21193# Transform confdefs.h into an awk script `defines.awk', embedded as 21194# here-document in config.status, that substitutes the proper values into 21195# config.h.in to produce config.h. 21196 21197# Create a delimiter string that does not exist in confdefs.h, to ease 21198# handling of long lines. 21199ac_delim='%!_!# ' 21200for ac_last_try in false false :; do 21201 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21202 if test -z "$ac_tt"; then 21203 break 21204 elif $ac_last_try; then 21205 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21206 else 21207 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21208 fi 21209done 21210 21211# For the awk script, D is an array of macro values keyed by name, 21212# likewise P contains macro parameters if any. Preserve backslash 21213# newline sequences. 21214 21215ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21216sed -n ' 21217s/.\{148\}/&'"$ac_delim"'/g 21218t rset 21219:rset 21220s/^[ ]*#[ ]*define[ ][ ]*/ / 21221t def 21222d 21223:def 21224s/\\$// 21225t bsnl 21226s/["\\]/\\&/g 21227s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21228D["\1"]=" \3"/p 21229s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21230d 21231:bsnl 21232s/["\\]/\\&/g 21233s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21234D["\1"]=" \3\\\\\\n"\\/p 21235t cont 21236s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21237t cont 21238d 21239:cont 21240n 21241s/.\{148\}/&'"$ac_delim"'/g 21242t clear 21243:clear 21244s/\\$// 21245t bsnlc 21246s/["\\]/\\&/g; s/^/"/; s/$/"/p 21247d 21248:bsnlc 21249s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21250b cont 21251' <confdefs.h | sed ' 21252s/'"$ac_delim"'/"\\\ 21253"/g' >>$CONFIG_STATUS || ac_write_fail=1 21254 21255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21256 for (key in D) D_is_set[key] = 1 21257 FS = "" 21258} 21259/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21260 line = \$ 0 21261 split(line, arg, " ") 21262 if (arg[1] == "#") { 21263 defundef = arg[2] 21264 mac1 = arg[3] 21265 } else { 21266 defundef = substr(arg[1], 2) 21267 mac1 = arg[2] 21268 } 21269 split(mac1, mac2, "(") #) 21270 macro = mac2[1] 21271 prefix = substr(line, 1, index(line, defundef) - 1) 21272 if (D_is_set[macro]) { 21273 # Preserve the white space surrounding the "#". 21274 print prefix "define", macro P[macro] D[macro] 21275 next 21276 } else { 21277 # Replace #undef with comments. This is necessary, for example, 21278 # in the case of _POSIX_SOURCE, which is predefined and required 21279 # on some systems where configure will not decide to define it. 21280 if (defundef == "undef") { 21281 print "/*", prefix defundef, macro, "*/" 21282 next 21283 } 21284 } 21285} 21286{ print } 21287_ACAWK 21288_ACEOF 21289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21290 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21291fi # test -n "$CONFIG_HEADERS" 21292 21293 21294eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21295shift 21296for ac_tag 21297do 21298 case $ac_tag in 21299 :[FHLC]) ac_mode=$ac_tag; continue;; 21300 esac 21301 case $ac_mode$ac_tag in 21302 :[FHL]*:*);; 21303 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21304 :[FH]-) ac_tag=-:-;; 21305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21306 esac 21307 ac_save_IFS=$IFS 21308 IFS=: 21309 set x $ac_tag 21310 IFS=$ac_save_IFS 21311 shift 21312 ac_file=$1 21313 shift 21314 21315 case $ac_mode in 21316 :L) ac_source=$1;; 21317 :[FH]) 21318 ac_file_inputs= 21319 for ac_f 21320 do 21321 case $ac_f in 21322 -) ac_f="$ac_tmp/stdin";; 21323 *) # Look for the file first in the build tree, then in the source tree 21324 # (if the path is not absolute). The absolute path cannot be DOS-style, 21325 # because $ac_f cannot contain `:'. 21326 test -f "$ac_f" || 21327 case $ac_f in 21328 [\\/$]*) false;; 21329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21330 esac || 21331 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21332 esac 21333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21334 as_fn_append ac_file_inputs " '$ac_f'" 21335 done 21336 21337 # Let's still pretend it is `configure' which instantiates (i.e., don't 21338 # use $as_me), people would be surprised to read: 21339 # /* config.h. Generated by config.status. */ 21340 configure_input='Generated from '` 21341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21342 `' by configure.' 21343 if test x"$ac_file" != x-; then 21344 configure_input="$ac_file. $configure_input" 21345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21346$as_echo "$as_me: creating $ac_file" >&6;} 21347 fi 21348 # Neutralize special characters interpreted by sed in replacement strings. 21349 case $configure_input in #( 21350 *\&* | *\|* | *\\* ) 21351 ac_sed_conf_input=`$as_echo "$configure_input" | 21352 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21353 *) ac_sed_conf_input=$configure_input;; 21354 esac 21355 21356 case $ac_tag in 21357 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21359 esac 21360 ;; 21361 esac 21362 21363 ac_dir=`$as_dirname -- "$ac_file" || 21364$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21365 X"$ac_file" : 'X\(//\)[^/]' \| \ 21366 X"$ac_file" : 'X\(//\)$' \| \ 21367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21368$as_echo X"$ac_file" | 21369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21370 s//\1/ 21371 q 21372 } 21373 /^X\(\/\/\)[^/].*/{ 21374 s//\1/ 21375 q 21376 } 21377 /^X\(\/\/\)$/{ 21378 s//\1/ 21379 q 21380 } 21381 /^X\(\/\).*/{ 21382 s//\1/ 21383 q 21384 } 21385 s/.*/./; q'` 21386 as_dir="$ac_dir"; as_fn_mkdir_p 21387 ac_builddir=. 21388 21389case "$ac_dir" in 21390.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21391*) 21392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21393 # A ".." for each directory in $ac_dir_suffix. 21394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21395 case $ac_top_builddir_sub in 21396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21398 esac ;; 21399esac 21400ac_abs_top_builddir=$ac_pwd 21401ac_abs_builddir=$ac_pwd$ac_dir_suffix 21402# for backward compatibility: 21403ac_top_builddir=$ac_top_build_prefix 21404 21405case $srcdir in 21406 .) # We are building in place. 21407 ac_srcdir=. 21408 ac_top_srcdir=$ac_top_builddir_sub 21409 ac_abs_top_srcdir=$ac_pwd ;; 21410 [\\/]* | ?:[\\/]* ) # Absolute name. 21411 ac_srcdir=$srcdir$ac_dir_suffix; 21412 ac_top_srcdir=$srcdir 21413 ac_abs_top_srcdir=$srcdir ;; 21414 *) # Relative name. 21415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21416 ac_top_srcdir=$ac_top_build_prefix$srcdir 21417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21418esac 21419ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21420 21421 21422 case $ac_mode in 21423 :F) 21424 # 21425 # CONFIG_FILE 21426 # 21427 21428 case $INSTALL in 21429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21431 esac 21432 ac_MKDIR_P=$MKDIR_P 21433 case $MKDIR_P in 21434 [\\/$]* | ?:[\\/]* ) ;; 21435 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21436 esac 21437_ACEOF 21438 21439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21440# If the template does not know about datarootdir, expand it. 21441# FIXME: This hack should be removed a few years after 2.60. 21442ac_datarootdir_hack=; ac_datarootdir_seen= 21443ac_sed_dataroot=' 21444/datarootdir/ { 21445 p 21446 q 21447} 21448/@datadir@/p 21449/@docdir@/p 21450/@infodir@/p 21451/@localedir@/p 21452/@mandir@/p' 21453case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21454*datarootdir*) ac_datarootdir_seen=yes;; 21455*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21457$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21458_ACEOF 21459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21460 ac_datarootdir_hack=' 21461 s&@datadir@&$datadir&g 21462 s&@docdir@&$docdir&g 21463 s&@infodir@&$infodir&g 21464 s&@localedir@&$localedir&g 21465 s&@mandir@&$mandir&g 21466 s&\\\${datarootdir}&$datarootdir&g' ;; 21467esac 21468_ACEOF 21469 21470# Neutralize VPATH when `$srcdir' = `.'. 21471# Shell code in configure.ac might set extrasub. 21472# FIXME: do we really want to maintain this feature? 21473cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21474ac_sed_extra="$ac_vpsub 21475$extrasub 21476_ACEOF 21477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21478:t 21479/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21480s|@configure_input@|$ac_sed_conf_input|;t t 21481s&@top_builddir@&$ac_top_builddir_sub&;t t 21482s&@top_build_prefix@&$ac_top_build_prefix&;t t 21483s&@srcdir@&$ac_srcdir&;t t 21484s&@abs_srcdir@&$ac_abs_srcdir&;t t 21485s&@top_srcdir@&$ac_top_srcdir&;t t 21486s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21487s&@builddir@&$ac_builddir&;t t 21488s&@abs_builddir@&$ac_abs_builddir&;t t 21489s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21490s&@INSTALL@&$ac_INSTALL&;t t 21491s&@MKDIR_P@&$ac_MKDIR_P&;t t 21492$ac_datarootdir_hack 21493" 21494eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21495 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21496 21497test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21498 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21499 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21500 "$ac_tmp/out"`; test -z "$ac_out"; } && 21501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21502which seems to be undefined. Please make sure it is defined" >&5 21503$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21504which seems to be undefined. Please make sure it is defined" >&2;} 21505 21506 rm -f "$ac_tmp/stdin" 21507 case $ac_file in 21508 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21509 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21510 esac \ 21511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21512 ;; 21513 :H) 21514 # 21515 # CONFIG_HEADER 21516 # 21517 if test x"$ac_file" != x-; then 21518 { 21519 $as_echo "/* $configure_input */" \ 21520 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21521 } >"$ac_tmp/config.h" \ 21522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21523 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21524 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21525$as_echo "$as_me: $ac_file is unchanged" >&6;} 21526 else 21527 rm -f "$ac_file" 21528 mv "$ac_tmp/config.h" "$ac_file" \ 21529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21530 fi 21531 else 21532 $as_echo "/* $configure_input */" \ 21533 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21534 || as_fn_error $? "could not create -" "$LINENO" 5 21535 fi 21536# Compute "$ac_file"'s index in $config_headers. 21537_am_arg="$ac_file" 21538_am_stamp_count=1 21539for _am_header in $config_headers :; do 21540 case $_am_header in 21541 $_am_arg | $_am_arg:* ) 21542 break ;; 21543 * ) 21544 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21545 esac 21546done 21547echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21548$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21549 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21550 X"$_am_arg" : 'X\(//\)$' \| \ 21551 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21552$as_echo X"$_am_arg" | 21553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21554 s//\1/ 21555 q 21556 } 21557 /^X\(\/\/\)[^/].*/{ 21558 s//\1/ 21559 q 21560 } 21561 /^X\(\/\/\)$/{ 21562 s//\1/ 21563 q 21564 } 21565 /^X\(\/\).*/{ 21566 s//\1/ 21567 q 21568 } 21569 s/.*/./; q'`/stamp-h$_am_stamp_count 21570 ;; 21571 21572 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21573$as_echo "$as_me: executing $ac_file commands" >&6;} 21574 ;; 21575 esac 21576 21577 21578 case $ac_file$ac_mode in 21579 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21580 # Older Autoconf quotes --file arguments for eval, but not when files 21581 # are listed without --file. Let's play safe and only enable the eval 21582 # if we detect the quoting. 21583 case $CONFIG_FILES in 21584 *\'*) eval set x "$CONFIG_FILES" ;; 21585 *) set x $CONFIG_FILES ;; 21586 esac 21587 shift 21588 for mf 21589 do 21590 # Strip MF so we end up with the name of the file. 21591 mf=`echo "$mf" | sed -e 's/:.*$//'` 21592 # Check whether this is an Automake generated Makefile or not. 21593 # We used to match only the files named 'Makefile.in', but 21594 # some people rename them; so instead we look at the file content. 21595 # Grep'ing the first line is not enough: some people post-process 21596 # each Makefile.in and add a new line on top of each file to say so. 21597 # Grep'ing the whole file is not good either: AIX grep has a line 21598 # limit of 2048, but all sed's we know have understand at least 4000. 21599 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21600 dirpart=`$as_dirname -- "$mf" || 21601$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21602 X"$mf" : 'X\(//\)[^/]' \| \ 21603 X"$mf" : 'X\(//\)$' \| \ 21604 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21605$as_echo X"$mf" | 21606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21607 s//\1/ 21608 q 21609 } 21610 /^X\(\/\/\)[^/].*/{ 21611 s//\1/ 21612 q 21613 } 21614 /^X\(\/\/\)$/{ 21615 s//\1/ 21616 q 21617 } 21618 /^X\(\/\).*/{ 21619 s//\1/ 21620 q 21621 } 21622 s/.*/./; q'` 21623 else 21624 continue 21625 fi 21626 # Extract the definition of DEPDIR, am__include, and am__quote 21627 # from the Makefile without running 'make'. 21628 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21629 test -z "$DEPDIR" && continue 21630 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21631 test -z "$am__include" && continue 21632 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21633 # Find all dependency output files, they are included files with 21634 # $(DEPDIR) in their names. We invoke sed twice because it is the 21635 # simplest approach to changing $(DEPDIR) to its actual value in the 21636 # expansion. 21637 for file in `sed -n " 21638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21640 # Make sure the directory exists. 21641 test -f "$dirpart/$file" && continue 21642 fdir=`$as_dirname -- "$file" || 21643$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21644 X"$file" : 'X\(//\)[^/]' \| \ 21645 X"$file" : 'X\(//\)$' \| \ 21646 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21647$as_echo X"$file" | 21648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21649 s//\1/ 21650 q 21651 } 21652 /^X\(\/\/\)[^/].*/{ 21653 s//\1/ 21654 q 21655 } 21656 /^X\(\/\/\)$/{ 21657 s//\1/ 21658 q 21659 } 21660 /^X\(\/\).*/{ 21661 s//\1/ 21662 q 21663 } 21664 s/.*/./; q'` 21665 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21666 # echo "creating $dirpart/$file" 21667 echo '# dummy' > "$dirpart/$file" 21668 done 21669 done 21670} 21671 ;; 21672 "libtool":C) 21673 21674 # See if we are running on zsh, and set the options that allow our 21675 # commands through without removal of \ escapes. 21676 if test -n "${ZSH_VERSION+set}"; then 21677 setopt NO_GLOB_SUBST 21678 fi 21679 21680 cfgfile=${ofile}T 21681 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21682 $RM "$cfgfile" 21683 21684 cat <<_LT_EOF >> "$cfgfile" 21685#! $SHELL 21686# Generated automatically by $as_me ($PACKAGE) $VERSION 21687# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21688# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21689 21690# Provide generalized library-building support services. 21691# Written by Gordon Matzigkeit, 1996 21692 21693# Copyright (C) 2014 Free Software Foundation, Inc. 21694# This is free software; see the source for copying conditions. There is NO 21695# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21696 21697# GNU Libtool is free software; you can redistribute it and/or modify 21698# it under the terms of the GNU General Public License as published by 21699# the Free Software Foundation; either version 2 of of the License, or 21700# (at your option) any later version. 21701# 21702# As a special exception to the GNU General Public License, if you 21703# distribute this file as part of a program or library that is built 21704# using GNU Libtool, you may include this file under the same 21705# distribution terms that you use for the rest of that program. 21706# 21707# GNU Libtool is distributed in the hope that it will be useful, but 21708# WITHOUT ANY WARRANTY; without even the implied warranty of 21709# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21710# GNU General Public License for more details. 21711# 21712# You should have received a copy of the GNU General Public License 21713# along with this program. If not, see <http://www.gnu.org/licenses/>. 21714 21715 21716# The names of the tagged configurations supported by this script. 21717available_tags='' 21718 21719# Configured defaults for sys_lib_dlsearch_path munging. 21720: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21721 21722# ### BEGIN LIBTOOL CONFIG 21723 21724# Whether or not to build static libraries. 21725build_old_libs=$enable_static 21726 21727# Which release of libtool.m4 was used? 21728macro_version=$macro_version 21729macro_revision=$macro_revision 21730 21731# Whether or not to build shared libraries. 21732build_libtool_libs=$enable_shared 21733 21734# What type of objects to build. 21735pic_mode=$pic_mode 21736 21737# Whether or not to optimize for fast installation. 21738fast_install=$enable_fast_install 21739 21740# Shared archive member basename,for filename based shared library versioning on AIX. 21741shared_archive_member_spec=$shared_archive_member_spec 21742 21743# Shell to use when invoking shell scripts. 21744SHELL=$lt_SHELL 21745 21746# An echo program that protects backslashes. 21747ECHO=$lt_ECHO 21748 21749# The PATH separator for the build system. 21750PATH_SEPARATOR=$lt_PATH_SEPARATOR 21751 21752# The host system. 21753host_alias=$host_alias 21754host=$host 21755host_os=$host_os 21756 21757# The build system. 21758build_alias=$build_alias 21759build=$build 21760build_os=$build_os 21761 21762# A sed program that does not truncate output. 21763SED=$lt_SED 21764 21765# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21766Xsed="\$SED -e 1s/^X//" 21767 21768# A grep program that handles long lines. 21769GREP=$lt_GREP 21770 21771# An ERE matcher. 21772EGREP=$lt_EGREP 21773 21774# A literal string matcher. 21775FGREP=$lt_FGREP 21776 21777# A BSD- or MS-compatible name lister. 21778NM=$lt_NM 21779 21780# Whether we need soft or hard links. 21781LN_S=$lt_LN_S 21782 21783# What is the maximum length of a command? 21784max_cmd_len=$max_cmd_len 21785 21786# Object file suffix (normally "o"). 21787objext=$ac_objext 21788 21789# Executable file suffix (normally ""). 21790exeext=$exeext 21791 21792# whether the shell understands "unset". 21793lt_unset=$lt_unset 21794 21795# turn spaces into newlines. 21796SP2NL=$lt_lt_SP2NL 21797 21798# turn newlines into spaces. 21799NL2SP=$lt_lt_NL2SP 21800 21801# convert \$build file names to \$host format. 21802to_host_file_cmd=$lt_cv_to_host_file_cmd 21803 21804# convert \$build files to toolchain format. 21805to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21806 21807# An object symbol dumper. 21808OBJDUMP=$lt_OBJDUMP 21809 21810# Method to check whether dependent libraries are shared objects. 21811deplibs_check_method=$lt_deplibs_check_method 21812 21813# Command to use when deplibs_check_method = "file_magic". 21814file_magic_cmd=$lt_file_magic_cmd 21815 21816# How to find potential files when deplibs_check_method = "file_magic". 21817file_magic_glob=$lt_file_magic_glob 21818 21819# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21820want_nocaseglob=$lt_want_nocaseglob 21821 21822# DLL creation program. 21823DLLTOOL=$lt_DLLTOOL 21824 21825# Command to associate shared and link libraries. 21826sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21827 21828# The archiver. 21829AR=$lt_AR 21830 21831# Flags to create an archive. 21832AR_FLAGS=$lt_AR_FLAGS 21833 21834# How to feed a file listing to the archiver. 21835archiver_list_spec=$lt_archiver_list_spec 21836 21837# A symbol stripping program. 21838STRIP=$lt_STRIP 21839 21840# Commands used to install an old-style archive. 21841RANLIB=$lt_RANLIB 21842old_postinstall_cmds=$lt_old_postinstall_cmds 21843old_postuninstall_cmds=$lt_old_postuninstall_cmds 21844 21845# Whether to use a lock for old archive extraction. 21846lock_old_archive_extraction=$lock_old_archive_extraction 21847 21848# A C compiler. 21849LTCC=$lt_CC 21850 21851# LTCC compiler flags. 21852LTCFLAGS=$lt_CFLAGS 21853 21854# Take the output of nm and produce a listing of raw symbols and C names. 21855global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21856 21857# Transform the output of nm in a proper C declaration. 21858global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21859 21860# Transform the output of nm into a list of symbols to manually relocate. 21861global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21862 21863# Transform the output of nm in a C name address pair. 21864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21865 21866# Transform the output of nm in a C name address pair when lib prefix is needed. 21867global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21868 21869# The name lister interface. 21870nm_interface=$lt_lt_cv_nm_interface 21871 21872# Specify filename containing input files for \$NM. 21873nm_file_list_spec=$lt_nm_file_list_spec 21874 21875# The root where to search for dependent libraries,and where our libraries should be installed. 21876lt_sysroot=$lt_sysroot 21877 21878# Command to truncate a binary pipe. 21879lt_truncate_bin=$lt_lt_cv_truncate_bin 21880 21881# The name of the directory that contains temporary libtool files. 21882objdir=$objdir 21883 21884# Used to examine libraries when file_magic_cmd begins with "file". 21885MAGIC_CMD=$MAGIC_CMD 21886 21887# Must we lock files when doing compilation? 21888need_locks=$lt_need_locks 21889 21890# Manifest tool. 21891MANIFEST_TOOL=$lt_MANIFEST_TOOL 21892 21893# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21894DSYMUTIL=$lt_DSYMUTIL 21895 21896# Tool to change global to local symbols on Mac OS X. 21897NMEDIT=$lt_NMEDIT 21898 21899# Tool to manipulate fat objects and archives on Mac OS X. 21900LIPO=$lt_LIPO 21901 21902# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21903OTOOL=$lt_OTOOL 21904 21905# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21906OTOOL64=$lt_OTOOL64 21907 21908# Old archive suffix (normally "a"). 21909libext=$libext 21910 21911# Shared library suffix (normally ".so"). 21912shrext_cmds=$lt_shrext_cmds 21913 21914# The commands to extract the exported symbol list from a shared archive. 21915extract_expsyms_cmds=$lt_extract_expsyms_cmds 21916 21917# Variables whose values should be saved in libtool wrapper scripts and 21918# restored at link time. 21919variables_saved_for_relink=$lt_variables_saved_for_relink 21920 21921# Do we need the "lib" prefix for modules? 21922need_lib_prefix=$need_lib_prefix 21923 21924# Do we need a version for libraries? 21925need_version=$need_version 21926 21927# Library versioning type. 21928version_type=$version_type 21929 21930# Shared library runtime path variable. 21931runpath_var=$runpath_var 21932 21933# Shared library path variable. 21934shlibpath_var=$shlibpath_var 21935 21936# Is shlibpath searched before the hard-coded library search path? 21937shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21938 21939# Format of library name prefix. 21940libname_spec=$lt_libname_spec 21941 21942# List of archive names. First name is the real one, the rest are links. 21943# The last name is the one that the linker finds with -lNAME 21944library_names_spec=$lt_library_names_spec 21945 21946# The coded name of the library, if different from the real name. 21947soname_spec=$lt_soname_spec 21948 21949# Permission mode override for installation of shared libraries. 21950install_override_mode=$lt_install_override_mode 21951 21952# Command to use after installation of a shared archive. 21953postinstall_cmds=$lt_postinstall_cmds 21954 21955# Command to use after uninstallation of a shared archive. 21956postuninstall_cmds=$lt_postuninstall_cmds 21957 21958# Commands used to finish a libtool library installation in a directory. 21959finish_cmds=$lt_finish_cmds 21960 21961# As "finish_cmds", except a single script fragment to be evaled but 21962# not shown. 21963finish_eval=$lt_finish_eval 21964 21965# Whether we should hardcode library paths into libraries. 21966hardcode_into_libs=$hardcode_into_libs 21967 21968# Compile-time system search path for libraries. 21969sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21970 21971# Detected run-time system search path for libraries. 21972sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21973 21974# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21975configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21976 21977# Whether dlopen is supported. 21978dlopen_support=$enable_dlopen 21979 21980# Whether dlopen of programs is supported. 21981dlopen_self=$enable_dlopen_self 21982 21983# Whether dlopen of statically linked programs is supported. 21984dlopen_self_static=$enable_dlopen_self_static 21985 21986# Commands to strip libraries. 21987old_striplib=$lt_old_striplib 21988striplib=$lt_striplib 21989 21990 21991# The linker used to build libraries. 21992LD=$lt_LD 21993 21994# How to create reloadable object files. 21995reload_flag=$lt_reload_flag 21996reload_cmds=$lt_reload_cmds 21997 21998# Commands used to build an old-style archive. 21999old_archive_cmds=$lt_old_archive_cmds 22000 22001# A language specific compiler. 22002CC=$lt_compiler 22003 22004# Is the compiler the GNU compiler? 22005with_gcc=$GCC 22006 22007# Compiler flag to turn off builtin functions. 22008no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22009 22010# Additional compiler flags for building library objects. 22011pic_flag=$lt_lt_prog_compiler_pic 22012 22013# How to pass a linker flag through the compiler. 22014wl=$lt_lt_prog_compiler_wl 22015 22016# Compiler flag to prevent dynamic linking. 22017link_static_flag=$lt_lt_prog_compiler_static 22018 22019# Does compiler simultaneously support -c and -o options? 22020compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22021 22022# Whether or not to add -lc for building shared libraries. 22023build_libtool_need_lc=$archive_cmds_need_lc 22024 22025# Whether or not to disallow shared libs when runtime libs are static. 22026allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22027 22028# Compiler flag to allow reflexive dlopens. 22029export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22030 22031# Compiler flag to generate shared objects directly from archives. 22032whole_archive_flag_spec=$lt_whole_archive_flag_spec 22033 22034# Whether the compiler copes with passing no objects directly. 22035compiler_needs_object=$lt_compiler_needs_object 22036 22037# Create an old-style archive from a shared archive. 22038old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22039 22040# Create a temporary old-style archive to link instead of a shared archive. 22041old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22042 22043# Commands used to build a shared archive. 22044archive_cmds=$lt_archive_cmds 22045archive_expsym_cmds=$lt_archive_expsym_cmds 22046 22047# Commands used to build a loadable module if different from building 22048# a shared archive. 22049module_cmds=$lt_module_cmds 22050module_expsym_cmds=$lt_module_expsym_cmds 22051 22052# Whether we are building with GNU ld or not. 22053with_gnu_ld=$lt_with_gnu_ld 22054 22055# Flag that allows shared libraries with undefined symbols to be built. 22056allow_undefined_flag=$lt_allow_undefined_flag 22057 22058# Flag that enforces no undefined symbols. 22059no_undefined_flag=$lt_no_undefined_flag 22060 22061# Flag to hardcode \$libdir into a binary during linking. 22062# This must work even if \$libdir does not exist 22063hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22064 22065# Whether we need a single "-rpath" flag with a separated argument. 22066hardcode_libdir_separator=$lt_hardcode_libdir_separator 22067 22068# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22069# DIR into the resulting binary. 22070hardcode_direct=$hardcode_direct 22071 22072# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22073# DIR into the resulting binary and the resulting library dependency is 22074# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22075# library is relocated. 22076hardcode_direct_absolute=$hardcode_direct_absolute 22077 22078# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22079# into the resulting binary. 22080hardcode_minus_L=$hardcode_minus_L 22081 22082# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22083# into the resulting binary. 22084hardcode_shlibpath_var=$hardcode_shlibpath_var 22085 22086# Set to "yes" if building a shared library automatically hardcodes DIR 22087# into the library and all subsequent libraries and executables linked 22088# against it. 22089hardcode_automatic=$hardcode_automatic 22090 22091# Set to yes if linker adds runtime paths of dependent libraries 22092# to runtime path list. 22093inherit_rpath=$inherit_rpath 22094 22095# Whether libtool must link a program against all its dependency libraries. 22096link_all_deplibs=$link_all_deplibs 22097 22098# Set to "yes" if exported symbols are required. 22099always_export_symbols=$always_export_symbols 22100 22101# The commands to list exported symbols. 22102export_symbols_cmds=$lt_export_symbols_cmds 22103 22104# Symbols that should not be listed in the preloaded symbols. 22105exclude_expsyms=$lt_exclude_expsyms 22106 22107# Symbols that must always be exported. 22108include_expsyms=$lt_include_expsyms 22109 22110# Commands necessary for linking programs (against libraries) with templates. 22111prelink_cmds=$lt_prelink_cmds 22112 22113# Commands necessary for finishing linking programs. 22114postlink_cmds=$lt_postlink_cmds 22115 22116# Specify filename containing input files. 22117file_list_spec=$lt_file_list_spec 22118 22119# How to hardcode a shared library path into an executable. 22120hardcode_action=$hardcode_action 22121 22122# ### END LIBTOOL CONFIG 22123 22124_LT_EOF 22125 22126 cat <<'_LT_EOF' >> "$cfgfile" 22127 22128# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22129 22130# func_munge_path_list VARIABLE PATH 22131# ----------------------------------- 22132# VARIABLE is name of variable containing _space_ separated list of 22133# directories to be munged by the contents of PATH, which is string 22134# having a format: 22135# "DIR[:DIR]:" 22136# string "DIR[ DIR]" will be prepended to VARIABLE 22137# ":DIR[:DIR]" 22138# string "DIR[ DIR]" will be appended to VARIABLE 22139# "DIRP[:DIRP]::[DIRA:]DIRA" 22140# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22141# "DIRA[ DIRA]" will be appended to VARIABLE 22142# "DIR[:DIR]" 22143# VARIABLE will be replaced by "DIR[ DIR]" 22144func_munge_path_list () 22145{ 22146 case x$2 in 22147 x) 22148 ;; 22149 *:) 22150 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22151 ;; 22152 x:*) 22153 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22154 ;; 22155 *::*) 22156 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22157 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22158 ;; 22159 *) 22160 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22161 ;; 22162 esac 22163} 22164 22165 22166# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22167func_cc_basename () 22168{ 22169 for cc_temp in $*""; do 22170 case $cc_temp in 22171 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22172 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22173 \-*) ;; 22174 *) break;; 22175 esac 22176 done 22177 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22178} 22179 22180 22181# ### END FUNCTIONS SHARED WITH CONFIGURE 22182 22183_LT_EOF 22184 22185 case $host_os in 22186 aix3*) 22187 cat <<\_LT_EOF >> "$cfgfile" 22188# AIX sometimes has problems with the GCC collect2 program. For some 22189# reason, if we set the COLLECT_NAMES environment variable, the problems 22190# vanish in a puff of smoke. 22191if test set != "${COLLECT_NAMES+set}"; then 22192 COLLECT_NAMES= 22193 export COLLECT_NAMES 22194fi 22195_LT_EOF 22196 ;; 22197 esac 22198 22199 22200ltmain=$ac_aux_dir/ltmain.sh 22201 22202 22203 # We use sed instead of cat because bash on DJGPP gets confused if 22204 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22205 # text mode, it properly converts lines to CR/LF. This bash problem 22206 # is reportedly fixed, but why not run on old versions too? 22207 sed '$q' "$ltmain" >> "$cfgfile" \ 22208 || (rm -f "$cfgfile"; exit 1) 22209 22210 mv -f "$cfgfile" "$ofile" || 22211 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22212 chmod +x "$ofile" 22213 22214 ;; 22215 22216 esac 22217done # for ac_tag 22218 22219 22220as_fn_exit 0 22221_ACEOF 22222ac_clean_files=$ac_clean_files_save 22223 22224test $ac_write_fail = 0 || 22225 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22226 22227 22228# configure is writing to config.log, and then calls config.status. 22229# config.status does its own redirection, appending to config.log. 22230# Unfortunately, on DOS this fails, as config.log is still kept open 22231# by configure, so config.status won't be able to write to it; its 22232# output is simply discarded. So we exec the FD to /dev/null, 22233# effectively closing config.log, so it can be properly (re)opened and 22234# appended to by config.status. When coming back to configure, we 22235# need to make the FD available again. 22236if test "$no_create" != yes; then 22237 ac_cs_success=: 22238 ac_config_status_args= 22239 test "$silent" = yes && 22240 ac_config_status_args="$ac_config_status_args --quiet" 22241 exec 5>/dev/null 22242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22243 exec 5>>config.log 22244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22245 # would make configure fail if this is the last instruction. 22246 $ac_cs_success || as_fn_exit 1 22247fi 22248if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22250$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22251fi 22252 22253 22254echo "" 22255echo " prefix: $prefix" 22256echo " exec_prefix: $exec_prefix" 22257echo " libdir: $libdir" 22258echo " includedir: $includedir" 22259 22260echo "" 22261echo " CFLAGS: $CFLAGS" 22262echo " CXXFLAGS: $CXXFLAGS" 22263echo " Macros: $DEFINES" 22264 22265echo "" 22266echo " Run '${MAKE-make}' to build xf86-video-ati" 22267echo "" 22268