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.12.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues>. 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://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues 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.12.0' 595PACKAGE_STRING='xf86-video-sis 0.12.0' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues' 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 728AM_BACKSLASH 729AM_DEFAULT_VERBOSITY 730AM_DEFAULT_V 731AM_V 732am__untar 733am__tar 734AMTAR 735am__leading_dot 736SET_MAKE 737AWK 738mkdir_p 739MKDIR_P 740INSTALL_STRIP_PROGRAM 741STRIP 742install_sh 743MAKEINFO 744AUTOHEADER 745AUTOMAKE 746AUTOCONF 747ACLOCAL 748VERSION 749PACKAGE 750CYGPATH_W 751am__isrc 752INSTALL_DATA 753INSTALL_SCRIPT 754INSTALL_PROGRAM 755target_alias 756host_alias 757build_alias 758LIBS 759ECHO_T 760ECHO_N 761ECHO_C 762DEFS 763mandir 764localedir 765libdir 766psdir 767pdfdir 768dvidir 769htmldir 770infodir 771docdir 772oldincludedir 773includedir 774runstatedir 775localstatedir 776sharedstatedir 777sysconfdir 778datadir 779datarootdir 780libexecdir 781sbindir 782bindir 783program_transform_name 784prefix 785exec_prefix 786PACKAGE_URL 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797enable_silent_rules 798enable_dependency_tracking 799enable_selective_werror 800enable_strict_compilation 801enable_static 802enable_shared 803with_pic 804enable_fast_install 805with_aix_soname 806with_gnu_ld 807with_sysroot 808enable_libtool_lock 809with_xorg_module_dir 810enable_dri 811enable_xaa 812' 813 ac_precious_vars='build_alias 814host_alias 815target_alias 816CC 817CFLAGS 818LDFLAGS 819LIBS 820CPPFLAGS 821CPP 822PKG_CONFIG 823PKG_CONFIG_PATH 824PKG_CONFIG_LIBDIR 825LT_SYS_LIBRARY_PATH 826XORG_CFLAGS 827XORG_LIBS 828XEXT_CFLAGS 829XEXT_LIBS 830DRI_CFLAGS 831DRI_LIBS 832PCIACCESS_CFLAGS 833PCIACCESS_LIBS' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872runstatedir='${localstatedir}/run' 873includedir='${prefix}/include' 874oldincludedir='/usr/include' 875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 876infodir='${datarootdir}/info' 877htmldir='${docdir}' 878dvidir='${docdir}' 879pdfdir='${docdir}' 880psdir='${docdir}' 881libdir='${exec_prefix}/lib' 882localedir='${datarootdir}/locale' 883mandir='${datarootdir}/man' 884 885ac_prev= 886ac_dashdash= 887for ac_option 888do 889 # If the previous option needs an argument, assign it. 890 if test -n "$ac_prev"; then 891 eval $ac_prev=\$ac_option 892 ac_prev= 893 continue 894 fi 895 896 case $ac_option in 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 898 *=) ac_optarg= ;; 899 *) ac_optarg=yes ;; 900 esac 901 902 # Accept the important Cygnus configure options, so we can diagnose typos. 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975"enable_$ac_useropt" 976"*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1126 | --runstate | --runstat | --runsta | --runst | --runs \ 1127 | --run | --ru | --r) 1128 ac_prev=runstatedir ;; 1129 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1130 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1131 | --run=* | --ru=* | --r=*) 1132 runstatedir=$ac_optarg ;; 1133 1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1135 ac_prev=sbindir ;; 1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1137 | --sbi=* | --sb=*) 1138 sbindir=$ac_optarg ;; 1139 1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1142 | --sharedst | --shareds | --shared | --share | --shar \ 1143 | --sha | --sh) 1144 ac_prev=sharedstatedir ;; 1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1148 | --sha=* | --sh=*) 1149 sharedstatedir=$ac_optarg ;; 1150 1151 -site | --site | --sit) 1152 ac_prev=site ;; 1153 -site=* | --site=* | --sit=*) 1154 site=$ac_optarg ;; 1155 1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1157 ac_prev=srcdir ;; 1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1159 srcdir=$ac_optarg ;; 1160 1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1162 | --syscon | --sysco | --sysc | --sys | --sy) 1163 ac_prev=sysconfdir ;; 1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1166 sysconfdir=$ac_optarg ;; 1167 1168 -target | --target | --targe | --targ | --tar | --ta | --t) 1169 ac_prev=target_alias ;; 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1171 target_alias=$ac_optarg ;; 1172 1173 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1174 verbose=yes ;; 1175 1176 -version | --version | --versio | --versi | --vers | -V) 1177 ac_init_version=: ;; 1178 1179 -with-* | --with-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: $ac_useropt" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188"with_$ac_useropt" 1189"*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=\$ac_optarg ;; 1194 1195 -without-* | --without-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=no ;; 1210 1211 --x) 1212 # Obsolete; use --with-x. 1213 with_x=yes ;; 1214 1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1216 | --x-incl | --x-inc | --x-in | --x-i) 1217 ac_prev=x_includes ;; 1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1220 x_includes=$ac_optarg ;; 1221 1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1224 ac_prev=x_libraries ;; 1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1227 x_libraries=$ac_optarg ;; 1228 1229 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1230Try \`$0 --help' for more information" 1231 ;; 1232 1233 *=*) 1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1235 # Reject names that are not valid shell variable names. 1236 case $ac_envvar in #( 1237 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1239 esac 1240 eval $ac_envvar=\$ac_optarg 1241 export $ac_envvar ;; 1242 1243 *) 1244 # FIXME: should be removed in autoconf 3.0. 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1249 ;; 1250 1251 esac 1252done 1253 1254if test -n "$ac_prev"; then 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1256 as_fn_error $? "missing argument to $ac_option" 1257fi 1258 1259if test -n "$ac_unrecognized_opts"; then 1260 case $enable_option_checking in 1261 no) ;; 1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1264 esac 1265fi 1266 1267# Check all directory arguments for consistency. 1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1269 datadir sysconfdir sharedstatedir localstatedir includedir \ 1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1271 libdir localedir mandir runstatedir 1272do 1273 eval ac_val=\$$ac_var 1274 # Remove trailing slashes. 1275 case $ac_val in 1276 */ ) 1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1278 eval $ac_var=\$ac_val;; 1279 esac 1280 # Be sure to have absolute directory names. 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1286done 1287 1288# There might be people who depend on the old broken behavior: `$host' 1289# used to hold the argument of --host etc. 1290# FIXME: To remove some day. 1291build=$build_alias 1292host=$host_alias 1293target=$target_alias 1294 1295# FIXME: To remove some day. 1296if test "x$host_alias" != x; then 1297 if test "x$build_alias" = x; then 1298 cross_compiling=maybe 1299 elif test "x$build_alias" != "x$host_alias"; then 1300 cross_compiling=yes 1301 fi 1302fi 1303 1304ac_tool_prefix= 1305test -n "$host_alias" && ac_tool_prefix=$host_alias- 1306 1307test "$silent" = yes && exec 6>/dev/null 1308 1309 1310ac_pwd=`pwd` && test -n "$ac_pwd" && 1311ac_ls_di=`ls -di .` && 1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1313 as_fn_error $? "working directory cannot be determined" 1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1315 as_fn_error $? "pwd does not report name of working directory" 1316 1317 1318# Find the source files, if location was not specified. 1319if test -z "$srcdir"; then 1320 ac_srcdir_defaulted=yes 1321 # Try the directory containing this script, then the parent directory. 1322 ac_confdir=`$as_dirname -- "$as_myself" || 1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1324 X"$as_myself" : 'X\(//\)[^/]' \| \ 1325 X"$as_myself" : 'X\(//\)$' \| \ 1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1327$as_echo X"$as_myself" | 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)[^/].*/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\).*/{ 1341 s//\1/ 1342 q 1343 } 1344 s/.*/./; q'` 1345 srcdir=$ac_confdir 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 srcdir=.. 1348 fi 1349else 1350 ac_srcdir_defaulted=no 1351fi 1352if test ! -r "$srcdir/$ac_unique_file"; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1355fi 1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1357ac_abs_confdir=`( 1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1359 pwd)` 1360# When building in place, set srcdir=. 1361if test "$ac_abs_confdir" = "$ac_pwd"; then 1362 srcdir=. 1363fi 1364# Remove unnecessary trailing slashes from srcdir. 1365# Double slashes in file names in object file debugging info 1366# mess up M-x gdb in Emacs. 1367case $srcdir in 1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1369esac 1370for ac_var in $ac_precious_vars; do 1371 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_env_${ac_var}_value=\$${ac_var} 1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1375done 1376 1377# 1378# Report the --help message. 1379# 1380if test "$ac_init_help" = "long"; then 1381 # Omit some internal or obsolete options to make the list less imposing. 1382 # This message is too long to be a string in the A/UX 3.1 sh. 1383 cat <<_ACEOF 1384\`configure' configures xf86-video-sis 0.12.0 to adapt to many kinds of systems. 1385 1386Usage: $0 [OPTION]... [VAR=VALUE]... 1387 1388To assign environment variables (e.g., CC, CFLAGS...), specify them as 1389VAR=VALUE. See below for descriptions of some of the useful variables. 1390 1391Defaults for the options are specified in brackets. 1392 1393Configuration: 1394 -h, --help display this help and exit 1395 --help=short display options specific to this package 1396 --help=recursive display the short help of all the included packages 1397 -V, --version display version information and exit 1398 -q, --quiet, --silent do not print \`checking ...' messages 1399 --cache-file=FILE cache test results in FILE [disabled] 1400 -C, --config-cache alias for \`--cache-file=config.cache' 1401 -n, --no-create do not create output files 1402 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1403 1404Installation directories: 1405 --prefix=PREFIX install architecture-independent files in PREFIX 1406 [$ac_default_prefix] 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1408 [PREFIX] 1409 1410By default, \`make install' will install all the files in 1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1412an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1413for instance \`--prefix=\$HOME'. 1414 1415For better control, use the options below. 1416 1417Fine tuning of the installation directories: 1418 --bindir=DIR user executables [EPREFIX/bin] 1419 --sbindir=DIR system admin executables [EPREFIX/sbin] 1420 --libexecdir=DIR program executables [EPREFIX/libexec] 1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1424 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1425 --libdir=DIR object code libraries [EPREFIX/lib] 1426 --includedir=DIR C header files [PREFIX/include] 1427 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1430 --infodir=DIR info documentation [DATAROOTDIR/info] 1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1432 --mandir=DIR man documentation [DATAROOTDIR/man] 1433 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-sis] 1434 --htmldir=DIR html documentation [DOCDIR] 1435 --dvidir=DIR dvi documentation [DOCDIR] 1436 --pdfdir=DIR pdf documentation [DOCDIR] 1437 --psdir=DIR ps documentation [DOCDIR] 1438_ACEOF 1439 1440 cat <<\_ACEOF 1441 1442Program names: 1443 --program-prefix=PREFIX prepend PREFIX to installed program names 1444 --program-suffix=SUFFIX append SUFFIX to installed program names 1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1446 1447System types: 1448 --build=BUILD configure for building on BUILD [guessed] 1449 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1450_ACEOF 1451fi 1452 1453if test -n "$ac_init_help"; then 1454 case $ac_init_help in 1455 short | recursive ) echo "Configuration of xf86-video-sis 0.12.0:";; 1456 esac 1457 cat <<\_ACEOF 1458 1459Optional Features: 1460 --disable-option-checking ignore unrecognized --enable/--with options 1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1463 --enable-silent-rules less verbose build output (undo: "make V=1") 1464 --disable-silent-rules verbose build output (undo: "make V=0") 1465 --enable-dependency-tracking 1466 do not reject slow dependency extractors 1467 --disable-dependency-tracking 1468 speeds up one-time build 1469 --disable-selective-werror 1470 Turn off selective compiler errors. (default: 1471 enabled) 1472 --enable-strict-compilation 1473 Enable all warnings from compiler and make them 1474 errors (default: disabled) 1475 --enable-static[=PKGS] build static libraries [default=no] 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-fast-install[=PKGS] 1478 optimize for fast installation [default=yes] 1479 --disable-libtool-lock avoid locking (might break parallel builds) 1480 --disable-dri Disable DRI support [[default=auto]] 1481 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1482 [default=auto] 1483 1484Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-aix-soname=aix|svr4|both 1490 shared library versioning (aka "SONAME") variant to 1491 provide on AIX, [default=aix]. 1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1494 compiler's sysroot if not specified). 1495 --with-xorg-module-dir=DIR 1496 Default xorg module directory 1497 [[default=$libdir/xorg/modules]] 1498 1499Some influential environment variables: 1500 CC C compiler command 1501 CFLAGS C compiler flags 1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1503 nonstandard directory <lib dir> 1504 LIBS libraries to pass to the linker, e.g. -l<library> 1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1506 you have headers in a nonstandard directory <include dir> 1507 CPP C preprocessor 1508 PKG_CONFIG path to pkg-config utility 1509 PKG_CONFIG_PATH 1510 directories to add to pkg-config's search path 1511 PKG_CONFIG_LIBDIR 1512 path overriding pkg-config's built-in search path 1513 LT_SYS_LIBRARY_PATH 1514 User-defined run-time library search path. 1515 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1516 XORG_LIBS linker flags for XORG, overriding pkg-config 1517 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1518 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1519 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1520 DRI_LIBS linker flags for DRI, overriding pkg-config 1521 PCIACCESS_CFLAGS 1522 C compiler flags for PCIACCESS, overriding pkg-config 1523 PCIACCESS_LIBS 1524 linker flags for PCIACCESS, overriding pkg-config 1525 1526Use these variables to override the choices made by `configure' or to help 1527it to find libraries and programs with nonstandard names/locations. 1528 1529Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues>. 1530_ACEOF 1531ac_status=$? 1532fi 1533 1534if test "$ac_init_help" = "recursive"; then 1535 # If there are subdirs, report their specific --help. 1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1537 test -d "$ac_dir" || 1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1539 continue 1540 ac_builddir=. 1541 1542case "$ac_dir" in 1543.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1544*) 1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1546 # A ".." for each directory in $ac_dir_suffix. 1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1548 case $ac_top_builddir_sub in 1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1551 esac ;; 1552esac 1553ac_abs_top_builddir=$ac_pwd 1554ac_abs_builddir=$ac_pwd$ac_dir_suffix 1555# for backward compatibility: 1556ac_top_builddir=$ac_top_build_prefix 1557 1558case $srcdir in 1559 .) # We are building in place. 1560 ac_srcdir=. 1561 ac_top_srcdir=$ac_top_builddir_sub 1562 ac_abs_top_srcdir=$ac_pwd ;; 1563 [\\/]* | ?:[\\/]* ) # Absolute name. 1564 ac_srcdir=$srcdir$ac_dir_suffix; 1565 ac_top_srcdir=$srcdir 1566 ac_abs_top_srcdir=$srcdir ;; 1567 *) # Relative name. 1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1569 ac_top_srcdir=$ac_top_build_prefix$srcdir 1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1571esac 1572ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1573 1574 cd "$ac_dir" || { ac_status=$?; continue; } 1575 # Check for guested configure. 1576 if test -f "$ac_srcdir/configure.gnu"; then 1577 echo && 1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1579 elif test -f "$ac_srcdir/configure"; then 1580 echo && 1581 $SHELL "$ac_srcdir/configure" --help=recursive 1582 else 1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1584 fi || ac_status=$? 1585 cd "$ac_pwd" || { ac_status=$?; break; } 1586 done 1587fi 1588 1589test -n "$ac_init_help" && exit $ac_status 1590if $ac_init_version; then 1591 cat <<\_ACEOF 1592xf86-video-sis configure 0.12.0 1593generated by GNU Autoconf 2.69 1594 1595Copyright (C) 2012 Free Software Foundation, Inc. 1596This configure script is free software; the Free Software Foundation 1597gives unlimited permission to copy, distribute and modify it. 1598_ACEOF 1599 exit 1600fi 1601 1602## ------------------------ ## 1603## Autoconf initialization. ## 1604## ------------------------ ## 1605 1606# ac_fn_c_try_compile LINENO 1607# -------------------------- 1608# Try to compile conftest.$ac_ext, and return whether this succeeded. 1609ac_fn_c_try_compile () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 rm -f conftest.$ac_objext 1613 if { { ac_try="$ac_compile" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_compile") 2>conftest.err 1621 ac_status=$? 1622 if test -s conftest.err; then 1623 grep -v '^ *+' conftest.err >conftest.er1 1624 cat conftest.er1 >&5 1625 mv -f conftest.er1 conftest.err 1626 fi 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } && { 1629 test -z "$ac_c_werror_flag" || 1630 test ! -s conftest.err 1631 } && test -s conftest.$ac_objext; then : 1632 ac_retval=0 1633else 1634 $as_echo "$as_me: failed program was:" >&5 1635sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 1638fi 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642} # ac_fn_c_try_compile 1643 1644# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1645# --------------------------------------------- 1646# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1647# accordingly. 1648ac_fn_c_check_decl () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 as_decl_name=`echo $2|sed 's/ *(.*//'` 1652 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1654$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1655if eval \${$3+:} false; then : 1656 $as_echo_n "(cached) " >&6 1657else 1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1659/* end confdefs.h. */ 1660$4 1661int 1662main () 1663{ 1664#ifndef $as_decl_name 1665#ifdef __cplusplus 1666 (void) $as_decl_use; 1667#else 1668 (void) $as_decl_name; 1669#endif 1670#endif 1671 1672 ; 1673 return 0; 1674} 1675_ACEOF 1676if ac_fn_c_try_compile "$LINENO"; then : 1677 eval "$3=yes" 1678else 1679 eval "$3=no" 1680fi 1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1682fi 1683eval ac_res=\$$3 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1685$as_echo "$ac_res" >&6; } 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 1688} # ac_fn_c_check_decl 1689 1690# ac_fn_c_try_cpp LINENO 1691# ---------------------- 1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1693ac_fn_c_try_cpp () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 if { { ac_try="$ac_cpp conftest.$ac_ext" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } > conftest.i && { 1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 }; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_cpp 1726 1727# ac_fn_c_try_run LINENO 1728# ---------------------- 1729# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1730# that executables *can* be run. 1731ac_fn_c_try_run () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 if { { ac_try="$ac_link" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_link") 2>&5 1742 ac_status=$? 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1745 { { case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_try") 2>&5 1752 ac_status=$? 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; }; }; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: program exited with status $ac_status" >&5 1758 $as_echo "$as_me: failed program was:" >&5 1759sed 's/^/| /' conftest.$ac_ext >&5 1760 1761 ac_retval=$ac_status 1762fi 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_run 1768 1769# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1770# ------------------------------------------------------- 1771# Tests whether HEADER exists and can be compiled using the include files in 1772# INCLUDES, setting the cache variable VAR accordingly. 1773ac_fn_c_check_header_compile () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1777$as_echo_n "checking for $2... " >&6; } 1778if eval \${$3+:} false; then : 1779 $as_echo_n "(cached) " >&6 1780else 1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782/* end confdefs.h. */ 1783$4 1784#include <$2> 1785_ACEOF 1786if ac_fn_c_try_compile "$LINENO"; then : 1787 eval "$3=yes" 1788else 1789 eval "$3=no" 1790fi 1791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_header_compile 1799 1800# ac_fn_c_try_link LINENO 1801# ----------------------- 1802# Try to link conftest.$ac_ext, and return whether this succeeded. 1803ac_fn_c_try_link () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 rm -f conftest.$ac_objext conftest$ac_exeext 1807 if { { ac_try="$ac_link" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_link") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { 1823 test -z "$ac_c_werror_flag" || 1824 test ! -s conftest.err 1825 } && test -s conftest$ac_exeext && { 1826 test "$cross_compiling" = yes || 1827 test -x conftest$ac_exeext 1828 }; then : 1829 ac_retval=0 1830else 1831 $as_echo "$as_me: failed program was:" >&5 1832sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=1 1835fi 1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1838 # interfere with the next link command; also delete a directory that is 1839 # left behind by Apple's compiler. We do this before executing the actions. 1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 as_fn_set_status $ac_retval 1843 1844} # ac_fn_c_try_link 1845 1846# ac_fn_c_check_func LINENO FUNC VAR 1847# ---------------------------------- 1848# Tests whether FUNC exists, setting the cache variable VAR accordingly 1849ac_fn_c_check_func () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853$as_echo_n "checking for $2... " >&6; } 1854if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856else 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858/* end confdefs.h. */ 1859/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1861#define $2 innocuous_$2 1862 1863/* System header to define __stub macros and hopefully few prototypes, 1864 which can conflict with char $2 (); below. 1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1866 <limits.h> exists even on freestanding compilers. */ 1867 1868#ifdef __STDC__ 1869# include <limits.h> 1870#else 1871# include <assert.h> 1872#endif 1873 1874#undef $2 1875 1876/* Override any GCC internal prototype to avoid an error. 1877 Use char because int might match the return type of a GCC 1878 builtin and then its argument prototype would still apply. */ 1879#ifdef __cplusplus 1880extern "C" 1881#endif 1882char $2 (); 1883/* The GNU C library defines this for functions which it implements 1884 to always fail with ENOSYS. Some functions are actually named 1885 something starting with __ and the normal name is an alias. */ 1886#if defined __stub_$2 || defined __stub___$2 1887choke me 1888#endif 1889 1890int 1891main () 1892{ 1893return $2 (); 1894 ; 1895 return 0; 1896} 1897_ACEOF 1898if ac_fn_c_try_link "$LINENO"; then : 1899 eval "$3=yes" 1900else 1901 eval "$3=no" 1902fi 1903rm -f core conftest.err conftest.$ac_objext \ 1904 conftest$ac_exeext conftest.$ac_ext 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 1911} # ac_fn_c_check_func 1912 1913# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1914# ------------------------------------------------------- 1915# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1916# the include files in INCLUDES and setting the cache variable VAR 1917# accordingly. 1918ac_fn_c_check_header_mongrel () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 if eval \${$3+:} false; then : 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1923$as_echo_n "checking for $2... " >&6; } 1924if eval \${$3+:} false; then : 1925 $as_echo_n "(cached) " >&6 1926fi 1927eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929$as_echo "$ac_res" >&6; } 1930else 1931 # Is the header compilable? 1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1933$as_echo_n "checking $2 usability... " >&6; } 1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935/* end confdefs.h. */ 1936$4 1937#include <$2> 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 ac_header_compiler=yes 1941else 1942 ac_header_compiler=no 1943fi 1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1946$as_echo "$ac_header_compiler" >&6; } 1947 1948# Is the header present? 1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1950$as_echo_n "checking $2 presence... " >&6; } 1951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953#include <$2> 1954_ACEOF 1955if ac_fn_c_try_cpp "$LINENO"; then : 1956 ac_header_preproc=yes 1957else 1958 ac_header_preproc=no 1959fi 1960rm -f conftest.err conftest.i conftest.$ac_ext 1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1962$as_echo "$ac_header_preproc" >&6; } 1963 1964# So? What about this header? 1965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1966 yes:no: ) 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1968$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1970$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1971 ;; 1972 no:yes:* ) 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1974$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1976$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1978$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1980$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1982$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1983( $as_echo "## ------------------------------------------------------------------------------- ## 1984## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues ## 1985## ------------------------------------------------------------------------------- ##" 1986 ) | sed "s/^/$as_me: WARNING: /" >&2 1987 ;; 1988esac 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1990$as_echo_n "checking for $2... " >&6; } 1991if eval \${$3+:} false; then : 1992 $as_echo_n "(cached) " >&6 1993else 1994 eval "$3=\$ac_header_compiler" 1995fi 1996eval ac_res=\$$3 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1998$as_echo "$ac_res" >&6; } 1999fi 2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2001 2002} # ac_fn_c_check_header_mongrel 2003cat >config.log <<_ACEOF 2004This file contains any messages produced by compilers while 2005running configure, to aid debugging if configure makes a mistake. 2006 2007It was created by xf86-video-sis $as_me 0.12.0, which was 2008generated by GNU Autoconf 2.69. Invocation command line was 2009 2010 $ $0 $@ 2011 2012_ACEOF 2013exec 5>>config.log 2014{ 2015cat <<_ASUNAME 2016## --------- ## 2017## Platform. ## 2018## --------- ## 2019 2020hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2021uname -m = `(uname -m) 2>/dev/null || echo unknown` 2022uname -r = `(uname -r) 2>/dev/null || echo unknown` 2023uname -s = `(uname -s) 2>/dev/null || echo unknown` 2024uname -v = `(uname -v) 2>/dev/null || echo unknown` 2025 2026/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2027/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2028 2029/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2030/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2031/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2032/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2033/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2034/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2035/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2036 2037_ASUNAME 2038 2039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2040for as_dir in $PATH 2041do 2042 IFS=$as_save_IFS 2043 test -z "$as_dir" && as_dir=. 2044 $as_echo "PATH: $as_dir" 2045 done 2046IFS=$as_save_IFS 2047 2048} >&5 2049 2050cat >&5 <<_ACEOF 2051 2052 2053## ----------- ## 2054## Core tests. ## 2055## ----------- ## 2056 2057_ACEOF 2058 2059 2060# Keep a trace of the command line. 2061# Strip out --no-create and --no-recursion so they do not pile up. 2062# Strip out --silent because we don't want to record it for future runs. 2063# Also quote any args containing shell meta-characters. 2064# Make two passes to allow for proper duplicate-argument suppression. 2065ac_configure_args= 2066ac_configure_args0= 2067ac_configure_args1= 2068ac_must_keep_next=false 2069for ac_pass in 1 2 2070do 2071 for ac_arg 2072 do 2073 case $ac_arg in 2074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2076 | -silent | --silent | --silen | --sile | --sil) 2077 continue ;; 2078 *\'*) 2079 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2080 esac 2081 case $ac_pass in 2082 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2083 2) 2084 as_fn_append ac_configure_args1 " '$ac_arg'" 2085 if test $ac_must_keep_next = true; then 2086 ac_must_keep_next=false # Got value, back to normal. 2087 else 2088 case $ac_arg in 2089 *=* | --config-cache | -C | -disable-* | --disable-* \ 2090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2092 | -with-* | --with-* | -without-* | --without-* | --x) 2093 case "$ac_configure_args0 " in 2094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2095 esac 2096 ;; 2097 -* ) ac_must_keep_next=true ;; 2098 esac 2099 fi 2100 as_fn_append ac_configure_args " '$ac_arg'" 2101 ;; 2102 esac 2103 done 2104done 2105{ ac_configure_args0=; unset ac_configure_args0;} 2106{ ac_configure_args1=; unset ac_configure_args1;} 2107 2108# When interrupted or exit'd, cleanup temporary files, and complete 2109# config.log. We remove comments because anyway the quotes in there 2110# would cause problems or look ugly. 2111# WARNING: Use '\'' to represent an apostrophe within the trap. 2112# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2113trap 'exit_status=$? 2114 # Save into config.log some information that might help in debugging. 2115 { 2116 echo 2117 2118 $as_echo "## ---------------- ## 2119## Cache variables. ## 2120## ---------------- ##" 2121 echo 2122 # The following way of writing the cache mishandles newlines in values, 2123( 2124 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2125 eval ac_val=\$$ac_var 2126 case $ac_val in #( 2127 *${as_nl}*) 2128 case $ac_var in #( 2129 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2130$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2131 esac 2132 case $ac_var in #( 2133 _ | IFS | as_nl) ;; #( 2134 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2135 *) { eval $ac_var=; unset $ac_var;} ;; 2136 esac ;; 2137 esac 2138 done 2139 (set) 2>&1 | 2140 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2141 *${as_nl}ac_space=\ *) 2142 sed -n \ 2143 "s/'\''/'\''\\\\'\'''\''/g; 2144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2145 ;; #( 2146 *) 2147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2148 ;; 2149 esac | 2150 sort 2151) 2152 echo 2153 2154 $as_echo "## ----------------- ## 2155## Output variables. ## 2156## ----------------- ##" 2157 echo 2158 for ac_var in $ac_subst_vars 2159 do 2160 eval ac_val=\$$ac_var 2161 case $ac_val in 2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2163 esac 2164 $as_echo "$ac_var='\''$ac_val'\''" 2165 done | sort 2166 echo 2167 2168 if test -n "$ac_subst_files"; then 2169 $as_echo "## ------------------- ## 2170## File substitutions. ## 2171## ------------------- ##" 2172 echo 2173 for ac_var in $ac_subst_files 2174 do 2175 eval ac_val=\$$ac_var 2176 case $ac_val in 2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2178 esac 2179 $as_echo "$ac_var='\''$ac_val'\''" 2180 done | sort 2181 echo 2182 fi 2183 2184 if test -s confdefs.h; then 2185 $as_echo "## ----------- ## 2186## confdefs.h. ## 2187## ----------- ##" 2188 echo 2189 cat confdefs.h 2190 echo 2191 fi 2192 test "$ac_signal" != 0 && 2193 $as_echo "$as_me: caught signal $ac_signal" 2194 $as_echo "$as_me: exit $exit_status" 2195 } >&5 2196 rm -f core *.core core.conftest.* && 2197 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2198 exit $exit_status 2199' 0 2200for ac_signal in 1 2 13 15; do 2201 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2202done 2203ac_signal=0 2204 2205# confdefs.h avoids OS command line length limits that DEFS can exceed. 2206rm -f -r conftest* confdefs.h 2207 2208$as_echo "/* confdefs.h */" > confdefs.h 2209 2210# Predefined preprocessor variables. 2211 2212cat >>confdefs.h <<_ACEOF 2213#define PACKAGE_NAME "$PACKAGE_NAME" 2214_ACEOF 2215 2216cat >>confdefs.h <<_ACEOF 2217#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2218_ACEOF 2219 2220cat >>confdefs.h <<_ACEOF 2221#define PACKAGE_VERSION "$PACKAGE_VERSION" 2222_ACEOF 2223 2224cat >>confdefs.h <<_ACEOF 2225#define PACKAGE_STRING "$PACKAGE_STRING" 2226_ACEOF 2227 2228cat >>confdefs.h <<_ACEOF 2229#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2230_ACEOF 2231 2232cat >>confdefs.h <<_ACEOF 2233#define PACKAGE_URL "$PACKAGE_URL" 2234_ACEOF 2235 2236 2237# Let the site file select an alternate cache file if it wants to. 2238# Prefer an explicitly selected file to automatically selected ones. 2239ac_site_file1=NONE 2240ac_site_file2=NONE 2241if test -n "$CONFIG_SITE"; then 2242 # We do not want a PATH search for config.site. 2243 case $CONFIG_SITE in #(( 2244 -*) ac_site_file1=./$CONFIG_SITE;; 2245 */*) ac_site_file1=$CONFIG_SITE;; 2246 *) ac_site_file1=./$CONFIG_SITE;; 2247 esac 2248elif test "x$prefix" != xNONE; then 2249 ac_site_file1=$prefix/share/config.site 2250 ac_site_file2=$prefix/etc/config.site 2251else 2252 ac_site_file1=$ac_default_prefix/share/config.site 2253 ac_site_file2=$ac_default_prefix/etc/config.site 2254fi 2255for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2256do 2257 test "x$ac_site_file" = xNONE && continue 2258 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2260$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2261 sed 's/^/| /' "$ac_site_file" >&5 2262 . "$ac_site_file" \ 2263 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2265as_fn_error $? "failed to load site script $ac_site_file 2266See \`config.log' for more details" "$LINENO" 5; } 2267 fi 2268done 2269 2270if test -r "$cache_file"; then 2271 # Some versions of bash will fail to source /dev/null (special files 2272 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2273 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2275$as_echo "$as_me: loading cache $cache_file" >&6;} 2276 case $cache_file in 2277 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2278 *) . "./$cache_file";; 2279 esac 2280 fi 2281else 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2283$as_echo "$as_me: creating cache $cache_file" >&6;} 2284 >$cache_file 2285fi 2286 2287# Check that the precious variables saved in the cache have kept the same 2288# value. 2289ac_cache_corrupted=false 2290for ac_var in $ac_precious_vars; do 2291 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2292 eval ac_new_set=\$ac_env_${ac_var}_set 2293 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2294 eval ac_new_val=\$ac_env_${ac_var}_value 2295 case $ac_old_set,$ac_new_set in 2296 set,) 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2298$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2299 ac_cache_corrupted=: ;; 2300 ,set) 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2302$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2303 ac_cache_corrupted=: ;; 2304 ,);; 2305 *) 2306 if test "x$ac_old_val" != "x$ac_new_val"; then 2307 # differences in whitespace do not lead to failure. 2308 ac_old_val_w=`echo x $ac_old_val` 2309 ac_new_val_w=`echo x $ac_new_val` 2310 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2312$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2313 ac_cache_corrupted=: 2314 else 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2316$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2317 eval $ac_var=\$ac_old_val 2318 fi 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2320$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2322$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2323 fi;; 2324 esac 2325 # Pass precious variables to config.status. 2326 if test "$ac_new_set" = set; then 2327 case $ac_new_val in 2328 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 *) ac_arg=$ac_var=$ac_new_val ;; 2330 esac 2331 case " $ac_configure_args " in 2332 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2333 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2334 esac 2335 fi 2336done 2337if $ac_cache_corrupted; then 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2341$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2342 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2343fi 2344## -------------------- ## 2345## Main body of script. ## 2346## -------------------- ## 2347 2348ac_ext=c 2349ac_cpp='$CPP $CPPFLAGS' 2350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2352ac_compiler_gnu=$ac_cv_c_compiler_gnu 2353 2354 2355 2356ac_config_headers="$ac_config_headers config.h" 2357 2358ac_aux_dir= 2359for ac_dir in . "$srcdir"/.; do 2360 if test -f "$ac_dir/install-sh"; then 2361 ac_aux_dir=$ac_dir 2362 ac_install_sh="$ac_aux_dir/install-sh -c" 2363 break 2364 elif test -f "$ac_dir/install.sh"; then 2365 ac_aux_dir=$ac_dir 2366 ac_install_sh="$ac_aux_dir/install.sh -c" 2367 break 2368 elif test -f "$ac_dir/shtool"; then 2369 ac_aux_dir=$ac_dir 2370 ac_install_sh="$ac_aux_dir/shtool install -c" 2371 break 2372 fi 2373done 2374if test -z "$ac_aux_dir"; then 2375 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2376fi 2377 2378# These three variables are undocumented and unsupported, 2379# and are intended to be withdrawn in a future Autoconf release. 2380# They can cause serious problems if a builder's source tree is in a directory 2381# whose full name contains unusual characters. 2382ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2383ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2384ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2385 2386 2387 2388# Initialize Automake 2389am__api_version='1.15' 2390 2391# Find a good install program. We prefer a C program (faster), 2392# so one script is as good as another. But avoid the broken or 2393# incompatible versions: 2394# SysV /etc/install, /usr/sbin/install 2395# SunOS /usr/etc/install 2396# IRIX /sbin/install 2397# AIX /bin/install 2398# AmigaOS /C/install, which installs bootblocks on floppy discs 2399# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2400# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2401# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2402# OS/2's system install, which has a completely different semantic 2403# ./install, which can be erroneously created by make from ./install.sh. 2404# Reject install programs that cannot install multiple files. 2405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2406$as_echo_n "checking for a BSD-compatible install... " >&6; } 2407if test -z "$INSTALL"; then 2408if ${ac_cv_path_install+:} false; then : 2409 $as_echo_n "(cached) " >&6 2410else 2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412for as_dir in $PATH 2413do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 # Account for people who put trailing slashes in PATH elements. 2417case $as_dir/ in #(( 2418 ./ | .// | /[cC]/* | \ 2419 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2420 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2421 /usr/ucb/* ) ;; 2422 *) 2423 # OSF1 and SCO ODT 3.0 have their own names for install. 2424 # Don't use installbsd from OSF since it installs stuff as root 2425 # by default. 2426 for ac_prog in ginstall scoinst install; do 2427 for ac_exec_ext in '' $ac_executable_extensions; do 2428 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2429 if test $ac_prog = install && 2430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2431 # AIX install. It has an incompatible calling convention. 2432 : 2433 elif test $ac_prog = install && 2434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2435 # program-specific install script used by HP pwplus--don't use. 2436 : 2437 else 2438 rm -rf conftest.one conftest.two conftest.dir 2439 echo one > conftest.one 2440 echo two > conftest.two 2441 mkdir conftest.dir 2442 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2443 test -s conftest.one && test -s conftest.two && 2444 test -s conftest.dir/conftest.one && 2445 test -s conftest.dir/conftest.two 2446 then 2447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2448 break 3 2449 fi 2450 fi 2451 fi 2452 done 2453 done 2454 ;; 2455esac 2456 2457 done 2458IFS=$as_save_IFS 2459 2460rm -rf conftest.one conftest.two conftest.dir 2461 2462fi 2463 if test "${ac_cv_path_install+set}" = set; then 2464 INSTALL=$ac_cv_path_install 2465 else 2466 # As a last resort, use the slow shell script. Don't cache a 2467 # value for INSTALL within a source directory, because that will 2468 # break other packages using the cache if that directory is 2469 # removed, or if the value is a relative name. 2470 INSTALL=$ac_install_sh 2471 fi 2472fi 2473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2474$as_echo "$INSTALL" >&6; } 2475 2476# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2477# It thinks the first close brace ends the variable substitution. 2478test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2479 2480test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2481 2482test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2483 2484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2485$as_echo_n "checking whether build environment is sane... " >&6; } 2486# Reject unsafe characters in $srcdir or the absolute working directory 2487# name. Accept space and tab only in the latter. 2488am_lf=' 2489' 2490case `pwd` in 2491 *[\\\"\#\$\&\'\`$am_lf]*) 2492 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2493esac 2494case $srcdir in 2495 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2496 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2497esac 2498 2499# Do 'set' in a subshell so we don't clobber the current shell's 2500# arguments. Must try -L first in case configure is actually a 2501# symlink; some systems play weird games with the mod time of symlinks 2502# (eg FreeBSD returns the mod time of the symlink's containing 2503# directory). 2504if ( 2505 am_has_slept=no 2506 for am_try in 1 2; do 2507 echo "timestamp, slept: $am_has_slept" > conftest.file 2508 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2509 if test "$*" = "X"; then 2510 # -L didn't work. 2511 set X `ls -t "$srcdir/configure" conftest.file` 2512 fi 2513 if test "$*" != "X $srcdir/configure conftest.file" \ 2514 && test "$*" != "X conftest.file $srcdir/configure"; then 2515 2516 # If neither matched, then we have a broken ls. This can happen 2517 # if, for instance, CONFIG_SHELL is bash and it inherits a 2518 # broken ls alias from the environment. This has actually 2519 # happened. Such a system could not be considered "sane". 2520 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2521 alias in your environment" "$LINENO" 5 2522 fi 2523 if test "$2" = conftest.file || test $am_try -eq 2; then 2524 break 2525 fi 2526 # Just in case. 2527 sleep 1 2528 am_has_slept=yes 2529 done 2530 test "$2" = conftest.file 2531 ) 2532then 2533 # Ok. 2534 : 2535else 2536 as_fn_error $? "newly created file is older than distributed files! 2537Check your system clock" "$LINENO" 5 2538fi 2539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2540$as_echo "yes" >&6; } 2541# If we didn't sleep, we still need to ensure time stamps of config.status and 2542# generated files are strictly newer. 2543am_sleep_pid= 2544if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2545 ( sleep 1 ) & 2546 am_sleep_pid=$! 2547fi 2548 2549rm -f conftest.file 2550 2551test "$program_prefix" != NONE && 2552 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2553# Use a double $ so make ignores it. 2554test "$program_suffix" != NONE && 2555 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2556# Double any \ or $. 2557# By default was `s,x,x', remove it if useless. 2558ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2559program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2560 2561# Expand $ac_aux_dir to an absolute path. 2562am_aux_dir=`cd "$ac_aux_dir" && pwd` 2563 2564if test x"${MISSING+set}" != xset; then 2565 case $am_aux_dir in 2566 *\ * | *\ *) 2567 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2568 *) 2569 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2570 esac 2571fi 2572# Use eval to expand $SHELL 2573if eval "$MISSING --is-lightweight"; then 2574 am_missing_run="$MISSING " 2575else 2576 am_missing_run= 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2578$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2579fi 2580 2581if test x"${install_sh+set}" != xset; then 2582 case $am_aux_dir in 2583 *\ * | *\ *) 2584 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2585 *) 2586 install_sh="\${SHELL} $am_aux_dir/install-sh" 2587 esac 2588fi 2589 2590# Installed binaries are usually stripped using 'strip' when the user 2591# run "make install-strip". However 'strip' might not be the right 2592# tool to use in cross-compilation environments, therefore Automake 2593# will honor the 'STRIP' environment variable to overrule this program. 2594if test "$cross_compiling" != no; then 2595 if test -n "$ac_tool_prefix"; then 2596 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2597set dummy ${ac_tool_prefix}strip; ac_word=$2 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599$as_echo_n "checking for $ac_word... " >&6; } 2600if ${ac_cv_prog_STRIP+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test -n "$STRIP"; then 2604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2605else 2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607for as_dir in $PATH 2608do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2613 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi 2622fi 2623STRIP=$ac_cv_prog_STRIP 2624if test -n "$STRIP"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2626$as_echo "$STRIP" >&6; } 2627else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629$as_echo "no" >&6; } 2630fi 2631 2632 2633fi 2634if test -z "$ac_cv_prog_STRIP"; then 2635 ac_ct_STRIP=$STRIP 2636 # Extract the first word of "strip", so it can be a program name with args. 2637set dummy strip; ac_word=$2 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$ac_ct_STRIP"; then 2644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_ac_ct_STRIP="strip" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658 done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2664if test -n "$ac_ct_STRIP"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2666$as_echo "$ac_ct_STRIP" >&6; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 if test "x$ac_ct_STRIP" = x; then 2673 STRIP=":" 2674 else 2675 case $cross_compiling:$ac_tool_warned in 2676yes:) 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2679ac_tool_warned=yes ;; 2680esac 2681 STRIP=$ac_ct_STRIP 2682 fi 2683else 2684 STRIP="$ac_cv_prog_STRIP" 2685fi 2686 2687fi 2688INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2689 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2691$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2692if test -z "$MKDIR_P"; then 2693 if ${ac_cv_path_mkdir+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_prog in mkdir gmkdir; do 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2704 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2705 'mkdir (GNU coreutils) '* | \ 2706 'mkdir (coreutils) '* | \ 2707 'mkdir (fileutils) '4.1*) 2708 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2709 break 3;; 2710 esac 2711 done 2712 done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717 2718 test -d ./--version && rmdir ./--version 2719 if test "${ac_cv_path_mkdir+set}" = set; then 2720 MKDIR_P="$ac_cv_path_mkdir -p" 2721 else 2722 # As a last resort, use the slow shell script. Don't cache a 2723 # value for MKDIR_P within a source directory, because that will 2724 # break other packages using the cache if that directory is 2725 # removed, or if the value is a relative name. 2726 MKDIR_P="$ac_install_sh -d" 2727 fi 2728fi 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2730$as_echo "$MKDIR_P" >&6; } 2731 2732for ac_prog in gawk mawk nawk awk 2733do 2734 # Extract the first word of "$ac_prog", so it can be a program name with args. 2735set dummy $ac_prog; ac_word=$2 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2737$as_echo_n "checking for $ac_word... " >&6; } 2738if ${ac_cv_prog_AWK+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740else 2741 if test -n "$AWK"; then 2742 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2743else 2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2745for as_dir in $PATH 2746do 2747 IFS=$as_save_IFS 2748 test -z "$as_dir" && as_dir=. 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2751 ac_cv_prog_AWK="$ac_prog" 2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755done 2756 done 2757IFS=$as_save_IFS 2758 2759fi 2760fi 2761AWK=$ac_cv_prog_AWK 2762if test -n "$AWK"; then 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2764$as_echo "$AWK" >&6; } 2765else 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767$as_echo "no" >&6; } 2768fi 2769 2770 2771 test -n "$AWK" && break 2772done 2773 2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2775$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2776set x ${MAKE-make} 2777ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2778if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780else 2781 cat >conftest.make <<\_ACEOF 2782SHELL = /bin/sh 2783all: 2784 @echo '@@@%%%=$(MAKE)=@@@%%%' 2785_ACEOF 2786# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2787case `${MAKE-make} -f conftest.make 2>/dev/null` in 2788 *@@@%%%=?*=@@@%%%*) 2789 eval ac_cv_prog_make_${ac_make}_set=yes;; 2790 *) 2791 eval ac_cv_prog_make_${ac_make}_set=no;; 2792esac 2793rm -f conftest.make 2794fi 2795if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2797$as_echo "yes" >&6; } 2798 SET_MAKE= 2799else 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2801$as_echo "no" >&6; } 2802 SET_MAKE="MAKE=${MAKE-make}" 2803fi 2804 2805rm -rf .tst 2>/dev/null 2806mkdir .tst 2>/dev/null 2807if test -d .tst; then 2808 am__leading_dot=. 2809else 2810 am__leading_dot=_ 2811fi 2812rmdir .tst 2>/dev/null 2813 2814# Check whether --enable-silent-rules was given. 2815if test "${enable_silent_rules+set}" = set; then : 2816 enableval=$enable_silent_rules; 2817fi 2818 2819case $enable_silent_rules in # ((( 2820 yes) AM_DEFAULT_VERBOSITY=0;; 2821 no) AM_DEFAULT_VERBOSITY=1;; 2822 *) AM_DEFAULT_VERBOSITY=1;; 2823esac 2824am_make=${MAKE-make} 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2826$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2827if ${am_cv_make_support_nested_variables+:} false; then : 2828 $as_echo_n "(cached) " >&6 2829else 2830 if $as_echo 'TRUE=$(BAR$(V)) 2831BAR0=false 2832BAR1=true 2833V=1 2834am__doit: 2835 @$(TRUE) 2836.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2837 am_cv_make_support_nested_variables=yes 2838else 2839 am_cv_make_support_nested_variables=no 2840fi 2841fi 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2843$as_echo "$am_cv_make_support_nested_variables" >&6; } 2844if test $am_cv_make_support_nested_variables = yes; then 2845 AM_V='$(V)' 2846 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2847else 2848 AM_V=$AM_DEFAULT_VERBOSITY 2849 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2850fi 2851AM_BACKSLASH='\' 2852 2853if test "`cd $srcdir && pwd`" != "`pwd`"; then 2854 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2855 # is not polluted with repeated "-I." 2856 am__isrc=' -I$(srcdir)' 2857 # test to see if srcdir already configured 2858 if test -f $srcdir/config.status; then 2859 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2860 fi 2861fi 2862 2863# test whether we have cygpath 2864if test -z "$CYGPATH_W"; then 2865 if (cygpath --version) >/dev/null 2>/dev/null; then 2866 CYGPATH_W='cygpath -w' 2867 else 2868 CYGPATH_W=echo 2869 fi 2870fi 2871 2872 2873# Define the identity of the package. 2874 PACKAGE='xf86-video-sis' 2875 VERSION='0.12.0' 2876 2877 2878cat >>confdefs.h <<_ACEOF 2879#define PACKAGE "$PACKAGE" 2880_ACEOF 2881 2882 2883cat >>confdefs.h <<_ACEOF 2884#define VERSION "$VERSION" 2885_ACEOF 2886 2887# Some tools Automake needs. 2888 2889ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2890 2891 2892AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2893 2894 2895AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2896 2897 2898AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2899 2900 2901MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2902 2903# For better backward compatibility. To be removed once Automake 1.9.x 2904# dies out for good. For more background, see: 2905# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2906# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2907mkdir_p='$(MKDIR_P)' 2908 2909# We need awk for the "check" target (and possibly the TAP driver). The 2910# system "awk" is bad on some platforms. 2911# Always define AMTAR for backward compatibility. Yes, it's still used 2912# in the wild :-( We should find a proper way to deprecate it ... 2913AMTAR='$${TAR-tar}' 2914 2915 2916# We'll loop over all known methods to create a tar archive until one works. 2917_am_tools='gnutar pax cpio none' 2918 2919am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2920 2921 2922 2923 2924 2925 2926# POSIX will say in a future version that running "rm -f" with no argument 2927# is OK; and we want to be able to make that assumption in our Makefile 2928# recipes. So use an aggressive probe to check that the usage we want is 2929# actually supported "in the wild" to an acceptable degree. 2930# See automake bug#10828. 2931# To make any issue more visible, cause the running configure to be aborted 2932# by default if the 'rm' program in use doesn't match our expectations; the 2933# user can still override this though. 2934if rm -f && rm -fr && rm -rf; then : OK; else 2935 cat >&2 <<'END' 2936Oops! 2937 2938Your 'rm' program seems unable to run without file operands specified 2939on the command line, even when the '-f' option is present. This is contrary 2940to the behaviour of most rm programs out there, and not conforming with 2941the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2942 2943Please tell bug-automake@gnu.org about your system, including the value 2944of your $PATH and any error possibly output before this message. This 2945can help us improve future automake versions. 2946 2947END 2948 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2949 echo 'Configuration will proceed anyway, since you have set the' >&2 2950 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2951 echo >&2 2952 else 2953 cat >&2 <<'END' 2954Aborting the configuration process, to ensure you take notice of the issue. 2955 2956You can download and install GNU coreutils to get an 'rm' implementation 2957that behaves properly: <http://www.gnu.org/software/coreutils/>. 2958 2959If you want to complete the configuration process using your problematic 2960'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2961to "yes", and re-run configure. 2962 2963END 2964 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2965 fi 2966fi 2967 2968 2969# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981DEPDIR="${am__leading_dot}deps" 2982 2983ac_config_commands="$ac_config_commands depfiles" 2984 2985 2986am_make=${MAKE-make} 2987cat > confinc << 'END' 2988am__doit: 2989 @echo this is the am__doit target 2990.PHONY: am__doit 2991END 2992# If we don't find an include directive, just comment out the code. 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2994$as_echo_n "checking for style of include used by $am_make... " >&6; } 2995am__include="#" 2996am__quote= 2997_am_result=none 2998# First try GNU make style include. 2999echo "include confinc" > confmf 3000# Ignore all kinds of additional output from 'make'. 3001case `$am_make -s -f confmf 2> /dev/null` in #( 3002*the\ am__doit\ target*) 3003 am__include=include 3004 am__quote= 3005 _am_result=GNU 3006 ;; 3007esac 3008# Now try BSD make style include. 3009if test "$am__include" = "#"; then 3010 echo '.include "confinc"' > confmf 3011 case `$am_make -s -f confmf 2> /dev/null` in #( 3012 *the\ am__doit\ target*) 3013 am__include=.include 3014 am__quote="\"" 3015 _am_result=BSD 3016 ;; 3017 esac 3018fi 3019 3020 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3022$as_echo "$_am_result" >&6; } 3023rm -f confinc confmf 3024 3025# Check whether --enable-dependency-tracking was given. 3026if test "${enable_dependency_tracking+set}" = set; then : 3027 enableval=$enable_dependency_tracking; 3028fi 3029 3030if test "x$enable_dependency_tracking" != xno; then 3031 am_depcomp="$ac_aux_dir/depcomp" 3032 AMDEPBACKSLASH='\' 3033 am__nodep='_no' 3034fi 3035 if test "x$enable_dependency_tracking" != xno; then 3036 AMDEP_TRUE= 3037 AMDEP_FALSE='#' 3038else 3039 AMDEP_TRUE='#' 3040 AMDEP_FALSE= 3041fi 3042 3043 3044ac_ext=c 3045ac_cpp='$CPP $CPPFLAGS' 3046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3048ac_compiler_gnu=$ac_cv_c_compiler_gnu 3049if test -n "$ac_tool_prefix"; then 3050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3051set dummy ${ac_tool_prefix}gcc; ac_word=$2 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3053$as_echo_n "checking for $ac_word... " >&6; } 3054if ${ac_cv_prog_CC+:} false; then : 3055 $as_echo_n "(cached) " >&6 3056else 3057 if test -n "$CC"; then 3058 ac_cv_prog_CC="$CC" # Let the user override the test. 3059else 3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061for as_dir in $PATH 3062do 3063 IFS=$as_save_IFS 3064 test -z "$as_dir" && as_dir=. 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3067 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3069 break 2 3070 fi 3071done 3072 done 3073IFS=$as_save_IFS 3074 3075fi 3076fi 3077CC=$ac_cv_prog_CC 3078if test -n "$CC"; then 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3080$as_echo "$CC" >&6; } 3081else 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3083$as_echo "no" >&6; } 3084fi 3085 3086 3087fi 3088if test -z "$ac_cv_prog_CC"; then 3089 ac_ct_CC=$CC 3090 # Extract the first word of "gcc", so it can be a program name with args. 3091set dummy gcc; ac_word=$2 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3093$as_echo_n "checking for $ac_word... " >&6; } 3094if ${ac_cv_prog_ac_ct_CC+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 if test -n "$ac_ct_CC"; then 3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3099else 3100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101for as_dir in $PATH 3102do 3103 IFS=$as_save_IFS 3104 test -z "$as_dir" && as_dir=. 3105 for ac_exec_ext in '' $ac_executable_extensions; do 3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3107 ac_cv_prog_ac_ct_CC="gcc" 3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111done 3112 done 3113IFS=$as_save_IFS 3114 3115fi 3116fi 3117ac_ct_CC=$ac_cv_prog_ac_ct_CC 3118if test -n "$ac_ct_CC"; then 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3120$as_echo "$ac_ct_CC" >&6; } 3121else 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3123$as_echo "no" >&6; } 3124fi 3125 3126 if test "x$ac_ct_CC" = x; then 3127 CC="" 3128 else 3129 case $cross_compiling:$ac_tool_warned in 3130yes:) 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3133ac_tool_warned=yes ;; 3134esac 3135 CC=$ac_ct_CC 3136 fi 3137else 3138 CC="$ac_cv_prog_CC" 3139fi 3140 3141if test -z "$CC"; then 3142 if test -n "$ac_tool_prefix"; then 3143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3144set dummy ${ac_tool_prefix}cc; ac_word=$2 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3146$as_echo_n "checking for $ac_word... " >&6; } 3147if ${ac_cv_prog_CC+:} false; then : 3148 $as_echo_n "(cached) " >&6 3149else 3150 if test -n "$CC"; then 3151 ac_cv_prog_CC="$CC" # Let the user override the test. 3152else 3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154for as_dir in $PATH 3155do 3156 IFS=$as_save_IFS 3157 test -z "$as_dir" && as_dir=. 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3160 ac_cv_prog_CC="${ac_tool_prefix}cc" 3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3162 break 2 3163 fi 3164done 3165 done 3166IFS=$as_save_IFS 3167 3168fi 3169fi 3170CC=$ac_cv_prog_CC 3171if test -n "$CC"; then 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3173$as_echo "$CC" >&6; } 3174else 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176$as_echo "no" >&6; } 3177fi 3178 3179 3180 fi 3181fi 3182if test -z "$CC"; then 3183 # Extract the first word of "cc", so it can be a program name with args. 3184set dummy cc; ac_word=$2 3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3186$as_echo_n "checking for $ac_word... " >&6; } 3187if ${ac_cv_prog_CC+:} false; then : 3188 $as_echo_n "(cached) " >&6 3189else 3190 if test -n "$CC"; then 3191 ac_cv_prog_CC="$CC" # Let the user override the test. 3192else 3193 ac_prog_rejected=no 3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195for as_dir in $PATH 3196do 3197 IFS=$as_save_IFS 3198 test -z "$as_dir" && as_dir=. 3199 for ac_exec_ext in '' $ac_executable_extensions; do 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3202 ac_prog_rejected=yes 3203 continue 3204 fi 3205 ac_cv_prog_CC="cc" 3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3207 break 2 3208 fi 3209done 3210 done 3211IFS=$as_save_IFS 3212 3213if test $ac_prog_rejected = yes; then 3214 # We found a bogon in the path, so make sure we never use it. 3215 set dummy $ac_cv_prog_CC 3216 shift 3217 if test $# != 0; then 3218 # We chose a different compiler from the bogus one. 3219 # However, it has the same basename, so the bogon will be chosen 3220 # first if we set CC to just the basename; use the full file name. 3221 shift 3222 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3223 fi 3224fi 3225fi 3226fi 3227CC=$ac_cv_prog_CC 3228if test -n "$CC"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3230$as_echo "$CC" >&6; } 3231else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233$as_echo "no" >&6; } 3234fi 3235 3236 3237fi 3238if test -z "$CC"; then 3239 if test -n "$ac_tool_prefix"; then 3240 for ac_prog in cl.exe 3241 do 3242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3243set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3245$as_echo_n "checking for $ac_word... " >&6; } 3246if ${ac_cv_prog_CC+:} false; then : 3247 $as_echo_n "(cached) " >&6 3248else 3249 if test -n "$CC"; then 3250 ac_cv_prog_CC="$CC" # Let the user override the test. 3251else 3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253for as_dir in $PATH 3254do 3255 IFS=$as_save_IFS 3256 test -z "$as_dir" && as_dir=. 3257 for ac_exec_ext in '' $ac_executable_extensions; do 3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3259 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3261 break 2 3262 fi 3263done 3264 done 3265IFS=$as_save_IFS 3266 3267fi 3268fi 3269CC=$ac_cv_prog_CC 3270if test -n "$CC"; then 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3272$as_echo "$CC" >&6; } 3273else 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3275$as_echo "no" >&6; } 3276fi 3277 3278 3279 test -n "$CC" && break 3280 done 3281fi 3282if test -z "$CC"; then 3283 ac_ct_CC=$CC 3284 for ac_prog in cl.exe 3285do 3286 # Extract the first word of "$ac_prog", so it can be a program name with args. 3287set dummy $ac_prog; ac_word=$2 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289$as_echo_n "checking for $ac_word... " >&6; } 3290if ${ac_cv_prog_ac_ct_CC+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292else 3293 if test -n "$ac_ct_CC"; then 3294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3295else 3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297for as_dir in $PATH 3298do 3299 IFS=$as_save_IFS 3300 test -z "$as_dir" && as_dir=. 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3303 ac_cv_prog_ac_ct_CC="$ac_prog" 3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3305 break 2 3306 fi 3307done 3308 done 3309IFS=$as_save_IFS 3310 3311fi 3312fi 3313ac_ct_CC=$ac_cv_prog_ac_ct_CC 3314if test -n "$ac_ct_CC"; then 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3316$as_echo "$ac_ct_CC" >&6; } 3317else 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319$as_echo "no" >&6; } 3320fi 3321 3322 3323 test -n "$ac_ct_CC" && break 3324done 3325 3326 if test "x$ac_ct_CC" = x; then 3327 CC="" 3328 else 3329 case $cross_compiling:$ac_tool_warned in 3330yes:) 3331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3333ac_tool_warned=yes ;; 3334esac 3335 CC=$ac_ct_CC 3336 fi 3337fi 3338 3339fi 3340 3341 3342test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3344as_fn_error $? "no acceptable C compiler found in \$PATH 3345See \`config.log' for more details" "$LINENO" 5; } 3346 3347# Provide some information about the compiler. 3348$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3349set X $ac_compile 3350ac_compiler=$2 3351for ac_option in --version -v -V -qversion; do 3352 { { ac_try="$ac_compiler $ac_option >&5" 3353case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356esac 3357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3358$as_echo "$ac_try_echo"; } >&5 3359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3360 ac_status=$? 3361 if test -s conftest.err; then 3362 sed '10a\ 3363... rest of stderr output deleted ... 3364 10q' conftest.err >conftest.er1 3365 cat conftest.er1 >&5 3366 fi 3367 rm -f conftest.er1 conftest.err 3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3369 test $ac_status = 0; } 3370done 3371 3372cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373/* end confdefs.h. */ 3374 3375int 3376main () 3377{ 3378 3379 ; 3380 return 0; 3381} 3382_ACEOF 3383ac_clean_files_save=$ac_clean_files 3384ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3385# Try to create an executable without -o first, disregard a.out. 3386# It will help us diagnose broken compilers, and finding out an intuition 3387# of exeext. 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3389$as_echo_n "checking whether the C compiler works... " >&6; } 3390ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3391 3392# The possible output files: 3393ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3394 3395ac_rmfiles= 3396for ac_file in $ac_files 3397do 3398 case $ac_file in 3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3400 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3401 esac 3402done 3403rm -f $ac_rmfiles 3404 3405if { { ac_try="$ac_link_default" 3406case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409esac 3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411$as_echo "$ac_try_echo"; } >&5 3412 (eval "$ac_link_default") 2>&5 3413 ac_status=$? 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3415 test $ac_status = 0; }; then : 3416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3417# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3418# in a Makefile. We should not override ac_cv_exeext if it was cached, 3419# so that the user can short-circuit this test for compilers unknown to 3420# Autoconf. 3421for ac_file in $ac_files '' 3422do 3423 test -f "$ac_file" || continue 3424 case $ac_file in 3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3426 ;; 3427 [ab].out ) 3428 # We found the default executable, but exeext='' is most 3429 # certainly right. 3430 break;; 3431 *.* ) 3432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3433 then :; else 3434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3435 fi 3436 # We set ac_cv_exeext here because the later test for it is not 3437 # safe: cross compilers may not add the suffix if given an `-o' 3438 # argument, so we may need to know it at that point already. 3439 # Even if this section looks crufty: it has the advantage of 3440 # actually working. 3441 break;; 3442 * ) 3443 break;; 3444 esac 3445done 3446test "$ac_cv_exeext" = no && ac_cv_exeext= 3447 3448else 3449 ac_file='' 3450fi 3451if test -z "$ac_file"; then : 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453$as_echo "no" >&6; } 3454$as_echo "$as_me: failed program was:" >&5 3455sed 's/^/| /' conftest.$ac_ext >&5 3456 3457{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3459as_fn_error 77 "C compiler cannot create executables 3460See \`config.log' for more details" "$LINENO" 5; } 3461else 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3463$as_echo "yes" >&6; } 3464fi 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3466$as_echo_n "checking for C compiler default output file name... " >&6; } 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3468$as_echo "$ac_file" >&6; } 3469ac_exeext=$ac_cv_exeext 3470 3471rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3472ac_clean_files=$ac_clean_files_save 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3474$as_echo_n "checking for suffix of executables... " >&6; } 3475if { { ac_try="$ac_link" 3476case "(($ac_try" in 3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3478 *) ac_try_echo=$ac_try;; 3479esac 3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3481$as_echo "$ac_try_echo"; } >&5 3482 (eval "$ac_link") 2>&5 3483 ac_status=$? 3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3485 test $ac_status = 0; }; then : 3486 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3487# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3488# work properly (i.e., refer to `conftest.exe'), while it won't with 3489# `rm'. 3490for ac_file in conftest.exe conftest conftest.*; do 3491 test -f "$ac_file" || continue 3492 case $ac_file in 3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3495 break;; 3496 * ) break;; 3497 esac 3498done 3499else 3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3502as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3503See \`config.log' for more details" "$LINENO" 5; } 3504fi 3505rm -f conftest conftest$ac_cv_exeext 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3507$as_echo "$ac_cv_exeext" >&6; } 3508 3509rm -f conftest.$ac_ext 3510EXEEXT=$ac_cv_exeext 3511ac_exeext=$EXEEXT 3512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513/* end confdefs.h. */ 3514#include <stdio.h> 3515int 3516main () 3517{ 3518FILE *f = fopen ("conftest.out", "w"); 3519 return ferror (f) || fclose (f) != 0; 3520 3521 ; 3522 return 0; 3523} 3524_ACEOF 3525ac_clean_files="$ac_clean_files conftest.out" 3526# Check that the compiler produces executables we can run. If not, either 3527# the compiler is broken, or we cross compile. 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3529$as_echo_n "checking whether we are cross compiling... " >&6; } 3530if test "$cross_compiling" != yes; then 3531 { { ac_try="$ac_link" 3532case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535esac 3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3537$as_echo "$ac_try_echo"; } >&5 3538 (eval "$ac_link") 2>&5 3539 ac_status=$? 3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3541 test $ac_status = 0; } 3542 if { ac_try='./conftest$ac_cv_exeext' 3543 { { case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546esac 3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548$as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_try") 2>&5 3550 ac_status=$? 3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3552 test $ac_status = 0; }; }; then 3553 cross_compiling=no 3554 else 3555 if test "$cross_compiling" = maybe; then 3556 cross_compiling=yes 3557 else 3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3560as_fn_error $? "cannot run C compiled programs. 3561If you meant to cross compile, use \`--host'. 3562See \`config.log' for more details" "$LINENO" 5; } 3563 fi 3564 fi 3565fi 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3567$as_echo "$cross_compiling" >&6; } 3568 3569rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3570ac_clean_files=$ac_clean_files_save 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3572$as_echo_n "checking for suffix of object files... " >&6; } 3573if ${ac_cv_objext+:} false; then : 3574 $as_echo_n "(cached) " >&6 3575else 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578 3579int 3580main () 3581{ 3582 3583 ; 3584 return 0; 3585} 3586_ACEOF 3587rm -f conftest.o conftest.obj 3588if { { ac_try="$ac_compile" 3589case "(($ac_try" in 3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3591 *) ac_try_echo=$ac_try;; 3592esac 3593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3594$as_echo "$ac_try_echo"; } >&5 3595 (eval "$ac_compile") 2>&5 3596 ac_status=$? 3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3598 test $ac_status = 0; }; then : 3599 for ac_file in conftest.o conftest.obj conftest.*; do 3600 test -f "$ac_file" || continue; 3601 case $ac_file in 3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3604 break;; 3605 esac 3606done 3607else 3608 $as_echo "$as_me: failed program was:" >&5 3609sed 's/^/| /' conftest.$ac_ext >&5 3610 3611{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3613as_fn_error $? "cannot compute suffix of object files: cannot compile 3614See \`config.log' for more details" "$LINENO" 5; } 3615fi 3616rm -f conftest.$ac_cv_objext conftest.$ac_ext 3617fi 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3619$as_echo "$ac_cv_objext" >&6; } 3620OBJEXT=$ac_cv_objext 3621ac_objext=$OBJEXT 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3623$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3624if ${ac_cv_c_compiler_gnu+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3628/* end confdefs.h. */ 3629 3630int 3631main () 3632{ 3633#ifndef __GNUC__ 3634 choke me 3635#endif 3636 3637 ; 3638 return 0; 3639} 3640_ACEOF 3641if ac_fn_c_try_compile "$LINENO"; then : 3642 ac_compiler_gnu=yes 3643else 3644 ac_compiler_gnu=no 3645fi 3646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3647ac_cv_c_compiler_gnu=$ac_compiler_gnu 3648 3649fi 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3651$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3652if test $ac_compiler_gnu = yes; then 3653 GCC=yes 3654else 3655 GCC= 3656fi 3657ac_test_CFLAGS=${CFLAGS+set} 3658ac_save_CFLAGS=$CFLAGS 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3660$as_echo_n "checking whether $CC accepts -g... " >&6; } 3661if ${ac_cv_prog_cc_g+:} false; then : 3662 $as_echo_n "(cached) " >&6 3663else 3664 ac_save_c_werror_flag=$ac_c_werror_flag 3665 ac_c_werror_flag=yes 3666 ac_cv_prog_cc_g=no 3667 CFLAGS="-g" 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669/* end confdefs.h. */ 3670 3671int 3672main () 3673{ 3674 3675 ; 3676 return 0; 3677} 3678_ACEOF 3679if ac_fn_c_try_compile "$LINENO"; then : 3680 ac_cv_prog_cc_g=yes 3681else 3682 CFLAGS="" 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686int 3687main () 3688{ 3689 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694if ac_fn_c_try_compile "$LINENO"; then : 3695 3696else 3697 ac_c_werror_flag=$ac_save_c_werror_flag 3698 CFLAGS="-g" 3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3700/* end confdefs.h. */ 3701 3702int 3703main () 3704{ 3705 3706 ; 3707 return 0; 3708} 3709_ACEOF 3710if ac_fn_c_try_compile "$LINENO"; then : 3711 ac_cv_prog_cc_g=yes 3712fi 3713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3714fi 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716fi 3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718 ac_c_werror_flag=$ac_save_c_werror_flag 3719fi 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3721$as_echo "$ac_cv_prog_cc_g" >&6; } 3722if test "$ac_test_CFLAGS" = set; then 3723 CFLAGS=$ac_save_CFLAGS 3724elif test $ac_cv_prog_cc_g = yes; then 3725 if test "$GCC" = yes; then 3726 CFLAGS="-g -O2" 3727 else 3728 CFLAGS="-g" 3729 fi 3730else 3731 if test "$GCC" = yes; then 3732 CFLAGS="-O2" 3733 else 3734 CFLAGS= 3735 fi 3736fi 3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3738$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3739if ${ac_cv_prog_cc_c89+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741else 3742 ac_cv_prog_cc_c89=no 3743ac_save_CC=$CC 3744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745/* end confdefs.h. */ 3746#include <stdarg.h> 3747#include <stdio.h> 3748struct stat; 3749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3750struct buf { int x; }; 3751FILE * (*rcsopen) (struct buf *, struct stat *, int); 3752static char *e (p, i) 3753 char **p; 3754 int i; 3755{ 3756 return p[i]; 3757} 3758static char *f (char * (*g) (char **, int), char **p, ...) 3759{ 3760 char *s; 3761 va_list v; 3762 va_start (v,p); 3763 s = g (p, va_arg (v,int)); 3764 va_end (v); 3765 return s; 3766} 3767 3768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3769 function prototypes and stuff, but not '\xHH' hex character constants. 3770 These don't provoke an error unfortunately, instead are silently treated 3771 as 'x'. The following induces an error, until -std is added to get 3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3773 array size at least. It's necessary to write '\x00'==0 to get something 3774 that's true only with -std. */ 3775int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3776 3777/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3778 inside strings and character constants. */ 3779#define FOO(x) 'x' 3780int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3781 3782int test (int i, double x); 3783struct s1 {int (*f) (int a);}; 3784struct s2 {int (*f) (double a);}; 3785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3786int argc; 3787char **argv; 3788int 3789main () 3790{ 3791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3798do 3799 CC="$ac_save_CC $ac_arg" 3800 if ac_fn_c_try_compile "$LINENO"; then : 3801 ac_cv_prog_cc_c89=$ac_arg 3802fi 3803rm -f core conftest.err conftest.$ac_objext 3804 test "x$ac_cv_prog_cc_c89" != "xno" && break 3805done 3806rm -f conftest.$ac_ext 3807CC=$ac_save_CC 3808 3809fi 3810# AC_CACHE_VAL 3811case "x$ac_cv_prog_cc_c89" in 3812 x) 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3814$as_echo "none needed" >&6; } ;; 3815 xno) 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3817$as_echo "unsupported" >&6; } ;; 3818 *) 3819 CC="$CC $ac_cv_prog_cc_c89" 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3821$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3822esac 3823if test "x$ac_cv_prog_cc_c89" != xno; then : 3824 3825fi 3826 3827ac_ext=c 3828ac_cpp='$CPP $CPPFLAGS' 3829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3831ac_compiler_gnu=$ac_cv_c_compiler_gnu 3832 3833ac_ext=c 3834ac_cpp='$CPP $CPPFLAGS' 3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3837ac_compiler_gnu=$ac_cv_c_compiler_gnu 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3839$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3840if ${am_cv_prog_cc_c_o+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854 # Make sure it works both with $CC and with simple cc. 3855 # Following AC_PROG_CC_C_O, we do the test twice because some 3856 # compilers refuse to overwrite an existing .o file with -o, 3857 # though they will create one. 3858 am_cv_prog_cc_c_o=yes 3859 for am_i in 1 2; do 3860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); } \ 3865 && test -f conftest2.$ac_objext; then 3866 : OK 3867 else 3868 am_cv_prog_cc_c_o=no 3869 break 3870 fi 3871 done 3872 rm -f core conftest* 3873 unset am_i 3874fi 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3876$as_echo "$am_cv_prog_cc_c_o" >&6; } 3877if test "$am_cv_prog_cc_c_o" != yes; then 3878 # Losing compiler, so override with the script. 3879 # FIXME: It is wrong to rewrite CC. 3880 # But if we don't then we get into trouble of one sort or another. 3881 # A longer-term fix would be to have automake use am__CC in this case, 3882 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3883 CC="$am_aux_dir/compile $CC" 3884fi 3885ac_ext=c 3886ac_cpp='$CPP $CPPFLAGS' 3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3889ac_compiler_gnu=$ac_cv_c_compiler_gnu 3890 3891 3892depcc="$CC" am_compiler_list= 3893 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3895$as_echo_n "checking dependency style of $depcc... " >&6; } 3896if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3900 # We make a subdir and do the tests there. Otherwise we can end up 3901 # making bogus files that we don't know about and never remove. For 3902 # instance it was reported that on HP-UX the gcc test will end up 3903 # making a dummy file named 'D' -- because '-MD' means "put the output 3904 # in D". 3905 rm -rf conftest.dir 3906 mkdir conftest.dir 3907 # Copy depcomp to subdir because otherwise we won't find it if we're 3908 # using a relative directory. 3909 cp "$am_depcomp" conftest.dir 3910 cd conftest.dir 3911 # We will build objects and dependencies in a subdirectory because 3912 # it helps to detect inapplicable dependency modes. For instance 3913 # both Tru64's cc and ICC support -MD to output dependencies as a 3914 # side effect of compilation, but ICC will put the dependencies in 3915 # the current directory while Tru64 will put them in the object 3916 # directory. 3917 mkdir sub 3918 3919 am_cv_CC_dependencies_compiler_type=none 3920 if test "$am_compiler_list" = ""; then 3921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3922 fi 3923 am__universal=false 3924 case " $depcc " in #( 3925 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3926 esac 3927 3928 for depmode in $am_compiler_list; do 3929 # Setup a source with many dependencies, because some compilers 3930 # like to wrap large dependency lists on column 80 (with \), and 3931 # we should not choose a depcomp mode which is confused by this. 3932 # 3933 # We need to recreate these files for each test, as the compiler may 3934 # overwrite some of them when testing with obscure command lines. 3935 # This happens at least with the AIX C compiler. 3936 : > sub/conftest.c 3937 for i in 1 2 3 4 5 6; do 3938 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3940 # Solaris 10 /bin/sh. 3941 echo '/* dummy */' > sub/conftst$i.h 3942 done 3943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3944 3945 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3946 # mode. It turns out that the SunPro C++ compiler does not properly 3947 # handle '-M -o', and we need to detect this. Also, some Intel 3948 # versions had trouble with output in subdirs. 3949 am__obj=sub/conftest.${OBJEXT-o} 3950 am__minus_obj="-o $am__obj" 3951 case $depmode in 3952 gcc) 3953 # This depmode causes a compiler race in universal mode. 3954 test "$am__universal" = false || continue 3955 ;; 3956 nosideeffect) 3957 # After this tag, mechanisms are not by side-effect, so they'll 3958 # only be used when explicitly requested. 3959 if test "x$enable_dependency_tracking" = xyes; then 3960 continue 3961 else 3962 break 3963 fi 3964 ;; 3965 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3966 # This compiler won't grok '-c -o', but also, the minuso test has 3967 # not run yet. These depmodes are late enough in the game, and 3968 # so weak that their functioning should not be impacted. 3969 am__obj=conftest.${OBJEXT-o} 3970 am__minus_obj= 3971 ;; 3972 none) break ;; 3973 esac 3974 if depmode=$depmode \ 3975 source=sub/conftest.c object=$am__obj \ 3976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3978 >/dev/null 2>conftest.err && 3979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3983 # icc doesn't choke on unknown options, it will just issue warnings 3984 # or remarks (even with -Werror). So we grep stderr for any message 3985 # that says an option was ignored or not supported. 3986 # When given -MP, icc 7.0 and 7.1 complain thusly: 3987 # icc: Command line warning: ignoring option '-M'; no argument required 3988 # The diagnosis changed in icc 8.0: 3989 # icc: Command line remark: option '-MP' not supported 3990 if (grep 'ignoring option' conftest.err || 3991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3992 am_cv_CC_dependencies_compiler_type=$depmode 3993 break 3994 fi 3995 fi 3996 done 3997 3998 cd .. 3999 rm -rf conftest.dir 4000else 4001 am_cv_CC_dependencies_compiler_type=none 4002fi 4003 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4006$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4007CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4008 4009 if 4010 test "x$enable_dependency_tracking" != xno \ 4011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4012 am__fastdepCC_TRUE= 4013 am__fastdepCC_FALSE='#' 4014else 4015 am__fastdepCC_TRUE='#' 4016 am__fastdepCC_FALSE= 4017fi 4018 4019 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4021$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4022if ${ac_cv_prog_cc_c99+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024else 4025 ac_cv_prog_cc_c99=no 4026ac_save_CC=$CC 4027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#include <stdarg.h> 4030#include <stdbool.h> 4031#include <stdlib.h> 4032#include <wchar.h> 4033#include <stdio.h> 4034 4035// Check varargs macros. These examples are taken from C99 6.10.3.5. 4036#define debug(...) fprintf (stderr, __VA_ARGS__) 4037#define showlist(...) puts (#__VA_ARGS__) 4038#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4039static void 4040test_varargs_macros (void) 4041{ 4042 int x = 1234; 4043 int y = 5678; 4044 debug ("Flag"); 4045 debug ("X = %d\n", x); 4046 showlist (The first, second, and third items.); 4047 report (x>y, "x is %d but y is %d", x, y); 4048} 4049 4050// Check long long types. 4051#define BIG64 18446744073709551615ull 4052#define BIG32 4294967295ul 4053#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4054#if !BIG_OK 4055 your preprocessor is broken; 4056#endif 4057#if BIG_OK 4058#else 4059 your preprocessor is broken; 4060#endif 4061static long long int bignum = -9223372036854775807LL; 4062static unsigned long long int ubignum = BIG64; 4063 4064struct incomplete_array 4065{ 4066 int datasize; 4067 double data[]; 4068}; 4069 4070struct named_init { 4071 int number; 4072 const wchar_t *name; 4073 double average; 4074}; 4075 4076typedef const char *ccp; 4077 4078static inline int 4079test_restrict (ccp restrict text) 4080{ 4081 // See if C++-style comments work. 4082 // Iterate through items via the restricted pointer. 4083 // Also check for declarations in for loops. 4084 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4085 continue; 4086 return 0; 4087} 4088 4089// Check varargs and va_copy. 4090static void 4091test_varargs (const char *format, ...) 4092{ 4093 va_list args; 4094 va_start (args, format); 4095 va_list args_copy; 4096 va_copy (args_copy, args); 4097 4098 const char *str; 4099 int number; 4100 float fnumber; 4101 4102 while (*format) 4103 { 4104 switch (*format++) 4105 { 4106 case 's': // string 4107 str = va_arg (args_copy, const char *); 4108 break; 4109 case 'd': // int 4110 number = va_arg (args_copy, int); 4111 break; 4112 case 'f': // float 4113 fnumber = va_arg (args_copy, double); 4114 break; 4115 default: 4116 break; 4117 } 4118 } 4119 va_end (args_copy); 4120 va_end (args); 4121} 4122 4123int 4124main () 4125{ 4126 4127 // Check bool. 4128 _Bool success = false; 4129 4130 // Check restrict. 4131 if (test_restrict ("String literal") == 0) 4132 success = true; 4133 char *restrict newvar = "Another string"; 4134 4135 // Check varargs. 4136 test_varargs ("s, d' f .", "string", 65, 34.234); 4137 test_varargs_macros (); 4138 4139 // Check flexible array members. 4140 struct incomplete_array *ia = 4141 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4142 ia->datasize = 10; 4143 for (int i = 0; i < ia->datasize; ++i) 4144 ia->data[i] = i * 1.234; 4145 4146 // Check named initializers. 4147 struct named_init ni = { 4148 .number = 34, 4149 .name = L"Test wide string", 4150 .average = 543.34343, 4151 }; 4152 4153 ni.number = 58; 4154 4155 int dynamic_array[ni.number]; 4156 dynamic_array[ni.number - 1] = 543; 4157 4158 // work around unused variable warnings 4159 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4160 || dynamic_array[ni.number - 1] != 543); 4161 4162 ; 4163 return 0; 4164} 4165_ACEOF 4166for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4167do 4168 CC="$ac_save_CC $ac_arg" 4169 if ac_fn_c_try_compile "$LINENO"; then : 4170 ac_cv_prog_cc_c99=$ac_arg 4171fi 4172rm -f core conftest.err conftest.$ac_objext 4173 test "x$ac_cv_prog_cc_c99" != "xno" && break 4174done 4175rm -f conftest.$ac_ext 4176CC=$ac_save_CC 4177 4178fi 4179# AC_CACHE_VAL 4180case "x$ac_cv_prog_cc_c99" in 4181 x) 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4183$as_echo "none needed" >&6; } ;; 4184 xno) 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4186$as_echo "unsupported" >&6; } ;; 4187 *) 4188 CC="$CC $ac_cv_prog_cc_c99" 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4190$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4191esac 4192if test "x$ac_cv_prog_cc_c99" != xno; then : 4193 4194fi 4195 4196 4197 4198ac_ext=c 4199ac_cpp='$CPP $CPPFLAGS' 4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4202ac_compiler_gnu=$ac_cv_c_compiler_gnu 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4204$as_echo_n "checking how to run the C preprocessor... " >&6; } 4205# On Suns, sometimes $CPP names a directory. 4206if test -n "$CPP" && test -d "$CPP"; then 4207 CPP= 4208fi 4209if test -z "$CPP"; then 4210 if ${ac_cv_prog_CPP+:} false; then : 4211 $as_echo_n "(cached) " >&6 4212else 4213 # Double quotes because CPP needs to be expanded 4214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4215 do 4216 ac_preproc_ok=false 4217for ac_c_preproc_warn_flag in '' yes 4218do 4219 # Use a header file that comes with gcc, so configuring glibc 4220 # with a fresh cross-compiler works. 4221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4222 # <limits.h> exists even on freestanding compilers. 4223 # On the NeXT, cc -E runs the code through the compiler's parser, 4224 # not just through cpp. "Syntax error" is here to catch this case. 4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4226/* end confdefs.h. */ 4227#ifdef __STDC__ 4228# include <limits.h> 4229#else 4230# include <assert.h> 4231#endif 4232 Syntax error 4233_ACEOF 4234if ac_fn_c_try_cpp "$LINENO"; then : 4235 4236else 4237 # Broken: fails on valid input. 4238continue 4239fi 4240rm -f conftest.err conftest.i conftest.$ac_ext 4241 4242 # OK, works on sane cases. Now check whether nonexistent headers 4243 # can be detected and how. 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245/* end confdefs.h. */ 4246#include <ac_nonexistent.h> 4247_ACEOF 4248if ac_fn_c_try_cpp "$LINENO"; then : 4249 # Broken: success on invalid input. 4250continue 4251else 4252 # Passes both tests. 4253ac_preproc_ok=: 4254break 4255fi 4256rm -f conftest.err conftest.i conftest.$ac_ext 4257 4258done 4259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4260rm -f conftest.i conftest.err conftest.$ac_ext 4261if $ac_preproc_ok; then : 4262 break 4263fi 4264 4265 done 4266 ac_cv_prog_CPP=$CPP 4267 4268fi 4269 CPP=$ac_cv_prog_CPP 4270else 4271 ac_cv_prog_CPP=$CPP 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4274$as_echo "$CPP" >&6; } 4275ac_preproc_ok=false 4276for ac_c_preproc_warn_flag in '' yes 4277do 4278 # Use a header file that comes with gcc, so configuring glibc 4279 # with a fresh cross-compiler works. 4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4281 # <limits.h> exists even on freestanding compilers. 4282 # On the NeXT, cc -E runs the code through the compiler's parser, 4283 # not just through cpp. "Syntax error" is here to catch this case. 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#ifdef __STDC__ 4287# include <limits.h> 4288#else 4289# include <assert.h> 4290#endif 4291 Syntax error 4292_ACEOF 4293if ac_fn_c_try_cpp "$LINENO"; then : 4294 4295else 4296 # Broken: fails on valid input. 4297continue 4298fi 4299rm -f conftest.err conftest.i conftest.$ac_ext 4300 4301 # OK, works on sane cases. Now check whether nonexistent headers 4302 # can be detected and how. 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304/* end confdefs.h. */ 4305#include <ac_nonexistent.h> 4306_ACEOF 4307if ac_fn_c_try_cpp "$LINENO"; then : 4308 # Broken: success on invalid input. 4309continue 4310else 4311 # Passes both tests. 4312ac_preproc_ok=: 4313break 4314fi 4315rm -f conftest.err conftest.i conftest.$ac_ext 4316 4317done 4318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4319rm -f conftest.i conftest.err conftest.$ac_ext 4320if $ac_preproc_ok; then : 4321 4322else 4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4325as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4326See \`config.log' for more details" "$LINENO" 5; } 4327fi 4328 4329ac_ext=c 4330ac_cpp='$CPP $CPPFLAGS' 4331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4333ac_compiler_gnu=$ac_cv_c_compiler_gnu 4334 4335 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4337$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4338if ${ac_cv_path_GREP+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 if test -z "$GREP"; then 4342 ac_path_GREP_found=false 4343 # Loop through the user's path and test for each of PROGNAME-LIST 4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4345for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4346do 4347 IFS=$as_save_IFS 4348 test -z "$as_dir" && as_dir=. 4349 for ac_prog in grep ggrep; do 4350 for ac_exec_ext in '' $ac_executable_extensions; do 4351 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4352 as_fn_executable_p "$ac_path_GREP" || continue 4353# Check for GNU ac_path_GREP and select it if it is found. 4354 # Check for GNU $ac_path_GREP 4355case `"$ac_path_GREP" --version 2>&1` in 4356*GNU*) 4357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4358*) 4359 ac_count=0 4360 $as_echo_n 0123456789 >"conftest.in" 4361 while : 4362 do 4363 cat "conftest.in" "conftest.in" >"conftest.tmp" 4364 mv "conftest.tmp" "conftest.in" 4365 cp "conftest.in" "conftest.nl" 4366 $as_echo 'GREP' >> "conftest.nl" 4367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4369 as_fn_arith $ac_count + 1 && ac_count=$as_val 4370 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4371 # Best one so far, save it but keep looking for a better one 4372 ac_cv_path_GREP="$ac_path_GREP" 4373 ac_path_GREP_max=$ac_count 4374 fi 4375 # 10*(2^10) chars as input seems more than enough 4376 test $ac_count -gt 10 && break 4377 done 4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4379esac 4380 4381 $ac_path_GREP_found && break 3 4382 done 4383 done 4384 done 4385IFS=$as_save_IFS 4386 if test -z "$ac_cv_path_GREP"; then 4387 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4388 fi 4389else 4390 ac_cv_path_GREP=$GREP 4391fi 4392 4393fi 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4395$as_echo "$ac_cv_path_GREP" >&6; } 4396 GREP="$ac_cv_path_GREP" 4397 4398 4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4400$as_echo_n "checking for egrep... " >&6; } 4401if ${ac_cv_path_EGREP+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403else 4404 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4405 then ac_cv_path_EGREP="$GREP -E" 4406 else 4407 if test -z "$EGREP"; then 4408 ac_path_EGREP_found=false 4409 # Loop through the user's path and test for each of PROGNAME-LIST 4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4411for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4412do 4413 IFS=$as_save_IFS 4414 test -z "$as_dir" && as_dir=. 4415 for ac_prog in egrep; do 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4418 as_fn_executable_p "$ac_path_EGREP" || continue 4419# Check for GNU ac_path_EGREP and select it if it is found. 4420 # Check for GNU $ac_path_EGREP 4421case `"$ac_path_EGREP" --version 2>&1` in 4422*GNU*) 4423 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4424*) 4425 ac_count=0 4426 $as_echo_n 0123456789 >"conftest.in" 4427 while : 4428 do 4429 cat "conftest.in" "conftest.in" >"conftest.tmp" 4430 mv "conftest.tmp" "conftest.in" 4431 cp "conftest.in" "conftest.nl" 4432 $as_echo 'EGREP' >> "conftest.nl" 4433 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4435 as_fn_arith $ac_count + 1 && ac_count=$as_val 4436 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4437 # Best one so far, save it but keep looking for a better one 4438 ac_cv_path_EGREP="$ac_path_EGREP" 4439 ac_path_EGREP_max=$ac_count 4440 fi 4441 # 10*(2^10) chars as input seems more than enough 4442 test $ac_count -gt 10 && break 4443 done 4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4445esac 4446 4447 $ac_path_EGREP_found && break 3 4448 done 4449 done 4450 done 4451IFS=$as_save_IFS 4452 if test -z "$ac_cv_path_EGREP"; then 4453 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4454 fi 4455else 4456 ac_cv_path_EGREP=$EGREP 4457fi 4458 4459 fi 4460fi 4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4462$as_echo "$ac_cv_path_EGREP" >&6; } 4463 EGREP="$ac_cv_path_EGREP" 4464 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4467$as_echo_n "checking for ANSI C header files... " >&6; } 4468if ${ac_cv_header_stdc+:} false; then : 4469 $as_echo_n "(cached) " >&6 4470else 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472/* end confdefs.h. */ 4473#include <stdlib.h> 4474#include <stdarg.h> 4475#include <string.h> 4476#include <float.h> 4477 4478int 4479main () 4480{ 4481 4482 ; 4483 return 0; 4484} 4485_ACEOF 4486if ac_fn_c_try_compile "$LINENO"; then : 4487 ac_cv_header_stdc=yes 4488else 4489 ac_cv_header_stdc=no 4490fi 4491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4492 4493if test $ac_cv_header_stdc = yes; then 4494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497#include <string.h> 4498 4499_ACEOF 4500if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4501 $EGREP "memchr" >/dev/null 2>&1; then : 4502 4503else 4504 ac_cv_header_stdc=no 4505fi 4506rm -f conftest* 4507 4508fi 4509 4510if test $ac_cv_header_stdc = yes; then 4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4513/* end confdefs.h. */ 4514#include <stdlib.h> 4515 4516_ACEOF 4517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4518 $EGREP "free" >/dev/null 2>&1; then : 4519 4520else 4521 ac_cv_header_stdc=no 4522fi 4523rm -f conftest* 4524 4525fi 4526 4527if test $ac_cv_header_stdc = yes; then 4528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4529 if test "$cross_compiling" = yes; then : 4530 : 4531else 4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4533/* end confdefs.h. */ 4534#include <ctype.h> 4535#include <stdlib.h> 4536#if ((' ' & 0x0FF) == 0x020) 4537# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4538# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4539#else 4540# define ISLOWER(c) \ 4541 (('a' <= (c) && (c) <= 'i') \ 4542 || ('j' <= (c) && (c) <= 'r') \ 4543 || ('s' <= (c) && (c) <= 'z')) 4544# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4545#endif 4546 4547#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4548int 4549main () 4550{ 4551 int i; 4552 for (i = 0; i < 256; i++) 4553 if (XOR (islower (i), ISLOWER (i)) 4554 || toupper (i) != TOUPPER (i)) 4555 return 2; 4556 return 0; 4557} 4558_ACEOF 4559if ac_fn_c_try_run "$LINENO"; then : 4560 4561else 4562 ac_cv_header_stdc=no 4563fi 4564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4565 conftest.$ac_objext conftest.beam conftest.$ac_ext 4566fi 4567 4568fi 4569fi 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4571$as_echo "$ac_cv_header_stdc" >&6; } 4572if test $ac_cv_header_stdc = yes; then 4573 4574$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4575 4576fi 4577 4578# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4579for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4580 inttypes.h stdint.h unistd.h 4581do : 4582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4583ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4584" 4585if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4586 cat >>confdefs.h <<_ACEOF 4587#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4588_ACEOF 4589 4590fi 4591 4592done 4593 4594 4595 4596 4597 4598 4599ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4600if test "x$ac_cv_have_decl___clang__" = xyes; then : 4601 CLANGCC="yes" 4602else 4603 CLANGCC="no" 4604fi 4605 4606ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4607if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4608 INTELCC="yes" 4609else 4610 INTELCC="no" 4611fi 4612 4613ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4614if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4615 SUNCC="yes" 4616else 4617 SUNCC="no" 4618fi 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4629 if test -n "$ac_tool_prefix"; then 4630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4631set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633$as_echo_n "checking for $ac_word... " >&6; } 4634if ${ac_cv_path_PKG_CONFIG+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636else 4637 case $PKG_CONFIG in 4638 [\\/]* | ?:[\\/]*) 4639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4640 ;; 4641 *) 4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653done 4654 done 4655IFS=$as_save_IFS 4656 4657 ;; 4658esac 4659fi 4660PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4661if test -n "$PKG_CONFIG"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4663$as_echo "$PKG_CONFIG" >&6; } 4664else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4666$as_echo "no" >&6; } 4667fi 4668 4669 4670fi 4671if test -z "$ac_cv_path_PKG_CONFIG"; then 4672 ac_pt_PKG_CONFIG=$PKG_CONFIG 4673 # Extract the first word of "pkg-config", so it can be a program name with args. 4674set dummy pkg-config; ac_word=$2 4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4676$as_echo_n "checking for $ac_word... " >&6; } 4677if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679else 4680 case $ac_pt_PKG_CONFIG in 4681 [\\/]* | ?:[\\/]*) 4682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4683 ;; 4684 *) 4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4686for as_dir in $PATH 4687do 4688 IFS=$as_save_IFS 4689 test -z "$as_dir" && as_dir=. 4690 for ac_exec_ext in '' $ac_executable_extensions; do 4691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4692 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4694 break 2 4695 fi 4696done 4697 done 4698IFS=$as_save_IFS 4699 4700 ;; 4701esac 4702fi 4703ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4704if test -n "$ac_pt_PKG_CONFIG"; then 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4706$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4707else 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4709$as_echo "no" >&6; } 4710fi 4711 4712 if test "x$ac_pt_PKG_CONFIG" = x; then 4713 PKG_CONFIG="" 4714 else 4715 case $cross_compiling:$ac_tool_warned in 4716yes:) 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4719ac_tool_warned=yes ;; 4720esac 4721 PKG_CONFIG=$ac_pt_PKG_CONFIG 4722 fi 4723else 4724 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4725fi 4726 4727fi 4728if test -n "$PKG_CONFIG"; then 4729 _pkg_min_version=0.9.0 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4731$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4732 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4734$as_echo "yes" >&6; } 4735 else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737$as_echo "no" >&6; } 4738 PKG_CONFIG="" 4739 fi 4740fi 4741# Make sure we can run config.sub. 4742$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4743 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4744 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4746$as_echo_n "checking build system type... " >&6; } 4747if ${ac_cv_build+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 ac_build_alias=$build_alias 4751test "x$ac_build_alias" = x && 4752 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4753test "x$ac_build_alias" = x && 4754 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4755ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4757 4758fi 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4760$as_echo "$ac_cv_build" >&6; } 4761case $ac_cv_build in 4762*-*-*) ;; 4763*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4764esac 4765build=$ac_cv_build 4766ac_save_IFS=$IFS; IFS='-' 4767set x $ac_cv_build 4768shift 4769build_cpu=$1 4770build_vendor=$2 4771shift; shift 4772# Remember, the first character of IFS is used to create $*, 4773# except with old shells: 4774build_os=$* 4775IFS=$ac_save_IFS 4776case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4777 4778 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4780$as_echo_n "checking host system type... " >&6; } 4781if ${ac_cv_host+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 if test "x$host_alias" = x; then 4785 ac_cv_host=$ac_cv_build 4786else 4787 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4789fi 4790 4791fi 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4793$as_echo "$ac_cv_host" >&6; } 4794case $ac_cv_host in 4795*-*-*) ;; 4796*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4797esac 4798host=$ac_cv_host 4799ac_save_IFS=$IFS; IFS='-' 4800set x $ac_cv_host 4801shift 4802host_cpu=$1 4803host_vendor=$2 4804shift; shift 4805# Remember, the first character of IFS is used to create $*, 4806# except with old shells: 4807host_os=$* 4808IFS=$ac_save_IFS 4809case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4810 4811 4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4813$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4814if ${ac_cv_path_SED+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816else 4817 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4818 for ac_i in 1 2 3 4 5 6 7; do 4819 ac_script="$ac_script$as_nl$ac_script" 4820 done 4821 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4822 { ac_script=; unset ac_script;} 4823 if test -z "$SED"; then 4824 ac_path_SED_found=false 4825 # Loop through the user's path and test for each of PROGNAME-LIST 4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4827for as_dir in $PATH 4828do 4829 IFS=$as_save_IFS 4830 test -z "$as_dir" && as_dir=. 4831 for ac_prog in sed gsed; do 4832 for ac_exec_ext in '' $ac_executable_extensions; do 4833 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4834 as_fn_executable_p "$ac_path_SED" || continue 4835# Check for GNU ac_path_SED and select it if it is found. 4836 # Check for GNU $ac_path_SED 4837case `"$ac_path_SED" --version 2>&1` in 4838*GNU*) 4839 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4840*) 4841 ac_count=0 4842 $as_echo_n 0123456789 >"conftest.in" 4843 while : 4844 do 4845 cat "conftest.in" "conftest.in" >"conftest.tmp" 4846 mv "conftest.tmp" "conftest.in" 4847 cp "conftest.in" "conftest.nl" 4848 $as_echo '' >> "conftest.nl" 4849 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4851 as_fn_arith $ac_count + 1 && ac_count=$as_val 4852 if test $ac_count -gt ${ac_path_SED_max-0}; then 4853 # Best one so far, save it but keep looking for a better one 4854 ac_cv_path_SED="$ac_path_SED" 4855 ac_path_SED_max=$ac_count 4856 fi 4857 # 10*(2^10) chars as input seems more than enough 4858 test $ac_count -gt 10 && break 4859 done 4860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4861esac 4862 4863 $ac_path_SED_found && break 3 4864 done 4865 done 4866 done 4867IFS=$as_save_IFS 4868 if test -z "$ac_cv_path_SED"; then 4869 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4870 fi 4871else 4872 ac_cv_path_SED=$SED 4873fi 4874 4875fi 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4877$as_echo "$ac_cv_path_SED" >&6; } 4878 SED="$ac_cv_path_SED" 4879 rm -f conftest.sed 4880 4881 4882 4883 4884 4885 4886# Check whether --enable-selective-werror was given. 4887if test "${enable_selective_werror+set}" = set; then : 4888 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4889else 4890 SELECTIVE_WERROR=yes 4891fi 4892 4893 4894 4895 4896 4897# -v is too short to test reliably with XORG_TESTSET_CFLAG 4898if test "x$SUNCC" = "xyes"; then 4899 BASE_CFLAGS="-v" 4900else 4901 BASE_CFLAGS="" 4902fi 4903 4904# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918xorg_testset_save_CFLAGS="$CFLAGS" 4919 4920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928/* end confdefs.h. */ 4929int i; 4930_ACEOF 4931if ac_fn_c_try_compile "$LINENO"; then : 4932 xorg_cv_cc_flag_unknown_warning_option=yes 4933else 4934 xorg_cv_cc_flag_unknown_warning_option=no 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942fi 4943 4944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 fi 4948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953else 4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4955/* end confdefs.h. */ 4956int i; 4957_ACEOF 4958if ac_fn_c_try_compile "$LINENO"; then : 4959 xorg_cv_cc_flag_unused_command_line_argument=yes 4960else 4961 xorg_cv_cc_flag_unused_command_line_argument=no 4962fi 4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4964fi 4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4968 CFLAGS="$xorg_testset_save_CFLAGS" 4969fi 4970 4971found="no" 4972 4973 if test $found = "no" ; then 4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4976 fi 4977 4978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4980 fi 4981 4982 CFLAGS="$CFLAGS -Wall" 4983 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4985$as_echo_n "checking if $CC supports -Wall... " >&6; } 4986 cacheid=xorg_cv_cc_flag__Wall 4987 if eval \${$cacheid+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989else 4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4991/* end confdefs.h. */ 4992int i; 4993int 4994main () 4995{ 4996 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001if ac_fn_c_try_link "$LINENO"; then : 5002 eval $cacheid=yes 5003else 5004 eval $cacheid=no 5005fi 5006rm -f core conftest.err conftest.$ac_objext \ 5007 conftest$ac_exeext conftest.$ac_ext 5008fi 5009 5010 5011 CFLAGS="$xorg_testset_save_CFLAGS" 5012 5013 eval supported=\$$cacheid 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5015$as_echo "$supported" >&6; } 5016 if test "$supported" = "yes" ; then 5017 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5018 found="yes" 5019 fi 5020 fi 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036xorg_testset_save_CFLAGS="$CFLAGS" 5037 5038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046/* end confdefs.h. */ 5047int i; 5048_ACEOF 5049if ac_fn_c_try_compile "$LINENO"; then : 5050 xorg_cv_cc_flag_unknown_warning_option=yes 5051else 5052 xorg_cv_cc_flag_unknown_warning_option=no 5053fi 5054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060fi 5061 5062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073/* end confdefs.h. */ 5074int i; 5075_ACEOF 5076if ac_fn_c_try_compile "$LINENO"; then : 5077 xorg_cv_cc_flag_unused_command_line_argument=yes 5078else 5079 xorg_cv_cc_flag_unused_command_line_argument=no 5080fi 5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5082fi 5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5086 CFLAGS="$xorg_testset_save_CFLAGS" 5087fi 5088 5089found="no" 5090 5091 if test $found = "no" ; then 5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5094 fi 5095 5096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5098 fi 5099 5100 CFLAGS="$CFLAGS -Wpointer-arith" 5101 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5103$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5104 cacheid=xorg_cv_cc_flag__Wpointer_arith 5105 if eval \${$cacheid+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107else 5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110int i; 5111int 5112main () 5113{ 5114 5115 ; 5116 return 0; 5117} 5118_ACEOF 5119if ac_fn_c_try_link "$LINENO"; then : 5120 eval $cacheid=yes 5121else 5122 eval $cacheid=no 5123fi 5124rm -f core conftest.err conftest.$ac_objext \ 5125 conftest$ac_exeext conftest.$ac_ext 5126fi 5127 5128 5129 CFLAGS="$xorg_testset_save_CFLAGS" 5130 5131 eval supported=\$$cacheid 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5133$as_echo "$supported" >&6; } 5134 if test "$supported" = "yes" ; then 5135 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5136 found="yes" 5137 fi 5138 fi 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154xorg_testset_save_CFLAGS="$CFLAGS" 5155 5156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5159$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5160if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164/* end confdefs.h. */ 5165int i; 5166_ACEOF 5167if ac_fn_c_try_compile "$LINENO"; then : 5168 xorg_cv_cc_flag_unknown_warning_option=yes 5169else 5170 xorg_cv_cc_flag_unknown_warning_option=no 5171fi 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5173fi 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5175$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5177 CFLAGS="$xorg_testset_save_CFLAGS" 5178fi 5179 5180if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 fi 5184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5186$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5187if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189else 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5191/* end confdefs.h. */ 5192int i; 5193_ACEOF 5194if ac_fn_c_try_compile "$LINENO"; then : 5195 xorg_cv_cc_flag_unused_command_line_argument=yes 5196else 5197 xorg_cv_cc_flag_unused_command_line_argument=no 5198fi 5199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5200fi 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5202$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5204 CFLAGS="$xorg_testset_save_CFLAGS" 5205fi 5206 5207found="no" 5208 5209 if test $found = "no" ; then 5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 fi 5213 5214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5216 fi 5217 5218 CFLAGS="$CFLAGS -Wmissing-declarations" 5219 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5221$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5222 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5223 if eval \${$cacheid+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225else 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227/* end confdefs.h. */ 5228int i; 5229int 5230main () 5231{ 5232 5233 ; 5234 return 0; 5235} 5236_ACEOF 5237if ac_fn_c_try_link "$LINENO"; then : 5238 eval $cacheid=yes 5239else 5240 eval $cacheid=no 5241fi 5242rm -f core conftest.err conftest.$ac_objext \ 5243 conftest$ac_exeext conftest.$ac_ext 5244fi 5245 5246 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248 5249 eval supported=\$$cacheid 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5251$as_echo "$supported" >&6; } 5252 if test "$supported" = "yes" ; then 5253 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5254 found="yes" 5255 fi 5256 fi 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272xorg_testset_save_CFLAGS="$CFLAGS" 5273 5274if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5277$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5278if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283int i; 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 xorg_cv_cc_flag_unknown_warning_option=yes 5287else 5288 xorg_cv_cc_flag_unknown_warning_option=no 5289fi 5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5291fi 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5293$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5295 CFLAGS="$xorg_testset_save_CFLAGS" 5296fi 5297 5298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5301 fi 5302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5304$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5305if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307else 5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5309/* end confdefs.h. */ 5310int i; 5311_ACEOF 5312if ac_fn_c_try_compile "$LINENO"; then : 5313 xorg_cv_cc_flag_unused_command_line_argument=yes 5314else 5315 xorg_cv_cc_flag_unused_command_line_argument=no 5316fi 5317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5318fi 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5320$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5322 CFLAGS="$xorg_testset_save_CFLAGS" 5323fi 5324 5325found="no" 5326 5327 if test $found = "no" ; then 5328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5330 fi 5331 5332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5334 fi 5335 5336 CFLAGS="$CFLAGS -Wformat=2" 5337 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5339$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5340 cacheid=xorg_cv_cc_flag__Wformat_2 5341 if eval \${$cacheid+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345/* end confdefs.h. */ 5346int i; 5347int 5348main () 5349{ 5350 5351 ; 5352 return 0; 5353} 5354_ACEOF 5355if ac_fn_c_try_link "$LINENO"; then : 5356 eval $cacheid=yes 5357else 5358 eval $cacheid=no 5359fi 5360rm -f core conftest.err conftest.$ac_objext \ 5361 conftest$ac_exeext conftest.$ac_ext 5362fi 5363 5364 5365 CFLAGS="$xorg_testset_save_CFLAGS" 5366 5367 eval supported=\$$cacheid 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5369$as_echo "$supported" >&6; } 5370 if test "$supported" = "yes" ; then 5371 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5372 found="yes" 5373 fi 5374 fi 5375 5376 if test $found = "no" ; then 5377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5379 fi 5380 5381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5383 fi 5384 5385 CFLAGS="$CFLAGS -Wformat" 5386 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5388$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5389 cacheid=xorg_cv_cc_flag__Wformat 5390 if eval \${$cacheid+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5394/* end confdefs.h. */ 5395int i; 5396int 5397main () 5398{ 5399 5400 ; 5401 return 0; 5402} 5403_ACEOF 5404if ac_fn_c_try_link "$LINENO"; then : 5405 eval $cacheid=yes 5406else 5407 eval $cacheid=no 5408fi 5409rm -f core conftest.err conftest.$ac_objext \ 5410 conftest$ac_exeext conftest.$ac_ext 5411fi 5412 5413 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415 5416 eval supported=\$$cacheid 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5418$as_echo "$supported" >&6; } 5419 if test "$supported" = "yes" ; then 5420 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5421 found="yes" 5422 fi 5423 fi 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441xorg_testset_save_CFLAGS="$CFLAGS" 5442 5443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449else 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451/* end confdefs.h. */ 5452int i; 5453_ACEOF 5454if ac_fn_c_try_compile "$LINENO"; then : 5455 xorg_cv_cc_flag_unknown_warning_option=yes 5456else 5457 xorg_cv_cc_flag_unknown_warning_option=no 5458fi 5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460fi 5461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465fi 5466 5467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476else 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478/* end confdefs.h. */ 5479int i; 5480_ACEOF 5481if ac_fn_c_try_compile "$LINENO"; then : 5482 xorg_cv_cc_flag_unused_command_line_argument=yes 5483else 5484 xorg_cv_cc_flag_unused_command_line_argument=no 5485fi 5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5487fi 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5491 CFLAGS="$xorg_testset_save_CFLAGS" 5492fi 5493 5494found="no" 5495 5496 if test $found = "no" ; then 5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5499 fi 5500 5501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5503 fi 5504 5505 CFLAGS="$CFLAGS -Wstrict-prototypes" 5506 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5508$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5509 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5510 if eval \${$cacheid+:} false; then : 5511 $as_echo_n "(cached) " >&6 5512else 5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5514/* end confdefs.h. */ 5515int i; 5516int 5517main () 5518{ 5519 5520 ; 5521 return 0; 5522} 5523_ACEOF 5524if ac_fn_c_try_link "$LINENO"; then : 5525 eval $cacheid=yes 5526else 5527 eval $cacheid=no 5528fi 5529rm -f core conftest.err conftest.$ac_objext \ 5530 conftest$ac_exeext conftest.$ac_ext 5531fi 5532 5533 5534 CFLAGS="$xorg_testset_save_CFLAGS" 5535 5536 eval supported=\$$cacheid 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5538$as_echo "$supported" >&6; } 5539 if test "$supported" = "yes" ; then 5540 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5541 found="yes" 5542 fi 5543 fi 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559xorg_testset_save_CFLAGS="$CFLAGS" 5560 5561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567else 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569/* end confdefs.h. */ 5570int i; 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO"; then : 5573 xorg_cv_cc_flag_unknown_warning_option=yes 5574else 5575 xorg_cv_cc_flag_unknown_warning_option=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583fi 5584 5585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 fi 5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594else 5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5596/* end confdefs.h. */ 5597int i; 5598_ACEOF 5599if ac_fn_c_try_compile "$LINENO"; then : 5600 xorg_cv_cc_flag_unused_command_line_argument=yes 5601else 5602 xorg_cv_cc_flag_unused_command_line_argument=no 5603fi 5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5609 CFLAGS="$xorg_testset_save_CFLAGS" 5610fi 5611 5612found="no" 5613 5614 if test $found = "no" ; then 5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5617 fi 5618 5619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5621 fi 5622 5623 CFLAGS="$CFLAGS -Wmissing-prototypes" 5624 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5626$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5627 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5628 if eval \${$cacheid+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632/* end confdefs.h. */ 5633int i; 5634int 5635main () 5636{ 5637 5638 ; 5639 return 0; 5640} 5641_ACEOF 5642if ac_fn_c_try_link "$LINENO"; then : 5643 eval $cacheid=yes 5644else 5645 eval $cacheid=no 5646fi 5647rm -f core conftest.err conftest.$ac_objext \ 5648 conftest$ac_exeext conftest.$ac_ext 5649fi 5650 5651 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653 5654 eval supported=\$$cacheid 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5656$as_echo "$supported" >&6; } 5657 if test "$supported" = "yes" ; then 5658 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5659 found="yes" 5660 fi 5661 fi 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677xorg_testset_save_CFLAGS="$CFLAGS" 5678 5679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685else 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688int i; 5689_ACEOF 5690if ac_fn_c_try_compile "$LINENO"; then : 5691 xorg_cv_cc_flag_unknown_warning_option=yes 5692else 5693 xorg_cv_cc_flag_unknown_warning_option=no 5694fi 5695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5696fi 5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701fi 5702 5703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 fi 5707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5711 $as_echo_n "(cached) " >&6 5712else 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714/* end confdefs.h. */ 5715int i; 5716_ACEOF 5717if ac_fn_c_try_compile "$LINENO"; then : 5718 xorg_cv_cc_flag_unused_command_line_argument=yes 5719else 5720 xorg_cv_cc_flag_unused_command_line_argument=no 5721fi 5722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5723fi 5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5727 CFLAGS="$xorg_testset_save_CFLAGS" 5728fi 5729 5730found="no" 5731 5732 if test $found = "no" ; then 5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5735 fi 5736 5737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5739 fi 5740 5741 CFLAGS="$CFLAGS -Wnested-externs" 5742 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5744$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5745 cacheid=xorg_cv_cc_flag__Wnested_externs 5746 if eval \${$cacheid+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751int i; 5752int 5753main () 5754{ 5755 5756 ; 5757 return 0; 5758} 5759_ACEOF 5760if ac_fn_c_try_link "$LINENO"; then : 5761 eval $cacheid=yes 5762else 5763 eval $cacheid=no 5764fi 5765rm -f core conftest.err conftest.$ac_objext \ 5766 conftest$ac_exeext conftest.$ac_ext 5767fi 5768 5769 5770 CFLAGS="$xorg_testset_save_CFLAGS" 5771 5772 eval supported=\$$cacheid 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5774$as_echo "$supported" >&6; } 5775 if test "$supported" = "yes" ; then 5776 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5777 found="yes" 5778 fi 5779 fi 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795xorg_testset_save_CFLAGS="$CFLAGS" 5796 5797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803else 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805/* end confdefs.h. */ 5806int i; 5807_ACEOF 5808if ac_fn_c_try_compile "$LINENO"; then : 5809 xorg_cv_cc_flag_unknown_warning_option=yes 5810else 5811 xorg_cv_cc_flag_unknown_warning_option=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5814fi 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819fi 5820 5821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 fi 5825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830else 5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832/* end confdefs.h. */ 5833int i; 5834_ACEOF 5835if ac_fn_c_try_compile "$LINENO"; then : 5836 xorg_cv_cc_flag_unused_command_line_argument=yes 5837else 5838 xorg_cv_cc_flag_unused_command_line_argument=no 5839fi 5840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5841fi 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5845 CFLAGS="$xorg_testset_save_CFLAGS" 5846fi 5847 5848found="no" 5849 5850 if test $found = "no" ; then 5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5853 fi 5854 5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5857 fi 5858 5859 CFLAGS="$CFLAGS -Wbad-function-cast" 5860 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5862$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5863 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5864 if eval \${$cacheid+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869int i; 5870int 5871main () 5872{ 5873 5874 ; 5875 return 0; 5876} 5877_ACEOF 5878if ac_fn_c_try_link "$LINENO"; then : 5879 eval $cacheid=yes 5880else 5881 eval $cacheid=no 5882fi 5883rm -f core conftest.err conftest.$ac_objext \ 5884 conftest$ac_exeext conftest.$ac_ext 5885fi 5886 5887 5888 CFLAGS="$xorg_testset_save_CFLAGS" 5889 5890 eval supported=\$$cacheid 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5892$as_echo "$supported" >&6; } 5893 if test "$supported" = "yes" ; then 5894 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5895 found="yes" 5896 fi 5897 fi 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913xorg_testset_save_CFLAGS="$CFLAGS" 5914 5915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924int i; 5925_ACEOF 5926if ac_fn_c_try_compile "$LINENO"; then : 5927 xorg_cv_cc_flag_unknown_warning_option=yes 5928else 5929 xorg_cv_cc_flag_unknown_warning_option=no 5930fi 5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937fi 5938 5939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 fi 5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948else 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951int i; 5952_ACEOF 5953if ac_fn_c_try_compile "$LINENO"; then : 5954 xorg_cv_cc_flag_unused_command_line_argument=yes 5955else 5956 xorg_cv_cc_flag_unused_command_line_argument=no 5957fi 5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959fi 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964fi 5965 5966found="no" 5967 5968 if test $found = "no" ; then 5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 fi 5972 5973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5975 fi 5976 5977 CFLAGS="$CFLAGS -Wold-style-definition" 5978 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5980$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5981 cacheid=xorg_cv_cc_flag__Wold_style_definition 5982 if eval \${$cacheid+:} false; then : 5983 $as_echo_n "(cached) " >&6 5984else 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987int i; 5988int 5989main () 5990{ 5991 5992 ; 5993 return 0; 5994} 5995_ACEOF 5996if ac_fn_c_try_link "$LINENO"; then : 5997 eval $cacheid=yes 5998else 5999 eval $cacheid=no 6000fi 6001rm -f core conftest.err conftest.$ac_objext \ 6002 conftest$ac_exeext conftest.$ac_ext 6003fi 6004 6005 6006 CFLAGS="$xorg_testset_save_CFLAGS" 6007 6008 eval supported=\$$cacheid 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6010$as_echo "$supported" >&6; } 6011 if test "$supported" = "yes" ; then 6012 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6013 found="yes" 6014 fi 6015 fi 6016 6017 if test $found = "no" ; then 6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6024 fi 6025 6026 CFLAGS="$CFLAGS -fd" 6027 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6029$as_echo_n "checking if $CC supports -fd... " >&6; } 6030 cacheid=xorg_cv_cc_flag__fd 6031 if eval \${$cacheid+:} false; then : 6032 $as_echo_n "(cached) " >&6 6033else 6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035/* end confdefs.h. */ 6036int i; 6037int 6038main () 6039{ 6040 6041 ; 6042 return 0; 6043} 6044_ACEOF 6045if ac_fn_c_try_link "$LINENO"; then : 6046 eval $cacheid=yes 6047else 6048 eval $cacheid=no 6049fi 6050rm -f core conftest.err conftest.$ac_objext \ 6051 conftest$ac_exeext conftest.$ac_ext 6052fi 6053 6054 6055 CFLAGS="$xorg_testset_save_CFLAGS" 6056 6057 eval supported=\$$cacheid 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6059$as_echo "$supported" >&6; } 6060 if test "$supported" = "yes" ; then 6061 BASE_CFLAGS="$BASE_CFLAGS -fd" 6062 found="yes" 6063 fi 6064 fi 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080xorg_testset_save_CFLAGS="$CFLAGS" 6081 6082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091int i; 6092_ACEOF 6093if ac_fn_c_try_compile "$LINENO"; then : 6094 xorg_cv_cc_flag_unknown_warning_option=yes 6095else 6096 xorg_cv_cc_flag_unknown_warning_option=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6099fi 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104fi 6105 6106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6109 fi 6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115else 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117/* end confdefs.h. */ 6118int i; 6119_ACEOF 6120if ac_fn_c_try_compile "$LINENO"; then : 6121 xorg_cv_cc_flag_unused_command_line_argument=yes 6122else 6123 xorg_cv_cc_flag_unused_command_line_argument=no 6124fi 6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6126fi 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6130 CFLAGS="$xorg_testset_save_CFLAGS" 6131fi 6132 6133found="no" 6134 6135 if test $found = "no" ; then 6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6138 fi 6139 6140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6142 fi 6143 6144 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6145 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6147$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6148 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6149 if eval \${$cacheid+:} false; then : 6150 $as_echo_n "(cached) " >&6 6151else 6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153/* end confdefs.h. */ 6154int i; 6155int 6156main () 6157{ 6158 6159 ; 6160 return 0; 6161} 6162_ACEOF 6163if ac_fn_c_try_link "$LINENO"; then : 6164 eval $cacheid=yes 6165else 6166 eval $cacheid=no 6167fi 6168rm -f core conftest.err conftest.$ac_objext \ 6169 conftest$ac_exeext conftest.$ac_ext 6170fi 6171 6172 6173 CFLAGS="$xorg_testset_save_CFLAGS" 6174 6175 eval supported=\$$cacheid 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6177$as_echo "$supported" >&6; } 6178 if test "$supported" = "yes" ; then 6179 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6180 found="yes" 6181 fi 6182 fi 6183 6184 6185 6186 6187 6188# This chunk adds additional warnings that could catch undesired effects. 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202xorg_testset_save_CFLAGS="$CFLAGS" 6203 6204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210else 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212/* end confdefs.h. */ 6213int i; 6214_ACEOF 6215if ac_fn_c_try_compile "$LINENO"; then : 6216 xorg_cv_cc_flag_unknown_warning_option=yes 6217else 6218 xorg_cv_cc_flag_unknown_warning_option=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6221fi 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226fi 6227 6228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 fi 6232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6236 $as_echo_n "(cached) " >&6 6237else 6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239/* end confdefs.h. */ 6240int i; 6241_ACEOF 6242if ac_fn_c_try_compile "$LINENO"; then : 6243 xorg_cv_cc_flag_unused_command_line_argument=yes 6244else 6245 xorg_cv_cc_flag_unused_command_line_argument=no 6246fi 6247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6248fi 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6252 CFLAGS="$xorg_testset_save_CFLAGS" 6253fi 6254 6255found="no" 6256 6257 if test $found = "no" ; then 6258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 fi 6261 6262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6264 fi 6265 6266 CFLAGS="$CFLAGS -Wunused" 6267 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6269$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6270 cacheid=xorg_cv_cc_flag__Wunused 6271 if eval \${$cacheid+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275/* end confdefs.h. */ 6276int i; 6277int 6278main () 6279{ 6280 6281 ; 6282 return 0; 6283} 6284_ACEOF 6285if ac_fn_c_try_link "$LINENO"; then : 6286 eval $cacheid=yes 6287else 6288 eval $cacheid=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext \ 6291 conftest$ac_exeext conftest.$ac_ext 6292fi 6293 6294 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296 6297 eval supported=\$$cacheid 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6299$as_echo "$supported" >&6; } 6300 if test "$supported" = "yes" ; then 6301 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6302 found="yes" 6303 fi 6304 fi 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320xorg_testset_save_CFLAGS="$CFLAGS" 6321 6322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331int i; 6332_ACEOF 6333if ac_fn_c_try_compile "$LINENO"; then : 6334 xorg_cv_cc_flag_unknown_warning_option=yes 6335else 6336 xorg_cv_cc_flag_unknown_warning_option=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6339fi 6340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344fi 6345 6346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6349 fi 6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355else 6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6357/* end confdefs.h. */ 6358int i; 6359_ACEOF 6360if ac_fn_c_try_compile "$LINENO"; then : 6361 xorg_cv_cc_flag_unused_command_line_argument=yes 6362else 6363 xorg_cv_cc_flag_unused_command_line_argument=no 6364fi 6365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6366fi 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6370 CFLAGS="$xorg_testset_save_CFLAGS" 6371fi 6372 6373found="no" 6374 6375 if test $found = "no" ; then 6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378 fi 6379 6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6382 fi 6383 6384 CFLAGS="$CFLAGS -Wuninitialized" 6385 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6387$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6388 cacheid=xorg_cv_cc_flag__Wuninitialized 6389 if eval \${$cacheid+:} false; then : 6390 $as_echo_n "(cached) " >&6 6391else 6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394int i; 6395int 6396main () 6397{ 6398 6399 ; 6400 return 0; 6401} 6402_ACEOF 6403if ac_fn_c_try_link "$LINENO"; then : 6404 eval $cacheid=yes 6405else 6406 eval $cacheid=no 6407fi 6408rm -f core conftest.err conftest.$ac_objext \ 6409 conftest$ac_exeext conftest.$ac_ext 6410fi 6411 6412 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414 6415 eval supported=\$$cacheid 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6417$as_echo "$supported" >&6; } 6418 if test "$supported" = "yes" ; then 6419 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6420 found="yes" 6421 fi 6422 fi 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438xorg_testset_save_CFLAGS="$CFLAGS" 6439 6440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446else 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449int i; 6450_ACEOF 6451if ac_fn_c_try_compile "$LINENO"; then : 6452 xorg_cv_cc_flag_unknown_warning_option=yes 6453else 6454 xorg_cv_cc_flag_unknown_warning_option=no 6455fi 6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6457fi 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462fi 6463 6464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473else 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475/* end confdefs.h. */ 6476int i; 6477_ACEOF 6478if ac_fn_c_try_compile "$LINENO"; then : 6479 xorg_cv_cc_flag_unused_command_line_argument=yes 6480else 6481 xorg_cv_cc_flag_unused_command_line_argument=no 6482fi 6483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6484fi 6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489fi 6490 6491found="no" 6492 6493 if test $found = "no" ; then 6494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6496 fi 6497 6498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6500 fi 6501 6502 CFLAGS="$CFLAGS -Wshadow" 6503 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6505$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6506 cacheid=xorg_cv_cc_flag__Wshadow 6507 if eval \${$cacheid+:} false; then : 6508 $as_echo_n "(cached) " >&6 6509else 6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6511/* end confdefs.h. */ 6512int i; 6513int 6514main () 6515{ 6516 6517 ; 6518 return 0; 6519} 6520_ACEOF 6521if ac_fn_c_try_link "$LINENO"; then : 6522 eval $cacheid=yes 6523else 6524 eval $cacheid=no 6525fi 6526rm -f core conftest.err conftest.$ac_objext \ 6527 conftest$ac_exeext conftest.$ac_ext 6528fi 6529 6530 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532 6533 eval supported=\$$cacheid 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6535$as_echo "$supported" >&6; } 6536 if test "$supported" = "yes" ; then 6537 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6538 found="yes" 6539 fi 6540 fi 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556xorg_testset_save_CFLAGS="$CFLAGS" 6557 6558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6566/* end confdefs.h. */ 6567int i; 6568_ACEOF 6569if ac_fn_c_try_compile "$LINENO"; then : 6570 xorg_cv_cc_flag_unknown_warning_option=yes 6571else 6572 xorg_cv_cc_flag_unknown_warning_option=no 6573fi 6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575fi 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580fi 6581 6582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6585 fi 6586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591else 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593/* end confdefs.h. */ 6594int i; 6595_ACEOF 6596if ac_fn_c_try_compile "$LINENO"; then : 6597 xorg_cv_cc_flag_unused_command_line_argument=yes 6598else 6599 xorg_cv_cc_flag_unused_command_line_argument=no 6600fi 6601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6602fi 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6606 CFLAGS="$xorg_testset_save_CFLAGS" 6607fi 6608 6609found="no" 6610 6611 if test $found = "no" ; then 6612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6614 fi 6615 6616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6618 fi 6619 6620 CFLAGS="$CFLAGS -Wmissing-noreturn" 6621 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6623$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6624 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6625 if eval \${$cacheid+:} false; then : 6626 $as_echo_n "(cached) " >&6 6627else 6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6629/* end confdefs.h. */ 6630int i; 6631int 6632main () 6633{ 6634 6635 ; 6636 return 0; 6637} 6638_ACEOF 6639if ac_fn_c_try_link "$LINENO"; then : 6640 eval $cacheid=yes 6641else 6642 eval $cacheid=no 6643fi 6644rm -f core conftest.err conftest.$ac_objext \ 6645 conftest$ac_exeext conftest.$ac_ext 6646fi 6647 6648 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650 6651 eval supported=\$$cacheid 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6653$as_echo "$supported" >&6; } 6654 if test "$supported" = "yes" ; then 6655 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6656 found="yes" 6657 fi 6658 fi 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674xorg_testset_save_CFLAGS="$CFLAGS" 6675 6676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685int i; 6686_ACEOF 6687if ac_fn_c_try_compile "$LINENO"; then : 6688 xorg_cv_cc_flag_unknown_warning_option=yes 6689else 6690 xorg_cv_cc_flag_unknown_warning_option=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6693fi 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698fi 6699 6700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 fi 6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6708 $as_echo_n "(cached) " >&6 6709else 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711/* end confdefs.h. */ 6712int i; 6713_ACEOF 6714if ac_fn_c_try_compile "$LINENO"; then : 6715 xorg_cv_cc_flag_unused_command_line_argument=yes 6716else 6717 xorg_cv_cc_flag_unused_command_line_argument=no 6718fi 6719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6720fi 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6724 CFLAGS="$xorg_testset_save_CFLAGS" 6725fi 6726 6727found="no" 6728 6729 if test $found = "no" ; then 6730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6732 fi 6733 6734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6736 fi 6737 6738 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6739 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6741$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6742 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6743 if eval \${$cacheid+:} false; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6747/* end confdefs.h. */ 6748int i; 6749int 6750main () 6751{ 6752 6753 ; 6754 return 0; 6755} 6756_ACEOF 6757if ac_fn_c_try_link "$LINENO"; then : 6758 eval $cacheid=yes 6759else 6760 eval $cacheid=no 6761fi 6762rm -f core conftest.err conftest.$ac_objext \ 6763 conftest$ac_exeext conftest.$ac_ext 6764fi 6765 6766 6767 CFLAGS="$xorg_testset_save_CFLAGS" 6768 6769 eval supported=\$$cacheid 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6771$as_echo "$supported" >&6; } 6772 if test "$supported" = "yes" ; then 6773 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6774 found="yes" 6775 fi 6776 fi 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792xorg_testset_save_CFLAGS="$CFLAGS" 6793 6794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800else 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802/* end confdefs.h. */ 6803int i; 6804_ACEOF 6805if ac_fn_c_try_compile "$LINENO"; then : 6806 xorg_cv_cc_flag_unknown_warning_option=yes 6807else 6808 xorg_cv_cc_flag_unknown_warning_option=no 6809fi 6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6811fi 6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816fi 6817 6818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821 fi 6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827else 6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6829/* end confdefs.h. */ 6830int i; 6831_ACEOF 6832if ac_fn_c_try_compile "$LINENO"; then : 6833 xorg_cv_cc_flag_unused_command_line_argument=yes 6834else 6835 xorg_cv_cc_flag_unused_command_line_argument=no 6836fi 6837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6838fi 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6842 CFLAGS="$xorg_testset_save_CFLAGS" 6843fi 6844 6845found="no" 6846 6847 if test $found = "no" ; then 6848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6850 fi 6851 6852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6854 fi 6855 6856 CFLAGS="$CFLAGS -Wredundant-decls" 6857 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6859$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6860 cacheid=xorg_cv_cc_flag__Wredundant_decls 6861 if eval \${$cacheid+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6865/* end confdefs.h. */ 6866int i; 6867int 6868main () 6869{ 6870 6871 ; 6872 return 0; 6873} 6874_ACEOF 6875if ac_fn_c_try_link "$LINENO"; then : 6876 eval $cacheid=yes 6877else 6878 eval $cacheid=no 6879fi 6880rm -f core conftest.err conftest.$ac_objext \ 6881 conftest$ac_exeext conftest.$ac_ext 6882fi 6883 6884 6885 CFLAGS="$xorg_testset_save_CFLAGS" 6886 6887 eval supported=\$$cacheid 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6889$as_echo "$supported" >&6; } 6890 if test "$supported" = "yes" ; then 6891 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6892 found="yes" 6893 fi 6894 fi 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910xorg_testset_save_CFLAGS="$CFLAGS" 6911 6912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920/* end confdefs.h. */ 6921int i; 6922_ACEOF 6923if ac_fn_c_try_compile "$LINENO"; then : 6924 xorg_cv_cc_flag_unknown_warning_option=yes 6925else 6926 xorg_cv_cc_flag_unknown_warning_option=no 6927fi 6928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6929fi 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6933 CFLAGS="$xorg_testset_save_CFLAGS" 6934fi 6935 6936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 fi 6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948int i; 6949_ACEOF 6950if ac_fn_c_try_compile "$LINENO"; then : 6951 xorg_cv_cc_flag_unused_command_line_argument=yes 6952else 6953 xorg_cv_cc_flag_unused_command_line_argument=no 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6956fi 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961fi 6962 6963found="no" 6964 6965 if test $found = "no" ; then 6966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6968 fi 6969 6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6972 fi 6973 6974 CFLAGS="$CFLAGS -Wlogical-op" 6975 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6977$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6978 cacheid=xorg_cv_cc_flag__Wlogical_op 6979 if eval \${$cacheid+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6983/* end confdefs.h. */ 6984int i; 6985int 6986main () 6987{ 6988 6989 ; 6990 return 0; 6991} 6992_ACEOF 6993if ac_fn_c_try_link "$LINENO"; then : 6994 eval $cacheid=yes 6995else 6996 eval $cacheid=no 6997fi 6998rm -f core conftest.err conftest.$ac_objext \ 6999 conftest$ac_exeext conftest.$ac_ext 7000fi 7001 7002 7003 CFLAGS="$xorg_testset_save_CFLAGS" 7004 7005 eval supported=\$$cacheid 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7007$as_echo "$supported" >&6; } 7008 if test "$supported" = "yes" ; then 7009 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7010 found="yes" 7011 fi 7012 fi 7013 7014 7015 7016# These are currently disabled because they are noisy. They will be enabled 7017# in the future once the codebase is sufficiently modernized to silence 7018# them. For now, I don't want them to drown out the other warnings. 7019# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7020# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7021# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7022 7023# Turn some warnings into errors, so we don't accidently get successful builds 7024# when there are problems that should be fixed. 7025 7026if test "x$SELECTIVE_WERROR" = "xyes" ; then 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040xorg_testset_save_CFLAGS="$CFLAGS" 7041 7042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051int i; 7052_ACEOF 7053if ac_fn_c_try_compile "$LINENO"; then : 7054 xorg_cv_cc_flag_unknown_warning_option=yes 7055else 7056 xorg_cv_cc_flag_unknown_warning_option=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077/* end confdefs.h. */ 7078int i; 7079_ACEOF 7080if ac_fn_c_try_compile "$LINENO"; then : 7081 xorg_cv_cc_flag_unused_command_line_argument=yes 7082else 7083 xorg_cv_cc_flag_unused_command_line_argument=no 7084fi 7085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7086fi 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7090 CFLAGS="$xorg_testset_save_CFLAGS" 7091fi 7092 7093found="no" 7094 7095 if test $found = "no" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7102 fi 7103 7104 CFLAGS="$CFLAGS -Werror=implicit" 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7107$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7108 cacheid=xorg_cv_cc_flag__Werror_implicit 7109 if eval \${$cacheid+:} false; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7113/* end confdefs.h. */ 7114int i; 7115int 7116main () 7117{ 7118 7119 ; 7120 return 0; 7121} 7122_ACEOF 7123if ac_fn_c_try_link "$LINENO"; then : 7124 eval $cacheid=yes 7125else 7126 eval $cacheid=no 7127fi 7128rm -f core conftest.err conftest.$ac_objext \ 7129 conftest$ac_exeext conftest.$ac_ext 7130fi 7131 7132 7133 CFLAGS="$xorg_testset_save_CFLAGS" 7134 7135 eval supported=\$$cacheid 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7137$as_echo "$supported" >&6; } 7138 if test "$supported" = "yes" ; then 7139 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7140 found="yes" 7141 fi 7142 fi 7143 7144 if test $found = "no" ; then 7145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7147 fi 7148 7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7151 fi 7152 7153 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7154 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7156$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7157 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7158 if eval \${$cacheid+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162/* end confdefs.h. */ 7163int i; 7164int 7165main () 7166{ 7167 7168 ; 7169 return 0; 7170} 7171_ACEOF 7172if ac_fn_c_try_link "$LINENO"; then : 7173 eval $cacheid=yes 7174else 7175 eval $cacheid=no 7176fi 7177rm -f core conftest.err conftest.$ac_objext \ 7178 conftest$ac_exeext conftest.$ac_ext 7179fi 7180 7181 7182 CFLAGS="$xorg_testset_save_CFLAGS" 7183 7184 eval supported=\$$cacheid 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7186$as_echo "$supported" >&6; } 7187 if test "$supported" = "yes" ; then 7188 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7189 found="yes" 7190 fi 7191 fi 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207xorg_testset_save_CFLAGS="$CFLAGS" 7208 7209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217/* end confdefs.h. */ 7218int i; 7219_ACEOF 7220if ac_fn_c_try_compile "$LINENO"; then : 7221 xorg_cv_cc_flag_unknown_warning_option=yes 7222else 7223 xorg_cv_cc_flag_unknown_warning_option=no 7224fi 7225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7226fi 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7230 CFLAGS="$xorg_testset_save_CFLAGS" 7231fi 7232 7233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7236 fi 7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242else 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244/* end confdefs.h. */ 7245int i; 7246_ACEOF 7247if ac_fn_c_try_compile "$LINENO"; then : 7248 xorg_cv_cc_flag_unused_command_line_argument=yes 7249else 7250 xorg_cv_cc_flag_unused_command_line_argument=no 7251fi 7252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7253fi 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7257 CFLAGS="$xorg_testset_save_CFLAGS" 7258fi 7259 7260found="no" 7261 7262 if test $found = "no" ; then 7263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265 fi 7266 7267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7269 fi 7270 7271 CFLAGS="$CFLAGS -Werror=nonnull" 7272 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7274$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7275 cacheid=xorg_cv_cc_flag__Werror_nonnull 7276 if eval \${$cacheid+:} false; then : 7277 $as_echo_n "(cached) " >&6 7278else 7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280/* end confdefs.h. */ 7281int i; 7282int 7283main () 7284{ 7285 7286 ; 7287 return 0; 7288} 7289_ACEOF 7290if ac_fn_c_try_link "$LINENO"; then : 7291 eval $cacheid=yes 7292else 7293 eval $cacheid=no 7294fi 7295rm -f core conftest.err conftest.$ac_objext \ 7296 conftest$ac_exeext conftest.$ac_ext 7297fi 7298 7299 7300 CFLAGS="$xorg_testset_save_CFLAGS" 7301 7302 eval supported=\$$cacheid 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7304$as_echo "$supported" >&6; } 7305 if test "$supported" = "yes" ; then 7306 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7307 found="yes" 7308 fi 7309 fi 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325xorg_testset_save_CFLAGS="$CFLAGS" 7326 7327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7330$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7331if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333else 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337_ACEOF 7338if ac_fn_c_try_compile "$LINENO"; then : 7339 xorg_cv_cc_flag_unknown_warning_option=yes 7340else 7341 xorg_cv_cc_flag_unknown_warning_option=no 7342fi 7343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7344fi 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7346$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349fi 7350 7351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 fi 7355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7357$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7358if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363int i; 7364_ACEOF 7365if ac_fn_c_try_compile "$LINENO"; then : 7366 xorg_cv_cc_flag_unused_command_line_argument=yes 7367else 7368 xorg_cv_cc_flag_unused_command_line_argument=no 7369fi 7370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7371fi 7372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7373$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7375 CFLAGS="$xorg_testset_save_CFLAGS" 7376fi 7377 7378found="no" 7379 7380 if test $found = "no" ; then 7381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7383 fi 7384 7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7387 fi 7388 7389 CFLAGS="$CFLAGS -Werror=init-self" 7390 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7392$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7393 cacheid=xorg_cv_cc_flag__Werror_init_self 7394 if eval \${$cacheid+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7398/* end confdefs.h. */ 7399int i; 7400int 7401main () 7402{ 7403 7404 ; 7405 return 0; 7406} 7407_ACEOF 7408if ac_fn_c_try_link "$LINENO"; then : 7409 eval $cacheid=yes 7410else 7411 eval $cacheid=no 7412fi 7413rm -f core conftest.err conftest.$ac_objext \ 7414 conftest$ac_exeext conftest.$ac_ext 7415fi 7416 7417 7418 CFLAGS="$xorg_testset_save_CFLAGS" 7419 7420 eval supported=\$$cacheid 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7422$as_echo "$supported" >&6; } 7423 if test "$supported" = "yes" ; then 7424 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7425 found="yes" 7426 fi 7427 fi 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443xorg_testset_save_CFLAGS="$CFLAGS" 7444 7445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7448$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7449if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454int i; 7455_ACEOF 7456if ac_fn_c_try_compile "$LINENO"; then : 7457 xorg_cv_cc_flag_unknown_warning_option=yes 7458else 7459 xorg_cv_cc_flag_unknown_warning_option=no 7460fi 7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7462fi 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7464$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7466 CFLAGS="$xorg_testset_save_CFLAGS" 7467fi 7468 7469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7472 fi 7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7475$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7476if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480/* end confdefs.h. */ 7481int i; 7482_ACEOF 7483if ac_fn_c_try_compile "$LINENO"; then : 7484 xorg_cv_cc_flag_unused_command_line_argument=yes 7485else 7486 xorg_cv_cc_flag_unused_command_line_argument=no 7487fi 7488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7489fi 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7491$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494fi 7495 7496found="no" 7497 7498 if test $found = "no" ; then 7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 fi 7502 7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7505 fi 7506 7507 CFLAGS="$CFLAGS -Werror=main" 7508 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7510$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7511 cacheid=xorg_cv_cc_flag__Werror_main 7512 if eval \${$cacheid+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7516/* end confdefs.h. */ 7517int i; 7518int 7519main () 7520{ 7521 7522 ; 7523 return 0; 7524} 7525_ACEOF 7526if ac_fn_c_try_link "$LINENO"; then : 7527 eval $cacheid=yes 7528else 7529 eval $cacheid=no 7530fi 7531rm -f core conftest.err conftest.$ac_objext \ 7532 conftest$ac_exeext conftest.$ac_ext 7533fi 7534 7535 7536 CFLAGS="$xorg_testset_save_CFLAGS" 7537 7538 eval supported=\$$cacheid 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7540$as_echo "$supported" >&6; } 7541 if test "$supported" = "yes" ; then 7542 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7543 found="yes" 7544 fi 7545 fi 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561xorg_testset_save_CFLAGS="$CFLAGS" 7562 7563if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7566$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7567if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572int i; 7573_ACEOF 7574if ac_fn_c_try_compile "$LINENO"; then : 7575 xorg_cv_cc_flag_unknown_warning_option=yes 7576else 7577 xorg_cv_cc_flag_unknown_warning_option=no 7578fi 7579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7580fi 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7582$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585fi 7586 7587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7590 fi 7591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7593$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7594if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596else 7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7598/* end confdefs.h. */ 7599int i; 7600_ACEOF 7601if ac_fn_c_try_compile "$LINENO"; then : 7602 xorg_cv_cc_flag_unused_command_line_argument=yes 7603else 7604 xorg_cv_cc_flag_unused_command_line_argument=no 7605fi 7606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7607fi 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7609$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612fi 7613 7614found="no" 7615 7616 if test $found = "no" ; then 7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7619 fi 7620 7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7623 fi 7624 7625 CFLAGS="$CFLAGS -Werror=missing-braces" 7626 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7628$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7629 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7630 if eval \${$cacheid+:} false; then : 7631 $as_echo_n "(cached) " >&6 7632else 7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635int i; 7636int 7637main () 7638{ 7639 7640 ; 7641 return 0; 7642} 7643_ACEOF 7644if ac_fn_c_try_link "$LINENO"; then : 7645 eval $cacheid=yes 7646else 7647 eval $cacheid=no 7648fi 7649rm -f core conftest.err conftest.$ac_objext \ 7650 conftest$ac_exeext conftest.$ac_ext 7651fi 7652 7653 7654 CFLAGS="$xorg_testset_save_CFLAGS" 7655 7656 eval supported=\$$cacheid 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7658$as_echo "$supported" >&6; } 7659 if test "$supported" = "yes" ; then 7660 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7661 found="yes" 7662 fi 7663 fi 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679xorg_testset_save_CFLAGS="$CFLAGS" 7680 7681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7684$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7685if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687else 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689/* end confdefs.h. */ 7690int i; 7691_ACEOF 7692if ac_fn_c_try_compile "$LINENO"; then : 7693 xorg_cv_cc_flag_unknown_warning_option=yes 7694else 7695 xorg_cv_cc_flag_unknown_warning_option=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7698fi 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7700$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703fi 7704 7705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 fi 7709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7711$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7712if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714else 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716/* end confdefs.h. */ 7717int i; 7718_ACEOF 7719if ac_fn_c_try_compile "$LINENO"; then : 7720 xorg_cv_cc_flag_unused_command_line_argument=yes 7721else 7722 xorg_cv_cc_flag_unused_command_line_argument=no 7723fi 7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7725fi 7726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7727$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7729 CFLAGS="$xorg_testset_save_CFLAGS" 7730fi 7731 7732found="no" 7733 7734 if test $found = "no" ; then 7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7737 fi 7738 7739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7741 fi 7742 7743 CFLAGS="$CFLAGS -Werror=sequence-point" 7744 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7746$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7747 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7748 if eval \${$cacheid+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750else 7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752/* end confdefs.h. */ 7753int i; 7754int 7755main () 7756{ 7757 7758 ; 7759 return 0; 7760} 7761_ACEOF 7762if ac_fn_c_try_link "$LINENO"; then : 7763 eval $cacheid=yes 7764else 7765 eval $cacheid=no 7766fi 7767rm -f core conftest.err conftest.$ac_objext \ 7768 conftest$ac_exeext conftest.$ac_ext 7769fi 7770 7771 7772 CFLAGS="$xorg_testset_save_CFLAGS" 7773 7774 eval supported=\$$cacheid 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7776$as_echo "$supported" >&6; } 7777 if test "$supported" = "yes" ; then 7778 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7779 found="yes" 7780 fi 7781 fi 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797xorg_testset_save_CFLAGS="$CFLAGS" 7798 7799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7802$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7803if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809_ACEOF 7810if ac_fn_c_try_compile "$LINENO"; then : 7811 xorg_cv_cc_flag_unknown_warning_option=yes 7812else 7813 xorg_cv_cc_flag_unknown_warning_option=no 7814fi 7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816fi 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7818$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821fi 7822 7823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 fi 7827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7829$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7830if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834/* end confdefs.h. */ 7835int i; 7836_ACEOF 7837if ac_fn_c_try_compile "$LINENO"; then : 7838 xorg_cv_cc_flag_unused_command_line_argument=yes 7839else 7840 xorg_cv_cc_flag_unused_command_line_argument=no 7841fi 7842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7843fi 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7845$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7847 CFLAGS="$xorg_testset_save_CFLAGS" 7848fi 7849 7850found="no" 7851 7852 if test $found = "no" ; then 7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 fi 7856 7857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7859 fi 7860 7861 CFLAGS="$CFLAGS -Werror=return-type" 7862 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7864$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7865 cacheid=xorg_cv_cc_flag__Werror_return_type 7866 if eval \${$cacheid+:} false; then : 7867 $as_echo_n "(cached) " >&6 7868else 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870/* end confdefs.h. */ 7871int i; 7872int 7873main () 7874{ 7875 7876 ; 7877 return 0; 7878} 7879_ACEOF 7880if ac_fn_c_try_link "$LINENO"; then : 7881 eval $cacheid=yes 7882else 7883 eval $cacheid=no 7884fi 7885rm -f core conftest.err conftest.$ac_objext \ 7886 conftest$ac_exeext conftest.$ac_ext 7887fi 7888 7889 7890 CFLAGS="$xorg_testset_save_CFLAGS" 7891 7892 eval supported=\$$cacheid 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7894$as_echo "$supported" >&6; } 7895 if test "$supported" = "yes" ; then 7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7897 found="yes" 7898 fi 7899 fi 7900 7901 if test $found = "no" ; then 7902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7904 fi 7905 7906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7908 fi 7909 7910 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7911 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7913$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7914 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7915 if eval \${$cacheid+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917else 7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7919/* end confdefs.h. */ 7920int i; 7921int 7922main () 7923{ 7924 7925 ; 7926 return 0; 7927} 7928_ACEOF 7929if ac_fn_c_try_link "$LINENO"; then : 7930 eval $cacheid=yes 7931else 7932 eval $cacheid=no 7933fi 7934rm -f core conftest.err conftest.$ac_objext \ 7935 conftest$ac_exeext conftest.$ac_ext 7936fi 7937 7938 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7940 7941 eval supported=\$$cacheid 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7943$as_echo "$supported" >&6; } 7944 if test "$supported" = "yes" ; then 7945 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7946 found="yes" 7947 fi 7948 fi 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964xorg_testset_save_CFLAGS="$CFLAGS" 7965 7966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974/* end confdefs.h. */ 7975int i; 7976_ACEOF 7977if ac_fn_c_try_compile "$LINENO"; then : 7978 xorg_cv_cc_flag_unknown_warning_option=yes 7979else 7980 xorg_cv_cc_flag_unknown_warning_option=no 7981fi 7982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7983fi 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988fi 7989 7990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999else 8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8001/* end confdefs.h. */ 8002int i; 8003_ACEOF 8004if ac_fn_c_try_compile "$LINENO"; then : 8005 xorg_cv_cc_flag_unused_command_line_argument=yes 8006else 8007 xorg_cv_cc_flag_unused_command_line_argument=no 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8010fi 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015fi 8016 8017found="no" 8018 8019 if test $found = "no" ; then 8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 fi 8023 8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8026 fi 8027 8028 CFLAGS="$CFLAGS -Werror=trigraphs" 8029 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8031$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8032 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8033 if eval \${$cacheid+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037/* end confdefs.h. */ 8038int i; 8039int 8040main () 8041{ 8042 8043 ; 8044 return 0; 8045} 8046_ACEOF 8047if ac_fn_c_try_link "$LINENO"; then : 8048 eval $cacheid=yes 8049else 8050 eval $cacheid=no 8051fi 8052rm -f core conftest.err conftest.$ac_objext \ 8053 conftest$ac_exeext conftest.$ac_ext 8054fi 8055 8056 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058 8059 eval supported=\$$cacheid 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8061$as_echo "$supported" >&6; } 8062 if test "$supported" = "yes" ; then 8063 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8064 found="yes" 8065 fi 8066 fi 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082xorg_testset_save_CFLAGS="$CFLAGS" 8083 8084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090else 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093int i; 8094_ACEOF 8095if ac_fn_c_try_compile "$LINENO"; then : 8096 xorg_cv_cc_flag_unknown_warning_option=yes 8097else 8098 xorg_cv_cc_flag_unknown_warning_option=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8101fi 8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106fi 8107 8108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 fi 8112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8116 $as_echo_n "(cached) " >&6 8117else 8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8119/* end confdefs.h. */ 8120int i; 8121_ACEOF 8122if ac_fn_c_try_compile "$LINENO"; then : 8123 xorg_cv_cc_flag_unused_command_line_argument=yes 8124else 8125 xorg_cv_cc_flag_unused_command_line_argument=no 8126fi 8127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8128fi 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8132 CFLAGS="$xorg_testset_save_CFLAGS" 8133fi 8134 8135found="no" 8136 8137 if test $found = "no" ; then 8138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8140 fi 8141 8142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8144 fi 8145 8146 CFLAGS="$CFLAGS -Werror=array-bounds" 8147 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8149$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8150 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8151 if eval \${$cacheid+:} false; then : 8152 $as_echo_n "(cached) " >&6 8153else 8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155/* end confdefs.h. */ 8156int i; 8157int 8158main () 8159{ 8160 8161 ; 8162 return 0; 8163} 8164_ACEOF 8165if ac_fn_c_try_link "$LINENO"; then : 8166 eval $cacheid=yes 8167else 8168 eval $cacheid=no 8169fi 8170rm -f core conftest.err conftest.$ac_objext \ 8171 conftest$ac_exeext conftest.$ac_ext 8172fi 8173 8174 8175 CFLAGS="$xorg_testset_save_CFLAGS" 8176 8177 eval supported=\$$cacheid 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8179$as_echo "$supported" >&6; } 8180 if test "$supported" = "yes" ; then 8181 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8182 found="yes" 8183 fi 8184 fi 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200xorg_testset_save_CFLAGS="$CFLAGS" 8201 8202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208else 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210/* end confdefs.h. */ 8211int i; 8212_ACEOF 8213if ac_fn_c_try_compile "$LINENO"; then : 8214 xorg_cv_cc_flag_unknown_warning_option=yes 8215else 8216 xorg_cv_cc_flag_unknown_warning_option=no 8217fi 8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8219fi 8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224fi 8225 8226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8229 fi 8230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237/* end confdefs.h. */ 8238int i; 8239_ACEOF 8240if ac_fn_c_try_compile "$LINENO"; then : 8241 xorg_cv_cc_flag_unused_command_line_argument=yes 8242else 8243 xorg_cv_cc_flag_unused_command_line_argument=no 8244fi 8245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8246fi 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8250 CFLAGS="$xorg_testset_save_CFLAGS" 8251fi 8252 8253found="no" 8254 8255 if test $found = "no" ; then 8256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8258 fi 8259 8260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8262 fi 8263 8264 CFLAGS="$CFLAGS -Werror=write-strings" 8265 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8267$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8268 cacheid=xorg_cv_cc_flag__Werror_write_strings 8269 if eval \${$cacheid+:} false; then : 8270 $as_echo_n "(cached) " >&6 8271else 8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274int i; 8275int 8276main () 8277{ 8278 8279 ; 8280 return 0; 8281} 8282_ACEOF 8283if ac_fn_c_try_link "$LINENO"; then : 8284 eval $cacheid=yes 8285else 8286 eval $cacheid=no 8287fi 8288rm -f core conftest.err conftest.$ac_objext \ 8289 conftest$ac_exeext conftest.$ac_ext 8290fi 8291 8292 8293 CFLAGS="$xorg_testset_save_CFLAGS" 8294 8295 eval supported=\$$cacheid 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8297$as_echo "$supported" >&6; } 8298 if test "$supported" = "yes" ; then 8299 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8300 found="yes" 8301 fi 8302 fi 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318xorg_testset_save_CFLAGS="$CFLAGS" 8319 8320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329int i; 8330_ACEOF 8331if ac_fn_c_try_compile "$LINENO"; then : 8332 xorg_cv_cc_flag_unknown_warning_option=yes 8333else 8334 xorg_cv_cc_flag_unknown_warning_option=no 8335fi 8336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342fi 8343 8344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 fi 8348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353else 8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8355/* end confdefs.h. */ 8356int i; 8357_ACEOF 8358if ac_fn_c_try_compile "$LINENO"; then : 8359 xorg_cv_cc_flag_unused_command_line_argument=yes 8360else 8361 xorg_cv_cc_flag_unused_command_line_argument=no 8362fi 8363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8364fi 8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369fi 8370 8371found="no" 8372 8373 if test $found = "no" ; then 8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 fi 8377 8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8380 fi 8381 8382 CFLAGS="$CFLAGS -Werror=address" 8383 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8385$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8386 cacheid=xorg_cv_cc_flag__Werror_address 8387 if eval \${$cacheid+:} false; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392int i; 8393int 8394main () 8395{ 8396 8397 ; 8398 return 0; 8399} 8400_ACEOF 8401if ac_fn_c_try_link "$LINENO"; then : 8402 eval $cacheid=yes 8403else 8404 eval $cacheid=no 8405fi 8406rm -f core conftest.err conftest.$ac_objext \ 8407 conftest$ac_exeext conftest.$ac_ext 8408fi 8409 8410 8411 CFLAGS="$xorg_testset_save_CFLAGS" 8412 8413 eval supported=\$$cacheid 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8415$as_echo "$supported" >&6; } 8416 if test "$supported" = "yes" ; then 8417 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8418 found="yes" 8419 fi 8420 fi 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436xorg_testset_save_CFLAGS="$CFLAGS" 8437 8438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447int i; 8448_ACEOF 8449if ac_fn_c_try_compile "$LINENO"; then : 8450 xorg_cv_cc_flag_unknown_warning_option=yes 8451else 8452 xorg_cv_cc_flag_unknown_warning_option=no 8453fi 8454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8455fi 8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460fi 8461 8462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471else 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473/* end confdefs.h. */ 8474int i; 8475_ACEOF 8476if ac_fn_c_try_compile "$LINENO"; then : 8477 xorg_cv_cc_flag_unused_command_line_argument=yes 8478else 8479 xorg_cv_cc_flag_unused_command_line_argument=no 8480fi 8481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8482fi 8483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487fi 8488 8489found="no" 8490 8491 if test $found = "no" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8498 fi 8499 8500 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8501 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8503$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8504 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8505 if eval \${$cacheid+:} false; then : 8506 $as_echo_n "(cached) " >&6 8507else 8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509/* end confdefs.h. */ 8510int i; 8511int 8512main () 8513{ 8514 8515 ; 8516 return 0; 8517} 8518_ACEOF 8519if ac_fn_c_try_link "$LINENO"; then : 8520 eval $cacheid=yes 8521else 8522 eval $cacheid=no 8523fi 8524rm -f core conftest.err conftest.$ac_objext \ 8525 conftest$ac_exeext conftest.$ac_ext 8526fi 8527 8528 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530 8531 eval supported=\$$cacheid 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8533$as_echo "$supported" >&6; } 8534 if test "$supported" = "yes" ; then 8535 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8536 found="yes" 8537 fi 8538 fi 8539 8540 if test $found = "no" ; then 8541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8543 fi 8544 8545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8547 fi 8548 8549 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8550 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8552$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8553 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8554 if eval \${$cacheid+:} false; then : 8555 $as_echo_n "(cached) " >&6 8556else 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558/* end confdefs.h. */ 8559int i; 8560int 8561main () 8562{ 8563 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568if ac_fn_c_try_link "$LINENO"; then : 8569 eval $cacheid=yes 8570else 8571 eval $cacheid=no 8572fi 8573rm -f core conftest.err conftest.$ac_objext \ 8574 conftest$ac_exeext conftest.$ac_ext 8575fi 8576 8577 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579 8580 eval supported=\$$cacheid 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8582$as_echo "$supported" >&6; } 8583 if test "$supported" = "yes" ; then 8584 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8585 found="yes" 8586 fi 8587 fi 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603xorg_testset_save_CFLAGS="$CFLAGS" 8604 8605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613/* end confdefs.h. */ 8614int i; 8615_ACEOF 8616if ac_fn_c_try_compile "$LINENO"; then : 8617 xorg_cv_cc_flag_unknown_warning_option=yes 8618else 8619 xorg_cv_cc_flag_unknown_warning_option=no 8620fi 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622fi 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627fi 8628 8629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640/* end confdefs.h. */ 8641int i; 8642_ACEOF 8643if ac_fn_c_try_compile "$LINENO"; then : 8644 xorg_cv_cc_flag_unused_command_line_argument=yes 8645else 8646 xorg_cv_cc_flag_unused_command_line_argument=no 8647fi 8648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8649fi 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8653 CFLAGS="$xorg_testset_save_CFLAGS" 8654fi 8655 8656found="no" 8657 8658 if test $found = "no" ; then 8659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 fi 8662 8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 fi 8666 8667 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8668 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8670$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8671 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8672 if eval \${$cacheid+:} false; then : 8673 $as_echo_n "(cached) " >&6 8674else 8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8676/* end confdefs.h. */ 8677int i; 8678int 8679main () 8680{ 8681 8682 ; 8683 return 0; 8684} 8685_ACEOF 8686if ac_fn_c_try_link "$LINENO"; then : 8687 eval $cacheid=yes 8688else 8689 eval $cacheid=no 8690fi 8691rm -f core conftest.err conftest.$ac_objext \ 8692 conftest$ac_exeext conftest.$ac_ext 8693fi 8694 8695 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697 8698 eval supported=\$$cacheid 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8700$as_echo "$supported" >&6; } 8701 if test "$supported" = "yes" ; then 8702 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8703 found="yes" 8704 fi 8705 fi 8706 8707 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8708else 8709{ $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 8710$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;} 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724xorg_testset_save_CFLAGS="$CFLAGS" 8725 8726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735int i; 8736_ACEOF 8737if ac_fn_c_try_compile "$LINENO"; then : 8738 xorg_cv_cc_flag_unknown_warning_option=yes 8739else 8740 xorg_cv_cc_flag_unknown_warning_option=no 8741fi 8742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8743fi 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748fi 8749 8750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8753 fi 8754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8758 $as_echo_n "(cached) " >&6 8759else 8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8761/* end confdefs.h. */ 8762int i; 8763_ACEOF 8764if ac_fn_c_try_compile "$LINENO"; then : 8765 xorg_cv_cc_flag_unused_command_line_argument=yes 8766else 8767 xorg_cv_cc_flag_unused_command_line_argument=no 8768fi 8769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8770fi 8771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8774 CFLAGS="$xorg_testset_save_CFLAGS" 8775fi 8776 8777found="no" 8778 8779 if test $found = "no" ; then 8780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782 fi 8783 8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8786 fi 8787 8788 CFLAGS="$CFLAGS -Wimplicit" 8789 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8791$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8792 cacheid=xorg_cv_cc_flag__Wimplicit 8793 if eval \${$cacheid+:} false; then : 8794 $as_echo_n "(cached) " >&6 8795else 8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8797/* end confdefs.h. */ 8798int i; 8799int 8800main () 8801{ 8802 8803 ; 8804 return 0; 8805} 8806_ACEOF 8807if ac_fn_c_try_link "$LINENO"; then : 8808 eval $cacheid=yes 8809else 8810 eval $cacheid=no 8811fi 8812rm -f core conftest.err conftest.$ac_objext \ 8813 conftest$ac_exeext conftest.$ac_ext 8814fi 8815 8816 8817 CFLAGS="$xorg_testset_save_CFLAGS" 8818 8819 eval supported=\$$cacheid 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8821$as_echo "$supported" >&6; } 8822 if test "$supported" = "yes" ; then 8823 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8824 found="yes" 8825 fi 8826 fi 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842xorg_testset_save_CFLAGS="$CFLAGS" 8843 8844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850else 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852/* end confdefs.h. */ 8853int i; 8854_ACEOF 8855if ac_fn_c_try_compile "$LINENO"; then : 8856 xorg_cv_cc_flag_unknown_warning_option=yes 8857else 8858 xorg_cv_cc_flag_unknown_warning_option=no 8859fi 8860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8861fi 8862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866fi 8867 8868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8871 fi 8872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879/* end confdefs.h. */ 8880int i; 8881_ACEOF 8882if ac_fn_c_try_compile "$LINENO"; then : 8883 xorg_cv_cc_flag_unused_command_line_argument=yes 8884else 8885 xorg_cv_cc_flag_unused_command_line_argument=no 8886fi 8887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8888fi 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8892 CFLAGS="$xorg_testset_save_CFLAGS" 8893fi 8894 8895found="no" 8896 8897 if test $found = "no" ; then 8898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8900 fi 8901 8902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8904 fi 8905 8906 CFLAGS="$CFLAGS -Wnonnull" 8907 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8909$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8910 cacheid=xorg_cv_cc_flag__Wnonnull 8911 if eval \${$cacheid+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8915/* end confdefs.h. */ 8916int i; 8917int 8918main () 8919{ 8920 8921 ; 8922 return 0; 8923} 8924_ACEOF 8925if ac_fn_c_try_link "$LINENO"; then : 8926 eval $cacheid=yes 8927else 8928 eval $cacheid=no 8929fi 8930rm -f core conftest.err conftest.$ac_objext \ 8931 conftest$ac_exeext conftest.$ac_ext 8932fi 8933 8934 8935 CFLAGS="$xorg_testset_save_CFLAGS" 8936 8937 eval supported=\$$cacheid 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8939$as_echo "$supported" >&6; } 8940 if test "$supported" = "yes" ; then 8941 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8942 found="yes" 8943 fi 8944 fi 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960xorg_testset_save_CFLAGS="$CFLAGS" 8961 8962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968else 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970/* end confdefs.h. */ 8971int i; 8972_ACEOF 8973if ac_fn_c_try_compile "$LINENO"; then : 8974 xorg_cv_cc_flag_unknown_warning_option=yes 8975else 8976 xorg_cv_cc_flag_unknown_warning_option=no 8977fi 8978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8979fi 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8983 CFLAGS="$xorg_testset_save_CFLAGS" 8984fi 8985 8986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8989 fi 8990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8997/* end confdefs.h. */ 8998int i; 8999_ACEOF 9000if ac_fn_c_try_compile "$LINENO"; then : 9001 xorg_cv_cc_flag_unused_command_line_argument=yes 9002else 9003 xorg_cv_cc_flag_unused_command_line_argument=no 9004fi 9005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9006fi 9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9010 CFLAGS="$xorg_testset_save_CFLAGS" 9011fi 9012 9013found="no" 9014 9015 if test $found = "no" ; then 9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018 fi 9019 9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9022 fi 9023 9024 CFLAGS="$CFLAGS -Winit-self" 9025 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9027$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9028 cacheid=xorg_cv_cc_flag__Winit_self 9029 if eval \${$cacheid+:} false; then : 9030 $as_echo_n "(cached) " >&6 9031else 9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9033/* end confdefs.h. */ 9034int i; 9035int 9036main () 9037{ 9038 9039 ; 9040 return 0; 9041} 9042_ACEOF 9043if ac_fn_c_try_link "$LINENO"; then : 9044 eval $cacheid=yes 9045else 9046 eval $cacheid=no 9047fi 9048rm -f core conftest.err conftest.$ac_objext \ 9049 conftest$ac_exeext conftest.$ac_ext 9050fi 9051 9052 9053 CFLAGS="$xorg_testset_save_CFLAGS" 9054 9055 eval supported=\$$cacheid 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9057$as_echo "$supported" >&6; } 9058 if test "$supported" = "yes" ; then 9059 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9060 found="yes" 9061 fi 9062 fi 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078xorg_testset_save_CFLAGS="$CFLAGS" 9079 9080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9085 $as_echo_n "(cached) " >&6 9086else 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088/* end confdefs.h. */ 9089int i; 9090_ACEOF 9091if ac_fn_c_try_compile "$LINENO"; then : 9092 xorg_cv_cc_flag_unknown_warning_option=yes 9093else 9094 xorg_cv_cc_flag_unknown_warning_option=no 9095fi 9096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9097fi 9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9101 CFLAGS="$xorg_testset_save_CFLAGS" 9102fi 9103 9104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9107 fi 9108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113else 9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9115/* end confdefs.h. */ 9116int i; 9117_ACEOF 9118if ac_fn_c_try_compile "$LINENO"; then : 9119 xorg_cv_cc_flag_unused_command_line_argument=yes 9120else 9121 xorg_cv_cc_flag_unused_command_line_argument=no 9122fi 9123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9124fi 9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9128 CFLAGS="$xorg_testset_save_CFLAGS" 9129fi 9130 9131found="no" 9132 9133 if test $found = "no" ; then 9134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9136 fi 9137 9138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9140 fi 9141 9142 CFLAGS="$CFLAGS -Wmain" 9143 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9145$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9146 cacheid=xorg_cv_cc_flag__Wmain 9147 if eval \${$cacheid+:} false; then : 9148 $as_echo_n "(cached) " >&6 9149else 9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9151/* end confdefs.h. */ 9152int i; 9153int 9154main () 9155{ 9156 9157 ; 9158 return 0; 9159} 9160_ACEOF 9161if ac_fn_c_try_link "$LINENO"; then : 9162 eval $cacheid=yes 9163else 9164 eval $cacheid=no 9165fi 9166rm -f core conftest.err conftest.$ac_objext \ 9167 conftest$ac_exeext conftest.$ac_ext 9168fi 9169 9170 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172 9173 eval supported=\$$cacheid 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9175$as_echo "$supported" >&6; } 9176 if test "$supported" = "yes" ; then 9177 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9178 found="yes" 9179 fi 9180 fi 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196xorg_testset_save_CFLAGS="$CFLAGS" 9197 9198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206/* end confdefs.h. */ 9207int i; 9208_ACEOF 9209if ac_fn_c_try_compile "$LINENO"; then : 9210 xorg_cv_cc_flag_unknown_warning_option=yes 9211else 9212 xorg_cv_cc_flag_unknown_warning_option=no 9213fi 9214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9215fi 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220fi 9221 9222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9225 fi 9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231else 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233/* end confdefs.h. */ 9234int i; 9235_ACEOF 9236if ac_fn_c_try_compile "$LINENO"; then : 9237 xorg_cv_cc_flag_unused_command_line_argument=yes 9238else 9239 xorg_cv_cc_flag_unused_command_line_argument=no 9240fi 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9242fi 9243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9246 CFLAGS="$xorg_testset_save_CFLAGS" 9247fi 9248 9249found="no" 9250 9251 if test $found = "no" ; then 9252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9254 fi 9255 9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9258 fi 9259 9260 CFLAGS="$CFLAGS -Wmissing-braces" 9261 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9263$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9264 cacheid=xorg_cv_cc_flag__Wmissing_braces 9265 if eval \${$cacheid+:} false; then : 9266 $as_echo_n "(cached) " >&6 9267else 9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9269/* end confdefs.h. */ 9270int i; 9271int 9272main () 9273{ 9274 9275 ; 9276 return 0; 9277} 9278_ACEOF 9279if ac_fn_c_try_link "$LINENO"; then : 9280 eval $cacheid=yes 9281else 9282 eval $cacheid=no 9283fi 9284rm -f core conftest.err conftest.$ac_objext \ 9285 conftest$ac_exeext conftest.$ac_ext 9286fi 9287 9288 9289 CFLAGS="$xorg_testset_save_CFLAGS" 9290 9291 eval supported=\$$cacheid 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9293$as_echo "$supported" >&6; } 9294 if test "$supported" = "yes" ; then 9295 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9296 found="yes" 9297 fi 9298 fi 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314xorg_testset_save_CFLAGS="$CFLAGS" 9315 9316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322else 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324/* end confdefs.h. */ 9325int i; 9326_ACEOF 9327if ac_fn_c_try_compile "$LINENO"; then : 9328 xorg_cv_cc_flag_unknown_warning_option=yes 9329else 9330 xorg_cv_cc_flag_unknown_warning_option=no 9331fi 9332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9333fi 9334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338fi 9339 9340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9343 fi 9344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349else 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352int i; 9353_ACEOF 9354if ac_fn_c_try_compile "$LINENO"; then : 9355 xorg_cv_cc_flag_unused_command_line_argument=yes 9356else 9357 xorg_cv_cc_flag_unused_command_line_argument=no 9358fi 9359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9360fi 9361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365fi 9366 9367found="no" 9368 9369 if test $found = "no" ; then 9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372 fi 9373 9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9376 fi 9377 9378 CFLAGS="$CFLAGS -Wsequence-point" 9379 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9381$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9382 cacheid=xorg_cv_cc_flag__Wsequence_point 9383 if eval \${$cacheid+:} false; then : 9384 $as_echo_n "(cached) " >&6 9385else 9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387/* end confdefs.h. */ 9388int i; 9389int 9390main () 9391{ 9392 9393 ; 9394 return 0; 9395} 9396_ACEOF 9397if ac_fn_c_try_link "$LINENO"; then : 9398 eval $cacheid=yes 9399else 9400 eval $cacheid=no 9401fi 9402rm -f core conftest.err conftest.$ac_objext \ 9403 conftest$ac_exeext conftest.$ac_ext 9404fi 9405 9406 9407 CFLAGS="$xorg_testset_save_CFLAGS" 9408 9409 eval supported=\$$cacheid 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9411$as_echo "$supported" >&6; } 9412 if test "$supported" = "yes" ; then 9413 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9414 found="yes" 9415 fi 9416 fi 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432xorg_testset_save_CFLAGS="$CFLAGS" 9433 9434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9439 $as_echo_n "(cached) " >&6 9440else 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443int i; 9444_ACEOF 9445if ac_fn_c_try_compile "$LINENO"; then : 9446 xorg_cv_cc_flag_unknown_warning_option=yes 9447else 9448 xorg_cv_cc_flag_unknown_warning_option=no 9449fi 9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9451fi 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456fi 9457 9458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9461 fi 9462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467else 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469/* end confdefs.h. */ 9470int i; 9471_ACEOF 9472if ac_fn_c_try_compile "$LINENO"; then : 9473 xorg_cv_cc_flag_unused_command_line_argument=yes 9474else 9475 xorg_cv_cc_flag_unused_command_line_argument=no 9476fi 9477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9478fi 9479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9482 CFLAGS="$xorg_testset_save_CFLAGS" 9483fi 9484 9485found="no" 9486 9487 if test $found = "no" ; then 9488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9490 fi 9491 9492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9494 fi 9495 9496 CFLAGS="$CFLAGS -Wreturn-type" 9497 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9499$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9500 cacheid=xorg_cv_cc_flag__Wreturn_type 9501 if eval \${$cacheid+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503else 9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9505/* end confdefs.h. */ 9506int i; 9507int 9508main () 9509{ 9510 9511 ; 9512 return 0; 9513} 9514_ACEOF 9515if ac_fn_c_try_link "$LINENO"; then : 9516 eval $cacheid=yes 9517else 9518 eval $cacheid=no 9519fi 9520rm -f core conftest.err conftest.$ac_objext \ 9521 conftest$ac_exeext conftest.$ac_ext 9522fi 9523 9524 9525 CFLAGS="$xorg_testset_save_CFLAGS" 9526 9527 eval supported=\$$cacheid 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9529$as_echo "$supported" >&6; } 9530 if test "$supported" = "yes" ; then 9531 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9532 found="yes" 9533 fi 9534 fi 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550xorg_testset_save_CFLAGS="$CFLAGS" 9551 9552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560/* end confdefs.h. */ 9561int i; 9562_ACEOF 9563if ac_fn_c_try_compile "$LINENO"; then : 9564 xorg_cv_cc_flag_unknown_warning_option=yes 9565else 9566 xorg_cv_cc_flag_unknown_warning_option=no 9567fi 9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569fi 9570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574fi 9575 9576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585else 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587/* end confdefs.h. */ 9588int i; 9589_ACEOF 9590if ac_fn_c_try_compile "$LINENO"; then : 9591 xorg_cv_cc_flag_unused_command_line_argument=yes 9592else 9593 xorg_cv_cc_flag_unused_command_line_argument=no 9594fi 9595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9596fi 9597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9600 CFLAGS="$xorg_testset_save_CFLAGS" 9601fi 9602 9603found="no" 9604 9605 if test $found = "no" ; then 9606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9608 fi 9609 9610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9612 fi 9613 9614 CFLAGS="$CFLAGS -Wtrigraphs" 9615 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9617$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9618 cacheid=xorg_cv_cc_flag__Wtrigraphs 9619 if eval \${$cacheid+:} false; then : 9620 $as_echo_n "(cached) " >&6 9621else 9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623/* end confdefs.h. */ 9624int i; 9625int 9626main () 9627{ 9628 9629 ; 9630 return 0; 9631} 9632_ACEOF 9633if ac_fn_c_try_link "$LINENO"; then : 9634 eval $cacheid=yes 9635else 9636 eval $cacheid=no 9637fi 9638rm -f core conftest.err conftest.$ac_objext \ 9639 conftest$ac_exeext conftest.$ac_ext 9640fi 9641 9642 9643 CFLAGS="$xorg_testset_save_CFLAGS" 9644 9645 eval supported=\$$cacheid 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9647$as_echo "$supported" >&6; } 9648 if test "$supported" = "yes" ; then 9649 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9650 found="yes" 9651 fi 9652 fi 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668xorg_testset_save_CFLAGS="$CFLAGS" 9669 9670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678/* end confdefs.h. */ 9679int i; 9680_ACEOF 9681if ac_fn_c_try_compile "$LINENO"; then : 9682 xorg_cv_cc_flag_unknown_warning_option=yes 9683else 9684 xorg_cv_cc_flag_unknown_warning_option=no 9685fi 9686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9687fi 9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692fi 9693 9694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9697 fi 9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9702 $as_echo_n "(cached) " >&6 9703else 9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705/* end confdefs.h. */ 9706int i; 9707_ACEOF 9708if ac_fn_c_try_compile "$LINENO"; then : 9709 xorg_cv_cc_flag_unused_command_line_argument=yes 9710else 9711 xorg_cv_cc_flag_unused_command_line_argument=no 9712fi 9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9714fi 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9718 CFLAGS="$xorg_testset_save_CFLAGS" 9719fi 9720 9721found="no" 9722 9723 if test $found = "no" ; then 9724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9726 fi 9727 9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9730 fi 9731 9732 CFLAGS="$CFLAGS -Warray-bounds" 9733 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9735$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9736 cacheid=xorg_cv_cc_flag__Warray_bounds 9737 if eval \${$cacheid+:} false; then : 9738 $as_echo_n "(cached) " >&6 9739else 9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9741/* end confdefs.h. */ 9742int i; 9743int 9744main () 9745{ 9746 9747 ; 9748 return 0; 9749} 9750_ACEOF 9751if ac_fn_c_try_link "$LINENO"; then : 9752 eval $cacheid=yes 9753else 9754 eval $cacheid=no 9755fi 9756rm -f core conftest.err conftest.$ac_objext \ 9757 conftest$ac_exeext conftest.$ac_ext 9758fi 9759 9760 9761 CFLAGS="$xorg_testset_save_CFLAGS" 9762 9763 eval supported=\$$cacheid 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9765$as_echo "$supported" >&6; } 9766 if test "$supported" = "yes" ; then 9767 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9768 found="yes" 9769 fi 9770 fi 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786xorg_testset_save_CFLAGS="$CFLAGS" 9787 9788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794else 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796/* end confdefs.h. */ 9797int i; 9798_ACEOF 9799if ac_fn_c_try_compile "$LINENO"; then : 9800 xorg_cv_cc_flag_unknown_warning_option=yes 9801else 9802 xorg_cv_cc_flag_unknown_warning_option=no 9803fi 9804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9805fi 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810fi 9811 9812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9815 fi 9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9820 $as_echo_n "(cached) " >&6 9821else 9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823/* end confdefs.h. */ 9824int i; 9825_ACEOF 9826if ac_fn_c_try_compile "$LINENO"; then : 9827 xorg_cv_cc_flag_unused_command_line_argument=yes 9828else 9829 xorg_cv_cc_flag_unused_command_line_argument=no 9830fi 9831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9832fi 9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9836 CFLAGS="$xorg_testset_save_CFLAGS" 9837fi 9838 9839found="no" 9840 9841 if test $found = "no" ; then 9842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9844 fi 9845 9846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9848 fi 9849 9850 CFLAGS="$CFLAGS -Wwrite-strings" 9851 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9853$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9854 cacheid=xorg_cv_cc_flag__Wwrite_strings 9855 if eval \${$cacheid+:} false; then : 9856 $as_echo_n "(cached) " >&6 9857else 9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9859/* end confdefs.h. */ 9860int i; 9861int 9862main () 9863{ 9864 9865 ; 9866 return 0; 9867} 9868_ACEOF 9869if ac_fn_c_try_link "$LINENO"; then : 9870 eval $cacheid=yes 9871else 9872 eval $cacheid=no 9873fi 9874rm -f core conftest.err conftest.$ac_objext \ 9875 conftest$ac_exeext conftest.$ac_ext 9876fi 9877 9878 9879 CFLAGS="$xorg_testset_save_CFLAGS" 9880 9881 eval supported=\$$cacheid 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9883$as_echo "$supported" >&6; } 9884 if test "$supported" = "yes" ; then 9885 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9886 found="yes" 9887 fi 9888 fi 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904xorg_testset_save_CFLAGS="$CFLAGS" 9905 9906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912else 9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914/* end confdefs.h. */ 9915int i; 9916_ACEOF 9917if ac_fn_c_try_compile "$LINENO"; then : 9918 xorg_cv_cc_flag_unknown_warning_option=yes 9919else 9920 xorg_cv_cc_flag_unknown_warning_option=no 9921fi 9922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9923fi 9924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9928fi 9929 9930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9933 fi 9934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9938 $as_echo_n "(cached) " >&6 9939else 9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9941/* end confdefs.h. */ 9942int i; 9943_ACEOF 9944if ac_fn_c_try_compile "$LINENO"; then : 9945 xorg_cv_cc_flag_unused_command_line_argument=yes 9946else 9947 xorg_cv_cc_flag_unused_command_line_argument=no 9948fi 9949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9950fi 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9954 CFLAGS="$xorg_testset_save_CFLAGS" 9955fi 9956 9957found="no" 9958 9959 if test $found = "no" ; then 9960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9962 fi 9963 9964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9966 fi 9967 9968 CFLAGS="$CFLAGS -Waddress" 9969 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9971$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9972 cacheid=xorg_cv_cc_flag__Waddress 9973 if eval \${$cacheid+:} false; then : 9974 $as_echo_n "(cached) " >&6 9975else 9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9977/* end confdefs.h. */ 9978int i; 9979int 9980main () 9981{ 9982 9983 ; 9984 return 0; 9985} 9986_ACEOF 9987if ac_fn_c_try_link "$LINENO"; then : 9988 eval $cacheid=yes 9989else 9990 eval $cacheid=no 9991fi 9992rm -f core conftest.err conftest.$ac_objext \ 9993 conftest$ac_exeext conftest.$ac_ext 9994fi 9995 9996 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998 9999 eval supported=\$$cacheid 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10001$as_echo "$supported" >&6; } 10002 if test "$supported" = "yes" ; then 10003 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10004 found="yes" 10005 fi 10006 fi 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022xorg_testset_save_CFLAGS="$CFLAGS" 10023 10024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030else 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034_ACEOF 10035if ac_fn_c_try_compile "$LINENO"; then : 10036 xorg_cv_cc_flag_unknown_warning_option=yes 10037else 10038 xorg_cv_cc_flag_unknown_warning_option=no 10039fi 10040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10041fi 10042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10045 CFLAGS="$xorg_testset_save_CFLAGS" 10046fi 10047 10048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 fi 10052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057else 10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10059/* end confdefs.h. */ 10060int i; 10061_ACEOF 10062if ac_fn_c_try_compile "$LINENO"; then : 10063 xorg_cv_cc_flag_unused_command_line_argument=yes 10064else 10065 xorg_cv_cc_flag_unused_command_line_argument=no 10066fi 10067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10068fi 10069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10072 CFLAGS="$xorg_testset_save_CFLAGS" 10073fi 10074 10075found="no" 10076 10077 if test $found = "no" ; then 10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10080 fi 10081 10082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10084 fi 10085 10086 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10087 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10089$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10090 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10091 if eval \${$cacheid+:} false; then : 10092 $as_echo_n "(cached) " >&6 10093else 10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10095/* end confdefs.h. */ 10096int i; 10097int 10098main () 10099{ 10100 10101 ; 10102 return 0; 10103} 10104_ACEOF 10105if ac_fn_c_try_link "$LINENO"; then : 10106 eval $cacheid=yes 10107else 10108 eval $cacheid=no 10109fi 10110rm -f core conftest.err conftest.$ac_objext \ 10111 conftest$ac_exeext conftest.$ac_ext 10112fi 10113 10114 10115 CFLAGS="$xorg_testset_save_CFLAGS" 10116 10117 eval supported=\$$cacheid 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10119$as_echo "$supported" >&6; } 10120 if test "$supported" = "yes" ; then 10121 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10122 found="yes" 10123 fi 10124 fi 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140xorg_testset_save_CFLAGS="$CFLAGS" 10141 10142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10150/* end confdefs.h. */ 10151int i; 10152_ACEOF 10153if ac_fn_c_try_compile "$LINENO"; then : 10154 xorg_cv_cc_flag_unknown_warning_option=yes 10155else 10156 xorg_cv_cc_flag_unknown_warning_option=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10159fi 10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164fi 10165 10166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 fi 10170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10174 $as_echo_n "(cached) " >&6 10175else 10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10177/* end confdefs.h. */ 10178int i; 10179_ACEOF 10180if ac_fn_c_try_compile "$LINENO"; then : 10181 xorg_cv_cc_flag_unused_command_line_argument=yes 10182else 10183 xorg_cv_cc_flag_unused_command_line_argument=no 10184fi 10185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10186fi 10187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191fi 10192 10193found="no" 10194 10195 if test $found = "no" ; then 10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10198 fi 10199 10200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10202 fi 10203 10204 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10205 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10207$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10208 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10209 if eval \${$cacheid+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211else 10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213/* end confdefs.h. */ 10214int i; 10215int 10216main () 10217{ 10218 10219 ; 10220 return 0; 10221} 10222_ACEOF 10223if ac_fn_c_try_link "$LINENO"; then : 10224 eval $cacheid=yes 10225else 10226 eval $cacheid=no 10227fi 10228rm -f core conftest.err conftest.$ac_objext \ 10229 conftest$ac_exeext conftest.$ac_ext 10230fi 10231 10232 10233 CFLAGS="$xorg_testset_save_CFLAGS" 10234 10235 eval supported=\$$cacheid 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10237$as_echo "$supported" >&6; } 10238 if test "$supported" = "yes" ; then 10239 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10240 found="yes" 10241 fi 10242 fi 10243 10244 10245fi 10246 10247 10248 10249 10250 10251 10252 10253 CWARNFLAGS="$BASE_CFLAGS" 10254 if test "x$GCC" = xyes ; then 10255 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10256 fi 10257 10258 10259 10260 10261 10262 10263 10264 10265# Check whether --enable-strict-compilation was given. 10266if test "${enable_strict_compilation+set}" = set; then : 10267 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10268else 10269 STRICT_COMPILE=no 10270fi 10271 10272 10273 10274 10275 10276 10277STRICT_CFLAGS="" 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291xorg_testset_save_CFLAGS="$CFLAGS" 10292 10293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10296$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10297if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10298 $as_echo_n "(cached) " >&6 10299else 10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301/* end confdefs.h. */ 10302int i; 10303_ACEOF 10304if ac_fn_c_try_compile "$LINENO"; then : 10305 xorg_cv_cc_flag_unknown_warning_option=yes 10306else 10307 xorg_cv_cc_flag_unknown_warning_option=no 10308fi 10309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10310fi 10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10312$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315fi 10316 10317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10320 fi 10321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10323$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10324if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10328/* end confdefs.h. */ 10329int i; 10330_ACEOF 10331if ac_fn_c_try_compile "$LINENO"; then : 10332 xorg_cv_cc_flag_unused_command_line_argument=yes 10333else 10334 xorg_cv_cc_flag_unused_command_line_argument=no 10335fi 10336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10337fi 10338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10339$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10341 CFLAGS="$xorg_testset_save_CFLAGS" 10342fi 10343 10344found="no" 10345 10346 if test $found = "no" ; then 10347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10349 fi 10350 10351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10353 fi 10354 10355 CFLAGS="$CFLAGS -pedantic" 10356 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10358$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10359 cacheid=xorg_cv_cc_flag__pedantic 10360 if eval \${$cacheid+:} false; then : 10361 $as_echo_n "(cached) " >&6 10362else 10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10364/* end confdefs.h. */ 10365int i; 10366int 10367main () 10368{ 10369 10370 ; 10371 return 0; 10372} 10373_ACEOF 10374if ac_fn_c_try_link "$LINENO"; then : 10375 eval $cacheid=yes 10376else 10377 eval $cacheid=no 10378fi 10379rm -f core conftest.err conftest.$ac_objext \ 10380 conftest$ac_exeext conftest.$ac_ext 10381fi 10382 10383 10384 CFLAGS="$xorg_testset_save_CFLAGS" 10385 10386 eval supported=\$$cacheid 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10388$as_echo "$supported" >&6; } 10389 if test "$supported" = "yes" ; then 10390 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10391 found="yes" 10392 fi 10393 fi 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409xorg_testset_save_CFLAGS="$CFLAGS" 10410 10411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10414$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10415if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10416 $as_echo_n "(cached) " >&6 10417else 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420int i; 10421_ACEOF 10422if ac_fn_c_try_compile "$LINENO"; then : 10423 xorg_cv_cc_flag_unknown_warning_option=yes 10424else 10425 xorg_cv_cc_flag_unknown_warning_option=no 10426fi 10427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10428fi 10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10430$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433fi 10434 10435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10438 fi 10439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10441$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10442if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10443 $as_echo_n "(cached) " >&6 10444else 10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10446/* end confdefs.h. */ 10447int i; 10448_ACEOF 10449if ac_fn_c_try_compile "$LINENO"; then : 10450 xorg_cv_cc_flag_unused_command_line_argument=yes 10451else 10452 xorg_cv_cc_flag_unused_command_line_argument=no 10453fi 10454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10455fi 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10457$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10459 CFLAGS="$xorg_testset_save_CFLAGS" 10460fi 10461 10462found="no" 10463 10464 if test $found = "no" ; then 10465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10467 fi 10468 10469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10471 fi 10472 10473 CFLAGS="$CFLAGS -Werror" 10474 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10476$as_echo_n "checking if $CC supports -Werror... " >&6; } 10477 cacheid=xorg_cv_cc_flag__Werror 10478 if eval \${$cacheid+:} false; then : 10479 $as_echo_n "(cached) " >&6 10480else 10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10482/* end confdefs.h. */ 10483int i; 10484int 10485main () 10486{ 10487 10488 ; 10489 return 0; 10490} 10491_ACEOF 10492if ac_fn_c_try_link "$LINENO"; then : 10493 eval $cacheid=yes 10494else 10495 eval $cacheid=no 10496fi 10497rm -f core conftest.err conftest.$ac_objext \ 10498 conftest$ac_exeext conftest.$ac_ext 10499fi 10500 10501 10502 CFLAGS="$xorg_testset_save_CFLAGS" 10503 10504 eval supported=\$$cacheid 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10506$as_echo "$supported" >&6; } 10507 if test "$supported" = "yes" ; then 10508 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10509 found="yes" 10510 fi 10511 fi 10512 10513 if test $found = "no" ; then 10514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10516 fi 10517 10518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10520 fi 10521 10522 CFLAGS="$CFLAGS -errwarn" 10523 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10525$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10526 cacheid=xorg_cv_cc_flag__errwarn 10527 if eval \${$cacheid+:} false; then : 10528 $as_echo_n "(cached) " >&6 10529else 10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531/* end confdefs.h. */ 10532int i; 10533int 10534main () 10535{ 10536 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541if ac_fn_c_try_link "$LINENO"; then : 10542 eval $cacheid=yes 10543else 10544 eval $cacheid=no 10545fi 10546rm -f core conftest.err conftest.$ac_objext \ 10547 conftest$ac_exeext conftest.$ac_ext 10548fi 10549 10550 10551 CFLAGS="$xorg_testset_save_CFLAGS" 10552 10553 eval supported=\$$cacheid 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10555$as_echo "$supported" >&6; } 10556 if test "$supported" = "yes" ; then 10557 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10558 found="yes" 10559 fi 10560 fi 10561 10562 10563 10564# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10565# activate it with -Werror, so we add it here explicitly. 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579xorg_testset_save_CFLAGS="$CFLAGS" 10580 10581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10586 $as_echo_n "(cached) " >&6 10587else 10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10589/* end confdefs.h. */ 10590int i; 10591_ACEOF 10592if ac_fn_c_try_compile "$LINENO"; then : 10593 xorg_cv_cc_flag_unknown_warning_option=yes 10594else 10595 xorg_cv_cc_flag_unknown_warning_option=no 10596fi 10597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10598fi 10599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10602 CFLAGS="$xorg_testset_save_CFLAGS" 10603fi 10604 10605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10608 fi 10609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10613 $as_echo_n "(cached) " >&6 10614else 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616/* end confdefs.h. */ 10617int i; 10618_ACEOF 10619if ac_fn_c_try_compile "$LINENO"; then : 10620 xorg_cv_cc_flag_unused_command_line_argument=yes 10621else 10622 xorg_cv_cc_flag_unused_command_line_argument=no 10623fi 10624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10625fi 10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10629 CFLAGS="$xorg_testset_save_CFLAGS" 10630fi 10631 10632found="no" 10633 10634 if test $found = "no" ; then 10635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10637 fi 10638 10639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10641 fi 10642 10643 CFLAGS="$CFLAGS -Werror=attributes" 10644 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10646$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10647 cacheid=xorg_cv_cc_flag__Werror_attributes 10648 if eval \${$cacheid+:} false; then : 10649 $as_echo_n "(cached) " >&6 10650else 10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652/* end confdefs.h. */ 10653int i; 10654int 10655main () 10656{ 10657 10658 ; 10659 return 0; 10660} 10661_ACEOF 10662if ac_fn_c_try_link "$LINENO"; then : 10663 eval $cacheid=yes 10664else 10665 eval $cacheid=no 10666fi 10667rm -f core conftest.err conftest.$ac_objext \ 10668 conftest$ac_exeext conftest.$ac_ext 10669fi 10670 10671 10672 CFLAGS="$xorg_testset_save_CFLAGS" 10673 10674 eval supported=\$$cacheid 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10676$as_echo "$supported" >&6; } 10677 if test "$supported" = "yes" ; then 10678 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10679 found="yes" 10680 fi 10681 fi 10682 10683 10684 10685if test "x$STRICT_COMPILE" = "xyes"; then 10686 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10687 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10688fi 10689 10690 10691 10692 10693 10694 10695cat >>confdefs.h <<_ACEOF 10696#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10697_ACEOF 10698 10699 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10700 if test "x$PVM" = "x"; then 10701 PVM="0" 10702 fi 10703 10704cat >>confdefs.h <<_ACEOF 10705#define PACKAGE_VERSION_MINOR $PVM 10706_ACEOF 10707 10708 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10709 if test "x$PVP" = "x"; then 10710 PVP="0" 10711 fi 10712 10713cat >>confdefs.h <<_ACEOF 10714#define PACKAGE_VERSION_PATCHLEVEL $PVP 10715_ACEOF 10716 10717 10718 10719CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10720mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10721|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10722echo 'git directory not found: installing possibly empty changelog.' >&2)" 10723 10724 10725 10726 10727macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10728INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10729mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10730|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10731echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10732 10733 10734 10735 10736 10737 10738if test x$APP_MAN_SUFFIX = x ; then 10739 APP_MAN_SUFFIX=1 10740fi 10741if test x$APP_MAN_DIR = x ; then 10742 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10743fi 10744 10745if test x$LIB_MAN_SUFFIX = x ; then 10746 LIB_MAN_SUFFIX=3 10747fi 10748if test x$LIB_MAN_DIR = x ; then 10749 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10750fi 10751 10752if test x$FILE_MAN_SUFFIX = x ; then 10753 case $host_os in 10754 solaris*) FILE_MAN_SUFFIX=4 ;; 10755 *) FILE_MAN_SUFFIX=5 ;; 10756 esac 10757fi 10758if test x$FILE_MAN_DIR = x ; then 10759 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10760fi 10761 10762if test x$MISC_MAN_SUFFIX = x ; then 10763 case $host_os in 10764 solaris*) MISC_MAN_SUFFIX=5 ;; 10765 *) MISC_MAN_SUFFIX=7 ;; 10766 esac 10767fi 10768if test x$MISC_MAN_DIR = x ; then 10769 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10770fi 10771 10772if test x$DRIVER_MAN_SUFFIX = x ; then 10773 case $host_os in 10774 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10775 *) DRIVER_MAN_SUFFIX=4 ;; 10776 esac 10777fi 10778if test x$DRIVER_MAN_DIR = x ; then 10779 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10780fi 10781 10782if test x$ADMIN_MAN_SUFFIX = x ; then 10783 case $host_os in 10784 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10785 *) ADMIN_MAN_SUFFIX=8 ;; 10786 esac 10787fi 10788if test x$ADMIN_MAN_DIR = x ; then 10789 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10790fi 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806XORG_MAN_PAGE="X Version 11" 10807 10808MAN_SUBSTS="\ 10809 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10810 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10811 -e 's|__xservername__|Xorg|g' \ 10812 -e 's|__xconfigfile__|xorg.conf|g' \ 10813 -e 's|__projectroot__|\$(prefix)|g' \ 10814 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10815 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10816 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10817 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10818 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10819 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10820 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10821 10822 10823 10824# Check whether --enable-silent-rules was given. 10825if test "${enable_silent_rules+set}" = set; then : 10826 enableval=$enable_silent_rules; 10827fi 10828 10829case $enable_silent_rules in # ((( 10830 yes) AM_DEFAULT_VERBOSITY=0;; 10831 no) AM_DEFAULT_VERBOSITY=1;; 10832 *) AM_DEFAULT_VERBOSITY=0;; 10833esac 10834am_make=${MAKE-make} 10835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10836$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10837if ${am_cv_make_support_nested_variables+:} false; then : 10838 $as_echo_n "(cached) " >&6 10839else 10840 if $as_echo 'TRUE=$(BAR$(V)) 10841BAR0=false 10842BAR1=true 10843V=1 10844am__doit: 10845 @$(TRUE) 10846.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10847 am_cv_make_support_nested_variables=yes 10848else 10849 am_cv_make_support_nested_variables=no 10850fi 10851fi 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10853$as_echo "$am_cv_make_support_nested_variables" >&6; } 10854if test $am_cv_make_support_nested_variables = yes; then 10855 AM_V='$(V)' 10856 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10857else 10858 AM_V=$AM_DEFAULT_VERBOSITY 10859 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10860fi 10861AM_BACKSLASH='\' 10862 10863 10864 10865# Initialize libtool 10866# Check whether --enable-static was given. 10867if test "${enable_static+set}" = set; then : 10868 enableval=$enable_static; p=${PACKAGE-default} 10869 case $enableval in 10870 yes) enable_static=yes ;; 10871 no) enable_static=no ;; 10872 *) 10873 enable_static=no 10874 # Look at the argument we got. We use all the common list separators. 10875 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10876 for pkg in $enableval; do 10877 IFS=$lt_save_ifs 10878 if test "X$pkg" = "X$p"; then 10879 enable_static=yes 10880 fi 10881 done 10882 IFS=$lt_save_ifs 10883 ;; 10884 esac 10885else 10886 enable_static=no 10887fi 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897case `pwd` in 10898 *\ * | *\ *) 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10900$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10901esac 10902 10903 10904 10905macro_version='2.4.6' 10906macro_revision='2.4.6' 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920ltmain=$ac_aux_dir/ltmain.sh 10921 10922# Backslashify metacharacters that are still active within 10923# double-quoted strings. 10924sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10925 10926# Same as above, but do not quote variable references. 10927double_quote_subst='s/\(["`\\]\)/\\\1/g' 10928 10929# Sed substitution to delay expansion of an escaped shell variable in a 10930# double_quote_subst'ed string. 10931delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10932 10933# Sed substitution to delay expansion of an escaped single quote. 10934delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10935 10936# Sed substitution to avoid accidental globbing in evaled expressions 10937no_glob_subst='s/\*/\\\*/g' 10938 10939ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10940ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10941ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10942 10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10944$as_echo_n "checking how to print strings... " >&6; } 10945# Test print first, because it will be a builtin if present. 10946if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10948 ECHO='print -r --' 10949elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10950 ECHO='printf %s\n' 10951else 10952 # Use this function as a fallback that always works. 10953 func_fallback_echo () 10954 { 10955 eval 'cat <<_LTECHO_EOF 10956$1 10957_LTECHO_EOF' 10958 } 10959 ECHO='func_fallback_echo' 10960fi 10961 10962# func_echo_all arg... 10963# Invoke $ECHO with all args, space-separated. 10964func_echo_all () 10965{ 10966 $ECHO "" 10967} 10968 10969case $ECHO in 10970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10971$as_echo "printf" >&6; } ;; 10972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10973$as_echo "print -r" >&6; } ;; 10974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10975$as_echo "cat" >&6; } ;; 10976esac 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10992$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10993if ${ac_cv_path_SED+:} false; then : 10994 $as_echo_n "(cached) " >&6 10995else 10996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10997 for ac_i in 1 2 3 4 5 6 7; do 10998 ac_script="$ac_script$as_nl$ac_script" 10999 done 11000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11001 { ac_script=; unset ac_script;} 11002 if test -z "$SED"; then 11003 ac_path_SED_found=false 11004 # Loop through the user's path and test for each of PROGNAME-LIST 11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11006for as_dir in $PATH 11007do 11008 IFS=$as_save_IFS 11009 test -z "$as_dir" && as_dir=. 11010 for ac_prog in sed gsed; do 11011 for ac_exec_ext in '' $ac_executable_extensions; do 11012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11013 as_fn_executable_p "$ac_path_SED" || continue 11014# Check for GNU ac_path_SED and select it if it is found. 11015 # Check for GNU $ac_path_SED 11016case `"$ac_path_SED" --version 2>&1` in 11017*GNU*) 11018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11019*) 11020 ac_count=0 11021 $as_echo_n 0123456789 >"conftest.in" 11022 while : 11023 do 11024 cat "conftest.in" "conftest.in" >"conftest.tmp" 11025 mv "conftest.tmp" "conftest.in" 11026 cp "conftest.in" "conftest.nl" 11027 $as_echo '' >> "conftest.nl" 11028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11030 as_fn_arith $ac_count + 1 && ac_count=$as_val 11031 if test $ac_count -gt ${ac_path_SED_max-0}; then 11032 # Best one so far, save it but keep looking for a better one 11033 ac_cv_path_SED="$ac_path_SED" 11034 ac_path_SED_max=$ac_count 11035 fi 11036 # 10*(2^10) chars as input seems more than enough 11037 test $ac_count -gt 10 && break 11038 done 11039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11040esac 11041 11042 $ac_path_SED_found && break 3 11043 done 11044 done 11045 done 11046IFS=$as_save_IFS 11047 if test -z "$ac_cv_path_SED"; then 11048 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11049 fi 11050else 11051 ac_cv_path_SED=$SED 11052fi 11053 11054fi 11055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11056$as_echo "$ac_cv_path_SED" >&6; } 11057 SED="$ac_cv_path_SED" 11058 rm -f conftest.sed 11059 11060test -z "$SED" && SED=sed 11061Xsed="$SED -e 1s/^X//" 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11074$as_echo_n "checking for fgrep... " >&6; } 11075if ${ac_cv_path_FGREP+:} false; then : 11076 $as_echo_n "(cached) " >&6 11077else 11078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11079 then ac_cv_path_FGREP="$GREP -F" 11080 else 11081 if test -z "$FGREP"; then 11082 ac_path_FGREP_found=false 11083 # Loop through the user's path and test for each of PROGNAME-LIST 11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11086do 11087 IFS=$as_save_IFS 11088 test -z "$as_dir" && as_dir=. 11089 for ac_prog in fgrep; do 11090 for ac_exec_ext in '' $ac_executable_extensions; do 11091 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11092 as_fn_executable_p "$ac_path_FGREP" || continue 11093# Check for GNU ac_path_FGREP and select it if it is found. 11094 # Check for GNU $ac_path_FGREP 11095case `"$ac_path_FGREP" --version 2>&1` in 11096*GNU*) 11097 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11098*) 11099 ac_count=0 11100 $as_echo_n 0123456789 >"conftest.in" 11101 while : 11102 do 11103 cat "conftest.in" "conftest.in" >"conftest.tmp" 11104 mv "conftest.tmp" "conftest.in" 11105 cp "conftest.in" "conftest.nl" 11106 $as_echo 'FGREP' >> "conftest.nl" 11107 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11109 as_fn_arith $ac_count + 1 && ac_count=$as_val 11110 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11111 # Best one so far, save it but keep looking for a better one 11112 ac_cv_path_FGREP="$ac_path_FGREP" 11113 ac_path_FGREP_max=$ac_count 11114 fi 11115 # 10*(2^10) chars as input seems more than enough 11116 test $ac_count -gt 10 && break 11117 done 11118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11119esac 11120 11121 $ac_path_FGREP_found && break 3 11122 done 11123 done 11124 done 11125IFS=$as_save_IFS 11126 if test -z "$ac_cv_path_FGREP"; then 11127 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11128 fi 11129else 11130 ac_cv_path_FGREP=$FGREP 11131fi 11132 11133 fi 11134fi 11135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11136$as_echo "$ac_cv_path_FGREP" >&6; } 11137 FGREP="$ac_cv_path_FGREP" 11138 11139 11140test -z "$GREP" && GREP=grep 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160# Check whether --with-gnu-ld was given. 11161if test "${with_gnu_ld+set}" = set; then : 11162 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11163else 11164 with_gnu_ld=no 11165fi 11166 11167ac_prog=ld 11168if test yes = "$GCC"; then 11169 # Check if gcc -print-prog-name=ld gives a path. 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11171$as_echo_n "checking for ld used by $CC... " >&6; } 11172 case $host in 11173 *-*-mingw*) 11174 # gcc leaves a trailing carriage return, which upsets mingw 11175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11176 *) 11177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11178 esac 11179 case $ac_prog in 11180 # Accept absolute paths. 11181 [\\/]* | ?:[\\/]*) 11182 re_direlt='/[^/][^/]*/\.\./' 11183 # Canonicalize the pathname of ld 11184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11187 done 11188 test -z "$LD" && LD=$ac_prog 11189 ;; 11190 "") 11191 # If it fails, then pretend we aren't using GCC. 11192 ac_prog=ld 11193 ;; 11194 *) 11195 # If it is relative, then search for the first ld in PATH. 11196 with_gnu_ld=unknown 11197 ;; 11198 esac 11199elif test yes = "$with_gnu_ld"; then 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11201$as_echo_n "checking for GNU ld... " >&6; } 11202else 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11204$as_echo_n "checking for non-GNU ld... " >&6; } 11205fi 11206if ${lt_cv_path_LD+:} false; then : 11207 $as_echo_n "(cached) " >&6 11208else 11209 if test -z "$LD"; then 11210 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11211 for ac_dir in $PATH; do 11212 IFS=$lt_save_ifs 11213 test -z "$ac_dir" && ac_dir=. 11214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11215 lt_cv_path_LD=$ac_dir/$ac_prog 11216 # Check to see if the program is GNU ld. I'd rather use --version, 11217 # but apparently some variants of GNU ld only accept -v. 11218 # Break only if it was the GNU/non-GNU ld that we prefer. 11219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11220 *GNU* | *'with BFD'*) 11221 test no != "$with_gnu_ld" && break 11222 ;; 11223 *) 11224 test yes != "$with_gnu_ld" && break 11225 ;; 11226 esac 11227 fi 11228 done 11229 IFS=$lt_save_ifs 11230else 11231 lt_cv_path_LD=$LD # Let the user override the test with a path. 11232fi 11233fi 11234 11235LD=$lt_cv_path_LD 11236if test -n "$LD"; then 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11238$as_echo "$LD" >&6; } 11239else 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11241$as_echo "no" >&6; } 11242fi 11243test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11245$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11246if ${lt_cv_prog_gnu_ld+:} false; then : 11247 $as_echo_n "(cached) " >&6 11248else 11249 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11250case `$LD -v 2>&1 </dev/null` in 11251*GNU* | *'with BFD'*) 11252 lt_cv_prog_gnu_ld=yes 11253 ;; 11254*) 11255 lt_cv_prog_gnu_ld=no 11256 ;; 11257esac 11258fi 11259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11260$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11261with_gnu_ld=$lt_cv_prog_gnu_ld 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11272$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11273if ${lt_cv_path_NM+:} false; then : 11274 $as_echo_n "(cached) " >&6 11275else 11276 if test -n "$NM"; then 11277 # Let the user override the test. 11278 lt_cv_path_NM=$NM 11279else 11280 lt_nm_to_check=${ac_tool_prefix}nm 11281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11282 lt_nm_to_check="$lt_nm_to_check nm" 11283 fi 11284 for lt_tmp_nm in $lt_nm_to_check; do 11285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11287 IFS=$lt_save_ifs 11288 test -z "$ac_dir" && ac_dir=. 11289 tmp_nm=$ac_dir/$lt_tmp_nm 11290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11291 # Check to see if the nm accepts a BSD-compat flag. 11292 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11293 # nm: unknown option "B" ignored 11294 # Tru64's nm complains that /dev/null is an invalid object file 11295 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11296 case $build_os in 11297 mingw*) lt_bad_file=conftest.nm/nofile ;; 11298 *) lt_bad_file=/dev/null ;; 11299 esac 11300 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11301 *$lt_bad_file* | *'Invalid file or object type'*) 11302 lt_cv_path_NM="$tmp_nm -B" 11303 break 2 11304 ;; 11305 *) 11306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11307 */dev/null*) 11308 lt_cv_path_NM="$tmp_nm -p" 11309 break 2 11310 ;; 11311 *) 11312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11313 continue # so that we can try to find one that supports BSD flags 11314 ;; 11315 esac 11316 ;; 11317 esac 11318 fi 11319 done 11320 IFS=$lt_save_ifs 11321 done 11322 : ${lt_cv_path_NM=no} 11323fi 11324fi 11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11326$as_echo "$lt_cv_path_NM" >&6; } 11327if test no != "$lt_cv_path_NM"; then 11328 NM=$lt_cv_path_NM 11329else 11330 # Didn't find any BSD compatible name lister, look for dumpbin. 11331 if test -n "$DUMPBIN"; then : 11332 # Let the user override the test. 11333 else 11334 if test -n "$ac_tool_prefix"; then 11335 for ac_prog in dumpbin "link -dump" 11336 do 11337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11338set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11340$as_echo_n "checking for $ac_word... " >&6; } 11341if ${ac_cv_prog_DUMPBIN+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343else 11344 if test -n "$DUMPBIN"; then 11345 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11346else 11347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11348for as_dir in $PATH 11349do 11350 IFS=$as_save_IFS 11351 test -z "$as_dir" && as_dir=. 11352 for ac_exec_ext in '' $ac_executable_extensions; do 11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11354 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11356 break 2 11357 fi 11358done 11359 done 11360IFS=$as_save_IFS 11361 11362fi 11363fi 11364DUMPBIN=$ac_cv_prog_DUMPBIN 11365if test -n "$DUMPBIN"; then 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11367$as_echo "$DUMPBIN" >&6; } 11368else 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11370$as_echo "no" >&6; } 11371fi 11372 11373 11374 test -n "$DUMPBIN" && break 11375 done 11376fi 11377if test -z "$DUMPBIN"; then 11378 ac_ct_DUMPBIN=$DUMPBIN 11379 for ac_prog in dumpbin "link -dump" 11380do 11381 # Extract the first word of "$ac_prog", so it can be a program name with args. 11382set dummy $ac_prog; ac_word=$2 11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11384$as_echo_n "checking for $ac_word... " >&6; } 11385if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11386 $as_echo_n "(cached) " >&6 11387else 11388 if test -n "$ac_ct_DUMPBIN"; then 11389 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11390else 11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11392for as_dir in $PATH 11393do 11394 IFS=$as_save_IFS 11395 test -z "$as_dir" && as_dir=. 11396 for ac_exec_ext in '' $ac_executable_extensions; do 11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11398 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11400 break 2 11401 fi 11402done 11403 done 11404IFS=$as_save_IFS 11405 11406fi 11407fi 11408ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11409if test -n "$ac_ct_DUMPBIN"; then 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11411$as_echo "$ac_ct_DUMPBIN" >&6; } 11412else 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11414$as_echo "no" >&6; } 11415fi 11416 11417 11418 test -n "$ac_ct_DUMPBIN" && break 11419done 11420 11421 if test "x$ac_ct_DUMPBIN" = x; then 11422 DUMPBIN=":" 11423 else 11424 case $cross_compiling:$ac_tool_warned in 11425yes:) 11426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11428ac_tool_warned=yes ;; 11429esac 11430 DUMPBIN=$ac_ct_DUMPBIN 11431 fi 11432fi 11433 11434 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11435 *COFF*) 11436 DUMPBIN="$DUMPBIN -symbols -headers" 11437 ;; 11438 *) 11439 DUMPBIN=: 11440 ;; 11441 esac 11442 fi 11443 11444 if test : != "$DUMPBIN"; then 11445 NM=$DUMPBIN 11446 fi 11447fi 11448test -z "$NM" && NM=nm 11449 11450 11451 11452 11453 11454 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11456$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11457if ${lt_cv_nm_interface+:} false; then : 11458 $as_echo_n "(cached) " >&6 11459else 11460 lt_cv_nm_interface="BSD nm" 11461 echo "int some_variable = 0;" > conftest.$ac_ext 11462 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11463 (eval "$ac_compile" 2>conftest.err) 11464 cat conftest.err >&5 11465 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11467 cat conftest.err >&5 11468 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11469 cat conftest.out >&5 11470 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11471 lt_cv_nm_interface="MS dumpbin" 11472 fi 11473 rm -f conftest* 11474fi 11475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11476$as_echo "$lt_cv_nm_interface" >&6; } 11477 11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11479$as_echo_n "checking whether ln -s works... " >&6; } 11480LN_S=$as_ln_s 11481if test "$LN_S" = "ln -s"; then 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11483$as_echo "yes" >&6; } 11484else 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11486$as_echo "no, using $LN_S" >&6; } 11487fi 11488 11489# find the maximum length of command line arguments 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11491$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11492if ${lt_cv_sys_max_cmd_len+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 i=0 11496 teststring=ABCD 11497 11498 case $build_os in 11499 msdosdjgpp*) 11500 # On DJGPP, this test can blow up pretty badly due to problems in libc 11501 # (any single argument exceeding 2000 bytes causes a buffer overrun 11502 # during glob expansion). Even if it were fixed, the result of this 11503 # check would be larger than it should be. 11504 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11505 ;; 11506 11507 gnu*) 11508 # Under GNU Hurd, this test is not required because there is 11509 # no limit to the length of command line arguments. 11510 # Libtool will interpret -1 as no limit whatsoever 11511 lt_cv_sys_max_cmd_len=-1; 11512 ;; 11513 11514 cygwin* | mingw* | cegcc*) 11515 # On Win9x/ME, this test blows up -- it succeeds, but takes 11516 # about 5 minutes as the teststring grows exponentially. 11517 # Worse, since 9x/ME are not pre-emptively multitasking, 11518 # you end up with a "frozen" computer, even though with patience 11519 # the test eventually succeeds (with a max line length of 256k). 11520 # Instead, let's just punt: use the minimum linelength reported by 11521 # all of the supported platforms: 8192 (on NT/2K/XP). 11522 lt_cv_sys_max_cmd_len=8192; 11523 ;; 11524 11525 mint*) 11526 # On MiNT this can take a long time and run out of memory. 11527 lt_cv_sys_max_cmd_len=8192; 11528 ;; 11529 11530 amigaos*) 11531 # On AmigaOS with pdksh, this test takes hours, literally. 11532 # So we just punt and use a minimum line length of 8192. 11533 lt_cv_sys_max_cmd_len=8192; 11534 ;; 11535 11536 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11537 # This has been around since 386BSD, at least. Likely further. 11538 if test -x /sbin/sysctl; then 11539 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11540 elif test -x /usr/sbin/sysctl; then 11541 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11542 else 11543 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11544 fi 11545 # And add a safety zone 11546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11548 ;; 11549 11550 interix*) 11551 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11552 lt_cv_sys_max_cmd_len=196608 11553 ;; 11554 11555 os2*) 11556 # The test takes a long time on OS/2. 11557 lt_cv_sys_max_cmd_len=8192 11558 ;; 11559 11560 osf*) 11561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11563 # nice to cause kernel panics so lets avoid the loop below. 11564 # First set a reasonable default. 11565 lt_cv_sys_max_cmd_len=16384 11566 # 11567 if test -x /sbin/sysconfig; then 11568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11569 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11570 esac 11571 fi 11572 ;; 11573 sco3.2v5*) 11574 lt_cv_sys_max_cmd_len=102400 11575 ;; 11576 sysv5* | sco5v6* | sysv4.2uw2*) 11577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11578 if test -n "$kargmax"; then 11579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11580 else 11581 lt_cv_sys_max_cmd_len=32768 11582 fi 11583 ;; 11584 *) 11585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11586 if test -n "$lt_cv_sys_max_cmd_len" && \ 11587 test undefined != "$lt_cv_sys_max_cmd_len"; then 11588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11590 else 11591 # Make teststring a little bigger before we do anything with it. 11592 # a 1K string should be a reasonable start. 11593 for i in 1 2 3 4 5 6 7 8; do 11594 teststring=$teststring$teststring 11595 done 11596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11597 # If test is not a shell built-in, we'll probably end up computing a 11598 # maximum length that is only half of the actual maximum length, but 11599 # we can't tell. 11600 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11601 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11602 test 17 != "$i" # 1/2 MB should be enough 11603 do 11604 i=`expr $i + 1` 11605 teststring=$teststring$teststring 11606 done 11607 # Only check the string length outside the loop. 11608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11609 teststring= 11610 # Add a significant safety factor because C++ compilers can tack on 11611 # massive amounts of additional arguments before passing them to the 11612 # linker. It appears as though 1/2 is a usable value. 11613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11614 fi 11615 ;; 11616 esac 11617 11618fi 11619 11620if test -n "$lt_cv_sys_max_cmd_len"; then 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11622$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11623else 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11625$as_echo "none" >&6; } 11626fi 11627max_cmd_len=$lt_cv_sys_max_cmd_len 11628 11629 11630 11631 11632 11633 11634: ${CP="cp -f"} 11635: ${MV="mv -f"} 11636: ${RM="rm -f"} 11637 11638if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11639 lt_unset=unset 11640else 11641 lt_unset=false 11642fi 11643 11644 11645 11646 11647 11648# test EBCDIC or ASCII 11649case `echo X|tr X '\101'` in 11650 A) # ASCII based system 11651 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11652 lt_SP2NL='tr \040 \012' 11653 lt_NL2SP='tr \015\012 \040\040' 11654 ;; 11655 *) # EBCDIC based system 11656 lt_SP2NL='tr \100 \n' 11657 lt_NL2SP='tr \r\n \100\100' 11658 ;; 11659esac 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11670$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11671if ${lt_cv_to_host_file_cmd+:} false; then : 11672 $as_echo_n "(cached) " >&6 11673else 11674 case $host in 11675 *-*-mingw* ) 11676 case $build in 11677 *-*-mingw* ) # actually msys 11678 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11679 ;; 11680 *-*-cygwin* ) 11681 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11682 ;; 11683 * ) # otherwise, assume *nix 11684 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11685 ;; 11686 esac 11687 ;; 11688 *-*-cygwin* ) 11689 case $build in 11690 *-*-mingw* ) # actually msys 11691 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11692 ;; 11693 *-*-cygwin* ) 11694 lt_cv_to_host_file_cmd=func_convert_file_noop 11695 ;; 11696 * ) # otherwise, assume *nix 11697 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11698 ;; 11699 esac 11700 ;; 11701 * ) # unhandled hosts (and "normal" native builds) 11702 lt_cv_to_host_file_cmd=func_convert_file_noop 11703 ;; 11704esac 11705 11706fi 11707 11708to_host_file_cmd=$lt_cv_to_host_file_cmd 11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11710$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11711 11712 11713 11714 11715 11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11717$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11718if ${lt_cv_to_tool_file_cmd+:} false; then : 11719 $as_echo_n "(cached) " >&6 11720else 11721 #assume ordinary cross tools, or native build. 11722lt_cv_to_tool_file_cmd=func_convert_file_noop 11723case $host in 11724 *-*-mingw* ) 11725 case $build in 11726 *-*-mingw* ) # actually msys 11727 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11728 ;; 11729 esac 11730 ;; 11731esac 11732 11733fi 11734 11735to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11737$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11738 11739 11740 11741 11742 11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11744$as_echo_n "checking for $LD option to reload object files... " >&6; } 11745if ${lt_cv_ld_reload_flag+:} false; then : 11746 $as_echo_n "(cached) " >&6 11747else 11748 lt_cv_ld_reload_flag='-r' 11749fi 11750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11751$as_echo "$lt_cv_ld_reload_flag" >&6; } 11752reload_flag=$lt_cv_ld_reload_flag 11753case $reload_flag in 11754"" | " "*) ;; 11755*) reload_flag=" $reload_flag" ;; 11756esac 11757reload_cmds='$LD$reload_flag -o $output$reload_objs' 11758case $host_os in 11759 cygwin* | mingw* | pw32* | cegcc*) 11760 if test yes != "$GCC"; then 11761 reload_cmds=false 11762 fi 11763 ;; 11764 darwin*) 11765 if test yes = "$GCC"; then 11766 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11767 else 11768 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11769 fi 11770 ;; 11771esac 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781if test -n "$ac_tool_prefix"; then 11782 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11783set dummy ${ac_tool_prefix}objdump; ac_word=$2 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785$as_echo_n "checking for $ac_word... " >&6; } 11786if ${ac_cv_prog_OBJDUMP+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788else 11789 if test -n "$OBJDUMP"; then 11790 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11791else 11792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11793for as_dir in $PATH 11794do 11795 IFS=$as_save_IFS 11796 test -z "$as_dir" && as_dir=. 11797 for ac_exec_ext in '' $ac_executable_extensions; do 11798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11799 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11801 break 2 11802 fi 11803done 11804 done 11805IFS=$as_save_IFS 11806 11807fi 11808fi 11809OBJDUMP=$ac_cv_prog_OBJDUMP 11810if test -n "$OBJDUMP"; then 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11812$as_echo "$OBJDUMP" >&6; } 11813else 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11815$as_echo "no" >&6; } 11816fi 11817 11818 11819fi 11820if test -z "$ac_cv_prog_OBJDUMP"; then 11821 ac_ct_OBJDUMP=$OBJDUMP 11822 # Extract the first word of "objdump", so it can be a program name with args. 11823set dummy objdump; ac_word=$2 11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11825$as_echo_n "checking for $ac_word... " >&6; } 11826if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11827 $as_echo_n "(cached) " >&6 11828else 11829 if test -n "$ac_ct_OBJDUMP"; then 11830 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11831else 11832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11833for as_dir in $PATH 11834do 11835 IFS=$as_save_IFS 11836 test -z "$as_dir" && as_dir=. 11837 for ac_exec_ext in '' $ac_executable_extensions; do 11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11839 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11841 break 2 11842 fi 11843done 11844 done 11845IFS=$as_save_IFS 11846 11847fi 11848fi 11849ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11850if test -n "$ac_ct_OBJDUMP"; then 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11852$as_echo "$ac_ct_OBJDUMP" >&6; } 11853else 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11855$as_echo "no" >&6; } 11856fi 11857 11858 if test "x$ac_ct_OBJDUMP" = x; then 11859 OBJDUMP="false" 11860 else 11861 case $cross_compiling:$ac_tool_warned in 11862yes:) 11863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11865ac_tool_warned=yes ;; 11866esac 11867 OBJDUMP=$ac_ct_OBJDUMP 11868 fi 11869else 11870 OBJDUMP="$ac_cv_prog_OBJDUMP" 11871fi 11872 11873test -z "$OBJDUMP" && OBJDUMP=objdump 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11884$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11885if ${lt_cv_deplibs_check_method+:} false; then : 11886 $as_echo_n "(cached) " >&6 11887else 11888 lt_cv_file_magic_cmd='$MAGIC_CMD' 11889lt_cv_file_magic_test_file= 11890lt_cv_deplibs_check_method='unknown' 11891# Need to set the preceding variable on all platforms that support 11892# interlibrary dependencies. 11893# 'none' -- dependencies not supported. 11894# 'unknown' -- same as none, but documents that we really don't know. 11895# 'pass_all' -- all dependencies passed with no checks. 11896# 'test_compile' -- check by making test program. 11897# 'file_magic [[regex]]' -- check by looking for files in library path 11898# that responds to the $file_magic_cmd with a given extended regex. 11899# If you have 'file' or equivalent on your system and you're not sure 11900# whether 'pass_all' will *always* work, you probably want this one. 11901 11902case $host_os in 11903aix[4-9]*) 11904 lt_cv_deplibs_check_method=pass_all 11905 ;; 11906 11907beos*) 11908 lt_cv_deplibs_check_method=pass_all 11909 ;; 11910 11911bsdi[45]*) 11912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11913 lt_cv_file_magic_cmd='/usr/bin/file -L' 11914 lt_cv_file_magic_test_file=/shlib/libc.so 11915 ;; 11916 11917cygwin*) 11918 # func_win32_libid is a shell function defined in ltmain.sh 11919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11920 lt_cv_file_magic_cmd='func_win32_libid' 11921 ;; 11922 11923mingw* | pw32*) 11924 # Base MSYS/MinGW do not provide the 'file' command needed by 11925 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11926 # unless we find 'file', for example because we are cross-compiling. 11927 if ( file / ) >/dev/null 2>&1; then 11928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11929 lt_cv_file_magic_cmd='func_win32_libid' 11930 else 11931 # Keep this pattern in sync with the one in func_win32_libid. 11932 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11933 lt_cv_file_magic_cmd='$OBJDUMP -f' 11934 fi 11935 ;; 11936 11937cegcc*) 11938 # use the weaker test based on 'objdump'. See mingw*. 11939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11940 lt_cv_file_magic_cmd='$OBJDUMP -f' 11941 ;; 11942 11943darwin* | rhapsody*) 11944 lt_cv_deplibs_check_method=pass_all 11945 ;; 11946 11947freebsd* | dragonfly*) 11948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11949 case $host_cpu in 11950 i*86 ) 11951 # Not sure whether the presence of OpenBSD here was a mistake. 11952 # Let's accept both of them until this is cleared up. 11953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11954 lt_cv_file_magic_cmd=/usr/bin/file 11955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11956 ;; 11957 esac 11958 else 11959 lt_cv_deplibs_check_method=pass_all 11960 fi 11961 ;; 11962 11963haiku*) 11964 lt_cv_deplibs_check_method=pass_all 11965 ;; 11966 11967hpux10.20* | hpux11*) 11968 lt_cv_file_magic_cmd=/usr/bin/file 11969 case $host_cpu in 11970 ia64*) 11971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11973 ;; 11974 hppa*64*) 11975 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]' 11976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11977 ;; 11978 *) 11979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11980 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11981 ;; 11982 esac 11983 ;; 11984 11985interix[3-9]*) 11986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11988 ;; 11989 11990irix5* | irix6* | nonstopux*) 11991 case $LD in 11992 *-32|*"-32 ") libmagic=32-bit;; 11993 *-n32|*"-n32 ") libmagic=N32;; 11994 *-64|*"-64 ") libmagic=64-bit;; 11995 *) libmagic=never-match;; 11996 esac 11997 lt_cv_deplibs_check_method=pass_all 11998 ;; 11999 12000# This must be glibc/ELF. 12001linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12002 lt_cv_deplibs_check_method=pass_all 12003 ;; 12004 12005netbsd* | netbsdelf*-gnu) 12006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12008 else 12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12010 fi 12011 ;; 12012 12013newos6*) 12014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12015 lt_cv_file_magic_cmd=/usr/bin/file 12016 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12017 ;; 12018 12019*nto* | *qnx*) 12020 lt_cv_deplibs_check_method=pass_all 12021 ;; 12022 12023openbsd* | bitrig*) 12024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12026 else 12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12028 fi 12029 ;; 12030 12031osf3* | osf4* | osf5*) 12032 lt_cv_deplibs_check_method=pass_all 12033 ;; 12034 12035rdos*) 12036 lt_cv_deplibs_check_method=pass_all 12037 ;; 12038 12039solaris*) 12040 lt_cv_deplibs_check_method=pass_all 12041 ;; 12042 12043sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12044 lt_cv_deplibs_check_method=pass_all 12045 ;; 12046 12047sysv4 | sysv4.3*) 12048 case $host_vendor in 12049 motorola) 12050 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]' 12051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12052 ;; 12053 ncr) 12054 lt_cv_deplibs_check_method=pass_all 12055 ;; 12056 sequent) 12057 lt_cv_file_magic_cmd='/bin/file' 12058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12059 ;; 12060 sni) 12061 lt_cv_file_magic_cmd='/bin/file' 12062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12063 lt_cv_file_magic_test_file=/lib/libc.so 12064 ;; 12065 siemens) 12066 lt_cv_deplibs_check_method=pass_all 12067 ;; 12068 pc) 12069 lt_cv_deplibs_check_method=pass_all 12070 ;; 12071 esac 12072 ;; 12073 12074tpf*) 12075 lt_cv_deplibs_check_method=pass_all 12076 ;; 12077os2*) 12078 lt_cv_deplibs_check_method=pass_all 12079 ;; 12080esac 12081 12082fi 12083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12084$as_echo "$lt_cv_deplibs_check_method" >&6; } 12085 12086file_magic_glob= 12087want_nocaseglob=no 12088if test "$build" = "$host"; then 12089 case $host_os in 12090 mingw* | pw32*) 12091 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12092 want_nocaseglob=yes 12093 else 12094 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12095 fi 12096 ;; 12097 esac 12098fi 12099 12100file_magic_cmd=$lt_cv_file_magic_cmd 12101deplibs_check_method=$lt_cv_deplibs_check_method 12102test -z "$deplibs_check_method" && deplibs_check_method=unknown 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125if test -n "$ac_tool_prefix"; then 12126 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12127set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12129$as_echo_n "checking for $ac_word... " >&6; } 12130if ${ac_cv_prog_DLLTOOL+:} false; then : 12131 $as_echo_n "(cached) " >&6 12132else 12133 if test -n "$DLLTOOL"; then 12134 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12135else 12136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12137for as_dir in $PATH 12138do 12139 IFS=$as_save_IFS 12140 test -z "$as_dir" && as_dir=. 12141 for ac_exec_ext in '' $ac_executable_extensions; do 12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12143 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12145 break 2 12146 fi 12147done 12148 done 12149IFS=$as_save_IFS 12150 12151fi 12152fi 12153DLLTOOL=$ac_cv_prog_DLLTOOL 12154if test -n "$DLLTOOL"; then 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12156$as_echo "$DLLTOOL" >&6; } 12157else 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12159$as_echo "no" >&6; } 12160fi 12161 12162 12163fi 12164if test -z "$ac_cv_prog_DLLTOOL"; then 12165 ac_ct_DLLTOOL=$DLLTOOL 12166 # Extract the first word of "dlltool", so it can be a program name with args. 12167set dummy dlltool; ac_word=$2 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12169$as_echo_n "checking for $ac_word... " >&6; } 12170if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12171 $as_echo_n "(cached) " >&6 12172else 12173 if test -n "$ac_ct_DLLTOOL"; then 12174 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12175else 12176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12177for as_dir in $PATH 12178do 12179 IFS=$as_save_IFS 12180 test -z "$as_dir" && as_dir=. 12181 for ac_exec_ext in '' $ac_executable_extensions; do 12182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12183 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12185 break 2 12186 fi 12187done 12188 done 12189IFS=$as_save_IFS 12190 12191fi 12192fi 12193ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12194if test -n "$ac_ct_DLLTOOL"; then 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12196$as_echo "$ac_ct_DLLTOOL" >&6; } 12197else 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12199$as_echo "no" >&6; } 12200fi 12201 12202 if test "x$ac_ct_DLLTOOL" = x; then 12203 DLLTOOL="false" 12204 else 12205 case $cross_compiling:$ac_tool_warned in 12206yes:) 12207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12209ac_tool_warned=yes ;; 12210esac 12211 DLLTOOL=$ac_ct_DLLTOOL 12212 fi 12213else 12214 DLLTOOL="$ac_cv_prog_DLLTOOL" 12215fi 12216 12217test -z "$DLLTOOL" && DLLTOOL=dlltool 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12229$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12230if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12231 $as_echo_n "(cached) " >&6 12232else 12233 lt_cv_sharedlib_from_linklib_cmd='unknown' 12234 12235case $host_os in 12236cygwin* | mingw* | pw32* | cegcc*) 12237 # two different shell functions defined in ltmain.sh; 12238 # decide which one to use based on capabilities of $DLLTOOL 12239 case `$DLLTOOL --help 2>&1` in 12240 *--identify-strict*) 12241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12242 ;; 12243 *) 12244 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12245 ;; 12246 esac 12247 ;; 12248*) 12249 # fallback: assume linklib IS sharedlib 12250 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12251 ;; 12252esac 12253 12254fi 12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12256$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12257sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12258test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12259 12260 12261 12262 12263 12264 12265 12266if test -n "$ac_tool_prefix"; then 12267 for ac_prog in ar 12268 do 12269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12270set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12272$as_echo_n "checking for $ac_word... " >&6; } 12273if ${ac_cv_prog_AR+:} false; then : 12274 $as_echo_n "(cached) " >&6 12275else 12276 if test -n "$AR"; then 12277 ac_cv_prog_AR="$AR" # Let the user override the test. 12278else 12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12280for as_dir in $PATH 12281do 12282 IFS=$as_save_IFS 12283 test -z "$as_dir" && as_dir=. 12284 for ac_exec_ext in '' $ac_executable_extensions; do 12285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12288 break 2 12289 fi 12290done 12291 done 12292IFS=$as_save_IFS 12293 12294fi 12295fi 12296AR=$ac_cv_prog_AR 12297if test -n "$AR"; then 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12299$as_echo "$AR" >&6; } 12300else 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12302$as_echo "no" >&6; } 12303fi 12304 12305 12306 test -n "$AR" && break 12307 done 12308fi 12309if test -z "$AR"; then 12310 ac_ct_AR=$AR 12311 for ac_prog in ar 12312do 12313 # Extract the first word of "$ac_prog", so it can be a program name with args. 12314set dummy $ac_prog; ac_word=$2 12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12316$as_echo_n "checking for $ac_word... " >&6; } 12317if ${ac_cv_prog_ac_ct_AR+:} false; then : 12318 $as_echo_n "(cached) " >&6 12319else 12320 if test -n "$ac_ct_AR"; then 12321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12322else 12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12324for as_dir in $PATH 12325do 12326 IFS=$as_save_IFS 12327 test -z "$as_dir" && as_dir=. 12328 for ac_exec_ext in '' $ac_executable_extensions; do 12329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12330 ac_cv_prog_ac_ct_AR="$ac_prog" 12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12332 break 2 12333 fi 12334done 12335 done 12336IFS=$as_save_IFS 12337 12338fi 12339fi 12340ac_ct_AR=$ac_cv_prog_ac_ct_AR 12341if test -n "$ac_ct_AR"; then 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12343$as_echo "$ac_ct_AR" >&6; } 12344else 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12346$as_echo "no" >&6; } 12347fi 12348 12349 12350 test -n "$ac_ct_AR" && break 12351done 12352 12353 if test "x$ac_ct_AR" = x; then 12354 AR="false" 12355 else 12356 case $cross_compiling:$ac_tool_warned in 12357yes:) 12358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12360ac_tool_warned=yes ;; 12361esac 12362 AR=$ac_ct_AR 12363 fi 12364fi 12365 12366: ${AR=ar} 12367: ${AR_FLAGS=cru} 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12380$as_echo_n "checking for archiver @FILE support... " >&6; } 12381if ${lt_cv_ar_at_file+:} false; then : 12382 $as_echo_n "(cached) " >&6 12383else 12384 lt_cv_ar_at_file=no 12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12386/* end confdefs.h. */ 12387 12388int 12389main () 12390{ 12391 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396if ac_fn_c_try_compile "$LINENO"; then : 12397 echo conftest.$ac_objext > conftest.lst 12398 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12400 (eval $lt_ar_try) 2>&5 12401 ac_status=$? 12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12403 test $ac_status = 0; } 12404 if test 0 -eq "$ac_status"; then 12405 # Ensure the archiver fails upon bogus file names. 12406 rm -f conftest.$ac_objext libconftest.a 12407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12408 (eval $lt_ar_try) 2>&5 12409 ac_status=$? 12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12411 test $ac_status = 0; } 12412 if test 0 -ne "$ac_status"; then 12413 lt_cv_ar_at_file=@ 12414 fi 12415 fi 12416 rm -f conftest.* libconftest.a 12417 12418fi 12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12420 12421fi 12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12423$as_echo "$lt_cv_ar_at_file" >&6; } 12424 12425if test no = "$lt_cv_ar_at_file"; then 12426 archiver_list_spec= 12427else 12428 archiver_list_spec=$lt_cv_ar_at_file 12429fi 12430 12431 12432 12433 12434 12435 12436 12437if test -n "$ac_tool_prefix"; then 12438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12439set dummy ${ac_tool_prefix}strip; ac_word=$2 12440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12441$as_echo_n "checking for $ac_word... " >&6; } 12442if ${ac_cv_prog_STRIP+:} false; then : 12443 $as_echo_n "(cached) " >&6 12444else 12445 if test -n "$STRIP"; then 12446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12447else 12448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12449for as_dir in $PATH 12450do 12451 IFS=$as_save_IFS 12452 test -z "$as_dir" && as_dir=. 12453 for ac_exec_ext in '' $ac_executable_extensions; do 12454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12457 break 2 12458 fi 12459done 12460 done 12461IFS=$as_save_IFS 12462 12463fi 12464fi 12465STRIP=$ac_cv_prog_STRIP 12466if test -n "$STRIP"; then 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12468$as_echo "$STRIP" >&6; } 12469else 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12471$as_echo "no" >&6; } 12472fi 12473 12474 12475fi 12476if test -z "$ac_cv_prog_STRIP"; then 12477 ac_ct_STRIP=$STRIP 12478 # Extract the first word of "strip", so it can be a program name with args. 12479set dummy strip; ac_word=$2 12480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12481$as_echo_n "checking for $ac_word... " >&6; } 12482if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12483 $as_echo_n "(cached) " >&6 12484else 12485 if test -n "$ac_ct_STRIP"; then 12486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12487else 12488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12489for as_dir in $PATH 12490do 12491 IFS=$as_save_IFS 12492 test -z "$as_dir" && as_dir=. 12493 for ac_exec_ext in '' $ac_executable_extensions; do 12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12495 ac_cv_prog_ac_ct_STRIP="strip" 12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12497 break 2 12498 fi 12499done 12500 done 12501IFS=$as_save_IFS 12502 12503fi 12504fi 12505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12506if test -n "$ac_ct_STRIP"; then 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12508$as_echo "$ac_ct_STRIP" >&6; } 12509else 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12511$as_echo "no" >&6; } 12512fi 12513 12514 if test "x$ac_ct_STRIP" = x; then 12515 STRIP=":" 12516 else 12517 case $cross_compiling:$ac_tool_warned in 12518yes:) 12519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12521ac_tool_warned=yes ;; 12522esac 12523 STRIP=$ac_ct_STRIP 12524 fi 12525else 12526 STRIP="$ac_cv_prog_STRIP" 12527fi 12528 12529test -z "$STRIP" && STRIP=: 12530 12531 12532 12533 12534 12535 12536if test -n "$ac_tool_prefix"; then 12537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12538set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12540$as_echo_n "checking for $ac_word... " >&6; } 12541if ${ac_cv_prog_RANLIB+:} false; then : 12542 $as_echo_n "(cached) " >&6 12543else 12544 if test -n "$RANLIB"; then 12545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12546else 12547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12548for as_dir in $PATH 12549do 12550 IFS=$as_save_IFS 12551 test -z "$as_dir" && as_dir=. 12552 for ac_exec_ext in '' $ac_executable_extensions; do 12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12556 break 2 12557 fi 12558done 12559 done 12560IFS=$as_save_IFS 12561 12562fi 12563fi 12564RANLIB=$ac_cv_prog_RANLIB 12565if test -n "$RANLIB"; then 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12567$as_echo "$RANLIB" >&6; } 12568else 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12570$as_echo "no" >&6; } 12571fi 12572 12573 12574fi 12575if test -z "$ac_cv_prog_RANLIB"; then 12576 ac_ct_RANLIB=$RANLIB 12577 # Extract the first word of "ranlib", so it can be a program name with args. 12578set dummy ranlib; ac_word=$2 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12580$as_echo_n "checking for $ac_word... " >&6; } 12581if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12582 $as_echo_n "(cached) " >&6 12583else 12584 if test -n "$ac_ct_RANLIB"; then 12585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12586else 12587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12588for as_dir in $PATH 12589do 12590 IFS=$as_save_IFS 12591 test -z "$as_dir" && as_dir=. 12592 for ac_exec_ext in '' $ac_executable_extensions; do 12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12594 ac_cv_prog_ac_ct_RANLIB="ranlib" 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12596 break 2 12597 fi 12598done 12599 done 12600IFS=$as_save_IFS 12601 12602fi 12603fi 12604ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12605if test -n "$ac_ct_RANLIB"; then 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12607$as_echo "$ac_ct_RANLIB" >&6; } 12608else 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12610$as_echo "no" >&6; } 12611fi 12612 12613 if test "x$ac_ct_RANLIB" = x; then 12614 RANLIB=":" 12615 else 12616 case $cross_compiling:$ac_tool_warned in 12617yes:) 12618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12620ac_tool_warned=yes ;; 12621esac 12622 RANLIB=$ac_ct_RANLIB 12623 fi 12624else 12625 RANLIB="$ac_cv_prog_RANLIB" 12626fi 12627 12628test -z "$RANLIB" && RANLIB=: 12629 12630 12631 12632 12633 12634 12635# Determine commands to create old-style static archives. 12636old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12637old_postinstall_cmds='chmod 644 $oldlib' 12638old_postuninstall_cmds= 12639 12640if test -n "$RANLIB"; then 12641 case $host_os in 12642 bitrig* | openbsd*) 12643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12644 ;; 12645 *) 12646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12647 ;; 12648 esac 12649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12650fi 12651 12652case $host_os in 12653 darwin*) 12654 lock_old_archive_extraction=yes ;; 12655 *) 12656 lock_old_archive_extraction=no ;; 12657esac 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697# If no C compiler was specified, use CC. 12698LTCC=${LTCC-"$CC"} 12699 12700# If no C compiler flags were specified, use CFLAGS. 12701LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12702 12703# Allow CC to be a program name with arguments. 12704compiler=$CC 12705 12706 12707# Check for command to grab the raw symbol name followed by C symbol from nm. 12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12709$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12710if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12711 $as_echo_n "(cached) " >&6 12712else 12713 12714# These are sane defaults that work on at least a few old systems. 12715# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12716 12717# Character class describing NM global symbol codes. 12718symcode='[BCDEGRST]' 12719 12720# Regexp to match symbols that can be accessed directly from C. 12721sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12722 12723# Define system-specific variables. 12724case $host_os in 12725aix*) 12726 symcode='[BCDT]' 12727 ;; 12728cygwin* | mingw* | pw32* | cegcc*) 12729 symcode='[ABCDGISTW]' 12730 ;; 12731hpux*) 12732 if test ia64 = "$host_cpu"; then 12733 symcode='[ABCDEGRST]' 12734 fi 12735 ;; 12736irix* | nonstopux*) 12737 symcode='[BCDEGRST]' 12738 ;; 12739osf*) 12740 symcode='[BCDEGQRST]' 12741 ;; 12742solaris*) 12743 symcode='[BDRT]' 12744 ;; 12745sco3.2v5*) 12746 symcode='[DT]' 12747 ;; 12748sysv4.2uw2*) 12749 symcode='[DT]' 12750 ;; 12751sysv5* | sco5v6* | unixware* | OpenUNIX*) 12752 symcode='[ABDT]' 12753 ;; 12754sysv4) 12755 symcode='[DFNSTU]' 12756 ;; 12757esac 12758 12759# If we're using GNU nm, then use its standard symbol codes. 12760case `$NM -V 2>&1` in 12761*GNU* | *'with BFD'*) 12762 symcode='[ABCDGIRSTW]' ;; 12763esac 12764 12765if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12766 # Gets list of data symbols to import. 12767 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12768 # Adjust the below global symbol transforms to fixup imported variables. 12769 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12770 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12771 lt_c_name_lib_hook="\ 12772 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12773 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12774else 12775 # Disable hooks by default. 12776 lt_cv_sys_global_symbol_to_import= 12777 lt_cdecl_hook= 12778 lt_c_name_hook= 12779 lt_c_name_lib_hook= 12780fi 12781 12782# Transform an extracted symbol line into a proper C declaration. 12783# Some systems (esp. on ia64) link data and code symbols differently, 12784# so use this general approach. 12785lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12786$lt_cdecl_hook\ 12787" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12788" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12789 12790# Transform an extracted symbol line into symbol name and symbol address 12791lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12792$lt_c_name_hook\ 12793" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12794" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12795 12796# Transform an extracted symbol line into symbol name with lib prefix and 12797# symbol address. 12798lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12799$lt_c_name_lib_hook\ 12800" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12801" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12802" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12803 12804# Handle CRLF in mingw tool chain 12805opt_cr= 12806case $build_os in 12807mingw*) 12808 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12809 ;; 12810esac 12811 12812# Try without a prefix underscore, then with it. 12813for ac_symprfx in "" "_"; do 12814 12815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12816 symxfrm="\\1 $ac_symprfx\\2 \\2" 12817 12818 # Write the raw and C identifiers. 12819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12820 # Fake it for dumpbin and say T for any non-static function, 12821 # D for any global variable and I for any imported variable. 12822 # Also find C++ and __fastcall symbols from MSVC++, 12823 # which start with @ or ?. 12824 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12825" {last_section=section; section=\$ 3};"\ 12826" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12827" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12828" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12829" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12830" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12831" \$ 0!~/External *\|/{next};"\ 12832" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12833" {if(hide[section]) next};"\ 12834" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12835" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12836" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12837" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12838" ' prfx=^$ac_symprfx" 12839 else 12840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12841 fi 12842 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12843 12844 # Check to see that the pipe works correctly. 12845 pipe_works=no 12846 12847 rm -f conftest* 12848 cat > conftest.$ac_ext <<_LT_EOF 12849#ifdef __cplusplus 12850extern "C" { 12851#endif 12852char nm_test_var; 12853void nm_test_func(void); 12854void nm_test_func(void){} 12855#ifdef __cplusplus 12856} 12857#endif 12858int main(){nm_test_var='a';nm_test_func();return(0);} 12859_LT_EOF 12860 12861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12862 (eval $ac_compile) 2>&5 12863 ac_status=$? 12864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12865 test $ac_status = 0; }; then 12866 # Now try to grab the symbols. 12867 nlist=conftest.nm 12868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12870 ac_status=$? 12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12872 test $ac_status = 0; } && test -s "$nlist"; then 12873 # Try sorting and uniquifying the output. 12874 if sort "$nlist" | uniq > "$nlist"T; then 12875 mv -f "$nlist"T "$nlist" 12876 else 12877 rm -f "$nlist"T 12878 fi 12879 12880 # Make sure that we snagged all the symbols we need. 12881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12883 cat <<_LT_EOF > conftest.$ac_ext 12884/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12885#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12886/* DATA imports from DLLs on WIN32 can't be const, because runtime 12887 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12888# define LT_DLSYM_CONST 12889#elif defined __osf__ 12890/* This system does not cope well with relocations in const data. */ 12891# define LT_DLSYM_CONST 12892#else 12893# define LT_DLSYM_CONST const 12894#endif 12895 12896#ifdef __cplusplus 12897extern "C" { 12898#endif 12899 12900_LT_EOF 12901 # Now generate the symbol file. 12902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12903 12904 cat <<_LT_EOF >> conftest.$ac_ext 12905 12906/* The mapping between symbol names and symbols. */ 12907LT_DLSYM_CONST struct { 12908 const char *name; 12909 void *address; 12910} 12911lt__PROGRAM__LTX_preloaded_symbols[] = 12912{ 12913 { "@PROGRAM@", (void *) 0 }, 12914_LT_EOF 12915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12916 cat <<\_LT_EOF >> conftest.$ac_ext 12917 {0, (void *) 0} 12918}; 12919 12920/* This works around a problem in FreeBSD linker */ 12921#ifdef FREEBSD_WORKAROUND 12922static const void *lt_preloaded_setup() { 12923 return lt__PROGRAM__LTX_preloaded_symbols; 12924} 12925#endif 12926 12927#ifdef __cplusplus 12928} 12929#endif 12930_LT_EOF 12931 # Now try linking the two files. 12932 mv conftest.$ac_objext conftstm.$ac_objext 12933 lt_globsym_save_LIBS=$LIBS 12934 lt_globsym_save_CFLAGS=$CFLAGS 12935 LIBS=conftstm.$ac_objext 12936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12938 (eval $ac_link) 2>&5 12939 ac_status=$? 12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12941 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12942 pipe_works=yes 12943 fi 12944 LIBS=$lt_globsym_save_LIBS 12945 CFLAGS=$lt_globsym_save_CFLAGS 12946 else 12947 echo "cannot find nm_test_func in $nlist" >&5 12948 fi 12949 else 12950 echo "cannot find nm_test_var in $nlist" >&5 12951 fi 12952 else 12953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12954 fi 12955 else 12956 echo "$progname: failed program was:" >&5 12957 cat conftest.$ac_ext >&5 12958 fi 12959 rm -rf conftest* conftst* 12960 12961 # Do not use the global_symbol_pipe unless it works. 12962 if test yes = "$pipe_works"; then 12963 break 12964 else 12965 lt_cv_sys_global_symbol_pipe= 12966 fi 12967done 12968 12969fi 12970 12971if test -z "$lt_cv_sys_global_symbol_pipe"; then 12972 lt_cv_sys_global_symbol_to_cdecl= 12973fi 12974if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12976$as_echo "failed" >&6; } 12977else 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12979$as_echo "ok" >&6; } 12980fi 12981 12982# Response file support. 12983if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12984 nm_file_list_spec='@' 12985elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12986 nm_file_list_spec='@' 12987fi 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13026$as_echo_n "checking for sysroot... " >&6; } 13027 13028# Check whether --with-sysroot was given. 13029if test "${with_sysroot+set}" = set; then : 13030 withval=$with_sysroot; 13031else 13032 with_sysroot=no 13033fi 13034 13035 13036lt_sysroot= 13037case $with_sysroot in #( 13038 yes) 13039 if test yes = "$GCC"; then 13040 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13041 fi 13042 ;; #( 13043 /*) 13044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13045 ;; #( 13046 no|'') 13047 ;; #( 13048 *) 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13050$as_echo "$with_sysroot" >&6; } 13051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13052 ;; 13053esac 13054 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13056$as_echo "${lt_sysroot:-no}" >&6; } 13057 13058 13059 13060 13061 13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13063$as_echo_n "checking for a working dd... " >&6; } 13064if ${ac_cv_path_lt_DD+:} false; then : 13065 $as_echo_n "(cached) " >&6 13066else 13067 printf 0123456789abcdef0123456789abcdef >conftest.i 13068cat conftest.i conftest.i >conftest2.i 13069: ${lt_DD:=$DD} 13070if test -z "$lt_DD"; then 13071 ac_path_lt_DD_found=false 13072 # Loop through the user's path and test for each of PROGNAME-LIST 13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13074for as_dir in $PATH 13075do 13076 IFS=$as_save_IFS 13077 test -z "$as_dir" && as_dir=. 13078 for ac_prog in dd; do 13079 for ac_exec_ext in '' $ac_executable_extensions; do 13080 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13081 as_fn_executable_p "$ac_path_lt_DD" || continue 13082if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13083 cmp -s conftest.i conftest.out \ 13084 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13085fi 13086 $ac_path_lt_DD_found && break 3 13087 done 13088 done 13089 done 13090IFS=$as_save_IFS 13091 if test -z "$ac_cv_path_lt_DD"; then 13092 : 13093 fi 13094else 13095 ac_cv_path_lt_DD=$lt_DD 13096fi 13097 13098rm -f conftest.i conftest2.i conftest.out 13099fi 13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13101$as_echo "$ac_cv_path_lt_DD" >&6; } 13102 13103 13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13105$as_echo_n "checking how to truncate binary pipes... " >&6; } 13106if ${lt_cv_truncate_bin+:} false; then : 13107 $as_echo_n "(cached) " >&6 13108else 13109 printf 0123456789abcdef0123456789abcdef >conftest.i 13110cat conftest.i conftest.i >conftest2.i 13111lt_cv_truncate_bin= 13112if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13113 cmp -s conftest.i conftest.out \ 13114 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13115fi 13116rm -f conftest.i conftest2.i conftest.out 13117test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13120$as_echo "$lt_cv_truncate_bin" >&6; } 13121 13122 13123 13124 13125 13126 13127 13128# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13129func_cc_basename () 13130{ 13131 for cc_temp in $*""; do 13132 case $cc_temp in 13133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13135 \-*) ;; 13136 *) break;; 13137 esac 13138 done 13139 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13140} 13141 13142# Check whether --enable-libtool-lock was given. 13143if test "${enable_libtool_lock+set}" = set; then : 13144 enableval=$enable_libtool_lock; 13145fi 13146 13147test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13148 13149# Some flags need to be propagated to the compiler or linker for good 13150# libtool support. 13151case $host in 13152ia64-*-hpux*) 13153 # Find out what ABI is being produced by ac_compile, and set mode 13154 # options accordingly. 13155 echo 'int i;' > conftest.$ac_ext 13156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13157 (eval $ac_compile) 2>&5 13158 ac_status=$? 13159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13160 test $ac_status = 0; }; then 13161 case `/usr/bin/file conftest.$ac_objext` in 13162 *ELF-32*) 13163 HPUX_IA64_MODE=32 13164 ;; 13165 *ELF-64*) 13166 HPUX_IA64_MODE=64 13167 ;; 13168 esac 13169 fi 13170 rm -rf conftest* 13171 ;; 13172*-*-irix6*) 13173 # Find out what ABI is being produced by ac_compile, and set linker 13174 # options accordingly. 13175 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13177 (eval $ac_compile) 2>&5 13178 ac_status=$? 13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13180 test $ac_status = 0; }; then 13181 if test yes = "$lt_cv_prog_gnu_ld"; then 13182 case `/usr/bin/file conftest.$ac_objext` in 13183 *32-bit*) 13184 LD="${LD-ld} -melf32bsmip" 13185 ;; 13186 *N32*) 13187 LD="${LD-ld} -melf32bmipn32" 13188 ;; 13189 *64-bit*) 13190 LD="${LD-ld} -melf64bmip" 13191 ;; 13192 esac 13193 else 13194 case `/usr/bin/file conftest.$ac_objext` in 13195 *32-bit*) 13196 LD="${LD-ld} -32" 13197 ;; 13198 *N32*) 13199 LD="${LD-ld} -n32" 13200 ;; 13201 *64-bit*) 13202 LD="${LD-ld} -64" 13203 ;; 13204 esac 13205 fi 13206 fi 13207 rm -rf conftest* 13208 ;; 13209 13210mips64*-*linux*) 13211 # Find out what ABI is being produced by ac_compile, and set linker 13212 # options accordingly. 13213 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13215 (eval $ac_compile) 2>&5 13216 ac_status=$? 13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13218 test $ac_status = 0; }; then 13219 emul=elf 13220 case `/usr/bin/file conftest.$ac_objext` in 13221 *32-bit*) 13222 emul="${emul}32" 13223 ;; 13224 *64-bit*) 13225 emul="${emul}64" 13226 ;; 13227 esac 13228 case `/usr/bin/file conftest.$ac_objext` in 13229 *MSB*) 13230 emul="${emul}btsmip" 13231 ;; 13232 *LSB*) 13233 emul="${emul}ltsmip" 13234 ;; 13235 esac 13236 case `/usr/bin/file conftest.$ac_objext` in 13237 *N32*) 13238 emul="${emul}n32" 13239 ;; 13240 esac 13241 LD="${LD-ld} -m $emul" 13242 fi 13243 rm -rf conftest* 13244 ;; 13245 13246x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13247s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13248 # Find out what ABI is being produced by ac_compile, and set linker 13249 # options accordingly. Note that the listed cases only cover the 13250 # situations where additional linker options are needed (such as when 13251 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13252 # vice versa); the common cases where no linker options are needed do 13253 # not appear in the list. 13254 echo 'int i;' > conftest.$ac_ext 13255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13256 (eval $ac_compile) 2>&5 13257 ac_status=$? 13258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13259 test $ac_status = 0; }; then 13260 case `/usr/bin/file conftest.o` in 13261 *32-bit*) 13262 case $host in 13263 x86_64-*kfreebsd*-gnu) 13264 LD="${LD-ld} -m elf_i386_fbsd" 13265 ;; 13266 x86_64-*linux*) 13267 case `/usr/bin/file conftest.o` in 13268 *x86-64*) 13269 LD="${LD-ld} -m elf32_x86_64" 13270 ;; 13271 *) 13272 LD="${LD-ld} -m elf_i386" 13273 ;; 13274 esac 13275 ;; 13276 powerpc64le-*linux*) 13277 LD="${LD-ld} -m elf32lppclinux" 13278 ;; 13279 powerpc64-*linux*) 13280 LD="${LD-ld} -m elf32ppclinux" 13281 ;; 13282 s390x-*linux*) 13283 LD="${LD-ld} -m elf_s390" 13284 ;; 13285 sparc64-*linux*) 13286 LD="${LD-ld} -m elf32_sparc" 13287 ;; 13288 esac 13289 ;; 13290 *64-bit*) 13291 case $host in 13292 x86_64-*kfreebsd*-gnu) 13293 LD="${LD-ld} -m elf_x86_64_fbsd" 13294 ;; 13295 x86_64-*linux*) 13296 LD="${LD-ld} -m elf_x86_64" 13297 ;; 13298 powerpcle-*linux*) 13299 LD="${LD-ld} -m elf64lppc" 13300 ;; 13301 powerpc-*linux*) 13302 LD="${LD-ld} -m elf64ppc" 13303 ;; 13304 s390*-*linux*|s390*-*tpf*) 13305 LD="${LD-ld} -m elf64_s390" 13306 ;; 13307 sparc*-*linux*) 13308 LD="${LD-ld} -m elf64_sparc" 13309 ;; 13310 esac 13311 ;; 13312 esac 13313 fi 13314 rm -rf conftest* 13315 ;; 13316 13317*-*-sco3.2v5*) 13318 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13319 SAVE_CFLAGS=$CFLAGS 13320 CFLAGS="$CFLAGS -belf" 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13322$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13323if ${lt_cv_cc_needs_belf+:} false; then : 13324 $as_echo_n "(cached) " >&6 13325else 13326 ac_ext=c 13327ac_cpp='$CPP $CPPFLAGS' 13328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13330ac_compiler_gnu=$ac_cv_c_compiler_gnu 13331 13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13333/* end confdefs.h. */ 13334 13335int 13336main () 13337{ 13338 13339 ; 13340 return 0; 13341} 13342_ACEOF 13343if ac_fn_c_try_link "$LINENO"; then : 13344 lt_cv_cc_needs_belf=yes 13345else 13346 lt_cv_cc_needs_belf=no 13347fi 13348rm -f core conftest.err conftest.$ac_objext \ 13349 conftest$ac_exeext conftest.$ac_ext 13350 ac_ext=c 13351ac_cpp='$CPP $CPPFLAGS' 13352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13354ac_compiler_gnu=$ac_cv_c_compiler_gnu 13355 13356fi 13357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13358$as_echo "$lt_cv_cc_needs_belf" >&6; } 13359 if test yes != "$lt_cv_cc_needs_belf"; then 13360 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13361 CFLAGS=$SAVE_CFLAGS 13362 fi 13363 ;; 13364*-*solaris*) 13365 # Find out what ABI is being produced by ac_compile, and set linker 13366 # options accordingly. 13367 echo 'int i;' > conftest.$ac_ext 13368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13369 (eval $ac_compile) 2>&5 13370 ac_status=$? 13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13372 test $ac_status = 0; }; then 13373 case `/usr/bin/file conftest.o` in 13374 *64-bit*) 13375 case $lt_cv_prog_gnu_ld in 13376 yes*) 13377 case $host in 13378 i?86-*-solaris*|x86_64-*-solaris*) 13379 LD="${LD-ld} -m elf_x86_64" 13380 ;; 13381 sparc*-*-solaris*) 13382 LD="${LD-ld} -m elf64_sparc" 13383 ;; 13384 esac 13385 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13386 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13387 LD=${LD-ld}_sol2 13388 fi 13389 ;; 13390 *) 13391 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13392 LD="${LD-ld} -64" 13393 fi 13394 ;; 13395 esac 13396 ;; 13397 esac 13398 fi 13399 rm -rf conftest* 13400 ;; 13401esac 13402 13403need_locks=$enable_libtool_lock 13404 13405if test -n "$ac_tool_prefix"; then 13406 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13407set dummy ${ac_tool_prefix}mt; ac_word=$2 13408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13409$as_echo_n "checking for $ac_word... " >&6; } 13410if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 if test -n "$MANIFEST_TOOL"; then 13414 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13415else 13416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13417for as_dir in $PATH 13418do 13419 IFS=$as_save_IFS 13420 test -z "$as_dir" && as_dir=. 13421 for ac_exec_ext in '' $ac_executable_extensions; do 13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13423 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13425 break 2 13426 fi 13427done 13428 done 13429IFS=$as_save_IFS 13430 13431fi 13432fi 13433MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13434if test -n "$MANIFEST_TOOL"; then 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13436$as_echo "$MANIFEST_TOOL" >&6; } 13437else 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13439$as_echo "no" >&6; } 13440fi 13441 13442 13443fi 13444if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13445 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13446 # Extract the first word of "mt", so it can be a program name with args. 13447set dummy mt; ac_word=$2 13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13449$as_echo_n "checking for $ac_word... " >&6; } 13450if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13451 $as_echo_n "(cached) " >&6 13452else 13453 if test -n "$ac_ct_MANIFEST_TOOL"; then 13454 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13455else 13456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13457for as_dir in $PATH 13458do 13459 IFS=$as_save_IFS 13460 test -z "$as_dir" && as_dir=. 13461 for ac_exec_ext in '' $ac_executable_extensions; do 13462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13463 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13465 break 2 13466 fi 13467done 13468 done 13469IFS=$as_save_IFS 13470 13471fi 13472fi 13473ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13474if test -n "$ac_ct_MANIFEST_TOOL"; then 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13476$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13477else 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13479$as_echo "no" >&6; } 13480fi 13481 13482 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13483 MANIFEST_TOOL=":" 13484 else 13485 case $cross_compiling:$ac_tool_warned in 13486yes:) 13487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13489ac_tool_warned=yes ;; 13490esac 13491 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13492 fi 13493else 13494 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13495fi 13496 13497test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13499$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13500if ${lt_cv_path_mainfest_tool+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502else 13503 lt_cv_path_mainfest_tool=no 13504 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13505 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13506 cat conftest.err >&5 13507 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13508 lt_cv_path_mainfest_tool=yes 13509 fi 13510 rm -f conftest* 13511fi 13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13513$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13514if test yes != "$lt_cv_path_mainfest_tool"; then 13515 MANIFEST_TOOL=: 13516fi 13517 13518 13519 13520 13521 13522 13523 case $host_os in 13524 rhapsody* | darwin*) 13525 if test -n "$ac_tool_prefix"; then 13526 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13527set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13529$as_echo_n "checking for $ac_word... " >&6; } 13530if ${ac_cv_prog_DSYMUTIL+:} false; then : 13531 $as_echo_n "(cached) " >&6 13532else 13533 if test -n "$DSYMUTIL"; then 13534 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13535else 13536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13537for as_dir in $PATH 13538do 13539 IFS=$as_save_IFS 13540 test -z "$as_dir" && as_dir=. 13541 for ac_exec_ext in '' $ac_executable_extensions; do 13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13543 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13545 break 2 13546 fi 13547done 13548 done 13549IFS=$as_save_IFS 13550 13551fi 13552fi 13553DSYMUTIL=$ac_cv_prog_DSYMUTIL 13554if test -n "$DSYMUTIL"; then 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13556$as_echo "$DSYMUTIL" >&6; } 13557else 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13559$as_echo "no" >&6; } 13560fi 13561 13562 13563fi 13564if test -z "$ac_cv_prog_DSYMUTIL"; then 13565 ac_ct_DSYMUTIL=$DSYMUTIL 13566 # Extract the first word of "dsymutil", so it can be a program name with args. 13567set dummy dsymutil; ac_word=$2 13568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13569$as_echo_n "checking for $ac_word... " >&6; } 13570if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13571 $as_echo_n "(cached) " >&6 13572else 13573 if test -n "$ac_ct_DSYMUTIL"; then 13574 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13575else 13576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13577for as_dir in $PATH 13578do 13579 IFS=$as_save_IFS 13580 test -z "$as_dir" && as_dir=. 13581 for ac_exec_ext in '' $ac_executable_extensions; do 13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13583 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13585 break 2 13586 fi 13587done 13588 done 13589IFS=$as_save_IFS 13590 13591fi 13592fi 13593ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13594if test -n "$ac_ct_DSYMUTIL"; then 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13596$as_echo "$ac_ct_DSYMUTIL" >&6; } 13597else 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13599$as_echo "no" >&6; } 13600fi 13601 13602 if test "x$ac_ct_DSYMUTIL" = x; then 13603 DSYMUTIL=":" 13604 else 13605 case $cross_compiling:$ac_tool_warned in 13606yes:) 13607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13609ac_tool_warned=yes ;; 13610esac 13611 DSYMUTIL=$ac_ct_DSYMUTIL 13612 fi 13613else 13614 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13615fi 13616 13617 if test -n "$ac_tool_prefix"; then 13618 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13619set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13621$as_echo_n "checking for $ac_word... " >&6; } 13622if ${ac_cv_prog_NMEDIT+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624else 13625 if test -n "$NMEDIT"; then 13626 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13627else 13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13629for as_dir in $PATH 13630do 13631 IFS=$as_save_IFS 13632 test -z "$as_dir" && as_dir=. 13633 for ac_exec_ext in '' $ac_executable_extensions; do 13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13635 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13637 break 2 13638 fi 13639done 13640 done 13641IFS=$as_save_IFS 13642 13643fi 13644fi 13645NMEDIT=$ac_cv_prog_NMEDIT 13646if test -n "$NMEDIT"; then 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13648$as_echo "$NMEDIT" >&6; } 13649else 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13651$as_echo "no" >&6; } 13652fi 13653 13654 13655fi 13656if test -z "$ac_cv_prog_NMEDIT"; then 13657 ac_ct_NMEDIT=$NMEDIT 13658 # Extract the first word of "nmedit", so it can be a program name with args. 13659set dummy nmedit; ac_word=$2 13660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13661$as_echo_n "checking for $ac_word... " >&6; } 13662if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13663 $as_echo_n "(cached) " >&6 13664else 13665 if test -n "$ac_ct_NMEDIT"; then 13666 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13667else 13668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13669for as_dir in $PATH 13670do 13671 IFS=$as_save_IFS 13672 test -z "$as_dir" && as_dir=. 13673 for ac_exec_ext in '' $ac_executable_extensions; do 13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13675 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13677 break 2 13678 fi 13679done 13680 done 13681IFS=$as_save_IFS 13682 13683fi 13684fi 13685ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13686if test -n "$ac_ct_NMEDIT"; then 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13688$as_echo "$ac_ct_NMEDIT" >&6; } 13689else 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13691$as_echo "no" >&6; } 13692fi 13693 13694 if test "x$ac_ct_NMEDIT" = x; then 13695 NMEDIT=":" 13696 else 13697 case $cross_compiling:$ac_tool_warned in 13698yes:) 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13701ac_tool_warned=yes ;; 13702esac 13703 NMEDIT=$ac_ct_NMEDIT 13704 fi 13705else 13706 NMEDIT="$ac_cv_prog_NMEDIT" 13707fi 13708 13709 if test -n "$ac_tool_prefix"; then 13710 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13711set dummy ${ac_tool_prefix}lipo; ac_word=$2 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13713$as_echo_n "checking for $ac_word... " >&6; } 13714if ${ac_cv_prog_LIPO+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716else 13717 if test -n "$LIPO"; then 13718 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13719else 13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13721for as_dir in $PATH 13722do 13723 IFS=$as_save_IFS 13724 test -z "$as_dir" && as_dir=. 13725 for ac_exec_ext in '' $ac_executable_extensions; do 13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13727 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13729 break 2 13730 fi 13731done 13732 done 13733IFS=$as_save_IFS 13734 13735fi 13736fi 13737LIPO=$ac_cv_prog_LIPO 13738if test -n "$LIPO"; then 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13740$as_echo "$LIPO" >&6; } 13741else 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13743$as_echo "no" >&6; } 13744fi 13745 13746 13747fi 13748if test -z "$ac_cv_prog_LIPO"; then 13749 ac_ct_LIPO=$LIPO 13750 # Extract the first word of "lipo", so it can be a program name with args. 13751set dummy lipo; ac_word=$2 13752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13753$as_echo_n "checking for $ac_word... " >&6; } 13754if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13755 $as_echo_n "(cached) " >&6 13756else 13757 if test -n "$ac_ct_LIPO"; then 13758 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13759else 13760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13761for as_dir in $PATH 13762do 13763 IFS=$as_save_IFS 13764 test -z "$as_dir" && as_dir=. 13765 for ac_exec_ext in '' $ac_executable_extensions; do 13766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13767 ac_cv_prog_ac_ct_LIPO="lipo" 13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13769 break 2 13770 fi 13771done 13772 done 13773IFS=$as_save_IFS 13774 13775fi 13776fi 13777ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13778if test -n "$ac_ct_LIPO"; then 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13780$as_echo "$ac_ct_LIPO" >&6; } 13781else 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13783$as_echo "no" >&6; } 13784fi 13785 13786 if test "x$ac_ct_LIPO" = x; then 13787 LIPO=":" 13788 else 13789 case $cross_compiling:$ac_tool_warned in 13790yes:) 13791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13793ac_tool_warned=yes ;; 13794esac 13795 LIPO=$ac_ct_LIPO 13796 fi 13797else 13798 LIPO="$ac_cv_prog_LIPO" 13799fi 13800 13801 if test -n "$ac_tool_prefix"; then 13802 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13803set dummy ${ac_tool_prefix}otool; ac_word=$2 13804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13805$as_echo_n "checking for $ac_word... " >&6; } 13806if ${ac_cv_prog_OTOOL+:} false; then : 13807 $as_echo_n "(cached) " >&6 13808else 13809 if test -n "$OTOOL"; then 13810 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13811else 13812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13813for as_dir in $PATH 13814do 13815 IFS=$as_save_IFS 13816 test -z "$as_dir" && as_dir=. 13817 for ac_exec_ext in '' $ac_executable_extensions; do 13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13819 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13821 break 2 13822 fi 13823done 13824 done 13825IFS=$as_save_IFS 13826 13827fi 13828fi 13829OTOOL=$ac_cv_prog_OTOOL 13830if test -n "$OTOOL"; then 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13832$as_echo "$OTOOL" >&6; } 13833else 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835$as_echo "no" >&6; } 13836fi 13837 13838 13839fi 13840if test -z "$ac_cv_prog_OTOOL"; then 13841 ac_ct_OTOOL=$OTOOL 13842 # Extract the first word of "otool", so it can be a program name with args. 13843set dummy otool; ac_word=$2 13844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13845$as_echo_n "checking for $ac_word... " >&6; } 13846if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13847 $as_echo_n "(cached) " >&6 13848else 13849 if test -n "$ac_ct_OTOOL"; then 13850 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13851else 13852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13853for as_dir in $PATH 13854do 13855 IFS=$as_save_IFS 13856 test -z "$as_dir" && as_dir=. 13857 for ac_exec_ext in '' $ac_executable_extensions; do 13858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13859 ac_cv_prog_ac_ct_OTOOL="otool" 13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13861 break 2 13862 fi 13863done 13864 done 13865IFS=$as_save_IFS 13866 13867fi 13868fi 13869ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13870if test -n "$ac_ct_OTOOL"; then 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13872$as_echo "$ac_ct_OTOOL" >&6; } 13873else 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13875$as_echo "no" >&6; } 13876fi 13877 13878 if test "x$ac_ct_OTOOL" = x; then 13879 OTOOL=":" 13880 else 13881 case $cross_compiling:$ac_tool_warned in 13882yes:) 13883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13885ac_tool_warned=yes ;; 13886esac 13887 OTOOL=$ac_ct_OTOOL 13888 fi 13889else 13890 OTOOL="$ac_cv_prog_OTOOL" 13891fi 13892 13893 if test -n "$ac_tool_prefix"; then 13894 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13895set dummy ${ac_tool_prefix}otool64; ac_word=$2 13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13897$as_echo_n "checking for $ac_word... " >&6; } 13898if ${ac_cv_prog_OTOOL64+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900else 13901 if test -n "$OTOOL64"; then 13902 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13903else 13904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13905for as_dir in $PATH 13906do 13907 IFS=$as_save_IFS 13908 test -z "$as_dir" && as_dir=. 13909 for ac_exec_ext in '' $ac_executable_extensions; do 13910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13911 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13913 break 2 13914 fi 13915done 13916 done 13917IFS=$as_save_IFS 13918 13919fi 13920fi 13921OTOOL64=$ac_cv_prog_OTOOL64 13922if test -n "$OTOOL64"; then 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13924$as_echo "$OTOOL64" >&6; } 13925else 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13927$as_echo "no" >&6; } 13928fi 13929 13930 13931fi 13932if test -z "$ac_cv_prog_OTOOL64"; then 13933 ac_ct_OTOOL64=$OTOOL64 13934 # Extract the first word of "otool64", so it can be a program name with args. 13935set dummy otool64; ac_word=$2 13936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13937$as_echo_n "checking for $ac_word... " >&6; } 13938if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13939 $as_echo_n "(cached) " >&6 13940else 13941 if test -n "$ac_ct_OTOOL64"; then 13942 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13943else 13944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13945for as_dir in $PATH 13946do 13947 IFS=$as_save_IFS 13948 test -z "$as_dir" && as_dir=. 13949 for ac_exec_ext in '' $ac_executable_extensions; do 13950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13951 ac_cv_prog_ac_ct_OTOOL64="otool64" 13952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13953 break 2 13954 fi 13955done 13956 done 13957IFS=$as_save_IFS 13958 13959fi 13960fi 13961ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13962if test -n "$ac_ct_OTOOL64"; then 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13964$as_echo "$ac_ct_OTOOL64" >&6; } 13965else 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13967$as_echo "no" >&6; } 13968fi 13969 13970 if test "x$ac_ct_OTOOL64" = x; then 13971 OTOOL64=":" 13972 else 13973 case $cross_compiling:$ac_tool_warned in 13974yes:) 13975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13977ac_tool_warned=yes ;; 13978esac 13979 OTOOL64=$ac_ct_OTOOL64 13980 fi 13981else 13982 OTOOL64="$ac_cv_prog_OTOOL64" 13983fi 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14012$as_echo_n "checking for -single_module linker flag... " >&6; } 14013if ${lt_cv_apple_cc_single_mod+:} false; then : 14014 $as_echo_n "(cached) " >&6 14015else 14016 lt_cv_apple_cc_single_mod=no 14017 if test -z "$LT_MULTI_MODULE"; then 14018 # By default we will add the -single_module flag. You can override 14019 # by either setting the environment variable LT_MULTI_MODULE 14020 # non-empty at configure time, or by adding -multi_module to the 14021 # link flags. 14022 rm -rf libconftest.dylib* 14023 echo "int foo(void){return 1;}" > conftest.c 14024 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14025-dynamiclib -Wl,-single_module conftest.c" >&5 14026 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14027 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14028 _lt_result=$? 14029 # If there is a non-empty error log, and "single_module" 14030 # appears in it, assume the flag caused a linker warning 14031 if test -s conftest.err && $GREP single_module conftest.err; then 14032 cat conftest.err >&5 14033 # Otherwise, if the output was created with a 0 exit code from 14034 # the compiler, it worked. 14035 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14036 lt_cv_apple_cc_single_mod=yes 14037 else 14038 cat conftest.err >&5 14039 fi 14040 rm -rf libconftest.dylib* 14041 rm -f conftest.* 14042 fi 14043fi 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14045$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14046 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14048$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14049if ${lt_cv_ld_exported_symbols_list+:} false; then : 14050 $as_echo_n "(cached) " >&6 14051else 14052 lt_cv_ld_exported_symbols_list=no 14053 save_LDFLAGS=$LDFLAGS 14054 echo "_main" > conftest.sym 14055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14057/* end confdefs.h. */ 14058 14059int 14060main () 14061{ 14062 14063 ; 14064 return 0; 14065} 14066_ACEOF 14067if ac_fn_c_try_link "$LINENO"; then : 14068 lt_cv_ld_exported_symbols_list=yes 14069else 14070 lt_cv_ld_exported_symbols_list=no 14071fi 14072rm -f core conftest.err conftest.$ac_objext \ 14073 conftest$ac_exeext conftest.$ac_ext 14074 LDFLAGS=$save_LDFLAGS 14075 14076fi 14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14078$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14079 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14081$as_echo_n "checking for -force_load linker flag... " >&6; } 14082if ${lt_cv_ld_force_load+:} false; then : 14083 $as_echo_n "(cached) " >&6 14084else 14085 lt_cv_ld_force_load=no 14086 cat > conftest.c << _LT_EOF 14087int forced_loaded() { return 2;} 14088_LT_EOF 14089 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14090 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14091 echo "$AR cru libconftest.a conftest.o" >&5 14092 $AR cru libconftest.a conftest.o 2>&5 14093 echo "$RANLIB libconftest.a" >&5 14094 $RANLIB libconftest.a 2>&5 14095 cat > conftest.c << _LT_EOF 14096int main() { return 0;} 14097_LT_EOF 14098 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14099 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14100 _lt_result=$? 14101 if test -s conftest.err && $GREP force_load conftest.err; then 14102 cat conftest.err >&5 14103 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14104 lt_cv_ld_force_load=yes 14105 else 14106 cat conftest.err >&5 14107 fi 14108 rm -f conftest.err libconftest.a conftest conftest.c 14109 rm -rf conftest.dSYM 14110 14111fi 14112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14113$as_echo "$lt_cv_ld_force_load" >&6; } 14114 case $host_os in 14115 rhapsody* | darwin1.[012]) 14116 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14117 darwin1.*) 14118 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14119 darwin*) # darwin 5.x on 14120 # if running on 10.5 or later, the deployment target defaults 14121 # to the OS version, if on x86, and 10.4, the deployment 14122 # target defaults to 10.4. Don't you love it? 14123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14124 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14125 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14126 10.[012][,.]*) 14127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14128 10.*) 14129 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14130 esac 14131 ;; 14132 esac 14133 if test yes = "$lt_cv_apple_cc_single_mod"; then 14134 _lt_dar_single_mod='$single_module' 14135 fi 14136 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14137 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14138 else 14139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14140 fi 14141 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14142 _lt_dsymutil='~$DSYMUTIL $lib || :' 14143 else 14144 _lt_dsymutil= 14145 fi 14146 ;; 14147 esac 14148 14149# func_munge_path_list VARIABLE PATH 14150# ----------------------------------- 14151# VARIABLE is name of variable containing _space_ separated list of 14152# directories to be munged by the contents of PATH, which is string 14153# having a format: 14154# "DIR[:DIR]:" 14155# string "DIR[ DIR]" will be prepended to VARIABLE 14156# ":DIR[:DIR]" 14157# string "DIR[ DIR]" will be appended to VARIABLE 14158# "DIRP[:DIRP]::[DIRA:]DIRA" 14159# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14160# "DIRA[ DIRA]" will be appended to VARIABLE 14161# "DIR[:DIR]" 14162# VARIABLE will be replaced by "DIR[ DIR]" 14163func_munge_path_list () 14164{ 14165 case x$2 in 14166 x) 14167 ;; 14168 *:) 14169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14170 ;; 14171 x:*) 14172 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14173 ;; 14174 *::*) 14175 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14176 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14177 ;; 14178 *) 14179 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14180 ;; 14181 esac 14182} 14183 14184for ac_header in dlfcn.h 14185do : 14186 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14187" 14188if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14189 cat >>confdefs.h <<_ACEOF 14190#define HAVE_DLFCN_H 1 14191_ACEOF 14192 14193fi 14194 14195done 14196 14197 14198 14199 14200 14201# Set options 14202 14203 14204 14205 enable_dlopen=no 14206 14207 14208 enable_win32_dll=no 14209 14210 14211 # Check whether --enable-shared was given. 14212if test "${enable_shared+set}" = set; then : 14213 enableval=$enable_shared; p=${PACKAGE-default} 14214 case $enableval in 14215 yes) enable_shared=yes ;; 14216 no) enable_shared=no ;; 14217 *) 14218 enable_shared=no 14219 # Look at the argument we got. We use all the common list separators. 14220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14221 for pkg in $enableval; do 14222 IFS=$lt_save_ifs 14223 if test "X$pkg" = "X$p"; then 14224 enable_shared=yes 14225 fi 14226 done 14227 IFS=$lt_save_ifs 14228 ;; 14229 esac 14230else 14231 enable_shared=yes 14232fi 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244# Check whether --with-pic was given. 14245if test "${with_pic+set}" = set; then : 14246 withval=$with_pic; lt_p=${PACKAGE-default} 14247 case $withval in 14248 yes|no) pic_mode=$withval ;; 14249 *) 14250 pic_mode=default 14251 # Look at the argument we got. We use all the common list separators. 14252 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14253 for lt_pkg in $withval; do 14254 IFS=$lt_save_ifs 14255 if test "X$lt_pkg" = "X$lt_p"; then 14256 pic_mode=yes 14257 fi 14258 done 14259 IFS=$lt_save_ifs 14260 ;; 14261 esac 14262else 14263 pic_mode=default 14264fi 14265 14266 14267 14268 14269 14270 14271 14272 14273 # Check whether --enable-fast-install was given. 14274if test "${enable_fast_install+set}" = set; then : 14275 enableval=$enable_fast_install; p=${PACKAGE-default} 14276 case $enableval in 14277 yes) enable_fast_install=yes ;; 14278 no) enable_fast_install=no ;; 14279 *) 14280 enable_fast_install=no 14281 # Look at the argument we got. We use all the common list separators. 14282 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14283 for pkg in $enableval; do 14284 IFS=$lt_save_ifs 14285 if test "X$pkg" = "X$p"; then 14286 enable_fast_install=yes 14287 fi 14288 done 14289 IFS=$lt_save_ifs 14290 ;; 14291 esac 14292else 14293 enable_fast_install=yes 14294fi 14295 14296 14297 14298 14299 14300 14301 14302 14303 shared_archive_member_spec= 14304case $host,$enable_shared in 14305power*-*-aix[5-9]*,yes) 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14307$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14308 14309# Check whether --with-aix-soname was given. 14310if test "${with_aix_soname+set}" = set; then : 14311 withval=$with_aix_soname; case $withval in 14312 aix|svr4|both) 14313 ;; 14314 *) 14315 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14316 ;; 14317 esac 14318 lt_cv_with_aix_soname=$with_aix_soname 14319else 14320 if ${lt_cv_with_aix_soname+:} false; then : 14321 $as_echo_n "(cached) " >&6 14322else 14323 lt_cv_with_aix_soname=aix 14324fi 14325 14326 with_aix_soname=$lt_cv_with_aix_soname 14327fi 14328 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14330$as_echo "$with_aix_soname" >&6; } 14331 if test aix != "$with_aix_soname"; then 14332 # For the AIX way of multilib, we name the shared archive member 14333 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14334 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14335 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14336 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14337 if test 64 = "${OBJECT_MODE-32}"; then 14338 shared_archive_member_spec=shr_64 14339 else 14340 shared_archive_member_spec=shr 14341 fi 14342 fi 14343 ;; 14344*) 14345 with_aix_soname=aix 14346 ;; 14347esac 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358# This can be used to rebuild libtool when needed 14359LIBTOOL_DEPS=$ltmain 14360 14361# Always use our own libtool. 14362LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393test -z "$LN_S" && LN_S="ln -s" 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408if test -n "${ZSH_VERSION+set}"; then 14409 setopt NO_GLOB_SUBST 14410fi 14411 14412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14413$as_echo_n "checking for objdir... " >&6; } 14414if ${lt_cv_objdir+:} false; then : 14415 $as_echo_n "(cached) " >&6 14416else 14417 rm -f .libs 2>/dev/null 14418mkdir .libs 2>/dev/null 14419if test -d .libs; then 14420 lt_cv_objdir=.libs 14421else 14422 # MS-DOS does not allow filenames that begin with a dot. 14423 lt_cv_objdir=_libs 14424fi 14425rmdir .libs 2>/dev/null 14426fi 14427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14428$as_echo "$lt_cv_objdir" >&6; } 14429objdir=$lt_cv_objdir 14430 14431 14432 14433 14434 14435cat >>confdefs.h <<_ACEOF 14436#define LT_OBJDIR "$lt_cv_objdir/" 14437_ACEOF 14438 14439 14440 14441 14442case $host_os in 14443aix3*) 14444 # AIX sometimes has problems with the GCC collect2 program. For some 14445 # reason, if we set the COLLECT_NAMES environment variable, the problems 14446 # vanish in a puff of smoke. 14447 if test set != "${COLLECT_NAMES+set}"; then 14448 COLLECT_NAMES= 14449 export COLLECT_NAMES 14450 fi 14451 ;; 14452esac 14453 14454# Global variables: 14455ofile=libtool 14456can_build_shared=yes 14457 14458# All known linkers require a '.a' archive for static linking (except MSVC, 14459# which needs '.lib'). 14460libext=a 14461 14462with_gnu_ld=$lt_cv_prog_gnu_ld 14463 14464old_CC=$CC 14465old_CFLAGS=$CFLAGS 14466 14467# Set sane defaults for various variables 14468test -z "$CC" && CC=cc 14469test -z "$LTCC" && LTCC=$CC 14470test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14471test -z "$LD" && LD=ld 14472test -z "$ac_objext" && ac_objext=o 14473 14474func_cc_basename $compiler 14475cc_basename=$func_cc_basename_result 14476 14477 14478# Only perform the check for file, if the check method requires it 14479test -z "$MAGIC_CMD" && MAGIC_CMD=file 14480case $deplibs_check_method in 14481file_magic*) 14482 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14484$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14485if ${lt_cv_path_MAGIC_CMD+:} false; then : 14486 $as_echo_n "(cached) " >&6 14487else 14488 case $MAGIC_CMD in 14489[\\/*] | ?:[\\/]*) 14490 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14491 ;; 14492*) 14493 lt_save_MAGIC_CMD=$MAGIC_CMD 14494 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14495 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14496 for ac_dir in $ac_dummy; do 14497 IFS=$lt_save_ifs 14498 test -z "$ac_dir" && ac_dir=. 14499 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14500 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14501 if test -n "$file_magic_test_file"; then 14502 case $deplibs_check_method in 14503 "file_magic "*) 14504 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14507 $EGREP "$file_magic_regex" > /dev/null; then 14508 : 14509 else 14510 cat <<_LT_EOF 1>&2 14511 14512*** Warning: the command libtool uses to detect shared libraries, 14513*** $file_magic_cmd, produces output that libtool cannot recognize. 14514*** The result is that libtool may fail to recognize shared libraries 14515*** as such. This will affect the creation of libtool libraries that 14516*** depend on shared libraries, but programs linked with such libtool 14517*** libraries will work regardless of this problem. Nevertheless, you 14518*** may want to report the problem to your system manager and/or to 14519*** bug-libtool@gnu.org 14520 14521_LT_EOF 14522 fi ;; 14523 esac 14524 fi 14525 break 14526 fi 14527 done 14528 IFS=$lt_save_ifs 14529 MAGIC_CMD=$lt_save_MAGIC_CMD 14530 ;; 14531esac 14532fi 14533 14534MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14535if test -n "$MAGIC_CMD"; then 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14537$as_echo "$MAGIC_CMD" >&6; } 14538else 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14540$as_echo "no" >&6; } 14541fi 14542 14543 14544 14545 14546 14547if test -z "$lt_cv_path_MAGIC_CMD"; then 14548 if test -n "$ac_tool_prefix"; then 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14550$as_echo_n "checking for file... " >&6; } 14551if ${lt_cv_path_MAGIC_CMD+:} false; then : 14552 $as_echo_n "(cached) " >&6 14553else 14554 case $MAGIC_CMD in 14555[\\/*] | ?:[\\/]*) 14556 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14557 ;; 14558*) 14559 lt_save_MAGIC_CMD=$MAGIC_CMD 14560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14562 for ac_dir in $ac_dummy; do 14563 IFS=$lt_save_ifs 14564 test -z "$ac_dir" && ac_dir=. 14565 if test -f "$ac_dir/file"; then 14566 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14567 if test -n "$file_magic_test_file"; then 14568 case $deplibs_check_method in 14569 "file_magic "*) 14570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14573 $EGREP "$file_magic_regex" > /dev/null; then 14574 : 14575 else 14576 cat <<_LT_EOF 1>&2 14577 14578*** Warning: the command libtool uses to detect shared libraries, 14579*** $file_magic_cmd, produces output that libtool cannot recognize. 14580*** The result is that libtool may fail to recognize shared libraries 14581*** as such. This will affect the creation of libtool libraries that 14582*** depend on shared libraries, but programs linked with such libtool 14583*** libraries will work regardless of this problem. Nevertheless, you 14584*** may want to report the problem to your system manager and/or to 14585*** bug-libtool@gnu.org 14586 14587_LT_EOF 14588 fi ;; 14589 esac 14590 fi 14591 break 14592 fi 14593 done 14594 IFS=$lt_save_ifs 14595 MAGIC_CMD=$lt_save_MAGIC_CMD 14596 ;; 14597esac 14598fi 14599 14600MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14601if test -n "$MAGIC_CMD"; then 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14603$as_echo "$MAGIC_CMD" >&6; } 14604else 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14606$as_echo "no" >&6; } 14607fi 14608 14609 14610 else 14611 MAGIC_CMD=: 14612 fi 14613fi 14614 14615 fi 14616 ;; 14617esac 14618 14619# Use C for the default configuration in the libtool script 14620 14621lt_save_CC=$CC 14622ac_ext=c 14623ac_cpp='$CPP $CPPFLAGS' 14624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14626ac_compiler_gnu=$ac_cv_c_compiler_gnu 14627 14628 14629# Source file extension for C test sources. 14630ac_ext=c 14631 14632# Object file extension for compiled C test sources. 14633objext=o 14634objext=$objext 14635 14636# Code to be used in simple compile tests 14637lt_simple_compile_test_code="int some_variable = 0;" 14638 14639# Code to be used in simple link tests 14640lt_simple_link_test_code='int main(){return(0);}' 14641 14642 14643 14644 14645 14646 14647 14648# If no C compiler was specified, use CC. 14649LTCC=${LTCC-"$CC"} 14650 14651# If no C compiler flags were specified, use CFLAGS. 14652LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14653 14654# Allow CC to be a program name with arguments. 14655compiler=$CC 14656 14657# Save the default compiler, since it gets overwritten when the other 14658# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14659compiler_DEFAULT=$CC 14660 14661# save warnings/boilerplate of simple test code 14662ac_outfile=conftest.$ac_objext 14663echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14665_lt_compiler_boilerplate=`cat conftest.err` 14666$RM conftest* 14667 14668ac_outfile=conftest.$ac_objext 14669echo "$lt_simple_link_test_code" >conftest.$ac_ext 14670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14671_lt_linker_boilerplate=`cat conftest.err` 14672$RM -r conftest* 14673 14674 14675if test -n "$compiler"; then 14676 14677lt_prog_compiler_no_builtin_flag= 14678 14679if test yes = "$GCC"; then 14680 case $cc_basename in 14681 nvcc*) 14682 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14683 *) 14684 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14685 esac 14686 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14688$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14689if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14690 $as_echo_n "(cached) " >&6 14691else 14692 lt_cv_prog_compiler_rtti_exceptions=no 14693 ac_outfile=conftest.$ac_objext 14694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14695 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14696 # Insert the option either (1) after the last *FLAGS variable, or 14697 # (2) before a word containing "conftest.", or (3) at the end. 14698 # Note that $ac_compile itself does not contain backslashes and begins 14699 # with a dollar sign (not a hyphen), so the echo should work correctly. 14700 # The option is referenced via a variable to avoid confusing sed. 14701 lt_compile=`echo "$ac_compile" | $SED \ 14702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14704 -e 's:$: $lt_compiler_flag:'` 14705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14706 (eval "$lt_compile" 2>conftest.err) 14707 ac_status=$? 14708 cat conftest.err >&5 14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14710 if (exit $ac_status) && test -s "$ac_outfile"; then 14711 # The compiler can only warn and ignore the option if not recognized 14712 # So say no if there are warnings other than the usual output. 14713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14716 lt_cv_prog_compiler_rtti_exceptions=yes 14717 fi 14718 fi 14719 $RM conftest* 14720 14721fi 14722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14723$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14724 14725if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14726 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14727else 14728 : 14729fi 14730 14731fi 14732 14733 14734 14735 14736 14737 14738 lt_prog_compiler_wl= 14739lt_prog_compiler_pic= 14740lt_prog_compiler_static= 14741 14742 14743 if test yes = "$GCC"; then 14744 lt_prog_compiler_wl='-Wl,' 14745 lt_prog_compiler_static='-static' 14746 14747 case $host_os in 14748 aix*) 14749 # All AIX code is PIC. 14750 if test ia64 = "$host_cpu"; then 14751 # AIX 5 now supports IA64 processor 14752 lt_prog_compiler_static='-Bstatic' 14753 fi 14754 lt_prog_compiler_pic='-fPIC' 14755 ;; 14756 14757 amigaos*) 14758 case $host_cpu in 14759 powerpc) 14760 # see comment about AmigaOS4 .so support 14761 lt_prog_compiler_pic='-fPIC' 14762 ;; 14763 m68k) 14764 # FIXME: we need at least 68020 code to build shared libraries, but 14765 # adding the '-m68020' flag to GCC prevents building anything better, 14766 # like '-m68040'. 14767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14768 ;; 14769 esac 14770 ;; 14771 14772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14773 # PIC is the default for these OSes. 14774 ;; 14775 14776 mingw* | cygwin* | pw32* | os2* | cegcc*) 14777 # This hack is so that the source file can tell whether it is being 14778 # built for inclusion in a dll (and should export symbols for example). 14779 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14780 # (--disable-auto-import) libraries 14781 lt_prog_compiler_pic='-DDLL_EXPORT' 14782 case $host_os in 14783 os2*) 14784 lt_prog_compiler_static='$wl-static' 14785 ;; 14786 esac 14787 ;; 14788 14789 darwin* | rhapsody*) 14790 # PIC is the default on this platform 14791 # Common symbols not allowed in MH_DYLIB files 14792 lt_prog_compiler_pic='-fno-common' 14793 ;; 14794 14795 haiku*) 14796 # PIC is the default for Haiku. 14797 # The "-static" flag exists, but is broken. 14798 lt_prog_compiler_static= 14799 ;; 14800 14801 hpux*) 14802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14804 # sets the default TLS model and affects inlining. 14805 case $host_cpu in 14806 hppa*64*) 14807 # +Z the default 14808 ;; 14809 *) 14810 lt_prog_compiler_pic='-fPIC' 14811 ;; 14812 esac 14813 ;; 14814 14815 interix[3-9]*) 14816 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14817 # Instead, we relocate shared libraries at runtime. 14818 ;; 14819 14820 msdosdjgpp*) 14821 # Just because we use GCC doesn't mean we suddenly get shared libraries 14822 # on systems that don't support them. 14823 lt_prog_compiler_can_build_shared=no 14824 enable_shared=no 14825 ;; 14826 14827 *nto* | *qnx*) 14828 # QNX uses GNU C++, but need to define -shared option too, otherwise 14829 # it will coredump. 14830 lt_prog_compiler_pic='-fPIC -shared' 14831 ;; 14832 14833 sysv4*MP*) 14834 if test -d /usr/nec; then 14835 lt_prog_compiler_pic=-Kconform_pic 14836 fi 14837 ;; 14838 14839 *) 14840 lt_prog_compiler_pic='-fPIC' 14841 ;; 14842 esac 14843 14844 case $cc_basename in 14845 nvcc*) # Cuda Compiler Driver 2.2 14846 lt_prog_compiler_wl='-Xlinker ' 14847 if test -n "$lt_prog_compiler_pic"; then 14848 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14849 fi 14850 ;; 14851 esac 14852 else 14853 # PORTME Check for flag to pass linker flags through the system compiler. 14854 case $host_os in 14855 aix*) 14856 lt_prog_compiler_wl='-Wl,' 14857 if test ia64 = "$host_cpu"; then 14858 # AIX 5 now supports IA64 processor 14859 lt_prog_compiler_static='-Bstatic' 14860 else 14861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14862 fi 14863 ;; 14864 14865 darwin* | rhapsody*) 14866 # PIC is the default on this platform 14867 # Common symbols not allowed in MH_DYLIB files 14868 lt_prog_compiler_pic='-fno-common' 14869 case $cc_basename in 14870 nagfor*) 14871 # NAG Fortran compiler 14872 lt_prog_compiler_wl='-Wl,-Wl,,' 14873 lt_prog_compiler_pic='-PIC' 14874 lt_prog_compiler_static='-Bstatic' 14875 ;; 14876 esac 14877 ;; 14878 14879 mingw* | cygwin* | pw32* | os2* | cegcc*) 14880 # This hack is so that the source file can tell whether it is being 14881 # built for inclusion in a dll (and should export symbols for example). 14882 lt_prog_compiler_pic='-DDLL_EXPORT' 14883 case $host_os in 14884 os2*) 14885 lt_prog_compiler_static='$wl-static' 14886 ;; 14887 esac 14888 ;; 14889 14890 hpux9* | hpux10* | hpux11*) 14891 lt_prog_compiler_wl='-Wl,' 14892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14893 # not for PA HP-UX. 14894 case $host_cpu in 14895 hppa*64*|ia64*) 14896 # +Z the default 14897 ;; 14898 *) 14899 lt_prog_compiler_pic='+Z' 14900 ;; 14901 esac 14902 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14903 lt_prog_compiler_static='$wl-a ${wl}archive' 14904 ;; 14905 14906 irix5* | irix6* | nonstopux*) 14907 lt_prog_compiler_wl='-Wl,' 14908 # PIC (with -KPIC) is the default. 14909 lt_prog_compiler_static='-non_shared' 14910 ;; 14911 14912 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14913 case $cc_basename in 14914 # old Intel for x86_64, which still supported -KPIC. 14915 ecc*) 14916 lt_prog_compiler_wl='-Wl,' 14917 lt_prog_compiler_pic='-KPIC' 14918 lt_prog_compiler_static='-static' 14919 ;; 14920 # icc used to be incompatible with GCC. 14921 # ICC 10 doesn't accept -KPIC any more. 14922 icc* | ifort*) 14923 lt_prog_compiler_wl='-Wl,' 14924 lt_prog_compiler_pic='-fPIC' 14925 lt_prog_compiler_static='-static' 14926 ;; 14927 # Lahey Fortran 8.1. 14928 lf95*) 14929 lt_prog_compiler_wl='-Wl,' 14930 lt_prog_compiler_pic='--shared' 14931 lt_prog_compiler_static='--static' 14932 ;; 14933 nagfor*) 14934 # NAG Fortran compiler 14935 lt_prog_compiler_wl='-Wl,-Wl,,' 14936 lt_prog_compiler_pic='-PIC' 14937 lt_prog_compiler_static='-Bstatic' 14938 ;; 14939 tcc*) 14940 # Fabrice Bellard et al's Tiny C Compiler 14941 lt_prog_compiler_wl='-Wl,' 14942 lt_prog_compiler_pic='-fPIC' 14943 lt_prog_compiler_static='-static' 14944 ;; 14945 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14946 # Portland Group compilers (*not* the Pentium gcc compiler, 14947 # which looks to be a dead project) 14948 lt_prog_compiler_wl='-Wl,' 14949 lt_prog_compiler_pic='-fpic' 14950 lt_prog_compiler_static='-Bstatic' 14951 ;; 14952 ccc*) 14953 lt_prog_compiler_wl='-Wl,' 14954 # All Alpha code is PIC. 14955 lt_prog_compiler_static='-non_shared' 14956 ;; 14957 xl* | bgxl* | bgf* | mpixl*) 14958 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14959 lt_prog_compiler_wl='-Wl,' 14960 lt_prog_compiler_pic='-qpic' 14961 lt_prog_compiler_static='-qstaticlink' 14962 ;; 14963 *) 14964 case `$CC -V 2>&1 | sed 5q` in 14965 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14966 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14967 lt_prog_compiler_pic='-KPIC' 14968 lt_prog_compiler_static='-Bstatic' 14969 lt_prog_compiler_wl='' 14970 ;; 14971 *Sun\ F* | *Sun*Fortran*) 14972 lt_prog_compiler_pic='-KPIC' 14973 lt_prog_compiler_static='-Bstatic' 14974 lt_prog_compiler_wl='-Qoption ld ' 14975 ;; 14976 *Sun\ C*) 14977 # Sun C 5.9 14978 lt_prog_compiler_pic='-KPIC' 14979 lt_prog_compiler_static='-Bstatic' 14980 lt_prog_compiler_wl='-Wl,' 14981 ;; 14982 *Intel*\ [CF]*Compiler*) 14983 lt_prog_compiler_wl='-Wl,' 14984 lt_prog_compiler_pic='-fPIC' 14985 lt_prog_compiler_static='-static' 14986 ;; 14987 *Portland\ Group*) 14988 lt_prog_compiler_wl='-Wl,' 14989 lt_prog_compiler_pic='-fpic' 14990 lt_prog_compiler_static='-Bstatic' 14991 ;; 14992 esac 14993 ;; 14994 esac 14995 ;; 14996 14997 newsos6) 14998 lt_prog_compiler_pic='-KPIC' 14999 lt_prog_compiler_static='-Bstatic' 15000 ;; 15001 15002 *nto* | *qnx*) 15003 # QNX uses GNU C++, but need to define -shared option too, otherwise 15004 # it will coredump. 15005 lt_prog_compiler_pic='-fPIC -shared' 15006 ;; 15007 15008 osf3* | osf4* | osf5*) 15009 lt_prog_compiler_wl='-Wl,' 15010 # All OSF/1 code is PIC. 15011 lt_prog_compiler_static='-non_shared' 15012 ;; 15013 15014 rdos*) 15015 lt_prog_compiler_static='-non_shared' 15016 ;; 15017 15018 solaris*) 15019 lt_prog_compiler_pic='-KPIC' 15020 lt_prog_compiler_static='-Bstatic' 15021 case $cc_basename in 15022 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15023 lt_prog_compiler_wl='-Qoption ld ';; 15024 *) 15025 lt_prog_compiler_wl='-Wl,';; 15026 esac 15027 ;; 15028 15029 sunos4*) 15030 lt_prog_compiler_wl='-Qoption ld ' 15031 lt_prog_compiler_pic='-PIC' 15032 lt_prog_compiler_static='-Bstatic' 15033 ;; 15034 15035 sysv4 | sysv4.2uw2* | sysv4.3*) 15036 lt_prog_compiler_wl='-Wl,' 15037 lt_prog_compiler_pic='-KPIC' 15038 lt_prog_compiler_static='-Bstatic' 15039 ;; 15040 15041 sysv4*MP*) 15042 if test -d /usr/nec; then 15043 lt_prog_compiler_pic='-Kconform_pic' 15044 lt_prog_compiler_static='-Bstatic' 15045 fi 15046 ;; 15047 15048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15049 lt_prog_compiler_wl='-Wl,' 15050 lt_prog_compiler_pic='-KPIC' 15051 lt_prog_compiler_static='-Bstatic' 15052 ;; 15053 15054 unicos*) 15055 lt_prog_compiler_wl='-Wl,' 15056 lt_prog_compiler_can_build_shared=no 15057 ;; 15058 15059 uts4*) 15060 lt_prog_compiler_pic='-pic' 15061 lt_prog_compiler_static='-Bstatic' 15062 ;; 15063 15064 *) 15065 lt_prog_compiler_can_build_shared=no 15066 ;; 15067 esac 15068 fi 15069 15070case $host_os in 15071 # For platforms that do not support PIC, -DPIC is meaningless: 15072 *djgpp*) 15073 lt_prog_compiler_pic= 15074 ;; 15075 *) 15076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15077 ;; 15078esac 15079 15080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15081$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15082if ${lt_cv_prog_compiler_pic+:} false; then : 15083 $as_echo_n "(cached) " >&6 15084else 15085 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15086fi 15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15088$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15089lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15090 15091# 15092# Check to make sure the PIC flag actually works. 15093# 15094if test -n "$lt_prog_compiler_pic"; then 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15096$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15097if ${lt_cv_prog_compiler_pic_works+:} false; then : 15098 $as_echo_n "(cached) " >&6 15099else 15100 lt_cv_prog_compiler_pic_works=no 15101 ac_outfile=conftest.$ac_objext 15102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15103 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15104 # Insert the option either (1) after the last *FLAGS variable, or 15105 # (2) before a word containing "conftest.", or (3) at the end. 15106 # Note that $ac_compile itself does not contain backslashes and begins 15107 # with a dollar sign (not a hyphen), so the echo should work correctly. 15108 # The option is referenced via a variable to avoid confusing sed. 15109 lt_compile=`echo "$ac_compile" | $SED \ 15110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15112 -e 's:$: $lt_compiler_flag:'` 15113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15114 (eval "$lt_compile" 2>conftest.err) 15115 ac_status=$? 15116 cat conftest.err >&5 15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15118 if (exit $ac_status) && test -s "$ac_outfile"; then 15119 # The compiler can only warn and ignore the option if not recognized 15120 # So say no if there are warnings other than the usual output. 15121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15124 lt_cv_prog_compiler_pic_works=yes 15125 fi 15126 fi 15127 $RM conftest* 15128 15129fi 15130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15131$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15132 15133if test yes = "$lt_cv_prog_compiler_pic_works"; then 15134 case $lt_prog_compiler_pic in 15135 "" | " "*) ;; 15136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15137 esac 15138else 15139 lt_prog_compiler_pic= 15140 lt_prog_compiler_can_build_shared=no 15141fi 15142 15143fi 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155# 15156# Check to make sure the static flag actually works. 15157# 15158wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15160$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15161if ${lt_cv_prog_compiler_static_works+:} false; then : 15162 $as_echo_n "(cached) " >&6 15163else 15164 lt_cv_prog_compiler_static_works=no 15165 save_LDFLAGS=$LDFLAGS 15166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15167 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15169 # The linker can only warn and ignore the option if not recognized 15170 # So say no if there are warnings 15171 if test -s conftest.err; then 15172 # Append any errors to the config.log. 15173 cat conftest.err 1>&5 15174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15176 if diff conftest.exp conftest.er2 >/dev/null; then 15177 lt_cv_prog_compiler_static_works=yes 15178 fi 15179 else 15180 lt_cv_prog_compiler_static_works=yes 15181 fi 15182 fi 15183 $RM -r conftest* 15184 LDFLAGS=$save_LDFLAGS 15185 15186fi 15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15188$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15189 15190if test yes = "$lt_cv_prog_compiler_static_works"; then 15191 : 15192else 15193 lt_prog_compiler_static= 15194fi 15195 15196 15197 15198 15199 15200 15201 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15203$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15204if ${lt_cv_prog_compiler_c_o+:} false; then : 15205 $as_echo_n "(cached) " >&6 15206else 15207 lt_cv_prog_compiler_c_o=no 15208 $RM -r conftest 2>/dev/null 15209 mkdir conftest 15210 cd conftest 15211 mkdir out 15212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15213 15214 lt_compiler_flag="-o out/conftest2.$ac_objext" 15215 # Insert the option either (1) after the last *FLAGS variable, or 15216 # (2) before a word containing "conftest.", or (3) at the end. 15217 # Note that $ac_compile itself does not contain backslashes and begins 15218 # with a dollar sign (not a hyphen), so the echo should work correctly. 15219 lt_compile=`echo "$ac_compile" | $SED \ 15220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15222 -e 's:$: $lt_compiler_flag:'` 15223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15224 (eval "$lt_compile" 2>out/conftest.err) 15225 ac_status=$? 15226 cat out/conftest.err >&5 15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15228 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15229 then 15230 # The compiler can only warn and ignore the option if not recognized 15231 # So say no if there are warnings 15232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15235 lt_cv_prog_compiler_c_o=yes 15236 fi 15237 fi 15238 chmod u+w . 2>&5 15239 $RM conftest* 15240 # SGI C++ compiler will create directory out/ii_files/ for 15241 # template instantiation 15242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15243 $RM out/* && rmdir out 15244 cd .. 15245 $RM -r conftest 15246 $RM conftest* 15247 15248fi 15249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15250$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15251 15252 15253 15254 15255 15256 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15258$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15259if ${lt_cv_prog_compiler_c_o+:} false; then : 15260 $as_echo_n "(cached) " >&6 15261else 15262 lt_cv_prog_compiler_c_o=no 15263 $RM -r conftest 2>/dev/null 15264 mkdir conftest 15265 cd conftest 15266 mkdir out 15267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15268 15269 lt_compiler_flag="-o out/conftest2.$ac_objext" 15270 # Insert the option either (1) after the last *FLAGS variable, or 15271 # (2) before a word containing "conftest.", or (3) at the end. 15272 # Note that $ac_compile itself does not contain backslashes and begins 15273 # with a dollar sign (not a hyphen), so the echo should work correctly. 15274 lt_compile=`echo "$ac_compile" | $SED \ 15275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15277 -e 's:$: $lt_compiler_flag:'` 15278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15279 (eval "$lt_compile" 2>out/conftest.err) 15280 ac_status=$? 15281 cat out/conftest.err >&5 15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15283 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15284 then 15285 # The compiler can only warn and ignore the option if not recognized 15286 # So say no if there are warnings 15287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15290 lt_cv_prog_compiler_c_o=yes 15291 fi 15292 fi 15293 chmod u+w . 2>&5 15294 $RM conftest* 15295 # SGI C++ compiler will create directory out/ii_files/ for 15296 # template instantiation 15297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15298 $RM out/* && rmdir out 15299 cd .. 15300 $RM -r conftest 15301 $RM conftest* 15302 15303fi 15304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15305$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15306 15307 15308 15309 15310hard_links=nottested 15311if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15312 # do not overwrite the value of need_locks provided by the user 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15314$as_echo_n "checking if we can lock with hard links... " >&6; } 15315 hard_links=yes 15316 $RM conftest* 15317 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15318 touch conftest.a 15319 ln conftest.a conftest.b 2>&5 || hard_links=no 15320 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15322$as_echo "$hard_links" >&6; } 15323 if test no = "$hard_links"; then 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15325$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15326 need_locks=warn 15327 fi 15328else 15329 need_locks=no 15330fi 15331 15332 15333 15334 15335 15336 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15338$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15339 15340 runpath_var= 15341 allow_undefined_flag= 15342 always_export_symbols=no 15343 archive_cmds= 15344 archive_expsym_cmds= 15345 compiler_needs_object=no 15346 enable_shared_with_static_runtimes=no 15347 export_dynamic_flag_spec= 15348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15349 hardcode_automatic=no 15350 hardcode_direct=no 15351 hardcode_direct_absolute=no 15352 hardcode_libdir_flag_spec= 15353 hardcode_libdir_separator= 15354 hardcode_minus_L=no 15355 hardcode_shlibpath_var=unsupported 15356 inherit_rpath=no 15357 link_all_deplibs=unknown 15358 module_cmds= 15359 module_expsym_cmds= 15360 old_archive_from_new_cmds= 15361 old_archive_from_expsyms_cmds= 15362 thread_safe_flag_spec= 15363 whole_archive_flag_spec= 15364 # include_expsyms should be a list of space-separated symbols to be *always* 15365 # included in the symbol list 15366 include_expsyms= 15367 # exclude_expsyms can be an extended regexp of symbols to exclude 15368 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15369 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15370 # as well as any symbol that contains 'd'. 15371 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15373 # platforms (ab)use it in PIC code, but their linkers get confused if 15374 # the symbol is explicitly referenced. Since portable code cannot 15375 # rely on this symbol name, it's probably fine to never include it in 15376 # preloaded symbol tables. 15377 # Exclude shared library initialization/finalization symbols. 15378 extract_expsyms_cmds= 15379 15380 case $host_os in 15381 cygwin* | mingw* | pw32* | cegcc*) 15382 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15383 # When not using gcc, we currently assume that we are using 15384 # Microsoft Visual C++. 15385 if test yes != "$GCC"; then 15386 with_gnu_ld=no 15387 fi 15388 ;; 15389 interix*) 15390 # we just hope/assume this is gcc and not c89 (= MSVC++) 15391 with_gnu_ld=yes 15392 ;; 15393 openbsd* | bitrig*) 15394 with_gnu_ld=no 15395 ;; 15396 linux* | k*bsd*-gnu | gnu*) 15397 link_all_deplibs=no 15398 ;; 15399 esac 15400 15401 ld_shlibs=yes 15402 15403 # On some targets, GNU ld is compatible enough with the native linker 15404 # that we're better off using the native interface for both. 15405 lt_use_gnu_ld_interface=no 15406 if test yes = "$with_gnu_ld"; then 15407 case $host_os in 15408 aix*) 15409 # The AIX port of GNU ld has always aspired to compatibility 15410 # with the native linker. However, as the warning in the GNU ld 15411 # block says, versions before 2.19.5* couldn't really create working 15412 # shared libraries, regardless of the interface used. 15413 case `$LD -v 2>&1` in 15414 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15415 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15416 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15417 *) 15418 lt_use_gnu_ld_interface=yes 15419 ;; 15420 esac 15421 ;; 15422 *) 15423 lt_use_gnu_ld_interface=yes 15424 ;; 15425 esac 15426 fi 15427 15428 if test yes = "$lt_use_gnu_ld_interface"; then 15429 # If archive_cmds runs LD, not CC, wlarc should be empty 15430 wlarc='$wl' 15431 15432 # Set some defaults for GNU ld with shared library support. These 15433 # are reset later if shared libraries are not supported. Putting them 15434 # here allows them to be overridden if necessary. 15435 runpath_var=LD_RUN_PATH 15436 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15437 export_dynamic_flag_spec='$wl--export-dynamic' 15438 # ancient GNU ld didn't support --whole-archive et. al. 15439 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15440 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15441 else 15442 whole_archive_flag_spec= 15443 fi 15444 supports_anon_versioning=no 15445 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15446 *GNU\ gold*) supports_anon_versioning=yes ;; 15447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15450 *\ 2.11.*) ;; # other 2.11 versions 15451 *) supports_anon_versioning=yes ;; 15452 esac 15453 15454 # See if GNU ld supports shared libraries. 15455 case $host_os in 15456 aix[3-9]*) 15457 # On AIX/PPC, the GNU linker is very broken 15458 if test ia64 != "$host_cpu"; then 15459 ld_shlibs=no 15460 cat <<_LT_EOF 1>&2 15461 15462*** Warning: the GNU linker, at least up to release 2.19, is reported 15463*** to be unable to reliably create shared libraries on AIX. 15464*** Therefore, libtool is disabling shared libraries support. If you 15465*** really care for shared libraries, you may want to install binutils 15466*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15467*** You will then need to restart the configuration process. 15468 15469_LT_EOF 15470 fi 15471 ;; 15472 15473 amigaos*) 15474 case $host_cpu in 15475 powerpc) 15476 # see comment about AmigaOS4 .so support 15477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15478 archive_expsym_cmds='' 15479 ;; 15480 m68k) 15481 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)' 15482 hardcode_libdir_flag_spec='-L$libdir' 15483 hardcode_minus_L=yes 15484 ;; 15485 esac 15486 ;; 15487 15488 beos*) 15489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15490 allow_undefined_flag=unsupported 15491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15492 # support --undefined. This deserves some investigation. FIXME 15493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15494 else 15495 ld_shlibs=no 15496 fi 15497 ;; 15498 15499 cygwin* | mingw* | pw32* | cegcc*) 15500 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15501 # as there is no search path for DLLs. 15502 hardcode_libdir_flag_spec='-L$libdir' 15503 export_dynamic_flag_spec='$wl--export-all-symbols' 15504 allow_undefined_flag=unsupported 15505 always_export_symbols=no 15506 enable_shared_with_static_runtimes=yes 15507 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' 15508 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15509 15510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15512 # If the export-symbols file already is a .def file, use it as 15513 # is; otherwise, prepend EXPORTS... 15514 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15515 cp $export_symbols $output_objdir/$soname.def; 15516 else 15517 echo EXPORTS > $output_objdir/$soname.def; 15518 cat $export_symbols >> $output_objdir/$soname.def; 15519 fi~ 15520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15521 else 15522 ld_shlibs=no 15523 fi 15524 ;; 15525 15526 haiku*) 15527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15528 link_all_deplibs=yes 15529 ;; 15530 15531 os2*) 15532 hardcode_libdir_flag_spec='-L$libdir' 15533 hardcode_minus_L=yes 15534 allow_undefined_flag=unsupported 15535 shrext_cmds=.dll 15536 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15539 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15540 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15541 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15542 emximp -o $lib $output_objdir/$libname.def' 15543 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15544 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15545 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15546 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15547 prefix_cmds="$SED"~ 15548 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15549 prefix_cmds="$prefix_cmds -e 1d"; 15550 fi~ 15551 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15552 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15554 emximp -o $lib $output_objdir/$libname.def' 15555 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15556 enable_shared_with_static_runtimes=yes 15557 ;; 15558 15559 interix[3-9]*) 15560 hardcode_direct=no 15561 hardcode_shlibpath_var=no 15562 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15563 export_dynamic_flag_spec='$wl-E' 15564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15565 # Instead, shared libraries are loaded at an image base (0x10000000 by 15566 # default) and relocated if they conflict, which is a slow very memory 15567 # consuming and fragmenting process. To avoid this, we pick a random, 15568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15569 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15571 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' 15572 ;; 15573 15574 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15575 tmp_diet=no 15576 if test linux-dietlibc = "$host_os"; then 15577 case $cc_basename in 15578 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15579 esac 15580 fi 15581 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15582 && test no = "$tmp_diet" 15583 then 15584 tmp_addflag=' $pic_flag' 15585 tmp_sharedflag='-shared' 15586 case $cc_basename,$host_cpu in 15587 pgcc*) # Portland Group C compiler 15588 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' 15589 tmp_addflag=' $pic_flag' 15590 ;; 15591 pgf77* | pgf90* | pgf95* | pgfortran*) 15592 # Portland Group f77 and f90 compilers 15593 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' 15594 tmp_addflag=' $pic_flag -Mnomain' ;; 15595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15596 tmp_addflag=' -i_dynamic' ;; 15597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15598 tmp_addflag=' -i_dynamic -nofor_main' ;; 15599 ifc* | ifort*) # Intel Fortran compiler 15600 tmp_addflag=' -nofor_main' ;; 15601 lf95*) # Lahey Fortran 8.1 15602 whole_archive_flag_spec= 15603 tmp_sharedflag='--shared' ;; 15604 nagfor*) # NAGFOR 5.3 15605 tmp_sharedflag='-Wl,-shared' ;; 15606 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15607 tmp_sharedflag='-qmkshrobj' 15608 tmp_addflag= ;; 15609 nvcc*) # Cuda Compiler Driver 2.2 15610 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' 15611 compiler_needs_object=yes 15612 ;; 15613 esac 15614 case `$CC -V 2>&1 | sed 5q` in 15615 *Sun\ C*) # Sun C 5.9 15616 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' 15617 compiler_needs_object=yes 15618 tmp_sharedflag='-G' ;; 15619 *Sun\ F*) # Sun Fortran 8.3 15620 tmp_sharedflag='-G' ;; 15621 esac 15622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15623 15624 if test yes = "$supports_anon_versioning"; then 15625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15627 echo "local: *; };" >> $output_objdir/$libname.ver~ 15628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15629 fi 15630 15631 case $cc_basename in 15632 tcc*) 15633 export_dynamic_flag_spec='-rdynamic' 15634 ;; 15635 xlf* | bgf* | bgxlf* | mpixlf*) 15636 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15637 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15639 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15640 if test yes = "$supports_anon_versioning"; then 15641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15643 echo "local: *; };" >> $output_objdir/$libname.ver~ 15644 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15645 fi 15646 ;; 15647 esac 15648 else 15649 ld_shlibs=no 15650 fi 15651 ;; 15652 15653 netbsd* | netbsdelf*-gnu) 15654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15656 wlarc= 15657 else 15658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15660 fi 15661 ;; 15662 15663 solaris*) 15664 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15665 ld_shlibs=no 15666 cat <<_LT_EOF 1>&2 15667 15668*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15669*** create shared libraries on Solaris systems. Therefore, libtool 15670*** is disabling shared libraries support. We urge you to upgrade GNU 15671*** binutils to release 2.9.1 or newer. Another option is to modify 15672*** your PATH or compiler configuration so that the native linker is 15673*** used, and then restart. 15674 15675_LT_EOF 15676 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15678 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15679 else 15680 ld_shlibs=no 15681 fi 15682 ;; 15683 15684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15685 case `$LD -v 2>&1` in 15686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15687 ld_shlibs=no 15688 cat <<_LT_EOF 1>&2 15689 15690*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15691*** reliably create shared libraries on SCO systems. Therefore, libtool 15692*** is disabling shared libraries support. We urge you to upgrade GNU 15693*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15694*** your PATH or compiler configuration so that the native linker is 15695*** used, and then restart. 15696 15697_LT_EOF 15698 ;; 15699 *) 15700 # For security reasons, it is highly recommended that you always 15701 # use absolute paths for naming shared libraries, and exclude the 15702 # DT_RUNPATH tag from executables and libraries. But doing so 15703 # requires that you compile everything twice, which is a pain. 15704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15708 else 15709 ld_shlibs=no 15710 fi 15711 ;; 15712 esac 15713 ;; 15714 15715 sunos4*) 15716 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15717 wlarc= 15718 hardcode_direct=yes 15719 hardcode_shlibpath_var=no 15720 ;; 15721 15722 *) 15723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15726 else 15727 ld_shlibs=no 15728 fi 15729 ;; 15730 esac 15731 15732 if test no = "$ld_shlibs"; then 15733 runpath_var= 15734 hardcode_libdir_flag_spec= 15735 export_dynamic_flag_spec= 15736 whole_archive_flag_spec= 15737 fi 15738 else 15739 # PORTME fill in a description of your system's linker (not GNU ld) 15740 case $host_os in 15741 aix3*) 15742 allow_undefined_flag=unsupported 15743 always_export_symbols=yes 15744 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' 15745 # Note: this linker hardcodes the directories in LIBPATH if there 15746 # are no directories specified by -L. 15747 hardcode_minus_L=yes 15748 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15749 # Neither direct hardcoding nor static linking is supported with a 15750 # broken collect2. 15751 hardcode_direct=unsupported 15752 fi 15753 ;; 15754 15755 aix[4-9]*) 15756 if test ia64 = "$host_cpu"; then 15757 # On IA64, the linker does run time linking by default, so we don't 15758 # have to do anything special. 15759 aix_use_runtimelinking=no 15760 exp_sym_flag='-Bexport' 15761 no_entry_flag= 15762 else 15763 # If we're using GNU nm, then we don't want the "-C" option. 15764 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15765 # Without the "-l" option, or with the "-B" option, AIX nm treats 15766 # weak defined symbols like other global defined symbols, whereas 15767 # GNU nm marks them as "W". 15768 # While the 'weak' keyword is ignored in the Export File, we need 15769 # it in the Import File for the 'aix-soname' feature, so we have 15770 # to replace the "-B" option with "-P" for AIX nm. 15771 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15772 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' 15773 else 15774 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' 15775 fi 15776 aix_use_runtimelinking=no 15777 15778 # Test if we are trying to use run time linking or normal 15779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15780 # have runtime linking enabled, and use it for executables. 15781 # For shared libraries, we enable/disable runtime linking 15782 # depending on the kind of the shared library created - 15783 # when "with_aix_soname,aix_use_runtimelinking" is: 15784 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15785 # "aix,yes" lib.so shared, rtl:yes, for executables 15786 # lib.a static archive 15787 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15788 # lib.a(lib.so.V) shared, rtl:no, for executables 15789 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15790 # lib.a(lib.so.V) shared, rtl:no 15791 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15792 # lib.a static archive 15793 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15794 for ld_flag in $LDFLAGS; do 15795 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15796 aix_use_runtimelinking=yes 15797 break 15798 fi 15799 done 15800 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15801 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15802 # so we don't have lib.a shared libs to link our executables. 15803 # We have to force runtime linking in this case. 15804 aix_use_runtimelinking=yes 15805 LDFLAGS="$LDFLAGS -Wl,-brtl" 15806 fi 15807 ;; 15808 esac 15809 15810 exp_sym_flag='-bexport' 15811 no_entry_flag='-bnoentry' 15812 fi 15813 15814 # When large executables or shared objects are built, AIX ld can 15815 # have problems creating the table of contents. If linking a library 15816 # or program results in "error TOC overflow" add -mminimal-toc to 15817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15819 15820 archive_cmds='' 15821 hardcode_direct=yes 15822 hardcode_direct_absolute=yes 15823 hardcode_libdir_separator=':' 15824 link_all_deplibs=yes 15825 file_list_spec='$wl-f,' 15826 case $with_aix_soname,$aix_use_runtimelinking in 15827 aix,*) ;; # traditional, no import file 15828 svr4,* | *,yes) # use import file 15829 # The Import File defines what to hardcode. 15830 hardcode_direct=no 15831 hardcode_direct_absolute=no 15832 ;; 15833 esac 15834 15835 if test yes = "$GCC"; then 15836 case $host_os in aix4.[012]|aix4.[012].*) 15837 # We only want to do this on AIX 4.2 and lower, the check 15838 # below for broken collect2 doesn't work under 4.3+ 15839 collect2name=`$CC -print-prog-name=collect2` 15840 if test -f "$collect2name" && 15841 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15842 then 15843 # We have reworked collect2 15844 : 15845 else 15846 # We have old collect2 15847 hardcode_direct=unsupported 15848 # It fails to find uninstalled libraries when the uninstalled 15849 # path is not listed in the libpath. Setting hardcode_minus_L 15850 # to unsupported forces relinking 15851 hardcode_minus_L=yes 15852 hardcode_libdir_flag_spec='-L$libdir' 15853 hardcode_libdir_separator= 15854 fi 15855 ;; 15856 esac 15857 shared_flag='-shared' 15858 if test yes = "$aix_use_runtimelinking"; then 15859 shared_flag="$shared_flag "'$wl-G' 15860 fi 15861 # Need to ensure runtime linking is disabled for the traditional 15862 # shared library, or the linker may eventually find shared libraries 15863 # /with/ Import File - we do not want to mix them. 15864 shared_flag_aix='-shared' 15865 shared_flag_svr4='-shared $wl-G' 15866 else 15867 # not using gcc 15868 if test ia64 = "$host_cpu"; then 15869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15870 # chokes on -Wl,-G. The following line is correct: 15871 shared_flag='-G' 15872 else 15873 if test yes = "$aix_use_runtimelinking"; then 15874 shared_flag='$wl-G' 15875 else 15876 shared_flag='$wl-bM:SRE' 15877 fi 15878 shared_flag_aix='$wl-bM:SRE' 15879 shared_flag_svr4='$wl-G' 15880 fi 15881 fi 15882 15883 export_dynamic_flag_spec='$wl-bexpall' 15884 # It seems that -bexpall does not export symbols beginning with 15885 # underscore (_), so it is better to generate a list of symbols to export. 15886 always_export_symbols=yes 15887 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15888 # Warning - without using the other runtime loading flags (-brtl), 15889 # -berok will link without error, but may produce a broken library. 15890 allow_undefined_flag='-berok' 15891 # Determine the default libpath from the value encoded in an 15892 # empty executable. 15893 if test set = "${lt_cv_aix_libpath+set}"; then 15894 aix_libpath=$lt_cv_aix_libpath 15895else 15896 if ${lt_cv_aix_libpath_+:} false; then : 15897 $as_echo_n "(cached) " >&6 15898else 15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15900/* end confdefs.h. */ 15901 15902int 15903main () 15904{ 15905 15906 ; 15907 return 0; 15908} 15909_ACEOF 15910if ac_fn_c_try_link "$LINENO"; then : 15911 15912 lt_aix_libpath_sed=' 15913 /Import File Strings/,/^$/ { 15914 /^0/ { 15915 s/^0 *\([^ ]*\) *$/\1/ 15916 p 15917 } 15918 }' 15919 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15920 # Check for a 64-bit object if we didn't find anything. 15921 if test -z "$lt_cv_aix_libpath_"; then 15922 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15923 fi 15924fi 15925rm -f core conftest.err conftest.$ac_objext \ 15926 conftest$ac_exeext conftest.$ac_ext 15927 if test -z "$lt_cv_aix_libpath_"; then 15928 lt_cv_aix_libpath_=/usr/lib:/lib 15929 fi 15930 15931fi 15932 15933 aix_libpath=$lt_cv_aix_libpath_ 15934fi 15935 15936 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15937 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 15938 else 15939 if test ia64 = "$host_cpu"; then 15940 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15941 allow_undefined_flag="-z nodefs" 15942 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" 15943 else 15944 # Determine the default libpath from the value encoded in an 15945 # empty executable. 15946 if test set = "${lt_cv_aix_libpath+set}"; then 15947 aix_libpath=$lt_cv_aix_libpath 15948else 15949 if ${lt_cv_aix_libpath_+:} false; then : 15950 $as_echo_n "(cached) " >&6 15951else 15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15953/* end confdefs.h. */ 15954 15955int 15956main () 15957{ 15958 15959 ; 15960 return 0; 15961} 15962_ACEOF 15963if ac_fn_c_try_link "$LINENO"; then : 15964 15965 lt_aix_libpath_sed=' 15966 /Import File Strings/,/^$/ { 15967 /^0/ { 15968 s/^0 *\([^ ]*\) *$/\1/ 15969 p 15970 } 15971 }' 15972 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15973 # Check for a 64-bit object if we didn't find anything. 15974 if test -z "$lt_cv_aix_libpath_"; then 15975 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15976 fi 15977fi 15978rm -f core conftest.err conftest.$ac_objext \ 15979 conftest$ac_exeext conftest.$ac_ext 15980 if test -z "$lt_cv_aix_libpath_"; then 15981 lt_cv_aix_libpath_=/usr/lib:/lib 15982 fi 15983 15984fi 15985 15986 aix_libpath=$lt_cv_aix_libpath_ 15987fi 15988 15989 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15990 # Warning - without using the other run time loading flags, 15991 # -berok will link without error, but may produce a broken library. 15992 no_undefined_flag=' $wl-bernotok' 15993 allow_undefined_flag=' $wl-berok' 15994 if test yes = "$with_gnu_ld"; then 15995 # We only use this code for GNU lds that support --whole-archive. 15996 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15997 else 15998 # Exported symbols can be pulled into shared objects from archives 15999 whole_archive_flag_spec='$convenience' 16000 fi 16001 archive_cmds_need_lc=yes 16002 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16003 # -brtl affects multiple linker settings, -berok does not and is overridden later 16004 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16005 if test svr4 != "$with_aix_soname"; then 16006 # This is similar to how AIX traditionally builds its shared libraries. 16007 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' 16008 fi 16009 if test aix != "$with_aix_soname"; then 16010 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' 16011 else 16012 # used by -dlpreopen to get the symbols 16013 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16014 fi 16015 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16016 fi 16017 fi 16018 ;; 16019 16020 amigaos*) 16021 case $host_cpu in 16022 powerpc) 16023 # see comment about AmigaOS4 .so support 16024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16025 archive_expsym_cmds='' 16026 ;; 16027 m68k) 16028 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)' 16029 hardcode_libdir_flag_spec='-L$libdir' 16030 hardcode_minus_L=yes 16031 ;; 16032 esac 16033 ;; 16034 16035 bsdi[45]*) 16036 export_dynamic_flag_spec=-rdynamic 16037 ;; 16038 16039 cygwin* | mingw* | pw32* | cegcc*) 16040 # When not using gcc, we currently assume that we are using 16041 # Microsoft Visual C++. 16042 # hardcode_libdir_flag_spec is actually meaningless, as there is 16043 # no search path for DLLs. 16044 case $cc_basename in 16045 cl*) 16046 # Native MSVC 16047 hardcode_libdir_flag_spec=' ' 16048 allow_undefined_flag=unsupported 16049 always_export_symbols=yes 16050 file_list_spec='@' 16051 # Tell ltmain to make .lib files, not .a files. 16052 libext=lib 16053 # Tell ltmain to make .dll files, not .so files. 16054 shrext_cmds=.dll 16055 # FIXME: Setting linknames here is a bad hack. 16056 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16057 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16058 cp "$export_symbols" "$output_objdir/$soname.def"; 16059 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16060 else 16061 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16062 fi~ 16063 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16064 linknames=' 16065 # The linker will not automatically build a static lib if we build a DLL. 16066 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16067 enable_shared_with_static_runtimes=yes 16068 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16070 # Don't use ranlib 16071 old_postinstall_cmds='chmod 644 $oldlib' 16072 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16073 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16074 case $lt_outputfile in 16075 *.exe|*.EXE) ;; 16076 *) 16077 lt_outputfile=$lt_outputfile.exe 16078 lt_tool_outputfile=$lt_tool_outputfile.exe 16079 ;; 16080 esac~ 16081 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16082 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16083 $RM "$lt_outputfile.manifest"; 16084 fi' 16085 ;; 16086 *) 16087 # Assume MSVC wrapper 16088 hardcode_libdir_flag_spec=' ' 16089 allow_undefined_flag=unsupported 16090 # Tell ltmain to make .lib files, not .a files. 16091 libext=lib 16092 # Tell ltmain to make .dll files, not .so files. 16093 shrext_cmds=.dll 16094 # FIXME: Setting linknames here is a bad hack. 16095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16096 # The linker will automatically build a .lib file if we build a DLL. 16097 old_archive_from_new_cmds='true' 16098 # FIXME: Should let the user specify the lib program. 16099 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16100 enable_shared_with_static_runtimes=yes 16101 ;; 16102 esac 16103 ;; 16104 16105 darwin* | rhapsody*) 16106 16107 16108 archive_cmds_need_lc=no 16109 hardcode_direct=no 16110 hardcode_automatic=yes 16111 hardcode_shlibpath_var=unsupported 16112 if test yes = "$lt_cv_ld_force_load"; then 16113 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\"`' 16114 16115 else 16116 whole_archive_flag_spec='' 16117 fi 16118 link_all_deplibs=yes 16119 allow_undefined_flag=$_lt_dar_allow_undefined 16120 case $cc_basename in 16121 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16122 *) _lt_dar_can_shared=$GCC ;; 16123 esac 16124 if test yes = "$_lt_dar_can_shared"; then 16125 output_verbose_link_cmd=func_echo_all 16126 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16127 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16128 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" 16129 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" 16130 16131 else 16132 ld_shlibs=no 16133 fi 16134 16135 ;; 16136 16137 dgux*) 16138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16139 hardcode_libdir_flag_spec='-L$libdir' 16140 hardcode_shlibpath_var=no 16141 ;; 16142 16143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16144 # support. Future versions do this automatically, but an explicit c++rt0.o 16145 # does not break anything, and helps significantly (at the cost of a little 16146 # extra space). 16147 freebsd2.2*) 16148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16149 hardcode_libdir_flag_spec='-R$libdir' 16150 hardcode_direct=yes 16151 hardcode_shlibpath_var=no 16152 ;; 16153 16154 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16155 freebsd2.*) 16156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16157 hardcode_direct=yes 16158 hardcode_minus_L=yes 16159 hardcode_shlibpath_var=no 16160 ;; 16161 16162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16163 freebsd* | dragonfly*) 16164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16165 hardcode_libdir_flag_spec='-R$libdir' 16166 hardcode_direct=yes 16167 hardcode_shlibpath_var=no 16168 ;; 16169 16170 hpux9*) 16171 if test yes = "$GCC"; then 16172 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' 16173 else 16174 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' 16175 fi 16176 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16177 hardcode_libdir_separator=: 16178 hardcode_direct=yes 16179 16180 # hardcode_minus_L: Not really in the search PATH, 16181 # but as the default location of the library. 16182 hardcode_minus_L=yes 16183 export_dynamic_flag_spec='$wl-E' 16184 ;; 16185 16186 hpux10*) 16187 if test yes,no = "$GCC,$with_gnu_ld"; then 16188 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16189 else 16190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16191 fi 16192 if test no = "$with_gnu_ld"; then 16193 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16194 hardcode_libdir_separator=: 16195 hardcode_direct=yes 16196 hardcode_direct_absolute=yes 16197 export_dynamic_flag_spec='$wl-E' 16198 # hardcode_minus_L: Not really in the search PATH, 16199 # but as the default location of the library. 16200 hardcode_minus_L=yes 16201 fi 16202 ;; 16203 16204 hpux11*) 16205 if test yes,no = "$GCC,$with_gnu_ld"; then 16206 case $host_cpu in 16207 hppa*64*) 16208 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16209 ;; 16210 ia64*) 16211 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16212 ;; 16213 *) 16214 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16215 ;; 16216 esac 16217 else 16218 case $host_cpu in 16219 hppa*64*) 16220 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16221 ;; 16222 ia64*) 16223 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16224 ;; 16225 *) 16226 16227 # Older versions of the 11.00 compiler do not understand -b yet 16228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16230$as_echo_n "checking if $CC understands -b... " >&6; } 16231if ${lt_cv_prog_compiler__b+:} false; then : 16232 $as_echo_n "(cached) " >&6 16233else 16234 lt_cv_prog_compiler__b=no 16235 save_LDFLAGS=$LDFLAGS 16236 LDFLAGS="$LDFLAGS -b" 16237 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16239 # The linker can only warn and ignore the option if not recognized 16240 # So say no if there are warnings 16241 if test -s conftest.err; then 16242 # Append any errors to the config.log. 16243 cat conftest.err 1>&5 16244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16246 if diff conftest.exp conftest.er2 >/dev/null; then 16247 lt_cv_prog_compiler__b=yes 16248 fi 16249 else 16250 lt_cv_prog_compiler__b=yes 16251 fi 16252 fi 16253 $RM -r conftest* 16254 LDFLAGS=$save_LDFLAGS 16255 16256fi 16257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16258$as_echo "$lt_cv_prog_compiler__b" >&6; } 16259 16260if test yes = "$lt_cv_prog_compiler__b"; then 16261 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16262else 16263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16264fi 16265 16266 ;; 16267 esac 16268 fi 16269 if test no = "$with_gnu_ld"; then 16270 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16271 hardcode_libdir_separator=: 16272 16273 case $host_cpu in 16274 hppa*64*|ia64*) 16275 hardcode_direct=no 16276 hardcode_shlibpath_var=no 16277 ;; 16278 *) 16279 hardcode_direct=yes 16280 hardcode_direct_absolute=yes 16281 export_dynamic_flag_spec='$wl-E' 16282 16283 # hardcode_minus_L: Not really in the search PATH, 16284 # but as the default location of the library. 16285 hardcode_minus_L=yes 16286 ;; 16287 esac 16288 fi 16289 ;; 16290 16291 irix5* | irix6* | nonstopux*) 16292 if test yes = "$GCC"; then 16293 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' 16294 # Try to use the -exported_symbol ld option, if it does not 16295 # work, assume that -exports_file does not work either and 16296 # implicitly export all symbols. 16297 # This should be the same for all languages, so no per-tag cache variable. 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16299$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16300if ${lt_cv_irix_exported_symbol+:} false; then : 16301 $as_echo_n "(cached) " >&6 16302else 16303 save_LDFLAGS=$LDFLAGS 16304 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306/* end confdefs.h. */ 16307int foo (void) { return 0; } 16308_ACEOF 16309if ac_fn_c_try_link "$LINENO"; then : 16310 lt_cv_irix_exported_symbol=yes 16311else 16312 lt_cv_irix_exported_symbol=no 16313fi 16314rm -f core conftest.err conftest.$ac_objext \ 16315 conftest$ac_exeext conftest.$ac_ext 16316 LDFLAGS=$save_LDFLAGS 16317fi 16318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16319$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16320 if test yes = "$lt_cv_irix_exported_symbol"; then 16321 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' 16322 fi 16323 link_all_deplibs=no 16324 else 16325 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' 16326 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' 16327 fi 16328 archive_cmds_need_lc='no' 16329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16330 hardcode_libdir_separator=: 16331 inherit_rpath=yes 16332 link_all_deplibs=yes 16333 ;; 16334 16335 linux*) 16336 case $cc_basename in 16337 tcc*) 16338 # Fabrice Bellard et al's Tiny C Compiler 16339 ld_shlibs=yes 16340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16341 ;; 16342 esac 16343 ;; 16344 16345 netbsd* | netbsdelf*-gnu) 16346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16348 else 16349 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16350 fi 16351 hardcode_libdir_flag_spec='-R$libdir' 16352 hardcode_direct=yes 16353 hardcode_shlibpath_var=no 16354 ;; 16355 16356 newsos6) 16357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16358 hardcode_direct=yes 16359 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16360 hardcode_libdir_separator=: 16361 hardcode_shlibpath_var=no 16362 ;; 16363 16364 *nto* | *qnx*) 16365 ;; 16366 16367 openbsd* | bitrig*) 16368 if test -f /usr/libexec/ld.so; then 16369 hardcode_direct=yes 16370 hardcode_shlibpath_var=no 16371 hardcode_direct_absolute=yes 16372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16374 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16375 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16376 export_dynamic_flag_spec='$wl-E' 16377 else 16378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16379 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16380 fi 16381 else 16382 ld_shlibs=no 16383 fi 16384 ;; 16385 16386 os2*) 16387 hardcode_libdir_flag_spec='-L$libdir' 16388 hardcode_minus_L=yes 16389 allow_undefined_flag=unsupported 16390 shrext_cmds=.dll 16391 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16392 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16393 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16394 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16395 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16396 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16397 emximp -o $lib $output_objdir/$libname.def' 16398 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16399 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16400 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16401 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16402 prefix_cmds="$SED"~ 16403 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16404 prefix_cmds="$prefix_cmds -e 1d"; 16405 fi~ 16406 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16407 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16408 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16409 emximp -o $lib $output_objdir/$libname.def' 16410 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16411 enable_shared_with_static_runtimes=yes 16412 ;; 16413 16414 osf3*) 16415 if test yes = "$GCC"; then 16416 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16417 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' 16418 else 16419 allow_undefined_flag=' -expect_unresolved \*' 16420 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' 16421 fi 16422 archive_cmds_need_lc='no' 16423 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16424 hardcode_libdir_separator=: 16425 ;; 16426 16427 osf4* | osf5*) # as osf3* with the addition of -msym flag 16428 if test yes = "$GCC"; then 16429 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16430 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' 16431 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16432 else 16433 allow_undefined_flag=' -expect_unresolved \*' 16434 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' 16435 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~ 16436 $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' 16437 16438 # Both c and cxx compiler support -rpath directly 16439 hardcode_libdir_flag_spec='-rpath $libdir' 16440 fi 16441 archive_cmds_need_lc='no' 16442 hardcode_libdir_separator=: 16443 ;; 16444 16445 solaris*) 16446 no_undefined_flag=' -z defs' 16447 if test yes = "$GCC"; then 16448 wlarc='$wl' 16449 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16451 $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' 16452 else 16453 case `$CC -V 2>&1` in 16454 *"Compilers 5.0"*) 16455 wlarc='' 16456 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16458 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16459 ;; 16460 *) 16461 wlarc='$wl' 16462 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16463 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16464 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16465 ;; 16466 esac 16467 fi 16468 hardcode_libdir_flag_spec='-R$libdir' 16469 hardcode_shlibpath_var=no 16470 case $host_os in 16471 solaris2.[0-5] | solaris2.[0-5].*) ;; 16472 *) 16473 # The compiler driver will combine and reorder linker options, 16474 # but understands '-z linker_flag'. GCC discards it without '$wl', 16475 # but is careful enough not to reorder. 16476 # Supported since Solaris 2.6 (maybe 2.5.1?) 16477 if test yes = "$GCC"; then 16478 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16479 else 16480 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16481 fi 16482 ;; 16483 esac 16484 link_all_deplibs=yes 16485 ;; 16486 16487 sunos4*) 16488 if test sequent = "$host_vendor"; then 16489 # Use $CC to link under sequent, because it throws in some extra .o 16490 # files that make .init and .fini sections work. 16491 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16492 else 16493 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16494 fi 16495 hardcode_libdir_flag_spec='-L$libdir' 16496 hardcode_direct=yes 16497 hardcode_minus_L=yes 16498 hardcode_shlibpath_var=no 16499 ;; 16500 16501 sysv4) 16502 case $host_vendor in 16503 sni) 16504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16505 hardcode_direct=yes # is this really true??? 16506 ;; 16507 siemens) 16508 ## LD is ld it makes a PLAMLIB 16509 ## CC just makes a GrossModule. 16510 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16511 reload_cmds='$CC -r -o $output$reload_objs' 16512 hardcode_direct=no 16513 ;; 16514 motorola) 16515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16516 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16517 ;; 16518 esac 16519 runpath_var='LD_RUN_PATH' 16520 hardcode_shlibpath_var=no 16521 ;; 16522 16523 sysv4.3*) 16524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16525 hardcode_shlibpath_var=no 16526 export_dynamic_flag_spec='-Bexport' 16527 ;; 16528 16529 sysv4*MP*) 16530 if test -d /usr/nec; then 16531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16532 hardcode_shlibpath_var=no 16533 runpath_var=LD_RUN_PATH 16534 hardcode_runpath_var=yes 16535 ld_shlibs=yes 16536 fi 16537 ;; 16538 16539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16540 no_undefined_flag='$wl-z,text' 16541 archive_cmds_need_lc=no 16542 hardcode_shlibpath_var=no 16543 runpath_var='LD_RUN_PATH' 16544 16545 if test yes = "$GCC"; then 16546 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16547 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16548 else 16549 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16550 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16551 fi 16552 ;; 16553 16554 sysv5* | sco3.2v5* | sco5v6*) 16555 # Note: We CANNOT use -z defs as we might desire, because we do not 16556 # link with -lc, and that would cause any symbols used from libc to 16557 # always be unresolved, which means just about no library would 16558 # ever link correctly. If we're not using GNU ld we use -z text 16559 # though, which does catch some bad symbols but isn't as heavy-handed 16560 # as -z defs. 16561 no_undefined_flag='$wl-z,text' 16562 allow_undefined_flag='$wl-z,nodefs' 16563 archive_cmds_need_lc=no 16564 hardcode_shlibpath_var=no 16565 hardcode_libdir_flag_spec='$wl-R,$libdir' 16566 hardcode_libdir_separator=':' 16567 link_all_deplibs=yes 16568 export_dynamic_flag_spec='$wl-Bexport' 16569 runpath_var='LD_RUN_PATH' 16570 16571 if test yes = "$GCC"; then 16572 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16573 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16574 else 16575 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16576 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16577 fi 16578 ;; 16579 16580 uts4*) 16581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16582 hardcode_libdir_flag_spec='-L$libdir' 16583 hardcode_shlibpath_var=no 16584 ;; 16585 16586 *) 16587 ld_shlibs=no 16588 ;; 16589 esac 16590 16591 if test sni = "$host_vendor"; then 16592 case $host in 16593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16594 export_dynamic_flag_spec='$wl-Blargedynsym' 16595 ;; 16596 esac 16597 fi 16598 fi 16599 16600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16601$as_echo "$ld_shlibs" >&6; } 16602test no = "$ld_shlibs" && can_build_shared=no 16603 16604with_gnu_ld=$with_gnu_ld 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620# 16621# Do we need to explicitly link libc? 16622# 16623case "x$archive_cmds_need_lc" in 16624x|xyes) 16625 # Assume -lc should be added 16626 archive_cmds_need_lc=yes 16627 16628 if test yes,yes = "$GCC,$enable_shared"; then 16629 case $archive_cmds in 16630 *'~'*) 16631 # FIXME: we may have to deal with multi-command sequences. 16632 ;; 16633 '$CC '*) 16634 # Test whether the compiler implicitly links with -lc since on some 16635 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16636 # to ld, don't add -lc before -lgcc. 16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16638$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16639if ${lt_cv_archive_cmds_need_lc+:} false; then : 16640 $as_echo_n "(cached) " >&6 16641else 16642 $RM conftest* 16643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16644 16645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16646 (eval $ac_compile) 2>&5 16647 ac_status=$? 16648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16649 test $ac_status = 0; } 2>conftest.err; then 16650 soname=conftest 16651 lib=conftest 16652 libobjs=conftest.$ac_objext 16653 deplibs= 16654 wl=$lt_prog_compiler_wl 16655 pic_flag=$lt_prog_compiler_pic 16656 compiler_flags=-v 16657 linker_flags=-v 16658 verstring= 16659 output_objdir=. 16660 libname=conftest 16661 lt_save_allow_undefined_flag=$allow_undefined_flag 16662 allow_undefined_flag= 16663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16664 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16665 ac_status=$? 16666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16667 test $ac_status = 0; } 16668 then 16669 lt_cv_archive_cmds_need_lc=no 16670 else 16671 lt_cv_archive_cmds_need_lc=yes 16672 fi 16673 allow_undefined_flag=$lt_save_allow_undefined_flag 16674 else 16675 cat conftest.err 1>&5 16676 fi 16677 $RM conftest* 16678 16679fi 16680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16681$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16682 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16683 ;; 16684 esac 16685 fi 16686 ;; 16687esac 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16841$as_echo_n "checking dynamic linker characteristics... " >&6; } 16842 16843if test yes = "$GCC"; then 16844 case $host_os in 16845 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16846 *) lt_awk_arg='/^libraries:/' ;; 16847 esac 16848 case $host_os in 16849 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16850 *) lt_sed_strip_eq='s|=/|/|g' ;; 16851 esac 16852 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16853 case $lt_search_path_spec in 16854 *\;*) 16855 # if the path contains ";" then we assume it to be the separator 16856 # otherwise default to the standard path separator (i.e. ":") - it is 16857 # assumed that no part of a normal pathname contains ";" but that should 16858 # okay in the real world where ";" in dirpaths is itself problematic. 16859 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16860 ;; 16861 *) 16862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16863 ;; 16864 esac 16865 # Ok, now we have the path, separated by spaces, we can step through it 16866 # and add multilib dir if necessary... 16867 lt_tmp_lt_search_path_spec= 16868 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16869 # ...but if some path component already ends with the multilib dir we assume 16870 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16871 case "$lt_multi_os_dir; $lt_search_path_spec " in 16872 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16873 lt_multi_os_dir= 16874 ;; 16875 esac 16876 for lt_sys_path in $lt_search_path_spec; do 16877 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16878 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16879 elif test -n "$lt_multi_os_dir"; then 16880 test -d "$lt_sys_path" && \ 16881 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16882 fi 16883 done 16884 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16885BEGIN {RS = " "; FS = "/|\n";} { 16886 lt_foo = ""; 16887 lt_count = 0; 16888 for (lt_i = NF; lt_i > 0; lt_i--) { 16889 if ($lt_i != "" && $lt_i != ".") { 16890 if ($lt_i == "..") { 16891 lt_count++; 16892 } else { 16893 if (lt_count == 0) { 16894 lt_foo = "/" $lt_i lt_foo; 16895 } else { 16896 lt_count--; 16897 } 16898 } 16899 } 16900 } 16901 if (lt_foo != "") { lt_freq[lt_foo]++; } 16902 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16903}'` 16904 # AWK program above erroneously prepends '/' to C:/dos/paths 16905 # for these hosts. 16906 case $host_os in 16907 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16908 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16909 esac 16910 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16911else 16912 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16913fi 16914library_names_spec= 16915libname_spec='lib$name' 16916soname_spec= 16917shrext_cmds=.so 16918postinstall_cmds= 16919postuninstall_cmds= 16920finish_cmds= 16921finish_eval= 16922shlibpath_var= 16923shlibpath_overrides_runpath=unknown 16924version_type=none 16925dynamic_linker="$host_os ld.so" 16926sys_lib_dlsearch_path_spec="/lib /usr/lib" 16927need_lib_prefix=unknown 16928hardcode_into_libs=no 16929 16930# when you set need_version to no, make sure it does not cause -set_version 16931# flags to be left without arguments 16932need_version=unknown 16933 16934 16935 16936case $host_os in 16937aix3*) 16938 version_type=linux # correct to gnu/linux during the next big refactor 16939 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16940 shlibpath_var=LIBPATH 16941 16942 # AIX 3 has no versioning support, so we append a major version to the name. 16943 soname_spec='$libname$release$shared_ext$major' 16944 ;; 16945 16946aix[4-9]*) 16947 version_type=linux # correct to gnu/linux during the next big refactor 16948 need_lib_prefix=no 16949 need_version=no 16950 hardcode_into_libs=yes 16951 if test ia64 = "$host_cpu"; then 16952 # AIX 5 supports IA64 16953 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16954 shlibpath_var=LD_LIBRARY_PATH 16955 else 16956 # With GCC up to 2.95.x, collect2 would create an import file 16957 # for dependence libraries. The import file would start with 16958 # the line '#! .'. This would cause the generated library to 16959 # depend on '.', always an invalid library. This was fixed in 16960 # development snapshots of GCC prior to 3.0. 16961 case $host_os in 16962 aix4 | aix4.[01] | aix4.[01].*) 16963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16964 echo ' yes ' 16965 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16966 : 16967 else 16968 can_build_shared=no 16969 fi 16970 ;; 16971 esac 16972 # Using Import Files as archive members, it is possible to support 16973 # filename-based versioning of shared library archives on AIX. While 16974 # this would work for both with and without runtime linking, it will 16975 # prevent static linking of such archives. So we do filename-based 16976 # shared library versioning with .so extension only, which is used 16977 # when both runtime linking and shared linking is enabled. 16978 # Unfortunately, runtime linking may impact performance, so we do 16979 # not want this to be the default eventually. Also, we use the 16980 # versioned .so libs for executables only if there is the -brtl 16981 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16982 # To allow for filename-based versioning support, we need to create 16983 # libNAME.so.V as an archive file, containing: 16984 # *) an Import File, referring to the versioned filename of the 16985 # archive as well as the shared archive member, telling the 16986 # bitwidth (32 or 64) of that shared object, and providing the 16987 # list of exported symbols of that shared object, eventually 16988 # decorated with the 'weak' keyword 16989 # *) the shared object with the F_LOADONLY flag set, to really avoid 16990 # it being seen by the linker. 16991 # At run time we better use the real file rather than another symlink, 16992 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16993 16994 case $with_aix_soname,$aix_use_runtimelinking in 16995 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16996 # soname into executable. Probably we can add versioning support to 16997 # collect2, so additional links can be useful in future. 16998 aix,yes) # traditional libtool 16999 dynamic_linker='AIX unversionable lib.so' 17000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17001 # instead of lib<name>.a to let people know that these are not 17002 # typical AIX shared libraries. 17003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17004 ;; 17005 aix,no) # traditional AIX only 17006 dynamic_linker='AIX lib.a(lib.so.V)' 17007 # We preserve .a as extension for shared libraries through AIX4.2 17008 # and later when we are not doing run time linking. 17009 library_names_spec='$libname$release.a $libname.a' 17010 soname_spec='$libname$release$shared_ext$major' 17011 ;; 17012 svr4,*) # full svr4 only 17013 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17014 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17015 # We do not specify a path in Import Files, so LIBPATH fires. 17016 shlibpath_overrides_runpath=yes 17017 ;; 17018 *,yes) # both, prefer svr4 17019 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17020 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17021 # unpreferred sharedlib libNAME.a needs extra handling 17022 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"' 17023 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"' 17024 # We do not specify a path in Import Files, so LIBPATH fires. 17025 shlibpath_overrides_runpath=yes 17026 ;; 17027 *,no) # both, prefer aix 17028 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17029 library_names_spec='$libname$release.a $libname.a' 17030 soname_spec='$libname$release$shared_ext$major' 17031 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17032 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)' 17033 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"' 17034 ;; 17035 esac 17036 shlibpath_var=LIBPATH 17037 fi 17038 ;; 17039 17040amigaos*) 17041 case $host_cpu in 17042 powerpc) 17043 # Since July 2007 AmigaOS4 officially supports .so libraries. 17044 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17046 ;; 17047 m68k) 17048 library_names_spec='$libname.ixlibrary $libname.a' 17049 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17050 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' 17051 ;; 17052 esac 17053 ;; 17054 17055beos*) 17056 library_names_spec='$libname$shared_ext' 17057 dynamic_linker="$host_os ld.so" 17058 shlibpath_var=LIBRARY_PATH 17059 ;; 17060 17061bsdi[45]*) 17062 version_type=linux # correct to gnu/linux during the next big refactor 17063 need_version=no 17064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17065 soname_spec='$libname$release$shared_ext$major' 17066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17067 shlibpath_var=LD_LIBRARY_PATH 17068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17070 # the default ld.so.conf also contains /usr/contrib/lib and 17071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17072 # libtool to hard-code these into programs 17073 ;; 17074 17075cygwin* | mingw* | pw32* | cegcc*) 17076 version_type=windows 17077 shrext_cmds=.dll 17078 need_version=no 17079 need_lib_prefix=no 17080 17081 case $GCC,$cc_basename in 17082 yes,*) 17083 # gcc 17084 library_names_spec='$libname.dll.a' 17085 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17086 postinstall_cmds='base_file=`basename \$file`~ 17087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17088 dldir=$destdir/`dirname \$dlpath`~ 17089 test -d \$dldir || mkdir -p \$dldir~ 17090 $install_prog $dir/$dlname \$dldir/$dlname~ 17091 chmod a+x \$dldir/$dlname~ 17092 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17093 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17094 fi' 17095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17096 dlpath=$dir/\$dldll~ 17097 $RM \$dlpath' 17098 shlibpath_overrides_runpath=yes 17099 17100 case $host_os in 17101 cygwin*) 17102 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17103 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17104 17105 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17106 ;; 17107 mingw* | cegcc*) 17108 # MinGW DLLs use traditional 'lib' prefix 17109 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17110 ;; 17111 pw32*) 17112 # pw32 DLLs use 'pw' prefix rather than 'lib' 17113 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17114 ;; 17115 esac 17116 dynamic_linker='Win32 ld.exe' 17117 ;; 17118 17119 *,cl*) 17120 # Native MSVC 17121 libname_spec='$name' 17122 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17123 library_names_spec='$libname.dll.lib' 17124 17125 case $build_os in 17126 mingw*) 17127 sys_lib_search_path_spec= 17128 lt_save_ifs=$IFS 17129 IFS=';' 17130 for lt_path in $LIB 17131 do 17132 IFS=$lt_save_ifs 17133 # Let DOS variable expansion print the short 8.3 style file name. 17134 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17135 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17136 done 17137 IFS=$lt_save_ifs 17138 # Convert to MSYS style. 17139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17140 ;; 17141 cygwin*) 17142 # Convert to unix form, then to dos form, then back to unix form 17143 # but this time dos style (no spaces!) so that the unix form looks 17144 # like /cygdrive/c/PROGRA~1:/cygdr... 17145 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17146 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17147 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17148 ;; 17149 *) 17150 sys_lib_search_path_spec=$LIB 17151 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17152 # It is most probably a Windows format PATH. 17153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17154 else 17155 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17156 fi 17157 # FIXME: find the short name or the path components, as spaces are 17158 # common. (e.g. "Program Files" -> "PROGRA~1") 17159 ;; 17160 esac 17161 17162 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17163 postinstall_cmds='base_file=`basename \$file`~ 17164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17165 dldir=$destdir/`dirname \$dlpath`~ 17166 test -d \$dldir || mkdir -p \$dldir~ 17167 $install_prog $dir/$dlname \$dldir/$dlname' 17168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17169 dlpath=$dir/\$dldll~ 17170 $RM \$dlpath' 17171 shlibpath_overrides_runpath=yes 17172 dynamic_linker='Win32 link.exe' 17173 ;; 17174 17175 *) 17176 # Assume MSVC wrapper 17177 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17178 dynamic_linker='Win32 ld.exe' 17179 ;; 17180 esac 17181 # FIXME: first we should search . and the directory the executable is in 17182 shlibpath_var=PATH 17183 ;; 17184 17185darwin* | rhapsody*) 17186 dynamic_linker="$host_os dyld" 17187 version_type=darwin 17188 need_lib_prefix=no 17189 need_version=no 17190 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17191 soname_spec='$libname$release$major$shared_ext' 17192 shlibpath_overrides_runpath=yes 17193 shlibpath_var=DYLD_LIBRARY_PATH 17194 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17195 17196 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17198 ;; 17199 17200dgux*) 17201 version_type=linux # correct to gnu/linux during the next big refactor 17202 need_lib_prefix=no 17203 need_version=no 17204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17205 soname_spec='$libname$release$shared_ext$major' 17206 shlibpath_var=LD_LIBRARY_PATH 17207 ;; 17208 17209freebsd* | dragonfly*) 17210 # DragonFly does not have aout. When/if they implement a new 17211 # versioning mechanism, adjust this. 17212 if test -x /usr/bin/objformat; then 17213 objformat=`/usr/bin/objformat` 17214 else 17215 case $host_os in 17216 freebsd[23].*) objformat=aout ;; 17217 *) objformat=elf ;; 17218 esac 17219 fi 17220 version_type=freebsd-$objformat 17221 case $version_type in 17222 freebsd-elf*) 17223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17224 soname_spec='$libname$release$shared_ext$major' 17225 need_version=no 17226 need_lib_prefix=no 17227 ;; 17228 freebsd-*) 17229 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17230 need_version=yes 17231 ;; 17232 esac 17233 shlibpath_var=LD_LIBRARY_PATH 17234 case $host_os in 17235 freebsd2.*) 17236 shlibpath_overrides_runpath=yes 17237 ;; 17238 freebsd3.[01]* | freebsdelf3.[01]*) 17239 shlibpath_overrides_runpath=yes 17240 hardcode_into_libs=yes 17241 ;; 17242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17244 shlibpath_overrides_runpath=no 17245 hardcode_into_libs=yes 17246 ;; 17247 *) # from 4.6 on, and DragonFly 17248 shlibpath_overrides_runpath=yes 17249 hardcode_into_libs=yes 17250 ;; 17251 esac 17252 ;; 17253 17254haiku*) 17255 version_type=linux # correct to gnu/linux during the next big refactor 17256 need_lib_prefix=no 17257 need_version=no 17258 dynamic_linker="$host_os runtime_loader" 17259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17260 soname_spec='$libname$release$shared_ext$major' 17261 shlibpath_var=LIBRARY_PATH 17262 shlibpath_overrides_runpath=no 17263 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17264 hardcode_into_libs=yes 17265 ;; 17266 17267hpux9* | hpux10* | hpux11*) 17268 # Give a soname corresponding to the major version so that dld.sl refuses to 17269 # link against other versions. 17270 version_type=sunos 17271 need_lib_prefix=no 17272 need_version=no 17273 case $host_cpu in 17274 ia64*) 17275 shrext_cmds='.so' 17276 hardcode_into_libs=yes 17277 dynamic_linker="$host_os dld.so" 17278 shlibpath_var=LD_LIBRARY_PATH 17279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17281 soname_spec='$libname$release$shared_ext$major' 17282 if test 32 = "$HPUX_IA64_MODE"; then 17283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17284 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17285 else 17286 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17287 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17288 fi 17289 ;; 17290 hppa*64*) 17291 shrext_cmds='.sl' 17292 hardcode_into_libs=yes 17293 dynamic_linker="$host_os dld.sl" 17294 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17297 soname_spec='$libname$release$shared_ext$major' 17298 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17300 ;; 17301 *) 17302 shrext_cmds='.sl' 17303 dynamic_linker="$host_os dld.sl" 17304 shlibpath_var=SHLIB_PATH 17305 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17307 soname_spec='$libname$release$shared_ext$major' 17308 ;; 17309 esac 17310 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17311 postinstall_cmds='chmod 555 $lib' 17312 # or fails outright, so override atomically: 17313 install_override_mode=555 17314 ;; 17315 17316interix[3-9]*) 17317 version_type=linux # correct to gnu/linux during the next big refactor 17318 need_lib_prefix=no 17319 need_version=no 17320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17321 soname_spec='$libname$release$shared_ext$major' 17322 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17323 shlibpath_var=LD_LIBRARY_PATH 17324 shlibpath_overrides_runpath=no 17325 hardcode_into_libs=yes 17326 ;; 17327 17328irix5* | irix6* | nonstopux*) 17329 case $host_os in 17330 nonstopux*) version_type=nonstopux ;; 17331 *) 17332 if test yes = "$lt_cv_prog_gnu_ld"; then 17333 version_type=linux # correct to gnu/linux during the next big refactor 17334 else 17335 version_type=irix 17336 fi ;; 17337 esac 17338 need_lib_prefix=no 17339 need_version=no 17340 soname_spec='$libname$release$shared_ext$major' 17341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17342 case $host_os in 17343 irix5* | nonstopux*) 17344 libsuff= shlibsuff= 17345 ;; 17346 *) 17347 case $LD in # libtool.m4 will add one of these switches to LD 17348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17349 libsuff= shlibsuff= libmagic=32-bit;; 17350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17351 libsuff=32 shlibsuff=N32 libmagic=N32;; 17352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17353 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17354 *) libsuff= shlibsuff= libmagic=never-match;; 17355 esac 17356 ;; 17357 esac 17358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17359 shlibpath_overrides_runpath=no 17360 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17361 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17362 hardcode_into_libs=yes 17363 ;; 17364 17365# No shared lib support for Linux oldld, aout, or coff. 17366linux*oldld* | linux*aout* | linux*coff*) 17367 dynamic_linker=no 17368 ;; 17369 17370linux*android*) 17371 version_type=none # Android doesn't support versioned libraries. 17372 need_lib_prefix=no 17373 need_version=no 17374 library_names_spec='$libname$release$shared_ext' 17375 soname_spec='$libname$release$shared_ext' 17376 finish_cmds= 17377 shlibpath_var=LD_LIBRARY_PATH 17378 shlibpath_overrides_runpath=yes 17379 17380 # This implies no fast_install, which is unacceptable. 17381 # Some rework will be needed to allow for fast_install 17382 # before this can be enabled. 17383 hardcode_into_libs=yes 17384 17385 dynamic_linker='Android linker' 17386 # Don't embed -rpath directories since the linker doesn't support them. 17387 hardcode_libdir_flag_spec='-L$libdir' 17388 ;; 17389 17390# This must be glibc/ELF. 17391linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17392 version_type=linux # correct to gnu/linux during the next big refactor 17393 need_lib_prefix=no 17394 need_version=no 17395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17396 soname_spec='$libname$release$shared_ext$major' 17397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17398 shlibpath_var=LD_LIBRARY_PATH 17399 shlibpath_overrides_runpath=no 17400 17401 # Some binutils ld are patched to set DT_RUNPATH 17402 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17403 $as_echo_n "(cached) " >&6 17404else 17405 lt_cv_shlibpath_overrides_runpath=no 17406 save_LDFLAGS=$LDFLAGS 17407 save_libdir=$libdir 17408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412 17413int 17414main () 17415{ 17416 17417 ; 17418 return 0; 17419} 17420_ACEOF 17421if ac_fn_c_try_link "$LINENO"; then : 17422 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17423 lt_cv_shlibpath_overrides_runpath=yes 17424fi 17425fi 17426rm -f core conftest.err conftest.$ac_objext \ 17427 conftest$ac_exeext conftest.$ac_ext 17428 LDFLAGS=$save_LDFLAGS 17429 libdir=$save_libdir 17430 17431fi 17432 17433 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17434 17435 # This implies no fast_install, which is unacceptable. 17436 # Some rework will be needed to allow for fast_install 17437 # before this can be enabled. 17438 hardcode_into_libs=yes 17439 17440 # Ideally, we could use ldconfig to report *all* directores which are 17441 # searched for libraries, however this is still not possible. Aside from not 17442 # being certain /sbin/ldconfig is available, command 17443 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17444 # even though it is searched at run-time. Try to do the best guess by 17445 # appending ld.so.conf contents (and includes) to the search path. 17446 if test -f /etc/ld.so.conf; then 17447 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' ' '` 17448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17449 fi 17450 17451 # We used to test for /lib/ld.so.1 and disable shared libraries on 17452 # powerpc, because MkLinux only supported shared libraries with the 17453 # GNU dynamic linker. Since this was broken with cross compilers, 17454 # most powerpc-linux boxes support dynamic linking these days and 17455 # people can always --disable-shared, the test was removed, and we 17456 # assume the GNU/Linux dynamic linker is in use. 17457 dynamic_linker='GNU/Linux ld.so' 17458 ;; 17459 17460netbsdelf*-gnu) 17461 version_type=linux 17462 need_lib_prefix=no 17463 need_version=no 17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17465 soname_spec='${libname}${release}${shared_ext}$major' 17466 shlibpath_var=LD_LIBRARY_PATH 17467 shlibpath_overrides_runpath=no 17468 hardcode_into_libs=yes 17469 dynamic_linker='NetBSD ld.elf_so' 17470 ;; 17471 17472netbsd*) 17473 version_type=sunos 17474 need_lib_prefix=no 17475 need_version=no 17476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17479 dynamic_linker='NetBSD (a.out) ld.so' 17480 else 17481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17482 soname_spec='$libname$release$shared_ext$major' 17483 dynamic_linker='NetBSD ld.elf_so' 17484 fi 17485 shlibpath_var=LD_LIBRARY_PATH 17486 shlibpath_overrides_runpath=yes 17487 hardcode_into_libs=yes 17488 ;; 17489 17490newsos6) 17491 version_type=linux # correct to gnu/linux during the next big refactor 17492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17493 shlibpath_var=LD_LIBRARY_PATH 17494 shlibpath_overrides_runpath=yes 17495 ;; 17496 17497*nto* | *qnx*) 17498 version_type=qnx 17499 need_lib_prefix=no 17500 need_version=no 17501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17502 soname_spec='$libname$release$shared_ext$major' 17503 shlibpath_var=LD_LIBRARY_PATH 17504 shlibpath_overrides_runpath=no 17505 hardcode_into_libs=yes 17506 dynamic_linker='ldqnx.so' 17507 ;; 17508 17509openbsd* | bitrig*) 17510 version_type=sunos 17511 sys_lib_dlsearch_path_spec=/usr/lib 17512 need_lib_prefix=no 17513 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17514 need_version=no 17515 else 17516 need_version=yes 17517 fi 17518 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17520 shlibpath_var=LD_LIBRARY_PATH 17521 shlibpath_overrides_runpath=yes 17522 ;; 17523 17524os2*) 17525 libname_spec='$name' 17526 version_type=windows 17527 shrext_cmds=.dll 17528 need_version=no 17529 need_lib_prefix=no 17530 # OS/2 can only load a DLL with a base name of 8 characters or less. 17531 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17532 v=$($ECHO $release$versuffix | tr -d .-); 17533 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17534 $ECHO $n$v`$shared_ext' 17535 library_names_spec='${libname}_dll.$libext' 17536 dynamic_linker='OS/2 ld.exe' 17537 shlibpath_var=BEGINLIBPATH 17538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17540 postinstall_cmds='base_file=`basename \$file`~ 17541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17542 dldir=$destdir/`dirname \$dlpath`~ 17543 test -d \$dldir || mkdir -p \$dldir~ 17544 $install_prog $dir/$dlname \$dldir/$dlname~ 17545 chmod a+x \$dldir/$dlname~ 17546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17548 fi' 17549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17550 dlpath=$dir/\$dldll~ 17551 $RM \$dlpath' 17552 ;; 17553 17554osf3* | osf4* | osf5*) 17555 version_type=osf 17556 need_lib_prefix=no 17557 need_version=no 17558 soname_spec='$libname$release$shared_ext$major' 17559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17560 shlibpath_var=LD_LIBRARY_PATH 17561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17563 ;; 17564 17565rdos*) 17566 dynamic_linker=no 17567 ;; 17568 17569solaris*) 17570 version_type=linux # correct to gnu/linux during the next big refactor 17571 need_lib_prefix=no 17572 need_version=no 17573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17574 soname_spec='$libname$release$shared_ext$major' 17575 shlibpath_var=LD_LIBRARY_PATH 17576 shlibpath_overrides_runpath=yes 17577 hardcode_into_libs=yes 17578 # ldd complains unless libraries are executable 17579 postinstall_cmds='chmod +x $lib' 17580 ;; 17581 17582sunos4*) 17583 version_type=sunos 17584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17586 shlibpath_var=LD_LIBRARY_PATH 17587 shlibpath_overrides_runpath=yes 17588 if test yes = "$with_gnu_ld"; then 17589 need_lib_prefix=no 17590 fi 17591 need_version=yes 17592 ;; 17593 17594sysv4 | sysv4.3*) 17595 version_type=linux # correct to gnu/linux during the next big refactor 17596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17597 soname_spec='$libname$release$shared_ext$major' 17598 shlibpath_var=LD_LIBRARY_PATH 17599 case $host_vendor in 17600 sni) 17601 shlibpath_overrides_runpath=no 17602 need_lib_prefix=no 17603 runpath_var=LD_RUN_PATH 17604 ;; 17605 siemens) 17606 need_lib_prefix=no 17607 ;; 17608 motorola) 17609 need_lib_prefix=no 17610 need_version=no 17611 shlibpath_overrides_runpath=no 17612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17613 ;; 17614 esac 17615 ;; 17616 17617sysv4*MP*) 17618 if test -d /usr/nec; then 17619 version_type=linux # correct to gnu/linux during the next big refactor 17620 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17621 soname_spec='$libname$shared_ext.$major' 17622 shlibpath_var=LD_LIBRARY_PATH 17623 fi 17624 ;; 17625 17626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17627 version_type=sco 17628 need_lib_prefix=no 17629 need_version=no 17630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17631 soname_spec='$libname$release$shared_ext$major' 17632 shlibpath_var=LD_LIBRARY_PATH 17633 shlibpath_overrides_runpath=yes 17634 hardcode_into_libs=yes 17635 if test yes = "$with_gnu_ld"; then 17636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17637 else 17638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17639 case $host_os in 17640 sco3.2v5*) 17641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17642 ;; 17643 esac 17644 fi 17645 sys_lib_dlsearch_path_spec='/usr/lib' 17646 ;; 17647 17648tpf*) 17649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17650 version_type=linux # correct to gnu/linux during the next big refactor 17651 need_lib_prefix=no 17652 need_version=no 17653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17654 shlibpath_var=LD_LIBRARY_PATH 17655 shlibpath_overrides_runpath=no 17656 hardcode_into_libs=yes 17657 ;; 17658 17659uts4*) 17660 version_type=linux # correct to gnu/linux during the next big refactor 17661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17662 soname_spec='$libname$release$shared_ext$major' 17663 shlibpath_var=LD_LIBRARY_PATH 17664 ;; 17665 17666*) 17667 dynamic_linker=no 17668 ;; 17669esac 17670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17671$as_echo "$dynamic_linker" >&6; } 17672test no = "$dynamic_linker" && can_build_shared=no 17673 17674variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17675if test yes = "$GCC"; then 17676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17677fi 17678 17679if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17680 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17681fi 17682 17683if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17684 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17685fi 17686 17687# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17688configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17689 17690# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17691func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17692 17693# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17694configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17793$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17794hardcode_action= 17795if test -n "$hardcode_libdir_flag_spec" || 17796 test -n "$runpath_var" || 17797 test yes = "$hardcode_automatic"; then 17798 17799 # We can hardcode non-existent directories. 17800 if test no != "$hardcode_direct" && 17801 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17802 # have to relink, otherwise we might link with an installed library 17803 # when we should be linking with a yet-to-be-installed one 17804 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17805 test no != "$hardcode_minus_L"; then 17806 # Linking always hardcodes the temporary library directory. 17807 hardcode_action=relink 17808 else 17809 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17810 hardcode_action=immediate 17811 fi 17812else 17813 # We cannot hardcode anything, or else we can only hardcode existing 17814 # directories. 17815 hardcode_action=unsupported 17816fi 17817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17818$as_echo "$hardcode_action" >&6; } 17819 17820if test relink = "$hardcode_action" || 17821 test yes = "$inherit_rpath"; then 17822 # Fast installation is not supported 17823 enable_fast_install=no 17824elif test yes = "$shlibpath_overrides_runpath" || 17825 test no = "$enable_shared"; then 17826 # Fast installation is not necessary 17827 enable_fast_install=needless 17828fi 17829 17830 17831 17832 17833 17834 17835 if test yes != "$enable_dlopen"; then 17836 enable_dlopen=unknown 17837 enable_dlopen_self=unknown 17838 enable_dlopen_self_static=unknown 17839else 17840 lt_cv_dlopen=no 17841 lt_cv_dlopen_libs= 17842 17843 case $host_os in 17844 beos*) 17845 lt_cv_dlopen=load_add_on 17846 lt_cv_dlopen_libs= 17847 lt_cv_dlopen_self=yes 17848 ;; 17849 17850 mingw* | pw32* | cegcc*) 17851 lt_cv_dlopen=LoadLibrary 17852 lt_cv_dlopen_libs= 17853 ;; 17854 17855 cygwin*) 17856 lt_cv_dlopen=dlopen 17857 lt_cv_dlopen_libs= 17858 ;; 17859 17860 darwin*) 17861 # if libdl is installed we need to link against it 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17863$as_echo_n "checking for dlopen in -ldl... " >&6; } 17864if ${ac_cv_lib_dl_dlopen+:} false; then : 17865 $as_echo_n "(cached) " >&6 17866else 17867 ac_check_lib_save_LIBS=$LIBS 17868LIBS="-ldl $LIBS" 17869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17870/* end confdefs.h. */ 17871 17872/* Override any GCC internal prototype to avoid an error. 17873 Use char because int might match the return type of a GCC 17874 builtin and then its argument prototype would still apply. */ 17875#ifdef __cplusplus 17876extern "C" 17877#endif 17878char dlopen (); 17879int 17880main () 17881{ 17882return dlopen (); 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887if ac_fn_c_try_link "$LINENO"; then : 17888 ac_cv_lib_dl_dlopen=yes 17889else 17890 ac_cv_lib_dl_dlopen=no 17891fi 17892rm -f core conftest.err conftest.$ac_objext \ 17893 conftest$ac_exeext conftest.$ac_ext 17894LIBS=$ac_check_lib_save_LIBS 17895fi 17896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17897$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17898if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17899 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17900else 17901 17902 lt_cv_dlopen=dyld 17903 lt_cv_dlopen_libs= 17904 lt_cv_dlopen_self=yes 17905 17906fi 17907 17908 ;; 17909 17910 tpf*) 17911 # Don't try to run any link tests for TPF. We know it's impossible 17912 # because TPF is a cross-compiler, and we know how we open DSOs. 17913 lt_cv_dlopen=dlopen 17914 lt_cv_dlopen_libs= 17915 lt_cv_dlopen_self=no 17916 ;; 17917 17918 *) 17919 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17920if test "x$ac_cv_func_shl_load" = xyes; then : 17921 lt_cv_dlopen=shl_load 17922else 17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17924$as_echo_n "checking for shl_load in -ldld... " >&6; } 17925if ${ac_cv_lib_dld_shl_load+:} false; then : 17926 $as_echo_n "(cached) " >&6 17927else 17928 ac_check_lib_save_LIBS=$LIBS 17929LIBS="-ldld $LIBS" 17930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17931/* end confdefs.h. */ 17932 17933/* Override any GCC internal prototype to avoid an error. 17934 Use char because int might match the return type of a GCC 17935 builtin and then its argument prototype would still apply. */ 17936#ifdef __cplusplus 17937extern "C" 17938#endif 17939char shl_load (); 17940int 17941main () 17942{ 17943return shl_load (); 17944 ; 17945 return 0; 17946} 17947_ACEOF 17948if ac_fn_c_try_link "$LINENO"; then : 17949 ac_cv_lib_dld_shl_load=yes 17950else 17951 ac_cv_lib_dld_shl_load=no 17952fi 17953rm -f core conftest.err conftest.$ac_objext \ 17954 conftest$ac_exeext conftest.$ac_ext 17955LIBS=$ac_check_lib_save_LIBS 17956fi 17957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17958$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17959if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17960 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17961else 17962 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17963if test "x$ac_cv_func_dlopen" = xyes; then : 17964 lt_cv_dlopen=dlopen 17965else 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17967$as_echo_n "checking for dlopen in -ldl... " >&6; } 17968if ${ac_cv_lib_dl_dlopen+:} false; then : 17969 $as_echo_n "(cached) " >&6 17970else 17971 ac_check_lib_save_LIBS=$LIBS 17972LIBS="-ldl $LIBS" 17973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17974/* end confdefs.h. */ 17975 17976/* Override any GCC internal prototype to avoid an error. 17977 Use char because int might match the return type of a GCC 17978 builtin and then its argument prototype would still apply. */ 17979#ifdef __cplusplus 17980extern "C" 17981#endif 17982char dlopen (); 17983int 17984main () 17985{ 17986return dlopen (); 17987 ; 17988 return 0; 17989} 17990_ACEOF 17991if ac_fn_c_try_link "$LINENO"; then : 17992 ac_cv_lib_dl_dlopen=yes 17993else 17994 ac_cv_lib_dl_dlopen=no 17995fi 17996rm -f core conftest.err conftest.$ac_objext \ 17997 conftest$ac_exeext conftest.$ac_ext 17998LIBS=$ac_check_lib_save_LIBS 17999fi 18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18001$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18002if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18003 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18004else 18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18006$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18007if ${ac_cv_lib_svld_dlopen+:} false; then : 18008 $as_echo_n "(cached) " >&6 18009else 18010 ac_check_lib_save_LIBS=$LIBS 18011LIBS="-lsvld $LIBS" 18012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18013/* end confdefs.h. */ 18014 18015/* Override any GCC internal prototype to avoid an error. 18016 Use char because int might match the return type of a GCC 18017 builtin and then its argument prototype would still apply. */ 18018#ifdef __cplusplus 18019extern "C" 18020#endif 18021char dlopen (); 18022int 18023main () 18024{ 18025return dlopen (); 18026 ; 18027 return 0; 18028} 18029_ACEOF 18030if ac_fn_c_try_link "$LINENO"; then : 18031 ac_cv_lib_svld_dlopen=yes 18032else 18033 ac_cv_lib_svld_dlopen=no 18034fi 18035rm -f core conftest.err conftest.$ac_objext \ 18036 conftest$ac_exeext conftest.$ac_ext 18037LIBS=$ac_check_lib_save_LIBS 18038fi 18039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18040$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18041if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18042 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18043else 18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18045$as_echo_n "checking for dld_link in -ldld... " >&6; } 18046if ${ac_cv_lib_dld_dld_link+:} false; then : 18047 $as_echo_n "(cached) " >&6 18048else 18049 ac_check_lib_save_LIBS=$LIBS 18050LIBS="-ldld $LIBS" 18051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18052/* end confdefs.h. */ 18053 18054/* Override any GCC internal prototype to avoid an error. 18055 Use char because int might match the return type of a GCC 18056 builtin and then its argument prototype would still apply. */ 18057#ifdef __cplusplus 18058extern "C" 18059#endif 18060char dld_link (); 18061int 18062main () 18063{ 18064return dld_link (); 18065 ; 18066 return 0; 18067} 18068_ACEOF 18069if ac_fn_c_try_link "$LINENO"; then : 18070 ac_cv_lib_dld_dld_link=yes 18071else 18072 ac_cv_lib_dld_dld_link=no 18073fi 18074rm -f core conftest.err conftest.$ac_objext \ 18075 conftest$ac_exeext conftest.$ac_ext 18076LIBS=$ac_check_lib_save_LIBS 18077fi 18078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18079$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18080if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18081 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18082fi 18083 18084 18085fi 18086 18087 18088fi 18089 18090 18091fi 18092 18093 18094fi 18095 18096 18097fi 18098 18099 ;; 18100 esac 18101 18102 if test no = "$lt_cv_dlopen"; then 18103 enable_dlopen=no 18104 else 18105 enable_dlopen=yes 18106 fi 18107 18108 case $lt_cv_dlopen in 18109 dlopen) 18110 save_CPPFLAGS=$CPPFLAGS 18111 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18112 18113 save_LDFLAGS=$LDFLAGS 18114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18115 18116 save_LIBS=$LIBS 18117 LIBS="$lt_cv_dlopen_libs $LIBS" 18118 18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18120$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18121if ${lt_cv_dlopen_self+:} false; then : 18122 $as_echo_n "(cached) " >&6 18123else 18124 if test yes = "$cross_compiling"; then : 18125 lt_cv_dlopen_self=cross 18126else 18127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18128 lt_status=$lt_dlunknown 18129 cat > conftest.$ac_ext <<_LT_EOF 18130#line $LINENO "configure" 18131#include "confdefs.h" 18132 18133#if HAVE_DLFCN_H 18134#include <dlfcn.h> 18135#endif 18136 18137#include <stdio.h> 18138 18139#ifdef RTLD_GLOBAL 18140# define LT_DLGLOBAL RTLD_GLOBAL 18141#else 18142# ifdef DL_GLOBAL 18143# define LT_DLGLOBAL DL_GLOBAL 18144# else 18145# define LT_DLGLOBAL 0 18146# endif 18147#endif 18148 18149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18150 find out it does not work in some platform. */ 18151#ifndef LT_DLLAZY_OR_NOW 18152# ifdef RTLD_LAZY 18153# define LT_DLLAZY_OR_NOW RTLD_LAZY 18154# else 18155# ifdef DL_LAZY 18156# define LT_DLLAZY_OR_NOW DL_LAZY 18157# else 18158# ifdef RTLD_NOW 18159# define LT_DLLAZY_OR_NOW RTLD_NOW 18160# else 18161# ifdef DL_NOW 18162# define LT_DLLAZY_OR_NOW DL_NOW 18163# else 18164# define LT_DLLAZY_OR_NOW 0 18165# endif 18166# endif 18167# endif 18168# endif 18169#endif 18170 18171/* When -fvisibility=hidden is used, assume the code has been annotated 18172 correspondingly for the symbols needed. */ 18173#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18174int fnord () __attribute__((visibility("default"))); 18175#endif 18176 18177int fnord () { return 42; } 18178int main () 18179{ 18180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18181 int status = $lt_dlunknown; 18182 18183 if (self) 18184 { 18185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18186 else 18187 { 18188 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18189 else puts (dlerror ()); 18190 } 18191 /* dlclose (self); */ 18192 } 18193 else 18194 puts (dlerror ()); 18195 18196 return status; 18197} 18198_LT_EOF 18199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18200 (eval $ac_link) 2>&5 18201 ac_status=$? 18202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18203 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18204 (./conftest; exit; ) >&5 2>/dev/null 18205 lt_status=$? 18206 case x$lt_status in 18207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18209 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18210 esac 18211 else : 18212 # compilation failed 18213 lt_cv_dlopen_self=no 18214 fi 18215fi 18216rm -fr conftest* 18217 18218 18219fi 18220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18221$as_echo "$lt_cv_dlopen_self" >&6; } 18222 18223 if test yes = "$lt_cv_dlopen_self"; then 18224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18226$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18227if ${lt_cv_dlopen_self_static+:} false; then : 18228 $as_echo_n "(cached) " >&6 18229else 18230 if test yes = "$cross_compiling"; then : 18231 lt_cv_dlopen_self_static=cross 18232else 18233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18234 lt_status=$lt_dlunknown 18235 cat > conftest.$ac_ext <<_LT_EOF 18236#line $LINENO "configure" 18237#include "confdefs.h" 18238 18239#if HAVE_DLFCN_H 18240#include <dlfcn.h> 18241#endif 18242 18243#include <stdio.h> 18244 18245#ifdef RTLD_GLOBAL 18246# define LT_DLGLOBAL RTLD_GLOBAL 18247#else 18248# ifdef DL_GLOBAL 18249# define LT_DLGLOBAL DL_GLOBAL 18250# else 18251# define LT_DLGLOBAL 0 18252# endif 18253#endif 18254 18255/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18256 find out it does not work in some platform. */ 18257#ifndef LT_DLLAZY_OR_NOW 18258# ifdef RTLD_LAZY 18259# define LT_DLLAZY_OR_NOW RTLD_LAZY 18260# else 18261# ifdef DL_LAZY 18262# define LT_DLLAZY_OR_NOW DL_LAZY 18263# else 18264# ifdef RTLD_NOW 18265# define LT_DLLAZY_OR_NOW RTLD_NOW 18266# else 18267# ifdef DL_NOW 18268# define LT_DLLAZY_OR_NOW DL_NOW 18269# else 18270# define LT_DLLAZY_OR_NOW 0 18271# endif 18272# endif 18273# endif 18274# endif 18275#endif 18276 18277/* When -fvisibility=hidden is used, assume the code has been annotated 18278 correspondingly for the symbols needed. */ 18279#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18280int fnord () __attribute__((visibility("default"))); 18281#endif 18282 18283int fnord () { return 42; } 18284int main () 18285{ 18286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18287 int status = $lt_dlunknown; 18288 18289 if (self) 18290 { 18291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18292 else 18293 { 18294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18295 else puts (dlerror ()); 18296 } 18297 /* dlclose (self); */ 18298 } 18299 else 18300 puts (dlerror ()); 18301 18302 return status; 18303} 18304_LT_EOF 18305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18306 (eval $ac_link) 2>&5 18307 ac_status=$? 18308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18309 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18310 (./conftest; exit; ) >&5 2>/dev/null 18311 lt_status=$? 18312 case x$lt_status in 18313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18316 esac 18317 else : 18318 # compilation failed 18319 lt_cv_dlopen_self_static=no 18320 fi 18321fi 18322rm -fr conftest* 18323 18324 18325fi 18326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18327$as_echo "$lt_cv_dlopen_self_static" >&6; } 18328 fi 18329 18330 CPPFLAGS=$save_CPPFLAGS 18331 LDFLAGS=$save_LDFLAGS 18332 LIBS=$save_LIBS 18333 ;; 18334 esac 18335 18336 case $lt_cv_dlopen_self in 18337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18338 *) enable_dlopen_self=unknown ;; 18339 esac 18340 18341 case $lt_cv_dlopen_self_static in 18342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18343 *) enable_dlopen_self_static=unknown ;; 18344 esac 18345fi 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363striplib= 18364old_striplib= 18365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18366$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18367if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18369 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18371$as_echo "yes" >&6; } 18372else 18373# FIXME - insert some real tests, host_os isn't really good enough 18374 case $host_os in 18375 darwin*) 18376 if test -n "$STRIP"; then 18377 striplib="$STRIP -x" 18378 old_striplib="$STRIP -S" 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18380$as_echo "yes" >&6; } 18381 else 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18383$as_echo "no" >&6; } 18384 fi 18385 ;; 18386 *) 18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18388$as_echo "no" >&6; } 18389 ;; 18390 esac 18391fi 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 # Report what library types will actually be built 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18406$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18408$as_echo "$can_build_shared" >&6; } 18409 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18411$as_echo_n "checking whether to build shared libraries... " >&6; } 18412 test no = "$can_build_shared" && enable_shared=no 18413 18414 # On AIX, shared libraries and static libraries use the same namespace, and 18415 # are all built from PIC. 18416 case $host_os in 18417 aix3*) 18418 test yes = "$enable_shared" && enable_static=no 18419 if test -n "$RANLIB"; then 18420 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18421 postinstall_cmds='$RANLIB $lib' 18422 fi 18423 ;; 18424 18425 aix[4-9]*) 18426 if test ia64 != "$host_cpu"; then 18427 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18428 yes,aix,yes) ;; # shared object as lib.so file only 18429 yes,svr4,*) ;; # shared object as lib.so archive member only 18430 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18431 esac 18432 fi 18433 ;; 18434 esac 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18436$as_echo "$enable_shared" >&6; } 18437 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18439$as_echo_n "checking whether to build static libraries... " >&6; } 18440 # Make sure either enable_shared or enable_static is yes. 18441 test yes = "$enable_shared" || enable_static=yes 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18443$as_echo "$enable_static" >&6; } 18444 18445 18446 18447 18448fi 18449ac_ext=c 18450ac_cpp='$CPP $CPPFLAGS' 18451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18453ac_compiler_gnu=$ac_cv_c_compiler_gnu 18454 18455CC=$lt_save_CC 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 ac_config_commands="$ac_config_commands libtool" 18472 18473 18474 18475 18476# Only expand once: 18477 18478 18479 18480 18481 18482# Define a configure option for an alternate module directory 18483 18484# Check whether --with-xorg-module-dir was given. 18485if test "${with_xorg_module_dir+set}" = set; then : 18486 withval=$with_xorg_module_dir; moduledir="$withval" 18487else 18488 moduledir="$libdir/xorg/modules" 18489fi 18490 18491 18492# Check whether --enable-dri was given. 18493if test "${enable_dri+set}" = set; then : 18494 enableval=$enable_dri; DRI="$enableval" 18495else 18496 DRI=auto 18497fi 18498 18499 18500# Store the list of server defined optional extensions in REQUIRED_MODULES 18501 18502 18503 SAVE_CFLAGS="$CFLAGS" 18504 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506/* end confdefs.h. */ 18507 18508#include "xorg-server.h" 18509#if !defined XINERAMA 18510#error XINERAMA not defined 18511#endif 18512 18513int 18514main () 18515{ 18516 18517 ; 18518 return 0; 18519} 18520_ACEOF 18521if ac_fn_c_try_compile "$LINENO"; then : 18522 _EXT_CHECK=yes 18523else 18524 _EXT_CHECK=no 18525fi 18526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18527 CFLAGS="$SAVE_CFLAGS" 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5 18529$as_echo_n "checking if XINERAMA is defined... " >&6; } 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18531$as_echo "$_EXT_CHECK" >&6; } 18532 if test "$_EXT_CHECK" != no; then 18533 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto" 18534 fi 18535 18536 18537 18538 SAVE_CFLAGS="$CFLAGS" 18539 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18541/* end confdefs.h. */ 18542 18543#include "xorg-server.h" 18544#if !defined RANDR 18545#error RANDR not defined 18546#endif 18547 18548int 18549main () 18550{ 18551 18552 ; 18553 return 0; 18554} 18555_ACEOF 18556if ac_fn_c_try_compile "$LINENO"; then : 18557 _EXT_CHECK=yes 18558else 18559 _EXT_CHECK=no 18560fi 18561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18562 CFLAGS="$SAVE_CFLAGS" 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18564$as_echo_n "checking if RANDR is defined... " >&6; } 18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18566$as_echo "$_EXT_CHECK" >&6; } 18567 if test "$_EXT_CHECK" != no; then 18568 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18569 fi 18570 18571 18572 18573 SAVE_CFLAGS="$CFLAGS" 18574 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18576/* end confdefs.h. */ 18577 18578#include "xorg-server.h" 18579#if !defined RENDER 18580#error RENDER not defined 18581#endif 18582 18583int 18584main () 18585{ 18586 18587 ; 18588 return 0; 18589} 18590_ACEOF 18591if ac_fn_c_try_compile "$LINENO"; then : 18592 _EXT_CHECK=yes 18593else 18594 _EXT_CHECK=no 18595fi 18596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18597 CFLAGS="$SAVE_CFLAGS" 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18599$as_echo_n "checking if RENDER is defined... " >&6; } 18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18601$as_echo "$_EXT_CHECK" >&6; } 18602 if test "$_EXT_CHECK" != no; then 18603 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18604 fi 18605 18606 18607 18608 SAVE_CFLAGS="$CFLAGS" 18609 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18611/* end confdefs.h. */ 18612 18613#include "xorg-server.h" 18614#if !defined XV 18615#error XV not defined 18616#endif 18617 18618int 18619main () 18620{ 18621 18622 ; 18623 return 0; 18624} 18625_ACEOF 18626if ac_fn_c_try_compile "$LINENO"; then : 18627 _EXT_CHECK=yes 18628else 18629 _EXT_CHECK=no 18630fi 18631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18632 CFLAGS="$SAVE_CFLAGS" 18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18634$as_echo_n "checking if XV is defined... " >&6; } 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18636$as_echo "$_EXT_CHECK" >&6; } 18637 if test "$_EXT_CHECK" != no; then 18638 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18639 fi 18640 18641 18642 18643 SAVE_CFLAGS="$CFLAGS" 18644 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18646/* end confdefs.h. */ 18647 18648#include "xorg-server.h" 18649#if !defined DPMSExtension 18650#error DPMSExtension not defined 18651#endif 18652 18653int 18654main () 18655{ 18656 18657 ; 18658 return 0; 18659} 18660_ACEOF 18661if ac_fn_c_try_compile "$LINENO"; then : 18662 _EXT_CHECK=yes 18663else 18664 _EXT_CHECK=no 18665fi 18666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18667 CFLAGS="$SAVE_CFLAGS" 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18669$as_echo_n "checking if DPMSExtension is defined... " >&6; } 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18671$as_echo "$_EXT_CHECK" >&6; } 18672 if test "$_EXT_CHECK" != no; then 18673 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18674 fi 18675 18676 18677# Obtain compiler/linker options for the driver dependencies 18678 18679pkg_failed=no 18680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18681$as_echo_n "checking for XORG... " >&6; } 18682 18683if test -n "$XORG_CFLAGS"; then 18684 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18685 elif test -n "$PKG_CONFIG"; then 18686 if test -n "$PKG_CONFIG" && \ 18687 { { $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 18688 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5 18689 ac_status=$? 18690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18691 test $ac_status = 0; }; then 18692 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null` 18693 test "x$?" != "x0" && pkg_failed=yes 18694else 18695 pkg_failed=yes 18696fi 18697 else 18698 pkg_failed=untried 18699fi 18700if test -n "$XORG_LIBS"; then 18701 pkg_cv_XORG_LIBS="$XORG_LIBS" 18702 elif test -n "$PKG_CONFIG"; then 18703 if test -n "$PKG_CONFIG" && \ 18704 { { $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 18705 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5 18706 ac_status=$? 18707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18708 test $ac_status = 0; }; then 18709 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null` 18710 test "x$?" != "x0" && pkg_failed=yes 18711else 18712 pkg_failed=yes 18713fi 18714 else 18715 pkg_failed=untried 18716fi 18717 18718 18719 18720if test $pkg_failed = yes; then 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18722$as_echo "no" >&6; } 18723 18724if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18725 _pkg_short_errors_supported=yes 18726else 18727 _pkg_short_errors_supported=no 18728fi 18729 if test $_pkg_short_errors_supported = yes; then 18730 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` 18731 else 18732 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>&1` 18733 fi 18734 # Put the nasty error message in config.log where it belongs 18735 echo "$XORG_PKG_ERRORS" >&5 18736 18737 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES) were not met: 18738 18739$XORG_PKG_ERRORS 18740 18741Consider adjusting the PKG_CONFIG_PATH environment variable if you 18742installed software in a non-standard prefix. 18743 18744Alternatively, you may set the environment variables XORG_CFLAGS 18745and XORG_LIBS to avoid the need to call pkg-config. 18746See the pkg-config man page for more details." "$LINENO" 5 18747elif test $pkg_failed = untried; then 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18749$as_echo "no" >&6; } 18750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18752as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18753is in your PATH or set the PKG_CONFIG environment variable to the full 18754path to pkg-config. 18755 18756Alternatively, you may set the environment variables XORG_CFLAGS 18757and XORG_LIBS to avoid the need to call pkg-config. 18758See the pkg-config man page for more details. 18759 18760To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18761See \`config.log' for more details" "$LINENO" 5; } 18762else 18763 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18764 XORG_LIBS=$pkg_cv_XORG_LIBS 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18766$as_echo "yes" >&6; } 18767 18768fi 18769 18770pkg_failed=no 18771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18772$as_echo_n "checking for XEXT... " >&6; } 18773 18774if test -n "$XEXT_CFLAGS"; then 18775 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18776 elif test -n "$PKG_CONFIG"; then 18777 if test -n "$PKG_CONFIG" && \ 18778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18779 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18780 ac_status=$? 18781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18782 test $ac_status = 0; }; then 18783 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18784 test "x$?" != "x0" && pkg_failed=yes 18785else 18786 pkg_failed=yes 18787fi 18788 else 18789 pkg_failed=untried 18790fi 18791if test -n "$XEXT_LIBS"; then 18792 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18793 elif test -n "$PKG_CONFIG"; then 18794 if test -n "$PKG_CONFIG" && \ 18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18796 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18797 ac_status=$? 18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18799 test $ac_status = 0; }; then 18800 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18801 test "x$?" != "x0" && pkg_failed=yes 18802else 18803 pkg_failed=yes 18804fi 18805 else 18806 pkg_failed=untried 18807fi 18808 18809 18810 18811if test $pkg_failed = yes; then 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813$as_echo "no" >&6; } 18814 18815if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18816 _pkg_short_errors_supported=yes 18817else 18818 _pkg_short_errors_supported=no 18819fi 18820 if test $_pkg_short_errors_supported = yes; then 18821 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18822 else 18823 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18824 fi 18825 # Put the nasty error message in config.log where it belongs 18826 echo "$XEXT_PKG_ERRORS" >&5 18827 18828 HAVE_XEXTPROTO_71="no" 18829elif test $pkg_failed = untried; then 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18831$as_echo "no" >&6; } 18832 HAVE_XEXTPROTO_71="no" 18833else 18834 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18835 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18837$as_echo "yes" >&6; } 18838 HAVE_XEXTPROTO_71="yes"; 18839$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18840 18841fi 18842 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18843 HAVE_XEXTPROTO_71_TRUE= 18844 HAVE_XEXTPROTO_71_FALSE='#' 18845else 18846 HAVE_XEXTPROTO_71_TRUE='#' 18847 HAVE_XEXTPROTO_71_FALSE= 18848fi 18849 18850sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18851 18852# Checks for libraries. 18853 18854if test "$DRI" != no; then 18855 if test "$cross_compiling" = "no" ; then 18856 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 18857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 18858$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 18859if eval \${$as_ac_File+:} false; then : 18860 $as_echo_n "(cached) " >&6 18861else 18862 test "$cross_compiling" = yes && 18863 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18864if test -r "${sdkdir}/dri.h"; then 18865 eval "$as_ac_File=yes" 18866else 18867 eval "$as_ac_File=no" 18868fi 18869fi 18870eval ac_res=\$$as_ac_File 18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18872$as_echo "$ac_res" >&6; } 18873if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18874 have_dri_h="yes" 18875else 18876 have_dri_h="no" 18877fi 18878 18879 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 18880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 18881$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 18882if eval \${$as_ac_File+:} false; then : 18883 $as_echo_n "(cached) " >&6 18884else 18885 test "$cross_compiling" = yes && 18886 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18887if test -r "${sdkdir}/sarea.h"; then 18888 eval "$as_ac_File=yes" 18889else 18890 eval "$as_ac_File=no" 18891fi 18892fi 18893eval ac_res=\$$as_ac_File 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18895$as_echo "$ac_res" >&6; } 18896if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18897 have_sarea_h="yes" 18898else 18899 have_sarea_h="no" 18900fi 18901 18902 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 18903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 18904$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 18905if eval \${$as_ac_File+:} false; then : 18906 $as_echo_n "(cached) " >&6 18907else 18908 test "$cross_compiling" = yes && 18909 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18910if test -r "${sdkdir}/dristruct.h"; then 18911 eval "$as_ac_File=yes" 18912else 18913 eval "$as_ac_File=no" 18914fi 18915fi 18916eval ac_res=\$$as_ac_File 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18918$as_echo "$ac_res" >&6; } 18919if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18920 have_dristruct_h="yes" 18921else 18922 have_dristruct_h="no" 18923fi 18924 18925 else 18926 have_dri_h="yes" 18927 have_sarea_h="yes" 18928 have_dristruct_h="yes" 18929 fi 18930fi 18931 18932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 18933$as_echo_n "checking whether to include DRI support... " >&6; } 18934if test x$DRI = xauto; then 18935 if test "$have_dri_h" = yes -a \ 18936 "$have_sarea_h" = yes -a \ 18937 "$have_dristruct_h" = yes; then 18938 DRI="yes" 18939 else 18940 DRI="no" 18941 fi 18942fi 18943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 18944$as_echo "$DRI" >&6; } 18945 18946 if test x$DRI = xyes; then 18947 DRI_TRUE= 18948 DRI_FALSE='#' 18949else 18950 DRI_TRUE='#' 18951 DRI_FALSE= 18952fi 18953 18954if test "$DRI" = yes; then 18955 18956pkg_failed=no 18957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 18958$as_echo_n "checking for DRI... " >&6; } 18959 18960if test -n "$DRI_CFLAGS"; then 18961 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 18962 elif test -n "$PKG_CONFIG"; then 18963 if test -n "$PKG_CONFIG" && \ 18964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18965 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18966 ac_status=$? 18967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18968 test $ac_status = 0; }; then 18969 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18970 test "x$?" != "x0" && pkg_failed=yes 18971else 18972 pkg_failed=yes 18973fi 18974 else 18975 pkg_failed=untried 18976fi 18977if test -n "$DRI_LIBS"; then 18978 pkg_cv_DRI_LIBS="$DRI_LIBS" 18979 elif test -n "$PKG_CONFIG"; then 18980 if test -n "$PKG_CONFIG" && \ 18981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18982 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18983 ac_status=$? 18984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18985 test $ac_status = 0; }; then 18986 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18987 test "x$?" != "x0" && pkg_failed=yes 18988else 18989 pkg_failed=yes 18990fi 18991 else 18992 pkg_failed=untried 18993fi 18994 18995 18996 18997if test $pkg_failed = yes; then 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18999$as_echo "no" >&6; } 19000 19001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19002 _pkg_short_errors_supported=yes 19003else 19004 _pkg_short_errors_supported=no 19005fi 19006 if test $_pkg_short_errors_supported = yes; then 19007 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19008 else 19009 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19010 fi 19011 # Put the nasty error message in config.log where it belongs 19012 echo "$DRI_PKG_ERRORS" >&5 19013 19014 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 19015 19016$DRI_PKG_ERRORS 19017 19018Consider adjusting the PKG_CONFIG_PATH environment variable if you 19019installed software in a non-standard prefix. 19020 19021Alternatively, you may set the environment variables DRI_CFLAGS 19022and DRI_LIBS to avoid the need to call pkg-config. 19023See the pkg-config man page for more details." "$LINENO" 5 19024elif test $pkg_failed = untried; then 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19026$as_echo "no" >&6; } 19027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19029as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19030is in your PATH or set the PKG_CONFIG environment variable to the full 19031path to pkg-config. 19032 19033Alternatively, you may set the environment variables DRI_CFLAGS 19034and DRI_LIBS to avoid the need to call pkg-config. 19035See the pkg-config man page for more details. 19036 19037To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19038See \`config.log' for more details" "$LINENO" 5; } 19039else 19040 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19041 DRI_LIBS=$pkg_cv_DRI_LIBS 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19043$as_echo "yes" >&6; } 19044 19045fi 19046 19047$as_echo "#define SISDRI 1" >>confdefs.h 19048 19049 19050$as_echo "#define SISDRI_DEVEL 1" >>confdefs.h 19051 19052fi 19053 19054# Check whether --enable-xaa was given. 19055if test "${enable_xaa+set}" = set; then : 19056 enableval=$enable_xaa; XAA="$enableval" 19057else 19058 XAA=auto 19059fi 19060 19061if test "x$XAA" != xno; then 19062 save_CFLAGS=$CFLAGS 19063 save_CPPFLAGS=$CPPFLAGS 19064 CFLAGS=$XORG_CFLAGS 19065 CPPFLAGS="$XORG_CFLAGS" 19066 for ac_header in xaa.h 19067do : 19068 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19069if test "x$ac_cv_header_xaa_h" = xyes; then : 19070 cat >>confdefs.h <<_ACEOF 19071#define HAVE_XAA_H 1 19072_ACEOF 19073 XAA=yes 19074else 19075 XAA=no 19076fi 19077 19078done 19079 19080 CFLAGS=$save_CFLAGS 19081 CPPFLAGS=$save_CPPFLAGS 19082fi 19083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19084$as_echo_n "checking whether to include XAA support... " >&6; } 19085 if test "x$XAA" = xyes; then 19086 XAA_TRUE= 19087 XAA_FALSE='#' 19088else 19089 XAA_TRUE='#' 19090 XAA_FALSE= 19091fi 19092 19093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19094$as_echo "$XAA" >&6; } 19095 19096# technically this should be a configure flag. meh. 19097 19098$as_echo "#define USE_EXA 1" >>confdefs.h 19099 19100 19101SAVE_CPPFLAGS="$CPPFLAGS" 19102CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19103ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19104" 19105if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 19106 XSERVER_LIBPCIACCESS=yes 19107else 19108 XSERVER_LIBPCIACCESS=no 19109fi 19110 19111CPPFLAGS="$SAVE_CPPFLAGS" 19112 19113if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19114 19115pkg_failed=no 19116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19117$as_echo_n "checking for PCIACCESS... " >&6; } 19118 19119if test -n "$PCIACCESS_CFLAGS"; then 19120 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19121 elif test -n "$PKG_CONFIG"; then 19122 if test -n "$PKG_CONFIG" && \ 19123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19124 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19125 ac_status=$? 19126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19127 test $ac_status = 0; }; then 19128 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null` 19129 test "x$?" != "x0" && pkg_failed=yes 19130else 19131 pkg_failed=yes 19132fi 19133 else 19134 pkg_failed=untried 19135fi 19136if test -n "$PCIACCESS_LIBS"; then 19137 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19138 elif test -n "$PKG_CONFIG"; then 19139 if test -n "$PKG_CONFIG" && \ 19140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19141 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19142 ac_status=$? 19143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19144 test $ac_status = 0; }; then 19145 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null` 19146 test "x$?" != "x0" && pkg_failed=yes 19147else 19148 pkg_failed=yes 19149fi 19150 else 19151 pkg_failed=untried 19152fi 19153 19154 19155 19156if test $pkg_failed = yes; then 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19158$as_echo "no" >&6; } 19159 19160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19161 _pkg_short_errors_supported=yes 19162else 19163 _pkg_short_errors_supported=no 19164fi 19165 if test $_pkg_short_errors_supported = yes; then 19166 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19167 else 19168 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19169 fi 19170 # Put the nasty error message in config.log where it belongs 19171 echo "$PCIACCESS_PKG_ERRORS" >&5 19172 19173 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met: 19174 19175$PCIACCESS_PKG_ERRORS 19176 19177Consider adjusting the PKG_CONFIG_PATH environment variable if you 19178installed software in a non-standard prefix. 19179 19180Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19181and PCIACCESS_LIBS to avoid the need to call pkg-config. 19182See the pkg-config man page for more details." "$LINENO" 5 19183elif test $pkg_failed = untried; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19185$as_echo "no" >&6; } 19186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19188as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19189is in your PATH or set the PKG_CONFIG environment variable to the full 19190path to pkg-config. 19191 19192Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19193and PCIACCESS_LIBS to avoid the need to call pkg-config. 19194See the pkg-config man page for more details. 19195 19196To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19197See \`config.log' for more details" "$LINENO" 5; } 19198else 19199 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19200 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19202$as_echo "yes" >&6; } 19203 19204fi 19205 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19206fi 19207 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19208 XSERVER_LIBPCIACCESS_TRUE= 19209 XSERVER_LIBPCIACCESS_FALSE='#' 19210else 19211 XSERVER_LIBPCIACCESS_TRUE='#' 19212 XSERVER_LIBPCIACCESS_FALSE= 19213fi 19214 19215 19216 19217 19218DRIVER_NAME=sis 19219 19220 19221ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19222 19223cat >confcache <<\_ACEOF 19224# This file is a shell script that caches the results of configure 19225# tests run on this system so they can be shared between configure 19226# scripts and configure runs, see configure's option --config-cache. 19227# It is not useful on other systems. If it contains results you don't 19228# want to keep, you may remove or edit it. 19229# 19230# config.status only pays attention to the cache file if you give it 19231# the --recheck option to rerun configure. 19232# 19233# `ac_cv_env_foo' variables (set or unset) will be overridden when 19234# loading this file, other *unset* `ac_cv_foo' will be assigned the 19235# following values. 19236 19237_ACEOF 19238 19239# The following way of writing the cache mishandles newlines in values, 19240# but we know of no workaround that is simple, portable, and efficient. 19241# So, we kill variables containing newlines. 19242# Ultrix sh set writes to stderr and can't be redirected directly, 19243# and sets the high bit in the cache file unless we assign to the vars. 19244( 19245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19246 eval ac_val=\$$ac_var 19247 case $ac_val in #( 19248 *${as_nl}*) 19249 case $ac_var in #( 19250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19251$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19252 esac 19253 case $ac_var in #( 19254 _ | IFS | as_nl) ;; #( 19255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19256 *) { eval $ac_var=; unset $ac_var;} ;; 19257 esac ;; 19258 esac 19259 done 19260 19261 (set) 2>&1 | 19262 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19263 *${as_nl}ac_space=\ *) 19264 # `set' does not quote correctly, so add quotes: double-quote 19265 # substitution turns \\\\ into \\, and sed turns \\ into \. 19266 sed -n \ 19267 "s/'/'\\\\''/g; 19268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19269 ;; #( 19270 *) 19271 # `set' quotes correctly as required by POSIX, so do not add quotes. 19272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19273 ;; 19274 esac | 19275 sort 19276) | 19277 sed ' 19278 /^ac_cv_env_/b end 19279 t clear 19280 :clear 19281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19282 t end 19283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19284 :end' >>confcache 19285if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19286 if test -w "$cache_file"; then 19287 if test "x$cache_file" != "x/dev/null"; then 19288 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19289$as_echo "$as_me: updating cache $cache_file" >&6;} 19290 if test ! -f "$cache_file" || test -h "$cache_file"; then 19291 cat confcache >"$cache_file" 19292 else 19293 case $cache_file in #( 19294 */* | ?:*) 19295 mv -f confcache "$cache_file"$$ && 19296 mv -f "$cache_file"$$ "$cache_file" ;; #( 19297 *) 19298 mv -f confcache "$cache_file" ;; 19299 esac 19300 fi 19301 fi 19302 else 19303 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19304$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19305 fi 19306fi 19307rm -f confcache 19308 19309test "x$prefix" = xNONE && prefix=$ac_default_prefix 19310# Let make expand exec_prefix. 19311test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19312 19313DEFS=-DHAVE_CONFIG_H 19314 19315ac_libobjs= 19316ac_ltlibobjs= 19317U= 19318for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19319 # 1. Remove the extension, and $U if already installed. 19320 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19321 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19322 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19323 # will be set to the directory where LIBOBJS objects are built. 19324 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19325 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19326done 19327LIBOBJS=$ac_libobjs 19328 19329LTLIBOBJS=$ac_ltlibobjs 19330 19331 19332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19333$as_echo_n "checking that generated files are newer than configure... " >&6; } 19334 if test -n "$am_sleep_pid"; then 19335 # Hide warnings about reused PIDs. 19336 wait $am_sleep_pid 2>/dev/null 19337 fi 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19339$as_echo "done" >&6; } 19340 if test -n "$EXEEXT"; then 19341 am__EXEEXT_TRUE= 19342 am__EXEEXT_FALSE='#' 19343else 19344 am__EXEEXT_TRUE='#' 19345 am__EXEEXT_FALSE= 19346fi 19347 19348if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19349 as_fn_error $? "conditional \"AMDEP\" was never defined. 19350Usually this means the macro was only invoked conditionally." "$LINENO" 5 19351fi 19352if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19353 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19354Usually this means the macro was only invoked conditionally." "$LINENO" 5 19355fi 19356if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19357 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19358Usually this means the macro was only invoked conditionally." "$LINENO" 5 19359fi 19360if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 19361 as_fn_error $? "conditional \"DRI\" was never defined. 19362Usually this means the macro was only invoked conditionally." "$LINENO" 5 19363fi 19364if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19365 as_fn_error $? "conditional \"XAA\" was never defined. 19366Usually this means the macro was only invoked conditionally." "$LINENO" 5 19367fi 19368if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19369 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19370Usually this means the macro was only invoked conditionally." "$LINENO" 5 19371fi 19372 19373: "${CONFIG_STATUS=./config.status}" 19374ac_write_fail=0 19375ac_clean_files_save=$ac_clean_files 19376ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19377{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19378$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19379as_write_fail=0 19380cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19381#! $SHELL 19382# Generated by $as_me. 19383# Run this file to recreate the current configuration. 19384# Compiler output produced by configure, useful for debugging 19385# configure, is in config.log if it exists. 19386 19387debug=false 19388ac_cs_recheck=false 19389ac_cs_silent=false 19390 19391SHELL=\${CONFIG_SHELL-$SHELL} 19392export SHELL 19393_ASEOF 19394cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19395## -------------------- ## 19396## M4sh Initialization. ## 19397## -------------------- ## 19398 19399# Be more Bourne compatible 19400DUALCASE=1; export DUALCASE # for MKS sh 19401if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19402 emulate sh 19403 NULLCMD=: 19404 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19405 # is contrary to our usage. Disable this feature. 19406 alias -g '${1+"$@"}'='"$@"' 19407 setopt NO_GLOB_SUBST 19408else 19409 case `(set -o) 2>/dev/null` in #( 19410 *posix*) : 19411 set -o posix ;; #( 19412 *) : 19413 ;; 19414esac 19415fi 19416 19417 19418as_nl=' 19419' 19420export as_nl 19421# Printing a long string crashes Solaris 7 /usr/bin/printf. 19422as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19423as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19424as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19425# Prefer a ksh shell builtin over an external printf program on Solaris, 19426# but without wasting forks for bash or zsh. 19427if test -z "$BASH_VERSION$ZSH_VERSION" \ 19428 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19429 as_echo='print -r --' 19430 as_echo_n='print -rn --' 19431elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19432 as_echo='printf %s\n' 19433 as_echo_n='printf %s' 19434else 19435 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19436 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19437 as_echo_n='/usr/ucb/echo -n' 19438 else 19439 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19440 as_echo_n_body='eval 19441 arg=$1; 19442 case $arg in #( 19443 *"$as_nl"*) 19444 expr "X$arg" : "X\\(.*\\)$as_nl"; 19445 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19446 esac; 19447 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19448 ' 19449 export as_echo_n_body 19450 as_echo_n='sh -c $as_echo_n_body as_echo' 19451 fi 19452 export as_echo_body 19453 as_echo='sh -c $as_echo_body as_echo' 19454fi 19455 19456# The user is always right. 19457if test "${PATH_SEPARATOR+set}" != set; then 19458 PATH_SEPARATOR=: 19459 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19460 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19461 PATH_SEPARATOR=';' 19462 } 19463fi 19464 19465 19466# IFS 19467# We need space, tab and new line, in precisely that order. Quoting is 19468# there to prevent editors from complaining about space-tab. 19469# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19470# splitting by setting IFS to empty value.) 19471IFS=" "" $as_nl" 19472 19473# Find who we are. Look in the path if we contain no directory separator. 19474as_myself= 19475case $0 in #(( 19476 *[\\/]* ) as_myself=$0 ;; 19477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19478for as_dir in $PATH 19479do 19480 IFS=$as_save_IFS 19481 test -z "$as_dir" && as_dir=. 19482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19483 done 19484IFS=$as_save_IFS 19485 19486 ;; 19487esac 19488# We did not find ourselves, most probably we were run as `sh COMMAND' 19489# in which case we are not to be found in the path. 19490if test "x$as_myself" = x; then 19491 as_myself=$0 19492fi 19493if test ! -f "$as_myself"; then 19494 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19495 exit 1 19496fi 19497 19498# Unset variables that we do not need and which cause bugs (e.g. in 19499# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19500# suppresses any "Segmentation fault" message there. '((' could 19501# trigger a bug in pdksh 5.2.14. 19502for as_var in BASH_ENV ENV MAIL MAILPATH 19503do eval test x\${$as_var+set} = xset \ 19504 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19505done 19506PS1='$ ' 19507PS2='> ' 19508PS4='+ ' 19509 19510# NLS nuisances. 19511LC_ALL=C 19512export LC_ALL 19513LANGUAGE=C 19514export LANGUAGE 19515 19516# CDPATH. 19517(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19518 19519 19520# as_fn_error STATUS ERROR [LINENO LOG_FD] 19521# ---------------------------------------- 19522# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19523# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19524# script with STATUS, using 1 if that was 0. 19525as_fn_error () 19526{ 19527 as_status=$1; test $as_status -eq 0 && as_status=1 19528 if test "$4"; then 19529 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19530 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19531 fi 19532 $as_echo "$as_me: error: $2" >&2 19533 as_fn_exit $as_status 19534} # as_fn_error 19535 19536 19537# as_fn_set_status STATUS 19538# ----------------------- 19539# Set $? to STATUS, without forking. 19540as_fn_set_status () 19541{ 19542 return $1 19543} # as_fn_set_status 19544 19545# as_fn_exit STATUS 19546# ----------------- 19547# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19548as_fn_exit () 19549{ 19550 set +e 19551 as_fn_set_status $1 19552 exit $1 19553} # as_fn_exit 19554 19555# as_fn_unset VAR 19556# --------------- 19557# Portably unset VAR. 19558as_fn_unset () 19559{ 19560 { eval $1=; unset $1;} 19561} 19562as_unset=as_fn_unset 19563# as_fn_append VAR VALUE 19564# ---------------------- 19565# Append the text in VALUE to the end of the definition contained in VAR. Take 19566# advantage of any shell optimizations that allow amortized linear growth over 19567# repeated appends, instead of the typical quadratic growth present in naive 19568# implementations. 19569if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19570 eval 'as_fn_append () 19571 { 19572 eval $1+=\$2 19573 }' 19574else 19575 as_fn_append () 19576 { 19577 eval $1=\$$1\$2 19578 } 19579fi # as_fn_append 19580 19581# as_fn_arith ARG... 19582# ------------------ 19583# Perform arithmetic evaluation on the ARGs, and store the result in the 19584# global $as_val. Take advantage of shells that can avoid forks. The arguments 19585# must be portable across $(()) and expr. 19586if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19587 eval 'as_fn_arith () 19588 { 19589 as_val=$(( $* )) 19590 }' 19591else 19592 as_fn_arith () 19593 { 19594 as_val=`expr "$@" || test $? -eq 1` 19595 } 19596fi # as_fn_arith 19597 19598 19599if expr a : '\(a\)' >/dev/null 2>&1 && 19600 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19601 as_expr=expr 19602else 19603 as_expr=false 19604fi 19605 19606if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19607 as_basename=basename 19608else 19609 as_basename=false 19610fi 19611 19612if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19613 as_dirname=dirname 19614else 19615 as_dirname=false 19616fi 19617 19618as_me=`$as_basename -- "$0" || 19619$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19620 X"$0" : 'X\(//\)$' \| \ 19621 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19622$as_echo X/"$0" | 19623 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19624 s//\1/ 19625 q 19626 } 19627 /^X\/\(\/\/\)$/{ 19628 s//\1/ 19629 q 19630 } 19631 /^X\/\(\/\).*/{ 19632 s//\1/ 19633 q 19634 } 19635 s/.*/./; q'` 19636 19637# Avoid depending upon Character Ranges. 19638as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19639as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19640as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19641as_cr_digits='0123456789' 19642as_cr_alnum=$as_cr_Letters$as_cr_digits 19643 19644ECHO_C= ECHO_N= ECHO_T= 19645case `echo -n x` in #((((( 19646-n*) 19647 case `echo 'xy\c'` in 19648 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19649 xy) ECHO_C='\c';; 19650 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19651 ECHO_T=' ';; 19652 esac;; 19653*) 19654 ECHO_N='-n';; 19655esac 19656 19657rm -f conf$$ conf$$.exe conf$$.file 19658if test -d conf$$.dir; then 19659 rm -f conf$$.dir/conf$$.file 19660else 19661 rm -f conf$$.dir 19662 mkdir conf$$.dir 2>/dev/null 19663fi 19664if (echo >conf$$.file) 2>/dev/null; then 19665 if ln -s conf$$.file conf$$ 2>/dev/null; then 19666 as_ln_s='ln -s' 19667 # ... but there are two gotchas: 19668 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19669 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19670 # In both cases, we have to default to `cp -pR'. 19671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19672 as_ln_s='cp -pR' 19673 elif ln conf$$.file conf$$ 2>/dev/null; then 19674 as_ln_s=ln 19675 else 19676 as_ln_s='cp -pR' 19677 fi 19678else 19679 as_ln_s='cp -pR' 19680fi 19681rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19682rmdir conf$$.dir 2>/dev/null 19683 19684 19685# as_fn_mkdir_p 19686# ------------- 19687# Create "$as_dir" as a directory, including parents if necessary. 19688as_fn_mkdir_p () 19689{ 19690 19691 case $as_dir in #( 19692 -*) as_dir=./$as_dir;; 19693 esac 19694 test -d "$as_dir" || eval $as_mkdir_p || { 19695 as_dirs= 19696 while :; do 19697 case $as_dir in #( 19698 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19699 *) as_qdir=$as_dir;; 19700 esac 19701 as_dirs="'$as_qdir' $as_dirs" 19702 as_dir=`$as_dirname -- "$as_dir" || 19703$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19704 X"$as_dir" : 'X\(//\)[^/]' \| \ 19705 X"$as_dir" : 'X\(//\)$' \| \ 19706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19707$as_echo X"$as_dir" | 19708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19709 s//\1/ 19710 q 19711 } 19712 /^X\(\/\/\)[^/].*/{ 19713 s//\1/ 19714 q 19715 } 19716 /^X\(\/\/\)$/{ 19717 s//\1/ 19718 q 19719 } 19720 /^X\(\/\).*/{ 19721 s//\1/ 19722 q 19723 } 19724 s/.*/./; q'` 19725 test -d "$as_dir" && break 19726 done 19727 test -z "$as_dirs" || eval "mkdir $as_dirs" 19728 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19729 19730 19731} # as_fn_mkdir_p 19732if mkdir -p . 2>/dev/null; then 19733 as_mkdir_p='mkdir -p "$as_dir"' 19734else 19735 test -d ./-p && rmdir ./-p 19736 as_mkdir_p=false 19737fi 19738 19739 19740# as_fn_executable_p FILE 19741# ----------------------- 19742# Test if FILE is an executable regular file. 19743as_fn_executable_p () 19744{ 19745 test -f "$1" && test -x "$1" 19746} # as_fn_executable_p 19747as_test_x='test -x' 19748as_executable_p=as_fn_executable_p 19749 19750# Sed expression to map a string onto a valid CPP name. 19751as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19752 19753# Sed expression to map a string onto a valid variable name. 19754as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19755 19756 19757exec 6>&1 19758## ----------------------------------- ## 19759## Main body of $CONFIG_STATUS script. ## 19760## ----------------------------------- ## 19761_ASEOF 19762test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19763 19764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19765# Save the log message, to keep $0 and so on meaningful, and to 19766# report actual input values of CONFIG_FILES etc. instead of their 19767# values after options handling. 19768ac_log=" 19769This file was extended by xf86-video-sis $as_me 0.12.0, which was 19770generated by GNU Autoconf 2.69. Invocation command line was 19771 19772 CONFIG_FILES = $CONFIG_FILES 19773 CONFIG_HEADERS = $CONFIG_HEADERS 19774 CONFIG_LINKS = $CONFIG_LINKS 19775 CONFIG_COMMANDS = $CONFIG_COMMANDS 19776 $ $0 $@ 19777 19778on `(hostname || uname -n) 2>/dev/null | sed 1q` 19779" 19780 19781_ACEOF 19782 19783case $ac_config_files in *" 19784"*) set x $ac_config_files; shift; ac_config_files=$*;; 19785esac 19786 19787case $ac_config_headers in *" 19788"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19789esac 19790 19791 19792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19793# Files that config.status was made for. 19794config_files="$ac_config_files" 19795config_headers="$ac_config_headers" 19796config_commands="$ac_config_commands" 19797 19798_ACEOF 19799 19800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19801ac_cs_usage="\ 19802\`$as_me' instantiates files and other configuration actions 19803from templates according to the current configuration. Unless the files 19804and actions are specified as TAGs, all are instantiated by default. 19805 19806Usage: $0 [OPTION]... [TAG]... 19807 19808 -h, --help print this help, then exit 19809 -V, --version print version number and configuration settings, then exit 19810 --config print configuration, then exit 19811 -q, --quiet, --silent 19812 do not print progress messages 19813 -d, --debug don't remove temporary files 19814 --recheck update $as_me by reconfiguring in the same conditions 19815 --file=FILE[:TEMPLATE] 19816 instantiate the configuration file FILE 19817 --header=FILE[:TEMPLATE] 19818 instantiate the configuration header FILE 19819 19820Configuration files: 19821$config_files 19822 19823Configuration headers: 19824$config_headers 19825 19826Configuration commands: 19827$config_commands 19828 19829Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues>." 19830 19831_ACEOF 19832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19833ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19834ac_cs_version="\\ 19835xf86-video-sis config.status 0.12.0 19836configured by $0, generated by GNU Autoconf 2.69, 19837 with options \\"\$ac_cs_config\\" 19838 19839Copyright (C) 2012 Free Software Foundation, Inc. 19840This config.status script is free software; the Free Software Foundation 19841gives unlimited permission to copy, distribute and modify it." 19842 19843ac_pwd='$ac_pwd' 19844srcdir='$srcdir' 19845INSTALL='$INSTALL' 19846MKDIR_P='$MKDIR_P' 19847AWK='$AWK' 19848test -n "\$AWK" || AWK=awk 19849_ACEOF 19850 19851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19852# The default lists apply if the user does not specify any file. 19853ac_need_defaults=: 19854while test $# != 0 19855do 19856 case $1 in 19857 --*=?*) 19858 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19860 ac_shift=: 19861 ;; 19862 --*=) 19863 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19864 ac_optarg= 19865 ac_shift=: 19866 ;; 19867 *) 19868 ac_option=$1 19869 ac_optarg=$2 19870 ac_shift=shift 19871 ;; 19872 esac 19873 19874 case $ac_option in 19875 # Handling of the options. 19876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19877 ac_cs_recheck=: ;; 19878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19879 $as_echo "$ac_cs_version"; exit ;; 19880 --config | --confi | --conf | --con | --co | --c ) 19881 $as_echo "$ac_cs_config"; exit ;; 19882 --debug | --debu | --deb | --de | --d | -d ) 19883 debug=: ;; 19884 --file | --fil | --fi | --f ) 19885 $ac_shift 19886 case $ac_optarg in 19887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19888 '') as_fn_error $? "missing file argument" ;; 19889 esac 19890 as_fn_append CONFIG_FILES " '$ac_optarg'" 19891 ac_need_defaults=false;; 19892 --header | --heade | --head | --hea ) 19893 $ac_shift 19894 case $ac_optarg in 19895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19896 esac 19897 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19898 ac_need_defaults=false;; 19899 --he | --h) 19900 # Conflict between --help and --header 19901 as_fn_error $? "ambiguous option: \`$1' 19902Try \`$0 --help' for more information.";; 19903 --help | --hel | -h ) 19904 $as_echo "$ac_cs_usage"; exit ;; 19905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19906 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19907 ac_cs_silent=: ;; 19908 19909 # This is an error. 19910 -*) as_fn_error $? "unrecognized option: \`$1' 19911Try \`$0 --help' for more information." ;; 19912 19913 *) as_fn_append ac_config_targets " $1" 19914 ac_need_defaults=false ;; 19915 19916 esac 19917 shift 19918done 19919 19920ac_configure_extra_args= 19921 19922if $ac_cs_silent; then 19923 exec 6>/dev/null 19924 ac_configure_extra_args="$ac_configure_extra_args --silent" 19925fi 19926 19927_ACEOF 19928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19929if \$ac_cs_recheck; then 19930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19931 shift 19932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19933 CONFIG_SHELL='$SHELL' 19934 export CONFIG_SHELL 19935 exec "\$@" 19936fi 19937 19938_ACEOF 19939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19940exec 5>>config.log 19941{ 19942 echo 19943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19944## Running $as_me. ## 19945_ASBOX 19946 $as_echo "$ac_log" 19947} >&5 19948 19949_ACEOF 19950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19951# 19952# INIT-COMMANDS 19953# 19954AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19955 19956 19957# The HP-UX ksh and POSIX shell print the target directory to stdout 19958# if CDPATH is set. 19959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19960 19961sed_quote_subst='$sed_quote_subst' 19962double_quote_subst='$double_quote_subst' 19963delay_variable_subst='$delay_variable_subst' 19964enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19965macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19966macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19967enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19968pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19969enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19970shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19971SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19972ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19973PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19974host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19975host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19976host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19977build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19978build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19979build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19980SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19981Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19982GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19983EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19984FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19985LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19986NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19987LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19988max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19989ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19990exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19991lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19992lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19993lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19994lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19995lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19996reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19997reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19998OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19999deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20000file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20001file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20002want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20003DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20004sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20005AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20006AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20007archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20008STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20009RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20010old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20011old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20012old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20013lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20014CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20015CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20016compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20017GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20018lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20019lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20020lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20021lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20022lt_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"`' 20023lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20024nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20025lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20026lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20027objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20028MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20029lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20030lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20031lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20032lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20033lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20034need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20035MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20036DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20037NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20038LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20039OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20040OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20041libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20042shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20043extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20044archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20045enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20046export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20047whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20048compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20049old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20050old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20051archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20052archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20053module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20054module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20055with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20056allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20057no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20058hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20059hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20060hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20061hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20062hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20063hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20064hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20065inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20066link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20067always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20068export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20069exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20070include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20071prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20072postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20073file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20074variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20075need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20076need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20077version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20078runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20079shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20080shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20081libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20082library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20083soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20084install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20085postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20086postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20087finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20088finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20089hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20090sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20091configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20092configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20093hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20094enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20095enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20096enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20097old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20098striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20099 20100LTCC='$LTCC' 20101LTCFLAGS='$LTCFLAGS' 20102compiler='$compiler_DEFAULT' 20103 20104# A function that is used when there is no print builtin or printf. 20105func_fallback_echo () 20106{ 20107 eval 'cat <<_LTECHO_EOF 20108\$1 20109_LTECHO_EOF' 20110} 20111 20112# Quote evaled strings. 20113for var in SHELL \ 20114ECHO \ 20115PATH_SEPARATOR \ 20116SED \ 20117GREP \ 20118EGREP \ 20119FGREP \ 20120LD \ 20121NM \ 20122LN_S \ 20123lt_SP2NL \ 20124lt_NL2SP \ 20125reload_flag \ 20126OBJDUMP \ 20127deplibs_check_method \ 20128file_magic_cmd \ 20129file_magic_glob \ 20130want_nocaseglob \ 20131DLLTOOL \ 20132sharedlib_from_linklib_cmd \ 20133AR \ 20134AR_FLAGS \ 20135archiver_list_spec \ 20136STRIP \ 20137RANLIB \ 20138CC \ 20139CFLAGS \ 20140compiler \ 20141lt_cv_sys_global_symbol_pipe \ 20142lt_cv_sys_global_symbol_to_cdecl \ 20143lt_cv_sys_global_symbol_to_import \ 20144lt_cv_sys_global_symbol_to_c_name_address \ 20145lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20146lt_cv_nm_interface \ 20147nm_file_list_spec \ 20148lt_cv_truncate_bin \ 20149lt_prog_compiler_no_builtin_flag \ 20150lt_prog_compiler_pic \ 20151lt_prog_compiler_wl \ 20152lt_prog_compiler_static \ 20153lt_cv_prog_compiler_c_o \ 20154need_locks \ 20155MANIFEST_TOOL \ 20156DSYMUTIL \ 20157NMEDIT \ 20158LIPO \ 20159OTOOL \ 20160OTOOL64 \ 20161shrext_cmds \ 20162export_dynamic_flag_spec \ 20163whole_archive_flag_spec \ 20164compiler_needs_object \ 20165with_gnu_ld \ 20166allow_undefined_flag \ 20167no_undefined_flag \ 20168hardcode_libdir_flag_spec \ 20169hardcode_libdir_separator \ 20170exclude_expsyms \ 20171include_expsyms \ 20172file_list_spec \ 20173variables_saved_for_relink \ 20174libname_spec \ 20175library_names_spec \ 20176soname_spec \ 20177install_override_mode \ 20178finish_eval \ 20179old_striplib \ 20180striplib; do 20181 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20182 *[\\\\\\\`\\"\\\$]*) 20183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20184 ;; 20185 *) 20186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20187 ;; 20188 esac 20189done 20190 20191# Double-quote double-evaled strings. 20192for var in reload_cmds \ 20193old_postinstall_cmds \ 20194old_postuninstall_cmds \ 20195old_archive_cmds \ 20196extract_expsyms_cmds \ 20197old_archive_from_new_cmds \ 20198old_archive_from_expsyms_cmds \ 20199archive_cmds \ 20200archive_expsym_cmds \ 20201module_cmds \ 20202module_expsym_cmds \ 20203export_symbols_cmds \ 20204prelink_cmds \ 20205postlink_cmds \ 20206postinstall_cmds \ 20207postuninstall_cmds \ 20208finish_cmds \ 20209sys_lib_search_path_spec \ 20210configure_time_dlsearch_path \ 20211configure_time_lt_sys_library_path; do 20212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20213 *[\\\\\\\`\\"\\\$]*) 20214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20215 ;; 20216 *) 20217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20218 ;; 20219 esac 20220done 20221 20222ac_aux_dir='$ac_aux_dir' 20223 20224# See if we are running on zsh, and set the options that allow our 20225# commands through without removal of \ escapes INIT. 20226if test -n "\${ZSH_VERSION+set}"; then 20227 setopt NO_GLOB_SUBST 20228fi 20229 20230 20231 PACKAGE='$PACKAGE' 20232 VERSION='$VERSION' 20233 RM='$RM' 20234 ofile='$ofile' 20235 20236 20237 20238 20239_ACEOF 20240 20241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20242 20243# Handling of arguments. 20244for ac_config_target in $ac_config_targets 20245do 20246 case $ac_config_target in 20247 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20248 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20249 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20250 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20251 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20252 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20253 20254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20255 esac 20256done 20257 20258 20259# If the user did not use the arguments to specify the items to instantiate, 20260# then the envvar interface is used. Set only those that are not. 20261# We use the long form for the default assignment because of an extremely 20262# bizarre bug on SunOS 4.1.3. 20263if $ac_need_defaults; then 20264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20267fi 20268 20269# Have a temporary directory for convenience. Make it in the build tree 20270# simply because there is no reason against having it here, and in addition, 20271# creating and moving files from /tmp can sometimes cause problems. 20272# Hook for its removal unless debugging. 20273# Note that there is a small window in which the directory will not be cleaned: 20274# after its creation but before its name has been assigned to `$tmp'. 20275$debug || 20276{ 20277 tmp= ac_tmp= 20278 trap 'exit_status=$? 20279 : "${ac_tmp:=$tmp}" 20280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20281' 0 20282 trap 'as_fn_exit 1' 1 2 13 15 20283} 20284# Create a (secure) tmp directory for tmp files. 20285 20286{ 20287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20288 test -d "$tmp" 20289} || 20290{ 20291 tmp=./conf$$-$RANDOM 20292 (umask 077 && mkdir "$tmp") 20293} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20294ac_tmp=$tmp 20295 20296# Set up the scripts for CONFIG_FILES section. 20297# No need to generate them if there are no CONFIG_FILES. 20298# This happens for instance with `./config.status config.h'. 20299if test -n "$CONFIG_FILES"; then 20300 20301 20302ac_cr=`echo X | tr X '\015'` 20303# On cygwin, bash can eat \r inside `` if the user requested igncr. 20304# But we know of no other shell where ac_cr would be empty at this 20305# point, so we can use a bashism as a fallback. 20306if test "x$ac_cr" = x; then 20307 eval ac_cr=\$\'\\r\' 20308fi 20309ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20310if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20311 ac_cs_awk_cr='\\r' 20312else 20313 ac_cs_awk_cr=$ac_cr 20314fi 20315 20316echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20317_ACEOF 20318 20319 20320{ 20321 echo "cat >conf$$subs.awk <<_ACEOF" && 20322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20323 echo "_ACEOF" 20324} >conf$$subs.sh || 20325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20326ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20327ac_delim='%!_!# ' 20328for ac_last_try in false false false false false :; do 20329 . ./conf$$subs.sh || 20330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20331 20332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20333 if test $ac_delim_n = $ac_delim_num; then 20334 break 20335 elif $ac_last_try; then 20336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20337 else 20338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20339 fi 20340done 20341rm -f conf$$subs.sh 20342 20343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20344cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20345_ACEOF 20346sed -n ' 20347h 20348s/^/S["/; s/!.*/"]=/ 20349p 20350g 20351s/^[^!]*!// 20352:repl 20353t repl 20354s/'"$ac_delim"'$// 20355t delim 20356:nl 20357h 20358s/\(.\{148\}\)..*/\1/ 20359t more1 20360s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20361p 20362n 20363b repl 20364:more1 20365s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20366p 20367g 20368s/.\{148\}// 20369t nl 20370:delim 20371h 20372s/\(.\{148\}\)..*/\1/ 20373t more2 20374s/["\\]/\\&/g; s/^/"/; s/$/"/ 20375p 20376b 20377:more2 20378s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20379p 20380g 20381s/.\{148\}// 20382t delim 20383' <conf$$subs.awk | sed ' 20384/^[^""]/{ 20385 N 20386 s/\n// 20387} 20388' >>$CONFIG_STATUS || ac_write_fail=1 20389rm -f conf$$subs.awk 20390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20391_ACAWK 20392cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20393 for (key in S) S_is_set[key] = 1 20394 FS = "" 20395 20396} 20397{ 20398 line = $ 0 20399 nfields = split(line, field, "@") 20400 substed = 0 20401 len = length(field[1]) 20402 for (i = 2; i < nfields; i++) { 20403 key = field[i] 20404 keylen = length(key) 20405 if (S_is_set[key]) { 20406 value = S[key] 20407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20408 len += length(value) + length(field[++i]) 20409 substed = 1 20410 } else 20411 len += 1 + keylen 20412 } 20413 20414 print line 20415} 20416 20417_ACAWK 20418_ACEOF 20419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20420if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20422else 20423 cat 20424fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20426_ACEOF 20427 20428# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20429# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20430# trailing colons and then remove the whole line if VPATH becomes empty 20431# (actually we leave an empty line to preserve line numbers). 20432if test "x$srcdir" = x.; then 20433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20434h 20435s/// 20436s/^/:/ 20437s/[ ]*$/:/ 20438s/:\$(srcdir):/:/g 20439s/:\${srcdir}:/:/g 20440s/:@srcdir@:/:/g 20441s/^:*// 20442s/:*$// 20443x 20444s/\(=[ ]*\).*/\1/ 20445G 20446s/\n// 20447s/^[^=]*=[ ]*$// 20448}' 20449fi 20450 20451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20452fi # test -n "$CONFIG_FILES" 20453 20454# Set up the scripts for CONFIG_HEADERS section. 20455# No need to generate them if there are no CONFIG_HEADERS. 20456# This happens for instance with `./config.status Makefile'. 20457if test -n "$CONFIG_HEADERS"; then 20458cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20459BEGIN { 20460_ACEOF 20461 20462# Transform confdefs.h into an awk script `defines.awk', embedded as 20463# here-document in config.status, that substitutes the proper values into 20464# config.h.in to produce config.h. 20465 20466# Create a delimiter string that does not exist in confdefs.h, to ease 20467# handling of long lines. 20468ac_delim='%!_!# ' 20469for ac_last_try in false false :; do 20470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20471 if test -z "$ac_tt"; then 20472 break 20473 elif $ac_last_try; then 20474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20475 else 20476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20477 fi 20478done 20479 20480# For the awk script, D is an array of macro values keyed by name, 20481# likewise P contains macro parameters if any. Preserve backslash 20482# newline sequences. 20483 20484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20485sed -n ' 20486s/.\{148\}/&'"$ac_delim"'/g 20487t rset 20488:rset 20489s/^[ ]*#[ ]*define[ ][ ]*/ / 20490t def 20491d 20492:def 20493s/\\$// 20494t bsnl 20495s/["\\]/\\&/g 20496s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20497D["\1"]=" \3"/p 20498s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20499d 20500:bsnl 20501s/["\\]/\\&/g 20502s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20503D["\1"]=" \3\\\\\\n"\\/p 20504t cont 20505s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20506t cont 20507d 20508:cont 20509n 20510s/.\{148\}/&'"$ac_delim"'/g 20511t clear 20512:clear 20513s/\\$// 20514t bsnlc 20515s/["\\]/\\&/g; s/^/"/; s/$/"/p 20516d 20517:bsnlc 20518s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20519b cont 20520' <confdefs.h | sed ' 20521s/'"$ac_delim"'/"\\\ 20522"/g' >>$CONFIG_STATUS || ac_write_fail=1 20523 20524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20525 for (key in D) D_is_set[key] = 1 20526 FS = "" 20527} 20528/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20529 line = \$ 0 20530 split(line, arg, " ") 20531 if (arg[1] == "#") { 20532 defundef = arg[2] 20533 mac1 = arg[3] 20534 } else { 20535 defundef = substr(arg[1], 2) 20536 mac1 = arg[2] 20537 } 20538 split(mac1, mac2, "(") #) 20539 macro = mac2[1] 20540 prefix = substr(line, 1, index(line, defundef) - 1) 20541 if (D_is_set[macro]) { 20542 # Preserve the white space surrounding the "#". 20543 print prefix "define", macro P[macro] D[macro] 20544 next 20545 } else { 20546 # Replace #undef with comments. This is necessary, for example, 20547 # in the case of _POSIX_SOURCE, which is predefined and required 20548 # on some systems where configure will not decide to define it. 20549 if (defundef == "undef") { 20550 print "/*", prefix defundef, macro, "*/" 20551 next 20552 } 20553 } 20554} 20555{ print } 20556_ACAWK 20557_ACEOF 20558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20560fi # test -n "$CONFIG_HEADERS" 20561 20562 20563eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20564shift 20565for ac_tag 20566do 20567 case $ac_tag in 20568 :[FHLC]) ac_mode=$ac_tag; continue;; 20569 esac 20570 case $ac_mode$ac_tag in 20571 :[FHL]*:*);; 20572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20573 :[FH]-) ac_tag=-:-;; 20574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20575 esac 20576 ac_save_IFS=$IFS 20577 IFS=: 20578 set x $ac_tag 20579 IFS=$ac_save_IFS 20580 shift 20581 ac_file=$1 20582 shift 20583 20584 case $ac_mode in 20585 :L) ac_source=$1;; 20586 :[FH]) 20587 ac_file_inputs= 20588 for ac_f 20589 do 20590 case $ac_f in 20591 -) ac_f="$ac_tmp/stdin";; 20592 *) # Look for the file first in the build tree, then in the source tree 20593 # (if the path is not absolute). The absolute path cannot be DOS-style, 20594 # because $ac_f cannot contain `:'. 20595 test -f "$ac_f" || 20596 case $ac_f in 20597 [\\/$]*) false;; 20598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20599 esac || 20600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20601 esac 20602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20603 as_fn_append ac_file_inputs " '$ac_f'" 20604 done 20605 20606 # Let's still pretend it is `configure' which instantiates (i.e., don't 20607 # use $as_me), people would be surprised to read: 20608 # /* config.h. Generated by config.status. */ 20609 configure_input='Generated from '` 20610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20611 `' by configure.' 20612 if test x"$ac_file" != x-; then 20613 configure_input="$ac_file. $configure_input" 20614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20615$as_echo "$as_me: creating $ac_file" >&6;} 20616 fi 20617 # Neutralize special characters interpreted by sed in replacement strings. 20618 case $configure_input in #( 20619 *\&* | *\|* | *\\* ) 20620 ac_sed_conf_input=`$as_echo "$configure_input" | 20621 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20622 *) ac_sed_conf_input=$configure_input;; 20623 esac 20624 20625 case $ac_tag in 20626 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20628 esac 20629 ;; 20630 esac 20631 20632 ac_dir=`$as_dirname -- "$ac_file" || 20633$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20634 X"$ac_file" : 'X\(//\)[^/]' \| \ 20635 X"$ac_file" : 'X\(//\)$' \| \ 20636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20637$as_echo X"$ac_file" | 20638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20639 s//\1/ 20640 q 20641 } 20642 /^X\(\/\/\)[^/].*/{ 20643 s//\1/ 20644 q 20645 } 20646 /^X\(\/\/\)$/{ 20647 s//\1/ 20648 q 20649 } 20650 /^X\(\/\).*/{ 20651 s//\1/ 20652 q 20653 } 20654 s/.*/./; q'` 20655 as_dir="$ac_dir"; as_fn_mkdir_p 20656 ac_builddir=. 20657 20658case "$ac_dir" in 20659.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20660*) 20661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20662 # A ".." for each directory in $ac_dir_suffix. 20663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20664 case $ac_top_builddir_sub in 20665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20667 esac ;; 20668esac 20669ac_abs_top_builddir=$ac_pwd 20670ac_abs_builddir=$ac_pwd$ac_dir_suffix 20671# for backward compatibility: 20672ac_top_builddir=$ac_top_build_prefix 20673 20674case $srcdir in 20675 .) # We are building in place. 20676 ac_srcdir=. 20677 ac_top_srcdir=$ac_top_builddir_sub 20678 ac_abs_top_srcdir=$ac_pwd ;; 20679 [\\/]* | ?:[\\/]* ) # Absolute name. 20680 ac_srcdir=$srcdir$ac_dir_suffix; 20681 ac_top_srcdir=$srcdir 20682 ac_abs_top_srcdir=$srcdir ;; 20683 *) # Relative name. 20684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20685 ac_top_srcdir=$ac_top_build_prefix$srcdir 20686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20687esac 20688ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20689 20690 20691 case $ac_mode in 20692 :F) 20693 # 20694 # CONFIG_FILE 20695 # 20696 20697 case $INSTALL in 20698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20700 esac 20701 ac_MKDIR_P=$MKDIR_P 20702 case $MKDIR_P in 20703 [\\/$]* | ?:[\\/]* ) ;; 20704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20705 esac 20706_ACEOF 20707 20708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20709# If the template does not know about datarootdir, expand it. 20710# FIXME: This hack should be removed a few years after 2.60. 20711ac_datarootdir_hack=; ac_datarootdir_seen= 20712ac_sed_dataroot=' 20713/datarootdir/ { 20714 p 20715 q 20716} 20717/@datadir@/p 20718/@docdir@/p 20719/@infodir@/p 20720/@localedir@/p 20721/@mandir@/p' 20722case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20723*datarootdir*) ac_datarootdir_seen=yes;; 20724*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20726$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20727_ACEOF 20728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20729 ac_datarootdir_hack=' 20730 s&@datadir@&$datadir&g 20731 s&@docdir@&$docdir&g 20732 s&@infodir@&$infodir&g 20733 s&@localedir@&$localedir&g 20734 s&@mandir@&$mandir&g 20735 s&\\\${datarootdir}&$datarootdir&g' ;; 20736esac 20737_ACEOF 20738 20739# Neutralize VPATH when `$srcdir' = `.'. 20740# Shell code in configure.ac might set extrasub. 20741# FIXME: do we really want to maintain this feature? 20742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20743ac_sed_extra="$ac_vpsub 20744$extrasub 20745_ACEOF 20746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20747:t 20748/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20749s|@configure_input@|$ac_sed_conf_input|;t t 20750s&@top_builddir@&$ac_top_builddir_sub&;t t 20751s&@top_build_prefix@&$ac_top_build_prefix&;t t 20752s&@srcdir@&$ac_srcdir&;t t 20753s&@abs_srcdir@&$ac_abs_srcdir&;t t 20754s&@top_srcdir@&$ac_top_srcdir&;t t 20755s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20756s&@builddir@&$ac_builddir&;t t 20757s&@abs_builddir@&$ac_abs_builddir&;t t 20758s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20759s&@INSTALL@&$ac_INSTALL&;t t 20760s&@MKDIR_P@&$ac_MKDIR_P&;t t 20761$ac_datarootdir_hack 20762" 20763eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20765 20766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20769 "$ac_tmp/out"`; test -z "$ac_out"; } && 20770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20771which seems to be undefined. Please make sure it is defined" >&5 20772$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20773which seems to be undefined. Please make sure it is defined" >&2;} 20774 20775 rm -f "$ac_tmp/stdin" 20776 case $ac_file in 20777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20779 esac \ 20780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20781 ;; 20782 :H) 20783 # 20784 # CONFIG_HEADER 20785 # 20786 if test x"$ac_file" != x-; then 20787 { 20788 $as_echo "/* $configure_input */" \ 20789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20790 } >"$ac_tmp/config.h" \ 20791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20794$as_echo "$as_me: $ac_file is unchanged" >&6;} 20795 else 20796 rm -f "$ac_file" 20797 mv "$ac_tmp/config.h" "$ac_file" \ 20798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20799 fi 20800 else 20801 $as_echo "/* $configure_input */" \ 20802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20803 || as_fn_error $? "could not create -" "$LINENO" 5 20804 fi 20805# Compute "$ac_file"'s index in $config_headers. 20806_am_arg="$ac_file" 20807_am_stamp_count=1 20808for _am_header in $config_headers :; do 20809 case $_am_header in 20810 $_am_arg | $_am_arg:* ) 20811 break ;; 20812 * ) 20813 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20814 esac 20815done 20816echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20817$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20818 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20819 X"$_am_arg" : 'X\(//\)$' \| \ 20820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20821$as_echo X"$_am_arg" | 20822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20823 s//\1/ 20824 q 20825 } 20826 /^X\(\/\/\)[^/].*/{ 20827 s//\1/ 20828 q 20829 } 20830 /^X\(\/\/\)$/{ 20831 s//\1/ 20832 q 20833 } 20834 /^X\(\/\).*/{ 20835 s//\1/ 20836 q 20837 } 20838 s/.*/./; q'`/stamp-h$_am_stamp_count 20839 ;; 20840 20841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20842$as_echo "$as_me: executing $ac_file commands" >&6;} 20843 ;; 20844 esac 20845 20846 20847 case $ac_file$ac_mode in 20848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20849 # Older Autoconf quotes --file arguments for eval, but not when files 20850 # are listed without --file. Let's play safe and only enable the eval 20851 # if we detect the quoting. 20852 case $CONFIG_FILES in 20853 *\'*) eval set x "$CONFIG_FILES" ;; 20854 *) set x $CONFIG_FILES ;; 20855 esac 20856 shift 20857 for mf 20858 do 20859 # Strip MF so we end up with the name of the file. 20860 mf=`echo "$mf" | sed -e 's/:.*$//'` 20861 # Check whether this is an Automake generated Makefile or not. 20862 # We used to match only the files named 'Makefile.in', but 20863 # some people rename them; so instead we look at the file content. 20864 # Grep'ing the first line is not enough: some people post-process 20865 # each Makefile.in and add a new line on top of each file to say so. 20866 # Grep'ing the whole file is not good either: AIX grep has a line 20867 # limit of 2048, but all sed's we know have understand at least 4000. 20868 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20869 dirpart=`$as_dirname -- "$mf" || 20870$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20871 X"$mf" : 'X\(//\)[^/]' \| \ 20872 X"$mf" : 'X\(//\)$' \| \ 20873 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20874$as_echo X"$mf" | 20875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20876 s//\1/ 20877 q 20878 } 20879 /^X\(\/\/\)[^/].*/{ 20880 s//\1/ 20881 q 20882 } 20883 /^X\(\/\/\)$/{ 20884 s//\1/ 20885 q 20886 } 20887 /^X\(\/\).*/{ 20888 s//\1/ 20889 q 20890 } 20891 s/.*/./; q'` 20892 else 20893 continue 20894 fi 20895 # Extract the definition of DEPDIR, am__include, and am__quote 20896 # from the Makefile without running 'make'. 20897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20898 test -z "$DEPDIR" && continue 20899 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20900 test -z "$am__include" && continue 20901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20902 # Find all dependency output files, they are included files with 20903 # $(DEPDIR) in their names. We invoke sed twice because it is the 20904 # simplest approach to changing $(DEPDIR) to its actual value in the 20905 # expansion. 20906 for file in `sed -n " 20907 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20908 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20909 # Make sure the directory exists. 20910 test -f "$dirpart/$file" && continue 20911 fdir=`$as_dirname -- "$file" || 20912$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20913 X"$file" : 'X\(//\)[^/]' \| \ 20914 X"$file" : 'X\(//\)$' \| \ 20915 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20916$as_echo X"$file" | 20917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20918 s//\1/ 20919 q 20920 } 20921 /^X\(\/\/\)[^/].*/{ 20922 s//\1/ 20923 q 20924 } 20925 /^X\(\/\/\)$/{ 20926 s//\1/ 20927 q 20928 } 20929 /^X\(\/\).*/{ 20930 s//\1/ 20931 q 20932 } 20933 s/.*/./; q'` 20934 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20935 # echo "creating $dirpart/$file" 20936 echo '# dummy' > "$dirpart/$file" 20937 done 20938 done 20939} 20940 ;; 20941 "libtool":C) 20942 20943 # See if we are running on zsh, and set the options that allow our 20944 # commands through without removal of \ escapes. 20945 if test -n "${ZSH_VERSION+set}"; then 20946 setopt NO_GLOB_SUBST 20947 fi 20948 20949 cfgfile=${ofile}T 20950 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20951 $RM "$cfgfile" 20952 20953 cat <<_LT_EOF >> "$cfgfile" 20954#! $SHELL 20955# Generated automatically by $as_me ($PACKAGE) $VERSION 20956# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20957 20958# Provide generalized library-building support services. 20959# Written by Gordon Matzigkeit, 1996 20960 20961# Copyright (C) 2014 Free Software Foundation, Inc. 20962# This is free software; see the source for copying conditions. There is NO 20963# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20964 20965# GNU Libtool is free software; you can redistribute it and/or modify 20966# it under the terms of the GNU General Public License as published by 20967# the Free Software Foundation; either version 2 of of the License, or 20968# (at your option) any later version. 20969# 20970# As a special exception to the GNU General Public License, if you 20971# distribute this file as part of a program or library that is built 20972# using GNU Libtool, you may include this file under the same 20973# distribution terms that you use for the rest of that program. 20974# 20975# GNU Libtool is distributed in the hope that it will be useful, but 20976# WITHOUT ANY WARRANTY; without even the implied warranty of 20977# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20978# GNU General Public License for more details. 20979# 20980# You should have received a copy of the GNU General Public License 20981# along with this program. If not, see <http://www.gnu.org/licenses/>. 20982 20983 20984# The names of the tagged configurations supported by this script. 20985available_tags='' 20986 20987# Configured defaults for sys_lib_dlsearch_path munging. 20988: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20989 20990# ### BEGIN LIBTOOL CONFIG 20991 20992# Whether or not to build static libraries. 20993build_old_libs=$enable_static 20994 20995# Which release of libtool.m4 was used? 20996macro_version=$macro_version 20997macro_revision=$macro_revision 20998 20999# Whether or not to build shared libraries. 21000build_libtool_libs=$enable_shared 21001 21002# What type of objects to build. 21003pic_mode=$pic_mode 21004 21005# Whether or not to optimize for fast installation. 21006fast_install=$enable_fast_install 21007 21008# Shared archive member basename,for filename based shared library versioning on AIX. 21009shared_archive_member_spec=$shared_archive_member_spec 21010 21011# Shell to use when invoking shell scripts. 21012SHELL=$lt_SHELL 21013 21014# An echo program that protects backslashes. 21015ECHO=$lt_ECHO 21016 21017# The PATH separator for the build system. 21018PATH_SEPARATOR=$lt_PATH_SEPARATOR 21019 21020# The host system. 21021host_alias=$host_alias 21022host=$host 21023host_os=$host_os 21024 21025# The build system. 21026build_alias=$build_alias 21027build=$build 21028build_os=$build_os 21029 21030# A sed program that does not truncate output. 21031SED=$lt_SED 21032 21033# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21034Xsed="\$SED -e 1s/^X//" 21035 21036# A grep program that handles long lines. 21037GREP=$lt_GREP 21038 21039# An ERE matcher. 21040EGREP=$lt_EGREP 21041 21042# A literal string matcher. 21043FGREP=$lt_FGREP 21044 21045# A BSD- or MS-compatible name lister. 21046NM=$lt_NM 21047 21048# Whether we need soft or hard links. 21049LN_S=$lt_LN_S 21050 21051# What is the maximum length of a command? 21052max_cmd_len=$max_cmd_len 21053 21054# Object file suffix (normally "o"). 21055objext=$ac_objext 21056 21057# Executable file suffix (normally ""). 21058exeext=$exeext 21059 21060# whether the shell understands "unset". 21061lt_unset=$lt_unset 21062 21063# turn spaces into newlines. 21064SP2NL=$lt_lt_SP2NL 21065 21066# turn newlines into spaces. 21067NL2SP=$lt_lt_NL2SP 21068 21069# convert \$build file names to \$host format. 21070to_host_file_cmd=$lt_cv_to_host_file_cmd 21071 21072# convert \$build files to toolchain format. 21073to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21074 21075# An object symbol dumper. 21076OBJDUMP=$lt_OBJDUMP 21077 21078# Method to check whether dependent libraries are shared objects. 21079deplibs_check_method=$lt_deplibs_check_method 21080 21081# Command to use when deplibs_check_method = "file_magic". 21082file_magic_cmd=$lt_file_magic_cmd 21083 21084# How to find potential files when deplibs_check_method = "file_magic". 21085file_magic_glob=$lt_file_magic_glob 21086 21087# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21088want_nocaseglob=$lt_want_nocaseglob 21089 21090# DLL creation program. 21091DLLTOOL=$lt_DLLTOOL 21092 21093# Command to associate shared and link libraries. 21094sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21095 21096# The archiver. 21097AR=$lt_AR 21098 21099# Flags to create an archive. 21100AR_FLAGS=$lt_AR_FLAGS 21101 21102# How to feed a file listing to the archiver. 21103archiver_list_spec=$lt_archiver_list_spec 21104 21105# A symbol stripping program. 21106STRIP=$lt_STRIP 21107 21108# Commands used to install an old-style archive. 21109RANLIB=$lt_RANLIB 21110old_postinstall_cmds=$lt_old_postinstall_cmds 21111old_postuninstall_cmds=$lt_old_postuninstall_cmds 21112 21113# Whether to use a lock for old archive extraction. 21114lock_old_archive_extraction=$lock_old_archive_extraction 21115 21116# A C compiler. 21117LTCC=$lt_CC 21118 21119# LTCC compiler flags. 21120LTCFLAGS=$lt_CFLAGS 21121 21122# Take the output of nm and produce a listing of raw symbols and C names. 21123global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21124 21125# Transform the output of nm in a proper C declaration. 21126global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21127 21128# Transform the output of nm into a list of symbols to manually relocate. 21129global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21130 21131# Transform the output of nm in a C name address pair. 21132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21133 21134# Transform the output of nm in a C name address pair when lib prefix is needed. 21135global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21136 21137# The name lister interface. 21138nm_interface=$lt_lt_cv_nm_interface 21139 21140# Specify filename containing input files for \$NM. 21141nm_file_list_spec=$lt_nm_file_list_spec 21142 21143# The root where to search for dependent libraries,and where our libraries should be installed. 21144lt_sysroot=$lt_sysroot 21145 21146# Command to truncate a binary pipe. 21147lt_truncate_bin=$lt_lt_cv_truncate_bin 21148 21149# The name of the directory that contains temporary libtool files. 21150objdir=$objdir 21151 21152# Used to examine libraries when file_magic_cmd begins with "file". 21153MAGIC_CMD=$MAGIC_CMD 21154 21155# Must we lock files when doing compilation? 21156need_locks=$lt_need_locks 21157 21158# Manifest tool. 21159MANIFEST_TOOL=$lt_MANIFEST_TOOL 21160 21161# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21162DSYMUTIL=$lt_DSYMUTIL 21163 21164# Tool to change global to local symbols on Mac OS X. 21165NMEDIT=$lt_NMEDIT 21166 21167# Tool to manipulate fat objects and archives on Mac OS X. 21168LIPO=$lt_LIPO 21169 21170# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21171OTOOL=$lt_OTOOL 21172 21173# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21174OTOOL64=$lt_OTOOL64 21175 21176# Old archive suffix (normally "a"). 21177libext=$libext 21178 21179# Shared library suffix (normally ".so"). 21180shrext_cmds=$lt_shrext_cmds 21181 21182# The commands to extract the exported symbol list from a shared archive. 21183extract_expsyms_cmds=$lt_extract_expsyms_cmds 21184 21185# Variables whose values should be saved in libtool wrapper scripts and 21186# restored at link time. 21187variables_saved_for_relink=$lt_variables_saved_for_relink 21188 21189# Do we need the "lib" prefix for modules? 21190need_lib_prefix=$need_lib_prefix 21191 21192# Do we need a version for libraries? 21193need_version=$need_version 21194 21195# Library versioning type. 21196version_type=$version_type 21197 21198# Shared library runtime path variable. 21199runpath_var=$runpath_var 21200 21201# Shared library path variable. 21202shlibpath_var=$shlibpath_var 21203 21204# Is shlibpath searched before the hard-coded library search path? 21205shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21206 21207# Format of library name prefix. 21208libname_spec=$lt_libname_spec 21209 21210# List of archive names. First name is the real one, the rest are links. 21211# The last name is the one that the linker finds with -lNAME 21212library_names_spec=$lt_library_names_spec 21213 21214# The coded name of the library, if different from the real name. 21215soname_spec=$lt_soname_spec 21216 21217# Permission mode override for installation of shared libraries. 21218install_override_mode=$lt_install_override_mode 21219 21220# Command to use after installation of a shared archive. 21221postinstall_cmds=$lt_postinstall_cmds 21222 21223# Command to use after uninstallation of a shared archive. 21224postuninstall_cmds=$lt_postuninstall_cmds 21225 21226# Commands used to finish a libtool library installation in a directory. 21227finish_cmds=$lt_finish_cmds 21228 21229# As "finish_cmds", except a single script fragment to be evaled but 21230# not shown. 21231finish_eval=$lt_finish_eval 21232 21233# Whether we should hardcode library paths into libraries. 21234hardcode_into_libs=$hardcode_into_libs 21235 21236# Compile-time system search path for libraries. 21237sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21238 21239# Detected run-time system search path for libraries. 21240sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21241 21242# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21243configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21244 21245# Whether dlopen is supported. 21246dlopen_support=$enable_dlopen 21247 21248# Whether dlopen of programs is supported. 21249dlopen_self=$enable_dlopen_self 21250 21251# Whether dlopen of statically linked programs is supported. 21252dlopen_self_static=$enable_dlopen_self_static 21253 21254# Commands to strip libraries. 21255old_striplib=$lt_old_striplib 21256striplib=$lt_striplib 21257 21258 21259# The linker used to build libraries. 21260LD=$lt_LD 21261 21262# How to create reloadable object files. 21263reload_flag=$lt_reload_flag 21264reload_cmds=$lt_reload_cmds 21265 21266# Commands used to build an old-style archive. 21267old_archive_cmds=$lt_old_archive_cmds 21268 21269# A language specific compiler. 21270CC=$lt_compiler 21271 21272# Is the compiler the GNU compiler? 21273with_gcc=$GCC 21274 21275# Compiler flag to turn off builtin functions. 21276no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21277 21278# Additional compiler flags for building library objects. 21279pic_flag=$lt_lt_prog_compiler_pic 21280 21281# How to pass a linker flag through the compiler. 21282wl=$lt_lt_prog_compiler_wl 21283 21284# Compiler flag to prevent dynamic linking. 21285link_static_flag=$lt_lt_prog_compiler_static 21286 21287# Does compiler simultaneously support -c and -o options? 21288compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21289 21290# Whether or not to add -lc for building shared libraries. 21291build_libtool_need_lc=$archive_cmds_need_lc 21292 21293# Whether or not to disallow shared libs when runtime libs are static. 21294allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21295 21296# Compiler flag to allow reflexive dlopens. 21297export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21298 21299# Compiler flag to generate shared objects directly from archives. 21300whole_archive_flag_spec=$lt_whole_archive_flag_spec 21301 21302# Whether the compiler copes with passing no objects directly. 21303compiler_needs_object=$lt_compiler_needs_object 21304 21305# Create an old-style archive from a shared archive. 21306old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21307 21308# Create a temporary old-style archive to link instead of a shared archive. 21309old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21310 21311# Commands used to build a shared archive. 21312archive_cmds=$lt_archive_cmds 21313archive_expsym_cmds=$lt_archive_expsym_cmds 21314 21315# Commands used to build a loadable module if different from building 21316# a shared archive. 21317module_cmds=$lt_module_cmds 21318module_expsym_cmds=$lt_module_expsym_cmds 21319 21320# Whether we are building with GNU ld or not. 21321with_gnu_ld=$lt_with_gnu_ld 21322 21323# Flag that allows shared libraries with undefined symbols to be built. 21324allow_undefined_flag=$lt_allow_undefined_flag 21325 21326# Flag that enforces no undefined symbols. 21327no_undefined_flag=$lt_no_undefined_flag 21328 21329# Flag to hardcode \$libdir into a binary during linking. 21330# This must work even if \$libdir does not exist 21331hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21332 21333# Whether we need a single "-rpath" flag with a separated argument. 21334hardcode_libdir_separator=$lt_hardcode_libdir_separator 21335 21336# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21337# DIR into the resulting binary. 21338hardcode_direct=$hardcode_direct 21339 21340# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21341# DIR into the resulting binary and the resulting library dependency is 21342# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21343# library is relocated. 21344hardcode_direct_absolute=$hardcode_direct_absolute 21345 21346# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21347# into the resulting binary. 21348hardcode_minus_L=$hardcode_minus_L 21349 21350# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21351# into the resulting binary. 21352hardcode_shlibpath_var=$hardcode_shlibpath_var 21353 21354# Set to "yes" if building a shared library automatically hardcodes DIR 21355# into the library and all subsequent libraries and executables linked 21356# against it. 21357hardcode_automatic=$hardcode_automatic 21358 21359# Set to yes if linker adds runtime paths of dependent libraries 21360# to runtime path list. 21361inherit_rpath=$inherit_rpath 21362 21363# Whether libtool must link a program against all its dependency libraries. 21364link_all_deplibs=$link_all_deplibs 21365 21366# Set to "yes" if exported symbols are required. 21367always_export_symbols=$always_export_symbols 21368 21369# The commands to list exported symbols. 21370export_symbols_cmds=$lt_export_symbols_cmds 21371 21372# Symbols that should not be listed in the preloaded symbols. 21373exclude_expsyms=$lt_exclude_expsyms 21374 21375# Symbols that must always be exported. 21376include_expsyms=$lt_include_expsyms 21377 21378# Commands necessary for linking programs (against libraries) with templates. 21379prelink_cmds=$lt_prelink_cmds 21380 21381# Commands necessary for finishing linking programs. 21382postlink_cmds=$lt_postlink_cmds 21383 21384# Specify filename containing input files. 21385file_list_spec=$lt_file_list_spec 21386 21387# How to hardcode a shared library path into an executable. 21388hardcode_action=$hardcode_action 21389 21390# ### END LIBTOOL CONFIG 21391 21392_LT_EOF 21393 21394 cat <<'_LT_EOF' >> "$cfgfile" 21395 21396# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21397 21398# func_munge_path_list VARIABLE PATH 21399# ----------------------------------- 21400# VARIABLE is name of variable containing _space_ separated list of 21401# directories to be munged by the contents of PATH, which is string 21402# having a format: 21403# "DIR[:DIR]:" 21404# string "DIR[ DIR]" will be prepended to VARIABLE 21405# ":DIR[:DIR]" 21406# string "DIR[ DIR]" will be appended to VARIABLE 21407# "DIRP[:DIRP]::[DIRA:]DIRA" 21408# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21409# "DIRA[ DIRA]" will be appended to VARIABLE 21410# "DIR[:DIR]" 21411# VARIABLE will be replaced by "DIR[ DIR]" 21412func_munge_path_list () 21413{ 21414 case x$2 in 21415 x) 21416 ;; 21417 *:) 21418 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21419 ;; 21420 x:*) 21421 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21422 ;; 21423 *::*) 21424 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21425 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21426 ;; 21427 *) 21428 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21429 ;; 21430 esac 21431} 21432 21433 21434# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21435func_cc_basename () 21436{ 21437 for cc_temp in $*""; do 21438 case $cc_temp in 21439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21441 \-*) ;; 21442 *) break;; 21443 esac 21444 done 21445 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21446} 21447 21448 21449# ### END FUNCTIONS SHARED WITH CONFIGURE 21450 21451_LT_EOF 21452 21453 case $host_os in 21454 aix3*) 21455 cat <<\_LT_EOF >> "$cfgfile" 21456# AIX sometimes has problems with the GCC collect2 program. For some 21457# reason, if we set the COLLECT_NAMES environment variable, the problems 21458# vanish in a puff of smoke. 21459if test set != "${COLLECT_NAMES+set}"; then 21460 COLLECT_NAMES= 21461 export COLLECT_NAMES 21462fi 21463_LT_EOF 21464 ;; 21465 esac 21466 21467 21468ltmain=$ac_aux_dir/ltmain.sh 21469 21470 21471 # We use sed instead of cat because bash on DJGPP gets confused if 21472 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21473 # text mode, it properly converts lines to CR/LF. This bash problem 21474 # is reportedly fixed, but why not run on old versions too? 21475 sed '$q' "$ltmain" >> "$cfgfile" \ 21476 || (rm -f "$cfgfile"; exit 1) 21477 21478 mv -f "$cfgfile" "$ofile" || 21479 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21480 chmod +x "$ofile" 21481 21482 ;; 21483 21484 esac 21485done # for ac_tag 21486 21487 21488as_fn_exit 0 21489_ACEOF 21490ac_clean_files=$ac_clean_files_save 21491 21492test $ac_write_fail = 0 || 21493 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21494 21495 21496# configure is writing to config.log, and then calls config.status. 21497# config.status does its own redirection, appending to config.log. 21498# Unfortunately, on DOS this fails, as config.log is still kept open 21499# by configure, so config.status won't be able to write to it; its 21500# output is simply discarded. So we exec the FD to /dev/null, 21501# effectively closing config.log, so it can be properly (re)opened and 21502# appended to by config.status. When coming back to configure, we 21503# need to make the FD available again. 21504if test "$no_create" != yes; then 21505 ac_cs_success=: 21506 ac_config_status_args= 21507 test "$silent" = yes && 21508 ac_config_status_args="$ac_config_status_args --quiet" 21509 exec 5>/dev/null 21510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21511 exec 5>>config.log 21512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21513 # would make configure fail if this is the last instruction. 21514 $ac_cs_success || as_fn_exit 1 21515fi 21516if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21518$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21519fi 21520 21521