configure revision 93d9adc1
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-sis 0.10.9. 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-sis' 593PACKAGE_TARNAME='xf86-video-sis' 594PACKAGE_VERSION='0.10.9' 595PACKAGE_STRING='xf86-video-sis 0.10.9' 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 642XSERVER_LIBPCIACCESS_FALSE 643XSERVER_LIBPCIACCESS_TRUE 644PCIACCESS_LIBS 645PCIACCESS_CFLAGS 646XAA_FALSE 647XAA_TRUE 648DRI_LIBS 649DRI_CFLAGS 650DRI_FALSE 651DRI_TRUE 652HAVE_XEXTPROTO_71_FALSE 653HAVE_XEXTPROTO_71_TRUE 654XEXT_LIBS 655XEXT_CFLAGS 656XORG_LIBS 657XORG_CFLAGS 658LT_SYS_LIBRARY_PATH 659OTOOL64 660OTOOL 661LIPO 662NMEDIT 663DSYMUTIL 664MANIFEST_TOOL 665RANLIB 666ac_ct_AR 667AR 668DLLTOOL 669OBJDUMP 670LN_S 671NM 672ac_ct_DUMPBIN 673DUMPBIN 674LD 675FGREP 676LIBTOOL 677MAN_SUBSTS 678XORG_MAN_PAGE 679ADMIN_MAN_DIR 680DRIVER_MAN_DIR 681MISC_MAN_DIR 682FILE_MAN_DIR 683LIB_MAN_DIR 684APP_MAN_DIR 685ADMIN_MAN_SUFFIX 686DRIVER_MAN_SUFFIX 687MISC_MAN_SUFFIX 688FILE_MAN_SUFFIX 689LIB_MAN_SUFFIX 690APP_MAN_SUFFIX 691SED 692host_os 693host_vendor 694host_cpu 695host 696build_os 697build_vendor 698build_cpu 699build 700INSTALL_CMD 701PKG_CONFIG_LIBDIR 702PKG_CONFIG_PATH 703PKG_CONFIG 704CHANGELOG_CMD 705STRICT_CFLAGS 706CWARNFLAGS 707BASE_CFLAGS 708EGREP 709GREP 710CPP 711am__fastdepCC_FALSE 712am__fastdepCC_TRUE 713CCDEPMODE 714am__nodep 715AMDEPBACKSLASH 716AMDEP_FALSE 717AMDEP_TRUE 718am__quote 719am__include 720DEPDIR 721OBJEXT 722EXEEXT 723ac_ct_CC 724CPPFLAGS 725LDFLAGS 726CFLAGS 727CC 728MAINT 729MAINTAINER_MODE_FALSE 730MAINTAINER_MODE_TRUE 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735am__untar 736am__tar 737AMTAR 738am__leading_dot 739SET_MAKE 740AWK 741mkdir_p 742MKDIR_P 743INSTALL_STRIP_PROGRAM 744STRIP 745install_sh 746MAKEINFO 747AUTOHEADER 748AUTOMAKE 749AUTOCONF 750ACLOCAL 751VERSION 752PACKAGE 753CYGPATH_W 754am__isrc 755INSTALL_DATA 756INSTALL_SCRIPT 757INSTALL_PROGRAM 758target_alias 759host_alias 760build_alias 761LIBS 762ECHO_T 763ECHO_N 764ECHO_C 765DEFS 766mandir 767localedir 768libdir 769psdir 770pdfdir 771dvidir 772htmldir 773infodir 774docdir 775oldincludedir 776includedir 777localstatedir 778sharedstatedir 779sysconfdir 780datadir 781datarootdir 782libexecdir 783sbindir 784bindir 785program_transform_name 786prefix 787exec_prefix 788PACKAGE_URL 789PACKAGE_BUGREPORT 790PACKAGE_STRING 791PACKAGE_VERSION 792PACKAGE_TARNAME 793PACKAGE_NAME 794PATH_SEPARATOR 795SHELL' 796ac_subst_files='' 797ac_user_opts=' 798enable_option_checking 799enable_silent_rules 800enable_maintainer_mode 801enable_dependency_tracking 802enable_selective_werror 803enable_strict_compilation 804enable_static 805enable_shared 806with_pic 807enable_fast_install 808with_aix_soname 809with_gnu_ld 810with_sysroot 811enable_libtool_lock 812with_xorg_module_dir 813enable_dri 814enable_xaa 815' 816 ac_precious_vars='build_alias 817host_alias 818target_alias 819CC 820CFLAGS 821LDFLAGS 822LIBS 823CPPFLAGS 824CPP 825PKG_CONFIG 826PKG_CONFIG_PATH 827PKG_CONFIG_LIBDIR 828LT_SYS_LIBRARY_PATH 829XORG_CFLAGS 830XORG_LIBS 831XEXT_CFLAGS 832XEXT_LIBS 833DRI_CFLAGS 834DRI_LIBS 835PCIACCESS_CFLAGS 836PCIACCESS_LIBS' 837 838 839# Initialize some variables set by options. 840ac_init_help= 841ac_init_version=false 842ac_unrecognized_opts= 843ac_unrecognized_sep= 844# The variables have the same names as the options, with 845# dashes changed to underlines. 846cache_file=/dev/null 847exec_prefix=NONE 848no_create= 849no_recursion= 850prefix=NONE 851program_prefix=NONE 852program_suffix=NONE 853program_transform_name=s,x,x, 854silent= 855site= 856srcdir= 857verbose= 858x_includes=NONE 859x_libraries=NONE 860 861# Installation directory options. 862# These are left unexpanded so users can "make install exec_prefix=/foo" 863# and all the variables that are supposed to be based on exec_prefix 864# by default will actually change. 865# Use braces instead of parens because sh, perl, etc. also accept them. 866# (The list follows the same order as the GNU Coding Standards.) 867bindir='${exec_prefix}/bin' 868sbindir='${exec_prefix}/sbin' 869libexecdir='${exec_prefix}/libexec' 870datarootdir='${prefix}/share' 871datadir='${datarootdir}' 872sysconfdir='${prefix}/etc' 873sharedstatedir='${prefix}/com' 874localstatedir='${prefix}/var' 875includedir='${prefix}/include' 876oldincludedir='/usr/include' 877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 878infodir='${datarootdir}/info' 879htmldir='${docdir}' 880dvidir='${docdir}' 881pdfdir='${docdir}' 882psdir='${docdir}' 883libdir='${exec_prefix}/lib' 884localedir='${datarootdir}/locale' 885mandir='${datarootdir}/man' 886 887ac_prev= 888ac_dashdash= 889for ac_option 890do 891 # If the previous option needs an argument, assign it. 892 if test -n "$ac_prev"; then 893 eval $ac_prev=\$ac_option 894 ac_prev= 895 continue 896 fi 897 898 case $ac_option in 899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 900 *=) ac_optarg= ;; 901 *) ac_optarg=yes ;; 902 esac 903 904 # Accept the important Cygnus configure options, so we can diagnose typos. 905 906 case $ac_dashdash$ac_option in 907 --) 908 ac_dashdash=yes ;; 909 910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 911 ac_prev=bindir ;; 912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 913 bindir=$ac_optarg ;; 914 915 -build | --build | --buil | --bui | --bu) 916 ac_prev=build_alias ;; 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 918 build_alias=$ac_optarg ;; 919 920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 922 ac_prev=cache_file ;; 923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 925 cache_file=$ac_optarg ;; 926 927 --config-cache | -C) 928 cache_file=config.cache ;; 929 930 -datadir | --datadir | --datadi | --datad) 931 ac_prev=datadir ;; 932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 933 datadir=$ac_optarg ;; 934 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 936 | --dataroo | --dataro | --datar) 937 ac_prev=datarootdir ;; 938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 940 datarootdir=$ac_optarg ;; 941 942 -disable-* | --disable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: $ac_useropt" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=no ;; 957 958 -docdir | --docdir | --docdi | --doc | --do) 959 ac_prev=docdir ;; 960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 961 docdir=$ac_optarg ;; 962 963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 964 ac_prev=dvidir ;; 965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 966 dvidir=$ac_optarg ;; 967 968 -enable-* | --enable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: $ac_useropt" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=\$ac_optarg ;; 983 984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 986 | --exec | --exe | --ex) 987 ac_prev=exec_prefix ;; 988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 990 | --exec=* | --exe=* | --ex=*) 991 exec_prefix=$ac_optarg ;; 992 993 -gas | --gas | --ga | --g) 994 # Obsolete; use --with-gas. 995 with_gas=yes ;; 996 997 -help | --help | --hel | --he | -h) 998 ac_init_help=long ;; 999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1000 ac_init_help=recursive ;; 1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1002 ac_init_help=short ;; 1003 1004 -host | --host | --hos | --ho) 1005 ac_prev=host_alias ;; 1006 -host=* | --host=* | --hos=* | --ho=*) 1007 host_alias=$ac_optarg ;; 1008 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1010 ac_prev=htmldir ;; 1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1012 | --ht=*) 1013 htmldir=$ac_optarg ;; 1014 1015 -includedir | --includedir | --includedi | --included | --include \ 1016 | --includ | --inclu | --incl | --inc) 1017 ac_prev=includedir ;; 1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1019 | --includ=* | --inclu=* | --incl=* | --inc=*) 1020 includedir=$ac_optarg ;; 1021 1022 -infodir | --infodir | --infodi | --infod | --info | --inf) 1023 ac_prev=infodir ;; 1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1025 infodir=$ac_optarg ;; 1026 1027 -libdir | --libdir | --libdi | --libd) 1028 ac_prev=libdir ;; 1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1030 libdir=$ac_optarg ;; 1031 1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1033 | --libexe | --libex | --libe) 1034 ac_prev=libexecdir ;; 1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1036 | --libexe=* | --libex=* | --libe=*) 1037 libexecdir=$ac_optarg ;; 1038 1039 -localedir | --localedir | --localedi | --localed | --locale) 1040 ac_prev=localedir ;; 1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1042 localedir=$ac_optarg ;; 1043 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1045 | --localstate | --localstat | --localsta | --localst | --locals) 1046 ac_prev=localstatedir ;; 1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1049 localstatedir=$ac_optarg ;; 1050 1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1052 ac_prev=mandir ;; 1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1054 mandir=$ac_optarg ;; 1055 1056 -nfp | --nfp | --nf) 1057 # Obsolete; use --without-fp. 1058 with_fp=no ;; 1059 1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1061 | --no-cr | --no-c | -n) 1062 no_create=yes ;; 1063 1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1066 no_recursion=yes ;; 1067 1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1070 | --oldin | --oldi | --old | --ol | --o) 1071 ac_prev=oldincludedir ;; 1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1075 oldincludedir=$ac_optarg ;; 1076 1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1078 ac_prev=prefix ;; 1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1080 prefix=$ac_optarg ;; 1081 1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1083 | --program-pre | --program-pr | --program-p) 1084 ac_prev=program_prefix ;; 1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1087 program_prefix=$ac_optarg ;; 1088 1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1090 | --program-suf | --program-su | --program-s) 1091 ac_prev=program_suffix ;; 1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1094 program_suffix=$ac_optarg ;; 1095 1096 -program-transform-name | --program-transform-name \ 1097 | --program-transform-nam | --program-transform-na \ 1098 | --program-transform-n | --program-transform- \ 1099 | --program-transform | --program-transfor \ 1100 | --program-transfo | --program-transf \ 1101 | --program-trans | --program-tran \ 1102 | --progr-tra | --program-tr | --program-t) 1103 ac_prev=program_transform_name ;; 1104 -program-transform-name=* | --program-transform-name=* \ 1105 | --program-transform-nam=* | --program-transform-na=* \ 1106 | --program-transform-n=* | --program-transform-=* \ 1107 | --program-transform=* | --program-transfor=* \ 1108 | --program-transfo=* | --program-transf=* \ 1109 | --program-trans=* | --program-tran=* \ 1110 | --progr-tra=* | --program-tr=* | --program-t=*) 1111 program_transform_name=$ac_optarg ;; 1112 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1114 ac_prev=pdfdir ;; 1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1116 pdfdir=$ac_optarg ;; 1117 1118 -psdir | --psdir | --psdi | --psd | --ps) 1119 ac_prev=psdir ;; 1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1121 psdir=$ac_optarg ;; 1122 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1124 | -silent | --silent | --silen | --sile | --sil) 1125 silent=yes ;; 1126 1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1128 ac_prev=sbindir ;; 1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1130 | --sbi=* | --sb=*) 1131 sbindir=$ac_optarg ;; 1132 1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1135 | --sharedst | --shareds | --shared | --share | --shar \ 1136 | --sha | --sh) 1137 ac_prev=sharedstatedir ;; 1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1141 | --sha=* | --sh=*) 1142 sharedstatedir=$ac_optarg ;; 1143 1144 -site | --site | --sit) 1145 ac_prev=site ;; 1146 -site=* | --site=* | --sit=*) 1147 site=$ac_optarg ;; 1148 1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1150 ac_prev=srcdir ;; 1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1152 srcdir=$ac_optarg ;; 1153 1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1155 | --syscon | --sysco | --sysc | --sys | --sy) 1156 ac_prev=sysconfdir ;; 1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1159 sysconfdir=$ac_optarg ;; 1160 1161 -target | --target | --targe | --targ | --tar | --ta | --t) 1162 ac_prev=target_alias ;; 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1164 target_alias=$ac_optarg ;; 1165 1166 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1167 verbose=yes ;; 1168 1169 -version | --version | --versio | --versi | --vers | -V) 1170 ac_init_version=: ;; 1171 1172 -with-* | --with-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=\$ac_optarg ;; 1187 1188 -without-* | --without-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: $ac_useropt" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=no ;; 1203 1204 --x) 1205 # Obsolete; use --with-x. 1206 with_x=yes ;; 1207 1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1209 | --x-incl | --x-inc | --x-in | --x-i) 1210 ac_prev=x_includes ;; 1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1213 x_includes=$ac_optarg ;; 1214 1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1217 ac_prev=x_libraries ;; 1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1220 x_libraries=$ac_optarg ;; 1221 1222 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1223Try \`$0 --help' for more information" 1224 ;; 1225 1226 *=*) 1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1228 # Reject names that are not valid shell variable names. 1229 case $ac_envvar in #( 1230 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1232 esac 1233 eval $ac_envvar=\$ac_optarg 1234 export $ac_envvar ;; 1235 1236 *) 1237 # FIXME: should be removed in autoconf 3.0. 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1242 ;; 1243 1244 esac 1245done 1246 1247if test -n "$ac_prev"; then 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1249 as_fn_error $? "missing argument to $ac_option" 1250fi 1251 1252if test -n "$ac_unrecognized_opts"; then 1253 case $enable_option_checking in 1254 no) ;; 1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1257 esac 1258fi 1259 1260# Check all directory arguments for consistency. 1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1262 datadir sysconfdir sharedstatedir localstatedir includedir \ 1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1264 libdir localedir mandir 1265do 1266 eval ac_val=\$$ac_var 1267 # Remove trailing slashes. 1268 case $ac_val in 1269 */ ) 1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1271 eval $ac_var=\$ac_val;; 1272 esac 1273 # Be sure to have absolute directory names. 1274 case $ac_val in 1275 [\\/$]* | ?:[\\/]* ) continue;; 1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1277 esac 1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1279done 1280 1281# There might be people who depend on the old broken behavior: `$host' 1282# used to hold the argument of --host etc. 1283# FIXME: To remove some day. 1284build=$build_alias 1285host=$host_alias 1286target=$target_alias 1287 1288# FIXME: To remove some day. 1289if test "x$host_alias" != x; then 1290 if test "x$build_alias" = x; then 1291 cross_compiling=maybe 1292 elif test "x$build_alias" != "x$host_alias"; then 1293 cross_compiling=yes 1294 fi 1295fi 1296 1297ac_tool_prefix= 1298test -n "$host_alias" && ac_tool_prefix=$host_alias- 1299 1300test "$silent" = yes && exec 6>/dev/null 1301 1302 1303ac_pwd=`pwd` && test -n "$ac_pwd" && 1304ac_ls_di=`ls -di .` && 1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1306 as_fn_error $? "working directory cannot be determined" 1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1308 as_fn_error $? "pwd does not report name of working directory" 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320$as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1348fi 1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1350ac_abs_confdir=`( 1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1352 pwd)` 1353# When building in place, set srcdir=. 1354if test "$ac_abs_confdir" = "$ac_pwd"; then 1355 srcdir=. 1356fi 1357# Remove unnecessary trailing slashes from srcdir. 1358# Double slashes in file names in object file debugging info 1359# mess up M-x gdb in Emacs. 1360case $srcdir in 1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1362esac 1363for ac_var in $ac_precious_vars; do 1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_env_${ac_var}_value=\$${ac_var} 1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1368done 1369 1370# 1371# Report the --help message. 1372# 1373if test "$ac_init_help" = "long"; then 1374 # Omit some internal or obsolete options to make the list less imposing. 1375 # This message is too long to be a string in the A/UX 3.1 sh. 1376 cat <<_ACEOF 1377\`configure' configures xf86-video-sis 0.10.9 to adapt to many kinds of systems. 1378 1379Usage: $0 [OPTION]... [VAR=VALUE]... 1380 1381To assign environment variables (e.g., CC, CFLAGS...), specify them as 1382VAR=VALUE. See below for descriptions of some of the useful variables. 1383 1384Defaults for the options are specified in brackets. 1385 1386Configuration: 1387 -h, --help display this help and exit 1388 --help=short display options specific to this package 1389 --help=recursive display the short help of all the included packages 1390 -V, --version display version information and exit 1391 -q, --quiet, --silent do not print \`checking ...' messages 1392 --cache-file=FILE cache test results in FILE [disabled] 1393 -C, --config-cache alias for \`--cache-file=config.cache' 1394 -n, --no-create do not create output files 1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1396 1397Installation directories: 1398 --prefix=PREFIX install architecture-independent files in PREFIX 1399 [$ac_default_prefix] 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1401 [PREFIX] 1402 1403By default, \`make install' will install all the files in 1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1405an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1406for instance \`--prefix=\$HOME'. 1407 1408For better control, use the options below. 1409 1410Fine tuning of the installation directories: 1411 --bindir=DIR user executables [EPREFIX/bin] 1412 --sbindir=DIR system admin executables [EPREFIX/sbin] 1413 --libexecdir=DIR program executables [EPREFIX/libexec] 1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-sis] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 case $ac_init_help in 1447 short | recursive ) echo "Configuration of xf86-video-sis 0.10.9:";; 1448 esac 1449 cat <<\_ACEOF 1450 1451Optional Features: 1452 --disable-option-checking ignore unrecognized --enable/--with options 1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1455 --enable-silent-rules less verbose build output (undo: "make V=1") 1456 --disable-silent-rules verbose build output (undo: "make V=0") 1457 --enable-maintainer-mode 1458 enable make rules and dependencies not useful (and 1459 sometimes confusing) to the casual installer 1460 --enable-dependency-tracking 1461 do not reject slow dependency extractors 1462 --disable-dependency-tracking 1463 speeds up one-time build 1464 --disable-selective-werror 1465 Turn off selective compiler errors. (default: 1466 enabled) 1467 --enable-strict-compilation 1468 Enable all warnings from compiler and make them 1469 errors (default: disabled) 1470 --enable-static[=PKGS] build static libraries [default=no] 1471 --enable-shared[=PKGS] build shared libraries [default=yes] 1472 --enable-fast-install[=PKGS] 1473 optimize for fast installation [default=yes] 1474 --disable-libtool-lock avoid locking (might break parallel builds) 1475 --disable-dri Disable DRI support [[default=auto]] 1476 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1477 [default=auto] 1478 1479Optional Packages: 1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1483 both] 1484 --with-aix-soname=aix|svr4|both 1485 shared library versioning (aka "SONAME") variant to 1486 provide on AIX, [default=aix]. 1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1488 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1489 compiler's sysroot if not specified). 1490 --with-xorg-module-dir=DIR 1491 Default xorg module directory 1492 [[default=$libdir/xorg/modules]] 1493 1494Some influential environment variables: 1495 CC C compiler command 1496 CFLAGS C compiler flags 1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1498 nonstandard directory <lib dir> 1499 LIBS libraries to pass to the linker, e.g. -l<library> 1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1501 you have headers in a nonstandard directory <include dir> 1502 CPP C preprocessor 1503 PKG_CONFIG path to pkg-config utility 1504 PKG_CONFIG_PATH 1505 directories to add to pkg-config's search path 1506 PKG_CONFIG_LIBDIR 1507 path overriding pkg-config's built-in search path 1508 LT_SYS_LIBRARY_PATH 1509 User-defined run-time library search path. 1510 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1511 XORG_LIBS linker flags for XORG, overriding pkg-config 1512 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1513 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1514 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1515 DRI_LIBS linker flags for DRI, overriding pkg-config 1516 PCIACCESS_CFLAGS 1517 C compiler flags for PCIACCESS, overriding pkg-config 1518 PCIACCESS_LIBS 1519 linker flags for PCIACCESS, overriding pkg-config 1520 1521Use these variables to override the choices made by `configure' or to help 1522it to find libraries and programs with nonstandard names/locations. 1523 1524Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1525_ACEOF 1526ac_status=$? 1527fi 1528 1529if test "$ac_init_help" = "recursive"; then 1530 # If there are subdirs, report their specific --help. 1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1532 test -d "$ac_dir" || 1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1534 continue 1535 ac_builddir=. 1536 1537case "$ac_dir" in 1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539*) 1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1541 # A ".." for each directory in $ac_dir_suffix. 1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1543 case $ac_top_builddir_sub in 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1546 esac ;; 1547esac 1548ac_abs_top_builddir=$ac_pwd 1549ac_abs_builddir=$ac_pwd$ac_dir_suffix 1550# for backward compatibility: 1551ac_top_builddir=$ac_top_build_prefix 1552 1553case $srcdir in 1554 .) # We are building in place. 1555 ac_srcdir=. 1556 ac_top_srcdir=$ac_top_builddir_sub 1557 ac_abs_top_srcdir=$ac_pwd ;; 1558 [\\/]* | ?:[\\/]* ) # Absolute name. 1559 ac_srcdir=$srcdir$ac_dir_suffix; 1560 ac_top_srcdir=$srcdir 1561 ac_abs_top_srcdir=$srcdir ;; 1562 *) # Relative name. 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir 1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1566esac 1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1568 1569 cd "$ac_dir" || { ac_status=$?; continue; } 1570 # Check for guested configure. 1571 if test -f "$ac_srcdir/configure.gnu"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1574 elif test -f "$ac_srcdir/configure"; then 1575 echo && 1576 $SHELL "$ac_srcdir/configure" --help=recursive 1577 else 1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1579 fi || ac_status=$? 1580 cd "$ac_pwd" || { ac_status=$?; break; } 1581 done 1582fi 1583 1584test -n "$ac_init_help" && exit $ac_status 1585if $ac_init_version; then 1586 cat <<\_ACEOF 1587xf86-video-sis configure 0.10.9 1588generated by GNU Autoconf 2.69 1589 1590Copyright (C) 2012 Free Software Foundation, Inc. 1591This configure script is free software; the Free Software Foundation 1592gives unlimited permission to copy, distribute and modify it. 1593_ACEOF 1594 exit 1595fi 1596 1597## ------------------------ ## 1598## Autoconf initialization. ## 1599## ------------------------ ## 1600 1601# ac_fn_c_try_compile LINENO 1602# -------------------------- 1603# Try to compile conftest.$ac_ext, and return whether this succeeded. 1604ac_fn_c_try_compile () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 rm -f conftest.$ac_objext 1608 if { { ac_try="$ac_compile" 1609case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612esac 1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614$as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_compile") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { 1624 test -z "$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 } && test -s conftest.$ac_objext; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637} # ac_fn_c_try_compile 1638 1639# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1640# --------------------------------------------- 1641# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1642# accordingly. 1643ac_fn_c_check_decl () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 as_decl_name=`echo $2|sed 's/ *(.*//'` 1647 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1649$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1650if eval \${$3+:} false; then : 1651 $as_echo_n "(cached) " >&6 1652else 1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1654/* end confdefs.h. */ 1655$4 1656int 1657main () 1658{ 1659#ifndef $as_decl_name 1660#ifdef __cplusplus 1661 (void) $as_decl_use; 1662#else 1663 (void) $as_decl_name; 1664#endif 1665#endif 1666 1667 ; 1668 return 0; 1669} 1670_ACEOF 1671if ac_fn_c_try_compile "$LINENO"; then : 1672 eval "$3=yes" 1673else 1674 eval "$3=no" 1675fi 1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1677fi 1678eval ac_res=\$$3 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1680$as_echo "$ac_res" >&6; } 1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1682 1683} # ac_fn_c_check_decl 1684 1685# ac_fn_c_try_cpp LINENO 1686# ---------------------- 1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_cpp () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_cpp conftest.$ac_ext" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } > conftest.i && { 1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 }; then : 1710 ac_retval=0 1711else 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716fi 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_cpp 1721 1722# ac_fn_c_try_run LINENO 1723# ---------------------- 1724# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1725# that executables *can* be run. 1726ac_fn_c_try_run () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 if { { ac_try="$ac_link" 1730case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735$as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_link") 2>&5 1737 ac_status=$? 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1740 { { case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_try") 2>&5 1747 ac_status=$? 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; }; }; then : 1750 ac_retval=0 1751else 1752 $as_echo "$as_me: program exited with status $ac_status" >&5 1753 $as_echo "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=$ac_status 1757fi 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_run 1763 1764# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1765# ------------------------------------------------------- 1766# Tests whether HEADER exists and can be compiled using the include files in 1767# INCLUDES, setting the cache variable VAR accordingly. 1768ac_fn_c_check_header_compile () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1772$as_echo_n "checking for $2... " >&6; } 1773if eval \${$3+:} false; then : 1774 $as_echo_n "(cached) " >&6 1775else 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777/* end confdefs.h. */ 1778$4 1779#include <$2> 1780_ACEOF 1781if ac_fn_c_try_compile "$LINENO"; then : 1782 eval "$3=yes" 1783else 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1787fi 1788eval ac_res=\$$3 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1790$as_echo "$ac_res" >&6; } 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 1793} # ac_fn_c_check_header_compile 1794 1795# ac_fn_c_try_link LINENO 1796# ----------------------- 1797# Try to link conftest.$ac_ext, and return whether this succeeded. 1798ac_fn_c_try_link () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 rm -f conftest.$ac_objext conftest$ac_exeext 1802 if { { ac_try="$ac_link" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_link") 2>conftest.err 1810 ac_status=$? 1811 if test -s conftest.err; then 1812 grep -v '^ *+' conftest.err >conftest.er1 1813 cat conftest.er1 >&5 1814 mv -f conftest.er1 conftest.err 1815 fi 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } && { 1818 test -z "$ac_c_werror_flag" || 1819 test ! -s conftest.err 1820 } && test -s conftest$ac_exeext && { 1821 test "$cross_compiling" = yes || 1822 test -x conftest$ac_exeext 1823 }; then : 1824 ac_retval=0 1825else 1826 $as_echo "$as_me: failed program was:" >&5 1827sed 's/^/| /' conftest.$ac_ext >&5 1828 1829 ac_retval=1 1830fi 1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1833 # interfere with the next link command; also delete a directory that is 1834 # left behind by Apple's compiler. We do this before executing the actions. 1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 as_fn_set_status $ac_retval 1838 1839} # ac_fn_c_try_link 1840 1841# ac_fn_c_check_func LINENO FUNC VAR 1842# ---------------------------------- 1843# Tests whether FUNC exists, setting the cache variable VAR accordingly 1844ac_fn_c_check_func () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1848$as_echo_n "checking for $2... " >&6; } 1849if eval \${$3+:} false; then : 1850 $as_echo_n "(cached) " >&6 1851else 1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1853/* end confdefs.h. */ 1854/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1856#define $2 innocuous_$2 1857 1858/* System header to define __stub macros and hopefully few prototypes, 1859 which can conflict with char $2 (); below. 1860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1861 <limits.h> exists even on freestanding compilers. */ 1862 1863#ifdef __STDC__ 1864# include <limits.h> 1865#else 1866# include <assert.h> 1867#endif 1868 1869#undef $2 1870 1871/* Override any GCC internal prototype to avoid an error. 1872 Use char because int might match the return type of a GCC 1873 builtin and then its argument prototype would still apply. */ 1874#ifdef __cplusplus 1875extern "C" 1876#endif 1877char $2 (); 1878/* The GNU C library defines this for functions which it implements 1879 to always fail with ENOSYS. Some functions are actually named 1880 something starting with __ and the normal name is an alias. */ 1881#if defined __stub_$2 || defined __stub___$2 1882choke me 1883#endif 1884 1885int 1886main () 1887{ 1888return $2 (); 1889 ; 1890 return 0; 1891} 1892_ACEOF 1893if ac_fn_c_try_link "$LINENO"; then : 1894 eval "$3=yes" 1895else 1896 eval "$3=no" 1897fi 1898rm -f core conftest.err conftest.$ac_objext \ 1899 conftest$ac_exeext conftest.$ac_ext 1900fi 1901eval ac_res=\$$3 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1903$as_echo "$ac_res" >&6; } 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 1906} # ac_fn_c_check_func 1907 1908# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1909# ------------------------------------------------------- 1910# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1911# the include files in INCLUDES and setting the cache variable VAR 1912# accordingly. 1913ac_fn_c_check_header_mongrel () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 if eval \${$3+:} false; then : 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1918$as_echo_n "checking for $2... " >&6; } 1919if eval \${$3+:} false; then : 1920 $as_echo_n "(cached) " >&6 1921fi 1922eval ac_res=\$$3 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1924$as_echo "$ac_res" >&6; } 1925else 1926 # Is the header compilable? 1927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1928$as_echo_n "checking $2 usability... " >&6; } 1929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1930/* end confdefs.h. */ 1931$4 1932#include <$2> 1933_ACEOF 1934if ac_fn_c_try_compile "$LINENO"; then : 1935 ac_header_compiler=yes 1936else 1937 ac_header_compiler=no 1938fi 1939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1941$as_echo "$ac_header_compiler" >&6; } 1942 1943# Is the header present? 1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1945$as_echo_n "checking $2 presence... " >&6; } 1946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948#include <$2> 1949_ACEOF 1950if ac_fn_c_try_cpp "$LINENO"; then : 1951 ac_header_preproc=yes 1952else 1953 ac_header_preproc=no 1954fi 1955rm -f conftest.err conftest.i conftest.$ac_ext 1956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1957$as_echo "$ac_header_preproc" >&6; } 1958 1959# So? What about this header? 1960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1961 yes:no: ) 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1963$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1965$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1966 ;; 1967 no:yes:* ) 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1969$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1971$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1973$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1975$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1977$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1978( $as_echo "## ---------------------------------------------------------------------- ## 1979## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1980## ---------------------------------------------------------------------- ##" 1981 ) | sed "s/^/$as_me: WARNING: /" >&2 1982 ;; 1983esac 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1985$as_echo_n "checking for $2... " >&6; } 1986if eval \${$3+:} false; then : 1987 $as_echo_n "(cached) " >&6 1988else 1989 eval "$3=\$ac_header_compiler" 1990fi 1991eval ac_res=\$$3 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1993$as_echo "$ac_res" >&6; } 1994fi 1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1996 1997} # ac_fn_c_check_header_mongrel 1998cat >config.log <<_ACEOF 1999This file contains any messages produced by compilers while 2000running configure, to aid debugging if configure makes a mistake. 2001 2002It was created by xf86-video-sis $as_me 0.10.9, which was 2003generated by GNU Autoconf 2.69. Invocation command line was 2004 2005 $ $0 $@ 2006 2007_ACEOF 2008exec 5>>config.log 2009{ 2010cat <<_ASUNAME 2011## --------- ## 2012## Platform. ## 2013## --------- ## 2014 2015hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2016uname -m = `(uname -m) 2>/dev/null || echo unknown` 2017uname -r = `(uname -r) 2>/dev/null || echo unknown` 2018uname -s = `(uname -s) 2>/dev/null || echo unknown` 2019uname -v = `(uname -v) 2>/dev/null || echo unknown` 2020 2021/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2022/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2023 2024/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2025/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2026/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2027/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2028/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2029/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2030/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2031 2032_ASUNAME 2033 2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2035for as_dir in $PATH 2036do 2037 IFS=$as_save_IFS 2038 test -z "$as_dir" && as_dir=. 2039 $as_echo "PATH: $as_dir" 2040 done 2041IFS=$as_save_IFS 2042 2043} >&5 2044 2045cat >&5 <<_ACEOF 2046 2047 2048## ----------- ## 2049## Core tests. ## 2050## ----------- ## 2051 2052_ACEOF 2053 2054 2055# Keep a trace of the command line. 2056# Strip out --no-create and --no-recursion so they do not pile up. 2057# Strip out --silent because we don't want to record it for future runs. 2058# Also quote any args containing shell meta-characters. 2059# Make two passes to allow for proper duplicate-argument suppression. 2060ac_configure_args= 2061ac_configure_args0= 2062ac_configure_args1= 2063ac_must_keep_next=false 2064for ac_pass in 1 2 2065do 2066 for ac_arg 2067 do 2068 case $ac_arg in 2069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2071 | -silent | --silent | --silen | --sile | --sil) 2072 continue ;; 2073 *\'*) 2074 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2075 esac 2076 case $ac_pass in 2077 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2078 2) 2079 as_fn_append ac_configure_args1 " '$ac_arg'" 2080 if test $ac_must_keep_next = true; then 2081 ac_must_keep_next=false # Got value, back to normal. 2082 else 2083 case $ac_arg in 2084 *=* | --config-cache | -C | -disable-* | --disable-* \ 2085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2087 | -with-* | --with-* | -without-* | --without-* | --x) 2088 case "$ac_configure_args0 " in 2089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2090 esac 2091 ;; 2092 -* ) ac_must_keep_next=true ;; 2093 esac 2094 fi 2095 as_fn_append ac_configure_args " '$ac_arg'" 2096 ;; 2097 esac 2098 done 2099done 2100{ ac_configure_args0=; unset ac_configure_args0;} 2101{ ac_configure_args1=; unset ac_configure_args1;} 2102 2103# When interrupted or exit'd, cleanup temporary files, and complete 2104# config.log. We remove comments because anyway the quotes in there 2105# would cause problems or look ugly. 2106# WARNING: Use '\'' to represent an apostrophe within the trap. 2107# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2108trap 'exit_status=$? 2109 # Save into config.log some information that might help in debugging. 2110 { 2111 echo 2112 2113 $as_echo "## ---------------- ## 2114## Cache variables. ## 2115## ---------------- ##" 2116 echo 2117 # The following way of writing the cache mishandles newlines in values, 2118( 2119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2120 eval ac_val=\$$ac_var 2121 case $ac_val in #( 2122 *${as_nl}*) 2123 case $ac_var in #( 2124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2125$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2126 esac 2127 case $ac_var in #( 2128 _ | IFS | as_nl) ;; #( 2129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2130 *) { eval $ac_var=; unset $ac_var;} ;; 2131 esac ;; 2132 esac 2133 done 2134 (set) 2>&1 | 2135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2136 *${as_nl}ac_space=\ *) 2137 sed -n \ 2138 "s/'\''/'\''\\\\'\'''\''/g; 2139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2140 ;; #( 2141 *) 2142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2143 ;; 2144 esac | 2145 sort 2146) 2147 echo 2148 2149 $as_echo "## ----------------- ## 2150## Output variables. ## 2151## ----------------- ##" 2152 echo 2153 for ac_var in $ac_subst_vars 2154 do 2155 eval ac_val=\$$ac_var 2156 case $ac_val in 2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2158 esac 2159 $as_echo "$ac_var='\''$ac_val'\''" 2160 done | sort 2161 echo 2162 2163 if test -n "$ac_subst_files"; then 2164 $as_echo "## ------------------- ## 2165## File substitutions. ## 2166## ------------------- ##" 2167 echo 2168 for ac_var in $ac_subst_files 2169 do 2170 eval ac_val=\$$ac_var 2171 case $ac_val in 2172 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2173 esac 2174 $as_echo "$ac_var='\''$ac_val'\''" 2175 done | sort 2176 echo 2177 fi 2178 2179 if test -s confdefs.h; then 2180 $as_echo "## ----------- ## 2181## confdefs.h. ## 2182## ----------- ##" 2183 echo 2184 cat confdefs.h 2185 echo 2186 fi 2187 test "$ac_signal" != 0 && 2188 $as_echo "$as_me: caught signal $ac_signal" 2189 $as_echo "$as_me: exit $exit_status" 2190 } >&5 2191 rm -f core *.core core.conftest.* && 2192 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2193 exit $exit_status 2194' 0 2195for ac_signal in 1 2 13 15; do 2196 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2197done 2198ac_signal=0 2199 2200# confdefs.h avoids OS command line length limits that DEFS can exceed. 2201rm -f -r conftest* confdefs.h 2202 2203$as_echo "/* confdefs.h */" > confdefs.h 2204 2205# Predefined preprocessor variables. 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_NAME "$PACKAGE_NAME" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_VERSION "$PACKAGE_VERSION" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_STRING "$PACKAGE_STRING" 2221_ACEOF 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2225_ACEOF 2226 2227cat >>confdefs.h <<_ACEOF 2228#define PACKAGE_URL "$PACKAGE_URL" 2229_ACEOF 2230 2231 2232# Let the site file select an alternate cache file if it wants to. 2233# Prefer an explicitly selected file to automatically selected ones. 2234ac_site_file1=NONE 2235ac_site_file2=NONE 2236if test -n "$CONFIG_SITE"; then 2237 # We do not want a PATH search for config.site. 2238 case $CONFIG_SITE in #(( 2239 -*) ac_site_file1=./$CONFIG_SITE;; 2240 */*) ac_site_file1=$CONFIG_SITE;; 2241 *) ac_site_file1=./$CONFIG_SITE;; 2242 esac 2243elif test "x$prefix" != xNONE; then 2244 ac_site_file1=$prefix/share/config.site 2245 ac_site_file2=$prefix/etc/config.site 2246else 2247 ac_site_file1=$ac_default_prefix/share/config.site 2248 ac_site_file2=$ac_default_prefix/etc/config.site 2249fi 2250for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2251do 2252 test "x$ac_site_file" = xNONE && continue 2253 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2255$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2256 sed 's/^/| /' "$ac_site_file" >&5 2257 . "$ac_site_file" \ 2258 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2260as_fn_error $? "failed to load site script $ac_site_file 2261See \`config.log' for more details" "$LINENO" 5; } 2262 fi 2263done 2264 2265if test -r "$cache_file"; then 2266 # Some versions of bash will fail to source /dev/null (special files 2267 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2268 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2270$as_echo "$as_me: loading cache $cache_file" >&6;} 2271 case $cache_file in 2272 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2273 *) . "./$cache_file";; 2274 esac 2275 fi 2276else 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2278$as_echo "$as_me: creating cache $cache_file" >&6;} 2279 >$cache_file 2280fi 2281 2282# Check that the precious variables saved in the cache have kept the same 2283# value. 2284ac_cache_corrupted=false 2285for ac_var in $ac_precious_vars; do 2286 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2287 eval ac_new_set=\$ac_env_${ac_var}_set 2288 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2289 eval ac_new_val=\$ac_env_${ac_var}_value 2290 case $ac_old_set,$ac_new_set in 2291 set,) 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2293$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2294 ac_cache_corrupted=: ;; 2295 ,set) 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2297$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2298 ac_cache_corrupted=: ;; 2299 ,);; 2300 *) 2301 if test "x$ac_old_val" != "x$ac_new_val"; then 2302 # differences in whitespace do not lead to failure. 2303 ac_old_val_w=`echo x $ac_old_val` 2304 ac_new_val_w=`echo x $ac_new_val` 2305 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2307$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2308 ac_cache_corrupted=: 2309 else 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2311$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2312 eval $ac_var=\$ac_old_val 2313 fi 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2315$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2317$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2318 fi;; 2319 esac 2320 # Pass precious variables to config.status. 2321 if test "$ac_new_set" = set; then 2322 case $ac_new_val in 2323 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2324 *) ac_arg=$ac_var=$ac_new_val ;; 2325 esac 2326 case " $ac_configure_args " in 2327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2328 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2329 esac 2330 fi 2331done 2332if $ac_cache_corrupted; then 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2336$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2337 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2338fi 2339## -------------------- ## 2340## Main body of script. ## 2341## -------------------- ## 2342 2343ac_ext=c 2344ac_cpp='$CPP $CPPFLAGS' 2345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2347ac_compiler_gnu=$ac_cv_c_compiler_gnu 2348 2349 2350 2351ac_config_headers="$ac_config_headers config.h" 2352 2353ac_aux_dir= 2354for ac_dir in . "$srcdir"/.; do 2355 if test -f "$ac_dir/install-sh"; then 2356 ac_aux_dir=$ac_dir 2357 ac_install_sh="$ac_aux_dir/install-sh -c" 2358 break 2359 elif test -f "$ac_dir/install.sh"; then 2360 ac_aux_dir=$ac_dir 2361 ac_install_sh="$ac_aux_dir/install.sh -c" 2362 break 2363 elif test -f "$ac_dir/shtool"; then 2364 ac_aux_dir=$ac_dir 2365 ac_install_sh="$ac_aux_dir/shtool install -c" 2366 break 2367 fi 2368done 2369if test -z "$ac_aux_dir"; then 2370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2371fi 2372 2373# These three variables are undocumented and unsupported, 2374# and are intended to be withdrawn in a future Autoconf release. 2375# They can cause serious problems if a builder's source tree is in a directory 2376# whose full name contains unusual characters. 2377ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2378ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2379ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2380 2381 2382 2383# Initialize Automake 2384am__api_version='1.15' 2385 2386# Find a good install program. We prefer a C program (faster), 2387# so one script is as good as another. But avoid the broken or 2388# incompatible versions: 2389# SysV /etc/install, /usr/sbin/install 2390# SunOS /usr/etc/install 2391# IRIX /sbin/install 2392# AIX /bin/install 2393# AmigaOS /C/install, which installs bootblocks on floppy discs 2394# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2395# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2396# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2397# OS/2's system install, which has a completely different semantic 2398# ./install, which can be erroneously created by make from ./install.sh. 2399# Reject install programs that cannot install multiple files. 2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2401$as_echo_n "checking for a BSD-compatible install... " >&6; } 2402if test -z "$INSTALL"; then 2403if ${ac_cv_path_install+:} false; then : 2404 $as_echo_n "(cached) " >&6 2405else 2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2407for as_dir in $PATH 2408do 2409 IFS=$as_save_IFS 2410 test -z "$as_dir" && as_dir=. 2411 # Account for people who put trailing slashes in PATH elements. 2412case $as_dir/ in #(( 2413 ./ | .// | /[cC]/* | \ 2414 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2415 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2416 /usr/ucb/* ) ;; 2417 *) 2418 # OSF1 and SCO ODT 3.0 have their own names for install. 2419 # Don't use installbsd from OSF since it installs stuff as root 2420 # by default. 2421 for ac_prog in ginstall scoinst install; do 2422 for ac_exec_ext in '' $ac_executable_extensions; do 2423 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2424 if test $ac_prog = install && 2425 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2426 # AIX install. It has an incompatible calling convention. 2427 : 2428 elif test $ac_prog = install && 2429 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2430 # program-specific install script used by HP pwplus--don't use. 2431 : 2432 else 2433 rm -rf conftest.one conftest.two conftest.dir 2434 echo one > conftest.one 2435 echo two > conftest.two 2436 mkdir conftest.dir 2437 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2438 test -s conftest.one && test -s conftest.two && 2439 test -s conftest.dir/conftest.one && 2440 test -s conftest.dir/conftest.two 2441 then 2442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2443 break 3 2444 fi 2445 fi 2446 fi 2447 done 2448 done 2449 ;; 2450esac 2451 2452 done 2453IFS=$as_save_IFS 2454 2455rm -rf conftest.one conftest.two conftest.dir 2456 2457fi 2458 if test "${ac_cv_path_install+set}" = set; then 2459 INSTALL=$ac_cv_path_install 2460 else 2461 # As a last resort, use the slow shell script. Don't cache a 2462 # value for INSTALL within a source directory, because that will 2463 # break other packages using the cache if that directory is 2464 # removed, or if the value is a relative name. 2465 INSTALL=$ac_install_sh 2466 fi 2467fi 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2469$as_echo "$INSTALL" >&6; } 2470 2471# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2472# It thinks the first close brace ends the variable substitution. 2473test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2474 2475test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2476 2477test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2478 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2480$as_echo_n "checking whether build environment is sane... " >&6; } 2481# Reject unsafe characters in $srcdir or the absolute working directory 2482# name. Accept space and tab only in the latter. 2483am_lf=' 2484' 2485case `pwd` in 2486 *[\\\"\#\$\&\'\`$am_lf]*) 2487 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2488esac 2489case $srcdir in 2490 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2491 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2492esac 2493 2494# Do 'set' in a subshell so we don't clobber the current shell's 2495# arguments. Must try -L first in case configure is actually a 2496# symlink; some systems play weird games with the mod time of symlinks 2497# (eg FreeBSD returns the mod time of the symlink's containing 2498# directory). 2499if ( 2500 am_has_slept=no 2501 for am_try in 1 2; do 2502 echo "timestamp, slept: $am_has_slept" > conftest.file 2503 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2504 if test "$*" = "X"; then 2505 # -L didn't work. 2506 set X `ls -t "$srcdir/configure" conftest.file` 2507 fi 2508 if test "$*" != "X $srcdir/configure conftest.file" \ 2509 && test "$*" != "X conftest.file $srcdir/configure"; then 2510 2511 # If neither matched, then we have a broken ls. This can happen 2512 # if, for instance, CONFIG_SHELL is bash and it inherits a 2513 # broken ls alias from the environment. This has actually 2514 # happened. Such a system could not be considered "sane". 2515 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2516 alias in your environment" "$LINENO" 5 2517 fi 2518 if test "$2" = conftest.file || test $am_try -eq 2; then 2519 break 2520 fi 2521 # Just in case. 2522 sleep 1 2523 am_has_slept=yes 2524 done 2525 test "$2" = conftest.file 2526 ) 2527then 2528 # Ok. 2529 : 2530else 2531 as_fn_error $? "newly created file is older than distributed files! 2532Check your system clock" "$LINENO" 5 2533fi 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2535$as_echo "yes" >&6; } 2536# If we didn't sleep, we still need to ensure time stamps of config.status and 2537# generated files are strictly newer. 2538am_sleep_pid= 2539if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2540 ( sleep 1 ) & 2541 am_sleep_pid=$! 2542fi 2543 2544rm -f conftest.file 2545 2546test "$program_prefix" != NONE && 2547 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2548# Use a double $ so make ignores it. 2549test "$program_suffix" != NONE && 2550 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2551# Double any \ or $. 2552# By default was `s,x,x', remove it if useless. 2553ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2554program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2555 2556# Expand $ac_aux_dir to an absolute path. 2557am_aux_dir=`cd "$ac_aux_dir" && pwd` 2558 2559if test x"${MISSING+set}" != xset; then 2560 case $am_aux_dir in 2561 *\ * | *\ *) 2562 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2563 *) 2564 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2565 esac 2566fi 2567# Use eval to expand $SHELL 2568if eval "$MISSING --is-lightweight"; then 2569 am_missing_run="$MISSING " 2570else 2571 am_missing_run= 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2573$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2574fi 2575 2576if test x"${install_sh+set}" != xset; then 2577 case $am_aux_dir in 2578 *\ * | *\ *) 2579 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2580 *) 2581 install_sh="\${SHELL} $am_aux_dir/install-sh" 2582 esac 2583fi 2584 2585# Installed binaries are usually stripped using 'strip' when the user 2586# run "make install-strip". However 'strip' might not be the right 2587# tool to use in cross-compilation environments, therefore Automake 2588# will honor the 'STRIP' environment variable to overrule this program. 2589if test "$cross_compiling" != no; then 2590 if test -n "$ac_tool_prefix"; then 2591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2592set dummy ${ac_tool_prefix}strip; ac_word=$2 2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2594$as_echo_n "checking for $ac_word... " >&6; } 2595if ${ac_cv_prog_STRIP+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 if test -n "$STRIP"; then 2599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2600else 2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2602for as_dir in $PATH 2603do 2604 IFS=$as_save_IFS 2605 test -z "$as_dir" && as_dir=. 2606 for ac_exec_ext in '' $ac_executable_extensions; do 2607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2608 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2610 break 2 2611 fi 2612done 2613 done 2614IFS=$as_save_IFS 2615 2616fi 2617fi 2618STRIP=$ac_cv_prog_STRIP 2619if test -n "$STRIP"; then 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2621$as_echo "$STRIP" >&6; } 2622else 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2624$as_echo "no" >&6; } 2625fi 2626 2627 2628fi 2629if test -z "$ac_cv_prog_STRIP"; then 2630 ac_ct_STRIP=$STRIP 2631 # Extract the first word of "strip", so it can be a program name with args. 2632set dummy strip; ac_word=$2 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2634$as_echo_n "checking for $ac_word... " >&6; } 2635if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2636 $as_echo_n "(cached) " >&6 2637else 2638 if test -n "$ac_ct_STRIP"; then 2639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2640else 2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2642for as_dir in $PATH 2643do 2644 IFS=$as_save_IFS 2645 test -z "$as_dir" && as_dir=. 2646 for ac_exec_ext in '' $ac_executable_extensions; do 2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2648 ac_cv_prog_ac_ct_STRIP="strip" 2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2650 break 2 2651 fi 2652done 2653 done 2654IFS=$as_save_IFS 2655 2656fi 2657fi 2658ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2659if test -n "$ac_ct_STRIP"; then 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2661$as_echo "$ac_ct_STRIP" >&6; } 2662else 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2664$as_echo "no" >&6; } 2665fi 2666 2667 if test "x$ac_ct_STRIP" = x; then 2668 STRIP=":" 2669 else 2670 case $cross_compiling:$ac_tool_warned in 2671yes:) 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2674ac_tool_warned=yes ;; 2675esac 2676 STRIP=$ac_ct_STRIP 2677 fi 2678else 2679 STRIP="$ac_cv_prog_STRIP" 2680fi 2681 2682fi 2683INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2684 2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2686$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2687if test -z "$MKDIR_P"; then 2688 if ${ac_cv_path_mkdir+:} false; then : 2689 $as_echo_n "(cached) " >&6 2690else 2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2693do 2694 IFS=$as_save_IFS 2695 test -z "$as_dir" && as_dir=. 2696 for ac_prog in mkdir gmkdir; do 2697 for ac_exec_ext in '' $ac_executable_extensions; do 2698 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2699 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2700 'mkdir (GNU coreutils) '* | \ 2701 'mkdir (coreutils) '* | \ 2702 'mkdir (fileutils) '4.1*) 2703 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2704 break 3;; 2705 esac 2706 done 2707 done 2708 done 2709IFS=$as_save_IFS 2710 2711fi 2712 2713 test -d ./--version && rmdir ./--version 2714 if test "${ac_cv_path_mkdir+set}" = set; then 2715 MKDIR_P="$ac_cv_path_mkdir -p" 2716 else 2717 # As a last resort, use the slow shell script. Don't cache a 2718 # value for MKDIR_P within a source directory, because that will 2719 # break other packages using the cache if that directory is 2720 # removed, or if the value is a relative name. 2721 MKDIR_P="$ac_install_sh -d" 2722 fi 2723fi 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2725$as_echo "$MKDIR_P" >&6; } 2726 2727for ac_prog in gawk mawk nawk awk 2728do 2729 # Extract the first word of "$ac_prog", so it can be a program name with args. 2730set dummy $ac_prog; ac_word=$2 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732$as_echo_n "checking for $ac_word... " >&6; } 2733if ${ac_cv_prog_AWK+:} false; then : 2734 $as_echo_n "(cached) " >&6 2735else 2736 if test -n "$AWK"; then 2737 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2738else 2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740for as_dir in $PATH 2741do 2742 IFS=$as_save_IFS 2743 test -z "$as_dir" && as_dir=. 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2746 ac_cv_prog_AWK="$ac_prog" 2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750done 2751 done 2752IFS=$as_save_IFS 2753 2754fi 2755fi 2756AWK=$ac_cv_prog_AWK 2757if test -n "$AWK"; then 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2759$as_echo "$AWK" >&6; } 2760else 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2762$as_echo "no" >&6; } 2763fi 2764 2765 2766 test -n "$AWK" && break 2767done 2768 2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2770$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2771set x ${MAKE-make} 2772ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2773if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2774 $as_echo_n "(cached) " >&6 2775else 2776 cat >conftest.make <<\_ACEOF 2777SHELL = /bin/sh 2778all: 2779 @echo '@@@%%%=$(MAKE)=@@@%%%' 2780_ACEOF 2781# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2782case `${MAKE-make} -f conftest.make 2>/dev/null` in 2783 *@@@%%%=?*=@@@%%%*) 2784 eval ac_cv_prog_make_${ac_make}_set=yes;; 2785 *) 2786 eval ac_cv_prog_make_${ac_make}_set=no;; 2787esac 2788rm -f conftest.make 2789fi 2790if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2792$as_echo "yes" >&6; } 2793 SET_MAKE= 2794else 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2796$as_echo "no" >&6; } 2797 SET_MAKE="MAKE=${MAKE-make}" 2798fi 2799 2800rm -rf .tst 2>/dev/null 2801mkdir .tst 2>/dev/null 2802if test -d .tst; then 2803 am__leading_dot=. 2804else 2805 am__leading_dot=_ 2806fi 2807rmdir .tst 2>/dev/null 2808 2809# Check whether --enable-silent-rules was given. 2810if test "${enable_silent_rules+set}" = set; then : 2811 enableval=$enable_silent_rules; 2812fi 2813 2814case $enable_silent_rules in # ((( 2815 yes) AM_DEFAULT_VERBOSITY=0;; 2816 no) AM_DEFAULT_VERBOSITY=1;; 2817 *) AM_DEFAULT_VERBOSITY=1;; 2818esac 2819am_make=${MAKE-make} 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2821$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2822if ${am_cv_make_support_nested_variables+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824else 2825 if $as_echo 'TRUE=$(BAR$(V)) 2826BAR0=false 2827BAR1=true 2828V=1 2829am__doit: 2830 @$(TRUE) 2831.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2832 am_cv_make_support_nested_variables=yes 2833else 2834 am_cv_make_support_nested_variables=no 2835fi 2836fi 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2838$as_echo "$am_cv_make_support_nested_variables" >&6; } 2839if test $am_cv_make_support_nested_variables = yes; then 2840 AM_V='$(V)' 2841 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2842else 2843 AM_V=$AM_DEFAULT_VERBOSITY 2844 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2845fi 2846AM_BACKSLASH='\' 2847 2848if test "`cd $srcdir && pwd`" != "`pwd`"; then 2849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2850 # is not polluted with repeated "-I." 2851 am__isrc=' -I$(srcdir)' 2852 # test to see if srcdir already configured 2853 if test -f $srcdir/config.status; then 2854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2855 fi 2856fi 2857 2858# test whether we have cygpath 2859if test -z "$CYGPATH_W"; then 2860 if (cygpath --version) >/dev/null 2>/dev/null; then 2861 CYGPATH_W='cygpath -w' 2862 else 2863 CYGPATH_W=echo 2864 fi 2865fi 2866 2867 2868# Define the identity of the package. 2869 PACKAGE='xf86-video-sis' 2870 VERSION='0.10.9' 2871 2872 2873cat >>confdefs.h <<_ACEOF 2874#define PACKAGE "$PACKAGE" 2875_ACEOF 2876 2877 2878cat >>confdefs.h <<_ACEOF 2879#define VERSION "$VERSION" 2880_ACEOF 2881 2882# Some tools Automake needs. 2883 2884ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2885 2886 2887AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2888 2889 2890AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2891 2892 2893AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2894 2895 2896MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2897 2898# For better backward compatibility. To be removed once Automake 1.9.x 2899# dies out for good. For more background, see: 2900# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2901# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2902mkdir_p='$(MKDIR_P)' 2903 2904# We need awk for the "check" target (and possibly the TAP driver). The 2905# system "awk" is bad on some platforms. 2906# Always define AMTAR for backward compatibility. Yes, it's still used 2907# in the wild :-( We should find a proper way to deprecate it ... 2908AMTAR='$${TAR-tar}' 2909 2910 2911# We'll loop over all known methods to create a tar archive until one works. 2912_am_tools='gnutar pax cpio none' 2913 2914am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2915 2916 2917 2918 2919 2920 2921# POSIX will say in a future version that running "rm -f" with no argument 2922# is OK; and we want to be able to make that assumption in our Makefile 2923# recipes. So use an aggressive probe to check that the usage we want is 2924# actually supported "in the wild" to an acceptable degree. 2925# See automake bug#10828. 2926# To make any issue more visible, cause the running configure to be aborted 2927# by default if the 'rm' program in use doesn't match our expectations; the 2928# user can still override this though. 2929if rm -f && rm -fr && rm -rf; then : OK; else 2930 cat >&2 <<'END' 2931Oops! 2932 2933Your 'rm' program seems unable to run without file operands specified 2934on the command line, even when the '-f' option is present. This is contrary 2935to the behaviour of most rm programs out there, and not conforming with 2936the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2937 2938Please tell bug-automake@gnu.org about your system, including the value 2939of your $PATH and any error possibly output before this message. This 2940can help us improve future automake versions. 2941 2942END 2943 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2944 echo 'Configuration will proceed anyway, since you have set the' >&2 2945 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2946 echo >&2 2947 else 2948 cat >&2 <<'END' 2949Aborting the configuration process, to ensure you take notice of the issue. 2950 2951You can download and install GNU coreutils to get an 'rm' implementation 2952that behaves properly: <http://www.gnu.org/software/coreutils/>. 2953 2954If you want to complete the configuration process using your problematic 2955'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2956to "yes", and re-run configure. 2957 2958END 2959 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2960 fi 2961fi 2962 2963 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2965$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2966 # Check whether --enable-maintainer-mode was given. 2967if test "${enable_maintainer_mode+set}" = set; then : 2968 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2969else 2970 USE_MAINTAINER_MODE=no 2971fi 2972 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2974$as_echo "$USE_MAINTAINER_MODE" >&6; } 2975 if test $USE_MAINTAINER_MODE = yes; then 2976 MAINTAINER_MODE_TRUE= 2977 MAINTAINER_MODE_FALSE='#' 2978else 2979 MAINTAINER_MODE_TRUE='#' 2980 MAINTAINER_MODE_FALSE= 2981fi 2982 2983 MAINT=$MAINTAINER_MODE_TRUE 2984 2985 2986 2987# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999DEPDIR="${am__leading_dot}deps" 3000 3001ac_config_commands="$ac_config_commands depfiles" 3002 3003 3004am_make=${MAKE-make} 3005cat > confinc << 'END' 3006am__doit: 3007 @echo this is the am__doit target 3008.PHONY: am__doit 3009END 3010# If we don't find an include directive, just comment out the code. 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3012$as_echo_n "checking for style of include used by $am_make... " >&6; } 3013am__include="#" 3014am__quote= 3015_am_result=none 3016# First try GNU make style include. 3017echo "include confinc" > confmf 3018# Ignore all kinds of additional output from 'make'. 3019case `$am_make -s -f confmf 2> /dev/null` in #( 3020*the\ am__doit\ target*) 3021 am__include=include 3022 am__quote= 3023 _am_result=GNU 3024 ;; 3025esac 3026# Now try BSD make style include. 3027if test "$am__include" = "#"; then 3028 echo '.include "confinc"' > confmf 3029 case `$am_make -s -f confmf 2> /dev/null` in #( 3030 *the\ am__doit\ target*) 3031 am__include=.include 3032 am__quote="\"" 3033 _am_result=BSD 3034 ;; 3035 esac 3036fi 3037 3038 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3040$as_echo "$_am_result" >&6; } 3041rm -f confinc confmf 3042 3043# Check whether --enable-dependency-tracking was given. 3044if test "${enable_dependency_tracking+set}" = set; then : 3045 enableval=$enable_dependency_tracking; 3046fi 3047 3048if test "x$enable_dependency_tracking" != xno; then 3049 am_depcomp="$ac_aux_dir/depcomp" 3050 AMDEPBACKSLASH='\' 3051 am__nodep='_no' 3052fi 3053 if test "x$enable_dependency_tracking" != xno; then 3054 AMDEP_TRUE= 3055 AMDEP_FALSE='#' 3056else 3057 AMDEP_TRUE='#' 3058 AMDEP_FALSE= 3059fi 3060 3061 3062ac_ext=c 3063ac_cpp='$CPP $CPPFLAGS' 3064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3066ac_compiler_gnu=$ac_cv_c_compiler_gnu 3067if test -n "$ac_tool_prefix"; then 3068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3069set dummy ${ac_tool_prefix}gcc; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095CC=$ac_cv_prog_CC 3096if test -n "$CC"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3098$as_echo "$CC" >&6; } 3099else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101$as_echo "no" >&6; } 3102fi 3103 3104 3105fi 3106if test -z "$ac_cv_prog_CC"; then 3107 ac_ct_CC=$CC 3108 # Extract the first word of "gcc", so it can be a program name with args. 3109set dummy gcc; ac_word=$2 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3111$as_echo_n "checking for $ac_word... " >&6; } 3112if ${ac_cv_prog_ac_ct_CC+:} false; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 if test -n "$ac_ct_CC"; then 3116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3117else 3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3119for as_dir in $PATH 3120do 3121 IFS=$as_save_IFS 3122 test -z "$as_dir" && as_dir=. 3123 for ac_exec_ext in '' $ac_executable_extensions; do 3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3125 ac_cv_prog_ac_ct_CC="gcc" 3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3127 break 2 3128 fi 3129done 3130 done 3131IFS=$as_save_IFS 3132 3133fi 3134fi 3135ac_ct_CC=$ac_cv_prog_ac_ct_CC 3136if test -n "$ac_ct_CC"; then 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3138$as_echo "$ac_ct_CC" >&6; } 3139else 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3141$as_echo "no" >&6; } 3142fi 3143 3144 if test "x$ac_ct_CC" = x; then 3145 CC="" 3146 else 3147 case $cross_compiling:$ac_tool_warned in 3148yes:) 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3151ac_tool_warned=yes ;; 3152esac 3153 CC=$ac_ct_CC 3154 fi 3155else 3156 CC="$ac_cv_prog_CC" 3157fi 3158 3159if test -z "$CC"; then 3160 if test -n "$ac_tool_prefix"; then 3161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3162set dummy ${ac_tool_prefix}cc; ac_word=$2 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164$as_echo_n "checking for $ac_word... " >&6; } 3165if ${ac_cv_prog_CC+:} false; then : 3166 $as_echo_n "(cached) " >&6 3167else 3168 if test -n "$CC"; then 3169 ac_cv_prog_CC="$CC" # Let the user override the test. 3170else 3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3172for as_dir in $PATH 3173do 3174 IFS=$as_save_IFS 3175 test -z "$as_dir" && as_dir=. 3176 for ac_exec_ext in '' $ac_executable_extensions; do 3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3178 ac_cv_prog_CC="${ac_tool_prefix}cc" 3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3180 break 2 3181 fi 3182done 3183 done 3184IFS=$as_save_IFS 3185 3186fi 3187fi 3188CC=$ac_cv_prog_CC 3189if test -n "$CC"; then 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3191$as_echo "$CC" >&6; } 3192else 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3194$as_echo "no" >&6; } 3195fi 3196 3197 3198 fi 3199fi 3200if test -z "$CC"; then 3201 # Extract the first word of "cc", so it can be a program name with args. 3202set dummy cc; ac_word=$2 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3204$as_echo_n "checking for $ac_word... " >&6; } 3205if ${ac_cv_prog_CC+:} false; then : 3206 $as_echo_n "(cached) " >&6 3207else 3208 if test -n "$CC"; then 3209 ac_cv_prog_CC="$CC" # Let the user override the test. 3210else 3211 ac_prog_rejected=no 3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213for as_dir in $PATH 3214do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_exec_ext in '' $ac_executable_extensions; do 3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3220 ac_prog_rejected=yes 3221 continue 3222 fi 3223 ac_cv_prog_CC="cc" 3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3225 break 2 3226 fi 3227done 3228 done 3229IFS=$as_save_IFS 3230 3231if test $ac_prog_rejected = yes; then 3232 # We found a bogon in the path, so make sure we never use it. 3233 set dummy $ac_cv_prog_CC 3234 shift 3235 if test $# != 0; then 3236 # We chose a different compiler from the bogus one. 3237 # However, it has the same basename, so the bogon will be chosen 3238 # first if we set CC to just the basename; use the full file name. 3239 shift 3240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3241 fi 3242fi 3243fi 3244fi 3245CC=$ac_cv_prog_CC 3246if test -n "$CC"; then 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3248$as_echo "$CC" >&6; } 3249else 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3251$as_echo "no" >&6; } 3252fi 3253 3254 3255fi 3256if test -z "$CC"; then 3257 if test -n "$ac_tool_prefix"; then 3258 for ac_prog in cl.exe 3259 do 3260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3261set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3263$as_echo_n "checking for $ac_word... " >&6; } 3264if ${ac_cv_prog_CC+:} false; then : 3265 $as_echo_n "(cached) " >&6 3266else 3267 if test -n "$CC"; then 3268 ac_cv_prog_CC="$CC" # Let the user override the test. 3269else 3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3271for as_dir in $PATH 3272do 3273 IFS=$as_save_IFS 3274 test -z "$as_dir" && as_dir=. 3275 for ac_exec_ext in '' $ac_executable_extensions; do 3276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3279 break 2 3280 fi 3281done 3282 done 3283IFS=$as_save_IFS 3284 3285fi 3286fi 3287CC=$ac_cv_prog_CC 3288if test -n "$CC"; then 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3290$as_echo "$CC" >&6; } 3291else 3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3293$as_echo "no" >&6; } 3294fi 3295 3296 3297 test -n "$CC" && break 3298 done 3299fi 3300if test -z "$CC"; then 3301 ac_ct_CC=$CC 3302 for ac_prog in cl.exe 3303do 3304 # Extract the first word of "$ac_prog", so it can be a program name with args. 3305set dummy $ac_prog; ac_word=$2 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3307$as_echo_n "checking for $ac_word... " >&6; } 3308if ${ac_cv_prog_ac_ct_CC+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 if test -n "$ac_ct_CC"; then 3312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3313else 3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_exec_ext in '' $ac_executable_extensions; do 3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3321 ac_cv_prog_ac_ct_CC="$ac_prog" 3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3323 break 2 3324 fi 3325done 3326 done 3327IFS=$as_save_IFS 3328 3329fi 3330fi 3331ac_ct_CC=$ac_cv_prog_ac_ct_CC 3332if test -n "$ac_ct_CC"; then 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3334$as_echo "$ac_ct_CC" >&6; } 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338fi 3339 3340 3341 test -n "$ac_ct_CC" && break 3342done 3343 3344 if test "x$ac_ct_CC" = x; then 3345 CC="" 3346 else 3347 case $cross_compiling:$ac_tool_warned in 3348yes:) 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3351ac_tool_warned=yes ;; 3352esac 3353 CC=$ac_ct_CC 3354 fi 3355fi 3356 3357fi 3358 3359 3360test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3362as_fn_error $? "no acceptable C compiler found in \$PATH 3363See \`config.log' for more details" "$LINENO" 5; } 3364 3365# Provide some information about the compiler. 3366$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3367set X $ac_compile 3368ac_compiler=$2 3369for ac_option in --version -v -V -qversion; do 3370 { { ac_try="$ac_compiler $ac_option >&5" 3371case "(($ac_try" in 3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3373 *) ac_try_echo=$ac_try;; 3374esac 3375eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3376$as_echo "$ac_try_echo"; } >&5 3377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3378 ac_status=$? 3379 if test -s conftest.err; then 3380 sed '10a\ 3381... rest of stderr output deleted ... 3382 10q' conftest.err >conftest.er1 3383 cat conftest.er1 >&5 3384 fi 3385 rm -f conftest.er1 conftest.err 3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3387 test $ac_status = 0; } 3388done 3389 3390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3391/* end confdefs.h. */ 3392 3393int 3394main () 3395{ 3396 3397 ; 3398 return 0; 3399} 3400_ACEOF 3401ac_clean_files_save=$ac_clean_files 3402ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3403# Try to create an executable without -o first, disregard a.out. 3404# It will help us diagnose broken compilers, and finding out an intuition 3405# of exeext. 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3407$as_echo_n "checking whether the C compiler works... " >&6; } 3408ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3409 3410# The possible output files: 3411ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3412 3413ac_rmfiles= 3414for ac_file in $ac_files 3415do 3416 case $ac_file in 3417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3418 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3419 esac 3420done 3421rm -f $ac_rmfiles 3422 3423if { { ac_try="$ac_link_default" 3424case "(($ac_try" in 3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3426 *) ac_try_echo=$ac_try;; 3427esac 3428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3429$as_echo "$ac_try_echo"; } >&5 3430 (eval "$ac_link_default") 2>&5 3431 ac_status=$? 3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3433 test $ac_status = 0; }; then : 3434 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3435# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3436# in a Makefile. We should not override ac_cv_exeext if it was cached, 3437# so that the user can short-circuit this test for compilers unknown to 3438# Autoconf. 3439for ac_file in $ac_files '' 3440do 3441 test -f "$ac_file" || continue 3442 case $ac_file in 3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3444 ;; 3445 [ab].out ) 3446 # We found the default executable, but exeext='' is most 3447 # certainly right. 3448 break;; 3449 *.* ) 3450 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3451 then :; else 3452 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3453 fi 3454 # We set ac_cv_exeext here because the later test for it is not 3455 # safe: cross compilers may not add the suffix if given an `-o' 3456 # argument, so we may need to know it at that point already. 3457 # Even if this section looks crufty: it has the advantage of 3458 # actually working. 3459 break;; 3460 * ) 3461 break;; 3462 esac 3463done 3464test "$ac_cv_exeext" = no && ac_cv_exeext= 3465 3466else 3467 ac_file='' 3468fi 3469if test -z "$ac_file"; then : 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3471$as_echo "no" >&6; } 3472$as_echo "$as_me: failed program was:" >&5 3473sed 's/^/| /' conftest.$ac_ext >&5 3474 3475{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3477as_fn_error 77 "C compiler cannot create executables 3478See \`config.log' for more details" "$LINENO" 5; } 3479else 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3481$as_echo "yes" >&6; } 3482fi 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3484$as_echo_n "checking for C compiler default output file name... " >&6; } 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3486$as_echo "$ac_file" >&6; } 3487ac_exeext=$ac_cv_exeext 3488 3489rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3490ac_clean_files=$ac_clean_files_save 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3492$as_echo_n "checking for suffix of executables... " >&6; } 3493if { { ac_try="$ac_link" 3494case "(($ac_try" in 3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3496 *) ac_try_echo=$ac_try;; 3497esac 3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3499$as_echo "$ac_try_echo"; } >&5 3500 (eval "$ac_link") 2>&5 3501 ac_status=$? 3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3503 test $ac_status = 0; }; then : 3504 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3505# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3506# work properly (i.e., refer to `conftest.exe'), while it won't with 3507# `rm'. 3508for ac_file in conftest.exe conftest conftest.*; do 3509 test -f "$ac_file" || continue 3510 case $ac_file in 3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3512 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3513 break;; 3514 * ) break;; 3515 esac 3516done 3517else 3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3520as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3521See \`config.log' for more details" "$LINENO" 5; } 3522fi 3523rm -f conftest conftest$ac_cv_exeext 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3525$as_echo "$ac_cv_exeext" >&6; } 3526 3527rm -f conftest.$ac_ext 3528EXEEXT=$ac_cv_exeext 3529ac_exeext=$EXEEXT 3530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3531/* end confdefs.h. */ 3532#include <stdio.h> 3533int 3534main () 3535{ 3536FILE *f = fopen ("conftest.out", "w"); 3537 return ferror (f) || fclose (f) != 0; 3538 3539 ; 3540 return 0; 3541} 3542_ACEOF 3543ac_clean_files="$ac_clean_files conftest.out" 3544# Check that the compiler produces executables we can run. If not, either 3545# the compiler is broken, or we cross compile. 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3547$as_echo_n "checking whether we are cross compiling... " >&6; } 3548if test "$cross_compiling" != yes; then 3549 { { ac_try="$ac_link" 3550case "(($ac_try" in 3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3552 *) ac_try_echo=$ac_try;; 3553esac 3554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3555$as_echo "$ac_try_echo"; } >&5 3556 (eval "$ac_link") 2>&5 3557 ac_status=$? 3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3559 test $ac_status = 0; } 3560 if { ac_try='./conftest$ac_cv_exeext' 3561 { { case "(($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_try") 2>&5 3568 ac_status=$? 3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3570 test $ac_status = 0; }; }; then 3571 cross_compiling=no 3572 else 3573 if test "$cross_compiling" = maybe; then 3574 cross_compiling=yes 3575 else 3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3578as_fn_error $? "cannot run C compiled programs. 3579If you meant to cross compile, use \`--host'. 3580See \`config.log' for more details" "$LINENO" 5; } 3581 fi 3582 fi 3583fi 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3585$as_echo "$cross_compiling" >&6; } 3586 3587rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3588ac_clean_files=$ac_clean_files_save 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3590$as_echo_n "checking for suffix of object files... " >&6; } 3591if ${ac_cv_objext+:} false; then : 3592 $as_echo_n "(cached) " >&6 3593else 3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596 3597int 3598main () 3599{ 3600 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605rm -f conftest.o conftest.obj 3606if { { ac_try="$ac_compile" 3607case "(($ac_try" in 3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3609 *) ac_try_echo=$ac_try;; 3610esac 3611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3612$as_echo "$ac_try_echo"; } >&5 3613 (eval "$ac_compile") 2>&5 3614 ac_status=$? 3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3616 test $ac_status = 0; }; then : 3617 for ac_file in conftest.o conftest.obj conftest.*; do 3618 test -f "$ac_file" || continue; 3619 case $ac_file in 3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3622 break;; 3623 esac 3624done 3625else 3626 $as_echo "$as_me: failed program was:" >&5 3627sed 's/^/| /' conftest.$ac_ext >&5 3628 3629{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3631as_fn_error $? "cannot compute suffix of object files: cannot compile 3632See \`config.log' for more details" "$LINENO" 5; } 3633fi 3634rm -f conftest.$ac_cv_objext conftest.$ac_ext 3635fi 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3637$as_echo "$ac_cv_objext" >&6; } 3638OBJEXT=$ac_cv_objext 3639ac_objext=$OBJEXT 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3641$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3642if ${ac_cv_c_compiler_gnu+:} false; then : 3643 $as_echo_n "(cached) " >&6 3644else 3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3646/* end confdefs.h. */ 3647 3648int 3649main () 3650{ 3651#ifndef __GNUC__ 3652 choke me 3653#endif 3654 3655 ; 3656 return 0; 3657} 3658_ACEOF 3659if ac_fn_c_try_compile "$LINENO"; then : 3660 ac_compiler_gnu=yes 3661else 3662 ac_compiler_gnu=no 3663fi 3664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3665ac_cv_c_compiler_gnu=$ac_compiler_gnu 3666 3667fi 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3669$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3670if test $ac_compiler_gnu = yes; then 3671 GCC=yes 3672else 3673 GCC= 3674fi 3675ac_test_CFLAGS=${CFLAGS+set} 3676ac_save_CFLAGS=$CFLAGS 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3678$as_echo_n "checking whether $CC accepts -g... " >&6; } 3679if ${ac_cv_prog_cc_g+:} false; then : 3680 $as_echo_n "(cached) " >&6 3681else 3682 ac_save_c_werror_flag=$ac_c_werror_flag 3683 ac_c_werror_flag=yes 3684 ac_cv_prog_cc_g=no 3685 CFLAGS="-g" 3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687/* end confdefs.h. */ 3688 3689int 3690main () 3691{ 3692 3693 ; 3694 return 0; 3695} 3696_ACEOF 3697if ac_fn_c_try_compile "$LINENO"; then : 3698 ac_cv_prog_cc_g=yes 3699else 3700 CFLAGS="" 3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702/* end confdefs.h. */ 3703 3704int 3705main () 3706{ 3707 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712if ac_fn_c_try_compile "$LINENO"; then : 3713 3714else 3715 ac_c_werror_flag=$ac_save_c_werror_flag 3716 CFLAGS="-g" 3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3718/* end confdefs.h. */ 3719 3720int 3721main () 3722{ 3723 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728if ac_fn_c_try_compile "$LINENO"; then : 3729 ac_cv_prog_cc_g=yes 3730fi 3731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3732fi 3733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3734fi 3735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3736 ac_c_werror_flag=$ac_save_c_werror_flag 3737fi 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3739$as_echo "$ac_cv_prog_cc_g" >&6; } 3740if test "$ac_test_CFLAGS" = set; then 3741 CFLAGS=$ac_save_CFLAGS 3742elif test $ac_cv_prog_cc_g = yes; then 3743 if test "$GCC" = yes; then 3744 CFLAGS="-g -O2" 3745 else 3746 CFLAGS="-g" 3747 fi 3748else 3749 if test "$GCC" = yes; then 3750 CFLAGS="-O2" 3751 else 3752 CFLAGS= 3753 fi 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3756$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3757if ${ac_cv_prog_cc_c89+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 ac_cv_prog_cc_c89=no 3761ac_save_CC=$CC 3762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3763/* end confdefs.h. */ 3764#include <stdarg.h> 3765#include <stdio.h> 3766struct stat; 3767/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3768struct buf { int x; }; 3769FILE * (*rcsopen) (struct buf *, struct stat *, int); 3770static char *e (p, i) 3771 char **p; 3772 int i; 3773{ 3774 return p[i]; 3775} 3776static char *f (char * (*g) (char **, int), char **p, ...) 3777{ 3778 char *s; 3779 va_list v; 3780 va_start (v,p); 3781 s = g (p, va_arg (v,int)); 3782 va_end (v); 3783 return s; 3784} 3785 3786/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3787 function prototypes and stuff, but not '\xHH' hex character constants. 3788 These don't provoke an error unfortunately, instead are silently treated 3789 as 'x'. The following induces an error, until -std is added to get 3790 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3791 array size at least. It's necessary to write '\x00'==0 to get something 3792 that's true only with -std. */ 3793int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3794 3795/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3796 inside strings and character constants. */ 3797#define FOO(x) 'x' 3798int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3799 3800int test (int i, double x); 3801struct s1 {int (*f) (int a);}; 3802struct s2 {int (*f) (double a);}; 3803int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3804int argc; 3805char **argv; 3806int 3807main () 3808{ 3809return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3810 ; 3811 return 0; 3812} 3813_ACEOF 3814for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3815 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3816do 3817 CC="$ac_save_CC $ac_arg" 3818 if ac_fn_c_try_compile "$LINENO"; then : 3819 ac_cv_prog_cc_c89=$ac_arg 3820fi 3821rm -f core conftest.err conftest.$ac_objext 3822 test "x$ac_cv_prog_cc_c89" != "xno" && break 3823done 3824rm -f conftest.$ac_ext 3825CC=$ac_save_CC 3826 3827fi 3828# AC_CACHE_VAL 3829case "x$ac_cv_prog_cc_c89" in 3830 x) 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3832$as_echo "none needed" >&6; } ;; 3833 xno) 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3835$as_echo "unsupported" >&6; } ;; 3836 *) 3837 CC="$CC $ac_cv_prog_cc_c89" 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3839$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3840esac 3841if test "x$ac_cv_prog_cc_c89" != xno; then : 3842 3843fi 3844 3845ac_ext=c 3846ac_cpp='$CPP $CPPFLAGS' 3847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3849ac_compiler_gnu=$ac_cv_c_compiler_gnu 3850 3851ac_ext=c 3852ac_cpp='$CPP $CPPFLAGS' 3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3857$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3858if ${am_cv_prog_cc_c_o+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860else 3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3862/* end confdefs.h. */ 3863 3864int 3865main () 3866{ 3867 3868 ; 3869 return 0; 3870} 3871_ACEOF 3872 # Make sure it works both with $CC and with simple cc. 3873 # Following AC_PROG_CC_C_O, we do the test twice because some 3874 # compilers refuse to overwrite an existing .o file with -o, 3875 # though they will create one. 3876 am_cv_prog_cc_c_o=yes 3877 for am_i in 1 2; do 3878 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3879 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3880 ac_status=$? 3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3882 (exit $ac_status); } \ 3883 && test -f conftest2.$ac_objext; then 3884 : OK 3885 else 3886 am_cv_prog_cc_c_o=no 3887 break 3888 fi 3889 done 3890 rm -f core conftest* 3891 unset am_i 3892fi 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3894$as_echo "$am_cv_prog_cc_c_o" >&6; } 3895if test "$am_cv_prog_cc_c_o" != yes; then 3896 # Losing compiler, so override with the script. 3897 # FIXME: It is wrong to rewrite CC. 3898 # But if we don't then we get into trouble of one sort or another. 3899 # A longer-term fix would be to have automake use am__CC in this case, 3900 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3901 CC="$am_aux_dir/compile $CC" 3902fi 3903ac_ext=c 3904ac_cpp='$CPP $CPPFLAGS' 3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3907ac_compiler_gnu=$ac_cv_c_compiler_gnu 3908 3909 3910depcc="$CC" am_compiler_list= 3911 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3913$as_echo_n "checking dependency style of $depcc... " >&6; } 3914if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3918 # We make a subdir and do the tests there. Otherwise we can end up 3919 # making bogus files that we don't know about and never remove. For 3920 # instance it was reported that on HP-UX the gcc test will end up 3921 # making a dummy file named 'D' -- because '-MD' means "put the output 3922 # in D". 3923 rm -rf conftest.dir 3924 mkdir conftest.dir 3925 # Copy depcomp to subdir because otherwise we won't find it if we're 3926 # using a relative directory. 3927 cp "$am_depcomp" conftest.dir 3928 cd conftest.dir 3929 # We will build objects and dependencies in a subdirectory because 3930 # it helps to detect inapplicable dependency modes. For instance 3931 # both Tru64's cc and ICC support -MD to output dependencies as a 3932 # side effect of compilation, but ICC will put the dependencies in 3933 # the current directory while Tru64 will put them in the object 3934 # directory. 3935 mkdir sub 3936 3937 am_cv_CC_dependencies_compiler_type=none 3938 if test "$am_compiler_list" = ""; then 3939 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3940 fi 3941 am__universal=false 3942 case " $depcc " in #( 3943 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3944 esac 3945 3946 for depmode in $am_compiler_list; do 3947 # Setup a source with many dependencies, because some compilers 3948 # like to wrap large dependency lists on column 80 (with \), and 3949 # we should not choose a depcomp mode which is confused by this. 3950 # 3951 # We need to recreate these files for each test, as the compiler may 3952 # overwrite some of them when testing with obscure command lines. 3953 # This happens at least with the AIX C compiler. 3954 : > sub/conftest.c 3955 for i in 1 2 3 4 5 6; do 3956 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3957 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3958 # Solaris 10 /bin/sh. 3959 echo '/* dummy */' > sub/conftst$i.h 3960 done 3961 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3962 3963 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3964 # mode. It turns out that the SunPro C++ compiler does not properly 3965 # handle '-M -o', and we need to detect this. Also, some Intel 3966 # versions had trouble with output in subdirs. 3967 am__obj=sub/conftest.${OBJEXT-o} 3968 am__minus_obj="-o $am__obj" 3969 case $depmode in 3970 gcc) 3971 # This depmode causes a compiler race in universal mode. 3972 test "$am__universal" = false || continue 3973 ;; 3974 nosideeffect) 3975 # After this tag, mechanisms are not by side-effect, so they'll 3976 # only be used when explicitly requested. 3977 if test "x$enable_dependency_tracking" = xyes; then 3978 continue 3979 else 3980 break 3981 fi 3982 ;; 3983 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3984 # This compiler won't grok '-c -o', but also, the minuso test has 3985 # not run yet. These depmodes are late enough in the game, and 3986 # so weak that their functioning should not be impacted. 3987 am__obj=conftest.${OBJEXT-o} 3988 am__minus_obj= 3989 ;; 3990 none) break ;; 3991 esac 3992 if depmode=$depmode \ 3993 source=sub/conftest.c object=$am__obj \ 3994 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3995 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3996 >/dev/null 2>conftest.err && 3997 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3998 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3999 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4000 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4001 # icc doesn't choke on unknown options, it will just issue warnings 4002 # or remarks (even with -Werror). So we grep stderr for any message 4003 # that says an option was ignored or not supported. 4004 # When given -MP, icc 7.0 and 7.1 complain thusly: 4005 # icc: Command line warning: ignoring option '-M'; no argument required 4006 # The diagnosis changed in icc 8.0: 4007 # icc: Command line remark: option '-MP' not supported 4008 if (grep 'ignoring option' conftest.err || 4009 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4010 am_cv_CC_dependencies_compiler_type=$depmode 4011 break 4012 fi 4013 fi 4014 done 4015 4016 cd .. 4017 rm -rf conftest.dir 4018else 4019 am_cv_CC_dependencies_compiler_type=none 4020fi 4021 4022fi 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4024$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4025CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4026 4027 if 4028 test "x$enable_dependency_tracking" != xno \ 4029 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4030 am__fastdepCC_TRUE= 4031 am__fastdepCC_FALSE='#' 4032else 4033 am__fastdepCC_TRUE='#' 4034 am__fastdepCC_FALSE= 4035fi 4036 4037 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4039$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4040if ${ac_cv_prog_cc_c99+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 ac_cv_prog_cc_c99=no 4044ac_save_CC=$CC 4045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4046/* end confdefs.h. */ 4047#include <stdarg.h> 4048#include <stdbool.h> 4049#include <stdlib.h> 4050#include <wchar.h> 4051#include <stdio.h> 4052 4053// Check varargs macros. These examples are taken from C99 6.10.3.5. 4054#define debug(...) fprintf (stderr, __VA_ARGS__) 4055#define showlist(...) puts (#__VA_ARGS__) 4056#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4057static void 4058test_varargs_macros (void) 4059{ 4060 int x = 1234; 4061 int y = 5678; 4062 debug ("Flag"); 4063 debug ("X = %d\n", x); 4064 showlist (The first, second, and third items.); 4065 report (x>y, "x is %d but y is %d", x, y); 4066} 4067 4068// Check long long types. 4069#define BIG64 18446744073709551615ull 4070#define BIG32 4294967295ul 4071#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4072#if !BIG_OK 4073 your preprocessor is broken; 4074#endif 4075#if BIG_OK 4076#else 4077 your preprocessor is broken; 4078#endif 4079static long long int bignum = -9223372036854775807LL; 4080static unsigned long long int ubignum = BIG64; 4081 4082struct incomplete_array 4083{ 4084 int datasize; 4085 double data[]; 4086}; 4087 4088struct named_init { 4089 int number; 4090 const wchar_t *name; 4091 double average; 4092}; 4093 4094typedef const char *ccp; 4095 4096static inline int 4097test_restrict (ccp restrict text) 4098{ 4099 // See if C++-style comments work. 4100 // Iterate through items via the restricted pointer. 4101 // Also check for declarations in for loops. 4102 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4103 continue; 4104 return 0; 4105} 4106 4107// Check varargs and va_copy. 4108static void 4109test_varargs (const char *format, ...) 4110{ 4111 va_list args; 4112 va_start (args, format); 4113 va_list args_copy; 4114 va_copy (args_copy, args); 4115 4116 const char *str; 4117 int number; 4118 float fnumber; 4119 4120 while (*format) 4121 { 4122 switch (*format++) 4123 { 4124 case 's': // string 4125 str = va_arg (args_copy, const char *); 4126 break; 4127 case 'd': // int 4128 number = va_arg (args_copy, int); 4129 break; 4130 case 'f': // float 4131 fnumber = va_arg (args_copy, double); 4132 break; 4133 default: 4134 break; 4135 } 4136 } 4137 va_end (args_copy); 4138 va_end (args); 4139} 4140 4141int 4142main () 4143{ 4144 4145 // Check bool. 4146 _Bool success = false; 4147 4148 // Check restrict. 4149 if (test_restrict ("String literal") == 0) 4150 success = true; 4151 char *restrict newvar = "Another string"; 4152 4153 // Check varargs. 4154 test_varargs ("s, d' f .", "string", 65, 34.234); 4155 test_varargs_macros (); 4156 4157 // Check flexible array members. 4158 struct incomplete_array *ia = 4159 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4160 ia->datasize = 10; 4161 for (int i = 0; i < ia->datasize; ++i) 4162 ia->data[i] = i * 1.234; 4163 4164 // Check named initializers. 4165 struct named_init ni = { 4166 .number = 34, 4167 .name = L"Test wide string", 4168 .average = 543.34343, 4169 }; 4170 4171 ni.number = 58; 4172 4173 int dynamic_array[ni.number]; 4174 dynamic_array[ni.number - 1] = 543; 4175 4176 // work around unused variable warnings 4177 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4178 || dynamic_array[ni.number - 1] != 543); 4179 4180 ; 4181 return 0; 4182} 4183_ACEOF 4184for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4185do 4186 CC="$ac_save_CC $ac_arg" 4187 if ac_fn_c_try_compile "$LINENO"; then : 4188 ac_cv_prog_cc_c99=$ac_arg 4189fi 4190rm -f core conftest.err conftest.$ac_objext 4191 test "x$ac_cv_prog_cc_c99" != "xno" && break 4192done 4193rm -f conftest.$ac_ext 4194CC=$ac_save_CC 4195 4196fi 4197# AC_CACHE_VAL 4198case "x$ac_cv_prog_cc_c99" in 4199 x) 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4201$as_echo "none needed" >&6; } ;; 4202 xno) 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4204$as_echo "unsupported" >&6; } ;; 4205 *) 4206 CC="$CC $ac_cv_prog_cc_c99" 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4208$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4209esac 4210if test "x$ac_cv_prog_cc_c99" != xno; then : 4211 4212fi 4213 4214 4215 4216ac_ext=c 4217ac_cpp='$CPP $CPPFLAGS' 4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4220ac_compiler_gnu=$ac_cv_c_compiler_gnu 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4222$as_echo_n "checking how to run the C preprocessor... " >&6; } 4223# On Suns, sometimes $CPP names a directory. 4224if test -n "$CPP" && test -d "$CPP"; then 4225 CPP= 4226fi 4227if test -z "$CPP"; then 4228 if ${ac_cv_prog_CPP+:} false; then : 4229 $as_echo_n "(cached) " >&6 4230else 4231 # Double quotes because CPP needs to be expanded 4232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4233 do 4234 ac_preproc_ok=false 4235for ac_c_preproc_warn_flag in '' yes 4236do 4237 # Use a header file that comes with gcc, so configuring glibc 4238 # with a fresh cross-compiler works. 4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4240 # <limits.h> exists even on freestanding compilers. 4241 # On the NeXT, cc -E runs the code through the compiler's parser, 4242 # not just through cpp. "Syntax error" is here to catch this case. 4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4244/* end confdefs.h. */ 4245#ifdef __STDC__ 4246# include <limits.h> 4247#else 4248# include <assert.h> 4249#endif 4250 Syntax error 4251_ACEOF 4252if ac_fn_c_try_cpp "$LINENO"; then : 4253 4254else 4255 # Broken: fails on valid input. 4256continue 4257fi 4258rm -f conftest.err conftest.i conftest.$ac_ext 4259 4260 # OK, works on sane cases. Now check whether nonexistent headers 4261 # can be detected and how. 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263/* end confdefs.h. */ 4264#include <ac_nonexistent.h> 4265_ACEOF 4266if ac_fn_c_try_cpp "$LINENO"; then : 4267 # Broken: success on invalid input. 4268continue 4269else 4270 # Passes both tests. 4271ac_preproc_ok=: 4272break 4273fi 4274rm -f conftest.err conftest.i conftest.$ac_ext 4275 4276done 4277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4278rm -f conftest.i conftest.err conftest.$ac_ext 4279if $ac_preproc_ok; then : 4280 break 4281fi 4282 4283 done 4284 ac_cv_prog_CPP=$CPP 4285 4286fi 4287 CPP=$ac_cv_prog_CPP 4288else 4289 ac_cv_prog_CPP=$CPP 4290fi 4291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4292$as_echo "$CPP" >&6; } 4293ac_preproc_ok=false 4294for ac_c_preproc_warn_flag in '' yes 4295do 4296 # Use a header file that comes with gcc, so configuring glibc 4297 # with a fresh cross-compiler works. 4298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4299 # <limits.h> exists even on freestanding compilers. 4300 # On the NeXT, cc -E runs the code through the compiler's parser, 4301 # not just through cpp. "Syntax error" is here to catch this case. 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4303/* end confdefs.h. */ 4304#ifdef __STDC__ 4305# include <limits.h> 4306#else 4307# include <assert.h> 4308#endif 4309 Syntax error 4310_ACEOF 4311if ac_fn_c_try_cpp "$LINENO"; then : 4312 4313else 4314 # Broken: fails on valid input. 4315continue 4316fi 4317rm -f conftest.err conftest.i conftest.$ac_ext 4318 4319 # OK, works on sane cases. Now check whether nonexistent headers 4320 # can be detected and how. 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4322/* end confdefs.h. */ 4323#include <ac_nonexistent.h> 4324_ACEOF 4325if ac_fn_c_try_cpp "$LINENO"; then : 4326 # Broken: success on invalid input. 4327continue 4328else 4329 # Passes both tests. 4330ac_preproc_ok=: 4331break 4332fi 4333rm -f conftest.err conftest.i conftest.$ac_ext 4334 4335done 4336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4337rm -f conftest.i conftest.err conftest.$ac_ext 4338if $ac_preproc_ok; then : 4339 4340else 4341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4343as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4344See \`config.log' for more details" "$LINENO" 5; } 4345fi 4346 4347ac_ext=c 4348ac_cpp='$CPP $CPPFLAGS' 4349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4351ac_compiler_gnu=$ac_cv_c_compiler_gnu 4352 4353 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4355$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4356if ${ac_cv_path_GREP+:} false; then : 4357 $as_echo_n "(cached) " >&6 4358else 4359 if test -z "$GREP"; then 4360 ac_path_GREP_found=false 4361 # Loop through the user's path and test for each of PROGNAME-LIST 4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4364do 4365 IFS=$as_save_IFS 4366 test -z "$as_dir" && as_dir=. 4367 for ac_prog in grep ggrep; do 4368 for ac_exec_ext in '' $ac_executable_extensions; do 4369 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4370 as_fn_executable_p "$ac_path_GREP" || continue 4371# Check for GNU ac_path_GREP and select it if it is found. 4372 # Check for GNU $ac_path_GREP 4373case `"$ac_path_GREP" --version 2>&1` in 4374*GNU*) 4375 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4376*) 4377 ac_count=0 4378 $as_echo_n 0123456789 >"conftest.in" 4379 while : 4380 do 4381 cat "conftest.in" "conftest.in" >"conftest.tmp" 4382 mv "conftest.tmp" "conftest.in" 4383 cp "conftest.in" "conftest.nl" 4384 $as_echo 'GREP' >> "conftest.nl" 4385 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4387 as_fn_arith $ac_count + 1 && ac_count=$as_val 4388 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4389 # Best one so far, save it but keep looking for a better one 4390 ac_cv_path_GREP="$ac_path_GREP" 4391 ac_path_GREP_max=$ac_count 4392 fi 4393 # 10*(2^10) chars as input seems more than enough 4394 test $ac_count -gt 10 && break 4395 done 4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4397esac 4398 4399 $ac_path_GREP_found && break 3 4400 done 4401 done 4402 done 4403IFS=$as_save_IFS 4404 if test -z "$ac_cv_path_GREP"; then 4405 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4406 fi 4407else 4408 ac_cv_path_GREP=$GREP 4409fi 4410 4411fi 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4413$as_echo "$ac_cv_path_GREP" >&6; } 4414 GREP="$ac_cv_path_GREP" 4415 4416 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4418$as_echo_n "checking for egrep... " >&6; } 4419if ${ac_cv_path_EGREP+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4423 then ac_cv_path_EGREP="$GREP -E" 4424 else 4425 if test -z "$EGREP"; then 4426 ac_path_EGREP_found=false 4427 # Loop through the user's path and test for each of PROGNAME-LIST 4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4430do 4431 IFS=$as_save_IFS 4432 test -z "$as_dir" && as_dir=. 4433 for ac_prog in egrep; do 4434 for ac_exec_ext in '' $ac_executable_extensions; do 4435 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4436 as_fn_executable_p "$ac_path_EGREP" || continue 4437# Check for GNU ac_path_EGREP and select it if it is found. 4438 # Check for GNU $ac_path_EGREP 4439case `"$ac_path_EGREP" --version 2>&1` in 4440*GNU*) 4441 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4442*) 4443 ac_count=0 4444 $as_echo_n 0123456789 >"conftest.in" 4445 while : 4446 do 4447 cat "conftest.in" "conftest.in" >"conftest.tmp" 4448 mv "conftest.tmp" "conftest.in" 4449 cp "conftest.in" "conftest.nl" 4450 $as_echo 'EGREP' >> "conftest.nl" 4451 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4453 as_fn_arith $ac_count + 1 && ac_count=$as_val 4454 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4455 # Best one so far, save it but keep looking for a better one 4456 ac_cv_path_EGREP="$ac_path_EGREP" 4457 ac_path_EGREP_max=$ac_count 4458 fi 4459 # 10*(2^10) chars as input seems more than enough 4460 test $ac_count -gt 10 && break 4461 done 4462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4463esac 4464 4465 $ac_path_EGREP_found && break 3 4466 done 4467 done 4468 done 4469IFS=$as_save_IFS 4470 if test -z "$ac_cv_path_EGREP"; then 4471 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4472 fi 4473else 4474 ac_cv_path_EGREP=$EGREP 4475fi 4476 4477 fi 4478fi 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4480$as_echo "$ac_cv_path_EGREP" >&6; } 4481 EGREP="$ac_cv_path_EGREP" 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4485$as_echo_n "checking for ANSI C header files... " >&6; } 4486if ${ac_cv_header_stdc+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4490/* end confdefs.h. */ 4491#include <stdlib.h> 4492#include <stdarg.h> 4493#include <string.h> 4494#include <float.h> 4495 4496int 4497main () 4498{ 4499 4500 ; 4501 return 0; 4502} 4503_ACEOF 4504if ac_fn_c_try_compile "$LINENO"; then : 4505 ac_cv_header_stdc=yes 4506else 4507 ac_cv_header_stdc=no 4508fi 4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4510 4511if test $ac_cv_header_stdc = yes; then 4512 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514/* end confdefs.h. */ 4515#include <string.h> 4516 4517_ACEOF 4518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4519 $EGREP "memchr" >/dev/null 2>&1; then : 4520 4521else 4522 ac_cv_header_stdc=no 4523fi 4524rm -f conftest* 4525 4526fi 4527 4528if test $ac_cv_header_stdc = yes; then 4529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4531/* end confdefs.h. */ 4532#include <stdlib.h> 4533 4534_ACEOF 4535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4536 $EGREP "free" >/dev/null 2>&1; then : 4537 4538else 4539 ac_cv_header_stdc=no 4540fi 4541rm -f conftest* 4542 4543fi 4544 4545if test $ac_cv_header_stdc = yes; then 4546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4547 if test "$cross_compiling" = yes; then : 4548 : 4549else 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4551/* end confdefs.h. */ 4552#include <ctype.h> 4553#include <stdlib.h> 4554#if ((' ' & 0x0FF) == 0x020) 4555# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4556# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4557#else 4558# define ISLOWER(c) \ 4559 (('a' <= (c) && (c) <= 'i') \ 4560 || ('j' <= (c) && (c) <= 'r') \ 4561 || ('s' <= (c) && (c) <= 'z')) 4562# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4563#endif 4564 4565#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4566int 4567main () 4568{ 4569 int i; 4570 for (i = 0; i < 256; i++) 4571 if (XOR (islower (i), ISLOWER (i)) 4572 || toupper (i) != TOUPPER (i)) 4573 return 2; 4574 return 0; 4575} 4576_ACEOF 4577if ac_fn_c_try_run "$LINENO"; then : 4578 4579else 4580 ac_cv_header_stdc=no 4581fi 4582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4583 conftest.$ac_objext conftest.beam conftest.$ac_ext 4584fi 4585 4586fi 4587fi 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4589$as_echo "$ac_cv_header_stdc" >&6; } 4590if test $ac_cv_header_stdc = yes; then 4591 4592$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4593 4594fi 4595 4596# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4597for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4598 inttypes.h stdint.h unistd.h 4599do : 4600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4601ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4602" 4603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4604 cat >>confdefs.h <<_ACEOF 4605#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4606_ACEOF 4607 4608fi 4609 4610done 4611 4612 4613 4614 4615 4616 4617ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4618if test "x$ac_cv_have_decl___clang__" = xyes; then : 4619 CLANGCC="yes" 4620else 4621 CLANGCC="no" 4622fi 4623 4624ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4625if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4626 INTELCC="yes" 4627else 4628 INTELCC="no" 4629fi 4630 4631ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4632if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4633 SUNCC="yes" 4634else 4635 SUNCC="no" 4636fi 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4647 if test -n "$ac_tool_prefix"; then 4648 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4649set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4651$as_echo_n "checking for $ac_word... " >&6; } 4652if ${ac_cv_path_PKG_CONFIG+:} false; then : 4653 $as_echo_n "(cached) " >&6 4654else 4655 case $PKG_CONFIG in 4656 [\\/]* | ?:[\\/]*) 4657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4658 ;; 4659 *) 4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4661for as_dir in $PATH 4662do 4663 IFS=$as_save_IFS 4664 test -z "$as_dir" && as_dir=. 4665 for ac_exec_ext in '' $ac_executable_extensions; do 4666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4667 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4669 break 2 4670 fi 4671done 4672 done 4673IFS=$as_save_IFS 4674 4675 ;; 4676esac 4677fi 4678PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4679if test -n "$PKG_CONFIG"; then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4681$as_echo "$PKG_CONFIG" >&6; } 4682else 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4684$as_echo "no" >&6; } 4685fi 4686 4687 4688fi 4689if test -z "$ac_cv_path_PKG_CONFIG"; then 4690 ac_pt_PKG_CONFIG=$PKG_CONFIG 4691 # Extract the first word of "pkg-config", so it can be a program name with args. 4692set dummy pkg-config; ac_word=$2 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4694$as_echo_n "checking for $ac_word... " >&6; } 4695if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 case $ac_pt_PKG_CONFIG in 4699 [\\/]* | ?:[\\/]*) 4700 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4701 ;; 4702 *) 4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704for as_dir in $PATH 4705do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4710 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4712 break 2 4713 fi 4714done 4715 done 4716IFS=$as_save_IFS 4717 4718 ;; 4719esac 4720fi 4721ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4722if test -n "$ac_pt_PKG_CONFIG"; then 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4724$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4725else 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4727$as_echo "no" >&6; } 4728fi 4729 4730 if test "x$ac_pt_PKG_CONFIG" = x; then 4731 PKG_CONFIG="" 4732 else 4733 case $cross_compiling:$ac_tool_warned in 4734yes:) 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4737ac_tool_warned=yes ;; 4738esac 4739 PKG_CONFIG=$ac_pt_PKG_CONFIG 4740 fi 4741else 4742 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4743fi 4744 4745fi 4746if test -n "$PKG_CONFIG"; then 4747 _pkg_min_version=0.9.0 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4749$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4750 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4752$as_echo "yes" >&6; } 4753 else 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4755$as_echo "no" >&6; } 4756 PKG_CONFIG="" 4757 fi 4758fi 4759# Make sure we can run config.sub. 4760$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4761 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4762 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4764$as_echo_n "checking build system type... " >&6; } 4765if ${ac_cv_build+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 ac_build_alias=$build_alias 4769test "x$ac_build_alias" = x && 4770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4771test "x$ac_build_alias" = x && 4772 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4773ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4775 4776fi 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4778$as_echo "$ac_cv_build" >&6; } 4779case $ac_cv_build in 4780*-*-*) ;; 4781*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4782esac 4783build=$ac_cv_build 4784ac_save_IFS=$IFS; IFS='-' 4785set x $ac_cv_build 4786shift 4787build_cpu=$1 4788build_vendor=$2 4789shift; shift 4790# Remember, the first character of IFS is used to create $*, 4791# except with old shells: 4792build_os=$* 4793IFS=$ac_save_IFS 4794case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4795 4796 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4798$as_echo_n "checking host system type... " >&6; } 4799if ${ac_cv_host+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 if test "x$host_alias" = x; then 4803 ac_cv_host=$ac_cv_build 4804else 4805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4807fi 4808 4809fi 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4811$as_echo "$ac_cv_host" >&6; } 4812case $ac_cv_host in 4813*-*-*) ;; 4814*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4815esac 4816host=$ac_cv_host 4817ac_save_IFS=$IFS; IFS='-' 4818set x $ac_cv_host 4819shift 4820host_cpu=$1 4821host_vendor=$2 4822shift; shift 4823# Remember, the first character of IFS is used to create $*, 4824# except with old shells: 4825host_os=$* 4826IFS=$ac_save_IFS 4827case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4828 4829 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4831$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4832if ${ac_cv_path_SED+:} false; then : 4833 $as_echo_n "(cached) " >&6 4834else 4835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4836 for ac_i in 1 2 3 4 5 6 7; do 4837 ac_script="$ac_script$as_nl$ac_script" 4838 done 4839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4840 { ac_script=; unset ac_script;} 4841 if test -z "$SED"; then 4842 ac_path_SED_found=false 4843 # Loop through the user's path and test for each of PROGNAME-LIST 4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH 4846do 4847 IFS=$as_save_IFS 4848 test -z "$as_dir" && as_dir=. 4849 for ac_prog in sed gsed; do 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4852 as_fn_executable_p "$ac_path_SED" || continue 4853# Check for GNU ac_path_SED and select it if it is found. 4854 # Check for GNU $ac_path_SED 4855case `"$ac_path_SED" --version 2>&1` in 4856*GNU*) 4857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4858*) 4859 ac_count=0 4860 $as_echo_n 0123456789 >"conftest.in" 4861 while : 4862 do 4863 cat "conftest.in" "conftest.in" >"conftest.tmp" 4864 mv "conftest.tmp" "conftest.in" 4865 cp "conftest.in" "conftest.nl" 4866 $as_echo '' >> "conftest.nl" 4867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4869 as_fn_arith $ac_count + 1 && ac_count=$as_val 4870 if test $ac_count -gt ${ac_path_SED_max-0}; then 4871 # Best one so far, save it but keep looking for a better one 4872 ac_cv_path_SED="$ac_path_SED" 4873 ac_path_SED_max=$ac_count 4874 fi 4875 # 10*(2^10) chars as input seems more than enough 4876 test $ac_count -gt 10 && break 4877 done 4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4879esac 4880 4881 $ac_path_SED_found && break 3 4882 done 4883 done 4884 done 4885IFS=$as_save_IFS 4886 if test -z "$ac_cv_path_SED"; then 4887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4888 fi 4889else 4890 ac_cv_path_SED=$SED 4891fi 4892 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4895$as_echo "$ac_cv_path_SED" >&6; } 4896 SED="$ac_cv_path_SED" 4897 rm -f conftest.sed 4898 4899 4900 4901 4902 4903 4904# Check whether --enable-selective-werror was given. 4905if test "${enable_selective_werror+set}" = set; then : 4906 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4907else 4908 SELECTIVE_WERROR=yes 4909fi 4910 4911 4912 4913 4914 4915# -v is too short to test reliably with XORG_TESTSET_CFLAG 4916if test "x$SUNCC" = "xyes"; then 4917 BASE_CFLAGS="-v" 4918else 4919 BASE_CFLAGS="" 4920fi 4921 4922# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936xorg_testset_save_CFLAGS="$CFLAGS" 4937 4938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4946/* end confdefs.h. */ 4947int i; 4948_ACEOF 4949if ac_fn_c_try_compile "$LINENO"; then : 4950 xorg_cv_cc_flag_unknown_warning_option=yes 4951else 4952 xorg_cv_cc_flag_unknown_warning_option=no 4953fi 4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4955fi 4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4959 CFLAGS="$xorg_testset_save_CFLAGS" 4960fi 4961 4962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4965 fi 4966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4970 $as_echo_n "(cached) " >&6 4971else 4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4973/* end confdefs.h. */ 4974int i; 4975_ACEOF 4976if ac_fn_c_try_compile "$LINENO"; then : 4977 xorg_cv_cc_flag_unused_command_line_argument=yes 4978else 4979 xorg_cv_cc_flag_unused_command_line_argument=no 4980fi 4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4986 CFLAGS="$xorg_testset_save_CFLAGS" 4987fi 4988 4989found="no" 4990 4991 if test $found = "no" ; then 4992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994 fi 4995 4996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4998 fi 4999 5000 CFLAGS="$CFLAGS -Wall" 5001 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5003$as_echo_n "checking if $CC supports -Wall... " >&6; } 5004 cacheid=xorg_cv_cc_flag__Wall 5005 if eval \${$cacheid+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5009/* end confdefs.h. */ 5010int i; 5011int 5012main () 5013{ 5014 5015 ; 5016 return 0; 5017} 5018_ACEOF 5019if ac_fn_c_try_link "$LINENO"; then : 5020 eval $cacheid=yes 5021else 5022 eval $cacheid=no 5023fi 5024rm -f core conftest.err conftest.$ac_objext \ 5025 conftest$ac_exeext conftest.$ac_ext 5026fi 5027 5028 5029 CFLAGS="$xorg_testset_save_CFLAGS" 5030 5031 eval supported=\$$cacheid 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5033$as_echo "$supported" >&6; } 5034 if test "$supported" = "yes" ; then 5035 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5036 found="yes" 5037 fi 5038 fi 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054xorg_testset_save_CFLAGS="$CFLAGS" 5055 5056if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5059$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5060if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5061 $as_echo_n "(cached) " >&6 5062else 5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5064/* end confdefs.h. */ 5065int i; 5066_ACEOF 5067if ac_fn_c_try_compile "$LINENO"; then : 5068 xorg_cv_cc_flag_unknown_warning_option=yes 5069else 5070 xorg_cv_cc_flag_unknown_warning_option=no 5071fi 5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5073fi 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5075$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5077 CFLAGS="$xorg_testset_save_CFLAGS" 5078fi 5079 5080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5083 fi 5084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5086$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5087if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5088 $as_echo_n "(cached) " >&6 5089else 5090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5091/* end confdefs.h. */ 5092int i; 5093_ACEOF 5094if ac_fn_c_try_compile "$LINENO"; then : 5095 xorg_cv_cc_flag_unused_command_line_argument=yes 5096else 5097 xorg_cv_cc_flag_unused_command_line_argument=no 5098fi 5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5100fi 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5102$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5104 CFLAGS="$xorg_testset_save_CFLAGS" 5105fi 5106 5107found="no" 5108 5109 if test $found = "no" ; then 5110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5112 fi 5113 5114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5116 fi 5117 5118 CFLAGS="$CFLAGS -Wpointer-arith" 5119 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5121$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5122 cacheid=xorg_cv_cc_flag__Wpointer_arith 5123 if eval \${$cacheid+:} false; then : 5124 $as_echo_n "(cached) " >&6 5125else 5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5127/* end confdefs.h. */ 5128int i; 5129int 5130main () 5131{ 5132 5133 ; 5134 return 0; 5135} 5136_ACEOF 5137if ac_fn_c_try_link "$LINENO"; then : 5138 eval $cacheid=yes 5139else 5140 eval $cacheid=no 5141fi 5142rm -f core conftest.err conftest.$ac_objext \ 5143 conftest$ac_exeext conftest.$ac_ext 5144fi 5145 5146 5147 CFLAGS="$xorg_testset_save_CFLAGS" 5148 5149 eval supported=\$$cacheid 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5151$as_echo "$supported" >&6; } 5152 if test "$supported" = "yes" ; then 5153 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5154 found="yes" 5155 fi 5156 fi 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172xorg_testset_save_CFLAGS="$CFLAGS" 5173 5174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180else 5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5182/* end confdefs.h. */ 5183int i; 5184_ACEOF 5185if ac_fn_c_try_compile "$LINENO"; then : 5186 xorg_cv_cc_flag_unknown_warning_option=yes 5187else 5188 xorg_cv_cc_flag_unknown_warning_option=no 5189fi 5190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5195 CFLAGS="$xorg_testset_save_CFLAGS" 5196fi 5197 5198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5201 fi 5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209/* end confdefs.h. */ 5210int i; 5211_ACEOF 5212if ac_fn_c_try_compile "$LINENO"; then : 5213 xorg_cv_cc_flag_unused_command_line_argument=yes 5214else 5215 xorg_cv_cc_flag_unused_command_line_argument=no 5216fi 5217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5218fi 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5222 CFLAGS="$xorg_testset_save_CFLAGS" 5223fi 5224 5225found="no" 5226 5227 if test $found = "no" ; then 5228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5230 fi 5231 5232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5234 fi 5235 5236 CFLAGS="$CFLAGS -Wmissing-declarations" 5237 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5239$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5240 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5241 if eval \${$cacheid+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243else 5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5245/* end confdefs.h. */ 5246int i; 5247int 5248main () 5249{ 5250 5251 ; 5252 return 0; 5253} 5254_ACEOF 5255if ac_fn_c_try_link "$LINENO"; then : 5256 eval $cacheid=yes 5257else 5258 eval $cacheid=no 5259fi 5260rm -f core conftest.err conftest.$ac_objext \ 5261 conftest$ac_exeext conftest.$ac_ext 5262fi 5263 5264 5265 CFLAGS="$xorg_testset_save_CFLAGS" 5266 5267 eval supported=\$$cacheid 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5269$as_echo "$supported" >&6; } 5270 if test "$supported" = "yes" ; then 5271 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5272 found="yes" 5273 fi 5274 fi 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290xorg_testset_save_CFLAGS="$CFLAGS" 5291 5292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298else 5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5300/* end confdefs.h. */ 5301int i; 5302_ACEOF 5303if ac_fn_c_try_compile "$LINENO"; then : 5304 xorg_cv_cc_flag_unknown_warning_option=yes 5305else 5306 xorg_cv_cc_flag_unknown_warning_option=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5309fi 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314fi 5315 5316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5319 fi 5320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5327/* end confdefs.h. */ 5328int i; 5329_ACEOF 5330if ac_fn_c_try_compile "$LINENO"; then : 5331 xorg_cv_cc_flag_unused_command_line_argument=yes 5332else 5333 xorg_cv_cc_flag_unused_command_line_argument=no 5334fi 5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5336fi 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5340 CFLAGS="$xorg_testset_save_CFLAGS" 5341fi 5342 5343found="no" 5344 5345 if test $found = "no" ; then 5346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5348 fi 5349 5350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5352 fi 5353 5354 CFLAGS="$CFLAGS -Wformat=2" 5355 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5357$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5358 cacheid=xorg_cv_cc_flag__Wformat_2 5359 if eval \${$cacheid+:} false; then : 5360 $as_echo_n "(cached) " >&6 5361else 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5363/* end confdefs.h. */ 5364int i; 5365int 5366main () 5367{ 5368 5369 ; 5370 return 0; 5371} 5372_ACEOF 5373if ac_fn_c_try_link "$LINENO"; then : 5374 eval $cacheid=yes 5375else 5376 eval $cacheid=no 5377fi 5378rm -f core conftest.err conftest.$ac_objext \ 5379 conftest$ac_exeext conftest.$ac_ext 5380fi 5381 5382 5383 CFLAGS="$xorg_testset_save_CFLAGS" 5384 5385 eval supported=\$$cacheid 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5387$as_echo "$supported" >&6; } 5388 if test "$supported" = "yes" ; then 5389 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5390 found="yes" 5391 fi 5392 fi 5393 5394 if test $found = "no" ; then 5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5397 fi 5398 5399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401 fi 5402 5403 CFLAGS="$CFLAGS -Wformat" 5404 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5406$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5407 cacheid=xorg_cv_cc_flag__Wformat 5408 if eval \${$cacheid+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413int i; 5414int 5415main () 5416{ 5417 5418 ; 5419 return 0; 5420} 5421_ACEOF 5422if ac_fn_c_try_link "$LINENO"; then : 5423 eval $cacheid=yes 5424else 5425 eval $cacheid=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext \ 5428 conftest$ac_exeext conftest.$ac_ext 5429fi 5430 5431 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433 5434 eval supported=\$$cacheid 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5436$as_echo "$supported" >&6; } 5437 if test "$supported" = "yes" ; then 5438 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5439 found="yes" 5440 fi 5441 fi 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459xorg_testset_save_CFLAGS="$CFLAGS" 5460 5461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5464$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5465if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5466 $as_echo_n "(cached) " >&6 5467else 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5469/* end confdefs.h. */ 5470int i; 5471_ACEOF 5472if ac_fn_c_try_compile "$LINENO"; then : 5473 xorg_cv_cc_flag_unknown_warning_option=yes 5474else 5475 xorg_cv_cc_flag_unknown_warning_option=no 5476fi 5477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5478fi 5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5480$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5482 CFLAGS="$xorg_testset_save_CFLAGS" 5483fi 5484 5485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5488 fi 5489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5491$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5492if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5493 $as_echo_n "(cached) " >&6 5494else 5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5496/* end confdefs.h. */ 5497int i; 5498_ACEOF 5499if ac_fn_c_try_compile "$LINENO"; then : 5500 xorg_cv_cc_flag_unused_command_line_argument=yes 5501else 5502 xorg_cv_cc_flag_unused_command_line_argument=no 5503fi 5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5505fi 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5507$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5509 CFLAGS="$xorg_testset_save_CFLAGS" 5510fi 5511 5512found="no" 5513 5514 if test $found = "no" ; then 5515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5517 fi 5518 5519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5521 fi 5522 5523 CFLAGS="$CFLAGS -Wstrict-prototypes" 5524 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5526$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5527 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5528 if eval \${$cacheid+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5532/* end confdefs.h. */ 5533int i; 5534int 5535main () 5536{ 5537 5538 ; 5539 return 0; 5540} 5541_ACEOF 5542if ac_fn_c_try_link "$LINENO"; then : 5543 eval $cacheid=yes 5544else 5545 eval $cacheid=no 5546fi 5547rm -f core conftest.err conftest.$ac_objext \ 5548 conftest$ac_exeext conftest.$ac_ext 5549fi 5550 5551 5552 CFLAGS="$xorg_testset_save_CFLAGS" 5553 5554 eval supported=\$$cacheid 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5556$as_echo "$supported" >&6; } 5557 if test "$supported" = "yes" ; then 5558 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5559 found="yes" 5560 fi 5561 fi 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577xorg_testset_save_CFLAGS="$CFLAGS" 5578 5579if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5582$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5583if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5584 $as_echo_n "(cached) " >&6 5585else 5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5587/* end confdefs.h. */ 5588int i; 5589_ACEOF 5590if ac_fn_c_try_compile "$LINENO"; then : 5591 xorg_cv_cc_flag_unknown_warning_option=yes 5592else 5593 xorg_cv_cc_flag_unknown_warning_option=no 5594fi 5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5596fi 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5598$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5600 CFLAGS="$xorg_testset_save_CFLAGS" 5601fi 5602 5603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5606 fi 5607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5609$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5610if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612else 5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5614/* end confdefs.h. */ 5615int i; 5616_ACEOF 5617if ac_fn_c_try_compile "$LINENO"; then : 5618 xorg_cv_cc_flag_unused_command_line_argument=yes 5619else 5620 xorg_cv_cc_flag_unused_command_line_argument=no 5621fi 5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5623fi 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5625$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5626 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5627 CFLAGS="$xorg_testset_save_CFLAGS" 5628fi 5629 5630found="no" 5631 5632 if test $found = "no" ; then 5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5635 fi 5636 5637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5639 fi 5640 5641 CFLAGS="$CFLAGS -Wmissing-prototypes" 5642 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5644$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5645 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5646 if eval \${$cacheid+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648else 5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650/* end confdefs.h. */ 5651int i; 5652int 5653main () 5654{ 5655 5656 ; 5657 return 0; 5658} 5659_ACEOF 5660if ac_fn_c_try_link "$LINENO"; then : 5661 eval $cacheid=yes 5662else 5663 eval $cacheid=no 5664fi 5665rm -f core conftest.err conftest.$ac_objext \ 5666 conftest$ac_exeext conftest.$ac_ext 5667fi 5668 5669 5670 CFLAGS="$xorg_testset_save_CFLAGS" 5671 5672 eval supported=\$$cacheid 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5674$as_echo "$supported" >&6; } 5675 if test "$supported" = "yes" ; then 5676 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5677 found="yes" 5678 fi 5679 fi 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695xorg_testset_save_CFLAGS="$CFLAGS" 5696 5697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5700$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5701if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5702 $as_echo_n "(cached) " >&6 5703else 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705/* end confdefs.h. */ 5706int i; 5707_ACEOF 5708if ac_fn_c_try_compile "$LINENO"; then : 5709 xorg_cv_cc_flag_unknown_warning_option=yes 5710else 5711 xorg_cv_cc_flag_unknown_warning_option=no 5712fi 5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5714fi 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5716$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5718 CFLAGS="$xorg_testset_save_CFLAGS" 5719fi 5720 5721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5724 fi 5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5727$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5728if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730else 5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5732/* end confdefs.h. */ 5733int i; 5734_ACEOF 5735if ac_fn_c_try_compile "$LINENO"; then : 5736 xorg_cv_cc_flag_unused_command_line_argument=yes 5737else 5738 xorg_cv_cc_flag_unused_command_line_argument=no 5739fi 5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5741fi 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5743$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5745 CFLAGS="$xorg_testset_save_CFLAGS" 5746fi 5747 5748found="no" 5749 5750 if test $found = "no" ; then 5751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5753 fi 5754 5755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5757 fi 5758 5759 CFLAGS="$CFLAGS -Wnested-externs" 5760 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5762$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5763 cacheid=xorg_cv_cc_flag__Wnested_externs 5764 if eval \${$cacheid+:} false; then : 5765 $as_echo_n "(cached) " >&6 5766else 5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5768/* end confdefs.h. */ 5769int i; 5770int 5771main () 5772{ 5773 5774 ; 5775 return 0; 5776} 5777_ACEOF 5778if ac_fn_c_try_link "$LINENO"; then : 5779 eval $cacheid=yes 5780else 5781 eval $cacheid=no 5782fi 5783rm -f core conftest.err conftest.$ac_objext \ 5784 conftest$ac_exeext conftest.$ac_ext 5785fi 5786 5787 5788 CFLAGS="$xorg_testset_save_CFLAGS" 5789 5790 eval supported=\$$cacheid 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5792$as_echo "$supported" >&6; } 5793 if test "$supported" = "yes" ; then 5794 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5795 found="yes" 5796 fi 5797 fi 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813xorg_testset_save_CFLAGS="$CFLAGS" 5814 5815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5818$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5819if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5820 $as_echo_n "(cached) " >&6 5821else 5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5823/* end confdefs.h. */ 5824int i; 5825_ACEOF 5826if ac_fn_c_try_compile "$LINENO"; then : 5827 xorg_cv_cc_flag_unknown_warning_option=yes 5828else 5829 xorg_cv_cc_flag_unknown_warning_option=no 5830fi 5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5832fi 5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5834$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5836 CFLAGS="$xorg_testset_save_CFLAGS" 5837fi 5838 5839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5842 fi 5843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5845$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5846if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5847 $as_echo_n "(cached) " >&6 5848else 5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5850/* end confdefs.h. */ 5851int i; 5852_ACEOF 5853if ac_fn_c_try_compile "$LINENO"; then : 5854 xorg_cv_cc_flag_unused_command_line_argument=yes 5855else 5856 xorg_cv_cc_flag_unused_command_line_argument=no 5857fi 5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5859fi 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5861$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5863 CFLAGS="$xorg_testset_save_CFLAGS" 5864fi 5865 5866found="no" 5867 5868 if test $found = "no" ; then 5869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5871 fi 5872 5873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5875 fi 5876 5877 CFLAGS="$CFLAGS -Wbad-function-cast" 5878 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5880$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5881 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5882 if eval \${$cacheid+:} false; then : 5883 $as_echo_n "(cached) " >&6 5884else 5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5886/* end confdefs.h. */ 5887int i; 5888int 5889main () 5890{ 5891 5892 ; 5893 return 0; 5894} 5895_ACEOF 5896if ac_fn_c_try_link "$LINENO"; then : 5897 eval $cacheid=yes 5898else 5899 eval $cacheid=no 5900fi 5901rm -f core conftest.err conftest.$ac_objext \ 5902 conftest$ac_exeext conftest.$ac_ext 5903fi 5904 5905 5906 CFLAGS="$xorg_testset_save_CFLAGS" 5907 5908 eval supported=\$$cacheid 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5910$as_echo "$supported" >&6; } 5911 if test "$supported" = "yes" ; then 5912 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5913 found="yes" 5914 fi 5915 fi 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931xorg_testset_save_CFLAGS="$CFLAGS" 5932 5933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5938 $as_echo_n "(cached) " >&6 5939else 5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5941/* end confdefs.h. */ 5942int i; 5943_ACEOF 5944if ac_fn_c_try_compile "$LINENO"; then : 5945 xorg_cv_cc_flag_unknown_warning_option=yes 5946else 5947 xorg_cv_cc_flag_unknown_warning_option=no 5948fi 5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5950fi 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5954 CFLAGS="$xorg_testset_save_CFLAGS" 5955fi 5956 5957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5960 fi 5961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5968/* end confdefs.h. */ 5969int i; 5970_ACEOF 5971if ac_fn_c_try_compile "$LINENO"; then : 5972 xorg_cv_cc_flag_unused_command_line_argument=yes 5973else 5974 xorg_cv_cc_flag_unused_command_line_argument=no 5975fi 5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5977fi 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5981 CFLAGS="$xorg_testset_save_CFLAGS" 5982fi 5983 5984found="no" 5985 5986 if test $found = "no" ; then 5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5989 fi 5990 5991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5993 fi 5994 5995 CFLAGS="$CFLAGS -Wold-style-definition" 5996 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5998$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5999 cacheid=xorg_cv_cc_flag__Wold_style_definition 6000 if eval \${$cacheid+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004/* end confdefs.h. */ 6005int i; 6006int 6007main () 6008{ 6009 6010 ; 6011 return 0; 6012} 6013_ACEOF 6014if ac_fn_c_try_link "$LINENO"; then : 6015 eval $cacheid=yes 6016else 6017 eval $cacheid=no 6018fi 6019rm -f core conftest.err conftest.$ac_objext \ 6020 conftest$ac_exeext conftest.$ac_ext 6021fi 6022 6023 6024 CFLAGS="$xorg_testset_save_CFLAGS" 6025 6026 eval supported=\$$cacheid 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6028$as_echo "$supported" >&6; } 6029 if test "$supported" = "yes" ; then 6030 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6031 found="yes" 6032 fi 6033 fi 6034 6035 if test $found = "no" ; then 6036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6038 fi 6039 6040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6042 fi 6043 6044 CFLAGS="$CFLAGS -fd" 6045 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6047$as_echo_n "checking if $CC supports -fd... " >&6; } 6048 cacheid=xorg_cv_cc_flag__fd 6049 if eval \${$cacheid+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053/* end confdefs.h. */ 6054int i; 6055int 6056main () 6057{ 6058 6059 ; 6060 return 0; 6061} 6062_ACEOF 6063if ac_fn_c_try_link "$LINENO"; then : 6064 eval $cacheid=yes 6065else 6066 eval $cacheid=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext \ 6069 conftest$ac_exeext conftest.$ac_ext 6070fi 6071 6072 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074 6075 eval supported=\$$cacheid 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6077$as_echo "$supported" >&6; } 6078 if test "$supported" = "yes" ; then 6079 BASE_CFLAGS="$BASE_CFLAGS -fd" 6080 found="yes" 6081 fi 6082 fi 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098xorg_testset_save_CFLAGS="$CFLAGS" 6099 6100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109int i; 6110_ACEOF 6111if ac_fn_c_try_compile "$LINENO"; then : 6112 xorg_cv_cc_flag_unknown_warning_option=yes 6113else 6114 xorg_cv_cc_flag_unknown_warning_option=no 6115fi 6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6117fi 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6121 CFLAGS="$xorg_testset_save_CFLAGS" 6122fi 6123 6124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6127 fi 6128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135/* end confdefs.h. */ 6136int i; 6137_ACEOF 6138if ac_fn_c_try_compile "$LINENO"; then : 6139 xorg_cv_cc_flag_unused_command_line_argument=yes 6140else 6141 xorg_cv_cc_flag_unused_command_line_argument=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6144fi 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149fi 6150 6151found="no" 6152 6153 if test $found = "no" ; then 6154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6156 fi 6157 6158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6160 fi 6161 6162 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6163 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6165$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6166 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6167 if eval \${$cacheid+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171/* end confdefs.h. */ 6172int i; 6173int 6174main () 6175{ 6176 6177 ; 6178 return 0; 6179} 6180_ACEOF 6181if ac_fn_c_try_link "$LINENO"; then : 6182 eval $cacheid=yes 6183else 6184 eval $cacheid=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext \ 6187 conftest$ac_exeext conftest.$ac_ext 6188fi 6189 6190 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192 6193 eval supported=\$$cacheid 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6195$as_echo "$supported" >&6; } 6196 if test "$supported" = "yes" ; then 6197 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6198 found="yes" 6199 fi 6200 fi 6201 6202 6203 6204 6205 6206# This chunk adds additional warnings that could catch undesired effects. 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220xorg_testset_save_CFLAGS="$CFLAGS" 6221 6222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6225$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6226if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6227 $as_echo_n "(cached) " >&6 6228else 6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6230/* end confdefs.h. */ 6231int i; 6232_ACEOF 6233if ac_fn_c_try_compile "$LINENO"; then : 6234 xorg_cv_cc_flag_unknown_warning_option=yes 6235else 6236 xorg_cv_cc_flag_unknown_warning_option=no 6237fi 6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6239fi 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6241$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6243 CFLAGS="$xorg_testset_save_CFLAGS" 6244fi 6245 6246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6249 fi 6250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6252$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6253if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255else 6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6257/* end confdefs.h. */ 6258int i; 6259_ACEOF 6260if ac_fn_c_try_compile "$LINENO"; then : 6261 xorg_cv_cc_flag_unused_command_line_argument=yes 6262else 6263 xorg_cv_cc_flag_unused_command_line_argument=no 6264fi 6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6266fi 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6268$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6270 CFLAGS="$xorg_testset_save_CFLAGS" 6271fi 6272 6273found="no" 6274 6275 if test $found = "no" ; then 6276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6278 fi 6279 6280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6282 fi 6283 6284 CFLAGS="$CFLAGS -Wunused" 6285 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6287$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6288 cacheid=xorg_cv_cc_flag__Wunused 6289 if eval \${$cacheid+:} false; then : 6290 $as_echo_n "(cached) " >&6 6291else 6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6293/* end confdefs.h. */ 6294int i; 6295int 6296main () 6297{ 6298 6299 ; 6300 return 0; 6301} 6302_ACEOF 6303if ac_fn_c_try_link "$LINENO"; then : 6304 eval $cacheid=yes 6305else 6306 eval $cacheid=no 6307fi 6308rm -f core conftest.err conftest.$ac_objext \ 6309 conftest$ac_exeext conftest.$ac_ext 6310fi 6311 6312 6313 CFLAGS="$xorg_testset_save_CFLAGS" 6314 6315 eval supported=\$$cacheid 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6317$as_echo "$supported" >&6; } 6318 if test "$supported" = "yes" ; then 6319 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6320 found="yes" 6321 fi 6322 fi 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338xorg_testset_save_CFLAGS="$CFLAGS" 6339 6340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349int i; 6350_ACEOF 6351if ac_fn_c_try_compile "$LINENO"; then : 6352 xorg_cv_cc_flag_unknown_warning_option=yes 6353else 6354 xorg_cv_cc_flag_unknown_warning_option=no 6355fi 6356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6361 CFLAGS="$xorg_testset_save_CFLAGS" 6362fi 6363 6364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 fi 6368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6372 $as_echo_n "(cached) " >&6 6373else 6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6375/* end confdefs.h. */ 6376int i; 6377_ACEOF 6378if ac_fn_c_try_compile "$LINENO"; then : 6379 xorg_cv_cc_flag_unused_command_line_argument=yes 6380else 6381 xorg_cv_cc_flag_unused_command_line_argument=no 6382fi 6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6384fi 6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6388 CFLAGS="$xorg_testset_save_CFLAGS" 6389fi 6390 6391found="no" 6392 6393 if test $found = "no" ; then 6394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6396 fi 6397 6398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6400 fi 6401 6402 CFLAGS="$CFLAGS -Wuninitialized" 6403 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6405$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6406 cacheid=xorg_cv_cc_flag__Wuninitialized 6407 if eval \${$cacheid+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411/* end confdefs.h. */ 6412int i; 6413int 6414main () 6415{ 6416 6417 ; 6418 return 0; 6419} 6420_ACEOF 6421if ac_fn_c_try_link "$LINENO"; then : 6422 eval $cacheid=yes 6423else 6424 eval $cacheid=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext \ 6427 conftest$ac_exeext conftest.$ac_ext 6428fi 6429 6430 6431 CFLAGS="$xorg_testset_save_CFLAGS" 6432 6433 eval supported=\$$cacheid 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6435$as_echo "$supported" >&6; } 6436 if test "$supported" = "yes" ; then 6437 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6438 found="yes" 6439 fi 6440 fi 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456xorg_testset_save_CFLAGS="$CFLAGS" 6457 6458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6466/* end confdefs.h. */ 6467int i; 6468_ACEOF 6469if ac_fn_c_try_compile "$LINENO"; then : 6470 xorg_cv_cc_flag_unknown_warning_option=yes 6471else 6472 xorg_cv_cc_flag_unknown_warning_option=no 6473fi 6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6475fi 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6479 CFLAGS="$xorg_testset_save_CFLAGS" 6480fi 6481 6482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 fi 6486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6490 $as_echo_n "(cached) " >&6 6491else 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493/* end confdefs.h. */ 6494int i; 6495_ACEOF 6496if ac_fn_c_try_compile "$LINENO"; then : 6497 xorg_cv_cc_flag_unused_command_line_argument=yes 6498else 6499 xorg_cv_cc_flag_unused_command_line_argument=no 6500fi 6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6502fi 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6506 CFLAGS="$xorg_testset_save_CFLAGS" 6507fi 6508 6509found="no" 6510 6511 if test $found = "no" ; then 6512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 fi 6515 6516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6518 fi 6519 6520 CFLAGS="$CFLAGS -Wshadow" 6521 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6523$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6524 cacheid=xorg_cv_cc_flag__Wshadow 6525 if eval \${$cacheid+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530int i; 6531int 6532main () 6533{ 6534 6535 ; 6536 return 0; 6537} 6538_ACEOF 6539if ac_fn_c_try_link "$LINENO"; then : 6540 eval $cacheid=yes 6541else 6542 eval $cacheid=no 6543fi 6544rm -f core conftest.err conftest.$ac_objext \ 6545 conftest$ac_exeext conftest.$ac_ext 6546fi 6547 6548 6549 CFLAGS="$xorg_testset_save_CFLAGS" 6550 6551 eval supported=\$$cacheid 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6553$as_echo "$supported" >&6; } 6554 if test "$supported" = "yes" ; then 6555 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6556 found="yes" 6557 fi 6558 fi 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574xorg_testset_save_CFLAGS="$CFLAGS" 6575 6576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586_ACEOF 6587if ac_fn_c_try_compile "$LINENO"; then : 6588 xorg_cv_cc_flag_unknown_warning_option=yes 6589else 6590 xorg_cv_cc_flag_unknown_warning_option=no 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6593fi 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6597 CFLAGS="$xorg_testset_save_CFLAGS" 6598fi 6599 6600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 fi 6604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611/* end confdefs.h. */ 6612int i; 6613_ACEOF 6614if ac_fn_c_try_compile "$LINENO"; then : 6615 xorg_cv_cc_flag_unused_command_line_argument=yes 6616else 6617 xorg_cv_cc_flag_unused_command_line_argument=no 6618fi 6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6620fi 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6624 CFLAGS="$xorg_testset_save_CFLAGS" 6625fi 6626 6627found="no" 6628 6629 if test $found = "no" ; then 6630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 fi 6633 6634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6636 fi 6637 6638 CFLAGS="$CFLAGS -Wmissing-noreturn" 6639 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6641$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6642 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6643 if eval \${$cacheid+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648int i; 6649int 6650main () 6651{ 6652 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657if ac_fn_c_try_link "$LINENO"; then : 6658 eval $cacheid=yes 6659else 6660 eval $cacheid=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext \ 6663 conftest$ac_exeext conftest.$ac_ext 6664fi 6665 6666 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668 6669 eval supported=\$$cacheid 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6671$as_echo "$supported" >&6; } 6672 if test "$supported" = "yes" ; then 6673 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6674 found="yes" 6675 fi 6676 fi 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692xorg_testset_save_CFLAGS="$CFLAGS" 6693 6694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702/* end confdefs.h. */ 6703int i; 6704_ACEOF 6705if ac_fn_c_try_compile "$LINENO"; then : 6706 xorg_cv_cc_flag_unknown_warning_option=yes 6707else 6708 xorg_cv_cc_flag_unknown_warning_option=no 6709fi 6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6711fi 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6715 CFLAGS="$xorg_testset_save_CFLAGS" 6716fi 6717 6718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6721 fi 6722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6726 $as_echo_n "(cached) " >&6 6727else 6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6729/* end confdefs.h. */ 6730int i; 6731_ACEOF 6732if ac_fn_c_try_compile "$LINENO"; then : 6733 xorg_cv_cc_flag_unused_command_line_argument=yes 6734else 6735 xorg_cv_cc_flag_unused_command_line_argument=no 6736fi 6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6738fi 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6742 CFLAGS="$xorg_testset_save_CFLAGS" 6743fi 6744 6745found="no" 6746 6747 if test $found = "no" ; then 6748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6750 fi 6751 6752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6754 fi 6755 6756 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6757 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6759$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6760 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6761 if eval \${$cacheid+:} false; then : 6762 $as_echo_n "(cached) " >&6 6763else 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766int i; 6767int 6768main () 6769{ 6770 6771 ; 6772 return 0; 6773} 6774_ACEOF 6775if ac_fn_c_try_link "$LINENO"; then : 6776 eval $cacheid=yes 6777else 6778 eval $cacheid=no 6779fi 6780rm -f core conftest.err conftest.$ac_objext \ 6781 conftest$ac_exeext conftest.$ac_ext 6782fi 6783 6784 6785 CFLAGS="$xorg_testset_save_CFLAGS" 6786 6787 eval supported=\$$cacheid 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6789$as_echo "$supported" >&6; } 6790 if test "$supported" = "yes" ; then 6791 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6792 found="yes" 6793 fi 6794 fi 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810xorg_testset_save_CFLAGS="$CFLAGS" 6811 6812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818else 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820/* end confdefs.h. */ 6821int i; 6822_ACEOF 6823if ac_fn_c_try_compile "$LINENO"; then : 6824 xorg_cv_cc_flag_unknown_warning_option=yes 6825else 6826 xorg_cv_cc_flag_unknown_warning_option=no 6827fi 6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6829fi 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6833 CFLAGS="$xorg_testset_save_CFLAGS" 6834fi 6835 6836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6839 fi 6840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848int i; 6849_ACEOF 6850if ac_fn_c_try_compile "$LINENO"; then : 6851 xorg_cv_cc_flag_unused_command_line_argument=yes 6852else 6853 xorg_cv_cc_flag_unused_command_line_argument=no 6854fi 6855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6856fi 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6860 CFLAGS="$xorg_testset_save_CFLAGS" 6861fi 6862 6863found="no" 6864 6865 if test $found = "no" ; then 6866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6868 fi 6869 6870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6872 fi 6873 6874 CFLAGS="$CFLAGS -Wredundant-decls" 6875 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6877$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6878 cacheid=xorg_cv_cc_flag__Wredundant_decls 6879 if eval \${$cacheid+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884int i; 6885int 6886main () 6887{ 6888 6889 ; 6890 return 0; 6891} 6892_ACEOF 6893if ac_fn_c_try_link "$LINENO"; then : 6894 eval $cacheid=yes 6895else 6896 eval $cacheid=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext \ 6899 conftest$ac_exeext conftest.$ac_ext 6900fi 6901 6902 6903 CFLAGS="$xorg_testset_save_CFLAGS" 6904 6905 eval supported=\$$cacheid 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6907$as_echo "$supported" >&6; } 6908 if test "$supported" = "yes" ; then 6909 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6910 found="yes" 6911 fi 6912 fi 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928xorg_testset_save_CFLAGS="$CFLAGS" 6929 6930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939int i; 6940_ACEOF 6941if ac_fn_c_try_compile "$LINENO"; then : 6942 xorg_cv_cc_flag_unknown_warning_option=yes 6943else 6944 xorg_cv_cc_flag_unknown_warning_option=no 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6947fi 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6951 CFLAGS="$xorg_testset_save_CFLAGS" 6952fi 6953 6954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6957 fi 6958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966int i; 6967_ACEOF 6968if ac_fn_c_try_compile "$LINENO"; then : 6969 xorg_cv_cc_flag_unused_command_line_argument=yes 6970else 6971 xorg_cv_cc_flag_unused_command_line_argument=no 6972fi 6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6974fi 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6978 CFLAGS="$xorg_testset_save_CFLAGS" 6979fi 6980 6981found="no" 6982 6983 if test $found = "no" ; then 6984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6986 fi 6987 6988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6990 fi 6991 6992 CFLAGS="$CFLAGS -Wlogical-op" 6993 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6995$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6996 cacheid=xorg_cv_cc_flag__Wlogical_op 6997 if eval \${$cacheid+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002int i; 7003int 7004main () 7005{ 7006 7007 ; 7008 return 0; 7009} 7010_ACEOF 7011if ac_fn_c_try_link "$LINENO"; then : 7012 eval $cacheid=yes 7013else 7014 eval $cacheid=no 7015fi 7016rm -f core conftest.err conftest.$ac_objext \ 7017 conftest$ac_exeext conftest.$ac_ext 7018fi 7019 7020 7021 CFLAGS="$xorg_testset_save_CFLAGS" 7022 7023 eval supported=\$$cacheid 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7025$as_echo "$supported" >&6; } 7026 if test "$supported" = "yes" ; then 7027 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7028 found="yes" 7029 fi 7030 fi 7031 7032 7033 7034# These are currently disabled because they are noisy. They will be enabled 7035# in the future once the codebase is sufficiently modernized to silence 7036# them. For now, I don't want them to drown out the other warnings. 7037# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7038# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7039# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7040 7041# Turn some warnings into errors, so we don't accidently get successful builds 7042# when there are problems that should be fixed. 7043 7044if test "x$SELECTIVE_WERROR" = "xyes" ; then 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 -Werror=implicit" 7123 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7125$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7126 cacheid=xorg_cv_cc_flag__Werror_implicit 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 -Werror=implicit" 7158 found="yes" 7159 fi 7160 fi 7161 7162 if test $found = "no" ; then 7163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7165 fi 7166 7167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7169 fi 7170 7171 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7172 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7174$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7175 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7176 if eval \${$cacheid+:} false; then : 7177 $as_echo_n "(cached) " >&6 7178else 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180/* end confdefs.h. */ 7181int i; 7182int 7183main () 7184{ 7185 7186 ; 7187 return 0; 7188} 7189_ACEOF 7190if ac_fn_c_try_link "$LINENO"; then : 7191 eval $cacheid=yes 7192else 7193 eval $cacheid=no 7194fi 7195rm -f core conftest.err conftest.$ac_objext \ 7196 conftest$ac_exeext conftest.$ac_ext 7197fi 7198 7199 7200 CFLAGS="$xorg_testset_save_CFLAGS" 7201 7202 eval supported=\$$cacheid 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7204$as_echo "$supported" >&6; } 7205 if test "$supported" = "yes" ; then 7206 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7207 found="yes" 7208 fi 7209 fi 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225xorg_testset_save_CFLAGS="$CFLAGS" 7226 7227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7232 $as_echo_n "(cached) " >&6 7233else 7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235/* end confdefs.h. */ 7236int i; 7237_ACEOF 7238if ac_fn_c_try_compile "$LINENO"; then : 7239 xorg_cv_cc_flag_unknown_warning_option=yes 7240else 7241 xorg_cv_cc_flag_unknown_warning_option=no 7242fi 7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7244fi 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7248 CFLAGS="$xorg_testset_save_CFLAGS" 7249fi 7250 7251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7254 fi 7255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7259 $as_echo_n "(cached) " >&6 7260else 7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7262/* end confdefs.h. */ 7263int i; 7264_ACEOF 7265if ac_fn_c_try_compile "$LINENO"; then : 7266 xorg_cv_cc_flag_unused_command_line_argument=yes 7267else 7268 xorg_cv_cc_flag_unused_command_line_argument=no 7269fi 7270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7271fi 7272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7275 CFLAGS="$xorg_testset_save_CFLAGS" 7276fi 7277 7278found="no" 7279 7280 if test $found = "no" ; then 7281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7283 fi 7284 7285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7287 fi 7288 7289 CFLAGS="$CFLAGS -Werror=nonnull" 7290 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7292$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7293 cacheid=xorg_cv_cc_flag__Werror_nonnull 7294 if eval \${$cacheid+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298/* end confdefs.h. */ 7299int i; 7300int 7301main () 7302{ 7303 7304 ; 7305 return 0; 7306} 7307_ACEOF 7308if ac_fn_c_try_link "$LINENO"; then : 7309 eval $cacheid=yes 7310else 7311 eval $cacheid=no 7312fi 7313rm -f core conftest.err conftest.$ac_objext \ 7314 conftest$ac_exeext conftest.$ac_ext 7315fi 7316 7317 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319 7320 eval supported=\$$cacheid 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7322$as_echo "$supported" >&6; } 7323 if test "$supported" = "yes" ; then 7324 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7325 found="yes" 7326 fi 7327 fi 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343xorg_testset_save_CFLAGS="$CFLAGS" 7344 7345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353/* end confdefs.h. */ 7354int i; 7355_ACEOF 7356if ac_fn_c_try_compile "$LINENO"; then : 7357 xorg_cv_cc_flag_unknown_warning_option=yes 7358else 7359 xorg_cv_cc_flag_unknown_warning_option=no 7360fi 7361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7362fi 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7366 CFLAGS="$xorg_testset_save_CFLAGS" 7367fi 7368 7369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 fi 7373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378else 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381int i; 7382_ACEOF 7383if ac_fn_c_try_compile "$LINENO"; then : 7384 xorg_cv_cc_flag_unused_command_line_argument=yes 7385else 7386 xorg_cv_cc_flag_unused_command_line_argument=no 7387fi 7388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7389fi 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7393 CFLAGS="$xorg_testset_save_CFLAGS" 7394fi 7395 7396found="no" 7397 7398 if test $found = "no" ; then 7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7401 fi 7402 7403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7405 fi 7406 7407 CFLAGS="$CFLAGS -Werror=init-self" 7408 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7410$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7411 cacheid=xorg_cv_cc_flag__Werror_init_self 7412 if eval \${$cacheid+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416/* end confdefs.h. */ 7417int i; 7418int 7419main () 7420{ 7421 7422 ; 7423 return 0; 7424} 7425_ACEOF 7426if ac_fn_c_try_link "$LINENO"; then : 7427 eval $cacheid=yes 7428else 7429 eval $cacheid=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext \ 7432 conftest$ac_exeext conftest.$ac_ext 7433fi 7434 7435 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437 7438 eval supported=\$$cacheid 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7440$as_echo "$supported" >&6; } 7441 if test "$supported" = "yes" ; then 7442 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7443 found="yes" 7444 fi 7445 fi 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461xorg_testset_save_CFLAGS="$CFLAGS" 7462 7463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7468 $as_echo_n "(cached) " >&6 7469else 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472int i; 7473_ACEOF 7474if ac_fn_c_try_compile "$LINENO"; then : 7475 xorg_cv_cc_flag_unknown_warning_option=yes 7476else 7477 xorg_cv_cc_flag_unknown_warning_option=no 7478fi 7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7480fi 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7484 CFLAGS="$xorg_testset_save_CFLAGS" 7485fi 7486 7487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 fi 7491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496else 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7498/* end confdefs.h. */ 7499int i; 7500_ACEOF 7501if ac_fn_c_try_compile "$LINENO"; then : 7502 xorg_cv_cc_flag_unused_command_line_argument=yes 7503else 7504 xorg_cv_cc_flag_unused_command_line_argument=no 7505fi 7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7507fi 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7511 CFLAGS="$xorg_testset_save_CFLAGS" 7512fi 7513 7514found="no" 7515 7516 if test $found = "no" ; then 7517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7519 fi 7520 7521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 fi 7524 7525 CFLAGS="$CFLAGS -Werror=main" 7526 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7528$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7529 cacheid=xorg_cv_cc_flag__Werror_main 7530 if eval \${$cacheid+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535int i; 7536int 7537main () 7538{ 7539 7540 ; 7541 return 0; 7542} 7543_ACEOF 7544if ac_fn_c_try_link "$LINENO"; then : 7545 eval $cacheid=yes 7546else 7547 eval $cacheid=no 7548fi 7549rm -f core conftest.err conftest.$ac_objext \ 7550 conftest$ac_exeext conftest.$ac_ext 7551fi 7552 7553 7554 CFLAGS="$xorg_testset_save_CFLAGS" 7555 7556 eval supported=\$$cacheid 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7558$as_echo "$supported" >&6; } 7559 if test "$supported" = "yes" ; then 7560 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7561 found="yes" 7562 fi 7563 fi 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579xorg_testset_save_CFLAGS="$CFLAGS" 7580 7581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590int i; 7591_ACEOF 7592if ac_fn_c_try_compile "$LINENO"; then : 7593 xorg_cv_cc_flag_unknown_warning_option=yes 7594else 7595 xorg_cv_cc_flag_unknown_warning_option=no 7596fi 7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7598fi 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7602 CFLAGS="$xorg_testset_save_CFLAGS" 7603fi 7604 7605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7608 fi 7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7613 $as_echo_n "(cached) " >&6 7614else 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616/* end confdefs.h. */ 7617int i; 7618_ACEOF 7619if ac_fn_c_try_compile "$LINENO"; then : 7620 xorg_cv_cc_flag_unused_command_line_argument=yes 7621else 7622 xorg_cv_cc_flag_unused_command_line_argument=no 7623fi 7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7625fi 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7629 CFLAGS="$xorg_testset_save_CFLAGS" 7630fi 7631 7632found="no" 7633 7634 if test $found = "no" ; then 7635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7637 fi 7638 7639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7641 fi 7642 7643 CFLAGS="$CFLAGS -Werror=missing-braces" 7644 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7646$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7647 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7648 if eval \${$cacheid+:} false; then : 7649 $as_echo_n "(cached) " >&6 7650else 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652/* end confdefs.h. */ 7653int i; 7654int 7655main () 7656{ 7657 7658 ; 7659 return 0; 7660} 7661_ACEOF 7662if ac_fn_c_try_link "$LINENO"; then : 7663 eval $cacheid=yes 7664else 7665 eval $cacheid=no 7666fi 7667rm -f core conftest.err conftest.$ac_objext \ 7668 conftest$ac_exeext conftest.$ac_ext 7669fi 7670 7671 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673 7674 eval supported=\$$cacheid 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7676$as_echo "$supported" >&6; } 7677 if test "$supported" = "yes" ; then 7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7679 found="yes" 7680 fi 7681 fi 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697xorg_testset_save_CFLAGS="$CFLAGS" 7698 7699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707/* end confdefs.h. */ 7708int i; 7709_ACEOF 7710if ac_fn_c_try_compile "$LINENO"; then : 7711 xorg_cv_cc_flag_unknown_warning_option=yes 7712else 7713 xorg_cv_cc_flag_unknown_warning_option=no 7714fi 7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7716fi 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7720 CFLAGS="$xorg_testset_save_CFLAGS" 7721fi 7722 7723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 fi 7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735int i; 7736_ACEOF 7737if ac_fn_c_try_compile "$LINENO"; then : 7738 xorg_cv_cc_flag_unused_command_line_argument=yes 7739else 7740 xorg_cv_cc_flag_unused_command_line_argument=no 7741fi 7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7743fi 7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748fi 7749 7750found="no" 7751 7752 if test $found = "no" ; then 7753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7755 fi 7756 7757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7759 fi 7760 7761 CFLAGS="$CFLAGS -Werror=sequence-point" 7762 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7764$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7765 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7766 if eval \${$cacheid+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770/* end confdefs.h. */ 7771int i; 7772int 7773main () 7774{ 7775 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780if ac_fn_c_try_link "$LINENO"; then : 7781 eval $cacheid=yes 7782else 7783 eval $cacheid=no 7784fi 7785rm -f core conftest.err conftest.$ac_objext \ 7786 conftest$ac_exeext conftest.$ac_ext 7787fi 7788 7789 7790 CFLAGS="$xorg_testset_save_CFLAGS" 7791 7792 eval supported=\$$cacheid 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7794$as_echo "$supported" >&6; } 7795 if test "$supported" = "yes" ; then 7796 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7797 found="yes" 7798 fi 7799 fi 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815xorg_testset_save_CFLAGS="$CFLAGS" 7816 7817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7825/* end confdefs.h. */ 7826int i; 7827_ACEOF 7828if ac_fn_c_try_compile "$LINENO"; then : 7829 xorg_cv_cc_flag_unknown_warning_option=yes 7830else 7831 xorg_cv_cc_flag_unknown_warning_option=no 7832fi 7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7834fi 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7838 CFLAGS="$xorg_testset_save_CFLAGS" 7839fi 7840 7841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7844 fi 7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850else 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853int i; 7854_ACEOF 7855if ac_fn_c_try_compile "$LINENO"; then : 7856 xorg_cv_cc_flag_unused_command_line_argument=yes 7857else 7858 xorg_cv_cc_flag_unused_command_line_argument=no 7859fi 7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7861fi 7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7865 CFLAGS="$xorg_testset_save_CFLAGS" 7866fi 7867 7868found="no" 7869 7870 if test $found = "no" ; then 7871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 fi 7874 7875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7877 fi 7878 7879 CFLAGS="$CFLAGS -Werror=return-type" 7880 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7882$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7883 cacheid=xorg_cv_cc_flag__Werror_return_type 7884 if eval \${$cacheid+:} false; then : 7885 $as_echo_n "(cached) " >&6 7886else 7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888/* end confdefs.h. */ 7889int i; 7890int 7891main () 7892{ 7893 7894 ; 7895 return 0; 7896} 7897_ACEOF 7898if ac_fn_c_try_link "$LINENO"; then : 7899 eval $cacheid=yes 7900else 7901 eval $cacheid=no 7902fi 7903rm -f core conftest.err conftest.$ac_objext \ 7904 conftest$ac_exeext conftest.$ac_ext 7905fi 7906 7907 7908 CFLAGS="$xorg_testset_save_CFLAGS" 7909 7910 eval supported=\$$cacheid 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7912$as_echo "$supported" >&6; } 7913 if test "$supported" = "yes" ; then 7914 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7915 found="yes" 7916 fi 7917 fi 7918 7919 if test $found = "no" ; then 7920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7922 fi 7923 7924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7926 fi 7927 7928 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7929 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7931$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7932 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7933 if eval \${$cacheid+:} false; then : 7934 $as_echo_n "(cached) " >&6 7935else 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938int i; 7939int 7940main () 7941{ 7942 7943 ; 7944 return 0; 7945} 7946_ACEOF 7947if ac_fn_c_try_link "$LINENO"; then : 7948 eval $cacheid=yes 7949else 7950 eval $cacheid=no 7951fi 7952rm -f core conftest.err conftest.$ac_objext \ 7953 conftest$ac_exeext conftest.$ac_ext 7954fi 7955 7956 7957 CFLAGS="$xorg_testset_save_CFLAGS" 7958 7959 eval supported=\$$cacheid 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7961$as_echo "$supported" >&6; } 7962 if test "$supported" = "yes" ; then 7963 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7964 found="yes" 7965 fi 7966 fi 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982xorg_testset_save_CFLAGS="$CFLAGS" 7983 7984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7989 $as_echo_n "(cached) " >&6 7990else 7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7992/* end confdefs.h. */ 7993int i; 7994_ACEOF 7995if ac_fn_c_try_compile "$LINENO"; then : 7996 xorg_cv_cc_flag_unknown_warning_option=yes 7997else 7998 xorg_cv_cc_flag_unknown_warning_option=no 7999fi 8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8001fi 8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8005 CFLAGS="$xorg_testset_save_CFLAGS" 8006fi 8007 8008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8011 fi 8012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017else 8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019/* end confdefs.h. */ 8020int i; 8021_ACEOF 8022if ac_fn_c_try_compile "$LINENO"; then : 8023 xorg_cv_cc_flag_unused_command_line_argument=yes 8024else 8025 xorg_cv_cc_flag_unused_command_line_argument=no 8026fi 8027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8028fi 8029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8032 CFLAGS="$xorg_testset_save_CFLAGS" 8033fi 8034 8035found="no" 8036 8037 if test $found = "no" ; then 8038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8040 fi 8041 8042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8044 fi 8045 8046 CFLAGS="$CFLAGS -Werror=trigraphs" 8047 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8049$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8050 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8051 if eval \${$cacheid+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055/* end confdefs.h. */ 8056int i; 8057int 8058main () 8059{ 8060 8061 ; 8062 return 0; 8063} 8064_ACEOF 8065if ac_fn_c_try_link "$LINENO"; then : 8066 eval $cacheid=yes 8067else 8068 eval $cacheid=no 8069fi 8070rm -f core conftest.err conftest.$ac_objext \ 8071 conftest$ac_exeext conftest.$ac_ext 8072fi 8073 8074 8075 CFLAGS="$xorg_testset_save_CFLAGS" 8076 8077 eval supported=\$$cacheid 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8079$as_echo "$supported" >&6; } 8080 if test "$supported" = "yes" ; then 8081 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8082 found="yes" 8083 fi 8084 fi 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100xorg_testset_save_CFLAGS="$CFLAGS" 8101 8102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110/* end confdefs.h. */ 8111int i; 8112_ACEOF 8113if ac_fn_c_try_compile "$LINENO"; then : 8114 xorg_cv_cc_flag_unknown_warning_option=yes 8115else 8116 xorg_cv_cc_flag_unknown_warning_option=no 8117fi 8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8119fi 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8123 CFLAGS="$xorg_testset_save_CFLAGS" 8124fi 8125 8126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8129 fi 8130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8137/* end confdefs.h. */ 8138int i; 8139_ACEOF 8140if ac_fn_c_try_compile "$LINENO"; then : 8141 xorg_cv_cc_flag_unused_command_line_argument=yes 8142else 8143 xorg_cv_cc_flag_unused_command_line_argument=no 8144fi 8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8146fi 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8150 CFLAGS="$xorg_testset_save_CFLAGS" 8151fi 8152 8153found="no" 8154 8155 if test $found = "no" ; then 8156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8158 fi 8159 8160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8162 fi 8163 8164 CFLAGS="$CFLAGS -Werror=array-bounds" 8165 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8167$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8168 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8169 if eval \${$cacheid+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174int i; 8175int 8176main () 8177{ 8178 8179 ; 8180 return 0; 8181} 8182_ACEOF 8183if ac_fn_c_try_link "$LINENO"; then : 8184 eval $cacheid=yes 8185else 8186 eval $cacheid=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext \ 8189 conftest$ac_exeext conftest.$ac_ext 8190fi 8191 8192 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194 8195 eval supported=\$$cacheid 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8197$as_echo "$supported" >&6; } 8198 if test "$supported" = "yes" ; then 8199 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8200 found="yes" 8201 fi 8202 fi 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218xorg_testset_save_CFLAGS="$CFLAGS" 8219 8220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8225 $as_echo_n "(cached) " >&6 8226else 8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228/* end confdefs.h. */ 8229int i; 8230_ACEOF 8231if ac_fn_c_try_compile "$LINENO"; then : 8232 xorg_cv_cc_flag_unknown_warning_option=yes 8233else 8234 xorg_cv_cc_flag_unknown_warning_option=no 8235fi 8236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8237fi 8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8241 CFLAGS="$xorg_testset_save_CFLAGS" 8242fi 8243 8244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 fi 8248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253else 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256int i; 8257_ACEOF 8258if ac_fn_c_try_compile "$LINENO"; then : 8259 xorg_cv_cc_flag_unused_command_line_argument=yes 8260else 8261 xorg_cv_cc_flag_unused_command_line_argument=no 8262fi 8263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8264fi 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8268 CFLAGS="$xorg_testset_save_CFLAGS" 8269fi 8270 8271found="no" 8272 8273 if test $found = "no" ; then 8274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276 fi 8277 8278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8280 fi 8281 8282 CFLAGS="$CFLAGS -Werror=write-strings" 8283 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8285$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8286 cacheid=xorg_cv_cc_flag__Werror_write_strings 8287 if eval \${$cacheid+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289else 8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291/* end confdefs.h. */ 8292int i; 8293int 8294main () 8295{ 8296 8297 ; 8298 return 0; 8299} 8300_ACEOF 8301if ac_fn_c_try_link "$LINENO"; then : 8302 eval $cacheid=yes 8303else 8304 eval $cacheid=no 8305fi 8306rm -f core conftest.err conftest.$ac_objext \ 8307 conftest$ac_exeext conftest.$ac_ext 8308fi 8309 8310 8311 CFLAGS="$xorg_testset_save_CFLAGS" 8312 8313 eval supported=\$$cacheid 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8315$as_echo "$supported" >&6; } 8316 if test "$supported" = "yes" ; then 8317 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8318 found="yes" 8319 fi 8320 fi 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336xorg_testset_save_CFLAGS="$CFLAGS" 8337 8338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8346/* end confdefs.h. */ 8347int i; 8348_ACEOF 8349if ac_fn_c_try_compile "$LINENO"; then : 8350 xorg_cv_cc_flag_unknown_warning_option=yes 8351else 8352 xorg_cv_cc_flag_unknown_warning_option=no 8353fi 8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8355fi 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8359 CFLAGS="$xorg_testset_save_CFLAGS" 8360fi 8361 8362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 fi 8366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373/* end confdefs.h. */ 8374int i; 8375_ACEOF 8376if ac_fn_c_try_compile "$LINENO"; then : 8377 xorg_cv_cc_flag_unused_command_line_argument=yes 8378else 8379 xorg_cv_cc_flag_unused_command_line_argument=no 8380fi 8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8386 CFLAGS="$xorg_testset_save_CFLAGS" 8387fi 8388 8389found="no" 8390 8391 if test $found = "no" ; then 8392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8394 fi 8395 8396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8398 fi 8399 8400 CFLAGS="$CFLAGS -Werror=address" 8401 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8403$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8404 cacheid=xorg_cv_cc_flag__Werror_address 8405 if eval \${$cacheid+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409/* end confdefs.h. */ 8410int i; 8411int 8412main () 8413{ 8414 8415 ; 8416 return 0; 8417} 8418_ACEOF 8419if ac_fn_c_try_link "$LINENO"; then : 8420 eval $cacheid=yes 8421else 8422 eval $cacheid=no 8423fi 8424rm -f core conftest.err conftest.$ac_objext \ 8425 conftest$ac_exeext conftest.$ac_ext 8426fi 8427 8428 8429 CFLAGS="$xorg_testset_save_CFLAGS" 8430 8431 eval supported=\$$cacheid 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8433$as_echo "$supported" >&6; } 8434 if test "$supported" = "yes" ; then 8435 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8436 found="yes" 8437 fi 8438 fi 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454xorg_testset_save_CFLAGS="$CFLAGS" 8455 8456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464/* end confdefs.h. */ 8465int i; 8466_ACEOF 8467if ac_fn_c_try_compile "$LINENO"; then : 8468 xorg_cv_cc_flag_unknown_warning_option=yes 8469else 8470 xorg_cv_cc_flag_unknown_warning_option=no 8471fi 8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8473fi 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8477 CFLAGS="$xorg_testset_save_CFLAGS" 8478fi 8479 8480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 fi 8484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489else 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492int i; 8493_ACEOF 8494if ac_fn_c_try_compile "$LINENO"; then : 8495 xorg_cv_cc_flag_unused_command_line_argument=yes 8496else 8497 xorg_cv_cc_flag_unused_command_line_argument=no 8498fi 8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8500fi 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505fi 8506 8507found="no" 8508 8509 if test $found = "no" ; then 8510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8512 fi 8513 8514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8516 fi 8517 8518 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8521$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8522 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8523 if eval \${$cacheid+:} false; then : 8524 $as_echo_n "(cached) " >&6 8525else 8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8527/* end confdefs.h. */ 8528int i; 8529int 8530main () 8531{ 8532 8533 ; 8534 return 0; 8535} 8536_ACEOF 8537if ac_fn_c_try_link "$LINENO"; then : 8538 eval $cacheid=yes 8539else 8540 eval $cacheid=no 8541fi 8542rm -f core conftest.err conftest.$ac_objext \ 8543 conftest$ac_exeext conftest.$ac_ext 8544fi 8545 8546 8547 CFLAGS="$xorg_testset_save_CFLAGS" 8548 8549 eval supported=\$$cacheid 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8551$as_echo "$supported" >&6; } 8552 if test "$supported" = "yes" ; then 8553 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8554 found="yes" 8555 fi 8556 fi 8557 8558 if test $found = "no" ; then 8559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8561 fi 8562 8563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8565 fi 8566 8567 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8568 8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8570$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8571 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8572 if eval \${$cacheid+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574else 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577int i; 8578int 8579main () 8580{ 8581 8582 ; 8583 return 0; 8584} 8585_ACEOF 8586if ac_fn_c_try_link "$LINENO"; then : 8587 eval $cacheid=yes 8588else 8589 eval $cacheid=no 8590fi 8591rm -f core conftest.err conftest.$ac_objext \ 8592 conftest$ac_exeext conftest.$ac_ext 8593fi 8594 8595 8596 CFLAGS="$xorg_testset_save_CFLAGS" 8597 8598 eval supported=\$$cacheid 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8600$as_echo "$supported" >&6; } 8601 if test "$supported" = "yes" ; then 8602 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8603 found="yes" 8604 fi 8605 fi 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621xorg_testset_save_CFLAGS="$CFLAGS" 8622 8623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8631/* end confdefs.h. */ 8632int i; 8633_ACEOF 8634if ac_fn_c_try_compile "$LINENO"; then : 8635 xorg_cv_cc_flag_unknown_warning_option=yes 8636else 8637 xorg_cv_cc_flag_unknown_warning_option=no 8638fi 8639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8640fi 8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8643 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8644 CFLAGS="$xorg_testset_save_CFLAGS" 8645fi 8646 8647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8650 fi 8651 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659int i; 8660_ACEOF 8661if ac_fn_c_try_compile "$LINENO"; then : 8662 xorg_cv_cc_flag_unused_command_line_argument=yes 8663else 8664 xorg_cv_cc_flag_unused_command_line_argument=no 8665fi 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8671 CFLAGS="$xorg_testset_save_CFLAGS" 8672fi 8673 8674found="no" 8675 8676 if test $found = "no" ; then 8677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8679 fi 8680 8681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8683 fi 8684 8685 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8686 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8688$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8689 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8690 if eval \${$cacheid+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696int 8697main () 8698{ 8699 8700 ; 8701 return 0; 8702} 8703_ACEOF 8704if ac_fn_c_try_link "$LINENO"; then : 8705 eval $cacheid=yes 8706else 8707 eval $cacheid=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext \ 8710 conftest$ac_exeext conftest.$ac_ext 8711fi 8712 8713 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715 8716 eval supported=\$$cacheid 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8718$as_echo "$supported" >&6; } 8719 if test "$supported" = "yes" ; then 8720 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8721 found="yes" 8722 fi 8723 fi 8724 8725 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8726else 8727{ $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 8728$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;} 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742xorg_testset_save_CFLAGS="$CFLAGS" 8743 8744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8747$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8748if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8749 $as_echo_n "(cached) " >&6 8750else 8751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8752/* end confdefs.h. */ 8753int i; 8754_ACEOF 8755if ac_fn_c_try_compile "$LINENO"; then : 8756 xorg_cv_cc_flag_unknown_warning_option=yes 8757else 8758 xorg_cv_cc_flag_unknown_warning_option=no 8759fi 8760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8761fi 8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8763$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766fi 8767 8768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8771 fi 8772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8774$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8775if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8776 $as_echo_n "(cached) " >&6 8777else 8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8779/* end confdefs.h. */ 8780int i; 8781_ACEOF 8782if ac_fn_c_try_compile "$LINENO"; then : 8783 xorg_cv_cc_flag_unused_command_line_argument=yes 8784else 8785 xorg_cv_cc_flag_unused_command_line_argument=no 8786fi 8787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8788fi 8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8790$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8792 CFLAGS="$xorg_testset_save_CFLAGS" 8793fi 8794 8795found="no" 8796 8797 if test $found = "no" ; then 8798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8800 fi 8801 8802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8804 fi 8805 8806 CFLAGS="$CFLAGS -Wimplicit" 8807 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8809$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8810 cacheid=xorg_cv_cc_flag__Wimplicit 8811 if eval \${$cacheid+:} false; then : 8812 $as_echo_n "(cached) " >&6 8813else 8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8815/* end confdefs.h. */ 8816int i; 8817int 8818main () 8819{ 8820 8821 ; 8822 return 0; 8823} 8824_ACEOF 8825if ac_fn_c_try_link "$LINENO"; then : 8826 eval $cacheid=yes 8827else 8828 eval $cacheid=no 8829fi 8830rm -f core conftest.err conftest.$ac_objext \ 8831 conftest$ac_exeext conftest.$ac_ext 8832fi 8833 8834 8835 CFLAGS="$xorg_testset_save_CFLAGS" 8836 8837 eval supported=\$$cacheid 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8839$as_echo "$supported" >&6; } 8840 if test "$supported" = "yes" ; then 8841 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8842 found="yes" 8843 fi 8844 fi 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860xorg_testset_save_CFLAGS="$CFLAGS" 8861 8862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8867 $as_echo_n "(cached) " >&6 8868else 8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8870/* end confdefs.h. */ 8871int i; 8872_ACEOF 8873if ac_fn_c_try_compile "$LINENO"; then : 8874 xorg_cv_cc_flag_unknown_warning_option=yes 8875else 8876 xorg_cv_cc_flag_unknown_warning_option=no 8877fi 8878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8879fi 8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8883 CFLAGS="$xorg_testset_save_CFLAGS" 8884fi 8885 8886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895else 8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897/* end confdefs.h. */ 8898int i; 8899_ACEOF 8900if ac_fn_c_try_compile "$LINENO"; then : 8901 xorg_cv_cc_flag_unused_command_line_argument=yes 8902else 8903 xorg_cv_cc_flag_unused_command_line_argument=no 8904fi 8905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8906fi 8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8910 CFLAGS="$xorg_testset_save_CFLAGS" 8911fi 8912 8913found="no" 8914 8915 if test $found = "no" ; then 8916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8918 fi 8919 8920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8922 fi 8923 8924 CFLAGS="$CFLAGS -Wnonnull" 8925 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8927$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8928 cacheid=xorg_cv_cc_flag__Wnonnull 8929 if eval \${$cacheid+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933/* end confdefs.h. */ 8934int i; 8935int 8936main () 8937{ 8938 8939 ; 8940 return 0; 8941} 8942_ACEOF 8943if ac_fn_c_try_link "$LINENO"; then : 8944 eval $cacheid=yes 8945else 8946 eval $cacheid=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext \ 8949 conftest$ac_exeext conftest.$ac_ext 8950fi 8951 8952 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954 8955 eval supported=\$$cacheid 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8957$as_echo "$supported" >&6; } 8958 if test "$supported" = "yes" ; then 8959 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8960 found="yes" 8961 fi 8962 fi 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978xorg_testset_save_CFLAGS="$CFLAGS" 8979 8980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988/* end confdefs.h. */ 8989int i; 8990_ACEOF 8991if ac_fn_c_try_compile "$LINENO"; then : 8992 xorg_cv_cc_flag_unknown_warning_option=yes 8993else 8994 xorg_cv_cc_flag_unknown_warning_option=no 8995fi 8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8997fi 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9001 CFLAGS="$xorg_testset_save_CFLAGS" 9002fi 9003 9004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 fi 9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9012 $as_echo_n "(cached) " >&6 9013else 9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9015/* end confdefs.h. */ 9016int i; 9017_ACEOF 9018if ac_fn_c_try_compile "$LINENO"; then : 9019 xorg_cv_cc_flag_unused_command_line_argument=yes 9020else 9021 xorg_cv_cc_flag_unused_command_line_argument=no 9022fi 9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9024fi 9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9028 CFLAGS="$xorg_testset_save_CFLAGS" 9029fi 9030 9031found="no" 9032 9033 if test $found = "no" ; then 9034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 fi 9037 9038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9040 fi 9041 9042 CFLAGS="$CFLAGS -Winit-self" 9043 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9045$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9046 cacheid=xorg_cv_cc_flag__Winit_self 9047 if eval \${$cacheid+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9051/* end confdefs.h. */ 9052int i; 9053int 9054main () 9055{ 9056 9057 ; 9058 return 0; 9059} 9060_ACEOF 9061if ac_fn_c_try_link "$LINENO"; then : 9062 eval $cacheid=yes 9063else 9064 eval $cacheid=no 9065fi 9066rm -f core conftest.err conftest.$ac_objext \ 9067 conftest$ac_exeext conftest.$ac_ext 9068fi 9069 9070 9071 CFLAGS="$xorg_testset_save_CFLAGS" 9072 9073 eval supported=\$$cacheid 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9075$as_echo "$supported" >&6; } 9076 if test "$supported" = "yes" ; then 9077 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9078 found="yes" 9079 fi 9080 fi 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096xorg_testset_save_CFLAGS="$CFLAGS" 9097 9098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104else 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107int i; 9108_ACEOF 9109if ac_fn_c_try_compile "$LINENO"; then : 9110 xorg_cv_cc_flag_unknown_warning_option=yes 9111else 9112 xorg_cv_cc_flag_unknown_warning_option=no 9113fi 9114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9115fi 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9119 CFLAGS="$xorg_testset_save_CFLAGS" 9120fi 9121 9122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 fi 9126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131else 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133/* end confdefs.h. */ 9134int i; 9135_ACEOF 9136if ac_fn_c_try_compile "$LINENO"; then : 9137 xorg_cv_cc_flag_unused_command_line_argument=yes 9138else 9139 xorg_cv_cc_flag_unused_command_line_argument=no 9140fi 9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9142fi 9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9146 CFLAGS="$xorg_testset_save_CFLAGS" 9147fi 9148 9149found="no" 9150 9151 if test $found = "no" ; then 9152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9154 fi 9155 9156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9158 fi 9159 9160 CFLAGS="$CFLAGS -Wmain" 9161 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9163$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9164 cacheid=xorg_cv_cc_flag__Wmain 9165 if eval \${$cacheid+:} false; then : 9166 $as_echo_n "(cached) " >&6 9167else 9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169/* end confdefs.h. */ 9170int i; 9171int 9172main () 9173{ 9174 9175 ; 9176 return 0; 9177} 9178_ACEOF 9179if ac_fn_c_try_link "$LINENO"; then : 9180 eval $cacheid=yes 9181else 9182 eval $cacheid=no 9183fi 9184rm -f core conftest.err conftest.$ac_objext \ 9185 conftest$ac_exeext conftest.$ac_ext 9186fi 9187 9188 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190 9191 eval supported=\$$cacheid 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9193$as_echo "$supported" >&6; } 9194 if test "$supported" = "yes" ; then 9195 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9196 found="yes" 9197 fi 9198 fi 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214xorg_testset_save_CFLAGS="$CFLAGS" 9215 9216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9221 $as_echo_n "(cached) " >&6 9222else 9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9224/* end confdefs.h. */ 9225int i; 9226_ACEOF 9227if ac_fn_c_try_compile "$LINENO"; then : 9228 xorg_cv_cc_flag_unknown_warning_option=yes 9229else 9230 xorg_cv_cc_flag_unknown_warning_option=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233fi 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9237 CFLAGS="$xorg_testset_save_CFLAGS" 9238fi 9239 9240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249else 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251/* end confdefs.h. */ 9252int i; 9253_ACEOF 9254if ac_fn_c_try_compile "$LINENO"; then : 9255 xorg_cv_cc_flag_unused_command_line_argument=yes 9256else 9257 xorg_cv_cc_flag_unused_command_line_argument=no 9258fi 9259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9260fi 9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9264 CFLAGS="$xorg_testset_save_CFLAGS" 9265fi 9266 9267found="no" 9268 9269 if test $found = "no" ; then 9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 fi 9273 9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9276 fi 9277 9278 CFLAGS="$CFLAGS -Wmissing-braces" 9279 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9281$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9282 cacheid=xorg_cv_cc_flag__Wmissing_braces 9283 if eval \${$cacheid+:} false; then : 9284 $as_echo_n "(cached) " >&6 9285else 9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287/* end confdefs.h. */ 9288int i; 9289int 9290main () 9291{ 9292 9293 ; 9294 return 0; 9295} 9296_ACEOF 9297if ac_fn_c_try_link "$LINENO"; then : 9298 eval $cacheid=yes 9299else 9300 eval $cacheid=no 9301fi 9302rm -f core conftest.err conftest.$ac_objext \ 9303 conftest$ac_exeext conftest.$ac_ext 9304fi 9305 9306 9307 CFLAGS="$xorg_testset_save_CFLAGS" 9308 9309 eval supported=\$$cacheid 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9311$as_echo "$supported" >&6; } 9312 if test "$supported" = "yes" ; then 9313 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9314 found="yes" 9315 fi 9316 fi 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332xorg_testset_save_CFLAGS="$CFLAGS" 9333 9334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342/* end confdefs.h. */ 9343int i; 9344_ACEOF 9345if ac_fn_c_try_compile "$LINENO"; then : 9346 xorg_cv_cc_flag_unknown_warning_option=yes 9347else 9348 xorg_cv_cc_flag_unknown_warning_option=no 9349fi 9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9351fi 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9355 CFLAGS="$xorg_testset_save_CFLAGS" 9356fi 9357 9358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 fi 9362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369/* end confdefs.h. */ 9370int i; 9371_ACEOF 9372if ac_fn_c_try_compile "$LINENO"; then : 9373 xorg_cv_cc_flag_unused_command_line_argument=yes 9374else 9375 xorg_cv_cc_flag_unused_command_line_argument=no 9376fi 9377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9378fi 9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9382 CFLAGS="$xorg_testset_save_CFLAGS" 9383fi 9384 9385found="no" 9386 9387 if test $found = "no" ; then 9388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9390 fi 9391 9392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9394 fi 9395 9396 CFLAGS="$CFLAGS -Wsequence-point" 9397 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9399$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9400 cacheid=xorg_cv_cc_flag__Wsequence_point 9401 if eval \${$cacheid+:} false; then : 9402 $as_echo_n "(cached) " >&6 9403else 9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405/* end confdefs.h. */ 9406int i; 9407int 9408main () 9409{ 9410 9411 ; 9412 return 0; 9413} 9414_ACEOF 9415if ac_fn_c_try_link "$LINENO"; then : 9416 eval $cacheid=yes 9417else 9418 eval $cacheid=no 9419fi 9420rm -f core conftest.err conftest.$ac_objext \ 9421 conftest$ac_exeext conftest.$ac_ext 9422fi 9423 9424 9425 CFLAGS="$xorg_testset_save_CFLAGS" 9426 9427 eval supported=\$$cacheid 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9429$as_echo "$supported" >&6; } 9430 if test "$supported" = "yes" ; then 9431 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9432 found="yes" 9433 fi 9434 fi 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450xorg_testset_save_CFLAGS="$CFLAGS" 9451 9452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9457 $as_echo_n "(cached) " >&6 9458else 9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9460/* end confdefs.h. */ 9461int i; 9462_ACEOF 9463if ac_fn_c_try_compile "$LINENO"; then : 9464 xorg_cv_cc_flag_unknown_warning_option=yes 9465else 9466 xorg_cv_cc_flag_unknown_warning_option=no 9467fi 9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9469fi 9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9473 CFLAGS="$xorg_testset_save_CFLAGS" 9474fi 9475 9476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 fi 9480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485else 9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9487/* end confdefs.h. */ 9488int i; 9489_ACEOF 9490if ac_fn_c_try_compile "$LINENO"; then : 9491 xorg_cv_cc_flag_unused_command_line_argument=yes 9492else 9493 xorg_cv_cc_flag_unused_command_line_argument=no 9494fi 9495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9496fi 9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9500 CFLAGS="$xorg_testset_save_CFLAGS" 9501fi 9502 9503found="no" 9504 9505 if test $found = "no" ; then 9506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9508 fi 9509 9510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9512 fi 9513 9514 CFLAGS="$CFLAGS -Wreturn-type" 9515 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9517$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9518 cacheid=xorg_cv_cc_flag__Wreturn_type 9519 if eval \${$cacheid+:} false; then : 9520 $as_echo_n "(cached) " >&6 9521else 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524int i; 9525int 9526main () 9527{ 9528 9529 ; 9530 return 0; 9531} 9532_ACEOF 9533if ac_fn_c_try_link "$LINENO"; then : 9534 eval $cacheid=yes 9535else 9536 eval $cacheid=no 9537fi 9538rm -f core conftest.err conftest.$ac_objext \ 9539 conftest$ac_exeext conftest.$ac_ext 9540fi 9541 9542 9543 CFLAGS="$xorg_testset_save_CFLAGS" 9544 9545 eval supported=\$$cacheid 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9547$as_echo "$supported" >&6; } 9548 if test "$supported" = "yes" ; then 9549 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9550 found="yes" 9551 fi 9552 fi 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568xorg_testset_save_CFLAGS="$CFLAGS" 9569 9570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9575 $as_echo_n "(cached) " >&6 9576else 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579int i; 9580_ACEOF 9581if ac_fn_c_try_compile "$LINENO"; then : 9582 xorg_cv_cc_flag_unknown_warning_option=yes 9583else 9584 xorg_cv_cc_flag_unknown_warning_option=no 9585fi 9586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9587fi 9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9591 CFLAGS="$xorg_testset_save_CFLAGS" 9592fi 9593 9594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9597 fi 9598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603else 9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9605/* end confdefs.h. */ 9606int i; 9607_ACEOF 9608if ac_fn_c_try_compile "$LINENO"; then : 9609 xorg_cv_cc_flag_unused_command_line_argument=yes 9610else 9611 xorg_cv_cc_flag_unused_command_line_argument=no 9612fi 9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9614fi 9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9618 CFLAGS="$xorg_testset_save_CFLAGS" 9619fi 9620 9621found="no" 9622 9623 if test $found = "no" ; then 9624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 fi 9627 9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9630 fi 9631 9632 CFLAGS="$CFLAGS -Wtrigraphs" 9633 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9635$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9636 cacheid=xorg_cv_cc_flag__Wtrigraphs 9637 if eval \${$cacheid+:} false; then : 9638 $as_echo_n "(cached) " >&6 9639else 9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9641/* end confdefs.h. */ 9642int i; 9643int 9644main () 9645{ 9646 9647 ; 9648 return 0; 9649} 9650_ACEOF 9651if ac_fn_c_try_link "$LINENO"; then : 9652 eval $cacheid=yes 9653else 9654 eval $cacheid=no 9655fi 9656rm -f core conftest.err conftest.$ac_objext \ 9657 conftest$ac_exeext conftest.$ac_ext 9658fi 9659 9660 9661 CFLAGS="$xorg_testset_save_CFLAGS" 9662 9663 eval supported=\$$cacheid 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9665$as_echo "$supported" >&6; } 9666 if test "$supported" = "yes" ; then 9667 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9668 found="yes" 9669 fi 9670 fi 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686xorg_testset_save_CFLAGS="$CFLAGS" 9687 9688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697int i; 9698_ACEOF 9699if ac_fn_c_try_compile "$LINENO"; then : 9700 xorg_cv_cc_flag_unknown_warning_option=yes 9701else 9702 xorg_cv_cc_flag_unknown_warning_option=no 9703fi 9704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9705fi 9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9709 CFLAGS="$xorg_testset_save_CFLAGS" 9710fi 9711 9712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721else 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723/* end confdefs.h. */ 9724int i; 9725_ACEOF 9726if ac_fn_c_try_compile "$LINENO"; then : 9727 xorg_cv_cc_flag_unused_command_line_argument=yes 9728else 9729 xorg_cv_cc_flag_unused_command_line_argument=no 9730fi 9731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9732fi 9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9736 CFLAGS="$xorg_testset_save_CFLAGS" 9737fi 9738 9739found="no" 9740 9741 if test $found = "no" ; then 9742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9744 fi 9745 9746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9748 fi 9749 9750 CFLAGS="$CFLAGS -Warray-bounds" 9751 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9753$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9754 cacheid=xorg_cv_cc_flag__Warray_bounds 9755 if eval \${$cacheid+:} false; then : 9756 $as_echo_n "(cached) " >&6 9757else 9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759/* end confdefs.h. */ 9760int i; 9761int 9762main () 9763{ 9764 9765 ; 9766 return 0; 9767} 9768_ACEOF 9769if ac_fn_c_try_link "$LINENO"; then : 9770 eval $cacheid=yes 9771else 9772 eval $cacheid=no 9773fi 9774rm -f core conftest.err conftest.$ac_objext \ 9775 conftest$ac_exeext conftest.$ac_ext 9776fi 9777 9778 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780 9781 eval supported=\$$cacheid 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9783$as_echo "$supported" >&6; } 9784 if test "$supported" = "yes" ; then 9785 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9786 found="yes" 9787 fi 9788 fi 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804xorg_testset_save_CFLAGS="$CFLAGS" 9805 9806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9811 $as_echo_n "(cached) " >&6 9812else 9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814/* end confdefs.h. */ 9815int i; 9816_ACEOF 9817if ac_fn_c_try_compile "$LINENO"; then : 9818 xorg_cv_cc_flag_unknown_warning_option=yes 9819else 9820 xorg_cv_cc_flag_unknown_warning_option=no 9821fi 9822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9823fi 9824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9827 CFLAGS="$xorg_testset_save_CFLAGS" 9828fi 9829 9830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 fi 9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9838 $as_echo_n "(cached) " >&6 9839else 9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841/* end confdefs.h. */ 9842int i; 9843_ACEOF 9844if ac_fn_c_try_compile "$LINENO"; then : 9845 xorg_cv_cc_flag_unused_command_line_argument=yes 9846else 9847 xorg_cv_cc_flag_unused_command_line_argument=no 9848fi 9849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9850fi 9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9854 CFLAGS="$xorg_testset_save_CFLAGS" 9855fi 9856 9857found="no" 9858 9859 if test $found = "no" ; then 9860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862 fi 9863 9864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9866 fi 9867 9868 CFLAGS="$CFLAGS -Wwrite-strings" 9869 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9871$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9872 cacheid=xorg_cv_cc_flag__Wwrite_strings 9873 if eval \${$cacheid+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875else 9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9877/* end confdefs.h. */ 9878int i; 9879int 9880main () 9881{ 9882 9883 ; 9884 return 0; 9885} 9886_ACEOF 9887if ac_fn_c_try_link "$LINENO"; then : 9888 eval $cacheid=yes 9889else 9890 eval $cacheid=no 9891fi 9892rm -f core conftest.err conftest.$ac_objext \ 9893 conftest$ac_exeext conftest.$ac_ext 9894fi 9895 9896 9897 CFLAGS="$xorg_testset_save_CFLAGS" 9898 9899 eval supported=\$$cacheid 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9901$as_echo "$supported" >&6; } 9902 if test "$supported" = "yes" ; then 9903 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9904 found="yes" 9905 fi 9906 fi 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922xorg_testset_save_CFLAGS="$CFLAGS" 9923 9924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930else 9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9932/* end confdefs.h. */ 9933int i; 9934_ACEOF 9935if ac_fn_c_try_compile "$LINENO"; then : 9936 xorg_cv_cc_flag_unknown_warning_option=yes 9937else 9938 xorg_cv_cc_flag_unknown_warning_option=no 9939fi 9940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9941fi 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9945 CFLAGS="$xorg_testset_save_CFLAGS" 9946fi 9947 9948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 fi 9952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957else 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960int i; 9961_ACEOF 9962if ac_fn_c_try_compile "$LINENO"; then : 9963 xorg_cv_cc_flag_unused_command_line_argument=yes 9964else 9965 xorg_cv_cc_flag_unused_command_line_argument=no 9966fi 9967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9968fi 9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9972 CFLAGS="$xorg_testset_save_CFLAGS" 9973fi 9974 9975found="no" 9976 9977 if test $found = "no" ; then 9978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9980 fi 9981 9982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9984 fi 9985 9986 CFLAGS="$CFLAGS -Waddress" 9987 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9989$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9990 cacheid=xorg_cv_cc_flag__Waddress 9991 if eval \${$cacheid+:} false; then : 9992 $as_echo_n "(cached) " >&6 9993else 9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995/* end confdefs.h. */ 9996int i; 9997int 9998main () 9999{ 10000 10001 ; 10002 return 0; 10003} 10004_ACEOF 10005if ac_fn_c_try_link "$LINENO"; then : 10006 eval $cacheid=yes 10007else 10008 eval $cacheid=no 10009fi 10010rm -f core conftest.err conftest.$ac_objext \ 10011 conftest$ac_exeext conftest.$ac_ext 10012fi 10013 10014 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016 10017 eval supported=\$$cacheid 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10019$as_echo "$supported" >&6; } 10020 if test "$supported" = "yes" ; then 10021 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10022 found="yes" 10023 fi 10024 fi 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040xorg_testset_save_CFLAGS="$CFLAGS" 10041 10042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10047 $as_echo_n "(cached) " >&6 10048else 10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10050/* end confdefs.h. */ 10051int i; 10052_ACEOF 10053if ac_fn_c_try_compile "$LINENO"; then : 10054 xorg_cv_cc_flag_unknown_warning_option=yes 10055else 10056 xorg_cv_cc_flag_unknown_warning_option=no 10057fi 10058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10059fi 10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10063 CFLAGS="$xorg_testset_save_CFLAGS" 10064fi 10065 10066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10069 fi 10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10074 $as_echo_n "(cached) " >&6 10075else 10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10077/* end confdefs.h. */ 10078int i; 10079_ACEOF 10080if ac_fn_c_try_compile "$LINENO"; then : 10081 xorg_cv_cc_flag_unused_command_line_argument=yes 10082else 10083 xorg_cv_cc_flag_unused_command_line_argument=no 10084fi 10085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10086fi 10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10090 CFLAGS="$xorg_testset_save_CFLAGS" 10091fi 10092 10093found="no" 10094 10095 if test $found = "no" ; then 10096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10098 fi 10099 10100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10102 fi 10103 10104 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10105 10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10107$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10108 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10109 if eval \${$cacheid+:} false; then : 10110 $as_echo_n "(cached) " >&6 10111else 10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10113/* end confdefs.h. */ 10114int i; 10115int 10116main () 10117{ 10118 10119 ; 10120 return 0; 10121} 10122_ACEOF 10123if ac_fn_c_try_link "$LINENO"; then : 10124 eval $cacheid=yes 10125else 10126 eval $cacheid=no 10127fi 10128rm -f core conftest.err conftest.$ac_objext \ 10129 conftest$ac_exeext conftest.$ac_ext 10130fi 10131 10132 10133 CFLAGS="$xorg_testset_save_CFLAGS" 10134 10135 eval supported=\$$cacheid 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10137$as_echo "$supported" >&6; } 10138 if test "$supported" = "yes" ; then 10139 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10140 found="yes" 10141 fi 10142 fi 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158xorg_testset_save_CFLAGS="$CFLAGS" 10159 10160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10165 $as_echo_n "(cached) " >&6 10166else 10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169int i; 10170_ACEOF 10171if ac_fn_c_try_compile "$LINENO"; then : 10172 xorg_cv_cc_flag_unknown_warning_option=yes 10173else 10174 xorg_cv_cc_flag_unknown_warning_option=no 10175fi 10176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10177fi 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10181 CFLAGS="$xorg_testset_save_CFLAGS" 10182fi 10183 10184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10187 fi 10188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193else 10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10195/* end confdefs.h. */ 10196int i; 10197_ACEOF 10198if ac_fn_c_try_compile "$LINENO"; then : 10199 xorg_cv_cc_flag_unused_command_line_argument=yes 10200else 10201 xorg_cv_cc_flag_unused_command_line_argument=no 10202fi 10203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10204fi 10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10208 CFLAGS="$xorg_testset_save_CFLAGS" 10209fi 10210 10211found="no" 10212 10213 if test $found = "no" ; then 10214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10216 fi 10217 10218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10220 fi 10221 10222 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10223 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10225$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10226 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10227 if eval \${$cacheid+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10231/* end confdefs.h. */ 10232int i; 10233int 10234main () 10235{ 10236 10237 ; 10238 return 0; 10239} 10240_ACEOF 10241if ac_fn_c_try_link "$LINENO"; then : 10242 eval $cacheid=yes 10243else 10244 eval $cacheid=no 10245fi 10246rm -f core conftest.err conftest.$ac_objext \ 10247 conftest$ac_exeext conftest.$ac_ext 10248fi 10249 10250 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252 10253 eval supported=\$$cacheid 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10255$as_echo "$supported" >&6; } 10256 if test "$supported" = "yes" ; then 10257 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10258 found="yes" 10259 fi 10260 fi 10261 10262 10263fi 10264 10265 10266 10267 10268 10269 10270 10271 CWARNFLAGS="$BASE_CFLAGS" 10272 if test "x$GCC" = xyes ; then 10273 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10274 fi 10275 10276 10277 10278 10279 10280 10281 10282 10283# Check whether --enable-strict-compilation was given. 10284if test "${enable_strict_compilation+set}" = set; then : 10285 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10286else 10287 STRICT_COMPILE=no 10288fi 10289 10290 10291 10292 10293 10294 10295STRICT_CFLAGS="" 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309xorg_testset_save_CFLAGS="$CFLAGS" 10310 10311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10316 $as_echo_n "(cached) " >&6 10317else 10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319/* end confdefs.h. */ 10320int i; 10321_ACEOF 10322if ac_fn_c_try_compile "$LINENO"; then : 10323 xorg_cv_cc_flag_unknown_warning_option=yes 10324else 10325 xorg_cv_cc_flag_unknown_warning_option=no 10326fi 10327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10328fi 10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10332 CFLAGS="$xorg_testset_save_CFLAGS" 10333fi 10334 10335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10338 fi 10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10343 $as_echo_n "(cached) " >&6 10344else 10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10346/* end confdefs.h. */ 10347int i; 10348_ACEOF 10349if ac_fn_c_try_compile "$LINENO"; then : 10350 xorg_cv_cc_flag_unused_command_line_argument=yes 10351else 10352 xorg_cv_cc_flag_unused_command_line_argument=no 10353fi 10354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10355fi 10356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10359 CFLAGS="$xorg_testset_save_CFLAGS" 10360fi 10361 10362found="no" 10363 10364 if test $found = "no" ; then 10365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10367 fi 10368 10369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10371 fi 10372 10373 CFLAGS="$CFLAGS -pedantic" 10374 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10376$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10377 cacheid=xorg_cv_cc_flag__pedantic 10378 if eval \${$cacheid+:} false; then : 10379 $as_echo_n "(cached) " >&6 10380else 10381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10382/* end confdefs.h. */ 10383int i; 10384int 10385main () 10386{ 10387 10388 ; 10389 return 0; 10390} 10391_ACEOF 10392if ac_fn_c_try_link "$LINENO"; then : 10393 eval $cacheid=yes 10394else 10395 eval $cacheid=no 10396fi 10397rm -f core conftest.err conftest.$ac_objext \ 10398 conftest$ac_exeext conftest.$ac_ext 10399fi 10400 10401 10402 CFLAGS="$xorg_testset_save_CFLAGS" 10403 10404 eval supported=\$$cacheid 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10406$as_echo "$supported" >&6; } 10407 if test "$supported" = "yes" ; then 10408 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10409 found="yes" 10410 fi 10411 fi 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427xorg_testset_save_CFLAGS="$CFLAGS" 10428 10429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10434 $as_echo_n "(cached) " >&6 10435else 10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10437/* end confdefs.h. */ 10438int i; 10439_ACEOF 10440if ac_fn_c_try_compile "$LINENO"; then : 10441 xorg_cv_cc_flag_unknown_warning_option=yes 10442else 10443 xorg_cv_cc_flag_unknown_warning_option=no 10444fi 10445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10446fi 10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451fi 10452 10453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10456 fi 10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462else 10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10464/* end confdefs.h. */ 10465int i; 10466_ACEOF 10467if ac_fn_c_try_compile "$LINENO"; then : 10468 xorg_cv_cc_flag_unused_command_line_argument=yes 10469else 10470 xorg_cv_cc_flag_unused_command_line_argument=no 10471fi 10472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10473fi 10474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10477 CFLAGS="$xorg_testset_save_CFLAGS" 10478fi 10479 10480found="no" 10481 10482 if test $found = "no" ; then 10483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10485 fi 10486 10487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10489 fi 10490 10491 CFLAGS="$CFLAGS -Werror" 10492 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10494$as_echo_n "checking if $CC supports -Werror... " >&6; } 10495 cacheid=xorg_cv_cc_flag__Werror 10496 if eval \${$cacheid+:} false; then : 10497 $as_echo_n "(cached) " >&6 10498else 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500/* end confdefs.h. */ 10501int i; 10502int 10503main () 10504{ 10505 10506 ; 10507 return 0; 10508} 10509_ACEOF 10510if ac_fn_c_try_link "$LINENO"; then : 10511 eval $cacheid=yes 10512else 10513 eval $cacheid=no 10514fi 10515rm -f core conftest.err conftest.$ac_objext \ 10516 conftest$ac_exeext conftest.$ac_ext 10517fi 10518 10519 10520 CFLAGS="$xorg_testset_save_CFLAGS" 10521 10522 eval supported=\$$cacheid 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10524$as_echo "$supported" >&6; } 10525 if test "$supported" = "yes" ; then 10526 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10527 found="yes" 10528 fi 10529 fi 10530 10531 if test $found = "no" ; then 10532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10534 fi 10535 10536 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10538 fi 10539 10540 CFLAGS="$CFLAGS -errwarn" 10541 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10543$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10544 cacheid=xorg_cv_cc_flag__errwarn 10545 if eval \${$cacheid+:} false; then : 10546 $as_echo_n "(cached) " >&6 10547else 10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10549/* end confdefs.h. */ 10550int i; 10551int 10552main () 10553{ 10554 10555 ; 10556 return 0; 10557} 10558_ACEOF 10559if ac_fn_c_try_link "$LINENO"; then : 10560 eval $cacheid=yes 10561else 10562 eval $cacheid=no 10563fi 10564rm -f core conftest.err conftest.$ac_objext \ 10565 conftest$ac_exeext conftest.$ac_ext 10566fi 10567 10568 10569 CFLAGS="$xorg_testset_save_CFLAGS" 10570 10571 eval supported=\$$cacheid 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10573$as_echo "$supported" >&6; } 10574 if test "$supported" = "yes" ; then 10575 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10576 found="yes" 10577 fi 10578 fi 10579 10580 10581 10582# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10583# activate it with -Werror, so we add it here explicitly. 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597xorg_testset_save_CFLAGS="$CFLAGS" 10598 10599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10604 $as_echo_n "(cached) " >&6 10605else 10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608int i; 10609_ACEOF 10610if ac_fn_c_try_compile "$LINENO"; then : 10611 xorg_cv_cc_flag_unknown_warning_option=yes 10612else 10613 xorg_cv_cc_flag_unknown_warning_option=no 10614fi 10615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10616fi 10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10620 CFLAGS="$xorg_testset_save_CFLAGS" 10621fi 10622 10623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10626 fi 10627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10631 $as_echo_n "(cached) " >&6 10632else 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635int i; 10636_ACEOF 10637if ac_fn_c_try_compile "$LINENO"; then : 10638 xorg_cv_cc_flag_unused_command_line_argument=yes 10639else 10640 xorg_cv_cc_flag_unused_command_line_argument=no 10641fi 10642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10647 CFLAGS="$xorg_testset_save_CFLAGS" 10648fi 10649 10650found="no" 10651 10652 if test $found = "no" ; then 10653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10655 fi 10656 10657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10659 fi 10660 10661 CFLAGS="$CFLAGS -Werror=attributes" 10662 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10664$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10665 cacheid=xorg_cv_cc_flag__Werror_attributes 10666 if eval \${$cacheid+:} false; then : 10667 $as_echo_n "(cached) " >&6 10668else 10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10670/* end confdefs.h. */ 10671int i; 10672int 10673main () 10674{ 10675 10676 ; 10677 return 0; 10678} 10679_ACEOF 10680if ac_fn_c_try_link "$LINENO"; then : 10681 eval $cacheid=yes 10682else 10683 eval $cacheid=no 10684fi 10685rm -f core conftest.err conftest.$ac_objext \ 10686 conftest$ac_exeext conftest.$ac_ext 10687fi 10688 10689 10690 CFLAGS="$xorg_testset_save_CFLAGS" 10691 10692 eval supported=\$$cacheid 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10694$as_echo "$supported" >&6; } 10695 if test "$supported" = "yes" ; then 10696 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10697 found="yes" 10698 fi 10699 fi 10700 10701 10702 10703if test "x$STRICT_COMPILE" = "xyes"; then 10704 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10705 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10706fi 10707 10708 10709 10710 10711 10712 10713cat >>confdefs.h <<_ACEOF 10714#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10715_ACEOF 10716 10717 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10718 if test "x$PVM" = "x"; then 10719 PVM="0" 10720 fi 10721 10722cat >>confdefs.h <<_ACEOF 10723#define PACKAGE_VERSION_MINOR $PVM 10724_ACEOF 10725 10726 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10727 if test "x$PVP" = "x"; then 10728 PVP="0" 10729 fi 10730 10731cat >>confdefs.h <<_ACEOF 10732#define PACKAGE_VERSION_PATCHLEVEL $PVP 10733_ACEOF 10734 10735 10736 10737CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10738mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10739|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10740echo 'git directory not found: installing possibly empty changelog.' >&2)" 10741 10742 10743 10744 10745macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10746INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10747mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10748|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10749echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10750 10751 10752 10753 10754 10755 10756if test x$APP_MAN_SUFFIX = x ; then 10757 APP_MAN_SUFFIX=1 10758fi 10759if test x$APP_MAN_DIR = x ; then 10760 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10761fi 10762 10763if test x$LIB_MAN_SUFFIX = x ; then 10764 LIB_MAN_SUFFIX=3 10765fi 10766if test x$LIB_MAN_DIR = x ; then 10767 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10768fi 10769 10770if test x$FILE_MAN_SUFFIX = x ; then 10771 case $host_os in 10772 solaris*) FILE_MAN_SUFFIX=4 ;; 10773 *) FILE_MAN_SUFFIX=5 ;; 10774 esac 10775fi 10776if test x$FILE_MAN_DIR = x ; then 10777 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10778fi 10779 10780if test x$MISC_MAN_SUFFIX = x ; then 10781 case $host_os in 10782 solaris*) MISC_MAN_SUFFIX=5 ;; 10783 *) MISC_MAN_SUFFIX=7 ;; 10784 esac 10785fi 10786if test x$MISC_MAN_DIR = x ; then 10787 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10788fi 10789 10790if test x$DRIVER_MAN_SUFFIX = x ; then 10791 case $host_os in 10792 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10793 *) DRIVER_MAN_SUFFIX=4 ;; 10794 esac 10795fi 10796if test x$DRIVER_MAN_DIR = x ; then 10797 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10798fi 10799 10800if test x$ADMIN_MAN_SUFFIX = x ; then 10801 case $host_os in 10802 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10803 *) ADMIN_MAN_SUFFIX=8 ;; 10804 esac 10805fi 10806if test x$ADMIN_MAN_DIR = x ; then 10807 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10808fi 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824XORG_MAN_PAGE="X Version 11" 10825 10826MAN_SUBSTS="\ 10827 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10828 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10829 -e 's|__xservername__|Xorg|g' \ 10830 -e 's|__xconfigfile__|xorg.conf|g' \ 10831 -e 's|__projectroot__|\$(prefix)|g' \ 10832 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10833 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10834 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10835 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10836 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10837 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10838 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10839 10840 10841 10842# Check whether --enable-silent-rules was given. 10843if test "${enable_silent_rules+set}" = set; then : 10844 enableval=$enable_silent_rules; 10845fi 10846 10847case $enable_silent_rules in # ((( 10848 yes) AM_DEFAULT_VERBOSITY=0;; 10849 no) AM_DEFAULT_VERBOSITY=1;; 10850 *) AM_DEFAULT_VERBOSITY=0;; 10851esac 10852am_make=${MAKE-make} 10853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10854$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10855if ${am_cv_make_support_nested_variables+:} false; then : 10856 $as_echo_n "(cached) " >&6 10857else 10858 if $as_echo 'TRUE=$(BAR$(V)) 10859BAR0=false 10860BAR1=true 10861V=1 10862am__doit: 10863 @$(TRUE) 10864.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10865 am_cv_make_support_nested_variables=yes 10866else 10867 am_cv_make_support_nested_variables=no 10868fi 10869fi 10870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10871$as_echo "$am_cv_make_support_nested_variables" >&6; } 10872if test $am_cv_make_support_nested_variables = yes; then 10873 AM_V='$(V)' 10874 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10875else 10876 AM_V=$AM_DEFAULT_VERBOSITY 10877 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10878fi 10879AM_BACKSLASH='\' 10880 10881 10882 10883# Initialize libtool 10884# Check whether --enable-static was given. 10885if test "${enable_static+set}" = set; then : 10886 enableval=$enable_static; p=${PACKAGE-default} 10887 case $enableval in 10888 yes) enable_static=yes ;; 10889 no) enable_static=no ;; 10890 *) 10891 enable_static=no 10892 # Look at the argument we got. We use all the common list separators. 10893 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10894 for pkg in $enableval; do 10895 IFS=$lt_save_ifs 10896 if test "X$pkg" = "X$p"; then 10897 enable_static=yes 10898 fi 10899 done 10900 IFS=$lt_save_ifs 10901 ;; 10902 esac 10903else 10904 enable_static=no 10905fi 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915case `pwd` in 10916 *\ * | *\ *) 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10918$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10919esac 10920 10921 10922 10923macro_version='2.4.6' 10924macro_revision='2.4.6' 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938ltmain=$ac_aux_dir/ltmain.sh 10939 10940# Backslashify metacharacters that are still active within 10941# double-quoted strings. 10942sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10943 10944# Same as above, but do not quote variable references. 10945double_quote_subst='s/\(["`\\]\)/\\\1/g' 10946 10947# Sed substitution to delay expansion of an escaped shell variable in a 10948# double_quote_subst'ed string. 10949delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10950 10951# Sed substitution to delay expansion of an escaped single quote. 10952delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10953 10954# Sed substitution to avoid accidental globbing in evaled expressions 10955no_glob_subst='s/\*/\\\*/g' 10956 10957ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10958ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10959ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10960 10961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10962$as_echo_n "checking how to print strings... " >&6; } 10963# Test print first, because it will be a builtin if present. 10964if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10965 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10966 ECHO='print -r --' 10967elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10968 ECHO='printf %s\n' 10969else 10970 # Use this function as a fallback that always works. 10971 func_fallback_echo () 10972 { 10973 eval 'cat <<_LTECHO_EOF 10974$1 10975_LTECHO_EOF' 10976 } 10977 ECHO='func_fallback_echo' 10978fi 10979 10980# func_echo_all arg... 10981# Invoke $ECHO with all args, space-separated. 10982func_echo_all () 10983{ 10984 $ECHO "" 10985} 10986 10987case $ECHO in 10988 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10989$as_echo "printf" >&6; } ;; 10990 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10991$as_echo "print -r" >&6; } ;; 10992 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10993$as_echo "cat" >&6; } ;; 10994esac 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11010$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11011if ${ac_cv_path_SED+:} false; then : 11012 $as_echo_n "(cached) " >&6 11013else 11014 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11015 for ac_i in 1 2 3 4 5 6 7; do 11016 ac_script="$ac_script$as_nl$ac_script" 11017 done 11018 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11019 { ac_script=; unset ac_script;} 11020 if test -z "$SED"; then 11021 ac_path_SED_found=false 11022 # Loop through the user's path and test for each of PROGNAME-LIST 11023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11024for as_dir in $PATH 11025do 11026 IFS=$as_save_IFS 11027 test -z "$as_dir" && as_dir=. 11028 for ac_prog in sed gsed; do 11029 for ac_exec_ext in '' $ac_executable_extensions; do 11030 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11031 as_fn_executable_p "$ac_path_SED" || continue 11032# Check for GNU ac_path_SED and select it if it is found. 11033 # Check for GNU $ac_path_SED 11034case `"$ac_path_SED" --version 2>&1` in 11035*GNU*) 11036 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11037*) 11038 ac_count=0 11039 $as_echo_n 0123456789 >"conftest.in" 11040 while : 11041 do 11042 cat "conftest.in" "conftest.in" >"conftest.tmp" 11043 mv "conftest.tmp" "conftest.in" 11044 cp "conftest.in" "conftest.nl" 11045 $as_echo '' >> "conftest.nl" 11046 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11048 as_fn_arith $ac_count + 1 && ac_count=$as_val 11049 if test $ac_count -gt ${ac_path_SED_max-0}; then 11050 # Best one so far, save it but keep looking for a better one 11051 ac_cv_path_SED="$ac_path_SED" 11052 ac_path_SED_max=$ac_count 11053 fi 11054 # 10*(2^10) chars as input seems more than enough 11055 test $ac_count -gt 10 && break 11056 done 11057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11058esac 11059 11060 $ac_path_SED_found && break 3 11061 done 11062 done 11063 done 11064IFS=$as_save_IFS 11065 if test -z "$ac_cv_path_SED"; then 11066 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11067 fi 11068else 11069 ac_cv_path_SED=$SED 11070fi 11071 11072fi 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11074$as_echo "$ac_cv_path_SED" >&6; } 11075 SED="$ac_cv_path_SED" 11076 rm -f conftest.sed 11077 11078test -z "$SED" && SED=sed 11079Xsed="$SED -e 1s/^X//" 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11092$as_echo_n "checking for fgrep... " >&6; } 11093if ${ac_cv_path_FGREP+:} false; then : 11094 $as_echo_n "(cached) " >&6 11095else 11096 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11097 then ac_cv_path_FGREP="$GREP -F" 11098 else 11099 if test -z "$FGREP"; then 11100 ac_path_FGREP_found=false 11101 # Loop through the user's path and test for each of PROGNAME-LIST 11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11103for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11104do 11105 IFS=$as_save_IFS 11106 test -z "$as_dir" && as_dir=. 11107 for ac_prog in fgrep; do 11108 for ac_exec_ext in '' $ac_executable_extensions; do 11109 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11110 as_fn_executable_p "$ac_path_FGREP" || continue 11111# Check for GNU ac_path_FGREP and select it if it is found. 11112 # Check for GNU $ac_path_FGREP 11113case `"$ac_path_FGREP" --version 2>&1` in 11114*GNU*) 11115 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11116*) 11117 ac_count=0 11118 $as_echo_n 0123456789 >"conftest.in" 11119 while : 11120 do 11121 cat "conftest.in" "conftest.in" >"conftest.tmp" 11122 mv "conftest.tmp" "conftest.in" 11123 cp "conftest.in" "conftest.nl" 11124 $as_echo 'FGREP' >> "conftest.nl" 11125 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11127 as_fn_arith $ac_count + 1 && ac_count=$as_val 11128 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11129 # Best one so far, save it but keep looking for a better one 11130 ac_cv_path_FGREP="$ac_path_FGREP" 11131 ac_path_FGREP_max=$ac_count 11132 fi 11133 # 10*(2^10) chars as input seems more than enough 11134 test $ac_count -gt 10 && break 11135 done 11136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11137esac 11138 11139 $ac_path_FGREP_found && break 3 11140 done 11141 done 11142 done 11143IFS=$as_save_IFS 11144 if test -z "$ac_cv_path_FGREP"; then 11145 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11146 fi 11147else 11148 ac_cv_path_FGREP=$FGREP 11149fi 11150 11151 fi 11152fi 11153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11154$as_echo "$ac_cv_path_FGREP" >&6; } 11155 FGREP="$ac_cv_path_FGREP" 11156 11157 11158test -z "$GREP" && GREP=grep 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178# Check whether --with-gnu-ld was given. 11179if test "${with_gnu_ld+set}" = set; then : 11180 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11181else 11182 with_gnu_ld=no 11183fi 11184 11185ac_prog=ld 11186if test yes = "$GCC"; then 11187 # Check if gcc -print-prog-name=ld gives a path. 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11189$as_echo_n "checking for ld used by $CC... " >&6; } 11190 case $host in 11191 *-*-mingw*) 11192 # gcc leaves a trailing carriage return, which upsets mingw 11193 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11194 *) 11195 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11196 esac 11197 case $ac_prog in 11198 # Accept absolute paths. 11199 [\\/]* | ?:[\\/]*) 11200 re_direlt='/[^/][^/]*/\.\./' 11201 # Canonicalize the pathname of ld 11202 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11203 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11204 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11205 done 11206 test -z "$LD" && LD=$ac_prog 11207 ;; 11208 "") 11209 # If it fails, then pretend we aren't using GCC. 11210 ac_prog=ld 11211 ;; 11212 *) 11213 # If it is relative, then search for the first ld in PATH. 11214 with_gnu_ld=unknown 11215 ;; 11216 esac 11217elif test yes = "$with_gnu_ld"; then 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11219$as_echo_n "checking for GNU ld... " >&6; } 11220else 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11222$as_echo_n "checking for non-GNU ld... " >&6; } 11223fi 11224if ${lt_cv_path_LD+:} false; then : 11225 $as_echo_n "(cached) " >&6 11226else 11227 if test -z "$LD"; then 11228 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11229 for ac_dir in $PATH; do 11230 IFS=$lt_save_ifs 11231 test -z "$ac_dir" && ac_dir=. 11232 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11233 lt_cv_path_LD=$ac_dir/$ac_prog 11234 # Check to see if the program is GNU ld. I'd rather use --version, 11235 # but apparently some variants of GNU ld only accept -v. 11236 # Break only if it was the GNU/non-GNU ld that we prefer. 11237 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11238 *GNU* | *'with BFD'*) 11239 test no != "$with_gnu_ld" && break 11240 ;; 11241 *) 11242 test yes != "$with_gnu_ld" && break 11243 ;; 11244 esac 11245 fi 11246 done 11247 IFS=$lt_save_ifs 11248else 11249 lt_cv_path_LD=$LD # Let the user override the test with a path. 11250fi 11251fi 11252 11253LD=$lt_cv_path_LD 11254if test -n "$LD"; then 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11256$as_echo "$LD" >&6; } 11257else 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11259$as_echo "no" >&6; } 11260fi 11261test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11263$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11264if ${lt_cv_prog_gnu_ld+:} false; then : 11265 $as_echo_n "(cached) " >&6 11266else 11267 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11268case `$LD -v 2>&1 </dev/null` in 11269*GNU* | *'with BFD'*) 11270 lt_cv_prog_gnu_ld=yes 11271 ;; 11272*) 11273 lt_cv_prog_gnu_ld=no 11274 ;; 11275esac 11276fi 11277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11278$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11279with_gnu_ld=$lt_cv_prog_gnu_ld 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11290$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11291if ${lt_cv_path_NM+:} false; then : 11292 $as_echo_n "(cached) " >&6 11293else 11294 if test -n "$NM"; then 11295 # Let the user override the test. 11296 lt_cv_path_NM=$NM 11297else 11298 lt_nm_to_check=${ac_tool_prefix}nm 11299 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11300 lt_nm_to_check="$lt_nm_to_check nm" 11301 fi 11302 for lt_tmp_nm in $lt_nm_to_check; do 11303 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11304 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11305 IFS=$lt_save_ifs 11306 test -z "$ac_dir" && ac_dir=. 11307 tmp_nm=$ac_dir/$lt_tmp_nm 11308 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11309 # Check to see if the nm accepts a BSD-compat flag. 11310 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11311 # nm: unknown option "B" ignored 11312 # Tru64's nm complains that /dev/null is an invalid object file 11313 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11314 case $build_os in 11315 mingw*) lt_bad_file=conftest.nm/nofile ;; 11316 *) lt_bad_file=/dev/null ;; 11317 esac 11318 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11319 *$lt_bad_file* | *'Invalid file or object type'*) 11320 lt_cv_path_NM="$tmp_nm -B" 11321 break 2 11322 ;; 11323 *) 11324 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11325 */dev/null*) 11326 lt_cv_path_NM="$tmp_nm -p" 11327 break 2 11328 ;; 11329 *) 11330 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11331 continue # so that we can try to find one that supports BSD flags 11332 ;; 11333 esac 11334 ;; 11335 esac 11336 fi 11337 done 11338 IFS=$lt_save_ifs 11339 done 11340 : ${lt_cv_path_NM=no} 11341fi 11342fi 11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11344$as_echo "$lt_cv_path_NM" >&6; } 11345if test no != "$lt_cv_path_NM"; then 11346 NM=$lt_cv_path_NM 11347else 11348 # Didn't find any BSD compatible name lister, look for dumpbin. 11349 if test -n "$DUMPBIN"; then : 11350 # Let the user override the test. 11351 else 11352 if test -n "$ac_tool_prefix"; then 11353 for ac_prog in dumpbin "link -dump" 11354 do 11355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11356set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11358$as_echo_n "checking for $ac_word... " >&6; } 11359if ${ac_cv_prog_DUMPBIN+:} false; then : 11360 $as_echo_n "(cached) " >&6 11361else 11362 if test -n "$DUMPBIN"; then 11363 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11364else 11365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11366for as_dir in $PATH 11367do 11368 IFS=$as_save_IFS 11369 test -z "$as_dir" && as_dir=. 11370 for ac_exec_ext in '' $ac_executable_extensions; do 11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11372 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11374 break 2 11375 fi 11376done 11377 done 11378IFS=$as_save_IFS 11379 11380fi 11381fi 11382DUMPBIN=$ac_cv_prog_DUMPBIN 11383if test -n "$DUMPBIN"; then 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11385$as_echo "$DUMPBIN" >&6; } 11386else 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11388$as_echo "no" >&6; } 11389fi 11390 11391 11392 test -n "$DUMPBIN" && break 11393 done 11394fi 11395if test -z "$DUMPBIN"; then 11396 ac_ct_DUMPBIN=$DUMPBIN 11397 for ac_prog in dumpbin "link -dump" 11398do 11399 # Extract the first word of "$ac_prog", so it can be a program name with args. 11400set dummy $ac_prog; ac_word=$2 11401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11402$as_echo_n "checking for $ac_word... " >&6; } 11403if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11404 $as_echo_n "(cached) " >&6 11405else 11406 if test -n "$ac_ct_DUMPBIN"; then 11407 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11408else 11409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11410for as_dir in $PATH 11411do 11412 IFS=$as_save_IFS 11413 test -z "$as_dir" && as_dir=. 11414 for ac_exec_ext in '' $ac_executable_extensions; do 11415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11416 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11418 break 2 11419 fi 11420done 11421 done 11422IFS=$as_save_IFS 11423 11424fi 11425fi 11426ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11427if test -n "$ac_ct_DUMPBIN"; then 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11429$as_echo "$ac_ct_DUMPBIN" >&6; } 11430else 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11432$as_echo "no" >&6; } 11433fi 11434 11435 11436 test -n "$ac_ct_DUMPBIN" && break 11437done 11438 11439 if test "x$ac_ct_DUMPBIN" = x; then 11440 DUMPBIN=":" 11441 else 11442 case $cross_compiling:$ac_tool_warned in 11443yes:) 11444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11446ac_tool_warned=yes ;; 11447esac 11448 DUMPBIN=$ac_ct_DUMPBIN 11449 fi 11450fi 11451 11452 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11453 *COFF*) 11454 DUMPBIN="$DUMPBIN -symbols -headers" 11455 ;; 11456 *) 11457 DUMPBIN=: 11458 ;; 11459 esac 11460 fi 11461 11462 if test : != "$DUMPBIN"; then 11463 NM=$DUMPBIN 11464 fi 11465fi 11466test -z "$NM" && NM=nm 11467 11468 11469 11470 11471 11472 11473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11474$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11475if ${lt_cv_nm_interface+:} false; then : 11476 $as_echo_n "(cached) " >&6 11477else 11478 lt_cv_nm_interface="BSD nm" 11479 echo "int some_variable = 0;" > conftest.$ac_ext 11480 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11481 (eval "$ac_compile" 2>conftest.err) 11482 cat conftest.err >&5 11483 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11484 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11485 cat conftest.err >&5 11486 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11487 cat conftest.out >&5 11488 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11489 lt_cv_nm_interface="MS dumpbin" 11490 fi 11491 rm -f conftest* 11492fi 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11494$as_echo "$lt_cv_nm_interface" >&6; } 11495 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11497$as_echo_n "checking whether ln -s works... " >&6; } 11498LN_S=$as_ln_s 11499if test "$LN_S" = "ln -s"; then 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11501$as_echo "yes" >&6; } 11502else 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11504$as_echo "no, using $LN_S" >&6; } 11505fi 11506 11507# find the maximum length of command line arguments 11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11509$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11510if ${lt_cv_sys_max_cmd_len+:} false; then : 11511 $as_echo_n "(cached) " >&6 11512else 11513 i=0 11514 teststring=ABCD 11515 11516 case $build_os in 11517 msdosdjgpp*) 11518 # On DJGPP, this test can blow up pretty badly due to problems in libc 11519 # (any single argument exceeding 2000 bytes causes a buffer overrun 11520 # during glob expansion). Even if it were fixed, the result of this 11521 # check would be larger than it should be. 11522 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11523 ;; 11524 11525 gnu*) 11526 # Under GNU Hurd, this test is not required because there is 11527 # no limit to the length of command line arguments. 11528 # Libtool will interpret -1 as no limit whatsoever 11529 lt_cv_sys_max_cmd_len=-1; 11530 ;; 11531 11532 cygwin* | mingw* | cegcc*) 11533 # On Win9x/ME, this test blows up -- it succeeds, but takes 11534 # about 5 minutes as the teststring grows exponentially. 11535 # Worse, since 9x/ME are not pre-emptively multitasking, 11536 # you end up with a "frozen" computer, even though with patience 11537 # the test eventually succeeds (with a max line length of 256k). 11538 # Instead, let's just punt: use the minimum linelength reported by 11539 # all of the supported platforms: 8192 (on NT/2K/XP). 11540 lt_cv_sys_max_cmd_len=8192; 11541 ;; 11542 11543 mint*) 11544 # On MiNT this can take a long time and run out of memory. 11545 lt_cv_sys_max_cmd_len=8192; 11546 ;; 11547 11548 amigaos*) 11549 # On AmigaOS with pdksh, this test takes hours, literally. 11550 # So we just punt and use a minimum line length of 8192. 11551 lt_cv_sys_max_cmd_len=8192; 11552 ;; 11553 11554 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11555 # This has been around since 386BSD, at least. Likely further. 11556 if test -x /sbin/sysctl; then 11557 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11558 elif test -x /usr/sbin/sysctl; then 11559 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11560 else 11561 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11562 fi 11563 # And add a safety zone 11564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11565 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11566 ;; 11567 11568 interix*) 11569 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11570 lt_cv_sys_max_cmd_len=196608 11571 ;; 11572 11573 os2*) 11574 # The test takes a long time on OS/2. 11575 lt_cv_sys_max_cmd_len=8192 11576 ;; 11577 11578 osf*) 11579 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11580 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11581 # nice to cause kernel panics so lets avoid the loop below. 11582 # First set a reasonable default. 11583 lt_cv_sys_max_cmd_len=16384 11584 # 11585 if test -x /sbin/sysconfig; then 11586 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11587 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11588 esac 11589 fi 11590 ;; 11591 sco3.2v5*) 11592 lt_cv_sys_max_cmd_len=102400 11593 ;; 11594 sysv5* | sco5v6* | sysv4.2uw2*) 11595 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11596 if test -n "$kargmax"; then 11597 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11598 else 11599 lt_cv_sys_max_cmd_len=32768 11600 fi 11601 ;; 11602 *) 11603 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11604 if test -n "$lt_cv_sys_max_cmd_len" && \ 11605 test undefined != "$lt_cv_sys_max_cmd_len"; then 11606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11608 else 11609 # Make teststring a little bigger before we do anything with it. 11610 # a 1K string should be a reasonable start. 11611 for i in 1 2 3 4 5 6 7 8; do 11612 teststring=$teststring$teststring 11613 done 11614 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11615 # If test is not a shell built-in, we'll probably end up computing a 11616 # maximum length that is only half of the actual maximum length, but 11617 # we can't tell. 11618 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11619 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11620 test 17 != "$i" # 1/2 MB should be enough 11621 do 11622 i=`expr $i + 1` 11623 teststring=$teststring$teststring 11624 done 11625 # Only check the string length outside the loop. 11626 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11627 teststring= 11628 # Add a significant safety factor because C++ compilers can tack on 11629 # massive amounts of additional arguments before passing them to the 11630 # linker. It appears as though 1/2 is a usable value. 11631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11632 fi 11633 ;; 11634 esac 11635 11636fi 11637 11638if test -n "$lt_cv_sys_max_cmd_len"; then 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11640$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11641else 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11643$as_echo "none" >&6; } 11644fi 11645max_cmd_len=$lt_cv_sys_max_cmd_len 11646 11647 11648 11649 11650 11651 11652: ${CP="cp -f"} 11653: ${MV="mv -f"} 11654: ${RM="rm -f"} 11655 11656if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11657 lt_unset=unset 11658else 11659 lt_unset=false 11660fi 11661 11662 11663 11664 11665 11666# test EBCDIC or ASCII 11667case `echo X|tr X '\101'` in 11668 A) # ASCII based system 11669 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11670 lt_SP2NL='tr \040 \012' 11671 lt_NL2SP='tr \015\012 \040\040' 11672 ;; 11673 *) # EBCDIC based system 11674 lt_SP2NL='tr \100 \n' 11675 lt_NL2SP='tr \r\n \100\100' 11676 ;; 11677esac 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11688$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11689if ${lt_cv_to_host_file_cmd+:} false; then : 11690 $as_echo_n "(cached) " >&6 11691else 11692 case $host in 11693 *-*-mingw* ) 11694 case $build in 11695 *-*-mingw* ) # actually msys 11696 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11697 ;; 11698 *-*-cygwin* ) 11699 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11700 ;; 11701 * ) # otherwise, assume *nix 11702 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11703 ;; 11704 esac 11705 ;; 11706 *-*-cygwin* ) 11707 case $build in 11708 *-*-mingw* ) # actually msys 11709 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11710 ;; 11711 *-*-cygwin* ) 11712 lt_cv_to_host_file_cmd=func_convert_file_noop 11713 ;; 11714 * ) # otherwise, assume *nix 11715 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11716 ;; 11717 esac 11718 ;; 11719 * ) # unhandled hosts (and "normal" native builds) 11720 lt_cv_to_host_file_cmd=func_convert_file_noop 11721 ;; 11722esac 11723 11724fi 11725 11726to_host_file_cmd=$lt_cv_to_host_file_cmd 11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11728$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11729 11730 11731 11732 11733 11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11735$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11736if ${lt_cv_to_tool_file_cmd+:} false; then : 11737 $as_echo_n "(cached) " >&6 11738else 11739 #assume ordinary cross tools, or native build. 11740lt_cv_to_tool_file_cmd=func_convert_file_noop 11741case $host in 11742 *-*-mingw* ) 11743 case $build in 11744 *-*-mingw* ) # actually msys 11745 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11746 ;; 11747 esac 11748 ;; 11749esac 11750 11751fi 11752 11753to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11755$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11756 11757 11758 11759 11760 11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11762$as_echo_n "checking for $LD option to reload object files... " >&6; } 11763if ${lt_cv_ld_reload_flag+:} false; then : 11764 $as_echo_n "(cached) " >&6 11765else 11766 lt_cv_ld_reload_flag='-r' 11767fi 11768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11769$as_echo "$lt_cv_ld_reload_flag" >&6; } 11770reload_flag=$lt_cv_ld_reload_flag 11771case $reload_flag in 11772"" | " "*) ;; 11773*) reload_flag=" $reload_flag" ;; 11774esac 11775reload_cmds='$LD$reload_flag -o $output$reload_objs' 11776case $host_os in 11777 cygwin* | mingw* | pw32* | cegcc*) 11778 if test yes != "$GCC"; then 11779 reload_cmds=false 11780 fi 11781 ;; 11782 darwin*) 11783 if test yes = "$GCC"; then 11784 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11785 else 11786 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11787 fi 11788 ;; 11789esac 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799if test -n "$ac_tool_prefix"; then 11800 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11801set dummy ${ac_tool_prefix}objdump; ac_word=$2 11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11803$as_echo_n "checking for $ac_word... " >&6; } 11804if ${ac_cv_prog_OBJDUMP+:} false; then : 11805 $as_echo_n "(cached) " >&6 11806else 11807 if test -n "$OBJDUMP"; then 11808 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11809else 11810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11811for as_dir in $PATH 11812do 11813 IFS=$as_save_IFS 11814 test -z "$as_dir" && as_dir=. 11815 for ac_exec_ext in '' $ac_executable_extensions; do 11816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11817 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11819 break 2 11820 fi 11821done 11822 done 11823IFS=$as_save_IFS 11824 11825fi 11826fi 11827OBJDUMP=$ac_cv_prog_OBJDUMP 11828if test -n "$OBJDUMP"; then 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11830$as_echo "$OBJDUMP" >&6; } 11831else 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11833$as_echo "no" >&6; } 11834fi 11835 11836 11837fi 11838if test -z "$ac_cv_prog_OBJDUMP"; then 11839 ac_ct_OBJDUMP=$OBJDUMP 11840 # Extract the first word of "objdump", so it can be a program name with args. 11841set dummy objdump; ac_word=$2 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11843$as_echo_n "checking for $ac_word... " >&6; } 11844if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11845 $as_echo_n "(cached) " >&6 11846else 11847 if test -n "$ac_ct_OBJDUMP"; then 11848 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11849else 11850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11851for as_dir in $PATH 11852do 11853 IFS=$as_save_IFS 11854 test -z "$as_dir" && as_dir=. 11855 for ac_exec_ext in '' $ac_executable_extensions; do 11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11857 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11859 break 2 11860 fi 11861done 11862 done 11863IFS=$as_save_IFS 11864 11865fi 11866fi 11867ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11868if test -n "$ac_ct_OBJDUMP"; then 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11870$as_echo "$ac_ct_OBJDUMP" >&6; } 11871else 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11873$as_echo "no" >&6; } 11874fi 11875 11876 if test "x$ac_ct_OBJDUMP" = x; then 11877 OBJDUMP="false" 11878 else 11879 case $cross_compiling:$ac_tool_warned in 11880yes:) 11881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11883ac_tool_warned=yes ;; 11884esac 11885 OBJDUMP=$ac_ct_OBJDUMP 11886 fi 11887else 11888 OBJDUMP="$ac_cv_prog_OBJDUMP" 11889fi 11890 11891test -z "$OBJDUMP" && OBJDUMP=objdump 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11902$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11903if ${lt_cv_deplibs_check_method+:} false; then : 11904 $as_echo_n "(cached) " >&6 11905else 11906 lt_cv_file_magic_cmd='$MAGIC_CMD' 11907lt_cv_file_magic_test_file= 11908lt_cv_deplibs_check_method='unknown' 11909# Need to set the preceding variable on all platforms that support 11910# interlibrary dependencies. 11911# 'none' -- dependencies not supported. 11912# 'unknown' -- same as none, but documents that we really don't know. 11913# 'pass_all' -- all dependencies passed with no checks. 11914# 'test_compile' -- check by making test program. 11915# 'file_magic [[regex]]' -- check by looking for files in library path 11916# that responds to the $file_magic_cmd with a given extended regex. 11917# If you have 'file' or equivalent on your system and you're not sure 11918# whether 'pass_all' will *always* work, you probably want this one. 11919 11920case $host_os in 11921aix[4-9]*) 11922 lt_cv_deplibs_check_method=pass_all 11923 ;; 11924 11925beos*) 11926 lt_cv_deplibs_check_method=pass_all 11927 ;; 11928 11929bsdi[45]*) 11930 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11931 lt_cv_file_magic_cmd='/usr/bin/file -L' 11932 lt_cv_file_magic_test_file=/shlib/libc.so 11933 ;; 11934 11935cygwin*) 11936 # func_win32_libid is a shell function defined in ltmain.sh 11937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11938 lt_cv_file_magic_cmd='func_win32_libid' 11939 ;; 11940 11941mingw* | pw32*) 11942 # Base MSYS/MinGW do not provide the 'file' command needed by 11943 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11944 # unless we find 'file', for example because we are cross-compiling. 11945 if ( file / ) >/dev/null 2>&1; then 11946 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11947 lt_cv_file_magic_cmd='func_win32_libid' 11948 else 11949 # Keep this pattern in sync with the one in func_win32_libid. 11950 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11951 lt_cv_file_magic_cmd='$OBJDUMP -f' 11952 fi 11953 ;; 11954 11955cegcc*) 11956 # use the weaker test based on 'objdump'. See mingw*. 11957 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11958 lt_cv_file_magic_cmd='$OBJDUMP -f' 11959 ;; 11960 11961darwin* | rhapsody*) 11962 lt_cv_deplibs_check_method=pass_all 11963 ;; 11964 11965freebsd* | dragonfly*) 11966 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11967 case $host_cpu in 11968 i*86 ) 11969 # Not sure whether the presence of OpenBSD here was a mistake. 11970 # Let's accept both of them until this is cleared up. 11971 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11972 lt_cv_file_magic_cmd=/usr/bin/file 11973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11974 ;; 11975 esac 11976 else 11977 lt_cv_deplibs_check_method=pass_all 11978 fi 11979 ;; 11980 11981haiku*) 11982 lt_cv_deplibs_check_method=pass_all 11983 ;; 11984 11985hpux10.20* | hpux11*) 11986 lt_cv_file_magic_cmd=/usr/bin/file 11987 case $host_cpu in 11988 ia64*) 11989 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11990 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11991 ;; 11992 hppa*64*) 11993 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]' 11994 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11995 ;; 11996 *) 11997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11998 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11999 ;; 12000 esac 12001 ;; 12002 12003interix[3-9]*) 12004 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12006 ;; 12007 12008irix5* | irix6* | nonstopux*) 12009 case $LD in 12010 *-32|*"-32 ") libmagic=32-bit;; 12011 *-n32|*"-n32 ") libmagic=N32;; 12012 *-64|*"-64 ") libmagic=64-bit;; 12013 *) libmagic=never-match;; 12014 esac 12015 lt_cv_deplibs_check_method=pass_all 12016 ;; 12017 12018# This must be glibc/ELF. 12019linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12020 lt_cv_deplibs_check_method=pass_all 12021 ;; 12022 12023netbsd*) 12024 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12026 else 12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12028 fi 12029 ;; 12030 12031newos6*) 12032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12033 lt_cv_file_magic_cmd=/usr/bin/file 12034 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12035 ;; 12036 12037*nto* | *qnx*) 12038 lt_cv_deplibs_check_method=pass_all 12039 ;; 12040 12041openbsd* | bitrig*) 12042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12044 else 12045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12046 fi 12047 ;; 12048 12049osf3* | osf4* | osf5*) 12050 lt_cv_deplibs_check_method=pass_all 12051 ;; 12052 12053rdos*) 12054 lt_cv_deplibs_check_method=pass_all 12055 ;; 12056 12057solaris*) 12058 lt_cv_deplibs_check_method=pass_all 12059 ;; 12060 12061sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12062 lt_cv_deplibs_check_method=pass_all 12063 ;; 12064 12065sysv4 | sysv4.3*) 12066 case $host_vendor in 12067 motorola) 12068 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]' 12069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12070 ;; 12071 ncr) 12072 lt_cv_deplibs_check_method=pass_all 12073 ;; 12074 sequent) 12075 lt_cv_file_magic_cmd='/bin/file' 12076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12077 ;; 12078 sni) 12079 lt_cv_file_magic_cmd='/bin/file' 12080 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12081 lt_cv_file_magic_test_file=/lib/libc.so 12082 ;; 12083 siemens) 12084 lt_cv_deplibs_check_method=pass_all 12085 ;; 12086 pc) 12087 lt_cv_deplibs_check_method=pass_all 12088 ;; 12089 esac 12090 ;; 12091 12092tpf*) 12093 lt_cv_deplibs_check_method=pass_all 12094 ;; 12095os2*) 12096 lt_cv_deplibs_check_method=pass_all 12097 ;; 12098esac 12099 12100fi 12101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12102$as_echo "$lt_cv_deplibs_check_method" >&6; } 12103 12104file_magic_glob= 12105want_nocaseglob=no 12106if test "$build" = "$host"; then 12107 case $host_os in 12108 mingw* | pw32*) 12109 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12110 want_nocaseglob=yes 12111 else 12112 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12113 fi 12114 ;; 12115 esac 12116fi 12117 12118file_magic_cmd=$lt_cv_file_magic_cmd 12119deplibs_check_method=$lt_cv_deplibs_check_method 12120test -z "$deplibs_check_method" && deplibs_check_method=unknown 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143if test -n "$ac_tool_prefix"; then 12144 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12145set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12147$as_echo_n "checking for $ac_word... " >&6; } 12148if ${ac_cv_prog_DLLTOOL+:} false; then : 12149 $as_echo_n "(cached) " >&6 12150else 12151 if test -n "$DLLTOOL"; then 12152 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12153else 12154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12155for as_dir in $PATH 12156do 12157 IFS=$as_save_IFS 12158 test -z "$as_dir" && as_dir=. 12159 for ac_exec_ext in '' $ac_executable_extensions; do 12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12161 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12163 break 2 12164 fi 12165done 12166 done 12167IFS=$as_save_IFS 12168 12169fi 12170fi 12171DLLTOOL=$ac_cv_prog_DLLTOOL 12172if test -n "$DLLTOOL"; then 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12174$as_echo "$DLLTOOL" >&6; } 12175else 12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12177$as_echo "no" >&6; } 12178fi 12179 12180 12181fi 12182if test -z "$ac_cv_prog_DLLTOOL"; then 12183 ac_ct_DLLTOOL=$DLLTOOL 12184 # Extract the first word of "dlltool", so it can be a program name with args. 12185set dummy dlltool; ac_word=$2 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12187$as_echo_n "checking for $ac_word... " >&6; } 12188if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 if test -n "$ac_ct_DLLTOOL"; then 12192 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12193else 12194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12195for as_dir in $PATH 12196do 12197 IFS=$as_save_IFS 12198 test -z "$as_dir" && as_dir=. 12199 for ac_exec_ext in '' $ac_executable_extensions; do 12200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12201 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12203 break 2 12204 fi 12205done 12206 done 12207IFS=$as_save_IFS 12208 12209fi 12210fi 12211ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12212if test -n "$ac_ct_DLLTOOL"; then 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12214$as_echo "$ac_ct_DLLTOOL" >&6; } 12215else 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12217$as_echo "no" >&6; } 12218fi 12219 12220 if test "x$ac_ct_DLLTOOL" = x; then 12221 DLLTOOL="false" 12222 else 12223 case $cross_compiling:$ac_tool_warned in 12224yes:) 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12227ac_tool_warned=yes ;; 12228esac 12229 DLLTOOL=$ac_ct_DLLTOOL 12230 fi 12231else 12232 DLLTOOL="$ac_cv_prog_DLLTOOL" 12233fi 12234 12235test -z "$DLLTOOL" && DLLTOOL=dlltool 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12247$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12248if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12249 $as_echo_n "(cached) " >&6 12250else 12251 lt_cv_sharedlib_from_linklib_cmd='unknown' 12252 12253case $host_os in 12254cygwin* | mingw* | pw32* | cegcc*) 12255 # two different shell functions defined in ltmain.sh; 12256 # decide which one to use based on capabilities of $DLLTOOL 12257 case `$DLLTOOL --help 2>&1` in 12258 *--identify-strict*) 12259 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12260 ;; 12261 *) 12262 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12263 ;; 12264 esac 12265 ;; 12266*) 12267 # fallback: assume linklib IS sharedlib 12268 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12269 ;; 12270esac 12271 12272fi 12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12274$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12275sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12276test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12277 12278 12279 12280 12281 12282 12283 12284if test -n "$ac_tool_prefix"; then 12285 for ac_prog in ar 12286 do 12287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12288set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12290$as_echo_n "checking for $ac_word... " >&6; } 12291if ${ac_cv_prog_AR+:} false; then : 12292 $as_echo_n "(cached) " >&6 12293else 12294 if test -n "$AR"; then 12295 ac_cv_prog_AR="$AR" # Let the user override the test. 12296else 12297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12298for as_dir in $PATH 12299do 12300 IFS=$as_save_IFS 12301 test -z "$as_dir" && as_dir=. 12302 for ac_exec_ext in '' $ac_executable_extensions; do 12303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12304 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12306 break 2 12307 fi 12308done 12309 done 12310IFS=$as_save_IFS 12311 12312fi 12313fi 12314AR=$ac_cv_prog_AR 12315if test -n "$AR"; then 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12317$as_echo "$AR" >&6; } 12318else 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12320$as_echo "no" >&6; } 12321fi 12322 12323 12324 test -n "$AR" && break 12325 done 12326fi 12327if test -z "$AR"; then 12328 ac_ct_AR=$AR 12329 for ac_prog in ar 12330do 12331 # Extract the first word of "$ac_prog", so it can be a program name with args. 12332set dummy $ac_prog; ac_word=$2 12333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12334$as_echo_n "checking for $ac_word... " >&6; } 12335if ${ac_cv_prog_ac_ct_AR+:} false; then : 12336 $as_echo_n "(cached) " >&6 12337else 12338 if test -n "$ac_ct_AR"; then 12339 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12340else 12341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12342for as_dir in $PATH 12343do 12344 IFS=$as_save_IFS 12345 test -z "$as_dir" && as_dir=. 12346 for ac_exec_ext in '' $ac_executable_extensions; do 12347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12348 ac_cv_prog_ac_ct_AR="$ac_prog" 12349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12350 break 2 12351 fi 12352done 12353 done 12354IFS=$as_save_IFS 12355 12356fi 12357fi 12358ac_ct_AR=$ac_cv_prog_ac_ct_AR 12359if test -n "$ac_ct_AR"; then 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12361$as_echo "$ac_ct_AR" >&6; } 12362else 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12364$as_echo "no" >&6; } 12365fi 12366 12367 12368 test -n "$ac_ct_AR" && break 12369done 12370 12371 if test "x$ac_ct_AR" = x; then 12372 AR="false" 12373 else 12374 case $cross_compiling:$ac_tool_warned in 12375yes:) 12376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12378ac_tool_warned=yes ;; 12379esac 12380 AR=$ac_ct_AR 12381 fi 12382fi 12383 12384: ${AR=ar} 12385: ${AR_FLAGS=cru} 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12398$as_echo_n "checking for archiver @FILE support... " >&6; } 12399if ${lt_cv_ar_at_file+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401else 12402 lt_cv_ar_at_file=no 12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405 12406int 12407main () 12408{ 12409 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414if ac_fn_c_try_compile "$LINENO"; then : 12415 echo conftest.$ac_objext > conftest.lst 12416 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12418 (eval $lt_ar_try) 2>&5 12419 ac_status=$? 12420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12421 test $ac_status = 0; } 12422 if test 0 -eq "$ac_status"; then 12423 # Ensure the archiver fails upon bogus file names. 12424 rm -f conftest.$ac_objext libconftest.a 12425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12426 (eval $lt_ar_try) 2>&5 12427 ac_status=$? 12428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12429 test $ac_status = 0; } 12430 if test 0 -ne "$ac_status"; then 12431 lt_cv_ar_at_file=@ 12432 fi 12433 fi 12434 rm -f conftest.* libconftest.a 12435 12436fi 12437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12438 12439fi 12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12441$as_echo "$lt_cv_ar_at_file" >&6; } 12442 12443if test no = "$lt_cv_ar_at_file"; then 12444 archiver_list_spec= 12445else 12446 archiver_list_spec=$lt_cv_ar_at_file 12447fi 12448 12449 12450 12451 12452 12453 12454 12455if test -n "$ac_tool_prefix"; then 12456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12457set dummy ${ac_tool_prefix}strip; ac_word=$2 12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12459$as_echo_n "checking for $ac_word... " >&6; } 12460if ${ac_cv_prog_STRIP+:} false; then : 12461 $as_echo_n "(cached) " >&6 12462else 12463 if test -n "$STRIP"; then 12464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12465else 12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12467for as_dir in $PATH 12468do 12469 IFS=$as_save_IFS 12470 test -z "$as_dir" && as_dir=. 12471 for ac_exec_ext in '' $ac_executable_extensions; do 12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12473 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12475 break 2 12476 fi 12477done 12478 done 12479IFS=$as_save_IFS 12480 12481fi 12482fi 12483STRIP=$ac_cv_prog_STRIP 12484if test -n "$STRIP"; then 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12486$as_echo "$STRIP" >&6; } 12487else 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12489$as_echo "no" >&6; } 12490fi 12491 12492 12493fi 12494if test -z "$ac_cv_prog_STRIP"; then 12495 ac_ct_STRIP=$STRIP 12496 # Extract the first word of "strip", so it can be a program name with args. 12497set dummy strip; ac_word=$2 12498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12499$as_echo_n "checking for $ac_word... " >&6; } 12500if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12501 $as_echo_n "(cached) " >&6 12502else 12503 if test -n "$ac_ct_STRIP"; then 12504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12505else 12506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12507for as_dir in $PATH 12508do 12509 IFS=$as_save_IFS 12510 test -z "$as_dir" && as_dir=. 12511 for ac_exec_ext in '' $ac_executable_extensions; do 12512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12513 ac_cv_prog_ac_ct_STRIP="strip" 12514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12515 break 2 12516 fi 12517done 12518 done 12519IFS=$as_save_IFS 12520 12521fi 12522fi 12523ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12524if test -n "$ac_ct_STRIP"; then 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12526$as_echo "$ac_ct_STRIP" >&6; } 12527else 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12529$as_echo "no" >&6; } 12530fi 12531 12532 if test "x$ac_ct_STRIP" = x; then 12533 STRIP=":" 12534 else 12535 case $cross_compiling:$ac_tool_warned in 12536yes:) 12537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12539ac_tool_warned=yes ;; 12540esac 12541 STRIP=$ac_ct_STRIP 12542 fi 12543else 12544 STRIP="$ac_cv_prog_STRIP" 12545fi 12546 12547test -z "$STRIP" && STRIP=: 12548 12549 12550 12551 12552 12553 12554if test -n "$ac_tool_prefix"; then 12555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12556set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12558$as_echo_n "checking for $ac_word... " >&6; } 12559if ${ac_cv_prog_RANLIB+:} false; then : 12560 $as_echo_n "(cached) " >&6 12561else 12562 if test -n "$RANLIB"; then 12563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12564else 12565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12566for as_dir in $PATH 12567do 12568 IFS=$as_save_IFS 12569 test -z "$as_dir" && as_dir=. 12570 for ac_exec_ext in '' $ac_executable_extensions; do 12571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12574 break 2 12575 fi 12576done 12577 done 12578IFS=$as_save_IFS 12579 12580fi 12581fi 12582RANLIB=$ac_cv_prog_RANLIB 12583if test -n "$RANLIB"; then 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12585$as_echo "$RANLIB" >&6; } 12586else 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12588$as_echo "no" >&6; } 12589fi 12590 12591 12592fi 12593if test -z "$ac_cv_prog_RANLIB"; then 12594 ac_ct_RANLIB=$RANLIB 12595 # Extract the first word of "ranlib", so it can be a program name with args. 12596set dummy ranlib; ac_word=$2 12597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12598$as_echo_n "checking for $ac_word... " >&6; } 12599if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12600 $as_echo_n "(cached) " >&6 12601else 12602 if test -n "$ac_ct_RANLIB"; then 12603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12604else 12605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12606for as_dir in $PATH 12607do 12608 IFS=$as_save_IFS 12609 test -z "$as_dir" && as_dir=. 12610 for ac_exec_ext in '' $ac_executable_extensions; do 12611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12612 ac_cv_prog_ac_ct_RANLIB="ranlib" 12613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12614 break 2 12615 fi 12616done 12617 done 12618IFS=$as_save_IFS 12619 12620fi 12621fi 12622ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12623if test -n "$ac_ct_RANLIB"; then 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12625$as_echo "$ac_ct_RANLIB" >&6; } 12626else 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12628$as_echo "no" >&6; } 12629fi 12630 12631 if test "x$ac_ct_RANLIB" = x; then 12632 RANLIB=":" 12633 else 12634 case $cross_compiling:$ac_tool_warned in 12635yes:) 12636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12638ac_tool_warned=yes ;; 12639esac 12640 RANLIB=$ac_ct_RANLIB 12641 fi 12642else 12643 RANLIB="$ac_cv_prog_RANLIB" 12644fi 12645 12646test -z "$RANLIB" && RANLIB=: 12647 12648 12649 12650 12651 12652 12653# Determine commands to create old-style static archives. 12654old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12655old_postinstall_cmds='chmod 644 $oldlib' 12656old_postuninstall_cmds= 12657 12658if test -n "$RANLIB"; then 12659 case $host_os in 12660 bitrig* | openbsd*) 12661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12662 ;; 12663 *) 12664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12665 ;; 12666 esac 12667 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12668fi 12669 12670case $host_os in 12671 darwin*) 12672 lock_old_archive_extraction=yes ;; 12673 *) 12674 lock_old_archive_extraction=no ;; 12675esac 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715# If no C compiler was specified, use CC. 12716LTCC=${LTCC-"$CC"} 12717 12718# If no C compiler flags were specified, use CFLAGS. 12719LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12720 12721# Allow CC to be a program name with arguments. 12722compiler=$CC 12723 12724 12725# Check for command to grab the raw symbol name followed by C symbol from nm. 12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12727$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12728if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12729 $as_echo_n "(cached) " >&6 12730else 12731 12732# These are sane defaults that work on at least a few old systems. 12733# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12734 12735# Character class describing NM global symbol codes. 12736symcode='[BCDEGRST]' 12737 12738# Regexp to match symbols that can be accessed directly from C. 12739sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12740 12741# Define system-specific variables. 12742case $host_os in 12743aix*) 12744 symcode='[BCDT]' 12745 ;; 12746cygwin* | mingw* | pw32* | cegcc*) 12747 symcode='[ABCDGISTW]' 12748 ;; 12749hpux*) 12750 if test ia64 = "$host_cpu"; then 12751 symcode='[ABCDEGRST]' 12752 fi 12753 ;; 12754irix* | nonstopux*) 12755 symcode='[BCDEGRST]' 12756 ;; 12757osf*) 12758 symcode='[BCDEGQRST]' 12759 ;; 12760solaris*) 12761 symcode='[BDRT]' 12762 ;; 12763sco3.2v5*) 12764 symcode='[DT]' 12765 ;; 12766sysv4.2uw2*) 12767 symcode='[DT]' 12768 ;; 12769sysv5* | sco5v6* | unixware* | OpenUNIX*) 12770 symcode='[ABDT]' 12771 ;; 12772sysv4) 12773 symcode='[DFNSTU]' 12774 ;; 12775esac 12776 12777# If we're using GNU nm, then use its standard symbol codes. 12778case `$NM -V 2>&1` in 12779*GNU* | *'with BFD'*) 12780 symcode='[ABCDGIRSTW]' ;; 12781esac 12782 12783if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12784 # Gets list of data symbols to import. 12785 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12786 # Adjust the below global symbol transforms to fixup imported variables. 12787 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12788 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12789 lt_c_name_lib_hook="\ 12790 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12791 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12792else 12793 # Disable hooks by default. 12794 lt_cv_sys_global_symbol_to_import= 12795 lt_cdecl_hook= 12796 lt_c_name_hook= 12797 lt_c_name_lib_hook= 12798fi 12799 12800# Transform an extracted symbol line into a proper C declaration. 12801# Some systems (esp. on ia64) link data and code symbols differently, 12802# so use this general approach. 12803lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12804$lt_cdecl_hook\ 12805" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12806" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12807 12808# Transform an extracted symbol line into symbol name and symbol address 12809lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12810$lt_c_name_hook\ 12811" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12812" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12813 12814# Transform an extracted symbol line into symbol name with lib prefix and 12815# symbol address. 12816lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12817$lt_c_name_lib_hook\ 12818" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12819" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12820" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12821 12822# Handle CRLF in mingw tool chain 12823opt_cr= 12824case $build_os in 12825mingw*) 12826 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12827 ;; 12828esac 12829 12830# Try without a prefix underscore, then with it. 12831for ac_symprfx in "" "_"; do 12832 12833 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12834 symxfrm="\\1 $ac_symprfx\\2 \\2" 12835 12836 # Write the raw and C identifiers. 12837 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12838 # Fake it for dumpbin and say T for any non-static function, 12839 # D for any global variable and I for any imported variable. 12840 # Also find C++ and __fastcall symbols from MSVC++, 12841 # which start with @ or ?. 12842 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12843" {last_section=section; section=\$ 3};"\ 12844" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12845" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12846" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12847" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12848" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12849" \$ 0!~/External *\|/{next};"\ 12850" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12851" {if(hide[section]) next};"\ 12852" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12853" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12854" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12855" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12856" ' prfx=^$ac_symprfx" 12857 else 12858 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12859 fi 12860 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12861 12862 # Check to see that the pipe works correctly. 12863 pipe_works=no 12864 12865 rm -f conftest* 12866 cat > conftest.$ac_ext <<_LT_EOF 12867#ifdef __cplusplus 12868extern "C" { 12869#endif 12870char nm_test_var; 12871void nm_test_func(void); 12872void nm_test_func(void){} 12873#ifdef __cplusplus 12874} 12875#endif 12876int main(){nm_test_var='a';nm_test_func();return(0);} 12877_LT_EOF 12878 12879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12880 (eval $ac_compile) 2>&5 12881 ac_status=$? 12882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12883 test $ac_status = 0; }; then 12884 # Now try to grab the symbols. 12885 nlist=conftest.nm 12886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12887 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12888 ac_status=$? 12889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12890 test $ac_status = 0; } && test -s "$nlist"; then 12891 # Try sorting and uniquifying the output. 12892 if sort "$nlist" | uniq > "$nlist"T; then 12893 mv -f "$nlist"T "$nlist" 12894 else 12895 rm -f "$nlist"T 12896 fi 12897 12898 # Make sure that we snagged all the symbols we need. 12899 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12900 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12901 cat <<_LT_EOF > conftest.$ac_ext 12902/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12903#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12904/* DATA imports from DLLs on WIN32 can't be const, because runtime 12905 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12906# define LT_DLSYM_CONST 12907#elif defined __osf__ 12908/* This system does not cope well with relocations in const data. */ 12909# define LT_DLSYM_CONST 12910#else 12911# define LT_DLSYM_CONST const 12912#endif 12913 12914#ifdef __cplusplus 12915extern "C" { 12916#endif 12917 12918_LT_EOF 12919 # Now generate the symbol file. 12920 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12921 12922 cat <<_LT_EOF >> conftest.$ac_ext 12923 12924/* The mapping between symbol names and symbols. */ 12925LT_DLSYM_CONST struct { 12926 const char *name; 12927 void *address; 12928} 12929lt__PROGRAM__LTX_preloaded_symbols[] = 12930{ 12931 { "@PROGRAM@", (void *) 0 }, 12932_LT_EOF 12933 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12934 cat <<\_LT_EOF >> conftest.$ac_ext 12935 {0, (void *) 0} 12936}; 12937 12938/* This works around a problem in FreeBSD linker */ 12939#ifdef FREEBSD_WORKAROUND 12940static const void *lt_preloaded_setup() { 12941 return lt__PROGRAM__LTX_preloaded_symbols; 12942} 12943#endif 12944 12945#ifdef __cplusplus 12946} 12947#endif 12948_LT_EOF 12949 # Now try linking the two files. 12950 mv conftest.$ac_objext conftstm.$ac_objext 12951 lt_globsym_save_LIBS=$LIBS 12952 lt_globsym_save_CFLAGS=$CFLAGS 12953 LIBS=conftstm.$ac_objext 12954 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12956 (eval $ac_link) 2>&5 12957 ac_status=$? 12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12959 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12960 pipe_works=yes 12961 fi 12962 LIBS=$lt_globsym_save_LIBS 12963 CFLAGS=$lt_globsym_save_CFLAGS 12964 else 12965 echo "cannot find nm_test_func in $nlist" >&5 12966 fi 12967 else 12968 echo "cannot find nm_test_var in $nlist" >&5 12969 fi 12970 else 12971 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12972 fi 12973 else 12974 echo "$progname: failed program was:" >&5 12975 cat conftest.$ac_ext >&5 12976 fi 12977 rm -rf conftest* conftst* 12978 12979 # Do not use the global_symbol_pipe unless it works. 12980 if test yes = "$pipe_works"; then 12981 break 12982 else 12983 lt_cv_sys_global_symbol_pipe= 12984 fi 12985done 12986 12987fi 12988 12989if test -z "$lt_cv_sys_global_symbol_pipe"; then 12990 lt_cv_sys_global_symbol_to_cdecl= 12991fi 12992if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12994$as_echo "failed" >&6; } 12995else 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12997$as_echo "ok" >&6; } 12998fi 12999 13000# Response file support. 13001if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13002 nm_file_list_spec='@' 13003elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13004 nm_file_list_spec='@' 13005fi 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13044$as_echo_n "checking for sysroot... " >&6; } 13045 13046# Check whether --with-sysroot was given. 13047if test "${with_sysroot+set}" = set; then : 13048 withval=$with_sysroot; 13049else 13050 with_sysroot=no 13051fi 13052 13053 13054lt_sysroot= 13055case $with_sysroot in #( 13056 yes) 13057 if test yes = "$GCC"; then 13058 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13059 fi 13060 ;; #( 13061 /*) 13062 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13063 ;; #( 13064 no|'') 13065 ;; #( 13066 *) 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13068$as_echo "$with_sysroot" >&6; } 13069 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13070 ;; 13071esac 13072 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13074$as_echo "${lt_sysroot:-no}" >&6; } 13075 13076 13077 13078 13079 13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13081$as_echo_n "checking for a working dd... " >&6; } 13082if ${ac_cv_path_lt_DD+:} false; then : 13083 $as_echo_n "(cached) " >&6 13084else 13085 printf 0123456789abcdef0123456789abcdef >conftest.i 13086cat conftest.i conftest.i >conftest2.i 13087: ${lt_DD:=$DD} 13088if test -z "$lt_DD"; then 13089 ac_path_lt_DD_found=false 13090 # Loop through the user's path and test for each of PROGNAME-LIST 13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13092for as_dir in $PATH 13093do 13094 IFS=$as_save_IFS 13095 test -z "$as_dir" && as_dir=. 13096 for ac_prog in dd; do 13097 for ac_exec_ext in '' $ac_executable_extensions; do 13098 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13099 as_fn_executable_p "$ac_path_lt_DD" || continue 13100if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13101 cmp -s conftest.i conftest.out \ 13102 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13103fi 13104 $ac_path_lt_DD_found && break 3 13105 done 13106 done 13107 done 13108IFS=$as_save_IFS 13109 if test -z "$ac_cv_path_lt_DD"; then 13110 : 13111 fi 13112else 13113 ac_cv_path_lt_DD=$lt_DD 13114fi 13115 13116rm -f conftest.i conftest2.i conftest.out 13117fi 13118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13119$as_echo "$ac_cv_path_lt_DD" >&6; } 13120 13121 13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13123$as_echo_n "checking how to truncate binary pipes... " >&6; } 13124if ${lt_cv_truncate_bin+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 printf 0123456789abcdef0123456789abcdef >conftest.i 13128cat conftest.i conftest.i >conftest2.i 13129lt_cv_truncate_bin= 13130if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13131 cmp -s conftest.i conftest.out \ 13132 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13133fi 13134rm -f conftest.i conftest2.i conftest.out 13135test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13136fi 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13138$as_echo "$lt_cv_truncate_bin" >&6; } 13139 13140 13141 13142 13143 13144 13145 13146# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13147func_cc_basename () 13148{ 13149 for cc_temp in $*""; do 13150 case $cc_temp in 13151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13153 \-*) ;; 13154 *) break;; 13155 esac 13156 done 13157 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13158} 13159 13160# Check whether --enable-libtool-lock was given. 13161if test "${enable_libtool_lock+set}" = set; then : 13162 enableval=$enable_libtool_lock; 13163fi 13164 13165test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13166 13167# Some flags need to be propagated to the compiler or linker for good 13168# libtool support. 13169case $host in 13170ia64-*-hpux*) 13171 # Find out what ABI is being produced by ac_compile, and set mode 13172 # options accordingly. 13173 echo 'int i;' > conftest.$ac_ext 13174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13175 (eval $ac_compile) 2>&5 13176 ac_status=$? 13177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13178 test $ac_status = 0; }; then 13179 case `/usr/bin/file conftest.$ac_objext` in 13180 *ELF-32*) 13181 HPUX_IA64_MODE=32 13182 ;; 13183 *ELF-64*) 13184 HPUX_IA64_MODE=64 13185 ;; 13186 esac 13187 fi 13188 rm -rf conftest* 13189 ;; 13190*-*-irix6*) 13191 # Find out what ABI is being produced by ac_compile, and set linker 13192 # options accordingly. 13193 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13195 (eval $ac_compile) 2>&5 13196 ac_status=$? 13197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13198 test $ac_status = 0; }; then 13199 if test yes = "$lt_cv_prog_gnu_ld"; then 13200 case `/usr/bin/file conftest.$ac_objext` in 13201 *32-bit*) 13202 LD="${LD-ld} -melf32bsmip" 13203 ;; 13204 *N32*) 13205 LD="${LD-ld} -melf32bmipn32" 13206 ;; 13207 *64-bit*) 13208 LD="${LD-ld} -melf64bmip" 13209 ;; 13210 esac 13211 else 13212 case `/usr/bin/file conftest.$ac_objext` in 13213 *32-bit*) 13214 LD="${LD-ld} -32" 13215 ;; 13216 *N32*) 13217 LD="${LD-ld} -n32" 13218 ;; 13219 *64-bit*) 13220 LD="${LD-ld} -64" 13221 ;; 13222 esac 13223 fi 13224 fi 13225 rm -rf conftest* 13226 ;; 13227 13228mips64*-*linux*) 13229 # Find out what ABI is being produced by ac_compile, and set linker 13230 # options accordingly. 13231 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13233 (eval $ac_compile) 2>&5 13234 ac_status=$? 13235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13236 test $ac_status = 0; }; then 13237 emul=elf 13238 case `/usr/bin/file conftest.$ac_objext` in 13239 *32-bit*) 13240 emul="${emul}32" 13241 ;; 13242 *64-bit*) 13243 emul="${emul}64" 13244 ;; 13245 esac 13246 case `/usr/bin/file conftest.$ac_objext` in 13247 *MSB*) 13248 emul="${emul}btsmip" 13249 ;; 13250 *LSB*) 13251 emul="${emul}ltsmip" 13252 ;; 13253 esac 13254 case `/usr/bin/file conftest.$ac_objext` in 13255 *N32*) 13256 emul="${emul}n32" 13257 ;; 13258 esac 13259 LD="${LD-ld} -m $emul" 13260 fi 13261 rm -rf conftest* 13262 ;; 13263 13264x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13265s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13266 # Find out what ABI is being produced by ac_compile, and set linker 13267 # options accordingly. Note that the listed cases only cover the 13268 # situations where additional linker options are needed (such as when 13269 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13270 # vice versa); the common cases where no linker options are needed do 13271 # not appear in the list. 13272 echo 'int i;' > conftest.$ac_ext 13273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13274 (eval $ac_compile) 2>&5 13275 ac_status=$? 13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13277 test $ac_status = 0; }; then 13278 case `/usr/bin/file conftest.o` in 13279 *32-bit*) 13280 case $host in 13281 x86_64-*kfreebsd*-gnu) 13282 LD="${LD-ld} -m elf_i386_fbsd" 13283 ;; 13284 x86_64-*linux*) 13285 case `/usr/bin/file conftest.o` in 13286 *x86-64*) 13287 LD="${LD-ld} -m elf32_x86_64" 13288 ;; 13289 *) 13290 LD="${LD-ld} -m elf_i386" 13291 ;; 13292 esac 13293 ;; 13294 powerpc64le-*linux*) 13295 LD="${LD-ld} -m elf32lppclinux" 13296 ;; 13297 powerpc64-*linux*) 13298 LD="${LD-ld} -m elf32ppclinux" 13299 ;; 13300 s390x-*linux*) 13301 LD="${LD-ld} -m elf_s390" 13302 ;; 13303 sparc64-*linux*) 13304 LD="${LD-ld} -m elf32_sparc" 13305 ;; 13306 esac 13307 ;; 13308 *64-bit*) 13309 case $host in 13310 x86_64-*kfreebsd*-gnu) 13311 LD="${LD-ld} -m elf_x86_64_fbsd" 13312 ;; 13313 x86_64-*linux*) 13314 LD="${LD-ld} -m elf_x86_64" 13315 ;; 13316 powerpcle-*linux*) 13317 LD="${LD-ld} -m elf64lppc" 13318 ;; 13319 powerpc-*linux*) 13320 LD="${LD-ld} -m elf64ppc" 13321 ;; 13322 s390*-*linux*|s390*-*tpf*) 13323 LD="${LD-ld} -m elf64_s390" 13324 ;; 13325 sparc*-*linux*) 13326 LD="${LD-ld} -m elf64_sparc" 13327 ;; 13328 esac 13329 ;; 13330 esac 13331 fi 13332 rm -rf conftest* 13333 ;; 13334 13335*-*-sco3.2v5*) 13336 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13337 SAVE_CFLAGS=$CFLAGS 13338 CFLAGS="$CFLAGS -belf" 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13340$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13341if ${lt_cv_cc_needs_belf+:} false; then : 13342 $as_echo_n "(cached) " >&6 13343else 13344 ac_ext=c 13345ac_cpp='$CPP $CPPFLAGS' 13346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13348ac_compiler_gnu=$ac_cv_c_compiler_gnu 13349 13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13351/* end confdefs.h. */ 13352 13353int 13354main () 13355{ 13356 13357 ; 13358 return 0; 13359} 13360_ACEOF 13361if ac_fn_c_try_link "$LINENO"; then : 13362 lt_cv_cc_needs_belf=yes 13363else 13364 lt_cv_cc_needs_belf=no 13365fi 13366rm -f core conftest.err conftest.$ac_objext \ 13367 conftest$ac_exeext conftest.$ac_ext 13368 ac_ext=c 13369ac_cpp='$CPP $CPPFLAGS' 13370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13372ac_compiler_gnu=$ac_cv_c_compiler_gnu 13373 13374fi 13375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13376$as_echo "$lt_cv_cc_needs_belf" >&6; } 13377 if test yes != "$lt_cv_cc_needs_belf"; then 13378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13379 CFLAGS=$SAVE_CFLAGS 13380 fi 13381 ;; 13382*-*solaris*) 13383 # Find out what ABI is being produced by ac_compile, and set linker 13384 # options accordingly. 13385 echo 'int i;' > conftest.$ac_ext 13386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13387 (eval $ac_compile) 2>&5 13388 ac_status=$? 13389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13390 test $ac_status = 0; }; then 13391 case `/usr/bin/file conftest.o` in 13392 *64-bit*) 13393 case $lt_cv_prog_gnu_ld in 13394 yes*) 13395 case $host in 13396 i?86-*-solaris*|x86_64-*-solaris*) 13397 LD="${LD-ld} -m elf_x86_64" 13398 ;; 13399 sparc*-*-solaris*) 13400 LD="${LD-ld} -m elf64_sparc" 13401 ;; 13402 esac 13403 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13404 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13405 LD=${LD-ld}_sol2 13406 fi 13407 ;; 13408 *) 13409 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13410 LD="${LD-ld} -64" 13411 fi 13412 ;; 13413 esac 13414 ;; 13415 esac 13416 fi 13417 rm -rf conftest* 13418 ;; 13419esac 13420 13421need_locks=$enable_libtool_lock 13422 13423if test -n "$ac_tool_prefix"; then 13424 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13425set dummy ${ac_tool_prefix}mt; ac_word=$2 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13427$as_echo_n "checking for $ac_word... " >&6; } 13428if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13429 $as_echo_n "(cached) " >&6 13430else 13431 if test -n "$MANIFEST_TOOL"; then 13432 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13433else 13434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13435for as_dir in $PATH 13436do 13437 IFS=$as_save_IFS 13438 test -z "$as_dir" && as_dir=. 13439 for ac_exec_ext in '' $ac_executable_extensions; do 13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13441 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13443 break 2 13444 fi 13445done 13446 done 13447IFS=$as_save_IFS 13448 13449fi 13450fi 13451MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13452if test -n "$MANIFEST_TOOL"; then 13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13454$as_echo "$MANIFEST_TOOL" >&6; } 13455else 13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13457$as_echo "no" >&6; } 13458fi 13459 13460 13461fi 13462if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13463 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13464 # Extract the first word of "mt", so it can be a program name with args. 13465set dummy mt; ac_word=$2 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13467$as_echo_n "checking for $ac_word... " >&6; } 13468if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13469 $as_echo_n "(cached) " >&6 13470else 13471 if test -n "$ac_ct_MANIFEST_TOOL"; then 13472 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13473else 13474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13475for as_dir in $PATH 13476do 13477 IFS=$as_save_IFS 13478 test -z "$as_dir" && as_dir=. 13479 for ac_exec_ext in '' $ac_executable_extensions; do 13480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13481 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13483 break 2 13484 fi 13485done 13486 done 13487IFS=$as_save_IFS 13488 13489fi 13490fi 13491ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13492if test -n "$ac_ct_MANIFEST_TOOL"; then 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13494$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13495else 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13497$as_echo "no" >&6; } 13498fi 13499 13500 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13501 MANIFEST_TOOL=":" 13502 else 13503 case $cross_compiling:$ac_tool_warned in 13504yes:) 13505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13507ac_tool_warned=yes ;; 13508esac 13509 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13510 fi 13511else 13512 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13513fi 13514 13515test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13517$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13518if ${lt_cv_path_mainfest_tool+:} false; then : 13519 $as_echo_n "(cached) " >&6 13520else 13521 lt_cv_path_mainfest_tool=no 13522 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13523 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13524 cat conftest.err >&5 13525 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13526 lt_cv_path_mainfest_tool=yes 13527 fi 13528 rm -f conftest* 13529fi 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13531$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13532if test yes != "$lt_cv_path_mainfest_tool"; then 13533 MANIFEST_TOOL=: 13534fi 13535 13536 13537 13538 13539 13540 13541 case $host_os in 13542 rhapsody* | darwin*) 13543 if test -n "$ac_tool_prefix"; then 13544 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13545set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13547$as_echo_n "checking for $ac_word... " >&6; } 13548if ${ac_cv_prog_DSYMUTIL+:} false; then : 13549 $as_echo_n "(cached) " >&6 13550else 13551 if test -n "$DSYMUTIL"; then 13552 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13553else 13554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13555for as_dir in $PATH 13556do 13557 IFS=$as_save_IFS 13558 test -z "$as_dir" && as_dir=. 13559 for ac_exec_ext in '' $ac_executable_extensions; do 13560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13561 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13563 break 2 13564 fi 13565done 13566 done 13567IFS=$as_save_IFS 13568 13569fi 13570fi 13571DSYMUTIL=$ac_cv_prog_DSYMUTIL 13572if test -n "$DSYMUTIL"; then 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13574$as_echo "$DSYMUTIL" >&6; } 13575else 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13577$as_echo "no" >&6; } 13578fi 13579 13580 13581fi 13582if test -z "$ac_cv_prog_DSYMUTIL"; then 13583 ac_ct_DSYMUTIL=$DSYMUTIL 13584 # Extract the first word of "dsymutil", so it can be a program name with args. 13585set dummy dsymutil; ac_word=$2 13586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13587$as_echo_n "checking for $ac_word... " >&6; } 13588if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13589 $as_echo_n "(cached) " >&6 13590else 13591 if test -n "$ac_ct_DSYMUTIL"; then 13592 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13593else 13594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13595for as_dir in $PATH 13596do 13597 IFS=$as_save_IFS 13598 test -z "$as_dir" && as_dir=. 13599 for ac_exec_ext in '' $ac_executable_extensions; do 13600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13601 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13603 break 2 13604 fi 13605done 13606 done 13607IFS=$as_save_IFS 13608 13609fi 13610fi 13611ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13612if test -n "$ac_ct_DSYMUTIL"; then 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13614$as_echo "$ac_ct_DSYMUTIL" >&6; } 13615else 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13617$as_echo "no" >&6; } 13618fi 13619 13620 if test "x$ac_ct_DSYMUTIL" = x; then 13621 DSYMUTIL=":" 13622 else 13623 case $cross_compiling:$ac_tool_warned in 13624yes:) 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13627ac_tool_warned=yes ;; 13628esac 13629 DSYMUTIL=$ac_ct_DSYMUTIL 13630 fi 13631else 13632 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13633fi 13634 13635 if test -n "$ac_tool_prefix"; then 13636 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13637set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13639$as_echo_n "checking for $ac_word... " >&6; } 13640if ${ac_cv_prog_NMEDIT+:} false; then : 13641 $as_echo_n "(cached) " >&6 13642else 13643 if test -n "$NMEDIT"; then 13644 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13645else 13646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13647for as_dir in $PATH 13648do 13649 IFS=$as_save_IFS 13650 test -z "$as_dir" && as_dir=. 13651 for ac_exec_ext in '' $ac_executable_extensions; do 13652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13653 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13655 break 2 13656 fi 13657done 13658 done 13659IFS=$as_save_IFS 13660 13661fi 13662fi 13663NMEDIT=$ac_cv_prog_NMEDIT 13664if test -n "$NMEDIT"; then 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13666$as_echo "$NMEDIT" >&6; } 13667else 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13669$as_echo "no" >&6; } 13670fi 13671 13672 13673fi 13674if test -z "$ac_cv_prog_NMEDIT"; then 13675 ac_ct_NMEDIT=$NMEDIT 13676 # Extract the first word of "nmedit", so it can be a program name with args. 13677set dummy nmedit; ac_word=$2 13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13679$as_echo_n "checking for $ac_word... " >&6; } 13680if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13681 $as_echo_n "(cached) " >&6 13682else 13683 if test -n "$ac_ct_NMEDIT"; then 13684 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13685else 13686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13687for as_dir in $PATH 13688do 13689 IFS=$as_save_IFS 13690 test -z "$as_dir" && as_dir=. 13691 for ac_exec_ext in '' $ac_executable_extensions; do 13692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13693 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13695 break 2 13696 fi 13697done 13698 done 13699IFS=$as_save_IFS 13700 13701fi 13702fi 13703ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13704if test -n "$ac_ct_NMEDIT"; then 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13706$as_echo "$ac_ct_NMEDIT" >&6; } 13707else 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13709$as_echo "no" >&6; } 13710fi 13711 13712 if test "x$ac_ct_NMEDIT" = x; then 13713 NMEDIT=":" 13714 else 13715 case $cross_compiling:$ac_tool_warned in 13716yes:) 13717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13719ac_tool_warned=yes ;; 13720esac 13721 NMEDIT=$ac_ct_NMEDIT 13722 fi 13723else 13724 NMEDIT="$ac_cv_prog_NMEDIT" 13725fi 13726 13727 if test -n "$ac_tool_prefix"; then 13728 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13729set dummy ${ac_tool_prefix}lipo; ac_word=$2 13730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13731$as_echo_n "checking for $ac_word... " >&6; } 13732if ${ac_cv_prog_LIPO+:} false; then : 13733 $as_echo_n "(cached) " >&6 13734else 13735 if test -n "$LIPO"; then 13736 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13737else 13738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13739for as_dir in $PATH 13740do 13741 IFS=$as_save_IFS 13742 test -z "$as_dir" && as_dir=. 13743 for ac_exec_ext in '' $ac_executable_extensions; do 13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13745 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13747 break 2 13748 fi 13749done 13750 done 13751IFS=$as_save_IFS 13752 13753fi 13754fi 13755LIPO=$ac_cv_prog_LIPO 13756if test -n "$LIPO"; then 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13758$as_echo "$LIPO" >&6; } 13759else 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13761$as_echo "no" >&6; } 13762fi 13763 13764 13765fi 13766if test -z "$ac_cv_prog_LIPO"; then 13767 ac_ct_LIPO=$LIPO 13768 # Extract the first word of "lipo", so it can be a program name with args. 13769set dummy lipo; ac_word=$2 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13771$as_echo_n "checking for $ac_word... " >&6; } 13772if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13773 $as_echo_n "(cached) " >&6 13774else 13775 if test -n "$ac_ct_LIPO"; then 13776 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13777else 13778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13779for as_dir in $PATH 13780do 13781 IFS=$as_save_IFS 13782 test -z "$as_dir" && as_dir=. 13783 for ac_exec_ext in '' $ac_executable_extensions; do 13784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13785 ac_cv_prog_ac_ct_LIPO="lipo" 13786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13787 break 2 13788 fi 13789done 13790 done 13791IFS=$as_save_IFS 13792 13793fi 13794fi 13795ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13796if test -n "$ac_ct_LIPO"; then 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13798$as_echo "$ac_ct_LIPO" >&6; } 13799else 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13801$as_echo "no" >&6; } 13802fi 13803 13804 if test "x$ac_ct_LIPO" = x; then 13805 LIPO=":" 13806 else 13807 case $cross_compiling:$ac_tool_warned in 13808yes:) 13809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13811ac_tool_warned=yes ;; 13812esac 13813 LIPO=$ac_ct_LIPO 13814 fi 13815else 13816 LIPO="$ac_cv_prog_LIPO" 13817fi 13818 13819 if test -n "$ac_tool_prefix"; then 13820 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13821set dummy ${ac_tool_prefix}otool; ac_word=$2 13822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13823$as_echo_n "checking for $ac_word... " >&6; } 13824if ${ac_cv_prog_OTOOL+:} false; then : 13825 $as_echo_n "(cached) " >&6 13826else 13827 if test -n "$OTOOL"; then 13828 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13829else 13830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13831for as_dir in $PATH 13832do 13833 IFS=$as_save_IFS 13834 test -z "$as_dir" && as_dir=. 13835 for ac_exec_ext in '' $ac_executable_extensions; do 13836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13837 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13839 break 2 13840 fi 13841done 13842 done 13843IFS=$as_save_IFS 13844 13845fi 13846fi 13847OTOOL=$ac_cv_prog_OTOOL 13848if test -n "$OTOOL"; then 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13850$as_echo "$OTOOL" >&6; } 13851else 13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13853$as_echo "no" >&6; } 13854fi 13855 13856 13857fi 13858if test -z "$ac_cv_prog_OTOOL"; then 13859 ac_ct_OTOOL=$OTOOL 13860 # Extract the first word of "otool", so it can be a program name with args. 13861set dummy otool; ac_word=$2 13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13863$as_echo_n "checking for $ac_word... " >&6; } 13864if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13865 $as_echo_n "(cached) " >&6 13866else 13867 if test -n "$ac_ct_OTOOL"; then 13868 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13869else 13870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13871for as_dir in $PATH 13872do 13873 IFS=$as_save_IFS 13874 test -z "$as_dir" && as_dir=. 13875 for ac_exec_ext in '' $ac_executable_extensions; do 13876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13877 ac_cv_prog_ac_ct_OTOOL="otool" 13878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13879 break 2 13880 fi 13881done 13882 done 13883IFS=$as_save_IFS 13884 13885fi 13886fi 13887ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13888if test -n "$ac_ct_OTOOL"; then 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13890$as_echo "$ac_ct_OTOOL" >&6; } 13891else 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13893$as_echo "no" >&6; } 13894fi 13895 13896 if test "x$ac_ct_OTOOL" = x; then 13897 OTOOL=":" 13898 else 13899 case $cross_compiling:$ac_tool_warned in 13900yes:) 13901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13903ac_tool_warned=yes ;; 13904esac 13905 OTOOL=$ac_ct_OTOOL 13906 fi 13907else 13908 OTOOL="$ac_cv_prog_OTOOL" 13909fi 13910 13911 if test -n "$ac_tool_prefix"; then 13912 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13913set dummy ${ac_tool_prefix}otool64; ac_word=$2 13914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13915$as_echo_n "checking for $ac_word... " >&6; } 13916if ${ac_cv_prog_OTOOL64+:} false; then : 13917 $as_echo_n "(cached) " >&6 13918else 13919 if test -n "$OTOOL64"; then 13920 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13921else 13922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13923for as_dir in $PATH 13924do 13925 IFS=$as_save_IFS 13926 test -z "$as_dir" && as_dir=. 13927 for ac_exec_ext in '' $ac_executable_extensions; do 13928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13929 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13931 break 2 13932 fi 13933done 13934 done 13935IFS=$as_save_IFS 13936 13937fi 13938fi 13939OTOOL64=$ac_cv_prog_OTOOL64 13940if test -n "$OTOOL64"; then 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13942$as_echo "$OTOOL64" >&6; } 13943else 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13945$as_echo "no" >&6; } 13946fi 13947 13948 13949fi 13950if test -z "$ac_cv_prog_OTOOL64"; then 13951 ac_ct_OTOOL64=$OTOOL64 13952 # Extract the first word of "otool64", so it can be a program name with args. 13953set dummy otool64; ac_word=$2 13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13955$as_echo_n "checking for $ac_word... " >&6; } 13956if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 if test -n "$ac_ct_OTOOL64"; then 13960 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13961else 13962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13963for as_dir in $PATH 13964do 13965 IFS=$as_save_IFS 13966 test -z "$as_dir" && as_dir=. 13967 for ac_exec_ext in '' $ac_executable_extensions; do 13968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13969 ac_cv_prog_ac_ct_OTOOL64="otool64" 13970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13971 break 2 13972 fi 13973done 13974 done 13975IFS=$as_save_IFS 13976 13977fi 13978fi 13979ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13980if test -n "$ac_ct_OTOOL64"; then 13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13982$as_echo "$ac_ct_OTOOL64" >&6; } 13983else 13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13985$as_echo "no" >&6; } 13986fi 13987 13988 if test "x$ac_ct_OTOOL64" = x; then 13989 OTOOL64=":" 13990 else 13991 case $cross_compiling:$ac_tool_warned in 13992yes:) 13993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13995ac_tool_warned=yes ;; 13996esac 13997 OTOOL64=$ac_ct_OTOOL64 13998 fi 13999else 14000 OTOOL64="$ac_cv_prog_OTOOL64" 14001fi 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14030$as_echo_n "checking for -single_module linker flag... " >&6; } 14031if ${lt_cv_apple_cc_single_mod+:} false; then : 14032 $as_echo_n "(cached) " >&6 14033else 14034 lt_cv_apple_cc_single_mod=no 14035 if test -z "$LT_MULTI_MODULE"; then 14036 # By default we will add the -single_module flag. You can override 14037 # by either setting the environment variable LT_MULTI_MODULE 14038 # non-empty at configure time, or by adding -multi_module to the 14039 # link flags. 14040 rm -rf libconftest.dylib* 14041 echo "int foo(void){return 1;}" > conftest.c 14042 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14043-dynamiclib -Wl,-single_module conftest.c" >&5 14044 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14045 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14046 _lt_result=$? 14047 # If there is a non-empty error log, and "single_module" 14048 # appears in it, assume the flag caused a linker warning 14049 if test -s conftest.err && $GREP single_module conftest.err; then 14050 cat conftest.err >&5 14051 # Otherwise, if the output was created with a 0 exit code from 14052 # the compiler, it worked. 14053 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14054 lt_cv_apple_cc_single_mod=yes 14055 else 14056 cat conftest.err >&5 14057 fi 14058 rm -rf libconftest.dylib* 14059 rm -f conftest.* 14060 fi 14061fi 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14063$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14064 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14066$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14067if ${lt_cv_ld_exported_symbols_list+:} false; then : 14068 $as_echo_n "(cached) " >&6 14069else 14070 lt_cv_ld_exported_symbols_list=no 14071 save_LDFLAGS=$LDFLAGS 14072 echo "_main" > conftest.sym 14073 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14075/* end confdefs.h. */ 14076 14077int 14078main () 14079{ 14080 14081 ; 14082 return 0; 14083} 14084_ACEOF 14085if ac_fn_c_try_link "$LINENO"; then : 14086 lt_cv_ld_exported_symbols_list=yes 14087else 14088 lt_cv_ld_exported_symbols_list=no 14089fi 14090rm -f core conftest.err conftest.$ac_objext \ 14091 conftest$ac_exeext conftest.$ac_ext 14092 LDFLAGS=$save_LDFLAGS 14093 14094fi 14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14096$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14097 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14099$as_echo_n "checking for -force_load linker flag... " >&6; } 14100if ${lt_cv_ld_force_load+:} false; then : 14101 $as_echo_n "(cached) " >&6 14102else 14103 lt_cv_ld_force_load=no 14104 cat > conftest.c << _LT_EOF 14105int forced_loaded() { return 2;} 14106_LT_EOF 14107 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14108 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14109 echo "$AR cru libconftest.a conftest.o" >&5 14110 $AR cru libconftest.a conftest.o 2>&5 14111 echo "$RANLIB libconftest.a" >&5 14112 $RANLIB libconftest.a 2>&5 14113 cat > conftest.c << _LT_EOF 14114int main() { return 0;} 14115_LT_EOF 14116 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14117 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14118 _lt_result=$? 14119 if test -s conftest.err && $GREP force_load conftest.err; then 14120 cat conftest.err >&5 14121 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14122 lt_cv_ld_force_load=yes 14123 else 14124 cat conftest.err >&5 14125 fi 14126 rm -f conftest.err libconftest.a conftest conftest.c 14127 rm -rf conftest.dSYM 14128 14129fi 14130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14131$as_echo "$lt_cv_ld_force_load" >&6; } 14132 case $host_os in 14133 rhapsody* | darwin1.[012]) 14134 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14135 darwin1.*) 14136 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14137 darwin*) # darwin 5.x on 14138 # if running on 10.5 or later, the deployment target defaults 14139 # to the OS version, if on x86, and 10.4, the deployment 14140 # target defaults to 10.4. Don't you love it? 14141 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14142 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14143 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14144 10.[012][,.]*) 14145 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14146 10.*) 14147 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14148 esac 14149 ;; 14150 esac 14151 if test yes = "$lt_cv_apple_cc_single_mod"; then 14152 _lt_dar_single_mod='$single_module' 14153 fi 14154 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14155 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14156 else 14157 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14158 fi 14159 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14160 _lt_dsymutil='~$DSYMUTIL $lib || :' 14161 else 14162 _lt_dsymutil= 14163 fi 14164 ;; 14165 esac 14166 14167# func_munge_path_list VARIABLE PATH 14168# ----------------------------------- 14169# VARIABLE is name of variable containing _space_ separated list of 14170# directories to be munged by the contents of PATH, which is string 14171# having a format: 14172# "DIR[:DIR]:" 14173# string "DIR[ DIR]" will be prepended to VARIABLE 14174# ":DIR[:DIR]" 14175# string "DIR[ DIR]" will be appended to VARIABLE 14176# "DIRP[:DIRP]::[DIRA:]DIRA" 14177# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14178# "DIRA[ DIRA]" will be appended to VARIABLE 14179# "DIR[:DIR]" 14180# VARIABLE will be replaced by "DIR[ DIR]" 14181func_munge_path_list () 14182{ 14183 case x$2 in 14184 x) 14185 ;; 14186 *:) 14187 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14188 ;; 14189 x:*) 14190 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14191 ;; 14192 *::*) 14193 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14194 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14195 ;; 14196 *) 14197 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14198 ;; 14199 esac 14200} 14201 14202for ac_header in dlfcn.h 14203do : 14204 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14205" 14206if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14207 cat >>confdefs.h <<_ACEOF 14208#define HAVE_DLFCN_H 1 14209_ACEOF 14210 14211fi 14212 14213done 14214 14215 14216 14217 14218 14219# Set options 14220 14221 14222 14223 enable_dlopen=no 14224 14225 14226 enable_win32_dll=no 14227 14228 14229 # Check whether --enable-shared was given. 14230if test "${enable_shared+set}" = set; then : 14231 enableval=$enable_shared; p=${PACKAGE-default} 14232 case $enableval in 14233 yes) enable_shared=yes ;; 14234 no) enable_shared=no ;; 14235 *) 14236 enable_shared=no 14237 # Look at the argument we got. We use all the common list separators. 14238 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14239 for pkg in $enableval; do 14240 IFS=$lt_save_ifs 14241 if test "X$pkg" = "X$p"; then 14242 enable_shared=yes 14243 fi 14244 done 14245 IFS=$lt_save_ifs 14246 ;; 14247 esac 14248else 14249 enable_shared=yes 14250fi 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262# Check whether --with-pic was given. 14263if test "${with_pic+set}" = set; then : 14264 withval=$with_pic; lt_p=${PACKAGE-default} 14265 case $withval in 14266 yes|no) pic_mode=$withval ;; 14267 *) 14268 pic_mode=default 14269 # Look at the argument we got. We use all the common list separators. 14270 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14271 for lt_pkg in $withval; do 14272 IFS=$lt_save_ifs 14273 if test "X$lt_pkg" = "X$lt_p"; then 14274 pic_mode=yes 14275 fi 14276 done 14277 IFS=$lt_save_ifs 14278 ;; 14279 esac 14280else 14281 pic_mode=default 14282fi 14283 14284 14285 14286 14287 14288 14289 14290 14291 # Check whether --enable-fast-install was given. 14292if test "${enable_fast_install+set}" = set; then : 14293 enableval=$enable_fast_install; p=${PACKAGE-default} 14294 case $enableval in 14295 yes) enable_fast_install=yes ;; 14296 no) enable_fast_install=no ;; 14297 *) 14298 enable_fast_install=no 14299 # Look at the argument we got. We use all the common list separators. 14300 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14301 for pkg in $enableval; do 14302 IFS=$lt_save_ifs 14303 if test "X$pkg" = "X$p"; then 14304 enable_fast_install=yes 14305 fi 14306 done 14307 IFS=$lt_save_ifs 14308 ;; 14309 esac 14310else 14311 enable_fast_install=yes 14312fi 14313 14314 14315 14316 14317 14318 14319 14320 14321 shared_archive_member_spec= 14322case $host,$enable_shared in 14323power*-*-aix[5-9]*,yes) 14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14325$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14326 14327# Check whether --with-aix-soname was given. 14328if test "${with_aix_soname+set}" = set; then : 14329 withval=$with_aix_soname; case $withval in 14330 aix|svr4|both) 14331 ;; 14332 *) 14333 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14334 ;; 14335 esac 14336 lt_cv_with_aix_soname=$with_aix_soname 14337else 14338 if ${lt_cv_with_aix_soname+:} false; then : 14339 $as_echo_n "(cached) " >&6 14340else 14341 lt_cv_with_aix_soname=aix 14342fi 14343 14344 with_aix_soname=$lt_cv_with_aix_soname 14345fi 14346 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14348$as_echo "$with_aix_soname" >&6; } 14349 if test aix != "$with_aix_soname"; then 14350 # For the AIX way of multilib, we name the shared archive member 14351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14354 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14355 if test 64 = "${OBJECT_MODE-32}"; then 14356 shared_archive_member_spec=shr_64 14357 else 14358 shared_archive_member_spec=shr 14359 fi 14360 fi 14361 ;; 14362*) 14363 with_aix_soname=aix 14364 ;; 14365esac 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376# This can be used to rebuild libtool when needed 14377LIBTOOL_DEPS=$ltmain 14378 14379# Always use our own libtool. 14380LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411test -z "$LN_S" && LN_S="ln -s" 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426if test -n "${ZSH_VERSION+set}"; then 14427 setopt NO_GLOB_SUBST 14428fi 14429 14430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14431$as_echo_n "checking for objdir... " >&6; } 14432if ${lt_cv_objdir+:} false; then : 14433 $as_echo_n "(cached) " >&6 14434else 14435 rm -f .libs 2>/dev/null 14436mkdir .libs 2>/dev/null 14437if test -d .libs; then 14438 lt_cv_objdir=.libs 14439else 14440 # MS-DOS does not allow filenames that begin with a dot. 14441 lt_cv_objdir=_libs 14442fi 14443rmdir .libs 2>/dev/null 14444fi 14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14446$as_echo "$lt_cv_objdir" >&6; } 14447objdir=$lt_cv_objdir 14448 14449 14450 14451 14452 14453cat >>confdefs.h <<_ACEOF 14454#define LT_OBJDIR "$lt_cv_objdir/" 14455_ACEOF 14456 14457 14458 14459 14460case $host_os in 14461aix3*) 14462 # AIX sometimes has problems with the GCC collect2 program. For some 14463 # reason, if we set the COLLECT_NAMES environment variable, the problems 14464 # vanish in a puff of smoke. 14465 if test set != "${COLLECT_NAMES+set}"; then 14466 COLLECT_NAMES= 14467 export COLLECT_NAMES 14468 fi 14469 ;; 14470esac 14471 14472# Global variables: 14473ofile=libtool 14474can_build_shared=yes 14475 14476# All known linkers require a '.a' archive for static linking (except MSVC, 14477# which needs '.lib'). 14478libext=a 14479 14480with_gnu_ld=$lt_cv_prog_gnu_ld 14481 14482old_CC=$CC 14483old_CFLAGS=$CFLAGS 14484 14485# Set sane defaults for various variables 14486test -z "$CC" && CC=cc 14487test -z "$LTCC" && LTCC=$CC 14488test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14489test -z "$LD" && LD=ld 14490test -z "$ac_objext" && ac_objext=o 14491 14492func_cc_basename $compiler 14493cc_basename=$func_cc_basename_result 14494 14495 14496# Only perform the check for file, if the check method requires it 14497test -z "$MAGIC_CMD" && MAGIC_CMD=file 14498case $deplibs_check_method in 14499file_magic*) 14500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14502$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14503if ${lt_cv_path_MAGIC_CMD+:} false; then : 14504 $as_echo_n "(cached) " >&6 14505else 14506 case $MAGIC_CMD in 14507[\\/*] | ?:[\\/]*) 14508 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14509 ;; 14510*) 14511 lt_save_MAGIC_CMD=$MAGIC_CMD 14512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14514 for ac_dir in $ac_dummy; do 14515 IFS=$lt_save_ifs 14516 test -z "$ac_dir" && ac_dir=. 14517 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14518 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14519 if test -n "$file_magic_test_file"; then 14520 case $deplibs_check_method in 14521 "file_magic "*) 14522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14523 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14525 $EGREP "$file_magic_regex" > /dev/null; then 14526 : 14527 else 14528 cat <<_LT_EOF 1>&2 14529 14530*** Warning: the command libtool uses to detect shared libraries, 14531*** $file_magic_cmd, produces output that libtool cannot recognize. 14532*** The result is that libtool may fail to recognize shared libraries 14533*** as such. This will affect the creation of libtool libraries that 14534*** depend on shared libraries, but programs linked with such libtool 14535*** libraries will work regardless of this problem. Nevertheless, you 14536*** may want to report the problem to your system manager and/or to 14537*** bug-libtool@gnu.org 14538 14539_LT_EOF 14540 fi ;; 14541 esac 14542 fi 14543 break 14544 fi 14545 done 14546 IFS=$lt_save_ifs 14547 MAGIC_CMD=$lt_save_MAGIC_CMD 14548 ;; 14549esac 14550fi 14551 14552MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14553if test -n "$MAGIC_CMD"; then 14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14555$as_echo "$MAGIC_CMD" >&6; } 14556else 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14558$as_echo "no" >&6; } 14559fi 14560 14561 14562 14563 14564 14565if test -z "$lt_cv_path_MAGIC_CMD"; then 14566 if test -n "$ac_tool_prefix"; then 14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14568$as_echo_n "checking for file... " >&6; } 14569if ${lt_cv_path_MAGIC_CMD+:} false; then : 14570 $as_echo_n "(cached) " >&6 14571else 14572 case $MAGIC_CMD in 14573[\\/*] | ?:[\\/]*) 14574 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14575 ;; 14576*) 14577 lt_save_MAGIC_CMD=$MAGIC_CMD 14578 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14580 for ac_dir in $ac_dummy; do 14581 IFS=$lt_save_ifs 14582 test -z "$ac_dir" && ac_dir=. 14583 if test -f "$ac_dir/file"; then 14584 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14585 if test -n "$file_magic_test_file"; then 14586 case $deplibs_check_method in 14587 "file_magic "*) 14588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14589 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14591 $EGREP "$file_magic_regex" > /dev/null; then 14592 : 14593 else 14594 cat <<_LT_EOF 1>&2 14595 14596*** Warning: the command libtool uses to detect shared libraries, 14597*** $file_magic_cmd, produces output that libtool cannot recognize. 14598*** The result is that libtool may fail to recognize shared libraries 14599*** as such. This will affect the creation of libtool libraries that 14600*** depend on shared libraries, but programs linked with such libtool 14601*** libraries will work regardless of this problem. Nevertheless, you 14602*** may want to report the problem to your system manager and/or to 14603*** bug-libtool@gnu.org 14604 14605_LT_EOF 14606 fi ;; 14607 esac 14608 fi 14609 break 14610 fi 14611 done 14612 IFS=$lt_save_ifs 14613 MAGIC_CMD=$lt_save_MAGIC_CMD 14614 ;; 14615esac 14616fi 14617 14618MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14619if test -n "$MAGIC_CMD"; then 14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14621$as_echo "$MAGIC_CMD" >&6; } 14622else 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14624$as_echo "no" >&6; } 14625fi 14626 14627 14628 else 14629 MAGIC_CMD=: 14630 fi 14631fi 14632 14633 fi 14634 ;; 14635esac 14636 14637# Use C for the default configuration in the libtool script 14638 14639lt_save_CC=$CC 14640ac_ext=c 14641ac_cpp='$CPP $CPPFLAGS' 14642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14644ac_compiler_gnu=$ac_cv_c_compiler_gnu 14645 14646 14647# Source file extension for C test sources. 14648ac_ext=c 14649 14650# Object file extension for compiled C test sources. 14651objext=o 14652objext=$objext 14653 14654# Code to be used in simple compile tests 14655lt_simple_compile_test_code="int some_variable = 0;" 14656 14657# Code to be used in simple link tests 14658lt_simple_link_test_code='int main(){return(0);}' 14659 14660 14661 14662 14663 14664 14665 14666# If no C compiler was specified, use CC. 14667LTCC=${LTCC-"$CC"} 14668 14669# If no C compiler flags were specified, use CFLAGS. 14670LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14671 14672# Allow CC to be a program name with arguments. 14673compiler=$CC 14674 14675# Save the default compiler, since it gets overwritten when the other 14676# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14677compiler_DEFAULT=$CC 14678 14679# save warnings/boilerplate of simple test code 14680ac_outfile=conftest.$ac_objext 14681echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14682eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14683_lt_compiler_boilerplate=`cat conftest.err` 14684$RM conftest* 14685 14686ac_outfile=conftest.$ac_objext 14687echo "$lt_simple_link_test_code" >conftest.$ac_ext 14688eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14689_lt_linker_boilerplate=`cat conftest.err` 14690$RM -r conftest* 14691 14692 14693if test -n "$compiler"; then 14694 14695lt_prog_compiler_no_builtin_flag= 14696 14697if test yes = "$GCC"; then 14698 case $cc_basename in 14699 nvcc*) 14700 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14701 *) 14702 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14703 esac 14704 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14706$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14707if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14708 $as_echo_n "(cached) " >&6 14709else 14710 lt_cv_prog_compiler_rtti_exceptions=no 14711 ac_outfile=conftest.$ac_objext 14712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14713 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14714 # Insert the option either (1) after the last *FLAGS variable, or 14715 # (2) before a word containing "conftest.", or (3) at the end. 14716 # Note that $ac_compile itself does not contain backslashes and begins 14717 # with a dollar sign (not a hyphen), so the echo should work correctly. 14718 # The option is referenced via a variable to avoid confusing sed. 14719 lt_compile=`echo "$ac_compile" | $SED \ 14720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14722 -e 's:$: $lt_compiler_flag:'` 14723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14724 (eval "$lt_compile" 2>conftest.err) 14725 ac_status=$? 14726 cat conftest.err >&5 14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14728 if (exit $ac_status) && test -s "$ac_outfile"; then 14729 # The compiler can only warn and ignore the option if not recognized 14730 # So say no if there are warnings other than the usual output. 14731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14733 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14734 lt_cv_prog_compiler_rtti_exceptions=yes 14735 fi 14736 fi 14737 $RM conftest* 14738 14739fi 14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14741$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14742 14743if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14744 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14745else 14746 : 14747fi 14748 14749fi 14750 14751 14752 14753 14754 14755 14756 lt_prog_compiler_wl= 14757lt_prog_compiler_pic= 14758lt_prog_compiler_static= 14759 14760 14761 if test yes = "$GCC"; then 14762 lt_prog_compiler_wl='-Wl,' 14763 lt_prog_compiler_static='-static' 14764 14765 case $host_os in 14766 aix*) 14767 # All AIX code is PIC. 14768 if test ia64 = "$host_cpu"; then 14769 # AIX 5 now supports IA64 processor 14770 lt_prog_compiler_static='-Bstatic' 14771 fi 14772 lt_prog_compiler_pic='-fPIC' 14773 ;; 14774 14775 amigaos*) 14776 case $host_cpu in 14777 powerpc) 14778 # see comment about AmigaOS4 .so support 14779 lt_prog_compiler_pic='-fPIC' 14780 ;; 14781 m68k) 14782 # FIXME: we need at least 68020 code to build shared libraries, but 14783 # adding the '-m68020' flag to GCC prevents building anything better, 14784 # like '-m68040'. 14785 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14786 ;; 14787 esac 14788 ;; 14789 14790 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14791 # PIC is the default for these OSes. 14792 ;; 14793 14794 mingw* | cygwin* | pw32* | os2* | cegcc*) 14795 # This hack is so that the source file can tell whether it is being 14796 # built for inclusion in a dll (and should export symbols for example). 14797 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14798 # (--disable-auto-import) libraries 14799 lt_prog_compiler_pic='-DDLL_EXPORT' 14800 case $host_os in 14801 os2*) 14802 lt_prog_compiler_static='$wl-static' 14803 ;; 14804 esac 14805 ;; 14806 14807 darwin* | rhapsody*) 14808 # PIC is the default on this platform 14809 # Common symbols not allowed in MH_DYLIB files 14810 lt_prog_compiler_pic='-fno-common' 14811 ;; 14812 14813 haiku*) 14814 # PIC is the default for Haiku. 14815 # The "-static" flag exists, but is broken. 14816 lt_prog_compiler_static= 14817 ;; 14818 14819 hpux*) 14820 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14821 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14822 # sets the default TLS model and affects inlining. 14823 case $host_cpu in 14824 hppa*64*) 14825 # +Z the default 14826 ;; 14827 *) 14828 lt_prog_compiler_pic='-fPIC' 14829 ;; 14830 esac 14831 ;; 14832 14833 interix[3-9]*) 14834 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14835 # Instead, we relocate shared libraries at runtime. 14836 ;; 14837 14838 msdosdjgpp*) 14839 # Just because we use GCC doesn't mean we suddenly get shared libraries 14840 # on systems that don't support them. 14841 lt_prog_compiler_can_build_shared=no 14842 enable_shared=no 14843 ;; 14844 14845 *nto* | *qnx*) 14846 # QNX uses GNU C++, but need to define -shared option too, otherwise 14847 # it will coredump. 14848 lt_prog_compiler_pic='-fPIC -shared' 14849 ;; 14850 14851 sysv4*MP*) 14852 if test -d /usr/nec; then 14853 lt_prog_compiler_pic=-Kconform_pic 14854 fi 14855 ;; 14856 14857 *) 14858 lt_prog_compiler_pic='-fPIC' 14859 ;; 14860 esac 14861 14862 case $cc_basename in 14863 nvcc*) # Cuda Compiler Driver 2.2 14864 lt_prog_compiler_wl='-Xlinker ' 14865 if test -n "$lt_prog_compiler_pic"; then 14866 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14867 fi 14868 ;; 14869 esac 14870 else 14871 # PORTME Check for flag to pass linker flags through the system compiler. 14872 case $host_os in 14873 aix*) 14874 lt_prog_compiler_wl='-Wl,' 14875 if test ia64 = "$host_cpu"; then 14876 # AIX 5 now supports IA64 processor 14877 lt_prog_compiler_static='-Bstatic' 14878 else 14879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14880 fi 14881 ;; 14882 14883 darwin* | rhapsody*) 14884 # PIC is the default on this platform 14885 # Common symbols not allowed in MH_DYLIB files 14886 lt_prog_compiler_pic='-fno-common' 14887 case $cc_basename in 14888 nagfor*) 14889 # NAG Fortran compiler 14890 lt_prog_compiler_wl='-Wl,-Wl,,' 14891 lt_prog_compiler_pic='-PIC' 14892 lt_prog_compiler_static='-Bstatic' 14893 ;; 14894 esac 14895 ;; 14896 14897 mingw* | cygwin* | pw32* | os2* | cegcc*) 14898 # This hack is so that the source file can tell whether it is being 14899 # built for inclusion in a dll (and should export symbols for example). 14900 lt_prog_compiler_pic='-DDLL_EXPORT' 14901 case $host_os in 14902 os2*) 14903 lt_prog_compiler_static='$wl-static' 14904 ;; 14905 esac 14906 ;; 14907 14908 hpux9* | hpux10* | hpux11*) 14909 lt_prog_compiler_wl='-Wl,' 14910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14911 # not for PA HP-UX. 14912 case $host_cpu in 14913 hppa*64*|ia64*) 14914 # +Z the default 14915 ;; 14916 *) 14917 lt_prog_compiler_pic='+Z' 14918 ;; 14919 esac 14920 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14921 lt_prog_compiler_static='$wl-a ${wl}archive' 14922 ;; 14923 14924 irix5* | irix6* | nonstopux*) 14925 lt_prog_compiler_wl='-Wl,' 14926 # PIC (with -KPIC) is the default. 14927 lt_prog_compiler_static='-non_shared' 14928 ;; 14929 14930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14931 case $cc_basename in 14932 # old Intel for x86_64, which still supported -KPIC. 14933 ecc*) 14934 lt_prog_compiler_wl='-Wl,' 14935 lt_prog_compiler_pic='-KPIC' 14936 lt_prog_compiler_static='-static' 14937 ;; 14938 # icc used to be incompatible with GCC. 14939 # ICC 10 doesn't accept -KPIC any more. 14940 icc* | ifort*) 14941 lt_prog_compiler_wl='-Wl,' 14942 lt_prog_compiler_pic='-fPIC' 14943 lt_prog_compiler_static='-static' 14944 ;; 14945 # Lahey Fortran 8.1. 14946 lf95*) 14947 lt_prog_compiler_wl='-Wl,' 14948 lt_prog_compiler_pic='--shared' 14949 lt_prog_compiler_static='--static' 14950 ;; 14951 nagfor*) 14952 # NAG Fortran compiler 14953 lt_prog_compiler_wl='-Wl,-Wl,,' 14954 lt_prog_compiler_pic='-PIC' 14955 lt_prog_compiler_static='-Bstatic' 14956 ;; 14957 tcc*) 14958 # Fabrice Bellard et al's Tiny C Compiler 14959 lt_prog_compiler_wl='-Wl,' 14960 lt_prog_compiler_pic='-fPIC' 14961 lt_prog_compiler_static='-static' 14962 ;; 14963 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14964 # Portland Group compilers (*not* the Pentium gcc compiler, 14965 # which looks to be a dead project) 14966 lt_prog_compiler_wl='-Wl,' 14967 lt_prog_compiler_pic='-fpic' 14968 lt_prog_compiler_static='-Bstatic' 14969 ;; 14970 ccc*) 14971 lt_prog_compiler_wl='-Wl,' 14972 # All Alpha code is PIC. 14973 lt_prog_compiler_static='-non_shared' 14974 ;; 14975 xl* | bgxl* | bgf* | mpixl*) 14976 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14977 lt_prog_compiler_wl='-Wl,' 14978 lt_prog_compiler_pic='-qpic' 14979 lt_prog_compiler_static='-qstaticlink' 14980 ;; 14981 *) 14982 case `$CC -V 2>&1 | sed 5q` in 14983 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14984 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14985 lt_prog_compiler_pic='-KPIC' 14986 lt_prog_compiler_static='-Bstatic' 14987 lt_prog_compiler_wl='' 14988 ;; 14989 *Sun\ F* | *Sun*Fortran*) 14990 lt_prog_compiler_pic='-KPIC' 14991 lt_prog_compiler_static='-Bstatic' 14992 lt_prog_compiler_wl='-Qoption ld ' 14993 ;; 14994 *Sun\ C*) 14995 # Sun C 5.9 14996 lt_prog_compiler_pic='-KPIC' 14997 lt_prog_compiler_static='-Bstatic' 14998 lt_prog_compiler_wl='-Wl,' 14999 ;; 15000 *Intel*\ [CF]*Compiler*) 15001 lt_prog_compiler_wl='-Wl,' 15002 lt_prog_compiler_pic='-fPIC' 15003 lt_prog_compiler_static='-static' 15004 ;; 15005 *Portland\ Group*) 15006 lt_prog_compiler_wl='-Wl,' 15007 lt_prog_compiler_pic='-fpic' 15008 lt_prog_compiler_static='-Bstatic' 15009 ;; 15010 esac 15011 ;; 15012 esac 15013 ;; 15014 15015 newsos6) 15016 lt_prog_compiler_pic='-KPIC' 15017 lt_prog_compiler_static='-Bstatic' 15018 ;; 15019 15020 *nto* | *qnx*) 15021 # QNX uses GNU C++, but need to define -shared option too, otherwise 15022 # it will coredump. 15023 lt_prog_compiler_pic='-fPIC -shared' 15024 ;; 15025 15026 osf3* | osf4* | osf5*) 15027 lt_prog_compiler_wl='-Wl,' 15028 # All OSF/1 code is PIC. 15029 lt_prog_compiler_static='-non_shared' 15030 ;; 15031 15032 rdos*) 15033 lt_prog_compiler_static='-non_shared' 15034 ;; 15035 15036 solaris*) 15037 lt_prog_compiler_pic='-KPIC' 15038 lt_prog_compiler_static='-Bstatic' 15039 case $cc_basename in 15040 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15041 lt_prog_compiler_wl='-Qoption ld ';; 15042 *) 15043 lt_prog_compiler_wl='-Wl,';; 15044 esac 15045 ;; 15046 15047 sunos4*) 15048 lt_prog_compiler_wl='-Qoption ld ' 15049 lt_prog_compiler_pic='-PIC' 15050 lt_prog_compiler_static='-Bstatic' 15051 ;; 15052 15053 sysv4 | sysv4.2uw2* | sysv4.3*) 15054 lt_prog_compiler_wl='-Wl,' 15055 lt_prog_compiler_pic='-KPIC' 15056 lt_prog_compiler_static='-Bstatic' 15057 ;; 15058 15059 sysv4*MP*) 15060 if test -d /usr/nec; then 15061 lt_prog_compiler_pic='-Kconform_pic' 15062 lt_prog_compiler_static='-Bstatic' 15063 fi 15064 ;; 15065 15066 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15067 lt_prog_compiler_wl='-Wl,' 15068 lt_prog_compiler_pic='-KPIC' 15069 lt_prog_compiler_static='-Bstatic' 15070 ;; 15071 15072 unicos*) 15073 lt_prog_compiler_wl='-Wl,' 15074 lt_prog_compiler_can_build_shared=no 15075 ;; 15076 15077 uts4*) 15078 lt_prog_compiler_pic='-pic' 15079 lt_prog_compiler_static='-Bstatic' 15080 ;; 15081 15082 *) 15083 lt_prog_compiler_can_build_shared=no 15084 ;; 15085 esac 15086 fi 15087 15088case $host_os in 15089 # For platforms that do not support PIC, -DPIC is meaningless: 15090 *djgpp*) 15091 lt_prog_compiler_pic= 15092 ;; 15093 *) 15094 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15095 ;; 15096esac 15097 15098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15099$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15100if ${lt_cv_prog_compiler_pic+:} false; then : 15101 $as_echo_n "(cached) " >&6 15102else 15103 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15104fi 15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15106$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15107lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15108 15109# 15110# Check to make sure the PIC flag actually works. 15111# 15112if test -n "$lt_prog_compiler_pic"; then 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15114$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15115if ${lt_cv_prog_compiler_pic_works+:} false; then : 15116 $as_echo_n "(cached) " >&6 15117else 15118 lt_cv_prog_compiler_pic_works=no 15119 ac_outfile=conftest.$ac_objext 15120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15121 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15122 # Insert the option either (1) after the last *FLAGS variable, or 15123 # (2) before a word containing "conftest.", or (3) at the end. 15124 # Note that $ac_compile itself does not contain backslashes and begins 15125 # with a dollar sign (not a hyphen), so the echo should work correctly. 15126 # The option is referenced via a variable to avoid confusing sed. 15127 lt_compile=`echo "$ac_compile" | $SED \ 15128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15130 -e 's:$: $lt_compiler_flag:'` 15131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15132 (eval "$lt_compile" 2>conftest.err) 15133 ac_status=$? 15134 cat conftest.err >&5 15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15136 if (exit $ac_status) && test -s "$ac_outfile"; then 15137 # The compiler can only warn and ignore the option if not recognized 15138 # So say no if there are warnings other than the usual output. 15139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15141 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15142 lt_cv_prog_compiler_pic_works=yes 15143 fi 15144 fi 15145 $RM conftest* 15146 15147fi 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15149$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15150 15151if test yes = "$lt_cv_prog_compiler_pic_works"; then 15152 case $lt_prog_compiler_pic in 15153 "" | " "*) ;; 15154 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15155 esac 15156else 15157 lt_prog_compiler_pic= 15158 lt_prog_compiler_can_build_shared=no 15159fi 15160 15161fi 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173# 15174# Check to make sure the static flag actually works. 15175# 15176wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15178$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15179if ${lt_cv_prog_compiler_static_works+:} false; then : 15180 $as_echo_n "(cached) " >&6 15181else 15182 lt_cv_prog_compiler_static_works=no 15183 save_LDFLAGS=$LDFLAGS 15184 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15185 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15186 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15187 # The linker can only warn and ignore the option if not recognized 15188 # So say no if there are warnings 15189 if test -s conftest.err; then 15190 # Append any errors to the config.log. 15191 cat conftest.err 1>&5 15192 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15194 if diff conftest.exp conftest.er2 >/dev/null; then 15195 lt_cv_prog_compiler_static_works=yes 15196 fi 15197 else 15198 lt_cv_prog_compiler_static_works=yes 15199 fi 15200 fi 15201 $RM -r conftest* 15202 LDFLAGS=$save_LDFLAGS 15203 15204fi 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15206$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15207 15208if test yes = "$lt_cv_prog_compiler_static_works"; then 15209 : 15210else 15211 lt_prog_compiler_static= 15212fi 15213 15214 15215 15216 15217 15218 15219 15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15221$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15222if ${lt_cv_prog_compiler_c_o+:} false; then : 15223 $as_echo_n "(cached) " >&6 15224else 15225 lt_cv_prog_compiler_c_o=no 15226 $RM -r conftest 2>/dev/null 15227 mkdir conftest 15228 cd conftest 15229 mkdir out 15230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15231 15232 lt_compiler_flag="-o out/conftest2.$ac_objext" 15233 # Insert the option either (1) after the last *FLAGS variable, or 15234 # (2) before a word containing "conftest.", or (3) at the end. 15235 # Note that $ac_compile itself does not contain backslashes and begins 15236 # with a dollar sign (not a hyphen), so the echo should work correctly. 15237 lt_compile=`echo "$ac_compile" | $SED \ 15238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15240 -e 's:$: $lt_compiler_flag:'` 15241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15242 (eval "$lt_compile" 2>out/conftest.err) 15243 ac_status=$? 15244 cat out/conftest.err >&5 15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15246 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15247 then 15248 # The compiler can only warn and ignore the option if not recognized 15249 # So say no if there are warnings 15250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15253 lt_cv_prog_compiler_c_o=yes 15254 fi 15255 fi 15256 chmod u+w . 2>&5 15257 $RM conftest* 15258 # SGI C++ compiler will create directory out/ii_files/ for 15259 # template instantiation 15260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15261 $RM out/* && rmdir out 15262 cd .. 15263 $RM -r conftest 15264 $RM conftest* 15265 15266fi 15267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15268$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15269 15270 15271 15272 15273 15274 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15276$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15277if ${lt_cv_prog_compiler_c_o+:} false; then : 15278 $as_echo_n "(cached) " >&6 15279else 15280 lt_cv_prog_compiler_c_o=no 15281 $RM -r conftest 2>/dev/null 15282 mkdir conftest 15283 cd conftest 15284 mkdir out 15285 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15286 15287 lt_compiler_flag="-o out/conftest2.$ac_objext" 15288 # Insert the option either (1) after the last *FLAGS variable, or 15289 # (2) before a word containing "conftest.", or (3) at the end. 15290 # Note that $ac_compile itself does not contain backslashes and begins 15291 # with a dollar sign (not a hyphen), so the echo should work correctly. 15292 lt_compile=`echo "$ac_compile" | $SED \ 15293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15295 -e 's:$: $lt_compiler_flag:'` 15296 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15297 (eval "$lt_compile" 2>out/conftest.err) 15298 ac_status=$? 15299 cat out/conftest.err >&5 15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15301 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15302 then 15303 # The compiler can only warn and ignore the option if not recognized 15304 # So say no if there are warnings 15305 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15306 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15307 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15308 lt_cv_prog_compiler_c_o=yes 15309 fi 15310 fi 15311 chmod u+w . 2>&5 15312 $RM conftest* 15313 # SGI C++ compiler will create directory out/ii_files/ for 15314 # template instantiation 15315 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15316 $RM out/* && rmdir out 15317 cd .. 15318 $RM -r conftest 15319 $RM conftest* 15320 15321fi 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15323$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15324 15325 15326 15327 15328hard_links=nottested 15329if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15330 # do not overwrite the value of need_locks provided by the user 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15332$as_echo_n "checking if we can lock with hard links... " >&6; } 15333 hard_links=yes 15334 $RM conftest* 15335 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15336 touch conftest.a 15337 ln conftest.a conftest.b 2>&5 || hard_links=no 15338 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15340$as_echo "$hard_links" >&6; } 15341 if test no = "$hard_links"; then 15342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15343$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15344 need_locks=warn 15345 fi 15346else 15347 need_locks=no 15348fi 15349 15350 15351 15352 15353 15354 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15356$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15357 15358 runpath_var= 15359 allow_undefined_flag= 15360 always_export_symbols=no 15361 archive_cmds= 15362 archive_expsym_cmds= 15363 compiler_needs_object=no 15364 enable_shared_with_static_runtimes=no 15365 export_dynamic_flag_spec= 15366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15367 hardcode_automatic=no 15368 hardcode_direct=no 15369 hardcode_direct_absolute=no 15370 hardcode_libdir_flag_spec= 15371 hardcode_libdir_separator= 15372 hardcode_minus_L=no 15373 hardcode_shlibpath_var=unsupported 15374 inherit_rpath=no 15375 link_all_deplibs=unknown 15376 module_cmds= 15377 module_expsym_cmds= 15378 old_archive_from_new_cmds= 15379 old_archive_from_expsyms_cmds= 15380 thread_safe_flag_spec= 15381 whole_archive_flag_spec= 15382 # include_expsyms should be a list of space-separated symbols to be *always* 15383 # included in the symbol list 15384 include_expsyms= 15385 # exclude_expsyms can be an extended regexp of symbols to exclude 15386 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15387 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15388 # as well as any symbol that contains 'd'. 15389 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15390 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15391 # platforms (ab)use it in PIC code, but their linkers get confused if 15392 # the symbol is explicitly referenced. Since portable code cannot 15393 # rely on this symbol name, it's probably fine to never include it in 15394 # preloaded symbol tables. 15395 # Exclude shared library initialization/finalization symbols. 15396 extract_expsyms_cmds= 15397 15398 case $host_os in 15399 cygwin* | mingw* | pw32* | cegcc*) 15400 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15401 # When not using gcc, we currently assume that we are using 15402 # Microsoft Visual C++. 15403 if test yes != "$GCC"; then 15404 with_gnu_ld=no 15405 fi 15406 ;; 15407 interix*) 15408 # we just hope/assume this is gcc and not c89 (= MSVC++) 15409 with_gnu_ld=yes 15410 ;; 15411 openbsd* | bitrig*) 15412 with_gnu_ld=no 15413 ;; 15414 esac 15415 15416 ld_shlibs=yes 15417 15418 # On some targets, GNU ld is compatible enough with the native linker 15419 # that we're better off using the native interface for both. 15420 lt_use_gnu_ld_interface=no 15421 if test yes = "$with_gnu_ld"; then 15422 case $host_os in 15423 aix*) 15424 # The AIX port of GNU ld has always aspired to compatibility 15425 # with the native linker. However, as the warning in the GNU ld 15426 # block says, versions before 2.19.5* couldn't really create working 15427 # shared libraries, regardless of the interface used. 15428 case `$LD -v 2>&1` in 15429 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15430 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15431 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15432 *) 15433 lt_use_gnu_ld_interface=yes 15434 ;; 15435 esac 15436 ;; 15437 *) 15438 lt_use_gnu_ld_interface=yes 15439 ;; 15440 esac 15441 fi 15442 15443 if test yes = "$lt_use_gnu_ld_interface"; then 15444 # If archive_cmds runs LD, not CC, wlarc should be empty 15445 wlarc='$wl' 15446 15447 # Set some defaults for GNU ld with shared library support. These 15448 # are reset later if shared libraries are not supported. Putting them 15449 # here allows them to be overridden if necessary. 15450 runpath_var=LD_RUN_PATH 15451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15452 export_dynamic_flag_spec='$wl--export-dynamic' 15453 # ancient GNU ld didn't support --whole-archive et. al. 15454 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15455 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15456 else 15457 whole_archive_flag_spec= 15458 fi 15459 supports_anon_versioning=no 15460 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15461 *GNU\ gold*) supports_anon_versioning=yes ;; 15462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15465 *\ 2.11.*) ;; # other 2.11 versions 15466 *) supports_anon_versioning=yes ;; 15467 esac 15468 15469 # See if GNU ld supports shared libraries. 15470 case $host_os in 15471 aix[3-9]*) 15472 # On AIX/PPC, the GNU linker is very broken 15473 if test ia64 != "$host_cpu"; then 15474 ld_shlibs=no 15475 cat <<_LT_EOF 1>&2 15476 15477*** Warning: the GNU linker, at least up to release 2.19, is reported 15478*** to be unable to reliably create shared libraries on AIX. 15479*** Therefore, libtool is disabling shared libraries support. If you 15480*** really care for shared libraries, you may want to install binutils 15481*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15482*** You will then need to restart the configuration process. 15483 15484_LT_EOF 15485 fi 15486 ;; 15487 15488 amigaos*) 15489 case $host_cpu in 15490 powerpc) 15491 # see comment about AmigaOS4 .so support 15492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15493 archive_expsym_cmds='' 15494 ;; 15495 m68k) 15496 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)' 15497 hardcode_libdir_flag_spec='-L$libdir' 15498 hardcode_minus_L=yes 15499 ;; 15500 esac 15501 ;; 15502 15503 beos*) 15504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15505 allow_undefined_flag=unsupported 15506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15507 # support --undefined. This deserves some investigation. FIXME 15508 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15509 else 15510 ld_shlibs=no 15511 fi 15512 ;; 15513 15514 cygwin* | mingw* | pw32* | cegcc*) 15515 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15516 # as there is no search path for DLLs. 15517 hardcode_libdir_flag_spec='-L$libdir' 15518 export_dynamic_flag_spec='$wl--export-all-symbols' 15519 allow_undefined_flag=unsupported 15520 always_export_symbols=no 15521 enable_shared_with_static_runtimes=yes 15522 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' 15523 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15524 15525 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15527 # If the export-symbols file already is a .def file, use it as 15528 # is; otherwise, prepend EXPORTS... 15529 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15530 cp $export_symbols $output_objdir/$soname.def; 15531 else 15532 echo EXPORTS > $output_objdir/$soname.def; 15533 cat $export_symbols >> $output_objdir/$soname.def; 15534 fi~ 15535 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15536 else 15537 ld_shlibs=no 15538 fi 15539 ;; 15540 15541 haiku*) 15542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15543 link_all_deplibs=yes 15544 ;; 15545 15546 os2*) 15547 hardcode_libdir_flag_spec='-L$libdir' 15548 hardcode_minus_L=yes 15549 allow_undefined_flag=unsupported 15550 shrext_cmds=.dll 15551 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15552 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15553 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15554 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15555 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15556 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15557 emximp -o $lib $output_objdir/$libname.def' 15558 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15559 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15560 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15561 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15562 prefix_cmds="$SED"~ 15563 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15564 prefix_cmds="$prefix_cmds -e 1d"; 15565 fi~ 15566 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15567 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15568 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15569 emximp -o $lib $output_objdir/$libname.def' 15570 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15571 enable_shared_with_static_runtimes=yes 15572 ;; 15573 15574 interix[3-9]*) 15575 hardcode_direct=no 15576 hardcode_shlibpath_var=no 15577 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15578 export_dynamic_flag_spec='$wl-E' 15579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15580 # Instead, shared libraries are loaded at an image base (0x10000000 by 15581 # default) and relocated if they conflict, which is a slow very memory 15582 # consuming and fragmenting process. To avoid this, we pick a random, 15583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15584 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15586 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' 15587 ;; 15588 15589 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15590 tmp_diet=no 15591 if test linux-dietlibc = "$host_os"; then 15592 case $cc_basename in 15593 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15594 esac 15595 fi 15596 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15597 && test no = "$tmp_diet" 15598 then 15599 tmp_addflag=' $pic_flag' 15600 tmp_sharedflag='-shared' 15601 case $cc_basename,$host_cpu in 15602 pgcc*) # Portland Group C compiler 15603 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' 15604 tmp_addflag=' $pic_flag' 15605 ;; 15606 pgf77* | pgf90* | pgf95* | pgfortran*) 15607 # Portland Group f77 and f90 compilers 15608 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' 15609 tmp_addflag=' $pic_flag -Mnomain' ;; 15610 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15611 tmp_addflag=' -i_dynamic' ;; 15612 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15613 tmp_addflag=' -i_dynamic -nofor_main' ;; 15614 ifc* | ifort*) # Intel Fortran compiler 15615 tmp_addflag=' -nofor_main' ;; 15616 lf95*) # Lahey Fortran 8.1 15617 whole_archive_flag_spec= 15618 tmp_sharedflag='--shared' ;; 15619 nagfor*) # NAGFOR 5.3 15620 tmp_sharedflag='-Wl,-shared' ;; 15621 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15622 tmp_sharedflag='-qmkshrobj' 15623 tmp_addflag= ;; 15624 nvcc*) # Cuda Compiler Driver 2.2 15625 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' 15626 compiler_needs_object=yes 15627 ;; 15628 esac 15629 case `$CC -V 2>&1 | sed 5q` in 15630 *Sun\ C*) # Sun C 5.9 15631 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' 15632 compiler_needs_object=yes 15633 tmp_sharedflag='-G' ;; 15634 *Sun\ F*) # Sun Fortran 8.3 15635 tmp_sharedflag='-G' ;; 15636 esac 15637 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15638 15639 if test yes = "$supports_anon_versioning"; then 15640 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15641 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15642 echo "local: *; };" >> $output_objdir/$libname.ver~ 15643 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15644 fi 15645 15646 case $cc_basename in 15647 tcc*) 15648 export_dynamic_flag_spec='-rdynamic' 15649 ;; 15650 xlf* | bgf* | bgxlf* | mpixlf*) 15651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15654 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15655 if test yes = "$supports_anon_versioning"; then 15656 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15658 echo "local: *; };" >> $output_objdir/$libname.ver~ 15659 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15660 fi 15661 ;; 15662 esac 15663 else 15664 ld_shlibs=no 15665 fi 15666 ;; 15667 15668 netbsd*) 15669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15670 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15671 wlarc= 15672 else 15673 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15674 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15675 fi 15676 ;; 15677 15678 solaris*) 15679 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15680 ld_shlibs=no 15681 cat <<_LT_EOF 1>&2 15682 15683*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15684*** create shared libraries on Solaris systems. Therefore, libtool 15685*** is disabling shared libraries support. We urge you to upgrade GNU 15686*** binutils to release 2.9.1 or newer. Another option is to modify 15687*** your PATH or compiler configuration so that the native linker is 15688*** used, and then restart. 15689 15690_LT_EOF 15691 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15692 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15693 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15694 else 15695 ld_shlibs=no 15696 fi 15697 ;; 15698 15699 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15700 case `$LD -v 2>&1` in 15701 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15702 ld_shlibs=no 15703 cat <<_LT_EOF 1>&2 15704 15705*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15706*** reliably create shared libraries on SCO systems. Therefore, libtool 15707*** is disabling shared libraries support. We urge you to upgrade GNU 15708*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15709*** your PATH or compiler configuration so that the native linker is 15710*** used, and then restart. 15711 15712_LT_EOF 15713 ;; 15714 *) 15715 # For security reasons, it is highly recommended that you always 15716 # use absolute paths for naming shared libraries, and exclude the 15717 # DT_RUNPATH tag from executables and libraries. But doing so 15718 # requires that you compile everything twice, which is a pain. 15719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15720 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15723 else 15724 ld_shlibs=no 15725 fi 15726 ;; 15727 esac 15728 ;; 15729 15730 sunos4*) 15731 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15732 wlarc= 15733 hardcode_direct=yes 15734 hardcode_shlibpath_var=no 15735 ;; 15736 15737 *) 15738 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15740 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15741 else 15742 ld_shlibs=no 15743 fi 15744 ;; 15745 esac 15746 15747 if test no = "$ld_shlibs"; then 15748 runpath_var= 15749 hardcode_libdir_flag_spec= 15750 export_dynamic_flag_spec= 15751 whole_archive_flag_spec= 15752 fi 15753 else 15754 # PORTME fill in a description of your system's linker (not GNU ld) 15755 case $host_os in 15756 aix3*) 15757 allow_undefined_flag=unsupported 15758 always_export_symbols=yes 15759 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' 15760 # Note: this linker hardcodes the directories in LIBPATH if there 15761 # are no directories specified by -L. 15762 hardcode_minus_L=yes 15763 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15764 # Neither direct hardcoding nor static linking is supported with a 15765 # broken collect2. 15766 hardcode_direct=unsupported 15767 fi 15768 ;; 15769 15770 aix[4-9]*) 15771 if test ia64 = "$host_cpu"; then 15772 # On IA64, the linker does run time linking by default, so we don't 15773 # have to do anything special. 15774 aix_use_runtimelinking=no 15775 exp_sym_flag='-Bexport' 15776 no_entry_flag= 15777 else 15778 # If we're using GNU nm, then we don't want the "-C" option. 15779 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15780 # Without the "-l" option, or with the "-B" option, AIX nm treats 15781 # weak defined symbols like other global defined symbols, whereas 15782 # GNU nm marks them as "W". 15783 # While the 'weak' keyword is ignored in the Export File, we need 15784 # it in the Import File for the 'aix-soname' feature, so we have 15785 # to replace the "-B" option with "-P" for AIX nm. 15786 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15787 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' 15788 else 15789 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' 15790 fi 15791 aix_use_runtimelinking=no 15792 15793 # Test if we are trying to use run time linking or normal 15794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15795 # have runtime linking enabled, and use it for executables. 15796 # For shared libraries, we enable/disable runtime linking 15797 # depending on the kind of the shared library created - 15798 # when "with_aix_soname,aix_use_runtimelinking" is: 15799 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15800 # "aix,yes" lib.so shared, rtl:yes, for executables 15801 # lib.a static archive 15802 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15803 # lib.a(lib.so.V) shared, rtl:no, for executables 15804 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15805 # lib.a(lib.so.V) shared, rtl:no 15806 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15807 # lib.a static archive 15808 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15809 for ld_flag in $LDFLAGS; do 15810 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15811 aix_use_runtimelinking=yes 15812 break 15813 fi 15814 done 15815 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15816 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15817 # so we don't have lib.a shared libs to link our executables. 15818 # We have to force runtime linking in this case. 15819 aix_use_runtimelinking=yes 15820 LDFLAGS="$LDFLAGS -Wl,-brtl" 15821 fi 15822 ;; 15823 esac 15824 15825 exp_sym_flag='-bexport' 15826 no_entry_flag='-bnoentry' 15827 fi 15828 15829 # When large executables or shared objects are built, AIX ld can 15830 # have problems creating the table of contents. If linking a library 15831 # or program results in "error TOC overflow" add -mminimal-toc to 15832 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15833 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15834 15835 archive_cmds='' 15836 hardcode_direct=yes 15837 hardcode_direct_absolute=yes 15838 hardcode_libdir_separator=':' 15839 link_all_deplibs=yes 15840 file_list_spec='$wl-f,' 15841 case $with_aix_soname,$aix_use_runtimelinking in 15842 aix,*) ;; # traditional, no import file 15843 svr4,* | *,yes) # use import file 15844 # The Import File defines what to hardcode. 15845 hardcode_direct=no 15846 hardcode_direct_absolute=no 15847 ;; 15848 esac 15849 15850 if test yes = "$GCC"; then 15851 case $host_os in aix4.[012]|aix4.[012].*) 15852 # We only want to do this on AIX 4.2 and lower, the check 15853 # below for broken collect2 doesn't work under 4.3+ 15854 collect2name=`$CC -print-prog-name=collect2` 15855 if test -f "$collect2name" && 15856 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15857 then 15858 # We have reworked collect2 15859 : 15860 else 15861 # We have old collect2 15862 hardcode_direct=unsupported 15863 # It fails to find uninstalled libraries when the uninstalled 15864 # path is not listed in the libpath. Setting hardcode_minus_L 15865 # to unsupported forces relinking 15866 hardcode_minus_L=yes 15867 hardcode_libdir_flag_spec='-L$libdir' 15868 hardcode_libdir_separator= 15869 fi 15870 ;; 15871 esac 15872 shared_flag='-shared' 15873 if test yes = "$aix_use_runtimelinking"; then 15874 shared_flag="$shared_flag "'$wl-G' 15875 fi 15876 # Need to ensure runtime linking is disabled for the traditional 15877 # shared library, or the linker may eventually find shared libraries 15878 # /with/ Import File - we do not want to mix them. 15879 shared_flag_aix='-shared' 15880 shared_flag_svr4='-shared $wl-G' 15881 else 15882 # not using gcc 15883 if test ia64 = "$host_cpu"; then 15884 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15885 # chokes on -Wl,-G. The following line is correct: 15886 shared_flag='-G' 15887 else 15888 if test yes = "$aix_use_runtimelinking"; then 15889 shared_flag='$wl-G' 15890 else 15891 shared_flag='$wl-bM:SRE' 15892 fi 15893 shared_flag_aix='$wl-bM:SRE' 15894 shared_flag_svr4='$wl-G' 15895 fi 15896 fi 15897 15898 export_dynamic_flag_spec='$wl-bexpall' 15899 # It seems that -bexpall does not export symbols beginning with 15900 # underscore (_), so it is better to generate a list of symbols to export. 15901 always_export_symbols=yes 15902 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15903 # Warning - without using the other runtime loading flags (-brtl), 15904 # -berok will link without error, but may produce a broken library. 15905 allow_undefined_flag='-berok' 15906 # Determine the default libpath from the value encoded in an 15907 # empty executable. 15908 if test set = "${lt_cv_aix_libpath+set}"; then 15909 aix_libpath=$lt_cv_aix_libpath 15910else 15911 if ${lt_cv_aix_libpath_+:} false; then : 15912 $as_echo_n "(cached) " >&6 15913else 15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15915/* end confdefs.h. */ 15916 15917int 15918main () 15919{ 15920 15921 ; 15922 return 0; 15923} 15924_ACEOF 15925if ac_fn_c_try_link "$LINENO"; then : 15926 15927 lt_aix_libpath_sed=' 15928 /Import File Strings/,/^$/ { 15929 /^0/ { 15930 s/^0 *\([^ ]*\) *$/\1/ 15931 p 15932 } 15933 }' 15934 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15935 # Check for a 64-bit object if we didn't find anything. 15936 if test -z "$lt_cv_aix_libpath_"; then 15937 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15938 fi 15939fi 15940rm -f core conftest.err conftest.$ac_objext \ 15941 conftest$ac_exeext conftest.$ac_ext 15942 if test -z "$lt_cv_aix_libpath_"; then 15943 lt_cv_aix_libpath_=/usr/lib:/lib 15944 fi 15945 15946fi 15947 15948 aix_libpath=$lt_cv_aix_libpath_ 15949fi 15950 15951 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15952 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 15953 else 15954 if test ia64 = "$host_cpu"; then 15955 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15956 allow_undefined_flag="-z nodefs" 15957 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" 15958 else 15959 # Determine the default libpath from the value encoded in an 15960 # empty executable. 15961 if test set = "${lt_cv_aix_libpath+set}"; then 15962 aix_libpath=$lt_cv_aix_libpath 15963else 15964 if ${lt_cv_aix_libpath_+:} false; then : 15965 $as_echo_n "(cached) " >&6 15966else 15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968/* end confdefs.h. */ 15969 15970int 15971main () 15972{ 15973 15974 ; 15975 return 0; 15976} 15977_ACEOF 15978if ac_fn_c_try_link "$LINENO"; then : 15979 15980 lt_aix_libpath_sed=' 15981 /Import File Strings/,/^$/ { 15982 /^0/ { 15983 s/^0 *\([^ ]*\) *$/\1/ 15984 p 15985 } 15986 }' 15987 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15988 # Check for a 64-bit object if we didn't find anything. 15989 if test -z "$lt_cv_aix_libpath_"; then 15990 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15991 fi 15992fi 15993rm -f core conftest.err conftest.$ac_objext \ 15994 conftest$ac_exeext conftest.$ac_ext 15995 if test -z "$lt_cv_aix_libpath_"; then 15996 lt_cv_aix_libpath_=/usr/lib:/lib 15997 fi 15998 15999fi 16000 16001 aix_libpath=$lt_cv_aix_libpath_ 16002fi 16003 16004 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16005 # Warning - without using the other run time loading flags, 16006 # -berok will link without error, but may produce a broken library. 16007 no_undefined_flag=' $wl-bernotok' 16008 allow_undefined_flag=' $wl-berok' 16009 if test yes = "$with_gnu_ld"; then 16010 # We only use this code for GNU lds that support --whole-archive. 16011 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16012 else 16013 # Exported symbols can be pulled into shared objects from archives 16014 whole_archive_flag_spec='$convenience' 16015 fi 16016 archive_cmds_need_lc=yes 16017 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16018 # -brtl affects multiple linker settings, -berok does not and is overridden later 16019 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16020 if test svr4 != "$with_aix_soname"; then 16021 # This is similar to how AIX traditionally builds its shared libraries. 16022 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' 16023 fi 16024 if test aix != "$with_aix_soname"; then 16025 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' 16026 else 16027 # used by -dlpreopen to get the symbols 16028 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16029 fi 16030 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16031 fi 16032 fi 16033 ;; 16034 16035 amigaos*) 16036 case $host_cpu in 16037 powerpc) 16038 # see comment about AmigaOS4 .so support 16039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16040 archive_expsym_cmds='' 16041 ;; 16042 m68k) 16043 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)' 16044 hardcode_libdir_flag_spec='-L$libdir' 16045 hardcode_minus_L=yes 16046 ;; 16047 esac 16048 ;; 16049 16050 bsdi[45]*) 16051 export_dynamic_flag_spec=-rdynamic 16052 ;; 16053 16054 cygwin* | mingw* | pw32* | cegcc*) 16055 # When not using gcc, we currently assume that we are using 16056 # Microsoft Visual C++. 16057 # hardcode_libdir_flag_spec is actually meaningless, as there is 16058 # no search path for DLLs. 16059 case $cc_basename in 16060 cl*) 16061 # Native MSVC 16062 hardcode_libdir_flag_spec=' ' 16063 allow_undefined_flag=unsupported 16064 always_export_symbols=yes 16065 file_list_spec='@' 16066 # Tell ltmain to make .lib files, not .a files. 16067 libext=lib 16068 # Tell ltmain to make .dll files, not .so files. 16069 shrext_cmds=.dll 16070 # FIXME: Setting linknames here is a bad hack. 16071 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16072 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16073 cp "$export_symbols" "$output_objdir/$soname.def"; 16074 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16075 else 16076 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16077 fi~ 16078 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16079 linknames=' 16080 # The linker will not automatically build a static lib if we build a DLL. 16081 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16082 enable_shared_with_static_runtimes=yes 16083 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16085 # Don't use ranlib 16086 old_postinstall_cmds='chmod 644 $oldlib' 16087 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16088 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16089 case $lt_outputfile in 16090 *.exe|*.EXE) ;; 16091 *) 16092 lt_outputfile=$lt_outputfile.exe 16093 lt_tool_outputfile=$lt_tool_outputfile.exe 16094 ;; 16095 esac~ 16096 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16097 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16098 $RM "$lt_outputfile.manifest"; 16099 fi' 16100 ;; 16101 *) 16102 # Assume MSVC wrapper 16103 hardcode_libdir_flag_spec=' ' 16104 allow_undefined_flag=unsupported 16105 # Tell ltmain to make .lib files, not .a files. 16106 libext=lib 16107 # Tell ltmain to make .dll files, not .so files. 16108 shrext_cmds=.dll 16109 # FIXME: Setting linknames here is a bad hack. 16110 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16111 # The linker will automatically build a .lib file if we build a DLL. 16112 old_archive_from_new_cmds='true' 16113 # FIXME: Should let the user specify the lib program. 16114 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16115 enable_shared_with_static_runtimes=yes 16116 ;; 16117 esac 16118 ;; 16119 16120 darwin* | rhapsody*) 16121 16122 16123 archive_cmds_need_lc=no 16124 hardcode_direct=no 16125 hardcode_automatic=yes 16126 hardcode_shlibpath_var=unsupported 16127 if test yes = "$lt_cv_ld_force_load"; then 16128 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\"`' 16129 16130 else 16131 whole_archive_flag_spec='' 16132 fi 16133 link_all_deplibs=yes 16134 allow_undefined_flag=$_lt_dar_allow_undefined 16135 case $cc_basename in 16136 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16137 *) _lt_dar_can_shared=$GCC ;; 16138 esac 16139 if test yes = "$_lt_dar_can_shared"; then 16140 output_verbose_link_cmd=func_echo_all 16141 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16142 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16143 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" 16144 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" 16145 16146 else 16147 ld_shlibs=no 16148 fi 16149 16150 ;; 16151 16152 dgux*) 16153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16154 hardcode_libdir_flag_spec='-L$libdir' 16155 hardcode_shlibpath_var=no 16156 ;; 16157 16158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16159 # support. Future versions do this automatically, but an explicit c++rt0.o 16160 # does not break anything, and helps significantly (at the cost of a little 16161 # extra space). 16162 freebsd2.2*) 16163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16164 hardcode_libdir_flag_spec='-R$libdir' 16165 hardcode_direct=yes 16166 hardcode_shlibpath_var=no 16167 ;; 16168 16169 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16170 freebsd2.*) 16171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16172 hardcode_direct=yes 16173 hardcode_minus_L=yes 16174 hardcode_shlibpath_var=no 16175 ;; 16176 16177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16178 freebsd* | dragonfly*) 16179 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16180 hardcode_libdir_flag_spec='-R$libdir' 16181 hardcode_direct=yes 16182 hardcode_shlibpath_var=no 16183 ;; 16184 16185 hpux9*) 16186 if test yes = "$GCC"; then 16187 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' 16188 else 16189 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' 16190 fi 16191 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16192 hardcode_libdir_separator=: 16193 hardcode_direct=yes 16194 16195 # hardcode_minus_L: Not really in the search PATH, 16196 # but as the default location of the library. 16197 hardcode_minus_L=yes 16198 export_dynamic_flag_spec='$wl-E' 16199 ;; 16200 16201 hpux10*) 16202 if test yes,no = "$GCC,$with_gnu_ld"; then 16203 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16204 else 16205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16206 fi 16207 if test no = "$with_gnu_ld"; then 16208 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16209 hardcode_libdir_separator=: 16210 hardcode_direct=yes 16211 hardcode_direct_absolute=yes 16212 export_dynamic_flag_spec='$wl-E' 16213 # hardcode_minus_L: Not really in the search PATH, 16214 # but as the default location of the library. 16215 hardcode_minus_L=yes 16216 fi 16217 ;; 16218 16219 hpux11*) 16220 if test yes,no = "$GCC,$with_gnu_ld"; then 16221 case $host_cpu in 16222 hppa*64*) 16223 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16224 ;; 16225 ia64*) 16226 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16227 ;; 16228 *) 16229 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16230 ;; 16231 esac 16232 else 16233 case $host_cpu in 16234 hppa*64*) 16235 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16236 ;; 16237 ia64*) 16238 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16239 ;; 16240 *) 16241 16242 # Older versions of the 11.00 compiler do not understand -b yet 16243 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16245$as_echo_n "checking if $CC understands -b... " >&6; } 16246if ${lt_cv_prog_compiler__b+:} false; then : 16247 $as_echo_n "(cached) " >&6 16248else 16249 lt_cv_prog_compiler__b=no 16250 save_LDFLAGS=$LDFLAGS 16251 LDFLAGS="$LDFLAGS -b" 16252 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16253 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16254 # The linker can only warn and ignore the option if not recognized 16255 # So say no if there are warnings 16256 if test -s conftest.err; then 16257 # Append any errors to the config.log. 16258 cat conftest.err 1>&5 16259 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16261 if diff conftest.exp conftest.er2 >/dev/null; then 16262 lt_cv_prog_compiler__b=yes 16263 fi 16264 else 16265 lt_cv_prog_compiler__b=yes 16266 fi 16267 fi 16268 $RM -r conftest* 16269 LDFLAGS=$save_LDFLAGS 16270 16271fi 16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16273$as_echo "$lt_cv_prog_compiler__b" >&6; } 16274 16275if test yes = "$lt_cv_prog_compiler__b"; then 16276 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16277else 16278 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16279fi 16280 16281 ;; 16282 esac 16283 fi 16284 if test no = "$with_gnu_ld"; then 16285 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16286 hardcode_libdir_separator=: 16287 16288 case $host_cpu in 16289 hppa*64*|ia64*) 16290 hardcode_direct=no 16291 hardcode_shlibpath_var=no 16292 ;; 16293 *) 16294 hardcode_direct=yes 16295 hardcode_direct_absolute=yes 16296 export_dynamic_flag_spec='$wl-E' 16297 16298 # hardcode_minus_L: Not really in the search PATH, 16299 # but as the default location of the library. 16300 hardcode_minus_L=yes 16301 ;; 16302 esac 16303 fi 16304 ;; 16305 16306 irix5* | irix6* | nonstopux*) 16307 if test yes = "$GCC"; then 16308 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' 16309 # Try to use the -exported_symbol ld option, if it does not 16310 # work, assume that -exports_file does not work either and 16311 # implicitly export all symbols. 16312 # This should be the same for all languages, so no per-tag cache variable. 16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16314$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16315if ${lt_cv_irix_exported_symbol+:} false; then : 16316 $as_echo_n "(cached) " >&6 16317else 16318 save_LDFLAGS=$LDFLAGS 16319 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16321/* end confdefs.h. */ 16322int foo (void) { return 0; } 16323_ACEOF 16324if ac_fn_c_try_link "$LINENO"; then : 16325 lt_cv_irix_exported_symbol=yes 16326else 16327 lt_cv_irix_exported_symbol=no 16328fi 16329rm -f core conftest.err conftest.$ac_objext \ 16330 conftest$ac_exeext conftest.$ac_ext 16331 LDFLAGS=$save_LDFLAGS 16332fi 16333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16334$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16335 if test yes = "$lt_cv_irix_exported_symbol"; then 16336 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' 16337 fi 16338 else 16339 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' 16340 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' 16341 fi 16342 archive_cmds_need_lc='no' 16343 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16344 hardcode_libdir_separator=: 16345 inherit_rpath=yes 16346 link_all_deplibs=yes 16347 ;; 16348 16349 linux*) 16350 case $cc_basename in 16351 tcc*) 16352 # Fabrice Bellard et al's Tiny C Compiler 16353 ld_shlibs=yes 16354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16355 ;; 16356 esac 16357 ;; 16358 16359 netbsd*) 16360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16362 else 16363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16364 fi 16365 hardcode_libdir_flag_spec='-R$libdir' 16366 hardcode_direct=yes 16367 hardcode_shlibpath_var=no 16368 ;; 16369 16370 newsos6) 16371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16372 hardcode_direct=yes 16373 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16374 hardcode_libdir_separator=: 16375 hardcode_shlibpath_var=no 16376 ;; 16377 16378 *nto* | *qnx*) 16379 ;; 16380 16381 openbsd* | bitrig*) 16382 if test -f /usr/libexec/ld.so; then 16383 hardcode_direct=yes 16384 hardcode_shlibpath_var=no 16385 hardcode_direct_absolute=yes 16386 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16387 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16388 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16389 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16390 export_dynamic_flag_spec='$wl-E' 16391 else 16392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16393 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16394 fi 16395 else 16396 ld_shlibs=no 16397 fi 16398 ;; 16399 16400 os2*) 16401 hardcode_libdir_flag_spec='-L$libdir' 16402 hardcode_minus_L=yes 16403 allow_undefined_flag=unsupported 16404 shrext_cmds=.dll 16405 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16406 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16407 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16408 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16409 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16411 emximp -o $lib $output_objdir/$libname.def' 16412 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16413 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16414 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16415 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16416 prefix_cmds="$SED"~ 16417 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16418 prefix_cmds="$prefix_cmds -e 1d"; 16419 fi~ 16420 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16421 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16422 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16423 emximp -o $lib $output_objdir/$libname.def' 16424 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16425 enable_shared_with_static_runtimes=yes 16426 ;; 16427 16428 osf3*) 16429 if test yes = "$GCC"; then 16430 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16431 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' 16432 else 16433 allow_undefined_flag=' -expect_unresolved \*' 16434 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' 16435 fi 16436 archive_cmds_need_lc='no' 16437 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16438 hardcode_libdir_separator=: 16439 ;; 16440 16441 osf4* | osf5*) # as osf3* with the addition of -msym flag 16442 if test yes = "$GCC"; then 16443 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16444 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' 16445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16446 else 16447 allow_undefined_flag=' -expect_unresolved \*' 16448 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' 16449 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~ 16450 $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' 16451 16452 # Both c and cxx compiler support -rpath directly 16453 hardcode_libdir_flag_spec='-rpath $libdir' 16454 fi 16455 archive_cmds_need_lc='no' 16456 hardcode_libdir_separator=: 16457 ;; 16458 16459 solaris*) 16460 no_undefined_flag=' -z defs' 16461 if test yes = "$GCC"; then 16462 wlarc='$wl' 16463 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16465 $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' 16466 else 16467 case `$CC -V 2>&1` in 16468 *"Compilers 5.0"*) 16469 wlarc='' 16470 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16472 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16473 ;; 16474 *) 16475 wlarc='$wl' 16476 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16478 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16479 ;; 16480 esac 16481 fi 16482 hardcode_libdir_flag_spec='-R$libdir' 16483 hardcode_shlibpath_var=no 16484 case $host_os in 16485 solaris2.[0-5] | solaris2.[0-5].*) ;; 16486 *) 16487 # The compiler driver will combine and reorder linker options, 16488 # but understands '-z linker_flag'. GCC discards it without '$wl', 16489 # but is careful enough not to reorder. 16490 # Supported since Solaris 2.6 (maybe 2.5.1?) 16491 if test yes = "$GCC"; then 16492 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16493 else 16494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16495 fi 16496 ;; 16497 esac 16498 link_all_deplibs=yes 16499 ;; 16500 16501 sunos4*) 16502 if test sequent = "$host_vendor"; then 16503 # Use $CC to link under sequent, because it throws in some extra .o 16504 # files that make .init and .fini sections work. 16505 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16506 else 16507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16508 fi 16509 hardcode_libdir_flag_spec='-L$libdir' 16510 hardcode_direct=yes 16511 hardcode_minus_L=yes 16512 hardcode_shlibpath_var=no 16513 ;; 16514 16515 sysv4) 16516 case $host_vendor in 16517 sni) 16518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16519 hardcode_direct=yes # is this really true??? 16520 ;; 16521 siemens) 16522 ## LD is ld it makes a PLAMLIB 16523 ## CC just makes a GrossModule. 16524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16525 reload_cmds='$CC -r -o $output$reload_objs' 16526 hardcode_direct=no 16527 ;; 16528 motorola) 16529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16531 ;; 16532 esac 16533 runpath_var='LD_RUN_PATH' 16534 hardcode_shlibpath_var=no 16535 ;; 16536 16537 sysv4.3*) 16538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16539 hardcode_shlibpath_var=no 16540 export_dynamic_flag_spec='-Bexport' 16541 ;; 16542 16543 sysv4*MP*) 16544 if test -d /usr/nec; then 16545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16546 hardcode_shlibpath_var=no 16547 runpath_var=LD_RUN_PATH 16548 hardcode_runpath_var=yes 16549 ld_shlibs=yes 16550 fi 16551 ;; 16552 16553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16554 no_undefined_flag='$wl-z,text' 16555 archive_cmds_need_lc=no 16556 hardcode_shlibpath_var=no 16557 runpath_var='LD_RUN_PATH' 16558 16559 if test yes = "$GCC"; then 16560 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16561 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16562 else 16563 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16564 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16565 fi 16566 ;; 16567 16568 sysv5* | sco3.2v5* | sco5v6*) 16569 # Note: We CANNOT use -z defs as we might desire, because we do not 16570 # link with -lc, and that would cause any symbols used from libc to 16571 # always be unresolved, which means just about no library would 16572 # ever link correctly. If we're not using GNU ld we use -z text 16573 # though, which does catch some bad symbols but isn't as heavy-handed 16574 # as -z defs. 16575 no_undefined_flag='$wl-z,text' 16576 allow_undefined_flag='$wl-z,nodefs' 16577 archive_cmds_need_lc=no 16578 hardcode_shlibpath_var=no 16579 hardcode_libdir_flag_spec='$wl-R,$libdir' 16580 hardcode_libdir_separator=':' 16581 link_all_deplibs=yes 16582 export_dynamic_flag_spec='$wl-Bexport' 16583 runpath_var='LD_RUN_PATH' 16584 16585 if test yes = "$GCC"; then 16586 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16587 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16588 else 16589 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16590 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16591 fi 16592 ;; 16593 16594 uts4*) 16595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16596 hardcode_libdir_flag_spec='-L$libdir' 16597 hardcode_shlibpath_var=no 16598 ;; 16599 16600 *) 16601 ld_shlibs=no 16602 ;; 16603 esac 16604 16605 if test sni = "$host_vendor"; then 16606 case $host in 16607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16608 export_dynamic_flag_spec='$wl-Blargedynsym' 16609 ;; 16610 esac 16611 fi 16612 fi 16613 16614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16615$as_echo "$ld_shlibs" >&6; } 16616test no = "$ld_shlibs" && can_build_shared=no 16617 16618with_gnu_ld=$with_gnu_ld 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634# 16635# Do we need to explicitly link libc? 16636# 16637case "x$archive_cmds_need_lc" in 16638x|xyes) 16639 # Assume -lc should be added 16640 archive_cmds_need_lc=yes 16641 16642 if test yes,yes = "$GCC,$enable_shared"; then 16643 case $archive_cmds in 16644 *'~'*) 16645 # FIXME: we may have to deal with multi-command sequences. 16646 ;; 16647 '$CC '*) 16648 # Test whether the compiler implicitly links with -lc since on some 16649 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16650 # to ld, don't add -lc before -lgcc. 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16652$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16653if ${lt_cv_archive_cmds_need_lc+:} false; then : 16654 $as_echo_n "(cached) " >&6 16655else 16656 $RM conftest* 16657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16658 16659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16660 (eval $ac_compile) 2>&5 16661 ac_status=$? 16662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16663 test $ac_status = 0; } 2>conftest.err; then 16664 soname=conftest 16665 lib=conftest 16666 libobjs=conftest.$ac_objext 16667 deplibs= 16668 wl=$lt_prog_compiler_wl 16669 pic_flag=$lt_prog_compiler_pic 16670 compiler_flags=-v 16671 linker_flags=-v 16672 verstring= 16673 output_objdir=. 16674 libname=conftest 16675 lt_save_allow_undefined_flag=$allow_undefined_flag 16676 allow_undefined_flag= 16677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16678 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16679 ac_status=$? 16680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16681 test $ac_status = 0; } 16682 then 16683 lt_cv_archive_cmds_need_lc=no 16684 else 16685 lt_cv_archive_cmds_need_lc=yes 16686 fi 16687 allow_undefined_flag=$lt_save_allow_undefined_flag 16688 else 16689 cat conftest.err 1>&5 16690 fi 16691 $RM conftest* 16692 16693fi 16694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16695$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16696 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16697 ;; 16698 esac 16699 fi 16700 ;; 16701esac 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16855$as_echo_n "checking dynamic linker characteristics... " >&6; } 16856 16857if test yes = "$GCC"; then 16858 case $host_os in 16859 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16860 *) lt_awk_arg='/^libraries:/' ;; 16861 esac 16862 case $host_os in 16863 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16864 *) lt_sed_strip_eq='s|=/|/|g' ;; 16865 esac 16866 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16867 case $lt_search_path_spec in 16868 *\;*) 16869 # if the path contains ";" then we assume it to be the separator 16870 # otherwise default to the standard path separator (i.e. ":") - it is 16871 # assumed that no part of a normal pathname contains ";" but that should 16872 # okay in the real world where ";" in dirpaths is itself problematic. 16873 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16874 ;; 16875 *) 16876 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16877 ;; 16878 esac 16879 # Ok, now we have the path, separated by spaces, we can step through it 16880 # and add multilib dir if necessary... 16881 lt_tmp_lt_search_path_spec= 16882 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16883 # ...but if some path component already ends with the multilib dir we assume 16884 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16885 case "$lt_multi_os_dir; $lt_search_path_spec " in 16886 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16887 lt_multi_os_dir= 16888 ;; 16889 esac 16890 for lt_sys_path in $lt_search_path_spec; do 16891 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16892 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16893 elif test -n "$lt_multi_os_dir"; then 16894 test -d "$lt_sys_path" && \ 16895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16896 fi 16897 done 16898 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16899BEGIN {RS = " "; FS = "/|\n";} { 16900 lt_foo = ""; 16901 lt_count = 0; 16902 for (lt_i = NF; lt_i > 0; lt_i--) { 16903 if ($lt_i != "" && $lt_i != ".") { 16904 if ($lt_i == "..") { 16905 lt_count++; 16906 } else { 16907 if (lt_count == 0) { 16908 lt_foo = "/" $lt_i lt_foo; 16909 } else { 16910 lt_count--; 16911 } 16912 } 16913 } 16914 } 16915 if (lt_foo != "") { lt_freq[lt_foo]++; } 16916 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16917}'` 16918 # AWK program above erroneously prepends '/' to C:/dos/paths 16919 # for these hosts. 16920 case $host_os in 16921 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16922 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16923 esac 16924 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16925else 16926 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16927fi 16928library_names_spec= 16929libname_spec='lib$name' 16930soname_spec= 16931shrext_cmds=.so 16932postinstall_cmds= 16933postuninstall_cmds= 16934finish_cmds= 16935finish_eval= 16936shlibpath_var= 16937shlibpath_overrides_runpath=unknown 16938version_type=none 16939dynamic_linker="$host_os ld.so" 16940sys_lib_dlsearch_path_spec="/lib /usr/lib" 16941need_lib_prefix=unknown 16942hardcode_into_libs=no 16943 16944# when you set need_version to no, make sure it does not cause -set_version 16945# flags to be left without arguments 16946need_version=unknown 16947 16948 16949 16950case $host_os in 16951aix3*) 16952 version_type=linux # correct to gnu/linux during the next big refactor 16953 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16954 shlibpath_var=LIBPATH 16955 16956 # AIX 3 has no versioning support, so we append a major version to the name. 16957 soname_spec='$libname$release$shared_ext$major' 16958 ;; 16959 16960aix[4-9]*) 16961 version_type=linux # correct to gnu/linux during the next big refactor 16962 need_lib_prefix=no 16963 need_version=no 16964 hardcode_into_libs=yes 16965 if test ia64 = "$host_cpu"; then 16966 # AIX 5 supports IA64 16967 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16968 shlibpath_var=LD_LIBRARY_PATH 16969 else 16970 # With GCC up to 2.95.x, collect2 would create an import file 16971 # for dependence libraries. The import file would start with 16972 # the line '#! .'. This would cause the generated library to 16973 # depend on '.', always an invalid library. This was fixed in 16974 # development snapshots of GCC prior to 3.0. 16975 case $host_os in 16976 aix4 | aix4.[01] | aix4.[01].*) 16977 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16978 echo ' yes ' 16979 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16980 : 16981 else 16982 can_build_shared=no 16983 fi 16984 ;; 16985 esac 16986 # Using Import Files as archive members, it is possible to support 16987 # filename-based versioning of shared library archives on AIX. While 16988 # this would work for both with and without runtime linking, it will 16989 # prevent static linking of such archives. So we do filename-based 16990 # shared library versioning with .so extension only, which is used 16991 # when both runtime linking and shared linking is enabled. 16992 # Unfortunately, runtime linking may impact performance, so we do 16993 # not want this to be the default eventually. Also, we use the 16994 # versioned .so libs for executables only if there is the -brtl 16995 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16996 # To allow for filename-based versioning support, we need to create 16997 # libNAME.so.V as an archive file, containing: 16998 # *) an Import File, referring to the versioned filename of the 16999 # archive as well as the shared archive member, telling the 17000 # bitwidth (32 or 64) of that shared object, and providing the 17001 # list of exported symbols of that shared object, eventually 17002 # decorated with the 'weak' keyword 17003 # *) the shared object with the F_LOADONLY flag set, to really avoid 17004 # it being seen by the linker. 17005 # At run time we better use the real file rather than another symlink, 17006 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17007 17008 case $with_aix_soname,$aix_use_runtimelinking in 17009 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17010 # soname into executable. Probably we can add versioning support to 17011 # collect2, so additional links can be useful in future. 17012 aix,yes) # traditional libtool 17013 dynamic_linker='AIX unversionable lib.so' 17014 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17015 # instead of lib<name>.a to let people know that these are not 17016 # typical AIX shared libraries. 17017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17018 ;; 17019 aix,no) # traditional AIX only 17020 dynamic_linker='AIX lib.a(lib.so.V)' 17021 # We preserve .a as extension for shared libraries through AIX4.2 17022 # and later when we are not doing run time linking. 17023 library_names_spec='$libname$release.a $libname.a' 17024 soname_spec='$libname$release$shared_ext$major' 17025 ;; 17026 svr4,*) # full svr4 only 17027 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17028 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17029 # We do not specify a path in Import Files, so LIBPATH fires. 17030 shlibpath_overrides_runpath=yes 17031 ;; 17032 *,yes) # both, prefer svr4 17033 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17034 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17035 # unpreferred sharedlib libNAME.a needs extra handling 17036 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"' 17037 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"' 17038 # We do not specify a path in Import Files, so LIBPATH fires. 17039 shlibpath_overrides_runpath=yes 17040 ;; 17041 *,no) # both, prefer aix 17042 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17043 library_names_spec='$libname$release.a $libname.a' 17044 soname_spec='$libname$release$shared_ext$major' 17045 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17046 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)' 17047 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"' 17048 ;; 17049 esac 17050 shlibpath_var=LIBPATH 17051 fi 17052 ;; 17053 17054amigaos*) 17055 case $host_cpu in 17056 powerpc) 17057 # Since July 2007 AmigaOS4 officially supports .so libraries. 17058 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17060 ;; 17061 m68k) 17062 library_names_spec='$libname.ixlibrary $libname.a' 17063 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17064 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' 17065 ;; 17066 esac 17067 ;; 17068 17069beos*) 17070 library_names_spec='$libname$shared_ext' 17071 dynamic_linker="$host_os ld.so" 17072 shlibpath_var=LIBRARY_PATH 17073 ;; 17074 17075bsdi[45]*) 17076 version_type=linux # correct to gnu/linux during the next big refactor 17077 need_version=no 17078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17079 soname_spec='$libname$release$shared_ext$major' 17080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17081 shlibpath_var=LD_LIBRARY_PATH 17082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17084 # the default ld.so.conf also contains /usr/contrib/lib and 17085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17086 # libtool to hard-code these into programs 17087 ;; 17088 17089cygwin* | mingw* | pw32* | cegcc*) 17090 version_type=windows 17091 shrext_cmds=.dll 17092 need_version=no 17093 need_lib_prefix=no 17094 17095 case $GCC,$cc_basename in 17096 yes,*) 17097 # gcc 17098 library_names_spec='$libname.dll.a' 17099 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17100 postinstall_cmds='base_file=`basename \$file`~ 17101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17102 dldir=$destdir/`dirname \$dlpath`~ 17103 test -d \$dldir || mkdir -p \$dldir~ 17104 $install_prog $dir/$dlname \$dldir/$dlname~ 17105 chmod a+x \$dldir/$dlname~ 17106 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17107 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17108 fi' 17109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17110 dlpath=$dir/\$dldll~ 17111 $RM \$dlpath' 17112 shlibpath_overrides_runpath=yes 17113 17114 case $host_os in 17115 cygwin*) 17116 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17117 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17118 17119 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17120 ;; 17121 mingw* | cegcc*) 17122 # MinGW DLLs use traditional 'lib' prefix 17123 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17124 ;; 17125 pw32*) 17126 # pw32 DLLs use 'pw' prefix rather than 'lib' 17127 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17128 ;; 17129 esac 17130 dynamic_linker='Win32 ld.exe' 17131 ;; 17132 17133 *,cl*) 17134 # Native MSVC 17135 libname_spec='$name' 17136 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17137 library_names_spec='$libname.dll.lib' 17138 17139 case $build_os in 17140 mingw*) 17141 sys_lib_search_path_spec= 17142 lt_save_ifs=$IFS 17143 IFS=';' 17144 for lt_path in $LIB 17145 do 17146 IFS=$lt_save_ifs 17147 # Let DOS variable expansion print the short 8.3 style file name. 17148 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17149 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17150 done 17151 IFS=$lt_save_ifs 17152 # Convert to MSYS style. 17153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17154 ;; 17155 cygwin*) 17156 # Convert to unix form, then to dos form, then back to unix form 17157 # but this time dos style (no spaces!) so that the unix form looks 17158 # like /cygdrive/c/PROGRA~1:/cygdr... 17159 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17160 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17161 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17162 ;; 17163 *) 17164 sys_lib_search_path_spec=$LIB 17165 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17166 # It is most probably a Windows format PATH. 17167 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17168 else 17169 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17170 fi 17171 # FIXME: find the short name or the path components, as spaces are 17172 # common. (e.g. "Program Files" -> "PROGRA~1") 17173 ;; 17174 esac 17175 17176 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17177 postinstall_cmds='base_file=`basename \$file`~ 17178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17179 dldir=$destdir/`dirname \$dlpath`~ 17180 test -d \$dldir || mkdir -p \$dldir~ 17181 $install_prog $dir/$dlname \$dldir/$dlname' 17182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17183 dlpath=$dir/\$dldll~ 17184 $RM \$dlpath' 17185 shlibpath_overrides_runpath=yes 17186 dynamic_linker='Win32 link.exe' 17187 ;; 17188 17189 *) 17190 # Assume MSVC wrapper 17191 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17192 dynamic_linker='Win32 ld.exe' 17193 ;; 17194 esac 17195 # FIXME: first we should search . and the directory the executable is in 17196 shlibpath_var=PATH 17197 ;; 17198 17199darwin* | rhapsody*) 17200 dynamic_linker="$host_os dyld" 17201 version_type=darwin 17202 need_lib_prefix=no 17203 need_version=no 17204 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17205 soname_spec='$libname$release$major$shared_ext' 17206 shlibpath_overrides_runpath=yes 17207 shlibpath_var=DYLD_LIBRARY_PATH 17208 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17209 17210 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17212 ;; 17213 17214dgux*) 17215 version_type=linux # correct to gnu/linux during the next big refactor 17216 need_lib_prefix=no 17217 need_version=no 17218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17219 soname_spec='$libname$release$shared_ext$major' 17220 shlibpath_var=LD_LIBRARY_PATH 17221 ;; 17222 17223freebsd* | dragonfly*) 17224 # DragonFly does not have aout. When/if they implement a new 17225 # versioning mechanism, adjust this. 17226 if test -x /usr/bin/objformat; then 17227 objformat=`/usr/bin/objformat` 17228 else 17229 case $host_os in 17230 freebsd[23].*) objformat=aout ;; 17231 *) objformat=elf ;; 17232 esac 17233 fi 17234 # Handle Gentoo/FreeBSD as it was Linux 17235 case $host_vendor in 17236 gentoo) 17237 version_type=linux ;; 17238 *) 17239 version_type=freebsd-$objformat ;; 17240 esac 17241 17242 case $version_type in 17243 freebsd-elf*) 17244 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17245 soname_spec='$libname$release$shared_ext$major' 17246 need_version=no 17247 need_lib_prefix=no 17248 ;; 17249 freebsd-*) 17250 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17251 need_version=yes 17252 ;; 17253 linux) 17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17255 soname_spec='${libname}${release}${shared_ext}$major' 17256 need_lib_prefix=no 17257 need_version=no 17258 ;; 17259 esac 17260 shlibpath_var=LD_LIBRARY_PATH 17261 case $host_os in 17262 freebsd2.*) 17263 shlibpath_overrides_runpath=yes 17264 ;; 17265 freebsd3.[01]* | freebsdelf3.[01]*) 17266 shlibpath_overrides_runpath=yes 17267 hardcode_into_libs=yes 17268 ;; 17269 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17270 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17271 shlibpath_overrides_runpath=no 17272 hardcode_into_libs=yes 17273 ;; 17274 *) # from 4.6 on, and DragonFly 17275 shlibpath_overrides_runpath=yes 17276 hardcode_into_libs=yes 17277 ;; 17278 esac 17279 ;; 17280 17281haiku*) 17282 version_type=linux # correct to gnu/linux during the next big refactor 17283 need_lib_prefix=no 17284 need_version=no 17285 dynamic_linker="$host_os runtime_loader" 17286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17287 soname_spec='$libname$release$shared_ext$major' 17288 shlibpath_var=LIBRARY_PATH 17289 shlibpath_overrides_runpath=no 17290 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17291 hardcode_into_libs=yes 17292 ;; 17293 17294hpux9* | hpux10* | hpux11*) 17295 # Give a soname corresponding to the major version so that dld.sl refuses to 17296 # link against other versions. 17297 version_type=sunos 17298 need_lib_prefix=no 17299 need_version=no 17300 case $host_cpu in 17301 ia64*) 17302 shrext_cmds='.so' 17303 hardcode_into_libs=yes 17304 dynamic_linker="$host_os dld.so" 17305 shlibpath_var=LD_LIBRARY_PATH 17306 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17308 soname_spec='$libname$release$shared_ext$major' 17309 if test 32 = "$HPUX_IA64_MODE"; then 17310 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17311 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17312 else 17313 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17314 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17315 fi 17316 ;; 17317 hppa*64*) 17318 shrext_cmds='.sl' 17319 hardcode_into_libs=yes 17320 dynamic_linker="$host_os dld.sl" 17321 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17324 soname_spec='$libname$release$shared_ext$major' 17325 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17327 ;; 17328 *) 17329 shrext_cmds='.sl' 17330 dynamic_linker="$host_os dld.sl" 17331 shlibpath_var=SHLIB_PATH 17332 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17334 soname_spec='$libname$release$shared_ext$major' 17335 ;; 17336 esac 17337 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17338 postinstall_cmds='chmod 555 $lib' 17339 # or fails outright, so override atomically: 17340 install_override_mode=555 17341 ;; 17342 17343interix[3-9]*) 17344 version_type=linux # correct to gnu/linux during the next big refactor 17345 need_lib_prefix=no 17346 need_version=no 17347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17348 soname_spec='$libname$release$shared_ext$major' 17349 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17350 shlibpath_var=LD_LIBRARY_PATH 17351 shlibpath_overrides_runpath=no 17352 hardcode_into_libs=yes 17353 ;; 17354 17355irix5* | irix6* | nonstopux*) 17356 case $host_os in 17357 nonstopux*) version_type=nonstopux ;; 17358 *) 17359 if test yes = "$lt_cv_prog_gnu_ld"; then 17360 version_type=linux # correct to gnu/linux during the next big refactor 17361 else 17362 version_type=irix 17363 fi ;; 17364 esac 17365 need_lib_prefix=no 17366 need_version=no 17367 soname_spec='$libname$release$shared_ext$major' 17368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17369 case $host_os in 17370 irix5* | nonstopux*) 17371 libsuff= shlibsuff= 17372 ;; 17373 *) 17374 case $LD in # libtool.m4 will add one of these switches to LD 17375 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17376 libsuff= shlibsuff= libmagic=32-bit;; 17377 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17378 libsuff=32 shlibsuff=N32 libmagic=N32;; 17379 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17380 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17381 *) libsuff= shlibsuff= libmagic=never-match;; 17382 esac 17383 ;; 17384 esac 17385 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17386 shlibpath_overrides_runpath=no 17387 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17388 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17389 hardcode_into_libs=yes 17390 ;; 17391 17392# No shared lib support for Linux oldld, aout, or coff. 17393linux*oldld* | linux*aout* | linux*coff*) 17394 dynamic_linker=no 17395 ;; 17396 17397linux*android*) 17398 version_type=none # Android doesn't support versioned libraries. 17399 need_lib_prefix=no 17400 need_version=no 17401 library_names_spec='$libname$release$shared_ext' 17402 soname_spec='$libname$release$shared_ext' 17403 finish_cmds= 17404 shlibpath_var=LD_LIBRARY_PATH 17405 shlibpath_overrides_runpath=yes 17406 17407 # This implies no fast_install, which is unacceptable. 17408 # Some rework will be needed to allow for fast_install 17409 # before this can be enabled. 17410 hardcode_into_libs=yes 17411 17412 dynamic_linker='Android linker' 17413 # Don't embed -rpath directories since the linker doesn't support them. 17414 hardcode_libdir_flag_spec='-L$libdir' 17415 ;; 17416 17417# This must be glibc/ELF. 17418linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17419 version_type=linux # correct to gnu/linux during the next big refactor 17420 need_lib_prefix=no 17421 need_version=no 17422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17423 soname_spec='$libname$release$shared_ext$major' 17424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17425 shlibpath_var=LD_LIBRARY_PATH 17426 shlibpath_overrides_runpath=no 17427 17428 # Some binutils ld are patched to set DT_RUNPATH 17429 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17430 $as_echo_n "(cached) " >&6 17431else 17432 lt_cv_shlibpath_overrides_runpath=no 17433 save_LDFLAGS=$LDFLAGS 17434 save_libdir=$libdir 17435 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17436 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17438/* end confdefs.h. */ 17439 17440int 17441main () 17442{ 17443 17444 ; 17445 return 0; 17446} 17447_ACEOF 17448if ac_fn_c_try_link "$LINENO"; then : 17449 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17450 lt_cv_shlibpath_overrides_runpath=yes 17451fi 17452fi 17453rm -f core conftest.err conftest.$ac_objext \ 17454 conftest$ac_exeext conftest.$ac_ext 17455 LDFLAGS=$save_LDFLAGS 17456 libdir=$save_libdir 17457 17458fi 17459 17460 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17461 17462 # This implies no fast_install, which is unacceptable. 17463 # Some rework will be needed to allow for fast_install 17464 # before this can be enabled. 17465 hardcode_into_libs=yes 17466 17467 # Ideally, we could use ldconfig to report *all* directores which are 17468 # searched for libraries, however this is still not possible. Aside from not 17469 # being certain /sbin/ldconfig is available, command 17470 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17471 # even though it is searched at run-time. Try to do the best guess by 17472 # appending ld.so.conf contents (and includes) to the search path. 17473 if test -f /etc/ld.so.conf; then 17474 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' ' '` 17475 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17476 fi 17477 17478 # We used to test for /lib/ld.so.1 and disable shared libraries on 17479 # powerpc, because MkLinux only supported shared libraries with the 17480 # GNU dynamic linker. Since this was broken with cross compilers, 17481 # most powerpc-linux boxes support dynamic linking these days and 17482 # people can always --disable-shared, the test was removed, and we 17483 # assume the GNU/Linux dynamic linker is in use. 17484 dynamic_linker='GNU/Linux ld.so' 17485 ;; 17486 17487netbsd*) 17488 version_type=sunos 17489 need_lib_prefix=no 17490 need_version=no 17491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17492 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17494 dynamic_linker='NetBSD (a.out) ld.so' 17495 else 17496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17497 soname_spec='$libname$release$shared_ext$major' 17498 dynamic_linker='NetBSD ld.elf_so' 17499 fi 17500 shlibpath_var=LD_LIBRARY_PATH 17501 shlibpath_overrides_runpath=yes 17502 hardcode_into_libs=yes 17503 ;; 17504 17505newsos6) 17506 version_type=linux # correct to gnu/linux during the next big refactor 17507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17508 shlibpath_var=LD_LIBRARY_PATH 17509 shlibpath_overrides_runpath=yes 17510 ;; 17511 17512*nto* | *qnx*) 17513 version_type=qnx 17514 need_lib_prefix=no 17515 need_version=no 17516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17517 soname_spec='$libname$release$shared_ext$major' 17518 shlibpath_var=LD_LIBRARY_PATH 17519 shlibpath_overrides_runpath=no 17520 hardcode_into_libs=yes 17521 dynamic_linker='ldqnx.so' 17522 ;; 17523 17524openbsd* | bitrig*) 17525 version_type=sunos 17526 sys_lib_dlsearch_path_spec=/usr/lib 17527 need_lib_prefix=no 17528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17529 need_version=no 17530 else 17531 need_version=yes 17532 fi 17533 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17535 shlibpath_var=LD_LIBRARY_PATH 17536 shlibpath_overrides_runpath=yes 17537 ;; 17538 17539os2*) 17540 libname_spec='$name' 17541 version_type=windows 17542 shrext_cmds=.dll 17543 need_version=no 17544 need_lib_prefix=no 17545 # OS/2 can only load a DLL with a base name of 8 characters or less. 17546 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17547 v=$($ECHO $release$versuffix | tr -d .-); 17548 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17549 $ECHO $n$v`$shared_ext' 17550 library_names_spec='${libname}_dll.$libext' 17551 dynamic_linker='OS/2 ld.exe' 17552 shlibpath_var=BEGINLIBPATH 17553 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17555 postinstall_cmds='base_file=`basename \$file`~ 17556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17557 dldir=$destdir/`dirname \$dlpath`~ 17558 test -d \$dldir || mkdir -p \$dldir~ 17559 $install_prog $dir/$dlname \$dldir/$dlname~ 17560 chmod a+x \$dldir/$dlname~ 17561 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17562 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17563 fi' 17564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17565 dlpath=$dir/\$dldll~ 17566 $RM \$dlpath' 17567 ;; 17568 17569osf3* | osf4* | osf5*) 17570 version_type=osf 17571 need_lib_prefix=no 17572 need_version=no 17573 soname_spec='$libname$release$shared_ext$major' 17574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17575 shlibpath_var=LD_LIBRARY_PATH 17576 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17578 ;; 17579 17580rdos*) 17581 dynamic_linker=no 17582 ;; 17583 17584solaris*) 17585 version_type=linux # correct to gnu/linux during the next big refactor 17586 need_lib_prefix=no 17587 need_version=no 17588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17589 soname_spec='$libname$release$shared_ext$major' 17590 shlibpath_var=LD_LIBRARY_PATH 17591 shlibpath_overrides_runpath=yes 17592 hardcode_into_libs=yes 17593 # ldd complains unless libraries are executable 17594 postinstall_cmds='chmod +x $lib' 17595 ;; 17596 17597sunos4*) 17598 version_type=sunos 17599 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17600 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17601 shlibpath_var=LD_LIBRARY_PATH 17602 shlibpath_overrides_runpath=yes 17603 if test yes = "$with_gnu_ld"; then 17604 need_lib_prefix=no 17605 fi 17606 need_version=yes 17607 ;; 17608 17609sysv4 | sysv4.3*) 17610 version_type=linux # correct to gnu/linux during the next big refactor 17611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17612 soname_spec='$libname$release$shared_ext$major' 17613 shlibpath_var=LD_LIBRARY_PATH 17614 case $host_vendor in 17615 sni) 17616 shlibpath_overrides_runpath=no 17617 need_lib_prefix=no 17618 runpath_var=LD_RUN_PATH 17619 ;; 17620 siemens) 17621 need_lib_prefix=no 17622 ;; 17623 motorola) 17624 need_lib_prefix=no 17625 need_version=no 17626 shlibpath_overrides_runpath=no 17627 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17628 ;; 17629 esac 17630 ;; 17631 17632sysv4*MP*) 17633 if test -d /usr/nec; then 17634 version_type=linux # correct to gnu/linux during the next big refactor 17635 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17636 soname_spec='$libname$shared_ext.$major' 17637 shlibpath_var=LD_LIBRARY_PATH 17638 fi 17639 ;; 17640 17641sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17642 version_type=sco 17643 need_lib_prefix=no 17644 need_version=no 17645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17646 soname_spec='$libname$release$shared_ext$major' 17647 shlibpath_var=LD_LIBRARY_PATH 17648 shlibpath_overrides_runpath=yes 17649 hardcode_into_libs=yes 17650 if test yes = "$with_gnu_ld"; then 17651 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17652 else 17653 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17654 case $host_os in 17655 sco3.2v5*) 17656 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17657 ;; 17658 esac 17659 fi 17660 sys_lib_dlsearch_path_spec='/usr/lib' 17661 ;; 17662 17663tpf*) 17664 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17665 version_type=linux # correct to gnu/linux during the next big refactor 17666 need_lib_prefix=no 17667 need_version=no 17668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17669 shlibpath_var=LD_LIBRARY_PATH 17670 shlibpath_overrides_runpath=no 17671 hardcode_into_libs=yes 17672 ;; 17673 17674uts4*) 17675 version_type=linux # correct to gnu/linux during the next big refactor 17676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17677 soname_spec='$libname$release$shared_ext$major' 17678 shlibpath_var=LD_LIBRARY_PATH 17679 ;; 17680 17681*) 17682 dynamic_linker=no 17683 ;; 17684esac 17685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17686$as_echo "$dynamic_linker" >&6; } 17687test no = "$dynamic_linker" && can_build_shared=no 17688 17689variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17690if test yes = "$GCC"; then 17691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17692fi 17693 17694if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17695 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17696fi 17697 17698if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17699 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17700fi 17701 17702# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17703configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17704 17705# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17706func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17707 17708# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17709configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17808$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17809hardcode_action= 17810if test -n "$hardcode_libdir_flag_spec" || 17811 test -n "$runpath_var" || 17812 test yes = "$hardcode_automatic"; then 17813 17814 # We can hardcode non-existent directories. 17815 if test no != "$hardcode_direct" && 17816 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17817 # have to relink, otherwise we might link with an installed library 17818 # when we should be linking with a yet-to-be-installed one 17819 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17820 test no != "$hardcode_minus_L"; then 17821 # Linking always hardcodes the temporary library directory. 17822 hardcode_action=relink 17823 else 17824 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17825 hardcode_action=immediate 17826 fi 17827else 17828 # We cannot hardcode anything, or else we can only hardcode existing 17829 # directories. 17830 hardcode_action=unsupported 17831fi 17832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17833$as_echo "$hardcode_action" >&6; } 17834 17835if test relink = "$hardcode_action" || 17836 test yes = "$inherit_rpath"; then 17837 # Fast installation is not supported 17838 enable_fast_install=no 17839elif test yes = "$shlibpath_overrides_runpath" || 17840 test no = "$enable_shared"; then 17841 # Fast installation is not necessary 17842 enable_fast_install=needless 17843fi 17844 17845 17846 17847 17848 17849 17850 if test yes != "$enable_dlopen"; then 17851 enable_dlopen=unknown 17852 enable_dlopen_self=unknown 17853 enable_dlopen_self_static=unknown 17854else 17855 lt_cv_dlopen=no 17856 lt_cv_dlopen_libs= 17857 17858 case $host_os in 17859 beos*) 17860 lt_cv_dlopen=load_add_on 17861 lt_cv_dlopen_libs= 17862 lt_cv_dlopen_self=yes 17863 ;; 17864 17865 mingw* | pw32* | cegcc*) 17866 lt_cv_dlopen=LoadLibrary 17867 lt_cv_dlopen_libs= 17868 ;; 17869 17870 cygwin*) 17871 lt_cv_dlopen=dlopen 17872 lt_cv_dlopen_libs= 17873 ;; 17874 17875 darwin*) 17876 # if libdl is installed we need to link against it 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17878$as_echo_n "checking for dlopen in -ldl... " >&6; } 17879if ${ac_cv_lib_dl_dlopen+:} false; then : 17880 $as_echo_n "(cached) " >&6 17881else 17882 ac_check_lib_save_LIBS=$LIBS 17883LIBS="-ldl $LIBS" 17884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17885/* end confdefs.h. */ 17886 17887/* Override any GCC internal prototype to avoid an error. 17888 Use char because int might match the return type of a GCC 17889 builtin and then its argument prototype would still apply. */ 17890#ifdef __cplusplus 17891extern "C" 17892#endif 17893char dlopen (); 17894int 17895main () 17896{ 17897return dlopen (); 17898 ; 17899 return 0; 17900} 17901_ACEOF 17902if ac_fn_c_try_link "$LINENO"; then : 17903 ac_cv_lib_dl_dlopen=yes 17904else 17905 ac_cv_lib_dl_dlopen=no 17906fi 17907rm -f core conftest.err conftest.$ac_objext \ 17908 conftest$ac_exeext conftest.$ac_ext 17909LIBS=$ac_check_lib_save_LIBS 17910fi 17911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17912$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17913if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17914 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17915else 17916 17917 lt_cv_dlopen=dyld 17918 lt_cv_dlopen_libs= 17919 lt_cv_dlopen_self=yes 17920 17921fi 17922 17923 ;; 17924 17925 tpf*) 17926 # Don't try to run any link tests for TPF. We know it's impossible 17927 # because TPF is a cross-compiler, and we know how we open DSOs. 17928 lt_cv_dlopen=dlopen 17929 lt_cv_dlopen_libs= 17930 lt_cv_dlopen_self=no 17931 ;; 17932 17933 *) 17934 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17935if test "x$ac_cv_func_shl_load" = xyes; then : 17936 lt_cv_dlopen=shl_load 17937else 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17939$as_echo_n "checking for shl_load in -ldld... " >&6; } 17940if ${ac_cv_lib_dld_shl_load+:} false; then : 17941 $as_echo_n "(cached) " >&6 17942else 17943 ac_check_lib_save_LIBS=$LIBS 17944LIBS="-ldld $LIBS" 17945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17946/* end confdefs.h. */ 17947 17948/* Override any GCC internal prototype to avoid an error. 17949 Use char because int might match the return type of a GCC 17950 builtin and then its argument prototype would still apply. */ 17951#ifdef __cplusplus 17952extern "C" 17953#endif 17954char shl_load (); 17955int 17956main () 17957{ 17958return shl_load (); 17959 ; 17960 return 0; 17961} 17962_ACEOF 17963if ac_fn_c_try_link "$LINENO"; then : 17964 ac_cv_lib_dld_shl_load=yes 17965else 17966 ac_cv_lib_dld_shl_load=no 17967fi 17968rm -f core conftest.err conftest.$ac_objext \ 17969 conftest$ac_exeext conftest.$ac_ext 17970LIBS=$ac_check_lib_save_LIBS 17971fi 17972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17973$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17974if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17975 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17976else 17977 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17978if test "x$ac_cv_func_dlopen" = xyes; then : 17979 lt_cv_dlopen=dlopen 17980else 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17982$as_echo_n "checking for dlopen in -ldl... " >&6; } 17983if ${ac_cv_lib_dl_dlopen+:} false; then : 17984 $as_echo_n "(cached) " >&6 17985else 17986 ac_check_lib_save_LIBS=$LIBS 17987LIBS="-ldl $LIBS" 17988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989/* end confdefs.h. */ 17990 17991/* Override any GCC internal prototype to avoid an error. 17992 Use char because int might match the return type of a GCC 17993 builtin and then its argument prototype would still apply. */ 17994#ifdef __cplusplus 17995extern "C" 17996#endif 17997char dlopen (); 17998int 17999main () 18000{ 18001return dlopen (); 18002 ; 18003 return 0; 18004} 18005_ACEOF 18006if ac_fn_c_try_link "$LINENO"; then : 18007 ac_cv_lib_dl_dlopen=yes 18008else 18009 ac_cv_lib_dl_dlopen=no 18010fi 18011rm -f core conftest.err conftest.$ac_objext \ 18012 conftest$ac_exeext conftest.$ac_ext 18013LIBS=$ac_check_lib_save_LIBS 18014fi 18015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18016$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18017if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18018 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18019else 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18021$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18022if ${ac_cv_lib_svld_dlopen+:} false; then : 18023 $as_echo_n "(cached) " >&6 18024else 18025 ac_check_lib_save_LIBS=$LIBS 18026LIBS="-lsvld $LIBS" 18027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18028/* end confdefs.h. */ 18029 18030/* Override any GCC internal prototype to avoid an error. 18031 Use char because int might match the return type of a GCC 18032 builtin and then its argument prototype would still apply. */ 18033#ifdef __cplusplus 18034extern "C" 18035#endif 18036char dlopen (); 18037int 18038main () 18039{ 18040return dlopen (); 18041 ; 18042 return 0; 18043} 18044_ACEOF 18045if ac_fn_c_try_link "$LINENO"; then : 18046 ac_cv_lib_svld_dlopen=yes 18047else 18048 ac_cv_lib_svld_dlopen=no 18049fi 18050rm -f core conftest.err conftest.$ac_objext \ 18051 conftest$ac_exeext conftest.$ac_ext 18052LIBS=$ac_check_lib_save_LIBS 18053fi 18054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18055$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18056if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18057 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18058else 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18060$as_echo_n "checking for dld_link in -ldld... " >&6; } 18061if ${ac_cv_lib_dld_dld_link+:} false; then : 18062 $as_echo_n "(cached) " >&6 18063else 18064 ac_check_lib_save_LIBS=$LIBS 18065LIBS="-ldld $LIBS" 18066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18067/* end confdefs.h. */ 18068 18069/* Override any GCC internal prototype to avoid an error. 18070 Use char because int might match the return type of a GCC 18071 builtin and then its argument prototype would still apply. */ 18072#ifdef __cplusplus 18073extern "C" 18074#endif 18075char dld_link (); 18076int 18077main () 18078{ 18079return dld_link (); 18080 ; 18081 return 0; 18082} 18083_ACEOF 18084if ac_fn_c_try_link "$LINENO"; then : 18085 ac_cv_lib_dld_dld_link=yes 18086else 18087 ac_cv_lib_dld_dld_link=no 18088fi 18089rm -f core conftest.err conftest.$ac_objext \ 18090 conftest$ac_exeext conftest.$ac_ext 18091LIBS=$ac_check_lib_save_LIBS 18092fi 18093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18094$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18095if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18096 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18097fi 18098 18099 18100fi 18101 18102 18103fi 18104 18105 18106fi 18107 18108 18109fi 18110 18111 18112fi 18113 18114 ;; 18115 esac 18116 18117 if test no = "$lt_cv_dlopen"; then 18118 enable_dlopen=no 18119 else 18120 enable_dlopen=yes 18121 fi 18122 18123 case $lt_cv_dlopen in 18124 dlopen) 18125 save_CPPFLAGS=$CPPFLAGS 18126 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18127 18128 save_LDFLAGS=$LDFLAGS 18129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18130 18131 save_LIBS=$LIBS 18132 LIBS="$lt_cv_dlopen_libs $LIBS" 18133 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18135$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18136if ${lt_cv_dlopen_self+:} false; then : 18137 $as_echo_n "(cached) " >&6 18138else 18139 if test yes = "$cross_compiling"; then : 18140 lt_cv_dlopen_self=cross 18141else 18142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18143 lt_status=$lt_dlunknown 18144 cat > conftest.$ac_ext <<_LT_EOF 18145#line $LINENO "configure" 18146#include "confdefs.h" 18147 18148#if HAVE_DLFCN_H 18149#include <dlfcn.h> 18150#endif 18151 18152#include <stdio.h> 18153 18154#ifdef RTLD_GLOBAL 18155# define LT_DLGLOBAL RTLD_GLOBAL 18156#else 18157# ifdef DL_GLOBAL 18158# define LT_DLGLOBAL DL_GLOBAL 18159# else 18160# define LT_DLGLOBAL 0 18161# endif 18162#endif 18163 18164/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18165 find out it does not work in some platform. */ 18166#ifndef LT_DLLAZY_OR_NOW 18167# ifdef RTLD_LAZY 18168# define LT_DLLAZY_OR_NOW RTLD_LAZY 18169# else 18170# ifdef DL_LAZY 18171# define LT_DLLAZY_OR_NOW DL_LAZY 18172# else 18173# ifdef RTLD_NOW 18174# define LT_DLLAZY_OR_NOW RTLD_NOW 18175# else 18176# ifdef DL_NOW 18177# define LT_DLLAZY_OR_NOW DL_NOW 18178# else 18179# define LT_DLLAZY_OR_NOW 0 18180# endif 18181# endif 18182# endif 18183# endif 18184#endif 18185 18186/* When -fvisibility=hidden is used, assume the code has been annotated 18187 correspondingly for the symbols needed. */ 18188#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18189int fnord () __attribute__((visibility("default"))); 18190#endif 18191 18192int fnord () { return 42; } 18193int main () 18194{ 18195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18196 int status = $lt_dlunknown; 18197 18198 if (self) 18199 { 18200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18201 else 18202 { 18203 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18204 else puts (dlerror ()); 18205 } 18206 /* dlclose (self); */ 18207 } 18208 else 18209 puts (dlerror ()); 18210 18211 return status; 18212} 18213_LT_EOF 18214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18215 (eval $ac_link) 2>&5 18216 ac_status=$? 18217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18218 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18219 (./conftest; exit; ) >&5 2>/dev/null 18220 lt_status=$? 18221 case x$lt_status in 18222 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18223 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18224 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18225 esac 18226 else : 18227 # compilation failed 18228 lt_cv_dlopen_self=no 18229 fi 18230fi 18231rm -fr conftest* 18232 18233 18234fi 18235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18236$as_echo "$lt_cv_dlopen_self" >&6; } 18237 18238 if test yes = "$lt_cv_dlopen_self"; then 18239 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18241$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18242if ${lt_cv_dlopen_self_static+:} false; then : 18243 $as_echo_n "(cached) " >&6 18244else 18245 if test yes = "$cross_compiling"; then : 18246 lt_cv_dlopen_self_static=cross 18247else 18248 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18249 lt_status=$lt_dlunknown 18250 cat > conftest.$ac_ext <<_LT_EOF 18251#line $LINENO "configure" 18252#include "confdefs.h" 18253 18254#if HAVE_DLFCN_H 18255#include <dlfcn.h> 18256#endif 18257 18258#include <stdio.h> 18259 18260#ifdef RTLD_GLOBAL 18261# define LT_DLGLOBAL RTLD_GLOBAL 18262#else 18263# ifdef DL_GLOBAL 18264# define LT_DLGLOBAL DL_GLOBAL 18265# else 18266# define LT_DLGLOBAL 0 18267# endif 18268#endif 18269 18270/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18271 find out it does not work in some platform. */ 18272#ifndef LT_DLLAZY_OR_NOW 18273# ifdef RTLD_LAZY 18274# define LT_DLLAZY_OR_NOW RTLD_LAZY 18275# else 18276# ifdef DL_LAZY 18277# define LT_DLLAZY_OR_NOW DL_LAZY 18278# else 18279# ifdef RTLD_NOW 18280# define LT_DLLAZY_OR_NOW RTLD_NOW 18281# else 18282# ifdef DL_NOW 18283# define LT_DLLAZY_OR_NOW DL_NOW 18284# else 18285# define LT_DLLAZY_OR_NOW 0 18286# endif 18287# endif 18288# endif 18289# endif 18290#endif 18291 18292/* When -fvisibility=hidden is used, assume the code has been annotated 18293 correspondingly for the symbols needed. */ 18294#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18295int fnord () __attribute__((visibility("default"))); 18296#endif 18297 18298int fnord () { return 42; } 18299int main () 18300{ 18301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18302 int status = $lt_dlunknown; 18303 18304 if (self) 18305 { 18306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18307 else 18308 { 18309 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18310 else puts (dlerror ()); 18311 } 18312 /* dlclose (self); */ 18313 } 18314 else 18315 puts (dlerror ()); 18316 18317 return status; 18318} 18319_LT_EOF 18320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18321 (eval $ac_link) 2>&5 18322 ac_status=$? 18323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18324 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18325 (./conftest; exit; ) >&5 2>/dev/null 18326 lt_status=$? 18327 case x$lt_status in 18328 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18329 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18330 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18331 esac 18332 else : 18333 # compilation failed 18334 lt_cv_dlopen_self_static=no 18335 fi 18336fi 18337rm -fr conftest* 18338 18339 18340fi 18341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18342$as_echo "$lt_cv_dlopen_self_static" >&6; } 18343 fi 18344 18345 CPPFLAGS=$save_CPPFLAGS 18346 LDFLAGS=$save_LDFLAGS 18347 LIBS=$save_LIBS 18348 ;; 18349 esac 18350 18351 case $lt_cv_dlopen_self in 18352 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18353 *) enable_dlopen_self=unknown ;; 18354 esac 18355 18356 case $lt_cv_dlopen_self_static in 18357 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18358 *) enable_dlopen_self_static=unknown ;; 18359 esac 18360fi 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378striplib= 18379old_striplib= 18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18381$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18382if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18384 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18386$as_echo "yes" >&6; } 18387else 18388# FIXME - insert some real tests, host_os isn't really good enough 18389 case $host_os in 18390 darwin*) 18391 if test -n "$STRIP"; then 18392 striplib="$STRIP -x" 18393 old_striplib="$STRIP -S" 18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18395$as_echo "yes" >&6; } 18396 else 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18398$as_echo "no" >&6; } 18399 fi 18400 ;; 18401 *) 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18403$as_echo "no" >&6; } 18404 ;; 18405 esac 18406fi 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 # Report what library types will actually be built 18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18421$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18423$as_echo "$can_build_shared" >&6; } 18424 18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18426$as_echo_n "checking whether to build shared libraries... " >&6; } 18427 test no = "$can_build_shared" && enable_shared=no 18428 18429 # On AIX, shared libraries and static libraries use the same namespace, and 18430 # are all built from PIC. 18431 case $host_os in 18432 aix3*) 18433 test yes = "$enable_shared" && enable_static=no 18434 if test -n "$RANLIB"; then 18435 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18436 postinstall_cmds='$RANLIB $lib' 18437 fi 18438 ;; 18439 18440 aix[4-9]*) 18441 if test ia64 != "$host_cpu"; then 18442 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18443 yes,aix,yes) ;; # shared object as lib.so file only 18444 yes,svr4,*) ;; # shared object as lib.so archive member only 18445 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18446 esac 18447 fi 18448 ;; 18449 esac 18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18451$as_echo "$enable_shared" >&6; } 18452 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18454$as_echo_n "checking whether to build static libraries... " >&6; } 18455 # Make sure either enable_shared or enable_static is yes. 18456 test yes = "$enable_shared" || enable_static=yes 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18458$as_echo "$enable_static" >&6; } 18459 18460 18461 18462 18463fi 18464ac_ext=c 18465ac_cpp='$CPP $CPPFLAGS' 18466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18468ac_compiler_gnu=$ac_cv_c_compiler_gnu 18469 18470CC=$lt_save_CC 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 ac_config_commands="$ac_config_commands libtool" 18487 18488 18489 18490 18491# Only expand once: 18492 18493 18494 18495 18496 18497# Define a configure option for an alternate module directory 18498 18499# Check whether --with-xorg-module-dir was given. 18500if test "${with_xorg_module_dir+set}" = set; then : 18501 withval=$with_xorg_module_dir; moduledir="$withval" 18502else 18503 moduledir="$libdir/xorg/modules" 18504fi 18505 18506 18507# Check whether --enable-dri was given. 18508if test "${enable_dri+set}" = set; then : 18509 enableval=$enable_dri; DRI="$enableval" 18510else 18511 DRI=auto 18512fi 18513 18514 18515# Store the list of server defined optional extensions in REQUIRED_MODULES 18516 18517 18518 SAVE_CFLAGS="$CFLAGS" 18519 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18521/* end confdefs.h. */ 18522 18523#include "xorg-server.h" 18524#if !defined XINERAMA 18525#error XINERAMA not defined 18526#endif 18527 18528int 18529main () 18530{ 18531 18532 ; 18533 return 0; 18534} 18535_ACEOF 18536if ac_fn_c_try_compile "$LINENO"; then : 18537 _EXT_CHECK=yes 18538else 18539 _EXT_CHECK=no 18540fi 18541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18542 CFLAGS="$SAVE_CFLAGS" 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5 18544$as_echo_n "checking if XINERAMA is defined... " >&6; } 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18546$as_echo "$_EXT_CHECK" >&6; } 18547 if test "$_EXT_CHECK" != no; then 18548 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto" 18549 fi 18550 18551 18552 18553 SAVE_CFLAGS="$CFLAGS" 18554 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556/* end confdefs.h. */ 18557 18558#include "xorg-server.h" 18559#if !defined RANDR 18560#error RANDR not defined 18561#endif 18562 18563int 18564main () 18565{ 18566 18567 ; 18568 return 0; 18569} 18570_ACEOF 18571if ac_fn_c_try_compile "$LINENO"; then : 18572 _EXT_CHECK=yes 18573else 18574 _EXT_CHECK=no 18575fi 18576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18577 CFLAGS="$SAVE_CFLAGS" 18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18579$as_echo_n "checking if RANDR is defined... " >&6; } 18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18581$as_echo "$_EXT_CHECK" >&6; } 18582 if test "$_EXT_CHECK" != no; then 18583 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18584 fi 18585 18586 18587 18588 SAVE_CFLAGS="$CFLAGS" 18589 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18591/* end confdefs.h. */ 18592 18593#include "xorg-server.h" 18594#if !defined RENDER 18595#error RENDER not defined 18596#endif 18597 18598int 18599main () 18600{ 18601 18602 ; 18603 return 0; 18604} 18605_ACEOF 18606if ac_fn_c_try_compile "$LINENO"; then : 18607 _EXT_CHECK=yes 18608else 18609 _EXT_CHECK=no 18610fi 18611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18612 CFLAGS="$SAVE_CFLAGS" 18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18614$as_echo_n "checking if RENDER is defined... " >&6; } 18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18616$as_echo "$_EXT_CHECK" >&6; } 18617 if test "$_EXT_CHECK" != no; then 18618 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18619 fi 18620 18621 18622 18623 SAVE_CFLAGS="$CFLAGS" 18624 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18626/* end confdefs.h. */ 18627 18628#include "xorg-server.h" 18629#if !defined XV 18630#error XV not defined 18631#endif 18632 18633int 18634main () 18635{ 18636 18637 ; 18638 return 0; 18639} 18640_ACEOF 18641if ac_fn_c_try_compile "$LINENO"; then : 18642 _EXT_CHECK=yes 18643else 18644 _EXT_CHECK=no 18645fi 18646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18647 CFLAGS="$SAVE_CFLAGS" 18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18649$as_echo_n "checking if XV is defined... " >&6; } 18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18651$as_echo "$_EXT_CHECK" >&6; } 18652 if test "$_EXT_CHECK" != no; then 18653 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18654 fi 18655 18656 18657 18658 SAVE_CFLAGS="$CFLAGS" 18659 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18661/* end confdefs.h. */ 18662 18663#include "xorg-server.h" 18664#if !defined DPMSExtension 18665#error DPMSExtension not defined 18666#endif 18667 18668int 18669main () 18670{ 18671 18672 ; 18673 return 0; 18674} 18675_ACEOF 18676if ac_fn_c_try_compile "$LINENO"; then : 18677 _EXT_CHECK=yes 18678else 18679 _EXT_CHECK=no 18680fi 18681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18682 CFLAGS="$SAVE_CFLAGS" 18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18684$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18686$as_echo "$_EXT_CHECK" >&6; } 18687 if test "$_EXT_CHECK" != no; then 18688 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18689 fi 18690 18691 18692# Obtain compiler/linker options for the driver dependencies 18693 18694pkg_failed=no 18695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18696$as_echo_n "checking for XORG... " >&6; } 18697 18698if test -n "$XORG_CFLAGS"; then 18699 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18700 elif test -n "$PKG_CONFIG"; then 18701 if test -n "$PKG_CONFIG" && \ 18702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 \$REQUIRED_MODULES\""; } >&5 18703 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5 18704 ac_status=$? 18705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18706 test $ac_status = 0; }; then 18707 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null` 18708 test "x$?" != "x0" && pkg_failed=yes 18709else 18710 pkg_failed=yes 18711fi 18712 else 18713 pkg_failed=untried 18714fi 18715if test -n "$XORG_LIBS"; then 18716 pkg_cv_XORG_LIBS="$XORG_LIBS" 18717 elif test -n "$PKG_CONFIG"; then 18718 if test -n "$PKG_CONFIG" && \ 18719 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 \$REQUIRED_MODULES\""; } >&5 18720 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5 18721 ac_status=$? 18722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18723 test $ac_status = 0; }; then 18724 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null` 18725 test "x$?" != "x0" && pkg_failed=yes 18726else 18727 pkg_failed=yes 18728fi 18729 else 18730 pkg_failed=untried 18731fi 18732 18733 18734 18735if test $pkg_failed = yes; then 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18737$as_echo "no" >&6; } 18738 18739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18740 _pkg_short_errors_supported=yes 18741else 18742 _pkg_short_errors_supported=no 18743fi 18744 if test $_pkg_short_errors_supported = yes; then 18745 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>&1` 18746 else 18747 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>&1` 18748 fi 18749 # Put the nasty error message in config.log where it belongs 18750 echo "$XORG_PKG_ERRORS" >&5 18751 18752 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES) were not met: 18753 18754$XORG_PKG_ERRORS 18755 18756Consider adjusting the PKG_CONFIG_PATH environment variable if you 18757installed software in a non-standard prefix. 18758 18759Alternatively, you may set the environment variables XORG_CFLAGS 18760and XORG_LIBS to avoid the need to call pkg-config. 18761See the pkg-config man page for more details." "$LINENO" 5 18762elif test $pkg_failed = untried; then 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18764$as_echo "no" >&6; } 18765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18767as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18768is in your PATH or set the PKG_CONFIG environment variable to the full 18769path to pkg-config. 18770 18771Alternatively, you may set the environment variables XORG_CFLAGS 18772and XORG_LIBS to avoid the need to call pkg-config. 18773See the pkg-config man page for more details. 18774 18775To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18776See \`config.log' for more details" "$LINENO" 5; } 18777else 18778 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18779 XORG_LIBS=$pkg_cv_XORG_LIBS 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18781$as_echo "yes" >&6; } 18782 18783fi 18784 18785pkg_failed=no 18786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18787$as_echo_n "checking for XEXT... " >&6; } 18788 18789if test -n "$XEXT_CFLAGS"; then 18790 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18791 elif test -n "$PKG_CONFIG"; then 18792 if test -n "$PKG_CONFIG" && \ 18793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18794 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18795 ac_status=$? 18796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18797 test $ac_status = 0; }; then 18798 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18799 test "x$?" != "x0" && pkg_failed=yes 18800else 18801 pkg_failed=yes 18802fi 18803 else 18804 pkg_failed=untried 18805fi 18806if test -n "$XEXT_LIBS"; then 18807 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18808 elif test -n "$PKG_CONFIG"; then 18809 if test -n "$PKG_CONFIG" && \ 18810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18811 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18812 ac_status=$? 18813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18814 test $ac_status = 0; }; then 18815 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18816 test "x$?" != "x0" && pkg_failed=yes 18817else 18818 pkg_failed=yes 18819fi 18820 else 18821 pkg_failed=untried 18822fi 18823 18824 18825 18826if test $pkg_failed = yes; then 18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18828$as_echo "no" >&6; } 18829 18830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18831 _pkg_short_errors_supported=yes 18832else 18833 _pkg_short_errors_supported=no 18834fi 18835 if test $_pkg_short_errors_supported = yes; then 18836 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18837 else 18838 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18839 fi 18840 # Put the nasty error message in config.log where it belongs 18841 echo "$XEXT_PKG_ERRORS" >&5 18842 18843 HAVE_XEXTPROTO_71="no" 18844elif test $pkg_failed = untried; then 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18846$as_echo "no" >&6; } 18847 HAVE_XEXTPROTO_71="no" 18848else 18849 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18850 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18852$as_echo "yes" >&6; } 18853 HAVE_XEXTPROTO_71="yes"; 18854$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18855 18856fi 18857 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18858 HAVE_XEXTPROTO_71_TRUE= 18859 HAVE_XEXTPROTO_71_FALSE='#' 18860else 18861 HAVE_XEXTPROTO_71_TRUE='#' 18862 HAVE_XEXTPROTO_71_FALSE= 18863fi 18864 18865sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18866 18867# Checks for libraries. 18868 18869if test "$DRI" != no; then 18870 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 18871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 18872$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 18873if eval \${$as_ac_File+:} false; then : 18874 $as_echo_n "(cached) " >&6 18875else 18876 test "$cross_compiling" = yes && 18877 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18878if test -r "${sdkdir}/dri.h"; then 18879 eval "$as_ac_File=yes" 18880else 18881 eval "$as_ac_File=no" 18882fi 18883fi 18884eval ac_res=\$$as_ac_File 18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18886$as_echo "$ac_res" >&6; } 18887if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18888 have_dri_h="yes" 18889else 18890 have_dri_h="no" 18891fi 18892 18893 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 18894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 18895$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 18896if eval \${$as_ac_File+:} false; then : 18897 $as_echo_n "(cached) " >&6 18898else 18899 test "$cross_compiling" = yes && 18900 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18901if test -r "${sdkdir}/sarea.h"; then 18902 eval "$as_ac_File=yes" 18903else 18904 eval "$as_ac_File=no" 18905fi 18906fi 18907eval ac_res=\$$as_ac_File 18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18909$as_echo "$ac_res" >&6; } 18910if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18911 have_sarea_h="yes" 18912else 18913 have_sarea_h="no" 18914fi 18915 18916 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 18917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 18918$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 18919if eval \${$as_ac_File+:} false; then : 18920 $as_echo_n "(cached) " >&6 18921else 18922 test "$cross_compiling" = yes && 18923 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18924if test -r "${sdkdir}/dristruct.h"; then 18925 eval "$as_ac_File=yes" 18926else 18927 eval "$as_ac_File=no" 18928fi 18929fi 18930eval ac_res=\$$as_ac_File 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18932$as_echo "$ac_res" >&6; } 18933if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18934 have_dristruct_h="yes" 18935else 18936 have_dristruct_h="no" 18937fi 18938 18939fi 18940 18941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 18942$as_echo_n "checking whether to include DRI support... " >&6; } 18943if test x$DRI = xauto; then 18944 if test "$have_dri_h" = yes -a \ 18945 "$have_sarea_h" = yes -a \ 18946 "$have_dristruct_h" = yes; then 18947 DRI="yes" 18948 else 18949 DRI="no" 18950 fi 18951fi 18952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 18953$as_echo "$DRI" >&6; } 18954 18955 if test x$DRI = xyes; then 18956 DRI_TRUE= 18957 DRI_FALSE='#' 18958else 18959 DRI_TRUE='#' 18960 DRI_FALSE= 18961fi 18962 18963if test "$DRI" = yes; then 18964 18965pkg_failed=no 18966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 18967$as_echo_n "checking for DRI... " >&6; } 18968 18969if test -n "$DRI_CFLAGS"; then 18970 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 18971 elif test -n "$PKG_CONFIG"; then 18972 if test -n "$PKG_CONFIG" && \ 18973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18974 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18975 ac_status=$? 18976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18977 test $ac_status = 0; }; then 18978 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18979 test "x$?" != "x0" && pkg_failed=yes 18980else 18981 pkg_failed=yes 18982fi 18983 else 18984 pkg_failed=untried 18985fi 18986if test -n "$DRI_LIBS"; then 18987 pkg_cv_DRI_LIBS="$DRI_LIBS" 18988 elif test -n "$PKG_CONFIG"; then 18989 if test -n "$PKG_CONFIG" && \ 18990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18991 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18992 ac_status=$? 18993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18994 test $ac_status = 0; }; then 18995 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18996 test "x$?" != "x0" && pkg_failed=yes 18997else 18998 pkg_failed=yes 18999fi 19000 else 19001 pkg_failed=untried 19002fi 19003 19004 19005 19006if test $pkg_failed = yes; then 19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19008$as_echo "no" >&6; } 19009 19010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19011 _pkg_short_errors_supported=yes 19012else 19013 _pkg_short_errors_supported=no 19014fi 19015 if test $_pkg_short_errors_supported = yes; then 19016 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19017 else 19018 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19019 fi 19020 # Put the nasty error message in config.log where it belongs 19021 echo "$DRI_PKG_ERRORS" >&5 19022 19023 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 19024 19025$DRI_PKG_ERRORS 19026 19027Consider adjusting the PKG_CONFIG_PATH environment variable if you 19028installed software in a non-standard prefix. 19029 19030Alternatively, you may set the environment variables DRI_CFLAGS 19031and DRI_LIBS to avoid the need to call pkg-config. 19032See the pkg-config man page for more details." "$LINENO" 5 19033elif test $pkg_failed = untried; then 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19035$as_echo "no" >&6; } 19036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19038as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19039is in your PATH or set the PKG_CONFIG environment variable to the full 19040path to pkg-config. 19041 19042Alternatively, you may set the environment variables DRI_CFLAGS 19043and DRI_LIBS to avoid the need to call pkg-config. 19044See the pkg-config man page for more details. 19045 19046To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19047See \`config.log' for more details" "$LINENO" 5; } 19048else 19049 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19050 DRI_LIBS=$pkg_cv_DRI_LIBS 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19052$as_echo "yes" >&6; } 19053 19054fi 19055 19056$as_echo "#define SISDRI 1" >>confdefs.h 19057 19058 19059$as_echo "#define SISDRI_DEVEL 1" >>confdefs.h 19060 19061fi 19062 19063# Check whether --enable-xaa was given. 19064if test "${enable_xaa+set}" = set; then : 19065 enableval=$enable_xaa; XAA="$enableval" 19066else 19067 XAA=auto 19068fi 19069 19070if test "x$XAA" != xno; then 19071 save_CFLAGS=$CFLAGS 19072 save_CPPFLAGS=$CPPFLAGS 19073 CFLAGS=$XORG_CFLAGS 19074 CPPFLAGS="$XORG_CFLAGS" 19075 for ac_header in xaa.h 19076do : 19077 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19078if test "x$ac_cv_header_xaa_h" = xyes; then : 19079 cat >>confdefs.h <<_ACEOF 19080#define HAVE_XAA_H 1 19081_ACEOF 19082 XAA=yes 19083else 19084 XAA=no 19085fi 19086 19087done 19088 19089 CFLAGS=$save_CFLAGS 19090 CPPFLAGS=$save_CPPFLAGS 19091fi 19092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19093$as_echo_n "checking whether to include XAA support... " >&6; } 19094 if test "x$XAA" = xyes; then 19095 XAA_TRUE= 19096 XAA_FALSE='#' 19097else 19098 XAA_TRUE='#' 19099 XAA_FALSE= 19100fi 19101 19102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19103$as_echo "$XAA" >&6; } 19104 19105# technically this should be a configure flag. meh. 19106 19107$as_echo "#define XF86EXA 1" >>confdefs.h 19108 19109 19110SAVE_CPPFLAGS="$CPPFLAGS" 19111CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19112ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19113" 19114if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 19115 XSERVER_LIBPCIACCESS=yes 19116else 19117 XSERVER_LIBPCIACCESS=no 19118fi 19119 19120CPPFLAGS="$SAVE_CPPFLAGS" 19121 19122if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19123 19124pkg_failed=no 19125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19126$as_echo_n "checking for PCIACCESS... " >&6; } 19127 19128if test -n "$PCIACCESS_CFLAGS"; then 19129 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19130 elif test -n "$PKG_CONFIG"; then 19131 if test -n "$PKG_CONFIG" && \ 19132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19133 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19134 ac_status=$? 19135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19136 test $ac_status = 0; }; then 19137 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null` 19138 test "x$?" != "x0" && pkg_failed=yes 19139else 19140 pkg_failed=yes 19141fi 19142 else 19143 pkg_failed=untried 19144fi 19145if test -n "$PCIACCESS_LIBS"; then 19146 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19147 elif test -n "$PKG_CONFIG"; then 19148 if test -n "$PKG_CONFIG" && \ 19149 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19150 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19151 ac_status=$? 19152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19153 test $ac_status = 0; }; then 19154 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null` 19155 test "x$?" != "x0" && pkg_failed=yes 19156else 19157 pkg_failed=yes 19158fi 19159 else 19160 pkg_failed=untried 19161fi 19162 19163 19164 19165if test $pkg_failed = yes; then 19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19167$as_echo "no" >&6; } 19168 19169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19170 _pkg_short_errors_supported=yes 19171else 19172 _pkg_short_errors_supported=no 19173fi 19174 if test $_pkg_short_errors_supported = yes; then 19175 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19176 else 19177 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19178 fi 19179 # Put the nasty error message in config.log where it belongs 19180 echo "$PCIACCESS_PKG_ERRORS" >&5 19181 19182 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met: 19183 19184$PCIACCESS_PKG_ERRORS 19185 19186Consider adjusting the PKG_CONFIG_PATH environment variable if you 19187installed software in a non-standard prefix. 19188 19189Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19190and PCIACCESS_LIBS to avoid the need to call pkg-config. 19191See the pkg-config man page for more details." "$LINENO" 5 19192elif test $pkg_failed = untried; then 19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19194$as_echo "no" >&6; } 19195 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19196$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19197as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19198is in your PATH or set the PKG_CONFIG environment variable to the full 19199path to pkg-config. 19200 19201Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19202and PCIACCESS_LIBS to avoid the need to call pkg-config. 19203See the pkg-config man page for more details. 19204 19205To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19206See \`config.log' for more details" "$LINENO" 5; } 19207else 19208 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19209 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19211$as_echo "yes" >&6; } 19212 19213fi 19214 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19215fi 19216 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19217 XSERVER_LIBPCIACCESS_TRUE= 19218 XSERVER_LIBPCIACCESS_FALSE='#' 19219else 19220 XSERVER_LIBPCIACCESS_TRUE='#' 19221 XSERVER_LIBPCIACCESS_FALSE= 19222fi 19223 19224 19225 19226 19227DRIVER_NAME=sis 19228 19229 19230ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19231 19232cat >confcache <<\_ACEOF 19233# This file is a shell script that caches the results of configure 19234# tests run on this system so they can be shared between configure 19235# scripts and configure runs, see configure's option --config-cache. 19236# It is not useful on other systems. If it contains results you don't 19237# want to keep, you may remove or edit it. 19238# 19239# config.status only pays attention to the cache file if you give it 19240# the --recheck option to rerun configure. 19241# 19242# `ac_cv_env_foo' variables (set or unset) will be overridden when 19243# loading this file, other *unset* `ac_cv_foo' will be assigned the 19244# following values. 19245 19246_ACEOF 19247 19248# The following way of writing the cache mishandles newlines in values, 19249# but we know of no workaround that is simple, portable, and efficient. 19250# So, we kill variables containing newlines. 19251# Ultrix sh set writes to stderr and can't be redirected directly, 19252# and sets the high bit in the cache file unless we assign to the vars. 19253( 19254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19255 eval ac_val=\$$ac_var 19256 case $ac_val in #( 19257 *${as_nl}*) 19258 case $ac_var in #( 19259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19260$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19261 esac 19262 case $ac_var in #( 19263 _ | IFS | as_nl) ;; #( 19264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19265 *) { eval $ac_var=; unset $ac_var;} ;; 19266 esac ;; 19267 esac 19268 done 19269 19270 (set) 2>&1 | 19271 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19272 *${as_nl}ac_space=\ *) 19273 # `set' does not quote correctly, so add quotes: double-quote 19274 # substitution turns \\\\ into \\, and sed turns \\ into \. 19275 sed -n \ 19276 "s/'/'\\\\''/g; 19277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19278 ;; #( 19279 *) 19280 # `set' quotes correctly as required by POSIX, so do not add quotes. 19281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19282 ;; 19283 esac | 19284 sort 19285) | 19286 sed ' 19287 /^ac_cv_env_/b end 19288 t clear 19289 :clear 19290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19291 t end 19292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19293 :end' >>confcache 19294if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19295 if test -w "$cache_file"; then 19296 if test "x$cache_file" != "x/dev/null"; then 19297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19298$as_echo "$as_me: updating cache $cache_file" >&6;} 19299 if test ! -f "$cache_file" || test -h "$cache_file"; then 19300 cat confcache >"$cache_file" 19301 else 19302 case $cache_file in #( 19303 */* | ?:*) 19304 mv -f confcache "$cache_file"$$ && 19305 mv -f "$cache_file"$$ "$cache_file" ;; #( 19306 *) 19307 mv -f confcache "$cache_file" ;; 19308 esac 19309 fi 19310 fi 19311 else 19312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19313$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19314 fi 19315fi 19316rm -f confcache 19317 19318test "x$prefix" = xNONE && prefix=$ac_default_prefix 19319# Let make expand exec_prefix. 19320test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19321 19322DEFS=-DHAVE_CONFIG_H 19323 19324ac_libobjs= 19325ac_ltlibobjs= 19326U= 19327for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19328 # 1. Remove the extension, and $U if already installed. 19329 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19330 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19332 # will be set to the directory where LIBOBJS objects are built. 19333 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19334 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19335done 19336LIBOBJS=$ac_libobjs 19337 19338LTLIBOBJS=$ac_ltlibobjs 19339 19340 19341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19342$as_echo_n "checking that generated files are newer than configure... " >&6; } 19343 if test -n "$am_sleep_pid"; then 19344 # Hide warnings about reused PIDs. 19345 wait $am_sleep_pid 2>/dev/null 19346 fi 19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19348$as_echo "done" >&6; } 19349 if test -n "$EXEEXT"; then 19350 am__EXEEXT_TRUE= 19351 am__EXEEXT_FALSE='#' 19352else 19353 am__EXEEXT_TRUE='#' 19354 am__EXEEXT_FALSE= 19355fi 19356 19357if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19358 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19359Usually this means the macro was only invoked conditionally." "$LINENO" 5 19360fi 19361if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19362 as_fn_error $? "conditional \"AMDEP\" was never defined. 19363Usually this means the macro was only invoked conditionally." "$LINENO" 5 19364fi 19365if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19366 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19367Usually this means the macro was only invoked conditionally." "$LINENO" 5 19368fi 19369if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19370 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19371Usually this means the macro was only invoked conditionally." "$LINENO" 5 19372fi 19373if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 19374 as_fn_error $? "conditional \"DRI\" was never defined. 19375Usually this means the macro was only invoked conditionally." "$LINENO" 5 19376fi 19377if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19378 as_fn_error $? "conditional \"XAA\" was never defined. 19379Usually this means the macro was only invoked conditionally." "$LINENO" 5 19380fi 19381if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19382 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19383Usually this means the macro was only invoked conditionally." "$LINENO" 5 19384fi 19385 19386: "${CONFIG_STATUS=./config.status}" 19387ac_write_fail=0 19388ac_clean_files_save=$ac_clean_files 19389ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19390{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19391$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19392as_write_fail=0 19393cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19394#! $SHELL 19395# Generated by $as_me. 19396# Run this file to recreate the current configuration. 19397# Compiler output produced by configure, useful for debugging 19398# configure, is in config.log if it exists. 19399 19400debug=false 19401ac_cs_recheck=false 19402ac_cs_silent=false 19403 19404SHELL=\${CONFIG_SHELL-$SHELL} 19405export SHELL 19406_ASEOF 19407cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19408## -------------------- ## 19409## M4sh Initialization. ## 19410## -------------------- ## 19411 19412# Be more Bourne compatible 19413DUALCASE=1; export DUALCASE # for MKS sh 19414if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19415 emulate sh 19416 NULLCMD=: 19417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19418 # is contrary to our usage. Disable this feature. 19419 alias -g '${1+"$@"}'='"$@"' 19420 setopt NO_GLOB_SUBST 19421else 19422 case `(set -o) 2>/dev/null` in #( 19423 *posix*) : 19424 set -o posix ;; #( 19425 *) : 19426 ;; 19427esac 19428fi 19429 19430 19431as_nl=' 19432' 19433export as_nl 19434# Printing a long string crashes Solaris 7 /usr/bin/printf. 19435as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19436as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19437as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19438# Prefer a ksh shell builtin over an external printf program on Solaris, 19439# but without wasting forks for bash or zsh. 19440if test -z "$BASH_VERSION$ZSH_VERSION" \ 19441 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19442 as_echo='print -r --' 19443 as_echo_n='print -rn --' 19444elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19445 as_echo='printf %s\n' 19446 as_echo_n='printf %s' 19447else 19448 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19449 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19450 as_echo_n='/usr/ucb/echo -n' 19451 else 19452 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19453 as_echo_n_body='eval 19454 arg=$1; 19455 case $arg in #( 19456 *"$as_nl"*) 19457 expr "X$arg" : "X\\(.*\\)$as_nl"; 19458 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19459 esac; 19460 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19461 ' 19462 export as_echo_n_body 19463 as_echo_n='sh -c $as_echo_n_body as_echo' 19464 fi 19465 export as_echo_body 19466 as_echo='sh -c $as_echo_body as_echo' 19467fi 19468 19469# The user is always right. 19470if test "${PATH_SEPARATOR+set}" != set; then 19471 PATH_SEPARATOR=: 19472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19473 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19474 PATH_SEPARATOR=';' 19475 } 19476fi 19477 19478 19479# IFS 19480# We need space, tab and new line, in precisely that order. Quoting is 19481# there to prevent editors from complaining about space-tab. 19482# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19483# splitting by setting IFS to empty value.) 19484IFS=" "" $as_nl" 19485 19486# Find who we are. Look in the path if we contain no directory separator. 19487as_myself= 19488case $0 in #(( 19489 *[\\/]* ) as_myself=$0 ;; 19490 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19491for as_dir in $PATH 19492do 19493 IFS=$as_save_IFS 19494 test -z "$as_dir" && as_dir=. 19495 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19496 done 19497IFS=$as_save_IFS 19498 19499 ;; 19500esac 19501# We did not find ourselves, most probably we were run as `sh COMMAND' 19502# in which case we are not to be found in the path. 19503if test "x$as_myself" = x; then 19504 as_myself=$0 19505fi 19506if test ! -f "$as_myself"; then 19507 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19508 exit 1 19509fi 19510 19511# Unset variables that we do not need and which cause bugs (e.g. in 19512# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19513# suppresses any "Segmentation fault" message there. '((' could 19514# trigger a bug in pdksh 5.2.14. 19515for as_var in BASH_ENV ENV MAIL MAILPATH 19516do eval test x\${$as_var+set} = xset \ 19517 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19518done 19519PS1='$ ' 19520PS2='> ' 19521PS4='+ ' 19522 19523# NLS nuisances. 19524LC_ALL=C 19525export LC_ALL 19526LANGUAGE=C 19527export LANGUAGE 19528 19529# CDPATH. 19530(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19531 19532 19533# as_fn_error STATUS ERROR [LINENO LOG_FD] 19534# ---------------------------------------- 19535# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19536# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19537# script with STATUS, using 1 if that was 0. 19538as_fn_error () 19539{ 19540 as_status=$1; test $as_status -eq 0 && as_status=1 19541 if test "$4"; then 19542 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19543 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19544 fi 19545 $as_echo "$as_me: error: $2" >&2 19546 as_fn_exit $as_status 19547} # as_fn_error 19548 19549 19550# as_fn_set_status STATUS 19551# ----------------------- 19552# Set $? to STATUS, without forking. 19553as_fn_set_status () 19554{ 19555 return $1 19556} # as_fn_set_status 19557 19558# as_fn_exit STATUS 19559# ----------------- 19560# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19561as_fn_exit () 19562{ 19563 set +e 19564 as_fn_set_status $1 19565 exit $1 19566} # as_fn_exit 19567 19568# as_fn_unset VAR 19569# --------------- 19570# Portably unset VAR. 19571as_fn_unset () 19572{ 19573 { eval $1=; unset $1;} 19574} 19575as_unset=as_fn_unset 19576# as_fn_append VAR VALUE 19577# ---------------------- 19578# Append the text in VALUE to the end of the definition contained in VAR. Take 19579# advantage of any shell optimizations that allow amortized linear growth over 19580# repeated appends, instead of the typical quadratic growth present in naive 19581# implementations. 19582if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19583 eval 'as_fn_append () 19584 { 19585 eval $1+=\$2 19586 }' 19587else 19588 as_fn_append () 19589 { 19590 eval $1=\$$1\$2 19591 } 19592fi # as_fn_append 19593 19594# as_fn_arith ARG... 19595# ------------------ 19596# Perform arithmetic evaluation on the ARGs, and store the result in the 19597# global $as_val. Take advantage of shells that can avoid forks. The arguments 19598# must be portable across $(()) and expr. 19599if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19600 eval 'as_fn_arith () 19601 { 19602 as_val=$(( $* )) 19603 }' 19604else 19605 as_fn_arith () 19606 { 19607 as_val=`expr "$@" || test $? -eq 1` 19608 } 19609fi # as_fn_arith 19610 19611 19612if expr a : '\(a\)' >/dev/null 2>&1 && 19613 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19614 as_expr=expr 19615else 19616 as_expr=false 19617fi 19618 19619if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19620 as_basename=basename 19621else 19622 as_basename=false 19623fi 19624 19625if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19626 as_dirname=dirname 19627else 19628 as_dirname=false 19629fi 19630 19631as_me=`$as_basename -- "$0" || 19632$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19633 X"$0" : 'X\(//\)$' \| \ 19634 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19635$as_echo X/"$0" | 19636 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19637 s//\1/ 19638 q 19639 } 19640 /^X\/\(\/\/\)$/{ 19641 s//\1/ 19642 q 19643 } 19644 /^X\/\(\/\).*/{ 19645 s//\1/ 19646 q 19647 } 19648 s/.*/./; q'` 19649 19650# Avoid depending upon Character Ranges. 19651as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19652as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19653as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19654as_cr_digits='0123456789' 19655as_cr_alnum=$as_cr_Letters$as_cr_digits 19656 19657ECHO_C= ECHO_N= ECHO_T= 19658case `echo -n x` in #((((( 19659-n*) 19660 case `echo 'xy\c'` in 19661 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19662 xy) ECHO_C='\c';; 19663 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19664 ECHO_T=' ';; 19665 esac;; 19666*) 19667 ECHO_N='-n';; 19668esac 19669 19670rm -f conf$$ conf$$.exe conf$$.file 19671if test -d conf$$.dir; then 19672 rm -f conf$$.dir/conf$$.file 19673else 19674 rm -f conf$$.dir 19675 mkdir conf$$.dir 2>/dev/null 19676fi 19677if (echo >conf$$.file) 2>/dev/null; then 19678 if ln -s conf$$.file conf$$ 2>/dev/null; then 19679 as_ln_s='ln -s' 19680 # ... but there are two gotchas: 19681 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19682 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19683 # In both cases, we have to default to `cp -pR'. 19684 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19685 as_ln_s='cp -pR' 19686 elif ln conf$$.file conf$$ 2>/dev/null; then 19687 as_ln_s=ln 19688 else 19689 as_ln_s='cp -pR' 19690 fi 19691else 19692 as_ln_s='cp -pR' 19693fi 19694rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19695rmdir conf$$.dir 2>/dev/null 19696 19697 19698# as_fn_mkdir_p 19699# ------------- 19700# Create "$as_dir" as a directory, including parents if necessary. 19701as_fn_mkdir_p () 19702{ 19703 19704 case $as_dir in #( 19705 -*) as_dir=./$as_dir;; 19706 esac 19707 test -d "$as_dir" || eval $as_mkdir_p || { 19708 as_dirs= 19709 while :; do 19710 case $as_dir in #( 19711 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19712 *) as_qdir=$as_dir;; 19713 esac 19714 as_dirs="'$as_qdir' $as_dirs" 19715 as_dir=`$as_dirname -- "$as_dir" || 19716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19717 X"$as_dir" : 'X\(//\)[^/]' \| \ 19718 X"$as_dir" : 'X\(//\)$' \| \ 19719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19720$as_echo X"$as_dir" | 19721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19722 s//\1/ 19723 q 19724 } 19725 /^X\(\/\/\)[^/].*/{ 19726 s//\1/ 19727 q 19728 } 19729 /^X\(\/\/\)$/{ 19730 s//\1/ 19731 q 19732 } 19733 /^X\(\/\).*/{ 19734 s//\1/ 19735 q 19736 } 19737 s/.*/./; q'` 19738 test -d "$as_dir" && break 19739 done 19740 test -z "$as_dirs" || eval "mkdir $as_dirs" 19741 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19742 19743 19744} # as_fn_mkdir_p 19745if mkdir -p . 2>/dev/null; then 19746 as_mkdir_p='mkdir -p "$as_dir"' 19747else 19748 test -d ./-p && rmdir ./-p 19749 as_mkdir_p=false 19750fi 19751 19752 19753# as_fn_executable_p FILE 19754# ----------------------- 19755# Test if FILE is an executable regular file. 19756as_fn_executable_p () 19757{ 19758 test -f "$1" && test -x "$1" 19759} # as_fn_executable_p 19760as_test_x='test -x' 19761as_executable_p=as_fn_executable_p 19762 19763# Sed expression to map a string onto a valid CPP name. 19764as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19765 19766# Sed expression to map a string onto a valid variable name. 19767as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19768 19769 19770exec 6>&1 19771## ----------------------------------- ## 19772## Main body of $CONFIG_STATUS script. ## 19773## ----------------------------------- ## 19774_ASEOF 19775test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19776 19777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19778# Save the log message, to keep $0 and so on meaningful, and to 19779# report actual input values of CONFIG_FILES etc. instead of their 19780# values after options handling. 19781ac_log=" 19782This file was extended by xf86-video-sis $as_me 0.10.9, which was 19783generated by GNU Autoconf 2.69. Invocation command line was 19784 19785 CONFIG_FILES = $CONFIG_FILES 19786 CONFIG_HEADERS = $CONFIG_HEADERS 19787 CONFIG_LINKS = $CONFIG_LINKS 19788 CONFIG_COMMANDS = $CONFIG_COMMANDS 19789 $ $0 $@ 19790 19791on `(hostname || uname -n) 2>/dev/null | sed 1q` 19792" 19793 19794_ACEOF 19795 19796case $ac_config_files in *" 19797"*) set x $ac_config_files; shift; ac_config_files=$*;; 19798esac 19799 19800case $ac_config_headers in *" 19801"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19802esac 19803 19804 19805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19806# Files that config.status was made for. 19807config_files="$ac_config_files" 19808config_headers="$ac_config_headers" 19809config_commands="$ac_config_commands" 19810 19811_ACEOF 19812 19813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19814ac_cs_usage="\ 19815\`$as_me' instantiates files and other configuration actions 19816from templates according to the current configuration. Unless the files 19817and actions are specified as TAGs, all are instantiated by default. 19818 19819Usage: $0 [OPTION]... [TAG]... 19820 19821 -h, --help print this help, then exit 19822 -V, --version print version number and configuration settings, then exit 19823 --config print configuration, then exit 19824 -q, --quiet, --silent 19825 do not print progress messages 19826 -d, --debug don't remove temporary files 19827 --recheck update $as_me by reconfiguring in the same conditions 19828 --file=FILE[:TEMPLATE] 19829 instantiate the configuration file FILE 19830 --header=FILE[:TEMPLATE] 19831 instantiate the configuration header FILE 19832 19833Configuration files: 19834$config_files 19835 19836Configuration headers: 19837$config_headers 19838 19839Configuration commands: 19840$config_commands 19841 19842Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19843 19844_ACEOF 19845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19846ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19847ac_cs_version="\\ 19848xf86-video-sis config.status 0.10.9 19849configured by $0, generated by GNU Autoconf 2.69, 19850 with options \\"\$ac_cs_config\\" 19851 19852Copyright (C) 2012 Free Software Foundation, Inc. 19853This config.status script is free software; the Free Software Foundation 19854gives unlimited permission to copy, distribute and modify it." 19855 19856ac_pwd='$ac_pwd' 19857srcdir='$srcdir' 19858INSTALL='$INSTALL' 19859MKDIR_P='$MKDIR_P' 19860AWK='$AWK' 19861test -n "\$AWK" || AWK=awk 19862_ACEOF 19863 19864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19865# The default lists apply if the user does not specify any file. 19866ac_need_defaults=: 19867while test $# != 0 19868do 19869 case $1 in 19870 --*=?*) 19871 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19873 ac_shift=: 19874 ;; 19875 --*=) 19876 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19877 ac_optarg= 19878 ac_shift=: 19879 ;; 19880 *) 19881 ac_option=$1 19882 ac_optarg=$2 19883 ac_shift=shift 19884 ;; 19885 esac 19886 19887 case $ac_option in 19888 # Handling of the options. 19889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19890 ac_cs_recheck=: ;; 19891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19892 $as_echo "$ac_cs_version"; exit ;; 19893 --config | --confi | --conf | --con | --co | --c ) 19894 $as_echo "$ac_cs_config"; exit ;; 19895 --debug | --debu | --deb | --de | --d | -d ) 19896 debug=: ;; 19897 --file | --fil | --fi | --f ) 19898 $ac_shift 19899 case $ac_optarg in 19900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19901 '') as_fn_error $? "missing file argument" ;; 19902 esac 19903 as_fn_append CONFIG_FILES " '$ac_optarg'" 19904 ac_need_defaults=false;; 19905 --header | --heade | --head | --hea ) 19906 $ac_shift 19907 case $ac_optarg in 19908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19909 esac 19910 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19911 ac_need_defaults=false;; 19912 --he | --h) 19913 # Conflict between --help and --header 19914 as_fn_error $? "ambiguous option: \`$1' 19915Try \`$0 --help' for more information.";; 19916 --help | --hel | -h ) 19917 $as_echo "$ac_cs_usage"; exit ;; 19918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19919 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19920 ac_cs_silent=: ;; 19921 19922 # This is an error. 19923 -*) as_fn_error $? "unrecognized option: \`$1' 19924Try \`$0 --help' for more information." ;; 19925 19926 *) as_fn_append ac_config_targets " $1" 19927 ac_need_defaults=false ;; 19928 19929 esac 19930 shift 19931done 19932 19933ac_configure_extra_args= 19934 19935if $ac_cs_silent; then 19936 exec 6>/dev/null 19937 ac_configure_extra_args="$ac_configure_extra_args --silent" 19938fi 19939 19940_ACEOF 19941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19942if \$ac_cs_recheck; then 19943 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19944 shift 19945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19946 CONFIG_SHELL='$SHELL' 19947 export CONFIG_SHELL 19948 exec "\$@" 19949fi 19950 19951_ACEOF 19952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19953exec 5>>config.log 19954{ 19955 echo 19956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19957## Running $as_me. ## 19958_ASBOX 19959 $as_echo "$ac_log" 19960} >&5 19961 19962_ACEOF 19963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19964# 19965# INIT-COMMANDS 19966# 19967AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19968 19969 19970# The HP-UX ksh and POSIX shell print the target directory to stdout 19971# if CDPATH is set. 19972(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19973 19974sed_quote_subst='$sed_quote_subst' 19975double_quote_subst='$double_quote_subst' 19976delay_variable_subst='$delay_variable_subst' 19977enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19978macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19979macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19980enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19981pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19982enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19983shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19984SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19985ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19986PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19987host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19988host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19989host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19990build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19991build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19992build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19993SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19994Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19995GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19996EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19997FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19998LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19999NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20000LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20001max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20002ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20003exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20004lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20005lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20006lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20007lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20008lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20009reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20010reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20011OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20012deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20013file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20014file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20015want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20016DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20017sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20018AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20019AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20020archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20021STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20022RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20023old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20024old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20025old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20026lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20027CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20028CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20029compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20030GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20031lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20032lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20033lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20034lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20035lt_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"`' 20036lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20037nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20038lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20039lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20040objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20041MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20042lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20043lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20044lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20045lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20046lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20047need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20048MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20049DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20050NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20051LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20052OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20053OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20054libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20055shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20056extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20057archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20058enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20059export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20060whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20061compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20062old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20063old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20064archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20065archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20066module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20067module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20068with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20069allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20070no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20071hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20072hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20073hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20074hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20075hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20076hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20077hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20078inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20079link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20080always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20081export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20082exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20083include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20084prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20085postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20086file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20087variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20088need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20089need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20090version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20091runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20092shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20093shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20094libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20095library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20096soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20097install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20098postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20099postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20100finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20101finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20102hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20103sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20104configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20105configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20106hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20107enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20108enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20109enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20110old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20111striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20112 20113LTCC='$LTCC' 20114LTCFLAGS='$LTCFLAGS' 20115compiler='$compiler_DEFAULT' 20116 20117# A function that is used when there is no print builtin or printf. 20118func_fallback_echo () 20119{ 20120 eval 'cat <<_LTECHO_EOF 20121\$1 20122_LTECHO_EOF' 20123} 20124 20125# Quote evaled strings. 20126for var in SHELL \ 20127ECHO \ 20128PATH_SEPARATOR \ 20129SED \ 20130GREP \ 20131EGREP \ 20132FGREP \ 20133LD \ 20134NM \ 20135LN_S \ 20136lt_SP2NL \ 20137lt_NL2SP \ 20138reload_flag \ 20139OBJDUMP \ 20140deplibs_check_method \ 20141file_magic_cmd \ 20142file_magic_glob \ 20143want_nocaseglob \ 20144DLLTOOL \ 20145sharedlib_from_linklib_cmd \ 20146AR \ 20147AR_FLAGS \ 20148archiver_list_spec \ 20149STRIP \ 20150RANLIB \ 20151CC \ 20152CFLAGS \ 20153compiler \ 20154lt_cv_sys_global_symbol_pipe \ 20155lt_cv_sys_global_symbol_to_cdecl \ 20156lt_cv_sys_global_symbol_to_import \ 20157lt_cv_sys_global_symbol_to_c_name_address \ 20158lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20159lt_cv_nm_interface \ 20160nm_file_list_spec \ 20161lt_cv_truncate_bin \ 20162lt_prog_compiler_no_builtin_flag \ 20163lt_prog_compiler_pic \ 20164lt_prog_compiler_wl \ 20165lt_prog_compiler_static \ 20166lt_cv_prog_compiler_c_o \ 20167need_locks \ 20168MANIFEST_TOOL \ 20169DSYMUTIL \ 20170NMEDIT \ 20171LIPO \ 20172OTOOL \ 20173OTOOL64 \ 20174shrext_cmds \ 20175export_dynamic_flag_spec \ 20176whole_archive_flag_spec \ 20177compiler_needs_object \ 20178with_gnu_ld \ 20179allow_undefined_flag \ 20180no_undefined_flag \ 20181hardcode_libdir_flag_spec \ 20182hardcode_libdir_separator \ 20183exclude_expsyms \ 20184include_expsyms \ 20185file_list_spec \ 20186variables_saved_for_relink \ 20187libname_spec \ 20188library_names_spec \ 20189soname_spec \ 20190install_override_mode \ 20191finish_eval \ 20192old_striplib \ 20193striplib; do 20194 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20195 *[\\\\\\\`\\"\\\$]*) 20196 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20197 ;; 20198 *) 20199 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20200 ;; 20201 esac 20202done 20203 20204# Double-quote double-evaled strings. 20205for var in reload_cmds \ 20206old_postinstall_cmds \ 20207old_postuninstall_cmds \ 20208old_archive_cmds \ 20209extract_expsyms_cmds \ 20210old_archive_from_new_cmds \ 20211old_archive_from_expsyms_cmds \ 20212archive_cmds \ 20213archive_expsym_cmds \ 20214module_cmds \ 20215module_expsym_cmds \ 20216export_symbols_cmds \ 20217prelink_cmds \ 20218postlink_cmds \ 20219postinstall_cmds \ 20220postuninstall_cmds \ 20221finish_cmds \ 20222sys_lib_search_path_spec \ 20223configure_time_dlsearch_path \ 20224configure_time_lt_sys_library_path; do 20225 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20226 *[\\\\\\\`\\"\\\$]*) 20227 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20228 ;; 20229 *) 20230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20231 ;; 20232 esac 20233done 20234 20235ac_aux_dir='$ac_aux_dir' 20236 20237# See if we are running on zsh, and set the options that allow our 20238# commands through without removal of \ escapes INIT. 20239if test -n "\${ZSH_VERSION+set}"; then 20240 setopt NO_GLOB_SUBST 20241fi 20242 20243 20244 PACKAGE='$PACKAGE' 20245 VERSION='$VERSION' 20246 RM='$RM' 20247 ofile='$ofile' 20248 20249 20250 20251 20252_ACEOF 20253 20254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20255 20256# Handling of arguments. 20257for ac_config_target in $ac_config_targets 20258do 20259 case $ac_config_target in 20260 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20261 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20262 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20264 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20265 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20266 20267 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20268 esac 20269done 20270 20271 20272# If the user did not use the arguments to specify the items to instantiate, 20273# then the envvar interface is used. Set only those that are not. 20274# We use the long form for the default assignment because of an extremely 20275# bizarre bug on SunOS 4.1.3. 20276if $ac_need_defaults; then 20277 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20278 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20280fi 20281 20282# Have a temporary directory for convenience. Make it in the build tree 20283# simply because there is no reason against having it here, and in addition, 20284# creating and moving files from /tmp can sometimes cause problems. 20285# Hook for its removal unless debugging. 20286# Note that there is a small window in which the directory will not be cleaned: 20287# after its creation but before its name has been assigned to `$tmp'. 20288$debug || 20289{ 20290 tmp= ac_tmp= 20291 trap 'exit_status=$? 20292 : "${ac_tmp:=$tmp}" 20293 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20294' 0 20295 trap 'as_fn_exit 1' 1 2 13 15 20296} 20297# Create a (secure) tmp directory for tmp files. 20298 20299{ 20300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20301 test -d "$tmp" 20302} || 20303{ 20304 tmp=./conf$$-$RANDOM 20305 (umask 077 && mkdir "$tmp") 20306} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20307ac_tmp=$tmp 20308 20309# Set up the scripts for CONFIG_FILES section. 20310# No need to generate them if there are no CONFIG_FILES. 20311# This happens for instance with `./config.status config.h'. 20312if test -n "$CONFIG_FILES"; then 20313 20314 20315ac_cr=`echo X | tr X '\015'` 20316# On cygwin, bash can eat \r inside `` if the user requested igncr. 20317# But we know of no other shell where ac_cr would be empty at this 20318# point, so we can use a bashism as a fallback. 20319if test "x$ac_cr" = x; then 20320 eval ac_cr=\$\'\\r\' 20321fi 20322ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20323if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20324 ac_cs_awk_cr='\\r' 20325else 20326 ac_cs_awk_cr=$ac_cr 20327fi 20328 20329echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20330_ACEOF 20331 20332 20333{ 20334 echo "cat >conf$$subs.awk <<_ACEOF" && 20335 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20336 echo "_ACEOF" 20337} >conf$$subs.sh || 20338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20339ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20340ac_delim='%!_!# ' 20341for ac_last_try in false false false false false :; do 20342 . ./conf$$subs.sh || 20343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20344 20345 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20346 if test $ac_delim_n = $ac_delim_num; then 20347 break 20348 elif $ac_last_try; then 20349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20350 else 20351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20352 fi 20353done 20354rm -f conf$$subs.sh 20355 20356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20357cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20358_ACEOF 20359sed -n ' 20360h 20361s/^/S["/; s/!.*/"]=/ 20362p 20363g 20364s/^[^!]*!// 20365:repl 20366t repl 20367s/'"$ac_delim"'$// 20368t delim 20369:nl 20370h 20371s/\(.\{148\}\)..*/\1/ 20372t more1 20373s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20374p 20375n 20376b repl 20377:more1 20378s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20379p 20380g 20381s/.\{148\}// 20382t nl 20383:delim 20384h 20385s/\(.\{148\}\)..*/\1/ 20386t more2 20387s/["\\]/\\&/g; s/^/"/; s/$/"/ 20388p 20389b 20390:more2 20391s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20392p 20393g 20394s/.\{148\}// 20395t delim 20396' <conf$$subs.awk | sed ' 20397/^[^""]/{ 20398 N 20399 s/\n// 20400} 20401' >>$CONFIG_STATUS || ac_write_fail=1 20402rm -f conf$$subs.awk 20403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20404_ACAWK 20405cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20406 for (key in S) S_is_set[key] = 1 20407 FS = "" 20408 20409} 20410{ 20411 line = $ 0 20412 nfields = split(line, field, "@") 20413 substed = 0 20414 len = length(field[1]) 20415 for (i = 2; i < nfields; i++) { 20416 key = field[i] 20417 keylen = length(key) 20418 if (S_is_set[key]) { 20419 value = S[key] 20420 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20421 len += length(value) + length(field[++i]) 20422 substed = 1 20423 } else 20424 len += 1 + keylen 20425 } 20426 20427 print line 20428} 20429 20430_ACAWK 20431_ACEOF 20432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20433if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20434 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20435else 20436 cat 20437fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20438 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20439_ACEOF 20440 20441# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20442# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20443# trailing colons and then remove the whole line if VPATH becomes empty 20444# (actually we leave an empty line to preserve line numbers). 20445if test "x$srcdir" = x.; then 20446 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20447h 20448s/// 20449s/^/:/ 20450s/[ ]*$/:/ 20451s/:\$(srcdir):/:/g 20452s/:\${srcdir}:/:/g 20453s/:@srcdir@:/:/g 20454s/^:*// 20455s/:*$// 20456x 20457s/\(=[ ]*\).*/\1/ 20458G 20459s/\n// 20460s/^[^=]*=[ ]*$// 20461}' 20462fi 20463 20464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20465fi # test -n "$CONFIG_FILES" 20466 20467# Set up the scripts for CONFIG_HEADERS section. 20468# No need to generate them if there are no CONFIG_HEADERS. 20469# This happens for instance with `./config.status Makefile'. 20470if test -n "$CONFIG_HEADERS"; then 20471cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20472BEGIN { 20473_ACEOF 20474 20475# Transform confdefs.h into an awk script `defines.awk', embedded as 20476# here-document in config.status, that substitutes the proper values into 20477# config.h.in to produce config.h. 20478 20479# Create a delimiter string that does not exist in confdefs.h, to ease 20480# handling of long lines. 20481ac_delim='%!_!# ' 20482for ac_last_try in false false :; do 20483 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20484 if test -z "$ac_tt"; then 20485 break 20486 elif $ac_last_try; then 20487 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20488 else 20489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20490 fi 20491done 20492 20493# For the awk script, D is an array of macro values keyed by name, 20494# likewise P contains macro parameters if any. Preserve backslash 20495# newline sequences. 20496 20497ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20498sed -n ' 20499s/.\{148\}/&'"$ac_delim"'/g 20500t rset 20501:rset 20502s/^[ ]*#[ ]*define[ ][ ]*/ / 20503t def 20504d 20505:def 20506s/\\$// 20507t bsnl 20508s/["\\]/\\&/g 20509s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20510D["\1"]=" \3"/p 20511s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20512d 20513:bsnl 20514s/["\\]/\\&/g 20515s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20516D["\1"]=" \3\\\\\\n"\\/p 20517t cont 20518s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20519t cont 20520d 20521:cont 20522n 20523s/.\{148\}/&'"$ac_delim"'/g 20524t clear 20525:clear 20526s/\\$// 20527t bsnlc 20528s/["\\]/\\&/g; s/^/"/; s/$/"/p 20529d 20530:bsnlc 20531s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20532b cont 20533' <confdefs.h | sed ' 20534s/'"$ac_delim"'/"\\\ 20535"/g' >>$CONFIG_STATUS || ac_write_fail=1 20536 20537cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20538 for (key in D) D_is_set[key] = 1 20539 FS = "" 20540} 20541/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20542 line = \$ 0 20543 split(line, arg, " ") 20544 if (arg[1] == "#") { 20545 defundef = arg[2] 20546 mac1 = arg[3] 20547 } else { 20548 defundef = substr(arg[1], 2) 20549 mac1 = arg[2] 20550 } 20551 split(mac1, mac2, "(") #) 20552 macro = mac2[1] 20553 prefix = substr(line, 1, index(line, defundef) - 1) 20554 if (D_is_set[macro]) { 20555 # Preserve the white space surrounding the "#". 20556 print prefix "define", macro P[macro] D[macro] 20557 next 20558 } else { 20559 # Replace #undef with comments. This is necessary, for example, 20560 # in the case of _POSIX_SOURCE, which is predefined and required 20561 # on some systems where configure will not decide to define it. 20562 if (defundef == "undef") { 20563 print "/*", prefix defundef, macro, "*/" 20564 next 20565 } 20566 } 20567} 20568{ print } 20569_ACAWK 20570_ACEOF 20571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20572 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20573fi # test -n "$CONFIG_HEADERS" 20574 20575 20576eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20577shift 20578for ac_tag 20579do 20580 case $ac_tag in 20581 :[FHLC]) ac_mode=$ac_tag; continue;; 20582 esac 20583 case $ac_mode$ac_tag in 20584 :[FHL]*:*);; 20585 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20586 :[FH]-) ac_tag=-:-;; 20587 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20588 esac 20589 ac_save_IFS=$IFS 20590 IFS=: 20591 set x $ac_tag 20592 IFS=$ac_save_IFS 20593 shift 20594 ac_file=$1 20595 shift 20596 20597 case $ac_mode in 20598 :L) ac_source=$1;; 20599 :[FH]) 20600 ac_file_inputs= 20601 for ac_f 20602 do 20603 case $ac_f in 20604 -) ac_f="$ac_tmp/stdin";; 20605 *) # Look for the file first in the build tree, then in the source tree 20606 # (if the path is not absolute). The absolute path cannot be DOS-style, 20607 # because $ac_f cannot contain `:'. 20608 test -f "$ac_f" || 20609 case $ac_f in 20610 [\\/$]*) false;; 20611 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20612 esac || 20613 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20614 esac 20615 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20616 as_fn_append ac_file_inputs " '$ac_f'" 20617 done 20618 20619 # Let's still pretend it is `configure' which instantiates (i.e., don't 20620 # use $as_me), people would be surprised to read: 20621 # /* config.h. Generated by config.status. */ 20622 configure_input='Generated from '` 20623 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20624 `' by configure.' 20625 if test x"$ac_file" != x-; then 20626 configure_input="$ac_file. $configure_input" 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20628$as_echo "$as_me: creating $ac_file" >&6;} 20629 fi 20630 # Neutralize special characters interpreted by sed in replacement strings. 20631 case $configure_input in #( 20632 *\&* | *\|* | *\\* ) 20633 ac_sed_conf_input=`$as_echo "$configure_input" | 20634 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20635 *) ac_sed_conf_input=$configure_input;; 20636 esac 20637 20638 case $ac_tag in 20639 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20641 esac 20642 ;; 20643 esac 20644 20645 ac_dir=`$as_dirname -- "$ac_file" || 20646$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20647 X"$ac_file" : 'X\(//\)[^/]' \| \ 20648 X"$ac_file" : 'X\(//\)$' \| \ 20649 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20650$as_echo X"$ac_file" | 20651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20652 s//\1/ 20653 q 20654 } 20655 /^X\(\/\/\)[^/].*/{ 20656 s//\1/ 20657 q 20658 } 20659 /^X\(\/\/\)$/{ 20660 s//\1/ 20661 q 20662 } 20663 /^X\(\/\).*/{ 20664 s//\1/ 20665 q 20666 } 20667 s/.*/./; q'` 20668 as_dir="$ac_dir"; as_fn_mkdir_p 20669 ac_builddir=. 20670 20671case "$ac_dir" in 20672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20673*) 20674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20675 # A ".." for each directory in $ac_dir_suffix. 20676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20677 case $ac_top_builddir_sub in 20678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20680 esac ;; 20681esac 20682ac_abs_top_builddir=$ac_pwd 20683ac_abs_builddir=$ac_pwd$ac_dir_suffix 20684# for backward compatibility: 20685ac_top_builddir=$ac_top_build_prefix 20686 20687case $srcdir in 20688 .) # We are building in place. 20689 ac_srcdir=. 20690 ac_top_srcdir=$ac_top_builddir_sub 20691 ac_abs_top_srcdir=$ac_pwd ;; 20692 [\\/]* | ?:[\\/]* ) # Absolute name. 20693 ac_srcdir=$srcdir$ac_dir_suffix; 20694 ac_top_srcdir=$srcdir 20695 ac_abs_top_srcdir=$srcdir ;; 20696 *) # Relative name. 20697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20698 ac_top_srcdir=$ac_top_build_prefix$srcdir 20699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20700esac 20701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20702 20703 20704 case $ac_mode in 20705 :F) 20706 # 20707 # CONFIG_FILE 20708 # 20709 20710 case $INSTALL in 20711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20712 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20713 esac 20714 ac_MKDIR_P=$MKDIR_P 20715 case $MKDIR_P in 20716 [\\/$]* | ?:[\\/]* ) ;; 20717 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20718 esac 20719_ACEOF 20720 20721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20722# If the template does not know about datarootdir, expand it. 20723# FIXME: This hack should be removed a few years after 2.60. 20724ac_datarootdir_hack=; ac_datarootdir_seen= 20725ac_sed_dataroot=' 20726/datarootdir/ { 20727 p 20728 q 20729} 20730/@datadir@/p 20731/@docdir@/p 20732/@infodir@/p 20733/@localedir@/p 20734/@mandir@/p' 20735case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20736*datarootdir*) ac_datarootdir_seen=yes;; 20737*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20739$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20740_ACEOF 20741cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20742 ac_datarootdir_hack=' 20743 s&@datadir@&$datadir&g 20744 s&@docdir@&$docdir&g 20745 s&@infodir@&$infodir&g 20746 s&@localedir@&$localedir&g 20747 s&@mandir@&$mandir&g 20748 s&\\\${datarootdir}&$datarootdir&g' ;; 20749esac 20750_ACEOF 20751 20752# Neutralize VPATH when `$srcdir' = `.'. 20753# Shell code in configure.ac might set extrasub. 20754# FIXME: do we really want to maintain this feature? 20755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20756ac_sed_extra="$ac_vpsub 20757$extrasub 20758_ACEOF 20759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20760:t 20761/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20762s|@configure_input@|$ac_sed_conf_input|;t t 20763s&@top_builddir@&$ac_top_builddir_sub&;t t 20764s&@top_build_prefix@&$ac_top_build_prefix&;t t 20765s&@srcdir@&$ac_srcdir&;t t 20766s&@abs_srcdir@&$ac_abs_srcdir&;t t 20767s&@top_srcdir@&$ac_top_srcdir&;t t 20768s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20769s&@builddir@&$ac_builddir&;t t 20770s&@abs_builddir@&$ac_abs_builddir&;t t 20771s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20772s&@INSTALL@&$ac_INSTALL&;t t 20773s&@MKDIR_P@&$ac_MKDIR_P&;t t 20774$ac_datarootdir_hack 20775" 20776eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20777 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20778 20779test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20780 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20781 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20782 "$ac_tmp/out"`; test -z "$ac_out"; } && 20783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20784which seems to be undefined. Please make sure it is defined" >&5 20785$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20786which seems to be undefined. Please make sure it is defined" >&2;} 20787 20788 rm -f "$ac_tmp/stdin" 20789 case $ac_file in 20790 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20791 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20792 esac \ 20793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20794 ;; 20795 :H) 20796 # 20797 # CONFIG_HEADER 20798 # 20799 if test x"$ac_file" != x-; then 20800 { 20801 $as_echo "/* $configure_input */" \ 20802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20803 } >"$ac_tmp/config.h" \ 20804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20805 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20806 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20807$as_echo "$as_me: $ac_file is unchanged" >&6;} 20808 else 20809 rm -f "$ac_file" 20810 mv "$ac_tmp/config.h" "$ac_file" \ 20811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20812 fi 20813 else 20814 $as_echo "/* $configure_input */" \ 20815 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20816 || as_fn_error $? "could not create -" "$LINENO" 5 20817 fi 20818# Compute "$ac_file"'s index in $config_headers. 20819_am_arg="$ac_file" 20820_am_stamp_count=1 20821for _am_header in $config_headers :; do 20822 case $_am_header in 20823 $_am_arg | $_am_arg:* ) 20824 break ;; 20825 * ) 20826 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20827 esac 20828done 20829echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20830$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20831 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20832 X"$_am_arg" : 'X\(//\)$' \| \ 20833 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20834$as_echo X"$_am_arg" | 20835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20836 s//\1/ 20837 q 20838 } 20839 /^X\(\/\/\)[^/].*/{ 20840 s//\1/ 20841 q 20842 } 20843 /^X\(\/\/\)$/{ 20844 s//\1/ 20845 q 20846 } 20847 /^X\(\/\).*/{ 20848 s//\1/ 20849 q 20850 } 20851 s/.*/./; q'`/stamp-h$_am_stamp_count 20852 ;; 20853 20854 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20855$as_echo "$as_me: executing $ac_file commands" >&6;} 20856 ;; 20857 esac 20858 20859 20860 case $ac_file$ac_mode in 20861 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20862 # Older Autoconf quotes --file arguments for eval, but not when files 20863 # are listed without --file. Let's play safe and only enable the eval 20864 # if we detect the quoting. 20865 case $CONFIG_FILES in 20866 *\'*) eval set x "$CONFIG_FILES" ;; 20867 *) set x $CONFIG_FILES ;; 20868 esac 20869 shift 20870 for mf 20871 do 20872 # Strip MF so we end up with the name of the file. 20873 mf=`echo "$mf" | sed -e 's/:.*$//'` 20874 # Check whether this is an Automake generated Makefile or not. 20875 # We used to match only the files named 'Makefile.in', but 20876 # some people rename them; so instead we look at the file content. 20877 # Grep'ing the first line is not enough: some people post-process 20878 # each Makefile.in and add a new line on top of each file to say so. 20879 # Grep'ing the whole file is not good either: AIX grep has a line 20880 # limit of 2048, but all sed's we know have understand at least 4000. 20881 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20882 dirpart=`$as_dirname -- "$mf" || 20883$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20884 X"$mf" : 'X\(//\)[^/]' \| \ 20885 X"$mf" : 'X\(//\)$' \| \ 20886 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20887$as_echo X"$mf" | 20888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20889 s//\1/ 20890 q 20891 } 20892 /^X\(\/\/\)[^/].*/{ 20893 s//\1/ 20894 q 20895 } 20896 /^X\(\/\/\)$/{ 20897 s//\1/ 20898 q 20899 } 20900 /^X\(\/\).*/{ 20901 s//\1/ 20902 q 20903 } 20904 s/.*/./; q'` 20905 else 20906 continue 20907 fi 20908 # Extract the definition of DEPDIR, am__include, and am__quote 20909 # from the Makefile without running 'make'. 20910 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20911 test -z "$DEPDIR" && continue 20912 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20913 test -z "$am__include" && continue 20914 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20915 # Find all dependency output files, they are included files with 20916 # $(DEPDIR) in their names. We invoke sed twice because it is the 20917 # simplest approach to changing $(DEPDIR) to its actual value in the 20918 # expansion. 20919 for file in `sed -n " 20920 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20921 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20922 # Make sure the directory exists. 20923 test -f "$dirpart/$file" && continue 20924 fdir=`$as_dirname -- "$file" || 20925$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20926 X"$file" : 'X\(//\)[^/]' \| \ 20927 X"$file" : 'X\(//\)$' \| \ 20928 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20929$as_echo X"$file" | 20930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20931 s//\1/ 20932 q 20933 } 20934 /^X\(\/\/\)[^/].*/{ 20935 s//\1/ 20936 q 20937 } 20938 /^X\(\/\/\)$/{ 20939 s//\1/ 20940 q 20941 } 20942 /^X\(\/\).*/{ 20943 s//\1/ 20944 q 20945 } 20946 s/.*/./; q'` 20947 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20948 # echo "creating $dirpart/$file" 20949 echo '# dummy' > "$dirpart/$file" 20950 done 20951 done 20952} 20953 ;; 20954 "libtool":C) 20955 20956 # See if we are running on zsh, and set the options that allow our 20957 # commands through without removal of \ escapes. 20958 if test -n "${ZSH_VERSION+set}"; then 20959 setopt NO_GLOB_SUBST 20960 fi 20961 20962 cfgfile=${ofile}T 20963 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20964 $RM "$cfgfile" 20965 20966 cat <<_LT_EOF >> "$cfgfile" 20967#! $SHELL 20968# Generated automatically by $as_me ($PACKAGE) $VERSION 20969# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20970# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20971 20972# Provide generalized library-building support services. 20973# Written by Gordon Matzigkeit, 1996 20974 20975# Copyright (C) 2014 Free Software Foundation, Inc. 20976# This is free software; see the source for copying conditions. There is NO 20977# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20978 20979# GNU Libtool is free software; you can redistribute it and/or modify 20980# it under the terms of the GNU General Public License as published by 20981# the Free Software Foundation; either version 2 of of the License, or 20982# (at your option) any later version. 20983# 20984# As a special exception to the GNU General Public License, if you 20985# distribute this file as part of a program or library that is built 20986# using GNU Libtool, you may include this file under the same 20987# distribution terms that you use for the rest of that program. 20988# 20989# GNU Libtool is distributed in the hope that it will be useful, but 20990# WITHOUT ANY WARRANTY; without even the implied warranty of 20991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20992# GNU General Public License for more details. 20993# 20994# You should have received a copy of the GNU General Public License 20995# along with this program. If not, see <http://www.gnu.org/licenses/>. 20996 20997 20998# The names of the tagged configurations supported by this script. 20999available_tags='' 21000 21001# Configured defaults for sys_lib_dlsearch_path munging. 21002: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21003 21004# ### BEGIN LIBTOOL CONFIG 21005 21006# Whether or not to build static libraries. 21007build_old_libs=$enable_static 21008 21009# Which release of libtool.m4 was used? 21010macro_version=$macro_version 21011macro_revision=$macro_revision 21012 21013# Whether or not to build shared libraries. 21014build_libtool_libs=$enable_shared 21015 21016# What type of objects to build. 21017pic_mode=$pic_mode 21018 21019# Whether or not to optimize for fast installation. 21020fast_install=$enable_fast_install 21021 21022# Shared archive member basename,for filename based shared library versioning on AIX. 21023shared_archive_member_spec=$shared_archive_member_spec 21024 21025# Shell to use when invoking shell scripts. 21026SHELL=$lt_SHELL 21027 21028# An echo program that protects backslashes. 21029ECHO=$lt_ECHO 21030 21031# The PATH separator for the build system. 21032PATH_SEPARATOR=$lt_PATH_SEPARATOR 21033 21034# The host system. 21035host_alias=$host_alias 21036host=$host 21037host_os=$host_os 21038 21039# The build system. 21040build_alias=$build_alias 21041build=$build 21042build_os=$build_os 21043 21044# A sed program that does not truncate output. 21045SED=$lt_SED 21046 21047# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21048Xsed="\$SED -e 1s/^X//" 21049 21050# A grep program that handles long lines. 21051GREP=$lt_GREP 21052 21053# An ERE matcher. 21054EGREP=$lt_EGREP 21055 21056# A literal string matcher. 21057FGREP=$lt_FGREP 21058 21059# A BSD- or MS-compatible name lister. 21060NM=$lt_NM 21061 21062# Whether we need soft or hard links. 21063LN_S=$lt_LN_S 21064 21065# What is the maximum length of a command? 21066max_cmd_len=$max_cmd_len 21067 21068# Object file suffix (normally "o"). 21069objext=$ac_objext 21070 21071# Executable file suffix (normally ""). 21072exeext=$exeext 21073 21074# whether the shell understands "unset". 21075lt_unset=$lt_unset 21076 21077# turn spaces into newlines. 21078SP2NL=$lt_lt_SP2NL 21079 21080# turn newlines into spaces. 21081NL2SP=$lt_lt_NL2SP 21082 21083# convert \$build file names to \$host format. 21084to_host_file_cmd=$lt_cv_to_host_file_cmd 21085 21086# convert \$build files to toolchain format. 21087to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21088 21089# An object symbol dumper. 21090OBJDUMP=$lt_OBJDUMP 21091 21092# Method to check whether dependent libraries are shared objects. 21093deplibs_check_method=$lt_deplibs_check_method 21094 21095# Command to use when deplibs_check_method = "file_magic". 21096file_magic_cmd=$lt_file_magic_cmd 21097 21098# How to find potential files when deplibs_check_method = "file_magic". 21099file_magic_glob=$lt_file_magic_glob 21100 21101# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21102want_nocaseglob=$lt_want_nocaseglob 21103 21104# DLL creation program. 21105DLLTOOL=$lt_DLLTOOL 21106 21107# Command to associate shared and link libraries. 21108sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21109 21110# The archiver. 21111AR=$lt_AR 21112 21113# Flags to create an archive. 21114AR_FLAGS=$lt_AR_FLAGS 21115 21116# How to feed a file listing to the archiver. 21117archiver_list_spec=$lt_archiver_list_spec 21118 21119# A symbol stripping program. 21120STRIP=$lt_STRIP 21121 21122# Commands used to install an old-style archive. 21123RANLIB=$lt_RANLIB 21124old_postinstall_cmds=$lt_old_postinstall_cmds 21125old_postuninstall_cmds=$lt_old_postuninstall_cmds 21126 21127# Whether to use a lock for old archive extraction. 21128lock_old_archive_extraction=$lock_old_archive_extraction 21129 21130# A C compiler. 21131LTCC=$lt_CC 21132 21133# LTCC compiler flags. 21134LTCFLAGS=$lt_CFLAGS 21135 21136# Take the output of nm and produce a listing of raw symbols and C names. 21137global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21138 21139# Transform the output of nm in a proper C declaration. 21140global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21141 21142# Transform the output of nm into a list of symbols to manually relocate. 21143global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21144 21145# Transform the output of nm in a C name address pair. 21146global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21147 21148# Transform the output of nm in a C name address pair when lib prefix is needed. 21149global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21150 21151# The name lister interface. 21152nm_interface=$lt_lt_cv_nm_interface 21153 21154# Specify filename containing input files for \$NM. 21155nm_file_list_spec=$lt_nm_file_list_spec 21156 21157# The root where to search for dependent libraries,and where our libraries should be installed. 21158lt_sysroot=$lt_sysroot 21159 21160# Command to truncate a binary pipe. 21161lt_truncate_bin=$lt_lt_cv_truncate_bin 21162 21163# The name of the directory that contains temporary libtool files. 21164objdir=$objdir 21165 21166# Used to examine libraries when file_magic_cmd begins with "file". 21167MAGIC_CMD=$MAGIC_CMD 21168 21169# Must we lock files when doing compilation? 21170need_locks=$lt_need_locks 21171 21172# Manifest tool. 21173MANIFEST_TOOL=$lt_MANIFEST_TOOL 21174 21175# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21176DSYMUTIL=$lt_DSYMUTIL 21177 21178# Tool to change global to local symbols on Mac OS X. 21179NMEDIT=$lt_NMEDIT 21180 21181# Tool to manipulate fat objects and archives on Mac OS X. 21182LIPO=$lt_LIPO 21183 21184# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21185OTOOL=$lt_OTOOL 21186 21187# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21188OTOOL64=$lt_OTOOL64 21189 21190# Old archive suffix (normally "a"). 21191libext=$libext 21192 21193# Shared library suffix (normally ".so"). 21194shrext_cmds=$lt_shrext_cmds 21195 21196# The commands to extract the exported symbol list from a shared archive. 21197extract_expsyms_cmds=$lt_extract_expsyms_cmds 21198 21199# Variables whose values should be saved in libtool wrapper scripts and 21200# restored at link time. 21201variables_saved_for_relink=$lt_variables_saved_for_relink 21202 21203# Do we need the "lib" prefix for modules? 21204need_lib_prefix=$need_lib_prefix 21205 21206# Do we need a version for libraries? 21207need_version=$need_version 21208 21209# Library versioning type. 21210version_type=$version_type 21211 21212# Shared library runtime path variable. 21213runpath_var=$runpath_var 21214 21215# Shared library path variable. 21216shlibpath_var=$shlibpath_var 21217 21218# Is shlibpath searched before the hard-coded library search path? 21219shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21220 21221# Format of library name prefix. 21222libname_spec=$lt_libname_spec 21223 21224# List of archive names. First name is the real one, the rest are links. 21225# The last name is the one that the linker finds with -lNAME 21226library_names_spec=$lt_library_names_spec 21227 21228# The coded name of the library, if different from the real name. 21229soname_spec=$lt_soname_spec 21230 21231# Permission mode override for installation of shared libraries. 21232install_override_mode=$lt_install_override_mode 21233 21234# Command to use after installation of a shared archive. 21235postinstall_cmds=$lt_postinstall_cmds 21236 21237# Command to use after uninstallation of a shared archive. 21238postuninstall_cmds=$lt_postuninstall_cmds 21239 21240# Commands used to finish a libtool library installation in a directory. 21241finish_cmds=$lt_finish_cmds 21242 21243# As "finish_cmds", except a single script fragment to be evaled but 21244# not shown. 21245finish_eval=$lt_finish_eval 21246 21247# Whether we should hardcode library paths into libraries. 21248hardcode_into_libs=$hardcode_into_libs 21249 21250# Compile-time system search path for libraries. 21251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21252 21253# Detected run-time system search path for libraries. 21254sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21255 21256# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21257configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21258 21259# Whether dlopen is supported. 21260dlopen_support=$enable_dlopen 21261 21262# Whether dlopen of programs is supported. 21263dlopen_self=$enable_dlopen_self 21264 21265# Whether dlopen of statically linked programs is supported. 21266dlopen_self_static=$enable_dlopen_self_static 21267 21268# Commands to strip libraries. 21269old_striplib=$lt_old_striplib 21270striplib=$lt_striplib 21271 21272 21273# The linker used to build libraries. 21274LD=$lt_LD 21275 21276# How to create reloadable object files. 21277reload_flag=$lt_reload_flag 21278reload_cmds=$lt_reload_cmds 21279 21280# Commands used to build an old-style archive. 21281old_archive_cmds=$lt_old_archive_cmds 21282 21283# A language specific compiler. 21284CC=$lt_compiler 21285 21286# Is the compiler the GNU compiler? 21287with_gcc=$GCC 21288 21289# Compiler flag to turn off builtin functions. 21290no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21291 21292# Additional compiler flags for building library objects. 21293pic_flag=$lt_lt_prog_compiler_pic 21294 21295# How to pass a linker flag through the compiler. 21296wl=$lt_lt_prog_compiler_wl 21297 21298# Compiler flag to prevent dynamic linking. 21299link_static_flag=$lt_lt_prog_compiler_static 21300 21301# Does compiler simultaneously support -c and -o options? 21302compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21303 21304# Whether or not to add -lc for building shared libraries. 21305build_libtool_need_lc=$archive_cmds_need_lc 21306 21307# Whether or not to disallow shared libs when runtime libs are static. 21308allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21309 21310# Compiler flag to allow reflexive dlopens. 21311export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21312 21313# Compiler flag to generate shared objects directly from archives. 21314whole_archive_flag_spec=$lt_whole_archive_flag_spec 21315 21316# Whether the compiler copes with passing no objects directly. 21317compiler_needs_object=$lt_compiler_needs_object 21318 21319# Create an old-style archive from a shared archive. 21320old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21321 21322# Create a temporary old-style archive to link instead of a shared archive. 21323old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21324 21325# Commands used to build a shared archive. 21326archive_cmds=$lt_archive_cmds 21327archive_expsym_cmds=$lt_archive_expsym_cmds 21328 21329# Commands used to build a loadable module if different from building 21330# a shared archive. 21331module_cmds=$lt_module_cmds 21332module_expsym_cmds=$lt_module_expsym_cmds 21333 21334# Whether we are building with GNU ld or not. 21335with_gnu_ld=$lt_with_gnu_ld 21336 21337# Flag that allows shared libraries with undefined symbols to be built. 21338allow_undefined_flag=$lt_allow_undefined_flag 21339 21340# Flag that enforces no undefined symbols. 21341no_undefined_flag=$lt_no_undefined_flag 21342 21343# Flag to hardcode \$libdir into a binary during linking. 21344# This must work even if \$libdir does not exist 21345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21346 21347# Whether we need a single "-rpath" flag with a separated argument. 21348hardcode_libdir_separator=$lt_hardcode_libdir_separator 21349 21350# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21351# DIR into the resulting binary. 21352hardcode_direct=$hardcode_direct 21353 21354# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21355# DIR into the resulting binary and the resulting library dependency is 21356# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21357# library is relocated. 21358hardcode_direct_absolute=$hardcode_direct_absolute 21359 21360# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21361# into the resulting binary. 21362hardcode_minus_L=$hardcode_minus_L 21363 21364# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21365# into the resulting binary. 21366hardcode_shlibpath_var=$hardcode_shlibpath_var 21367 21368# Set to "yes" if building a shared library automatically hardcodes DIR 21369# into the library and all subsequent libraries and executables linked 21370# against it. 21371hardcode_automatic=$hardcode_automatic 21372 21373# Set to yes if linker adds runtime paths of dependent libraries 21374# to runtime path list. 21375inherit_rpath=$inherit_rpath 21376 21377# Whether libtool must link a program against all its dependency libraries. 21378link_all_deplibs=$link_all_deplibs 21379 21380# Set to "yes" if exported symbols are required. 21381always_export_symbols=$always_export_symbols 21382 21383# The commands to list exported symbols. 21384export_symbols_cmds=$lt_export_symbols_cmds 21385 21386# Symbols that should not be listed in the preloaded symbols. 21387exclude_expsyms=$lt_exclude_expsyms 21388 21389# Symbols that must always be exported. 21390include_expsyms=$lt_include_expsyms 21391 21392# Commands necessary for linking programs (against libraries) with templates. 21393prelink_cmds=$lt_prelink_cmds 21394 21395# Commands necessary for finishing linking programs. 21396postlink_cmds=$lt_postlink_cmds 21397 21398# Specify filename containing input files. 21399file_list_spec=$lt_file_list_spec 21400 21401# How to hardcode a shared library path into an executable. 21402hardcode_action=$hardcode_action 21403 21404# ### END LIBTOOL CONFIG 21405 21406_LT_EOF 21407 21408 cat <<'_LT_EOF' >> "$cfgfile" 21409 21410# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21411 21412# func_munge_path_list VARIABLE PATH 21413# ----------------------------------- 21414# VARIABLE is name of variable containing _space_ separated list of 21415# directories to be munged by the contents of PATH, which is string 21416# having a format: 21417# "DIR[:DIR]:" 21418# string "DIR[ DIR]" will be prepended to VARIABLE 21419# ":DIR[:DIR]" 21420# string "DIR[ DIR]" will be appended to VARIABLE 21421# "DIRP[:DIRP]::[DIRA:]DIRA" 21422# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21423# "DIRA[ DIRA]" will be appended to VARIABLE 21424# "DIR[:DIR]" 21425# VARIABLE will be replaced by "DIR[ DIR]" 21426func_munge_path_list () 21427{ 21428 case x$2 in 21429 x) 21430 ;; 21431 *:) 21432 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21433 ;; 21434 x:*) 21435 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21436 ;; 21437 *::*) 21438 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21439 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21440 ;; 21441 *) 21442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21443 ;; 21444 esac 21445} 21446 21447 21448# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21449func_cc_basename () 21450{ 21451 for cc_temp in $*""; do 21452 case $cc_temp in 21453 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21454 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21455 \-*) ;; 21456 *) break;; 21457 esac 21458 done 21459 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21460} 21461 21462 21463# ### END FUNCTIONS SHARED WITH CONFIGURE 21464 21465_LT_EOF 21466 21467 case $host_os in 21468 aix3*) 21469 cat <<\_LT_EOF >> "$cfgfile" 21470# AIX sometimes has problems with the GCC collect2 program. For some 21471# reason, if we set the COLLECT_NAMES environment variable, the problems 21472# vanish in a puff of smoke. 21473if test set != "${COLLECT_NAMES+set}"; then 21474 COLLECT_NAMES= 21475 export COLLECT_NAMES 21476fi 21477_LT_EOF 21478 ;; 21479 esac 21480 21481 21482ltmain=$ac_aux_dir/ltmain.sh 21483 21484 21485 # We use sed instead of cat because bash on DJGPP gets confused if 21486 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21487 # text mode, it properly converts lines to CR/LF. This bash problem 21488 # is reportedly fixed, but why not run on old versions too? 21489 sed '$q' "$ltmain" >> "$cfgfile" \ 21490 || (rm -f "$cfgfile"; exit 1) 21491 21492 mv -f "$cfgfile" "$ofile" || 21493 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21494 chmod +x "$ofile" 21495 21496 ;; 21497 21498 esac 21499done # for ac_tag 21500 21501 21502as_fn_exit 0 21503_ACEOF 21504ac_clean_files=$ac_clean_files_save 21505 21506test $ac_write_fail = 0 || 21507 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21508 21509 21510# configure is writing to config.log, and then calls config.status. 21511# config.status does its own redirection, appending to config.log. 21512# Unfortunately, on DOS this fails, as config.log is still kept open 21513# by configure, so config.status won't be able to write to it; its 21514# output is simply discarded. So we exec the FD to /dev/null, 21515# effectively closing config.log, so it can be properly (re)opened and 21516# appended to by config.status. When coming back to configure, we 21517# need to make the FD available again. 21518if test "$no_create" != yes; then 21519 ac_cs_success=: 21520 ac_config_status_args= 21521 test "$silent" = yes && 21522 ac_config_status_args="$ac_config_status_args --quiet" 21523 exec 5>/dev/null 21524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21525 exec 5>>config.log 21526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21527 # would make configure fail if this is the last instruction. 21528 $ac_cs_success || as_fn_exit 1 21529fi 21530if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21532$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21533fi 21534 21535