configure revision 13496ba1
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-intel 2.99.917. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-video-intel' 593PACKAGE_TARNAME='xf86-video-intel' 594PACKAGE_VERSION='2.99.917' 595PACKAGE_STRING='xf86-video-intel 2.99.917' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_config_libobj_dir=libobj 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640LIBEXEC_PATH 641PREFIX_PATH 642moduledir 643DRIVER_NAME 644LIBOBJS 645VALGRIND_FALSE 646VALGRIND_TRUE 647VALGRIND_LIBS 648VALGRIND_CFLAGS 649FULL_DEBUG_FALSE 650FULL_DEBUG_TRUE 651DEBUG_FALSE 652DEBUG_TRUE 653CLOCK_GETTIME_LIBS 654USE_ASYNC_SWAP_FALSE 655USE_ASYNC_SWAP_TRUE 656USE_CREATE2_FALSE 657USE_CREATE2_TRUE 658USE_RENDERNODE_FALSE 659USE_RENDERNODE_TRUE 660XVMC_FALSE 661XVMC_TRUE 662XVMCLIB_LIBS 663XVMCLIB_CFLAGS 664SNA_FALSE 665SNA_TRUE 666UXA_FALSE 667UXA_TRUE 668PRESENT_FALSE 669PRESENT_TRUE 670PRESENT_LIBS 671PRESENT_CFLAGS 672DRI3_FALSE 673DRI3_TRUE 674DRI2_FALSE 675DRI2_TRUE 676DRI3_LIBS 677DRI3_CFLAGS 678DRI_DRIVER_PATH 679DRI2_LIBS 680DRI2_CFLAGS 681DRI1_FALSE 682DRI1_TRUE 683DRI1_LIBS 684DRI1_CFLAGS 685UMS_FALSE 686UMS_TRUE 687KMS_FALSE 688KMS_TRUE 689XAA_FALSE 690XAA_TRUE 691DGA_FALSE 692DGA_TRUE 693XORG_LIBS 694XORG_CFLAGS 695DRMINTEL_LIBS 696DRMINTEL_CFLAGS 697PCIACCESS_LIBS 698PCIACCESS_CFLAGS 699DRM_LIBS 700DRM_CFLAGS 701BUILD_TOOLS_FALSE 702BUILD_TOOLS_TRUE 703IVO_LIBS 704IVO_CFLAGS 705IVO_EXTRA_LIBS 706IVO_EXTRA_CFLAGS 707X11_SHM_FALSE 708X11_SHM_TRUE 709X11_DRI3_FALSE 710X11_DRI3_TRUE 711X11_DRI3_LIBS 712X11_DRI3_CFLAGS 713HAVE_X11_FALSE 714HAVE_X11_TRUE 715X11_LIBS 716X11_CFLAGS 717UDEV_LIBS 718UDEV_CFLAGS 719HAVE_GEN4ASM_FALSE 720HAVE_GEN4ASM_TRUE 721INTEL_GEN4ASM 722GEN4ASM_LIBS 723GEN4ASM_CFLAGS 724HAVE_DOT_GIT_FALSE 725HAVE_DOT_GIT_TRUE 726BUILD_BACKLIGHT_HELPER_FALSE 727BUILD_BACKLIGHT_HELPER_TRUE 728OTOOL64 729OTOOL 730LIPO 731NMEDIT 732DSYMUTIL 733MANIFEST_TOOL 734RANLIB 735ac_ct_AR 736AR 737DLLTOOL 738OBJDUMP 739LN_S 740NM 741ac_ct_DUMPBIN 742DUMPBIN 743LD 744FGREP 745LIBTOOL 746NOWARNFLAGS 747MAN_SUBSTS 748XORG_MAN_PAGE 749ADMIN_MAN_DIR 750DRIVER_MAN_DIR 751MISC_MAN_DIR 752FILE_MAN_DIR 753LIB_MAN_DIR 754APP_MAN_DIR 755ADMIN_MAN_SUFFIX 756DRIVER_MAN_SUFFIX 757MISC_MAN_SUFFIX 758FILE_MAN_SUFFIX 759LIB_MAN_SUFFIX 760APP_MAN_SUFFIX 761SED 762host_os 763host_vendor 764host_cpu 765host 766build_os 767build_vendor 768build_cpu 769build 770INSTALL_CMD 771PKG_CONFIG_LIBDIR 772PKG_CONFIG_PATH 773PKG_CONFIG 774CHANGELOG_CMD 775STRICT_CFLAGS 776CWARNFLAGS 777BASE_CFLAGS 778EGREP 779GREP 780CPP 781am__fastdepCC_FALSE 782am__fastdepCC_TRUE 783CCDEPMODE 784am__nodep 785AMDEPBACKSLASH 786AMDEP_FALSE 787AMDEP_TRUE 788am__quote 789am__include 790DEPDIR 791OBJEXT 792EXEEXT 793ac_ct_CC 794CPPFLAGS 795LDFLAGS 796CFLAGS 797CC 798AM_BACKSLASH 799AM_DEFAULT_VERBOSITY 800AM_DEFAULT_V 801AM_V 802am__untar 803am__tar 804AMTAR 805am__leading_dot 806SET_MAKE 807AWK 808mkdir_p 809MKDIR_P 810INSTALL_STRIP_PROGRAM 811STRIP 812install_sh 813MAKEINFO 814AUTOHEADER 815AUTOMAKE 816AUTOCONF 817ACLOCAL 818VERSION 819PACKAGE 820CYGPATH_W 821am__isrc 822INSTALL_DATA 823INSTALL_SCRIPT 824INSTALL_PROGRAM 825target_alias 826host_alias 827build_alias 828LIBS 829ECHO_T 830ECHO_N 831ECHO_C 832DEFS 833mandir 834localedir 835libdir 836psdir 837pdfdir 838dvidir 839htmldir 840infodir 841docdir 842oldincludedir 843includedir 844localstatedir 845sharedstatedir 846sysconfdir 847datadir 848datarootdir 849libexecdir 850sbindir 851bindir 852program_transform_name 853prefix 854exec_prefix 855PACKAGE_URL 856PACKAGE_BUGREPORT 857PACKAGE_STRING 858PACKAGE_VERSION 859PACKAGE_TARNAME 860PACKAGE_NAME 861PATH_SEPARATOR 862SHELL' 863ac_subst_files='' 864ac_user_opts=' 865enable_option_checking 866enable_silent_rules 867enable_dependency_tracking 868enable_selective_werror 869enable_strict_compilation 870enable_static 871enable_shared 872with_pic 873enable_fast_install 874with_gnu_ld 875with_sysroot 876enable_libtool_lock 877enable_largefile 878enable_backlight 879enable_backlight_helper 880with_builderstring 881enable_gen4asm 882with_gen4asm 883enable_udev 884enable_tools 885with_xorg_module_dir 886enable_dri 887enable_dri1 888enable_dri2 889enable_dri3 890enable_xvmc 891enable_kms 892enable_ums 893enable_kms_only 894enable_ums_only 895enable_sna 896enable_uxa 897enable_xaa 898enable_dga 899with_default_accel 900enable_tear_free 901enable_rendernode 902enable_wc_mmap 903enable_create2 904enable_async_swap 905enable_debug 906enable_valgrind 907' 908 ac_precious_vars='build_alias 909host_alias 910target_alias 911CC 912CFLAGS 913LDFLAGS 914LIBS 915CPPFLAGS 916CPP 917PKG_CONFIG 918PKG_CONFIG_PATH 919PKG_CONFIG_LIBDIR 920GEN4ASM_CFLAGS 921GEN4ASM_LIBS 922UDEV_CFLAGS 923UDEV_LIBS 924X11_CFLAGS 925X11_LIBS 926X11_DRI3_CFLAGS 927X11_DRI3_LIBS 928IVO_EXTRA_CFLAGS 929IVO_EXTRA_LIBS 930IVO_CFLAGS 931IVO_LIBS 932DRM_CFLAGS 933DRM_LIBS 934PCIACCESS_CFLAGS 935PCIACCESS_LIBS 936DRMINTEL_CFLAGS 937DRMINTEL_LIBS 938XORG_CFLAGS 939XORG_LIBS 940DRI1_CFLAGS 941DRI1_LIBS 942DRI2_CFLAGS 943DRI2_LIBS 944DRI3_CFLAGS 945DRI3_LIBS 946PRESENT_CFLAGS 947PRESENT_LIBS 948XVMCLIB_CFLAGS 949XVMCLIB_LIBS 950VALGRIND_CFLAGS 951VALGRIND_LIBS' 952 953 954# Initialize some variables set by options. 955ac_init_help= 956ac_init_version=false 957ac_unrecognized_opts= 958ac_unrecognized_sep= 959# The variables have the same names as the options, with 960# dashes changed to underlines. 961cache_file=/dev/null 962exec_prefix=NONE 963no_create= 964no_recursion= 965prefix=NONE 966program_prefix=NONE 967program_suffix=NONE 968program_transform_name=s,x,x, 969silent= 970site= 971srcdir= 972verbose= 973x_includes=NONE 974x_libraries=NONE 975 976# Installation directory options. 977# These are left unexpanded so users can "make install exec_prefix=/foo" 978# and all the variables that are supposed to be based on exec_prefix 979# by default will actually change. 980# Use braces instead of parens because sh, perl, etc. also accept them. 981# (The list follows the same order as the GNU Coding Standards.) 982bindir='${exec_prefix}/bin' 983sbindir='${exec_prefix}/sbin' 984libexecdir='${exec_prefix}/libexec' 985datarootdir='${prefix}/share' 986datadir='${datarootdir}' 987sysconfdir='${prefix}/etc' 988sharedstatedir='${prefix}/com' 989localstatedir='${prefix}/var' 990includedir='${prefix}/include' 991oldincludedir='/usr/include' 992docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 993infodir='${datarootdir}/info' 994htmldir='${docdir}' 995dvidir='${docdir}' 996pdfdir='${docdir}' 997psdir='${docdir}' 998libdir='${exec_prefix}/lib' 999localedir='${datarootdir}/locale' 1000mandir='${datarootdir}/man' 1001 1002ac_prev= 1003ac_dashdash= 1004for ac_option 1005do 1006 # If the previous option needs an argument, assign it. 1007 if test -n "$ac_prev"; then 1008 eval $ac_prev=\$ac_option 1009 ac_prev= 1010 continue 1011 fi 1012 1013 case $ac_option in 1014 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1015 *=) ac_optarg= ;; 1016 *) ac_optarg=yes ;; 1017 esac 1018 1019 # Accept the important Cygnus configure options, so we can diagnose typos. 1020 1021 case $ac_dashdash$ac_option in 1022 --) 1023 ac_dashdash=yes ;; 1024 1025 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1026 ac_prev=bindir ;; 1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1028 bindir=$ac_optarg ;; 1029 1030 -build | --build | --buil | --bui | --bu) 1031 ac_prev=build_alias ;; 1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1033 build_alias=$ac_optarg ;; 1034 1035 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1037 ac_prev=cache_file ;; 1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1040 cache_file=$ac_optarg ;; 1041 1042 --config-cache | -C) 1043 cache_file=config.cache ;; 1044 1045 -datadir | --datadir | --datadi | --datad) 1046 ac_prev=datadir ;; 1047 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1048 datadir=$ac_optarg ;; 1049 1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1051 | --dataroo | --dataro | --datar) 1052 ac_prev=datarootdir ;; 1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1055 datarootdir=$ac_optarg ;; 1056 1057 -disable-* | --disable-*) 1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1059 # Reject names that are not valid shell variable names. 1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1061 as_fn_error $? "invalid feature name: $ac_useropt" 1062 ac_useropt_orig=$ac_useropt 1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1064 case $ac_user_opts in 1065 *" 1066"enable_$ac_useropt" 1067"*) ;; 1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1069 ac_unrecognized_sep=', ';; 1070 esac 1071 eval enable_$ac_useropt=no ;; 1072 1073 -docdir | --docdir | --docdi | --doc | --do) 1074 ac_prev=docdir ;; 1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1076 docdir=$ac_optarg ;; 1077 1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1079 ac_prev=dvidir ;; 1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1081 dvidir=$ac_optarg ;; 1082 1083 -enable-* | --enable-*) 1084 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1085 # Reject names that are not valid shell variable names. 1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1087 as_fn_error $? "invalid feature name: $ac_useropt" 1088 ac_useropt_orig=$ac_useropt 1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1090 case $ac_user_opts in 1091 *" 1092"enable_$ac_useropt" 1093"*) ;; 1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1095 ac_unrecognized_sep=', ';; 1096 esac 1097 eval enable_$ac_useropt=\$ac_optarg ;; 1098 1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1101 | --exec | --exe | --ex) 1102 ac_prev=exec_prefix ;; 1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1105 | --exec=* | --exe=* | --ex=*) 1106 exec_prefix=$ac_optarg ;; 1107 1108 -gas | --gas | --ga | --g) 1109 # Obsolete; use --with-gas. 1110 with_gas=yes ;; 1111 1112 -help | --help | --hel | --he | -h) 1113 ac_init_help=long ;; 1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1115 ac_init_help=recursive ;; 1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1117 ac_init_help=short ;; 1118 1119 -host | --host | --hos | --ho) 1120 ac_prev=host_alias ;; 1121 -host=* | --host=* | --hos=* | --ho=*) 1122 host_alias=$ac_optarg ;; 1123 1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1125 ac_prev=htmldir ;; 1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1127 | --ht=*) 1128 htmldir=$ac_optarg ;; 1129 1130 -includedir | --includedir | --includedi | --included | --include \ 1131 | --includ | --inclu | --incl | --inc) 1132 ac_prev=includedir ;; 1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1134 | --includ=* | --inclu=* | --incl=* | --inc=*) 1135 includedir=$ac_optarg ;; 1136 1137 -infodir | --infodir | --infodi | --infod | --info | --inf) 1138 ac_prev=infodir ;; 1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1140 infodir=$ac_optarg ;; 1141 1142 -libdir | --libdir | --libdi | --libd) 1143 ac_prev=libdir ;; 1144 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1145 libdir=$ac_optarg ;; 1146 1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1148 | --libexe | --libex | --libe) 1149 ac_prev=libexecdir ;; 1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1151 | --libexe=* | --libex=* | --libe=*) 1152 libexecdir=$ac_optarg ;; 1153 1154 -localedir | --localedir | --localedi | --localed | --locale) 1155 ac_prev=localedir ;; 1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1157 localedir=$ac_optarg ;; 1158 1159 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1160 | --localstate | --localstat | --localsta | --localst | --locals) 1161 ac_prev=localstatedir ;; 1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1164 localstatedir=$ac_optarg ;; 1165 1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1167 ac_prev=mandir ;; 1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1169 mandir=$ac_optarg ;; 1170 1171 -nfp | --nfp | --nf) 1172 # Obsolete; use --without-fp. 1173 with_fp=no ;; 1174 1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1176 | --no-cr | --no-c | -n) 1177 no_create=yes ;; 1178 1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1181 no_recursion=yes ;; 1182 1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1185 | --oldin | --oldi | --old | --ol | --o) 1186 ac_prev=oldincludedir ;; 1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1190 oldincludedir=$ac_optarg ;; 1191 1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1193 ac_prev=prefix ;; 1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1195 prefix=$ac_optarg ;; 1196 1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1198 | --program-pre | --program-pr | --program-p) 1199 ac_prev=program_prefix ;; 1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1202 program_prefix=$ac_optarg ;; 1203 1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1205 | --program-suf | --program-su | --program-s) 1206 ac_prev=program_suffix ;; 1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1209 program_suffix=$ac_optarg ;; 1210 1211 -program-transform-name | --program-transform-name \ 1212 | --program-transform-nam | --program-transform-na \ 1213 | --program-transform-n | --program-transform- \ 1214 | --program-transform | --program-transfor \ 1215 | --program-transfo | --program-transf \ 1216 | --program-trans | --program-tran \ 1217 | --progr-tra | --program-tr | --program-t) 1218 ac_prev=program_transform_name ;; 1219 -program-transform-name=* | --program-transform-name=* \ 1220 | --program-transform-nam=* | --program-transform-na=* \ 1221 | --program-transform-n=* | --program-transform-=* \ 1222 | --program-transform=* | --program-transfor=* \ 1223 | --program-transfo=* | --program-transf=* \ 1224 | --program-trans=* | --program-tran=* \ 1225 | --progr-tra=* | --program-tr=* | --program-t=*) 1226 program_transform_name=$ac_optarg ;; 1227 1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1229 ac_prev=pdfdir ;; 1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1231 pdfdir=$ac_optarg ;; 1232 1233 -psdir | --psdir | --psdi | --psd | --ps) 1234 ac_prev=psdir ;; 1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1236 psdir=$ac_optarg ;; 1237 1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1239 | -silent | --silent | --silen | --sile | --sil) 1240 silent=yes ;; 1241 1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1243 ac_prev=sbindir ;; 1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1245 | --sbi=* | --sb=*) 1246 sbindir=$ac_optarg ;; 1247 1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1250 | --sharedst | --shareds | --shared | --share | --shar \ 1251 | --sha | --sh) 1252 ac_prev=sharedstatedir ;; 1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1256 | --sha=* | --sh=*) 1257 sharedstatedir=$ac_optarg ;; 1258 1259 -site | --site | --sit) 1260 ac_prev=site ;; 1261 -site=* | --site=* | --sit=*) 1262 site=$ac_optarg ;; 1263 1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1265 ac_prev=srcdir ;; 1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1267 srcdir=$ac_optarg ;; 1268 1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1270 | --syscon | --sysco | --sysc | --sys | --sy) 1271 ac_prev=sysconfdir ;; 1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1274 sysconfdir=$ac_optarg ;; 1275 1276 -target | --target | --targe | --targ | --tar | --ta | --t) 1277 ac_prev=target_alias ;; 1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1279 target_alias=$ac_optarg ;; 1280 1281 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1282 verbose=yes ;; 1283 1284 -version | --version | --versio | --versi | --vers | -V) 1285 ac_init_version=: ;; 1286 1287 -with-* | --with-*) 1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1289 # Reject names that are not valid shell variable names. 1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1291 as_fn_error $? "invalid package name: $ac_useropt" 1292 ac_useropt_orig=$ac_useropt 1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1294 case $ac_user_opts in 1295 *" 1296"with_$ac_useropt" 1297"*) ;; 1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1299 ac_unrecognized_sep=', ';; 1300 esac 1301 eval with_$ac_useropt=\$ac_optarg ;; 1302 1303 -without-* | --without-*) 1304 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1305 # Reject names that are not valid shell variable names. 1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1307 as_fn_error $? "invalid package name: $ac_useropt" 1308 ac_useropt_orig=$ac_useropt 1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1310 case $ac_user_opts in 1311 *" 1312"with_$ac_useropt" 1313"*) ;; 1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1315 ac_unrecognized_sep=', ';; 1316 esac 1317 eval with_$ac_useropt=no ;; 1318 1319 --x) 1320 # Obsolete; use --with-x. 1321 with_x=yes ;; 1322 1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1324 | --x-incl | --x-inc | --x-in | --x-i) 1325 ac_prev=x_includes ;; 1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1328 x_includes=$ac_optarg ;; 1329 1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1332 ac_prev=x_libraries ;; 1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1335 x_libraries=$ac_optarg ;; 1336 1337 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1338Try \`$0 --help' for more information" 1339 ;; 1340 1341 *=*) 1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1343 # Reject names that are not valid shell variable names. 1344 case $ac_envvar in #( 1345 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1346 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1347 esac 1348 eval $ac_envvar=\$ac_optarg 1349 export $ac_envvar ;; 1350 1351 *) 1352 # FIXME: should be removed in autoconf 3.0. 1353 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1355 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1356 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1357 ;; 1358 1359 esac 1360done 1361 1362if test -n "$ac_prev"; then 1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1364 as_fn_error $? "missing argument to $ac_option" 1365fi 1366 1367if test -n "$ac_unrecognized_opts"; then 1368 case $enable_option_checking in 1369 no) ;; 1370 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1372 esac 1373fi 1374 1375# Check all directory arguments for consistency. 1376for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1377 datadir sysconfdir sharedstatedir localstatedir includedir \ 1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1379 libdir localedir mandir 1380do 1381 eval ac_val=\$$ac_var 1382 # Remove trailing slashes. 1383 case $ac_val in 1384 */ ) 1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1386 eval $ac_var=\$ac_val;; 1387 esac 1388 # Be sure to have absolute directory names. 1389 case $ac_val in 1390 [\\/$]* | ?:[\\/]* ) continue;; 1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1392 esac 1393 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1394done 1395 1396# There might be people who depend on the old broken behavior: `$host' 1397# used to hold the argument of --host etc. 1398# FIXME: To remove some day. 1399build=$build_alias 1400host=$host_alias 1401target=$target_alias 1402 1403# FIXME: To remove some day. 1404if test "x$host_alias" != x; then 1405 if test "x$build_alias" = x; then 1406 cross_compiling=maybe 1407 elif test "x$build_alias" != "x$host_alias"; then 1408 cross_compiling=yes 1409 fi 1410fi 1411 1412ac_tool_prefix= 1413test -n "$host_alias" && ac_tool_prefix=$host_alias- 1414 1415test "$silent" = yes && exec 6>/dev/null 1416 1417 1418ac_pwd=`pwd` && test -n "$ac_pwd" && 1419ac_ls_di=`ls -di .` && 1420ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1421 as_fn_error $? "working directory cannot be determined" 1422test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1423 as_fn_error $? "pwd does not report name of working directory" 1424 1425 1426# Find the source files, if location was not specified. 1427if test -z "$srcdir"; then 1428 ac_srcdir_defaulted=yes 1429 # Try the directory containing this script, then the parent directory. 1430 ac_confdir=`$as_dirname -- "$as_myself" || 1431$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1432 X"$as_myself" : 'X\(//\)[^/]' \| \ 1433 X"$as_myself" : 'X\(//\)$' \| \ 1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1435$as_echo X"$as_myself" | 1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1437 s//\1/ 1438 q 1439 } 1440 /^X\(\/\/\)[^/].*/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\/\)$/{ 1445 s//\1/ 1446 q 1447 } 1448 /^X\(\/\).*/{ 1449 s//\1/ 1450 q 1451 } 1452 s/.*/./; q'` 1453 srcdir=$ac_confdir 1454 if test ! -r "$srcdir/$ac_unique_file"; then 1455 srcdir=.. 1456 fi 1457else 1458 ac_srcdir_defaulted=no 1459fi 1460if test ! -r "$srcdir/$ac_unique_file"; then 1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1462 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1463fi 1464ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1465ac_abs_confdir=`( 1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1467 pwd)` 1468# When building in place, set srcdir=. 1469if test "$ac_abs_confdir" = "$ac_pwd"; then 1470 srcdir=. 1471fi 1472# Remove unnecessary trailing slashes from srcdir. 1473# Double slashes in file names in object file debugging info 1474# mess up M-x gdb in Emacs. 1475case $srcdir in 1476*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1477esac 1478for ac_var in $ac_precious_vars; do 1479 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1480 eval ac_env_${ac_var}_value=\$${ac_var} 1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1482 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1483done 1484 1485# 1486# Report the --help message. 1487# 1488if test "$ac_init_help" = "long"; then 1489 # Omit some internal or obsolete options to make the list less imposing. 1490 # This message is too long to be a string in the A/UX 3.1 sh. 1491 cat <<_ACEOF 1492\`configure' configures xf86-video-intel 2.99.917 to adapt to many kinds of systems. 1493 1494Usage: $0 [OPTION]... [VAR=VALUE]... 1495 1496To assign environment variables (e.g., CC, CFLAGS...), specify them as 1497VAR=VALUE. See below for descriptions of some of the useful variables. 1498 1499Defaults for the options are specified in brackets. 1500 1501Configuration: 1502 -h, --help display this help and exit 1503 --help=short display options specific to this package 1504 --help=recursive display the short help of all the included packages 1505 -V, --version display version information and exit 1506 -q, --quiet, --silent do not print \`checking ...' messages 1507 --cache-file=FILE cache test results in FILE [disabled] 1508 -C, --config-cache alias for \`--cache-file=config.cache' 1509 -n, --no-create do not create output files 1510 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1511 1512Installation directories: 1513 --prefix=PREFIX install architecture-independent files in PREFIX 1514 [$ac_default_prefix] 1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1516 [PREFIX] 1517 1518By default, \`make install' will install all the files in 1519\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1520an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1521for instance \`--prefix=\$HOME'. 1522 1523For better control, use the options below. 1524 1525Fine tuning of the installation directories: 1526 --bindir=DIR user executables [EPREFIX/bin] 1527 --sbindir=DIR system admin executables [EPREFIX/sbin] 1528 --libexecdir=DIR program executables [EPREFIX/libexec] 1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1532 --libdir=DIR object code libraries [EPREFIX/lib] 1533 --includedir=DIR C header files [PREFIX/include] 1534 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1537 --infodir=DIR info documentation [DATAROOTDIR/info] 1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1539 --mandir=DIR man documentation [DATAROOTDIR/man] 1540 --docdir=DIR documentation root 1541 [DATAROOTDIR/doc/xf86-video-intel] 1542 --htmldir=DIR html documentation [DOCDIR] 1543 --dvidir=DIR dvi documentation [DOCDIR] 1544 --pdfdir=DIR pdf documentation [DOCDIR] 1545 --psdir=DIR ps documentation [DOCDIR] 1546_ACEOF 1547 1548 cat <<\_ACEOF 1549 1550Program names: 1551 --program-prefix=PREFIX prepend PREFIX to installed program names 1552 --program-suffix=SUFFIX append SUFFIX to installed program names 1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1554 1555System types: 1556 --build=BUILD configure for building on BUILD [guessed] 1557 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1558_ACEOF 1559fi 1560 1561if test -n "$ac_init_help"; then 1562 case $ac_init_help in 1563 short | recursive ) echo "Configuration of xf86-video-intel 2.99.917:";; 1564 esac 1565 cat <<\_ACEOF 1566 1567Optional Features: 1568 --disable-option-checking ignore unrecognized --enable/--with options 1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1571 --enable-silent-rules less verbose build output (undo: "make V=1") 1572 --disable-silent-rules verbose build output (undo: "make V=0") 1573 --enable-dependency-tracking 1574 do not reject slow dependency extractors 1575 --disable-dependency-tracking 1576 speeds up one-time build 1577 --disable-selective-werror 1578 Turn off selective compiler errors. (default: 1579 enabled) 1580 --enable-strict-compilation 1581 Enable all warnings from compiler and make them 1582 errors (default: disabled) 1583 --enable-static[=PKGS] build static libraries [default=no] 1584 --enable-shared[=PKGS] build shared libraries [default=yes] 1585 --enable-fast-install[=PKGS] 1586 optimize for fast installation [default=yes] 1587 --disable-libtool-lock avoid locking (might break parallel builds) 1588 --disable-largefile omit support for large files 1589 --disable-backlight Enable control over the backlight [default=yes] 1590 --disable-backlight-helper 1591 Enable building the backlight helper executable for 1592 running X under a normal user [default=auto] 1593 --enable-gen4asm Enable rebuilding the gen4 assembly files 1594 [default=no] 1595 --disable-udev Disable udev-based monitor hotplug detection 1596 [default=auto] 1597 --disable-tools Enable building and installing the miscellaneous 1598 tools [default=auto] 1599 --disable-dri Disable DRI support [[default=auto]] 1600 --disable-dri1 Disable DRI1 support [[default=yes]] 1601 --disable-dri2 Disable DRI2 support [[default=yes]] 1602 --enable-dri3 Enable DRI3 support [[default=no]] 1603 --disable-xvmc Disable XvMC support [[default=yes]] 1604 --enable-kms Assume KMS support [[default=yes]] 1605 --enable-ums Assume UMS support [[default=auto]] 1606 --enable-kms-only Only assume KMS support (no UMS) [[default=no]] 1607 --enable-ums-only Only assume UMS support (no KMS) [[default=no]] 1608 --enable-sna Enable SandyBridge\'s New Acceleration (SNA) 1609 [default=auto] 1610 --enable-uxa Enable Unified Acceleration Architecture (UXA) 1611 [default=auto] 1612 --enable-xaa Enable legacy X Acceleration Architecture (XAA) for 1613 i810 chipsets [default=auto] 1614 --enable-dga Enable legacy Direct Graphics Access (DGA) for i810 1615 chipsets [default=auto] 1616 --enable-tear-free Enable use of TearFree by default [default=no] 1617 --enable-rendernode Enable use of render nodes (experimental) 1618 [default=no] 1619 --enable-wc-mmap Enable use of WriteCombining mmaps [default=no] 1620 --enable-create2 Enable use of create2 ioctl (experimental) 1621 [default=no] 1622 --enable-async-swap Enable use of asynchronous swaps (experimental) 1623 [default=no] 1624 --enable-debug Enables internal debugging [default=no] 1625 --enable-valgrind Enables valgrindified ioctls for debugging 1626 [default=no] 1627 1628Optional Packages: 1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1631 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1632 both] 1633 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1634 --with-sysroot=DIR Search for dependent libraries within DIR 1635 (or the compiler's sysroot if not specified). 1636 --with-builderstring=BUILDERSTRING 1637 Additional builder string (default: use git 1638 describe) 1639 --with-gen4asm=PATH Path to intel-gen4asm binary 1640 --with-xorg-module-dir=DIR 1641 Default xorg module directory 1642 [[default=$libdir/xorg/modules]] 1643 --with-default-accel Select the default acceleration method out of none, 1644 sna, or uxa [default is sna if enabled, otherwise 1645 uxa] 1646 1647Some influential environment variables: 1648 CC C compiler command 1649 CFLAGS C compiler flags 1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1651 nonstandard directory <lib dir> 1652 LIBS libraries to pass to the linker, e.g. -l<library> 1653 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1654 you have headers in a nonstandard directory <include dir> 1655 CPP C preprocessor 1656 PKG_CONFIG path to pkg-config utility 1657 PKG_CONFIG_PATH 1658 directories to add to pkg-config's search path 1659 PKG_CONFIG_LIBDIR 1660 path overriding pkg-config's built-in search path 1661 GEN4ASM_CFLAGS 1662 C compiler flags for GEN4ASM, overriding pkg-config 1663 GEN4ASM_LIBS 1664 linker flags for GEN4ASM, overriding pkg-config 1665 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 1666 UDEV_LIBS linker flags for UDEV, overriding pkg-config 1667 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1668 X11_LIBS linker flags for X11, overriding pkg-config 1669 X11_DRI3_CFLAGS 1670 C compiler flags for X11_DRI3, overriding pkg-config 1671 X11_DRI3_LIBS 1672 linker flags for X11_DRI3, overriding pkg-config 1673 IVO_EXTRA_CFLAGS 1674 C compiler flags for IVO_EXTRA, overriding pkg-config 1675 IVO_EXTRA_LIBS 1676 linker flags for IVO_EXTRA, overriding pkg-config 1677 IVO_CFLAGS C compiler flags for IVO, overriding pkg-config 1678 IVO_LIBS linker flags for IVO, overriding pkg-config 1679 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config 1680 DRM_LIBS linker flags for DRM, overriding pkg-config 1681 PCIACCESS_CFLAGS 1682 C compiler flags for PCIACCESS, overriding pkg-config 1683 PCIACCESS_LIBS 1684 linker flags for PCIACCESS, overriding pkg-config 1685 DRMINTEL_CFLAGS 1686 C compiler flags for DRMINTEL, overriding pkg-config 1687 DRMINTEL_LIBS 1688 linker flags for DRMINTEL, overriding pkg-config 1689 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1690 XORG_LIBS linker flags for XORG, overriding pkg-config 1691 DRI1_CFLAGS C compiler flags for DRI1, overriding pkg-config 1692 DRI1_LIBS linker flags for DRI1, overriding pkg-config 1693 DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config 1694 DRI2_LIBS linker flags for DRI2, overriding pkg-config 1695 DRI3_CFLAGS C compiler flags for DRI3, overriding pkg-config 1696 DRI3_LIBS linker flags for DRI3, overriding pkg-config 1697 PRESENT_CFLAGS 1698 C compiler flags for PRESENT, overriding pkg-config 1699 PRESENT_LIBS 1700 linker flags for PRESENT, overriding pkg-config 1701 XVMCLIB_CFLAGS 1702 C compiler flags for XVMCLIB, overriding pkg-config 1703 XVMCLIB_LIBS 1704 linker flags for XVMCLIB, overriding pkg-config 1705 VALGRIND_CFLAGS 1706 C compiler flags for VALGRIND, overriding pkg-config 1707 VALGRIND_LIBS 1708 linker flags for VALGRIND, overriding pkg-config 1709 1710Use these variables to override the choices made by `configure' or to help 1711it to find libraries and programs with nonstandard names/locations. 1712 1713Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1714_ACEOF 1715ac_status=$? 1716fi 1717 1718if test "$ac_init_help" = "recursive"; then 1719 # If there are subdirs, report their specific --help. 1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1721 test -d "$ac_dir" || 1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1723 continue 1724 ac_builddir=. 1725 1726case "$ac_dir" in 1727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1728*) 1729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1730 # A ".." for each directory in $ac_dir_suffix. 1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1732 case $ac_top_builddir_sub in 1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1735 esac ;; 1736esac 1737ac_abs_top_builddir=$ac_pwd 1738ac_abs_builddir=$ac_pwd$ac_dir_suffix 1739# for backward compatibility: 1740ac_top_builddir=$ac_top_build_prefix 1741 1742case $srcdir in 1743 .) # We are building in place. 1744 ac_srcdir=. 1745 ac_top_srcdir=$ac_top_builddir_sub 1746 ac_abs_top_srcdir=$ac_pwd ;; 1747 [\\/]* | ?:[\\/]* ) # Absolute name. 1748 ac_srcdir=$srcdir$ac_dir_suffix; 1749 ac_top_srcdir=$srcdir 1750 ac_abs_top_srcdir=$srcdir ;; 1751 *) # Relative name. 1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1753 ac_top_srcdir=$ac_top_build_prefix$srcdir 1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1755esac 1756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1757 1758 cd "$ac_dir" || { ac_status=$?; continue; } 1759 # Check for guested configure. 1760 if test -f "$ac_srcdir/configure.gnu"; then 1761 echo && 1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1763 elif test -f "$ac_srcdir/configure"; then 1764 echo && 1765 $SHELL "$ac_srcdir/configure" --help=recursive 1766 else 1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1768 fi || ac_status=$? 1769 cd "$ac_pwd" || { ac_status=$?; break; } 1770 done 1771fi 1772 1773test -n "$ac_init_help" && exit $ac_status 1774if $ac_init_version; then 1775 cat <<\_ACEOF 1776xf86-video-intel configure 2.99.917 1777generated by GNU Autoconf 2.69 1778 1779Copyright (C) 2012 Free Software Foundation, Inc. 1780This configure script is free software; the Free Software Foundation 1781gives unlimited permission to copy, distribute and modify it. 1782_ACEOF 1783 exit 1784fi 1785 1786## ------------------------ ## 1787## Autoconf initialization. ## 1788## ------------------------ ## 1789 1790# ac_fn_c_try_compile LINENO 1791# -------------------------- 1792# Try to compile conftest.$ac_ext, and return whether this succeeded. 1793ac_fn_c_try_compile () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 rm -f conftest.$ac_objext 1797 if { { ac_try="$ac_compile" 1798case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_compile") 2>conftest.err 1805 ac_status=$? 1806 if test -s conftest.err; then 1807 grep -v '^ *+' conftest.err >conftest.er1 1808 cat conftest.er1 >&5 1809 mv -f conftest.er1 conftest.err 1810 fi 1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1812 test $ac_status = 0; } && { 1813 test -z "$ac_c_werror_flag" || 1814 test ! -s conftest.err 1815 } && test -s conftest.$ac_objext; then : 1816 ac_retval=0 1817else 1818 $as_echo "$as_me: failed program was:" >&5 1819sed 's/^/| /' conftest.$ac_ext >&5 1820 1821 ac_retval=1 1822fi 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 as_fn_set_status $ac_retval 1825 1826} # ac_fn_c_try_compile 1827 1828# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1829# --------------------------------------------- 1830# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1831# accordingly. 1832ac_fn_c_check_decl () 1833{ 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 as_decl_name=`echo $2|sed 's/ *(.*//'` 1836 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1838$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1839if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844$4 1845int 1846main () 1847{ 1848#ifndef $as_decl_name 1849#ifdef __cplusplus 1850 (void) $as_decl_use; 1851#else 1852 (void) $as_decl_name; 1853#endif 1854#endif 1855 1856 ; 1857 return 0; 1858} 1859_ACEOF 1860if ac_fn_c_try_compile "$LINENO"; then : 1861 eval "$3=yes" 1862else 1863 eval "$3=no" 1864fi 1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866fi 1867eval ac_res=\$$3 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869$as_echo "$ac_res" >&6; } 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872} # ac_fn_c_check_decl 1873 1874# ac_fn_c_try_cpp LINENO 1875# ---------------------- 1876# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1877ac_fn_c_try_cpp () 1878{ 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 if { { ac_try="$ac_cpp conftest.$ac_ext" 1881case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886$as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } > conftest.i && { 1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1897 test ! -s conftest.err 1898 }; then : 1899 ac_retval=0 1900else 1901 $as_echo "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=1 1905fi 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_c_try_cpp 1910 1911# ac_fn_c_try_run LINENO 1912# ---------------------- 1913# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1914# that executables *can* be run. 1915ac_fn_c_try_run () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 if { { ac_try="$ac_link" 1919case "(($ac_try" in 1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1921 *) ac_try_echo=$ac_try;; 1922esac 1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1924$as_echo "$ac_try_echo"; } >&5 1925 (eval "$ac_link") 2>&5 1926 ac_status=$? 1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1928 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1929 { { case "(($ac_try" in 1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1931 *) ac_try_echo=$ac_try;; 1932esac 1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1934$as_echo "$ac_try_echo"; } >&5 1935 (eval "$ac_try") 2>&5 1936 ac_status=$? 1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1938 test $ac_status = 0; }; }; then : 1939 ac_retval=0 1940else 1941 $as_echo "$as_me: program exited with status $ac_status" >&5 1942 $as_echo "$as_me: failed program was:" >&5 1943sed 's/^/| /' conftest.$ac_ext >&5 1944 1945 ac_retval=$ac_status 1946fi 1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1949 as_fn_set_status $ac_retval 1950 1951} # ac_fn_c_try_run 1952 1953# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1954# ------------------------------------------------------- 1955# Tests whether HEADER exists and can be compiled using the include files in 1956# INCLUDES, setting the cache variable VAR accordingly. 1957ac_fn_c_check_header_compile () 1958{ 1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1961$as_echo_n "checking for $2... " >&6; } 1962if eval \${$3+:} false; then : 1963 $as_echo_n "(cached) " >&6 1964else 1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1966/* end confdefs.h. */ 1967$4 1968#include <$2> 1969_ACEOF 1970if ac_fn_c_try_compile "$LINENO"; then : 1971 eval "$3=yes" 1972else 1973 eval "$3=no" 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976fi 1977eval ac_res=\$$3 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1979$as_echo "$ac_res" >&6; } 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 1982} # ac_fn_c_check_header_compile 1983 1984# ac_fn_c_try_link LINENO 1985# ----------------------- 1986# Try to link conftest.$ac_ext, and return whether this succeeded. 1987ac_fn_c_try_link () 1988{ 1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1990 rm -f conftest.$ac_objext conftest$ac_exeext 1991 if { { ac_try="$ac_link" 1992case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995esac 1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1997$as_echo "$ac_try_echo"; } >&5 1998 (eval "$ac_link") 2>conftest.err 1999 ac_status=$? 2000 if test -s conftest.err; then 2001 grep -v '^ *+' conftest.err >conftest.er1 2002 cat conftest.er1 >&5 2003 mv -f conftest.er1 conftest.err 2004 fi 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; } && { 2007 test -z "$ac_c_werror_flag" || 2008 test ! -s conftest.err 2009 } && test -s conftest$ac_exeext && { 2010 test "$cross_compiling" = yes || 2011 test -x conftest$ac_exeext 2012 }; then : 2013 ac_retval=0 2014else 2015 $as_echo "$as_me: failed program was:" >&5 2016sed 's/^/| /' conftest.$ac_ext >&5 2017 2018 ac_retval=1 2019fi 2020 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2021 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2022 # interfere with the next link command; also delete a directory that is 2023 # left behind by Apple's compiler. We do this before executing the actions. 2024 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 as_fn_set_status $ac_retval 2027 2028} # ac_fn_c_try_link 2029 2030# ac_fn_c_check_func LINENO FUNC VAR 2031# ---------------------------------- 2032# Tests whether FUNC exists, setting the cache variable VAR accordingly 2033ac_fn_c_check_func () 2034{ 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2037$as_echo_n "checking for $2... " >&6; } 2038if eval \${$3+:} false; then : 2039 $as_echo_n "(cached) " >&6 2040else 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2045#define $2 innocuous_$2 2046 2047/* System header to define __stub macros and hopefully few prototypes, 2048 which can conflict with char $2 (); below. 2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2050 <limits.h> exists even on freestanding compilers. */ 2051 2052#ifdef __STDC__ 2053# include <limits.h> 2054#else 2055# include <assert.h> 2056#endif 2057 2058#undef $2 2059 2060/* Override any GCC internal prototype to avoid an error. 2061 Use char because int might match the return type of a GCC 2062 builtin and then its argument prototype would still apply. */ 2063#ifdef __cplusplus 2064extern "C" 2065#endif 2066char $2 (); 2067/* The GNU C library defines this for functions which it implements 2068 to always fail with ENOSYS. Some functions are actually named 2069 something starting with __ and the normal name is an alias. */ 2070#if defined __stub_$2 || defined __stub___$2 2071choke me 2072#endif 2073 2074int 2075main () 2076{ 2077return $2 (); 2078 ; 2079 return 0; 2080} 2081_ACEOF 2082if ac_fn_c_try_link "$LINENO"; then : 2083 eval "$3=yes" 2084else 2085 eval "$3=no" 2086fi 2087rm -f core conftest.err conftest.$ac_objext \ 2088 conftest$ac_exeext conftest.$ac_ext 2089fi 2090eval ac_res=\$$3 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2092$as_echo "$ac_res" >&6; } 2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2094 2095} # ac_fn_c_check_func 2096 2097# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2098# ------------------------------------------------------- 2099# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2100# the include files in INCLUDES and setting the cache variable VAR 2101# accordingly. 2102ac_fn_c_check_header_mongrel () 2103{ 2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2105 if eval \${$3+:} false; then : 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2107$as_echo_n "checking for $2... " >&6; } 2108if eval \${$3+:} false; then : 2109 $as_echo_n "(cached) " >&6 2110fi 2111eval ac_res=\$$3 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2113$as_echo "$ac_res" >&6; } 2114else 2115 # Is the header compilable? 2116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2117$as_echo_n "checking $2 usability... " >&6; } 2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119/* end confdefs.h. */ 2120$4 2121#include <$2> 2122_ACEOF 2123if ac_fn_c_try_compile "$LINENO"; then : 2124 ac_header_compiler=yes 2125else 2126 ac_header_compiler=no 2127fi 2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2130$as_echo "$ac_header_compiler" >&6; } 2131 2132# Is the header present? 2133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2134$as_echo_n "checking $2 presence... " >&6; } 2135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2136/* end confdefs.h. */ 2137#include <$2> 2138_ACEOF 2139if ac_fn_c_try_cpp "$LINENO"; then : 2140 ac_header_preproc=yes 2141else 2142 ac_header_preproc=no 2143fi 2144rm -f conftest.err conftest.i conftest.$ac_ext 2145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2146$as_echo "$ac_header_preproc" >&6; } 2147 2148# So? What about this header? 2149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2150 yes:no: ) 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2152$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2154$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2155 ;; 2156 no:yes:* ) 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2158$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2160$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2162$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2164$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2166$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2167( $as_echo "## ---------------------------------------------------------------------- ## 2168## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 2169## ---------------------------------------------------------------------- ##" 2170 ) | sed "s/^/$as_me: WARNING: /" >&2 2171 ;; 2172esac 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2174$as_echo_n "checking for $2... " >&6; } 2175if eval \${$3+:} false; then : 2176 $as_echo_n "(cached) " >&6 2177else 2178 eval "$3=\$ac_header_compiler" 2179fi 2180eval ac_res=\$$3 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2182$as_echo "$ac_res" >&6; } 2183fi 2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2185 2186} # ac_fn_c_check_header_mongrel 2187cat >config.log <<_ACEOF 2188This file contains any messages produced by compilers while 2189running configure, to aid debugging if configure makes a mistake. 2190 2191It was created by xf86-video-intel $as_me 2.99.917, which was 2192generated by GNU Autoconf 2.69. Invocation command line was 2193 2194 $ $0 $@ 2195 2196_ACEOF 2197exec 5>>config.log 2198{ 2199cat <<_ASUNAME 2200## --------- ## 2201## Platform. ## 2202## --------- ## 2203 2204hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2205uname -m = `(uname -m) 2>/dev/null || echo unknown` 2206uname -r = `(uname -r) 2>/dev/null || echo unknown` 2207uname -s = `(uname -s) 2>/dev/null || echo unknown` 2208uname -v = `(uname -v) 2>/dev/null || echo unknown` 2209 2210/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2211/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2212 2213/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2214/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2215/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2216/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2217/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2218/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2219/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2220 2221_ASUNAME 2222 2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2224for as_dir in $PATH 2225do 2226 IFS=$as_save_IFS 2227 test -z "$as_dir" && as_dir=. 2228 $as_echo "PATH: $as_dir" 2229 done 2230IFS=$as_save_IFS 2231 2232} >&5 2233 2234cat >&5 <<_ACEOF 2235 2236 2237## ----------- ## 2238## Core tests. ## 2239## ----------- ## 2240 2241_ACEOF 2242 2243 2244# Keep a trace of the command line. 2245# Strip out --no-create and --no-recursion so they do not pile up. 2246# Strip out --silent because we don't want to record it for future runs. 2247# Also quote any args containing shell meta-characters. 2248# Make two passes to allow for proper duplicate-argument suppression. 2249ac_configure_args= 2250ac_configure_args0= 2251ac_configure_args1= 2252ac_must_keep_next=false 2253for ac_pass in 1 2 2254do 2255 for ac_arg 2256 do 2257 case $ac_arg in 2258 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2260 | -silent | --silent | --silen | --sile | --sil) 2261 continue ;; 2262 *\'*) 2263 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2264 esac 2265 case $ac_pass in 2266 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2267 2) 2268 as_fn_append ac_configure_args1 " '$ac_arg'" 2269 if test $ac_must_keep_next = true; then 2270 ac_must_keep_next=false # Got value, back to normal. 2271 else 2272 case $ac_arg in 2273 *=* | --config-cache | -C | -disable-* | --disable-* \ 2274 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2275 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2276 | -with-* | --with-* | -without-* | --without-* | --x) 2277 case "$ac_configure_args0 " in 2278 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2279 esac 2280 ;; 2281 -* ) ac_must_keep_next=true ;; 2282 esac 2283 fi 2284 as_fn_append ac_configure_args " '$ac_arg'" 2285 ;; 2286 esac 2287 done 2288done 2289{ ac_configure_args0=; unset ac_configure_args0;} 2290{ ac_configure_args1=; unset ac_configure_args1;} 2291 2292# When interrupted or exit'd, cleanup temporary files, and complete 2293# config.log. We remove comments because anyway the quotes in there 2294# would cause problems or look ugly. 2295# WARNING: Use '\'' to represent an apostrophe within the trap. 2296# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2297trap 'exit_status=$? 2298 # Save into config.log some information that might help in debugging. 2299 { 2300 echo 2301 2302 $as_echo "## ---------------- ## 2303## Cache variables. ## 2304## ---------------- ##" 2305 echo 2306 # The following way of writing the cache mishandles newlines in values, 2307( 2308 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2309 eval ac_val=\$$ac_var 2310 case $ac_val in #( 2311 *${as_nl}*) 2312 case $ac_var in #( 2313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2314$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2315 esac 2316 case $ac_var in #( 2317 _ | IFS | as_nl) ;; #( 2318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2319 *) { eval $ac_var=; unset $ac_var;} ;; 2320 esac ;; 2321 esac 2322 done 2323 (set) 2>&1 | 2324 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2325 *${as_nl}ac_space=\ *) 2326 sed -n \ 2327 "s/'\''/'\''\\\\'\'''\''/g; 2328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2329 ;; #( 2330 *) 2331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2332 ;; 2333 esac | 2334 sort 2335) 2336 echo 2337 2338 $as_echo "## ----------------- ## 2339## Output variables. ## 2340## ----------------- ##" 2341 echo 2342 for ac_var in $ac_subst_vars 2343 do 2344 eval ac_val=\$$ac_var 2345 case $ac_val in 2346 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2347 esac 2348 $as_echo "$ac_var='\''$ac_val'\''" 2349 done | sort 2350 echo 2351 2352 if test -n "$ac_subst_files"; then 2353 $as_echo "## ------------------- ## 2354## File substitutions. ## 2355## ------------------- ##" 2356 echo 2357 for ac_var in $ac_subst_files 2358 do 2359 eval ac_val=\$$ac_var 2360 case $ac_val in 2361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2362 esac 2363 $as_echo "$ac_var='\''$ac_val'\''" 2364 done | sort 2365 echo 2366 fi 2367 2368 if test -s confdefs.h; then 2369 $as_echo "## ----------- ## 2370## confdefs.h. ## 2371## ----------- ##" 2372 echo 2373 cat confdefs.h 2374 echo 2375 fi 2376 test "$ac_signal" != 0 && 2377 $as_echo "$as_me: caught signal $ac_signal" 2378 $as_echo "$as_me: exit $exit_status" 2379 } >&5 2380 rm -f core *.core core.conftest.* && 2381 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2382 exit $exit_status 2383' 0 2384for ac_signal in 1 2 13 15; do 2385 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2386done 2387ac_signal=0 2388 2389# confdefs.h avoids OS command line length limits that DEFS can exceed. 2390rm -f -r conftest* confdefs.h 2391 2392$as_echo "/* confdefs.h */" > confdefs.h 2393 2394# Predefined preprocessor variables. 2395 2396cat >>confdefs.h <<_ACEOF 2397#define PACKAGE_NAME "$PACKAGE_NAME" 2398_ACEOF 2399 2400cat >>confdefs.h <<_ACEOF 2401#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2402_ACEOF 2403 2404cat >>confdefs.h <<_ACEOF 2405#define PACKAGE_VERSION "$PACKAGE_VERSION" 2406_ACEOF 2407 2408cat >>confdefs.h <<_ACEOF 2409#define PACKAGE_STRING "$PACKAGE_STRING" 2410_ACEOF 2411 2412cat >>confdefs.h <<_ACEOF 2413#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2414_ACEOF 2415 2416cat >>confdefs.h <<_ACEOF 2417#define PACKAGE_URL "$PACKAGE_URL" 2418_ACEOF 2419 2420 2421# Let the site file select an alternate cache file if it wants to. 2422# Prefer an explicitly selected file to automatically selected ones. 2423ac_site_file1=NONE 2424ac_site_file2=NONE 2425if test -n "$CONFIG_SITE"; then 2426 # We do not want a PATH search for config.site. 2427 case $CONFIG_SITE in #(( 2428 -*) ac_site_file1=./$CONFIG_SITE;; 2429 */*) ac_site_file1=$CONFIG_SITE;; 2430 *) ac_site_file1=./$CONFIG_SITE;; 2431 esac 2432elif test "x$prefix" != xNONE; then 2433 ac_site_file1=$prefix/share/config.site 2434 ac_site_file2=$prefix/etc/config.site 2435else 2436 ac_site_file1=$ac_default_prefix/share/config.site 2437 ac_site_file2=$ac_default_prefix/etc/config.site 2438fi 2439for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2440do 2441 test "x$ac_site_file" = xNONE && continue 2442 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2444$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2445 sed 's/^/| /' "$ac_site_file" >&5 2446 . "$ac_site_file" \ 2447 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2449as_fn_error $? "failed to load site script $ac_site_file 2450See \`config.log' for more details" "$LINENO" 5; } 2451 fi 2452done 2453 2454if test -r "$cache_file"; then 2455 # Some versions of bash will fail to source /dev/null (special files 2456 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2457 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2459$as_echo "$as_me: loading cache $cache_file" >&6;} 2460 case $cache_file in 2461 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2462 *) . "./$cache_file";; 2463 esac 2464 fi 2465else 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2467$as_echo "$as_me: creating cache $cache_file" >&6;} 2468 >$cache_file 2469fi 2470 2471# Check that the precious variables saved in the cache have kept the same 2472# value. 2473ac_cache_corrupted=false 2474for ac_var in $ac_precious_vars; do 2475 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2476 eval ac_new_set=\$ac_env_${ac_var}_set 2477 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2478 eval ac_new_val=\$ac_env_${ac_var}_value 2479 case $ac_old_set,$ac_new_set in 2480 set,) 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2482$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2483 ac_cache_corrupted=: ;; 2484 ,set) 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2486$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2487 ac_cache_corrupted=: ;; 2488 ,);; 2489 *) 2490 if test "x$ac_old_val" != "x$ac_new_val"; then 2491 # differences in whitespace do not lead to failure. 2492 ac_old_val_w=`echo x $ac_old_val` 2493 ac_new_val_w=`echo x $ac_new_val` 2494 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2496$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2497 ac_cache_corrupted=: 2498 else 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2500$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2501 eval $ac_var=\$ac_old_val 2502 fi 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2504$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2506$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2507 fi;; 2508 esac 2509 # Pass precious variables to config.status. 2510 if test "$ac_new_set" = set; then 2511 case $ac_new_val in 2512 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2513 *) ac_arg=$ac_var=$ac_new_val ;; 2514 esac 2515 case " $ac_configure_args " in 2516 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2517 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2518 esac 2519 fi 2520done 2521if $ac_cache_corrupted; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2525$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2526 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2527fi 2528## -------------------- ## 2529## Main body of script. ## 2530## -------------------- ## 2531 2532ac_ext=c 2533ac_cpp='$CPP $CPPFLAGS' 2534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2536ac_compiler_gnu=$ac_cv_c_compiler_gnu 2537 2538 2539 2540ac_config_headers="$ac_config_headers config.h" 2541 2542 2543ac_aux_dir= 2544for ac_dir in . "$srcdir"/.; do 2545 if test -f "$ac_dir/install-sh"; then 2546 ac_aux_dir=$ac_dir 2547 ac_install_sh="$ac_aux_dir/install-sh -c" 2548 break 2549 elif test -f "$ac_dir/install.sh"; then 2550 ac_aux_dir=$ac_dir 2551 ac_install_sh="$ac_aux_dir/install.sh -c" 2552 break 2553 elif test -f "$ac_dir/shtool"; then 2554 ac_aux_dir=$ac_dir 2555 ac_install_sh="$ac_aux_dir/shtool install -c" 2556 break 2557 fi 2558done 2559if test -z "$ac_aux_dir"; then 2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2561fi 2562 2563# These three variables are undocumented and unsupported, 2564# and are intended to be withdrawn in a future Autoconf release. 2565# They can cause serious problems if a builder's source tree is in a directory 2566# whose full name contains unusual characters. 2567ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2568ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2569ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2570 2571 2572 2573# Initialize Automake 2574am__api_version='1.14' 2575 2576# Find a good install program. We prefer a C program (faster), 2577# so one script is as good as another. But avoid the broken or 2578# incompatible versions: 2579# SysV /etc/install, /usr/sbin/install 2580# SunOS /usr/etc/install 2581# IRIX /sbin/install 2582# AIX /bin/install 2583# AmigaOS /C/install, which installs bootblocks on floppy discs 2584# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2585# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2586# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2587# OS/2's system install, which has a completely different semantic 2588# ./install, which can be erroneously created by make from ./install.sh. 2589# Reject install programs that cannot install multiple files. 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2591$as_echo_n "checking for a BSD-compatible install... " >&6; } 2592if test -z "$INSTALL"; then 2593if ${ac_cv_path_install+:} false; then : 2594 $as_echo_n "(cached) " >&6 2595else 2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597for as_dir in $PATH 2598do 2599 IFS=$as_save_IFS 2600 test -z "$as_dir" && as_dir=. 2601 # Account for people who put trailing slashes in PATH elements. 2602case $as_dir/ in #(( 2603 ./ | .// | /[cC]/* | \ 2604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2605 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2606 /usr/ucb/* ) ;; 2607 *) 2608 # OSF1 and SCO ODT 3.0 have their own names for install. 2609 # Don't use installbsd from OSF since it installs stuff as root 2610 # by default. 2611 for ac_prog in ginstall scoinst install; do 2612 for ac_exec_ext in '' $ac_executable_extensions; do 2613 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2614 if test $ac_prog = install && 2615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2616 # AIX install. It has an incompatible calling convention. 2617 : 2618 elif test $ac_prog = install && 2619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2620 # program-specific install script used by HP pwplus--don't use. 2621 : 2622 else 2623 rm -rf conftest.one conftest.two conftest.dir 2624 echo one > conftest.one 2625 echo two > conftest.two 2626 mkdir conftest.dir 2627 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2628 test -s conftest.one && test -s conftest.two && 2629 test -s conftest.dir/conftest.one && 2630 test -s conftest.dir/conftest.two 2631 then 2632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2633 break 3 2634 fi 2635 fi 2636 fi 2637 done 2638 done 2639 ;; 2640esac 2641 2642 done 2643IFS=$as_save_IFS 2644 2645rm -rf conftest.one conftest.two conftest.dir 2646 2647fi 2648 if test "${ac_cv_path_install+set}" = set; then 2649 INSTALL=$ac_cv_path_install 2650 else 2651 # As a last resort, use the slow shell script. Don't cache a 2652 # value for INSTALL within a source directory, because that will 2653 # break other packages using the cache if that directory is 2654 # removed, or if the value is a relative name. 2655 INSTALL=$ac_install_sh 2656 fi 2657fi 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2659$as_echo "$INSTALL" >&6; } 2660 2661# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2662# It thinks the first close brace ends the variable substitution. 2663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2664 2665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2666 2667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2668 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2670$as_echo_n "checking whether build environment is sane... " >&6; } 2671# Reject unsafe characters in $srcdir or the absolute working directory 2672# name. Accept space and tab only in the latter. 2673am_lf=' 2674' 2675case `pwd` in 2676 *[\\\"\#\$\&\'\`$am_lf]*) 2677 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2678esac 2679case $srcdir in 2680 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2681 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2682esac 2683 2684# Do 'set' in a subshell so we don't clobber the current shell's 2685# arguments. Must try -L first in case configure is actually a 2686# symlink; some systems play weird games with the mod time of symlinks 2687# (eg FreeBSD returns the mod time of the symlink's containing 2688# directory). 2689if ( 2690 am_has_slept=no 2691 for am_try in 1 2; do 2692 echo "timestamp, slept: $am_has_slept" > conftest.file 2693 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2694 if test "$*" = "X"; then 2695 # -L didn't work. 2696 set X `ls -t "$srcdir/configure" conftest.file` 2697 fi 2698 if test "$*" != "X $srcdir/configure conftest.file" \ 2699 && test "$*" != "X conftest.file $srcdir/configure"; then 2700 2701 # If neither matched, then we have a broken ls. This can happen 2702 # if, for instance, CONFIG_SHELL is bash and it inherits a 2703 # broken ls alias from the environment. This has actually 2704 # happened. Such a system could not be considered "sane". 2705 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2706 alias in your environment" "$LINENO" 5 2707 fi 2708 if test "$2" = conftest.file || test $am_try -eq 2; then 2709 break 2710 fi 2711 # Just in case. 2712 sleep 1 2713 am_has_slept=yes 2714 done 2715 test "$2" = conftest.file 2716 ) 2717then 2718 # Ok. 2719 : 2720else 2721 as_fn_error $? "newly created file is older than distributed files! 2722Check your system clock" "$LINENO" 5 2723fi 2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2725$as_echo "yes" >&6; } 2726# If we didn't sleep, we still need to ensure time stamps of config.status and 2727# generated files are strictly newer. 2728am_sleep_pid= 2729if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2730 ( sleep 1 ) & 2731 am_sleep_pid=$! 2732fi 2733 2734rm -f conftest.file 2735 2736test "$program_prefix" != NONE && 2737 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2738# Use a double $ so make ignores it. 2739test "$program_suffix" != NONE && 2740 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2741# Double any \ or $. 2742# By default was `s,x,x', remove it if useless. 2743ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2744program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2745 2746# expand $ac_aux_dir to an absolute path 2747am_aux_dir=`cd $ac_aux_dir && pwd` 2748 2749if test x"${MISSING+set}" != xset; then 2750 case $am_aux_dir in 2751 *\ * | *\ *) 2752 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2753 *) 2754 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2755 esac 2756fi 2757# Use eval to expand $SHELL 2758if eval "$MISSING --is-lightweight"; then 2759 am_missing_run="$MISSING " 2760else 2761 am_missing_run= 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2763$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2764fi 2765 2766if test x"${install_sh}" != xset; then 2767 case $am_aux_dir in 2768 *\ * | *\ *) 2769 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2770 *) 2771 install_sh="\${SHELL} $am_aux_dir/install-sh" 2772 esac 2773fi 2774 2775# Installed binaries are usually stripped using 'strip' when the user 2776# run "make install-strip". However 'strip' might not be the right 2777# tool to use in cross-compilation environments, therefore Automake 2778# will honor the 'STRIP' environment variable to overrule this program. 2779if test "$cross_compiling" != no; then 2780 if test -n "$ac_tool_prefix"; then 2781 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2782set dummy ${ac_tool_prefix}strip; ac_word=$2 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784$as_echo_n "checking for $ac_word... " >&6; } 2785if ${ac_cv_prog_STRIP+:} false; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if test -n "$STRIP"; then 2789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2790else 2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2798 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803 done 2804IFS=$as_save_IFS 2805 2806fi 2807fi 2808STRIP=$ac_cv_prog_STRIP 2809if test -n "$STRIP"; then 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2811$as_echo "$STRIP" >&6; } 2812else 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814$as_echo "no" >&6; } 2815fi 2816 2817 2818fi 2819if test -z "$ac_cv_prog_STRIP"; then 2820 ac_ct_STRIP=$STRIP 2821 # Extract the first word of "strip", so it can be a program name with args. 2822set dummy strip; ac_word=$2 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2824$as_echo_n "checking for $ac_word... " >&6; } 2825if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 if test -n "$ac_ct_STRIP"; then 2829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2830else 2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832for as_dir in $PATH 2833do 2834 IFS=$as_save_IFS 2835 test -z "$as_dir" && as_dir=. 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2838 ac_cv_prog_ac_ct_STRIP="strip" 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842done 2843 done 2844IFS=$as_save_IFS 2845 2846fi 2847fi 2848ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2849if test -n "$ac_ct_STRIP"; then 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2851$as_echo "$ac_ct_STRIP" >&6; } 2852else 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854$as_echo "no" >&6; } 2855fi 2856 2857 if test "x$ac_ct_STRIP" = x; then 2858 STRIP=":" 2859 else 2860 case $cross_compiling:$ac_tool_warned in 2861yes:) 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2864ac_tool_warned=yes ;; 2865esac 2866 STRIP=$ac_ct_STRIP 2867 fi 2868else 2869 STRIP="$ac_cv_prog_STRIP" 2870fi 2871 2872fi 2873INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2874 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2876$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2877if test -z "$MKDIR_P"; then 2878 if ${ac_cv_path_mkdir+:} false; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2883do 2884 IFS=$as_save_IFS 2885 test -z "$as_dir" && as_dir=. 2886 for ac_prog in mkdir gmkdir; do 2887 for ac_exec_ext in '' $ac_executable_extensions; do 2888 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2889 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2890 'mkdir (GNU coreutils) '* | \ 2891 'mkdir (coreutils) '* | \ 2892 'mkdir (fileutils) '4.1*) 2893 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2894 break 3;; 2895 esac 2896 done 2897 done 2898 done 2899IFS=$as_save_IFS 2900 2901fi 2902 2903 test -d ./--version && rmdir ./--version 2904 if test "${ac_cv_path_mkdir+set}" = set; then 2905 MKDIR_P="$ac_cv_path_mkdir -p" 2906 else 2907 # As a last resort, use the slow shell script. Don't cache a 2908 # value for MKDIR_P within a source directory, because that will 2909 # break other packages using the cache if that directory is 2910 # removed, or if the value is a relative name. 2911 MKDIR_P="$ac_install_sh -d" 2912 fi 2913fi 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2915$as_echo "$MKDIR_P" >&6; } 2916 2917for ac_prog in gawk mawk nawk awk 2918do 2919 # Extract the first word of "$ac_prog", so it can be a program name with args. 2920set dummy $ac_prog; ac_word=$2 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922$as_echo_n "checking for $ac_word... " >&6; } 2923if ${ac_cv_prog_AWK+:} false; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 if test -n "$AWK"; then 2927 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2936 ac_cv_prog_AWK="$ac_prog" 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2938 break 2 2939 fi 2940done 2941 done 2942IFS=$as_save_IFS 2943 2944fi 2945fi 2946AWK=$ac_cv_prog_AWK 2947if test -n "$AWK"; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2949$as_echo "$AWK" >&6; } 2950else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952$as_echo "no" >&6; } 2953fi 2954 2955 2956 test -n "$AWK" && break 2957done 2958 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2960$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2961set x ${MAKE-make} 2962ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2963if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2964 $as_echo_n "(cached) " >&6 2965else 2966 cat >conftest.make <<\_ACEOF 2967SHELL = /bin/sh 2968all: 2969 @echo '@@@%%%=$(MAKE)=@@@%%%' 2970_ACEOF 2971# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2972case `${MAKE-make} -f conftest.make 2>/dev/null` in 2973 *@@@%%%=?*=@@@%%%*) 2974 eval ac_cv_prog_make_${ac_make}_set=yes;; 2975 *) 2976 eval ac_cv_prog_make_${ac_make}_set=no;; 2977esac 2978rm -f conftest.make 2979fi 2980if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2982$as_echo "yes" >&6; } 2983 SET_MAKE= 2984else 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986$as_echo "no" >&6; } 2987 SET_MAKE="MAKE=${MAKE-make}" 2988fi 2989 2990rm -rf .tst 2>/dev/null 2991mkdir .tst 2>/dev/null 2992if test -d .tst; then 2993 am__leading_dot=. 2994else 2995 am__leading_dot=_ 2996fi 2997rmdir .tst 2>/dev/null 2998 2999# Check whether --enable-silent-rules was given. 3000if test "${enable_silent_rules+set}" = set; then : 3001 enableval=$enable_silent_rules; 3002fi 3003 3004case $enable_silent_rules in # ((( 3005 yes) AM_DEFAULT_VERBOSITY=0;; 3006 no) AM_DEFAULT_VERBOSITY=1;; 3007 *) AM_DEFAULT_VERBOSITY=1;; 3008esac 3009am_make=${MAKE-make} 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3011$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3012if ${am_cv_make_support_nested_variables+:} false; then : 3013 $as_echo_n "(cached) " >&6 3014else 3015 if $as_echo 'TRUE=$(BAR$(V)) 3016BAR0=false 3017BAR1=true 3018V=1 3019am__doit: 3020 @$(TRUE) 3021.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3022 am_cv_make_support_nested_variables=yes 3023else 3024 am_cv_make_support_nested_variables=no 3025fi 3026fi 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3028$as_echo "$am_cv_make_support_nested_variables" >&6; } 3029if test $am_cv_make_support_nested_variables = yes; then 3030 AM_V='$(V)' 3031 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3032else 3033 AM_V=$AM_DEFAULT_VERBOSITY 3034 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3035fi 3036AM_BACKSLASH='\' 3037 3038if test "`cd $srcdir && pwd`" != "`pwd`"; then 3039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3040 # is not polluted with repeated "-I." 3041 am__isrc=' -I$(srcdir)' 3042 # test to see if srcdir already configured 3043 if test -f $srcdir/config.status; then 3044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3045 fi 3046fi 3047 3048# test whether we have cygpath 3049if test -z "$CYGPATH_W"; then 3050 if (cygpath --version) >/dev/null 2>/dev/null; then 3051 CYGPATH_W='cygpath -w' 3052 else 3053 CYGPATH_W=echo 3054 fi 3055fi 3056 3057 3058# Define the identity of the package. 3059 PACKAGE='xf86-video-intel' 3060 VERSION='2.99.917' 3061 3062 3063cat >>confdefs.h <<_ACEOF 3064#define PACKAGE "$PACKAGE" 3065_ACEOF 3066 3067 3068cat >>confdefs.h <<_ACEOF 3069#define VERSION "$VERSION" 3070_ACEOF 3071 3072# Some tools Automake needs. 3073 3074ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3075 3076 3077AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3078 3079 3080AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3081 3082 3083AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3084 3085 3086MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3087 3088# For better backward compatibility. To be removed once Automake 1.9.x 3089# dies out for good. For more background, see: 3090# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3091# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3092mkdir_p='$(MKDIR_P)' 3093 3094# We need awk for the "check" target. The system "awk" is bad on 3095# some platforms. 3096# Always define AMTAR for backward compatibility. Yes, it's still used 3097# in the wild :-( We should find a proper way to deprecate it ... 3098AMTAR='$${TAR-tar}' 3099 3100 3101# We'll loop over all known methods to create a tar archive until one works. 3102_am_tools='gnutar pax cpio none' 3103 3104am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3105 3106 3107 3108 3109 3110 3111# POSIX will say in a future version that running "rm -f" with no argument 3112# is OK; and we want to be able to make that assumption in our Makefile 3113# recipes. So use an aggressive probe to check that the usage we want is 3114# actually supported "in the wild" to an acceptable degree. 3115# See automake bug#10828. 3116# To make any issue more visible, cause the running configure to be aborted 3117# by default if the 'rm' program in use doesn't match our expectations; the 3118# user can still override this though. 3119if rm -f && rm -fr && rm -rf; then : OK; else 3120 cat >&2 <<'END' 3121Oops! 3122 3123Your 'rm' program seems unable to run without file operands specified 3124on the command line, even when the '-f' option is present. This is contrary 3125to the behaviour of most rm programs out there, and not conforming with 3126the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3127 3128Please tell bug-automake@gnu.org about your system, including the value 3129of your $PATH and any error possibly output before this message. This 3130can help us improve future automake versions. 3131 3132END 3133 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3134 echo 'Configuration will proceed anyway, since you have set the' >&2 3135 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3136 echo >&2 3137 else 3138 cat >&2 <<'END' 3139Aborting the configuration process, to ensure you take notice of the issue. 3140 3141You can download and install GNU coreutils to get an 'rm' implementation 3142that behaves properly: <http://www.gnu.org/software/coreutils/>. 3143 3144If you want to complete the configuration process using your problematic 3145'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3146to "yes", and re-run configure. 3147 3148END 3149 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3150 fi 3151fi 3152 3153# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166DEPDIR="${am__leading_dot}deps" 3167 3168ac_config_commands="$ac_config_commands depfiles" 3169 3170 3171am_make=${MAKE-make} 3172cat > confinc << 'END' 3173am__doit: 3174 @echo this is the am__doit target 3175.PHONY: am__doit 3176END 3177# If we don't find an include directive, just comment out the code. 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3179$as_echo_n "checking for style of include used by $am_make... " >&6; } 3180am__include="#" 3181am__quote= 3182_am_result=none 3183# First try GNU make style include. 3184echo "include confinc" > confmf 3185# Ignore all kinds of additional output from 'make'. 3186case `$am_make -s -f confmf 2> /dev/null` in #( 3187*the\ am__doit\ target*) 3188 am__include=include 3189 am__quote= 3190 _am_result=GNU 3191 ;; 3192esac 3193# Now try BSD make style include. 3194if test "$am__include" = "#"; then 3195 echo '.include "confinc"' > confmf 3196 case `$am_make -s -f confmf 2> /dev/null` in #( 3197 *the\ am__doit\ target*) 3198 am__include=.include 3199 am__quote="\"" 3200 _am_result=BSD 3201 ;; 3202 esac 3203fi 3204 3205 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3207$as_echo "$_am_result" >&6; } 3208rm -f confinc confmf 3209 3210# Check whether --enable-dependency-tracking was given. 3211if test "${enable_dependency_tracking+set}" = set; then : 3212 enableval=$enable_dependency_tracking; 3213fi 3214 3215if test "x$enable_dependency_tracking" != xno; then 3216 am_depcomp="$ac_aux_dir/depcomp" 3217 AMDEPBACKSLASH='\' 3218 am__nodep='_no' 3219fi 3220 if test "x$enable_dependency_tracking" != xno; then 3221 AMDEP_TRUE= 3222 AMDEP_FALSE='#' 3223else 3224 AMDEP_TRUE='#' 3225 AMDEP_FALSE= 3226fi 3227 3228 3229ac_ext=c 3230ac_cpp='$CPP $CPPFLAGS' 3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3233ac_compiler_gnu=$ac_cv_c_compiler_gnu 3234if test -n "$ac_tool_prefix"; then 3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3236set dummy ${ac_tool_prefix}gcc; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_CC+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$CC"; then 3243 ac_cv_prog_CC="$CC" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262CC=$ac_cv_prog_CC 3263if test -n "$CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265$as_echo "$CC" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 3272fi 3273if test -z "$ac_cv_prog_CC"; then 3274 ac_ct_CC=$CC 3275 # Extract the first word of "gcc", so it can be a program name with args. 3276set dummy gcc; ac_word=$2 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3278$as_echo_n "checking for $ac_word... " >&6; } 3279if ${ac_cv_prog_ac_ct_CC+:} false; then : 3280 $as_echo_n "(cached) " >&6 3281else 3282 if test -n "$ac_ct_CC"; then 3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3284else 3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286for as_dir in $PATH 3287do 3288 IFS=$as_save_IFS 3289 test -z "$as_dir" && as_dir=. 3290 for ac_exec_ext in '' $ac_executable_extensions; do 3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3292 ac_cv_prog_ac_ct_CC="gcc" 3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3294 break 2 3295 fi 3296done 3297 done 3298IFS=$as_save_IFS 3299 3300fi 3301fi 3302ac_ct_CC=$ac_cv_prog_ac_ct_CC 3303if test -n "$ac_ct_CC"; then 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3305$as_echo "$ac_ct_CC" >&6; } 3306else 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308$as_echo "no" >&6; } 3309fi 3310 3311 if test "x$ac_ct_CC" = x; then 3312 CC="" 3313 else 3314 case $cross_compiling:$ac_tool_warned in 3315yes:) 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3318ac_tool_warned=yes ;; 3319esac 3320 CC=$ac_ct_CC 3321 fi 3322else 3323 CC="$ac_cv_prog_CC" 3324fi 3325 3326if test -z "$CC"; then 3327 if test -n "$ac_tool_prefix"; then 3328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3329set dummy ${ac_tool_prefix}cc; ac_word=$2 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3331$as_echo_n "checking for $ac_word... " >&6; } 3332if ${ac_cv_prog_CC+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 if test -n "$CC"; then 3336 ac_cv_prog_CC="$CC" # Let the user override the test. 3337else 3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3339for as_dir in $PATH 3340do 3341 IFS=$as_save_IFS 3342 test -z "$as_dir" && as_dir=. 3343 for ac_exec_ext in '' $ac_executable_extensions; do 3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3345 ac_cv_prog_CC="${ac_tool_prefix}cc" 3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3347 break 2 3348 fi 3349done 3350 done 3351IFS=$as_save_IFS 3352 3353fi 3354fi 3355CC=$ac_cv_prog_CC 3356if test -n "$CC"; then 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3358$as_echo "$CC" >&6; } 3359else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3361$as_echo "no" >&6; } 3362fi 3363 3364 3365 fi 3366fi 3367if test -z "$CC"; then 3368 # Extract the first word of "cc", so it can be a program name with args. 3369set dummy cc; ac_word=$2 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3371$as_echo_n "checking for $ac_word... " >&6; } 3372if ${ac_cv_prog_CC+:} false; then : 3373 $as_echo_n "(cached) " >&6 3374else 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377else 3378 ac_prog_rejected=no 3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380for as_dir in $PATH 3381do 3382 IFS=$as_save_IFS 3383 test -z "$as_dir" && as_dir=. 3384 for ac_exec_ext in '' $ac_executable_extensions; do 3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3387 ac_prog_rejected=yes 3388 continue 3389 fi 3390 ac_cv_prog_CC="cc" 3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3392 break 2 3393 fi 3394done 3395 done 3396IFS=$as_save_IFS 3397 3398if test $ac_prog_rejected = yes; then 3399 # We found a bogon in the path, so make sure we never use it. 3400 set dummy $ac_cv_prog_CC 3401 shift 3402 if test $# != 0; then 3403 # We chose a different compiler from the bogus one. 3404 # However, it has the same basename, so the bogon will be chosen 3405 # first if we set CC to just the basename; use the full file name. 3406 shift 3407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3408 fi 3409fi 3410fi 3411fi 3412CC=$ac_cv_prog_CC 3413if test -n "$CC"; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3415$as_echo "$CC" >&6; } 3416else 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418$as_echo "no" >&6; } 3419fi 3420 3421 3422fi 3423if test -z "$CC"; then 3424 if test -n "$ac_tool_prefix"; then 3425 for ac_prog in cl.exe 3426 do 3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3430$as_echo_n "checking for $ac_word... " >&6; } 3431if ${ac_cv_prog_CC+:} false; then : 3432 $as_echo_n "(cached) " >&6 3433else 3434 if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 test -z "$as_dir" && as_dir=. 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3446 break 2 3447 fi 3448done 3449 done 3450IFS=$as_save_IFS 3451 3452fi 3453fi 3454CC=$ac_cv_prog_CC 3455if test -n "$CC"; then 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3457$as_echo "$CC" >&6; } 3458else 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3460$as_echo "no" >&6; } 3461fi 3462 3463 3464 test -n "$CC" && break 3465 done 3466fi 3467if test -z "$CC"; then 3468 ac_ct_CC=$CC 3469 for ac_prog in cl.exe 3470do 3471 # Extract the first word of "$ac_prog", so it can be a program name with args. 3472set dummy $ac_prog; ac_word=$2 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3474$as_echo_n "checking for $ac_word... " >&6; } 3475if ${ac_cv_prog_ac_ct_CC+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 if test -n "$ac_ct_CC"; then 3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3480else 3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482for as_dir in $PATH 3483do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3488 ac_cv_prog_ac_ct_CC="$ac_prog" 3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3490 break 2 3491 fi 3492done 3493 done 3494IFS=$as_save_IFS 3495 3496fi 3497fi 3498ac_ct_CC=$ac_cv_prog_ac_ct_CC 3499if test -n "$ac_ct_CC"; then 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3501$as_echo "$ac_ct_CC" >&6; } 3502else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504$as_echo "no" >&6; } 3505fi 3506 3507 3508 test -n "$ac_ct_CC" && break 3509done 3510 3511 if test "x$ac_ct_CC" = x; then 3512 CC="" 3513 else 3514 case $cross_compiling:$ac_tool_warned in 3515yes:) 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3518ac_tool_warned=yes ;; 3519esac 3520 CC=$ac_ct_CC 3521 fi 3522fi 3523 3524fi 3525 3526 3527test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "no acceptable C compiler found in \$PATH 3530See \`config.log' for more details" "$LINENO" 5; } 3531 3532# Provide some information about the compiler. 3533$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3534set X $ac_compile 3535ac_compiler=$2 3536for ac_option in --version -v -V -qversion; do 3537 { { ac_try="$ac_compiler $ac_option >&5" 3538case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541esac 3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3543$as_echo "$ac_try_echo"; } >&5 3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3545 ac_status=$? 3546 if test -s conftest.err; then 3547 sed '10a\ 3548... rest of stderr output deleted ... 3549 10q' conftest.err >conftest.er1 3550 cat conftest.er1 >&5 3551 fi 3552 rm -f conftest.er1 conftest.err 3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3554 test $ac_status = 0; } 3555done 3556 3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568ac_clean_files_save=$ac_clean_files 3569ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3570# Try to create an executable without -o first, disregard a.out. 3571# It will help us diagnose broken compilers, and finding out an intuition 3572# of exeext. 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3574$as_echo_n "checking whether the C compiler works... " >&6; } 3575ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3576 3577# The possible output files: 3578ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3579 3580ac_rmfiles= 3581for ac_file in $ac_files 3582do 3583 case $ac_file in 3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3586 esac 3587done 3588rm -f $ac_rmfiles 3589 3590if { { ac_try="$ac_link_default" 3591case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3596$as_echo "$ac_try_echo"; } >&5 3597 (eval "$ac_link_default") 2>&5 3598 ac_status=$? 3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3600 test $ac_status = 0; }; then : 3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3602# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3603# in a Makefile. We should not override ac_cv_exeext if it was cached, 3604# so that the user can short-circuit this test for compilers unknown to 3605# Autoconf. 3606for ac_file in $ac_files '' 3607do 3608 test -f "$ac_file" || continue 3609 case $ac_file in 3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3611 ;; 3612 [ab].out ) 3613 # We found the default executable, but exeext='' is most 3614 # certainly right. 3615 break;; 3616 *.* ) 3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3618 then :; else 3619 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3620 fi 3621 # We set ac_cv_exeext here because the later test for it is not 3622 # safe: cross compilers may not add the suffix if given an `-o' 3623 # argument, so we may need to know it at that point already. 3624 # Even if this section looks crufty: it has the advantage of 3625 # actually working. 3626 break;; 3627 * ) 3628 break;; 3629 esac 3630done 3631test "$ac_cv_exeext" = no && ac_cv_exeext= 3632 3633else 3634 ac_file='' 3635fi 3636if test -z "$ac_file"; then : 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3638$as_echo "no" >&6; } 3639$as_echo "$as_me: failed program was:" >&5 3640sed 's/^/| /' conftest.$ac_ext >&5 3641 3642{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3644as_fn_error 77 "C compiler cannot create executables 3645See \`config.log' for more details" "$LINENO" 5; } 3646else 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3648$as_echo "yes" >&6; } 3649fi 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3651$as_echo_n "checking for C compiler default output file name... " >&6; } 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3653$as_echo "$ac_file" >&6; } 3654ac_exeext=$ac_cv_exeext 3655 3656rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3657ac_clean_files=$ac_clean_files_save 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3659$as_echo_n "checking for suffix of executables... " >&6; } 3660if { { ac_try="$ac_link" 3661case "(($ac_try" in 3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3663 *) ac_try_echo=$ac_try;; 3664esac 3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3666$as_echo "$ac_try_echo"; } >&5 3667 (eval "$ac_link") 2>&5 3668 ac_status=$? 3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3670 test $ac_status = 0; }; then : 3671 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3672# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3673# work properly (i.e., refer to `conftest.exe'), while it won't with 3674# `rm'. 3675for ac_file in conftest.exe conftest conftest.*; do 3676 test -f "$ac_file" || continue 3677 case $ac_file in 3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3680 break;; 3681 * ) break;; 3682 esac 3683done 3684else 3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3687as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3688See \`config.log' for more details" "$LINENO" 5; } 3689fi 3690rm -f conftest conftest$ac_cv_exeext 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3692$as_echo "$ac_cv_exeext" >&6; } 3693 3694rm -f conftest.$ac_ext 3695EXEEXT=$ac_cv_exeext 3696ac_exeext=$EXEEXT 3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699#include <stdio.h> 3700int 3701main () 3702{ 3703FILE *f = fopen ("conftest.out", "w"); 3704 return ferror (f) || fclose (f) != 0; 3705 3706 ; 3707 return 0; 3708} 3709_ACEOF 3710ac_clean_files="$ac_clean_files conftest.out" 3711# Check that the compiler produces executables we can run. If not, either 3712# the compiler is broken, or we cross compile. 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3714$as_echo_n "checking whether we are cross compiling... " >&6; } 3715if test "$cross_compiling" != yes; then 3716 { { ac_try="$ac_link" 3717case "(($ac_try" in 3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3719 *) ac_try_echo=$ac_try;; 3720esac 3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3722$as_echo "$ac_try_echo"; } >&5 3723 (eval "$ac_link") 2>&5 3724 ac_status=$? 3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3726 test $ac_status = 0; } 3727 if { ac_try='./conftest$ac_cv_exeext' 3728 { { case "(($ac_try" in 3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3730 *) ac_try_echo=$ac_try;; 3731esac 3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3733$as_echo "$ac_try_echo"; } >&5 3734 (eval "$ac_try") 2>&5 3735 ac_status=$? 3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3737 test $ac_status = 0; }; }; then 3738 cross_compiling=no 3739 else 3740 if test "$cross_compiling" = maybe; then 3741 cross_compiling=yes 3742 else 3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3745as_fn_error $? "cannot run C compiled programs. 3746If you meant to cross compile, use \`--host'. 3747See \`config.log' for more details" "$LINENO" 5; } 3748 fi 3749 fi 3750fi 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3752$as_echo "$cross_compiling" >&6; } 3753 3754rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3755ac_clean_files=$ac_clean_files_save 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3757$as_echo_n "checking for suffix of object files... " >&6; } 3758if ${ac_cv_objext+:} false; then : 3759 $as_echo_n "(cached) " >&6 3760else 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763 3764int 3765main () 3766{ 3767 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772rm -f conftest.o conftest.obj 3773if { { ac_try="$ac_compile" 3774case "(($ac_try" in 3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3776 *) ac_try_echo=$ac_try;; 3777esac 3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3779$as_echo "$ac_try_echo"; } >&5 3780 (eval "$ac_compile") 2>&5 3781 ac_status=$? 3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3783 test $ac_status = 0; }; then : 3784 for ac_file in conftest.o conftest.obj conftest.*; do 3785 test -f "$ac_file" || continue; 3786 case $ac_file in 3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3789 break;; 3790 esac 3791done 3792else 3793 $as_echo "$as_me: failed program was:" >&5 3794sed 's/^/| /' conftest.$ac_ext >&5 3795 3796{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3798as_fn_error $? "cannot compute suffix of object files: cannot compile 3799See \`config.log' for more details" "$LINENO" 5; } 3800fi 3801rm -f conftest.$ac_cv_objext conftest.$ac_ext 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3804$as_echo "$ac_cv_objext" >&6; } 3805OBJEXT=$ac_cv_objext 3806ac_objext=$OBJEXT 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3808$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3809if ${ac_cv_c_compiler_gnu+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3813/* end confdefs.h. */ 3814 3815int 3816main () 3817{ 3818#ifndef __GNUC__ 3819 choke me 3820#endif 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826if ac_fn_c_try_compile "$LINENO"; then : 3827 ac_compiler_gnu=yes 3828else 3829 ac_compiler_gnu=no 3830fi 3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3832ac_cv_c_compiler_gnu=$ac_compiler_gnu 3833 3834fi 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3836$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3837if test $ac_compiler_gnu = yes; then 3838 GCC=yes 3839else 3840 GCC= 3841fi 3842ac_test_CFLAGS=${CFLAGS+set} 3843ac_save_CFLAGS=$CFLAGS 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3845$as_echo_n "checking whether $CC accepts -g... " >&6; } 3846if ${ac_cv_prog_cc_g+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848else 3849 ac_save_c_werror_flag=$ac_c_werror_flag 3850 ac_c_werror_flag=yes 3851 ac_cv_prog_cc_g=no 3852 CFLAGS="-g" 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855 3856int 3857main () 3858{ 3859 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864if ac_fn_c_try_compile "$LINENO"; then : 3865 ac_cv_prog_cc_g=yes 3866else 3867 CFLAGS="" 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879if ac_fn_c_try_compile "$LINENO"; then : 3880 3881else 3882 ac_c_werror_flag=$ac_save_c_werror_flag 3883 CFLAGS="-g" 3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886 3887int 3888main () 3889{ 3890 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895if ac_fn_c_try_compile "$LINENO"; then : 3896 ac_cv_prog_cc_g=yes 3897fi 3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3899fi 3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3901fi 3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3903 ac_c_werror_flag=$ac_save_c_werror_flag 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3906$as_echo "$ac_cv_prog_cc_g" >&6; } 3907if test "$ac_test_CFLAGS" = set; then 3908 CFLAGS=$ac_save_CFLAGS 3909elif test $ac_cv_prog_cc_g = yes; then 3910 if test "$GCC" = yes; then 3911 CFLAGS="-g -O2" 3912 else 3913 CFLAGS="-g" 3914 fi 3915else 3916 if test "$GCC" = yes; then 3917 CFLAGS="-O2" 3918 else 3919 CFLAGS= 3920 fi 3921fi 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3923$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3924if ${ac_cv_prog_cc_c89+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 ac_cv_prog_cc_c89=no 3928ac_save_CC=$CC 3929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930/* end confdefs.h. */ 3931#include <stdarg.h> 3932#include <stdio.h> 3933struct stat; 3934/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3935struct buf { int x; }; 3936FILE * (*rcsopen) (struct buf *, struct stat *, int); 3937static char *e (p, i) 3938 char **p; 3939 int i; 3940{ 3941 return p[i]; 3942} 3943static char *f (char * (*g) (char **, int), char **p, ...) 3944{ 3945 char *s; 3946 va_list v; 3947 va_start (v,p); 3948 s = g (p, va_arg (v,int)); 3949 va_end (v); 3950 return s; 3951} 3952 3953/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3954 function prototypes and stuff, but not '\xHH' hex character constants. 3955 These don't provoke an error unfortunately, instead are silently treated 3956 as 'x'. The following induces an error, until -std is added to get 3957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3958 array size at least. It's necessary to write '\x00'==0 to get something 3959 that's true only with -std. */ 3960int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3961 3962/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3963 inside strings and character constants. */ 3964#define FOO(x) 'x' 3965int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3966 3967int test (int i, double x); 3968struct s1 {int (*f) (int a);}; 3969struct s2 {int (*f) (double a);}; 3970int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3971int argc; 3972char **argv; 3973int 3974main () 3975{ 3976return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3983do 3984 CC="$ac_save_CC $ac_arg" 3985 if ac_fn_c_try_compile "$LINENO"; then : 3986 ac_cv_prog_cc_c89=$ac_arg 3987fi 3988rm -f core conftest.err conftest.$ac_objext 3989 test "x$ac_cv_prog_cc_c89" != "xno" && break 3990done 3991rm -f conftest.$ac_ext 3992CC=$ac_save_CC 3993 3994fi 3995# AC_CACHE_VAL 3996case "x$ac_cv_prog_cc_c89" in 3997 x) 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3999$as_echo "none needed" >&6; } ;; 4000 xno) 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4002$as_echo "unsupported" >&6; } ;; 4003 *) 4004 CC="$CC $ac_cv_prog_cc_c89" 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4006$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4007esac 4008if test "x$ac_cv_prog_cc_c89" != xno; then : 4009 4010fi 4011 4012ac_ext=c 4013ac_cpp='$CPP $CPPFLAGS' 4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4016ac_compiler_gnu=$ac_cv_c_compiler_gnu 4017 4018ac_ext=c 4019ac_cpp='$CPP $CPPFLAGS' 4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4022ac_compiler_gnu=$ac_cv_c_compiler_gnu 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4024$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4025if ${am_cv_prog_cc_c_o+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039 # Make sure it works both with $CC and with simple cc. 4040 # Following AC_PROG_CC_C_O, we do the test twice because some 4041 # compilers refuse to overwrite an existing .o file with -o, 4042 # though they will create one. 4043 am_cv_prog_cc_c_o=yes 4044 for am_i in 1 2; do 4045 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4046 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); } \ 4050 && test -f conftest2.$ac_objext; then 4051 : OK 4052 else 4053 am_cv_prog_cc_c_o=no 4054 break 4055 fi 4056 done 4057 rm -f core conftest* 4058 unset am_i 4059fi 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4061$as_echo "$am_cv_prog_cc_c_o" >&6; } 4062if test "$am_cv_prog_cc_c_o" != yes; then 4063 # Losing compiler, so override with the script. 4064 # FIXME: It is wrong to rewrite CC. 4065 # But if we don't then we get into trouble of one sort or another. 4066 # A longer-term fix would be to have automake use am__CC in this case, 4067 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4068 CC="$am_aux_dir/compile $CC" 4069fi 4070ac_ext=c 4071ac_cpp='$CPP $CPPFLAGS' 4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4074ac_compiler_gnu=$ac_cv_c_compiler_gnu 4075 4076 4077depcc="$CC" am_compiler_list= 4078 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4080$as_echo_n "checking dependency style of $depcc... " >&6; } 4081if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4085 # We make a subdir and do the tests there. Otherwise we can end up 4086 # making bogus files that we don't know about and never remove. For 4087 # instance it was reported that on HP-UX the gcc test will end up 4088 # making a dummy file named 'D' -- because '-MD' means "put the output 4089 # in D". 4090 rm -rf conftest.dir 4091 mkdir conftest.dir 4092 # Copy depcomp to subdir because otherwise we won't find it if we're 4093 # using a relative directory. 4094 cp "$am_depcomp" conftest.dir 4095 cd conftest.dir 4096 # We will build objects and dependencies in a subdirectory because 4097 # it helps to detect inapplicable dependency modes. For instance 4098 # both Tru64's cc and ICC support -MD to output dependencies as a 4099 # side effect of compilation, but ICC will put the dependencies in 4100 # the current directory while Tru64 will put them in the object 4101 # directory. 4102 mkdir sub 4103 4104 am_cv_CC_dependencies_compiler_type=none 4105 if test "$am_compiler_list" = ""; then 4106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4107 fi 4108 am__universal=false 4109 case " $depcc " in #( 4110 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4111 esac 4112 4113 for depmode in $am_compiler_list; do 4114 # Setup a source with many dependencies, because some compilers 4115 # like to wrap large dependency lists on column 80 (with \), and 4116 # we should not choose a depcomp mode which is confused by this. 4117 # 4118 # We need to recreate these files for each test, as the compiler may 4119 # overwrite some of them when testing with obscure command lines. 4120 # This happens at least with the AIX C compiler. 4121 : > sub/conftest.c 4122 for i in 1 2 3 4 5 6; do 4123 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4124 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4125 # Solaris 10 /bin/sh. 4126 echo '/* dummy */' > sub/conftst$i.h 4127 done 4128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4129 4130 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4131 # mode. It turns out that the SunPro C++ compiler does not properly 4132 # handle '-M -o', and we need to detect this. Also, some Intel 4133 # versions had trouble with output in subdirs. 4134 am__obj=sub/conftest.${OBJEXT-o} 4135 am__minus_obj="-o $am__obj" 4136 case $depmode in 4137 gcc) 4138 # This depmode causes a compiler race in universal mode. 4139 test "$am__universal" = false || continue 4140 ;; 4141 nosideeffect) 4142 # After this tag, mechanisms are not by side-effect, so they'll 4143 # only be used when explicitly requested. 4144 if test "x$enable_dependency_tracking" = xyes; then 4145 continue 4146 else 4147 break 4148 fi 4149 ;; 4150 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4151 # This compiler won't grok '-c -o', but also, the minuso test has 4152 # not run yet. These depmodes are late enough in the game, and 4153 # so weak that their functioning should not be impacted. 4154 am__obj=conftest.${OBJEXT-o} 4155 am__minus_obj= 4156 ;; 4157 none) break ;; 4158 esac 4159 if depmode=$depmode \ 4160 source=sub/conftest.c object=$am__obj \ 4161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4163 >/dev/null 2>conftest.err && 4164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4168 # icc doesn't choke on unknown options, it will just issue warnings 4169 # or remarks (even with -Werror). So we grep stderr for any message 4170 # that says an option was ignored or not supported. 4171 # When given -MP, icc 7.0 and 7.1 complain thusly: 4172 # icc: Command line warning: ignoring option '-M'; no argument required 4173 # The diagnosis changed in icc 8.0: 4174 # icc: Command line remark: option '-MP' not supported 4175 if (grep 'ignoring option' conftest.err || 4176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4177 am_cv_CC_dependencies_compiler_type=$depmode 4178 break 4179 fi 4180 fi 4181 done 4182 4183 cd .. 4184 rm -rf conftest.dir 4185else 4186 am_cv_CC_dependencies_compiler_type=none 4187fi 4188 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4191$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4192CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4193 4194 if 4195 test "x$enable_dependency_tracking" != xno \ 4196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4197 am__fastdepCC_TRUE= 4198 am__fastdepCC_FALSE='#' 4199else 4200 am__fastdepCC_TRUE='#' 4201 am__fastdepCC_FALSE= 4202fi 4203 4204 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4206$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4207if ${ac_cv_prog_cc_c99+:} false; then : 4208 $as_echo_n "(cached) " >&6 4209else 4210 ac_cv_prog_cc_c99=no 4211ac_save_CC=$CC 4212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4213/* end confdefs.h. */ 4214#include <stdarg.h> 4215#include <stdbool.h> 4216#include <stdlib.h> 4217#include <wchar.h> 4218#include <stdio.h> 4219 4220// Check varargs macros. These examples are taken from C99 6.10.3.5. 4221#define debug(...) fprintf (stderr, __VA_ARGS__) 4222#define showlist(...) puts (#__VA_ARGS__) 4223#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4224static void 4225test_varargs_macros (void) 4226{ 4227 int x = 1234; 4228 int y = 5678; 4229 debug ("Flag"); 4230 debug ("X = %d\n", x); 4231 showlist (The first, second, and third items.); 4232 report (x>y, "x is %d but y is %d", x, y); 4233} 4234 4235// Check long long types. 4236#define BIG64 18446744073709551615ull 4237#define BIG32 4294967295ul 4238#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4239#if !BIG_OK 4240 your preprocessor is broken; 4241#endif 4242#if BIG_OK 4243#else 4244 your preprocessor is broken; 4245#endif 4246static long long int bignum = -9223372036854775807LL; 4247static unsigned long long int ubignum = BIG64; 4248 4249struct incomplete_array 4250{ 4251 int datasize; 4252 double data[]; 4253}; 4254 4255struct named_init { 4256 int number; 4257 const wchar_t *name; 4258 double average; 4259}; 4260 4261typedef const char *ccp; 4262 4263static inline int 4264test_restrict (ccp restrict text) 4265{ 4266 // See if C++-style comments work. 4267 // Iterate through items via the restricted pointer. 4268 // Also check for declarations in for loops. 4269 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4270 continue; 4271 return 0; 4272} 4273 4274// Check varargs and va_copy. 4275static void 4276test_varargs (const char *format, ...) 4277{ 4278 va_list args; 4279 va_start (args, format); 4280 va_list args_copy; 4281 va_copy (args_copy, args); 4282 4283 const char *str; 4284 int number; 4285 float fnumber; 4286 4287 while (*format) 4288 { 4289 switch (*format++) 4290 { 4291 case 's': // string 4292 str = va_arg (args_copy, const char *); 4293 break; 4294 case 'd': // int 4295 number = va_arg (args_copy, int); 4296 break; 4297 case 'f': // float 4298 fnumber = va_arg (args_copy, double); 4299 break; 4300 default: 4301 break; 4302 } 4303 } 4304 va_end (args_copy); 4305 va_end (args); 4306} 4307 4308int 4309main () 4310{ 4311 4312 // Check bool. 4313 _Bool success = false; 4314 4315 // Check restrict. 4316 if (test_restrict ("String literal") == 0) 4317 success = true; 4318 char *restrict newvar = "Another string"; 4319 4320 // Check varargs. 4321 test_varargs ("s, d' f .", "string", 65, 34.234); 4322 test_varargs_macros (); 4323 4324 // Check flexible array members. 4325 struct incomplete_array *ia = 4326 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4327 ia->datasize = 10; 4328 for (int i = 0; i < ia->datasize; ++i) 4329 ia->data[i] = i * 1.234; 4330 4331 // Check named initializers. 4332 struct named_init ni = { 4333 .number = 34, 4334 .name = L"Test wide string", 4335 .average = 543.34343, 4336 }; 4337 4338 ni.number = 58; 4339 4340 int dynamic_array[ni.number]; 4341 dynamic_array[ni.number - 1] = 543; 4342 4343 // work around unused variable warnings 4344 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4345 || dynamic_array[ni.number - 1] != 543); 4346 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4352do 4353 CC="$ac_save_CC $ac_arg" 4354 if ac_fn_c_try_compile "$LINENO"; then : 4355 ac_cv_prog_cc_c99=$ac_arg 4356fi 4357rm -f core conftest.err conftest.$ac_objext 4358 test "x$ac_cv_prog_cc_c99" != "xno" && break 4359done 4360rm -f conftest.$ac_ext 4361CC=$ac_save_CC 4362 4363fi 4364# AC_CACHE_VAL 4365case "x$ac_cv_prog_cc_c99" in 4366 x) 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4368$as_echo "none needed" >&6; } ;; 4369 xno) 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4371$as_echo "unsupported" >&6; } ;; 4372 *) 4373 CC="$CC $ac_cv_prog_cc_c99" 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4375$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4376esac 4377if test "x$ac_cv_prog_cc_c99" != xno; then : 4378 4379fi 4380 4381 4382 4383ac_ext=c 4384ac_cpp='$CPP $CPPFLAGS' 4385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4387ac_compiler_gnu=$ac_cv_c_compiler_gnu 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4389$as_echo_n "checking how to run the C preprocessor... " >&6; } 4390# On Suns, sometimes $CPP names a directory. 4391if test -n "$CPP" && test -d "$CPP"; then 4392 CPP= 4393fi 4394if test -z "$CPP"; then 4395 if ${ac_cv_prog_CPP+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 # Double quotes because CPP needs to be expanded 4399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4400 do 4401 ac_preproc_ok=false 4402for ac_c_preproc_warn_flag in '' yes 4403do 4404 # Use a header file that comes with gcc, so configuring glibc 4405 # with a fresh cross-compiler works. 4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4407 # <limits.h> exists even on freestanding compilers. 4408 # On the NeXT, cc -E runs the code through the compiler's parser, 4409 # not just through cpp. "Syntax error" is here to catch this case. 4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4411/* end confdefs.h. */ 4412#ifdef __STDC__ 4413# include <limits.h> 4414#else 4415# include <assert.h> 4416#endif 4417 Syntax error 4418_ACEOF 4419if ac_fn_c_try_cpp "$LINENO"; then : 4420 4421else 4422 # Broken: fails on valid input. 4423continue 4424fi 4425rm -f conftest.err conftest.i conftest.$ac_ext 4426 4427 # OK, works on sane cases. Now check whether nonexistent headers 4428 # can be detected and how. 4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4430/* end confdefs.h. */ 4431#include <ac_nonexistent.h> 4432_ACEOF 4433if ac_fn_c_try_cpp "$LINENO"; then : 4434 # Broken: success on invalid input. 4435continue 4436else 4437 # Passes both tests. 4438ac_preproc_ok=: 4439break 4440fi 4441rm -f conftest.err conftest.i conftest.$ac_ext 4442 4443done 4444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4445rm -f conftest.i conftest.err conftest.$ac_ext 4446if $ac_preproc_ok; then : 4447 break 4448fi 4449 4450 done 4451 ac_cv_prog_CPP=$CPP 4452 4453fi 4454 CPP=$ac_cv_prog_CPP 4455else 4456 ac_cv_prog_CPP=$CPP 4457fi 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4459$as_echo "$CPP" >&6; } 4460ac_preproc_ok=false 4461for ac_c_preproc_warn_flag in '' yes 4462do 4463 # Use a header file that comes with gcc, so configuring glibc 4464 # with a fresh cross-compiler works. 4465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4466 # <limits.h> exists even on freestanding compilers. 4467 # On the NeXT, cc -E runs the code through the compiler's parser, 4468 # not just through cpp. "Syntax error" is here to catch this case. 4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4470/* end confdefs.h. */ 4471#ifdef __STDC__ 4472# include <limits.h> 4473#else 4474# include <assert.h> 4475#endif 4476 Syntax error 4477_ACEOF 4478if ac_fn_c_try_cpp "$LINENO"; then : 4479 4480else 4481 # Broken: fails on valid input. 4482continue 4483fi 4484rm -f conftest.err conftest.i conftest.$ac_ext 4485 4486 # OK, works on sane cases. Now check whether nonexistent headers 4487 # can be detected and how. 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4489/* end confdefs.h. */ 4490#include <ac_nonexistent.h> 4491_ACEOF 4492if ac_fn_c_try_cpp "$LINENO"; then : 4493 # Broken: success on invalid input. 4494continue 4495else 4496 # Passes both tests. 4497ac_preproc_ok=: 4498break 4499fi 4500rm -f conftest.err conftest.i conftest.$ac_ext 4501 4502done 4503# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4504rm -f conftest.i conftest.err conftest.$ac_ext 4505if $ac_preproc_ok; then : 4506 4507else 4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4510as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4511See \`config.log' for more details" "$LINENO" 5; } 4512fi 4513 4514ac_ext=c 4515ac_cpp='$CPP $CPPFLAGS' 4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4518ac_compiler_gnu=$ac_cv_c_compiler_gnu 4519 4520 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4522$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4523if ${ac_cv_path_GREP+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 if test -z "$GREP"; then 4527 ac_path_GREP_found=false 4528 # Loop through the user's path and test for each of PROGNAME-LIST 4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4530for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4531do 4532 IFS=$as_save_IFS 4533 test -z "$as_dir" && as_dir=. 4534 for ac_prog in grep ggrep; do 4535 for ac_exec_ext in '' $ac_executable_extensions; do 4536 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4537 as_fn_executable_p "$ac_path_GREP" || continue 4538# Check for GNU ac_path_GREP and select it if it is found. 4539 # Check for GNU $ac_path_GREP 4540case `"$ac_path_GREP" --version 2>&1` in 4541*GNU*) 4542 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4543*) 4544 ac_count=0 4545 $as_echo_n 0123456789 >"conftest.in" 4546 while : 4547 do 4548 cat "conftest.in" "conftest.in" >"conftest.tmp" 4549 mv "conftest.tmp" "conftest.in" 4550 cp "conftest.in" "conftest.nl" 4551 $as_echo 'GREP' >> "conftest.nl" 4552 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4554 as_fn_arith $ac_count + 1 && ac_count=$as_val 4555 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4556 # Best one so far, save it but keep looking for a better one 4557 ac_cv_path_GREP="$ac_path_GREP" 4558 ac_path_GREP_max=$ac_count 4559 fi 4560 # 10*(2^10) chars as input seems more than enough 4561 test $ac_count -gt 10 && break 4562 done 4563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4564esac 4565 4566 $ac_path_GREP_found && break 3 4567 done 4568 done 4569 done 4570IFS=$as_save_IFS 4571 if test -z "$ac_cv_path_GREP"; then 4572 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4573 fi 4574else 4575 ac_cv_path_GREP=$GREP 4576fi 4577 4578fi 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4580$as_echo "$ac_cv_path_GREP" >&6; } 4581 GREP="$ac_cv_path_GREP" 4582 4583 4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4585$as_echo_n "checking for egrep... " >&6; } 4586if ${ac_cv_path_EGREP+:} false; then : 4587 $as_echo_n "(cached) " >&6 4588else 4589 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4590 then ac_cv_path_EGREP="$GREP -E" 4591 else 4592 if test -z "$EGREP"; then 4593 ac_path_EGREP_found=false 4594 # Loop through the user's path and test for each of PROGNAME-LIST 4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4597do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_prog in egrep; do 4601 for ac_exec_ext in '' $ac_executable_extensions; do 4602 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4603 as_fn_executable_p "$ac_path_EGREP" || continue 4604# Check for GNU ac_path_EGREP and select it if it is found. 4605 # Check for GNU $ac_path_EGREP 4606case `"$ac_path_EGREP" --version 2>&1` in 4607*GNU*) 4608 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4609*) 4610 ac_count=0 4611 $as_echo_n 0123456789 >"conftest.in" 4612 while : 4613 do 4614 cat "conftest.in" "conftest.in" >"conftest.tmp" 4615 mv "conftest.tmp" "conftest.in" 4616 cp "conftest.in" "conftest.nl" 4617 $as_echo 'EGREP' >> "conftest.nl" 4618 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4620 as_fn_arith $ac_count + 1 && ac_count=$as_val 4621 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4622 # Best one so far, save it but keep looking for a better one 4623 ac_cv_path_EGREP="$ac_path_EGREP" 4624 ac_path_EGREP_max=$ac_count 4625 fi 4626 # 10*(2^10) chars as input seems more than enough 4627 test $ac_count -gt 10 && break 4628 done 4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4630esac 4631 4632 $ac_path_EGREP_found && break 3 4633 done 4634 done 4635 done 4636IFS=$as_save_IFS 4637 if test -z "$ac_cv_path_EGREP"; then 4638 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4639 fi 4640else 4641 ac_cv_path_EGREP=$EGREP 4642fi 4643 4644 fi 4645fi 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4647$as_echo "$ac_cv_path_EGREP" >&6; } 4648 EGREP="$ac_cv_path_EGREP" 4649 4650 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4652$as_echo_n "checking for ANSI C header files... " >&6; } 4653if ${ac_cv_header_stdc+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655else 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658#include <stdlib.h> 4659#include <stdarg.h> 4660#include <string.h> 4661#include <float.h> 4662 4663int 4664main () 4665{ 4666 4667 ; 4668 return 0; 4669} 4670_ACEOF 4671if ac_fn_c_try_compile "$LINENO"; then : 4672 ac_cv_header_stdc=yes 4673else 4674 ac_cv_header_stdc=no 4675fi 4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4677 4678if test $ac_cv_header_stdc = yes; then 4679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4681/* end confdefs.h. */ 4682#include <string.h> 4683 4684_ACEOF 4685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4686 $EGREP "memchr" >/dev/null 2>&1; then : 4687 4688else 4689 ac_cv_header_stdc=no 4690fi 4691rm -f conftest* 4692 4693fi 4694 4695if test $ac_cv_header_stdc = yes; then 4696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4698/* end confdefs.h. */ 4699#include <stdlib.h> 4700 4701_ACEOF 4702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4703 $EGREP "free" >/dev/null 2>&1; then : 4704 4705else 4706 ac_cv_header_stdc=no 4707fi 4708rm -f conftest* 4709 4710fi 4711 4712if test $ac_cv_header_stdc = yes; then 4713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4714 if test "$cross_compiling" = yes; then : 4715 : 4716else 4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4718/* end confdefs.h. */ 4719#include <ctype.h> 4720#include <stdlib.h> 4721#if ((' ' & 0x0FF) == 0x020) 4722# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4723# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4724#else 4725# define ISLOWER(c) \ 4726 (('a' <= (c) && (c) <= 'i') \ 4727 || ('j' <= (c) && (c) <= 'r') \ 4728 || ('s' <= (c) && (c) <= 'z')) 4729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4730#endif 4731 4732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4733int 4734main () 4735{ 4736 int i; 4737 for (i = 0; i < 256; i++) 4738 if (XOR (islower (i), ISLOWER (i)) 4739 || toupper (i) != TOUPPER (i)) 4740 return 2; 4741 return 0; 4742} 4743_ACEOF 4744if ac_fn_c_try_run "$LINENO"; then : 4745 4746else 4747 ac_cv_header_stdc=no 4748fi 4749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4750 conftest.$ac_objext conftest.beam conftest.$ac_ext 4751fi 4752 4753fi 4754fi 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4756$as_echo "$ac_cv_header_stdc" >&6; } 4757if test $ac_cv_header_stdc = yes; then 4758 4759$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4760 4761fi 4762 4763# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4764for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4765 inttypes.h stdint.h unistd.h 4766do : 4767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4768ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4769" 4770if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4771 cat >>confdefs.h <<_ACEOF 4772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4773_ACEOF 4774 4775fi 4776 4777done 4778 4779 4780 4781 4782 4783 4784ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4785if test "x$ac_cv_have_decl___clang__" = xyes; then : 4786 CLANGCC="yes" 4787else 4788 CLANGCC="no" 4789fi 4790 4791ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4792if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4793 INTELCC="yes" 4794else 4795 INTELCC="no" 4796fi 4797 4798ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4799if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4800 SUNCC="yes" 4801else 4802 SUNCC="no" 4803fi 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4814 if test -n "$ac_tool_prefix"; then 4815 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4816set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4818$as_echo_n "checking for $ac_word... " >&6; } 4819if ${ac_cv_path_PKG_CONFIG+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 case $PKG_CONFIG in 4823 [\\/]* | ?:[\\/]*) 4824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4825 ;; 4826 *) 4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4828for as_dir in $PATH 4829do 4830 IFS=$as_save_IFS 4831 test -z "$as_dir" && as_dir=. 4832 for ac_exec_ext in '' $ac_executable_extensions; do 4833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4836 break 2 4837 fi 4838done 4839 done 4840IFS=$as_save_IFS 4841 4842 ;; 4843esac 4844fi 4845PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4846if test -n "$PKG_CONFIG"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4848$as_echo "$PKG_CONFIG" >&6; } 4849else 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4851$as_echo "no" >&6; } 4852fi 4853 4854 4855fi 4856if test -z "$ac_cv_path_PKG_CONFIG"; then 4857 ac_pt_PKG_CONFIG=$PKG_CONFIG 4858 # Extract the first word of "pkg-config", so it can be a program name with args. 4859set dummy pkg-config; ac_word=$2 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4861$as_echo_n "checking for $ac_word... " >&6; } 4862if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864else 4865 case $ac_pt_PKG_CONFIG in 4866 [\\/]* | ?:[\\/]*) 4867 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4868 ;; 4869 *) 4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871for as_dir in $PATH 4872do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4877 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4879 break 2 4880 fi 4881done 4882 done 4883IFS=$as_save_IFS 4884 4885 ;; 4886esac 4887fi 4888ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4889if test -n "$ac_pt_PKG_CONFIG"; then 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4891$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4892else 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4894$as_echo "no" >&6; } 4895fi 4896 4897 if test "x$ac_pt_PKG_CONFIG" = x; then 4898 PKG_CONFIG="" 4899 else 4900 case $cross_compiling:$ac_tool_warned in 4901yes:) 4902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4904ac_tool_warned=yes ;; 4905esac 4906 PKG_CONFIG=$ac_pt_PKG_CONFIG 4907 fi 4908else 4909 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4910fi 4911 4912fi 4913if test -n "$PKG_CONFIG"; then 4914 _pkg_min_version=0.9.0 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4916$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4917 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4919$as_echo "yes" >&6; } 4920 else 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4922$as_echo "no" >&6; } 4923 PKG_CONFIG="" 4924 fi 4925fi 4926# Make sure we can run config.sub. 4927$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4928 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4929 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4931$as_echo_n "checking build system type... " >&6; } 4932if ${ac_cv_build+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934else 4935 ac_build_alias=$build_alias 4936test "x$ac_build_alias" = x && 4937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4938test "x$ac_build_alias" = x && 4939 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4940ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4941 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4942 4943fi 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4945$as_echo "$ac_cv_build" >&6; } 4946case $ac_cv_build in 4947*-*-*) ;; 4948*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4949esac 4950build=$ac_cv_build 4951ac_save_IFS=$IFS; IFS='-' 4952set x $ac_cv_build 4953shift 4954build_cpu=$1 4955build_vendor=$2 4956shift; shift 4957# Remember, the first character of IFS is used to create $*, 4958# except with old shells: 4959build_os=$* 4960IFS=$ac_save_IFS 4961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4962 4963 4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4965$as_echo_n "checking host system type... " >&6; } 4966if ${ac_cv_host+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 if test "x$host_alias" = x; then 4970 ac_cv_host=$ac_cv_build 4971else 4972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4973 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4974fi 4975 4976fi 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4978$as_echo "$ac_cv_host" >&6; } 4979case $ac_cv_host in 4980*-*-*) ;; 4981*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4982esac 4983host=$ac_cv_host 4984ac_save_IFS=$IFS; IFS='-' 4985set x $ac_cv_host 4986shift 4987host_cpu=$1 4988host_vendor=$2 4989shift; shift 4990# Remember, the first character of IFS is used to create $*, 4991# except with old shells: 4992host_os=$* 4993IFS=$ac_save_IFS 4994case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4995 4996 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4998$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4999if ${ac_cv_path_SED+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5003 for ac_i in 1 2 3 4 5 6 7; do 5004 ac_script="$ac_script$as_nl$ac_script" 5005 done 5006 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5007 { ac_script=; unset ac_script;} 5008 if test -z "$SED"; then 5009 ac_path_SED_found=false 5010 # Loop through the user's path and test for each of PROGNAME-LIST 5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH 5013do 5014 IFS=$as_save_IFS 5015 test -z "$as_dir" && as_dir=. 5016 for ac_prog in sed gsed; do 5017 for ac_exec_ext in '' $ac_executable_extensions; do 5018 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5019 as_fn_executable_p "$ac_path_SED" || continue 5020# Check for GNU ac_path_SED and select it if it is found. 5021 # Check for GNU $ac_path_SED 5022case `"$ac_path_SED" --version 2>&1` in 5023*GNU*) 5024 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5025*) 5026 ac_count=0 5027 $as_echo_n 0123456789 >"conftest.in" 5028 while : 5029 do 5030 cat "conftest.in" "conftest.in" >"conftest.tmp" 5031 mv "conftest.tmp" "conftest.in" 5032 cp "conftest.in" "conftest.nl" 5033 $as_echo '' >> "conftest.nl" 5034 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5036 as_fn_arith $ac_count + 1 && ac_count=$as_val 5037 if test $ac_count -gt ${ac_path_SED_max-0}; then 5038 # Best one so far, save it but keep looking for a better one 5039 ac_cv_path_SED="$ac_path_SED" 5040 ac_path_SED_max=$ac_count 5041 fi 5042 # 10*(2^10) chars as input seems more than enough 5043 test $ac_count -gt 10 && break 5044 done 5045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5046esac 5047 5048 $ac_path_SED_found && break 3 5049 done 5050 done 5051 done 5052IFS=$as_save_IFS 5053 if test -z "$ac_cv_path_SED"; then 5054 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5055 fi 5056else 5057 ac_cv_path_SED=$SED 5058fi 5059 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5062$as_echo "$ac_cv_path_SED" >&6; } 5063 SED="$ac_cv_path_SED" 5064 rm -f conftest.sed 5065 5066 5067 5068 5069 5070 5071# Check whether --enable-selective-werror was given. 5072if test "${enable_selective_werror+set}" = set; then : 5073 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5074else 5075 SELECTIVE_WERROR=yes 5076fi 5077 5078 5079 5080 5081 5082# -v is too short to test reliably with XORG_TESTSET_CFLAG 5083if test "x$SUNCC" = "xyes"; then 5084 BASE_CFLAGS="-v" 5085else 5086 BASE_CFLAGS="" 5087fi 5088 5089# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103xorg_testset_save_CFLAGS="$CFLAGS" 5104 5105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113/* end confdefs.h. */ 5114int i; 5115_ACEOF 5116if ac_fn_c_try_compile "$LINENO"; then : 5117 xorg_cv_cc_flag_unknown_warning_option=yes 5118else 5119 xorg_cv_cc_flag_unknown_warning_option=no 5120fi 5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5122fi 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5126 CFLAGS="$xorg_testset_save_CFLAGS" 5127fi 5128 5129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5132 fi 5133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5137 $as_echo_n "(cached) " >&6 5138else 5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5140/* end confdefs.h. */ 5141int i; 5142_ACEOF 5143if ac_fn_c_try_compile "$LINENO"; then : 5144 xorg_cv_cc_flag_unused_command_line_argument=yes 5145else 5146 xorg_cv_cc_flag_unused_command_line_argument=no 5147fi 5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5149fi 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5153 CFLAGS="$xorg_testset_save_CFLAGS" 5154fi 5155 5156found="no" 5157 5158 if test $found = "no" ; then 5159 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5161 fi 5162 5163 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5165 fi 5166 5167 CFLAGS="$CFLAGS -Wall" 5168 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5 5170$as_echo_n "checking if $CC supports-Wall... " >&6; } 5171 cacheid=xorg_cv_cc_flag__Wall 5172 if eval \${$cacheid+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174else 5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5176/* end confdefs.h. */ 5177int i; 5178int 5179main () 5180{ 5181 5182 ; 5183 return 0; 5184} 5185_ACEOF 5186if ac_fn_c_try_link "$LINENO"; then : 5187 eval $cacheid=yes 5188else 5189 eval $cacheid=no 5190fi 5191rm -f core conftest.err conftest.$ac_objext \ 5192 conftest$ac_exeext conftest.$ac_ext 5193fi 5194 5195 5196 CFLAGS="$xorg_testset_save_CFLAGS" 5197 5198 eval supported=\$$cacheid 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5200$as_echo "$supported" >&6; } 5201 if test "$supported" = "yes" ; then 5202 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5203 found="yes" 5204 fi 5205 fi 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221xorg_testset_save_CFLAGS="$CFLAGS" 5222 5223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229else 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232int i; 5233_ACEOF 5234if ac_fn_c_try_compile "$LINENO"; then : 5235 xorg_cv_cc_flag_unknown_warning_option=yes 5236else 5237 xorg_cv_cc_flag_unknown_warning_option=no 5238fi 5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5240fi 5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5244 CFLAGS="$xorg_testset_save_CFLAGS" 5245fi 5246 5247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5250 fi 5251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258/* end confdefs.h. */ 5259int i; 5260_ACEOF 5261if ac_fn_c_try_compile "$LINENO"; then : 5262 xorg_cv_cc_flag_unused_command_line_argument=yes 5263else 5264 xorg_cv_cc_flag_unused_command_line_argument=no 5265fi 5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5267fi 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5271 CFLAGS="$xorg_testset_save_CFLAGS" 5272fi 5273 5274found="no" 5275 5276 if test $found = "no" ; then 5277 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5279 fi 5280 5281 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5283 fi 5284 5285 CFLAGS="$CFLAGS -Wpointer-arith" 5286 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5 5288$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; } 5289 cacheid=xorg_cv_cc_flag__Wpointer_arith 5290 if eval \${$cacheid+:} false; then : 5291 $as_echo_n "(cached) " >&6 5292else 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294/* end confdefs.h. */ 5295int i; 5296int 5297main () 5298{ 5299 5300 ; 5301 return 0; 5302} 5303_ACEOF 5304if ac_fn_c_try_link "$LINENO"; then : 5305 eval $cacheid=yes 5306else 5307 eval $cacheid=no 5308fi 5309rm -f core conftest.err conftest.$ac_objext \ 5310 conftest$ac_exeext conftest.$ac_ext 5311fi 5312 5313 5314 CFLAGS="$xorg_testset_save_CFLAGS" 5315 5316 eval supported=\$$cacheid 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5318$as_echo "$supported" >&6; } 5319 if test "$supported" = "yes" ; then 5320 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5321 found="yes" 5322 fi 5323 fi 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339xorg_testset_save_CFLAGS="$CFLAGS" 5340 5341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347else 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349/* end confdefs.h. */ 5350int i; 5351_ACEOF 5352if ac_fn_c_try_compile "$LINENO"; then : 5353 xorg_cv_cc_flag_unknown_warning_option=yes 5354else 5355 xorg_cv_cc_flag_unknown_warning_option=no 5356fi 5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5358fi 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5362 CFLAGS="$xorg_testset_save_CFLAGS" 5363fi 5364 5365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5368 fi 5369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5376/* end confdefs.h. */ 5377int i; 5378_ACEOF 5379if ac_fn_c_try_compile "$LINENO"; then : 5380 xorg_cv_cc_flag_unused_command_line_argument=yes 5381else 5382 xorg_cv_cc_flag_unused_command_line_argument=no 5383fi 5384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5385fi 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5389 CFLAGS="$xorg_testset_save_CFLAGS" 5390fi 5391 5392found="no" 5393 5394 if test $found = "no" ; then 5395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5397 fi 5398 5399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401 fi 5402 5403 CFLAGS="$CFLAGS -Wmissing-declarations" 5404 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5 5406$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; } 5407 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5408 if eval \${$cacheid+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412/* end confdefs.h. */ 5413int i; 5414int 5415main () 5416{ 5417 5418 ; 5419 return 0; 5420} 5421_ACEOF 5422if ac_fn_c_try_link "$LINENO"; then : 5423 eval $cacheid=yes 5424else 5425 eval $cacheid=no 5426fi 5427rm -f core conftest.err conftest.$ac_objext \ 5428 conftest$ac_exeext conftest.$ac_ext 5429fi 5430 5431 5432 CFLAGS="$xorg_testset_save_CFLAGS" 5433 5434 eval supported=\$$cacheid 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5436$as_echo "$supported" >&6; } 5437 if test "$supported" = "yes" ; then 5438 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5439 found="yes" 5440 fi 5441 fi 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457xorg_testset_save_CFLAGS="$CFLAGS" 5458 5459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465else 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467/* end confdefs.h. */ 5468int i; 5469_ACEOF 5470if ac_fn_c_try_compile "$LINENO"; then : 5471 xorg_cv_cc_flag_unknown_warning_option=yes 5472else 5473 xorg_cv_cc_flag_unknown_warning_option=no 5474fi 5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5476fi 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5480 CFLAGS="$xorg_testset_save_CFLAGS" 5481fi 5482 5483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5486 fi 5487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5491 $as_echo_n "(cached) " >&6 5492else 5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5494/* end confdefs.h. */ 5495int i; 5496_ACEOF 5497if ac_fn_c_try_compile "$LINENO"; then : 5498 xorg_cv_cc_flag_unused_command_line_argument=yes 5499else 5500 xorg_cv_cc_flag_unused_command_line_argument=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503fi 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5507 CFLAGS="$xorg_testset_save_CFLAGS" 5508fi 5509 5510found="no" 5511 5512 if test $found = "no" ; then 5513 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5515 fi 5516 5517 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5519 fi 5520 5521 CFLAGS="$CFLAGS -Wformat=2" 5522 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5 5524$as_echo_n "checking if $CC supports-Wformat=2... " >&6; } 5525 cacheid=xorg_cv_cc_flag__Wformat_2 5526 if eval \${$cacheid+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530/* end confdefs.h. */ 5531int i; 5532int 5533main () 5534{ 5535 5536 ; 5537 return 0; 5538} 5539_ACEOF 5540if ac_fn_c_try_link "$LINENO"; then : 5541 eval $cacheid=yes 5542else 5543 eval $cacheid=no 5544fi 5545rm -f core conftest.err conftest.$ac_objext \ 5546 conftest$ac_exeext conftest.$ac_ext 5547fi 5548 5549 5550 CFLAGS="$xorg_testset_save_CFLAGS" 5551 5552 eval supported=\$$cacheid 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5554$as_echo "$supported" >&6; } 5555 if test "$supported" = "yes" ; then 5556 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5557 found="yes" 5558 fi 5559 fi 5560 5561 if test $found = "no" ; then 5562 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5564 fi 5565 5566 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5568 fi 5569 5570 CFLAGS="$CFLAGS -Wformat" 5571 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5 5573$as_echo_n "checking if $CC supports-Wformat... " >&6; } 5574 cacheid=xorg_cv_cc_flag__Wformat 5575 if eval \${$cacheid+:} false; then : 5576 $as_echo_n "(cached) " >&6 5577else 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580int i; 5581int 5582main () 5583{ 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589if ac_fn_c_try_link "$LINENO"; then : 5590 eval $cacheid=yes 5591else 5592 eval $cacheid=no 5593fi 5594rm -f core conftest.err conftest.$ac_objext \ 5595 conftest$ac_exeext conftest.$ac_ext 5596fi 5597 5598 5599 CFLAGS="$xorg_testset_save_CFLAGS" 5600 5601 eval supported=\$$cacheid 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5603$as_echo "$supported" >&6; } 5604 if test "$supported" = "yes" ; then 5605 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5606 found="yes" 5607 fi 5608 fi 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626xorg_testset_save_CFLAGS="$CFLAGS" 5627 5628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5631$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5632if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634else 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637int i; 5638_ACEOF 5639if ac_fn_c_try_compile "$LINENO"; then : 5640 xorg_cv_cc_flag_unknown_warning_option=yes 5641else 5642 xorg_cv_cc_flag_unknown_warning_option=no 5643fi 5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5645fi 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5647$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5649 CFLAGS="$xorg_testset_save_CFLAGS" 5650fi 5651 5652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5655 fi 5656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5658$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5659if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5660 $as_echo_n "(cached) " >&6 5661else 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663/* end confdefs.h. */ 5664int i; 5665_ACEOF 5666if ac_fn_c_try_compile "$LINENO"; then : 5667 xorg_cv_cc_flag_unused_command_line_argument=yes 5668else 5669 xorg_cv_cc_flag_unused_command_line_argument=no 5670fi 5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5672fi 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5674$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5676 CFLAGS="$xorg_testset_save_CFLAGS" 5677fi 5678 5679found="no" 5680 5681 if test $found = "no" ; then 5682 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5684 fi 5685 5686 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5688 fi 5689 5690 CFLAGS="$CFLAGS -Wstrict-prototypes" 5691 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5 5693$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; } 5694 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5695 if eval \${$cacheid+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699/* end confdefs.h. */ 5700int i; 5701int 5702main () 5703{ 5704 5705 ; 5706 return 0; 5707} 5708_ACEOF 5709if ac_fn_c_try_link "$LINENO"; then : 5710 eval $cacheid=yes 5711else 5712 eval $cacheid=no 5713fi 5714rm -f core conftest.err conftest.$ac_objext \ 5715 conftest$ac_exeext conftest.$ac_ext 5716fi 5717 5718 5719 CFLAGS="$xorg_testset_save_CFLAGS" 5720 5721 eval supported=\$$cacheid 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5723$as_echo "$supported" >&6; } 5724 if test "$supported" = "yes" ; then 5725 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5726 found="yes" 5727 fi 5728 fi 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744xorg_testset_save_CFLAGS="$CFLAGS" 5745 5746if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5749$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5750if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5751 $as_echo_n "(cached) " >&6 5752else 5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5754/* end confdefs.h. */ 5755int i; 5756_ACEOF 5757if ac_fn_c_try_compile "$LINENO"; then : 5758 xorg_cv_cc_flag_unknown_warning_option=yes 5759else 5760 xorg_cv_cc_flag_unknown_warning_option=no 5761fi 5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5763fi 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5765$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5767 CFLAGS="$xorg_testset_save_CFLAGS" 5768fi 5769 5770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5773 fi 5774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5776$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5777if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5778 $as_echo_n "(cached) " >&6 5779else 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781/* end confdefs.h. */ 5782int i; 5783_ACEOF 5784if ac_fn_c_try_compile "$LINENO"; then : 5785 xorg_cv_cc_flag_unused_command_line_argument=yes 5786else 5787 xorg_cv_cc_flag_unused_command_line_argument=no 5788fi 5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5790fi 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5792$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5794 CFLAGS="$xorg_testset_save_CFLAGS" 5795fi 5796 5797found="no" 5798 5799 if test $found = "no" ; then 5800 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5802 fi 5803 5804 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5806 fi 5807 5808 CFLAGS="$CFLAGS -Wmissing-prototypes" 5809 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5 5811$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; } 5812 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5813 if eval \${$cacheid+:} false; then : 5814 $as_echo_n "(cached) " >&6 5815else 5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817/* end confdefs.h. */ 5818int i; 5819int 5820main () 5821{ 5822 5823 ; 5824 return 0; 5825} 5826_ACEOF 5827if ac_fn_c_try_link "$LINENO"; then : 5828 eval $cacheid=yes 5829else 5830 eval $cacheid=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext \ 5833 conftest$ac_exeext conftest.$ac_ext 5834fi 5835 5836 5837 CFLAGS="$xorg_testset_save_CFLAGS" 5838 5839 eval supported=\$$cacheid 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5841$as_echo "$supported" >&6; } 5842 if test "$supported" = "yes" ; then 5843 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5844 found="yes" 5845 fi 5846 fi 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862xorg_testset_save_CFLAGS="$CFLAGS" 5863 5864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5867$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5868if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870else 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872/* end confdefs.h. */ 5873int i; 5874_ACEOF 5875if ac_fn_c_try_compile "$LINENO"; then : 5876 xorg_cv_cc_flag_unknown_warning_option=yes 5877else 5878 xorg_cv_cc_flag_unknown_warning_option=no 5879fi 5880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5881fi 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5883$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5885 CFLAGS="$xorg_testset_save_CFLAGS" 5886fi 5887 5888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 fi 5892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5894$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5895if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899/* end confdefs.h. */ 5900int i; 5901_ACEOF 5902if ac_fn_c_try_compile "$LINENO"; then : 5903 xorg_cv_cc_flag_unused_command_line_argument=yes 5904else 5905 xorg_cv_cc_flag_unused_command_line_argument=no 5906fi 5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5908fi 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5910$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913fi 5914 5915found="no" 5916 5917 if test $found = "no" ; then 5918 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 fi 5921 5922 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5924 fi 5925 5926 CFLAGS="$CFLAGS -Wnested-externs" 5927 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5 5929$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; } 5930 cacheid=xorg_cv_cc_flag__Wnested_externs 5931 if eval \${$cacheid+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935/* end confdefs.h. */ 5936int i; 5937int 5938main () 5939{ 5940 5941 ; 5942 return 0; 5943} 5944_ACEOF 5945if ac_fn_c_try_link "$LINENO"; then : 5946 eval $cacheid=yes 5947else 5948 eval $cacheid=no 5949fi 5950rm -f core conftest.err conftest.$ac_objext \ 5951 conftest$ac_exeext conftest.$ac_ext 5952fi 5953 5954 5955 CFLAGS="$xorg_testset_save_CFLAGS" 5956 5957 eval supported=\$$cacheid 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5959$as_echo "$supported" >&6; } 5960 if test "$supported" = "yes" ; then 5961 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5962 found="yes" 5963 fi 5964 fi 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980xorg_testset_save_CFLAGS="$CFLAGS" 5981 5982if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5985$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5986if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988else 5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5990/* end confdefs.h. */ 5991int i; 5992_ACEOF 5993if ac_fn_c_try_compile "$LINENO"; then : 5994 xorg_cv_cc_flag_unknown_warning_option=yes 5995else 5996 xorg_cv_cc_flag_unknown_warning_option=no 5997fi 5998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5999fi 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6001$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6003 CFLAGS="$xorg_testset_save_CFLAGS" 6004fi 6005 6006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6009 fi 6010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6012$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6013if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6014 $as_echo_n "(cached) " >&6 6015else 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017/* end confdefs.h. */ 6018int i; 6019_ACEOF 6020if ac_fn_c_try_compile "$LINENO"; then : 6021 xorg_cv_cc_flag_unused_command_line_argument=yes 6022else 6023 xorg_cv_cc_flag_unused_command_line_argument=no 6024fi 6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6026fi 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6028$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6030 CFLAGS="$xorg_testset_save_CFLAGS" 6031fi 6032 6033found="no" 6034 6035 if test $found = "no" ; then 6036 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6038 fi 6039 6040 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6042 fi 6043 6044 CFLAGS="$CFLAGS -Wbad-function-cast" 6045 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5 6047$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; } 6048 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6049 if eval \${$cacheid+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053/* end confdefs.h. */ 6054int i; 6055int 6056main () 6057{ 6058 6059 ; 6060 return 0; 6061} 6062_ACEOF 6063if ac_fn_c_try_link "$LINENO"; then : 6064 eval $cacheid=yes 6065else 6066 eval $cacheid=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext \ 6069 conftest$ac_exeext conftest.$ac_ext 6070fi 6071 6072 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074 6075 eval supported=\$$cacheid 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6077$as_echo "$supported" >&6; } 6078 if test "$supported" = "yes" ; then 6079 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6080 found="yes" 6081 fi 6082 fi 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098xorg_testset_save_CFLAGS="$CFLAGS" 6099 6100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109int i; 6110_ACEOF 6111if ac_fn_c_try_compile "$LINENO"; then : 6112 xorg_cv_cc_flag_unknown_warning_option=yes 6113else 6114 xorg_cv_cc_flag_unknown_warning_option=no 6115fi 6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6117fi 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6121 CFLAGS="$xorg_testset_save_CFLAGS" 6122fi 6123 6124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6127 fi 6128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135/* end confdefs.h. */ 6136int i; 6137_ACEOF 6138if ac_fn_c_try_compile "$LINENO"; then : 6139 xorg_cv_cc_flag_unused_command_line_argument=yes 6140else 6141 xorg_cv_cc_flag_unused_command_line_argument=no 6142fi 6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6144fi 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6148 CFLAGS="$xorg_testset_save_CFLAGS" 6149fi 6150 6151found="no" 6152 6153 if test $found = "no" ; then 6154 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6156 fi 6157 6158 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6160 fi 6161 6162 CFLAGS="$CFLAGS -Wold-style-definition" 6163 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5 6165$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; } 6166 cacheid=xorg_cv_cc_flag__Wold_style_definition 6167 if eval \${$cacheid+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171/* end confdefs.h. */ 6172int i; 6173int 6174main () 6175{ 6176 6177 ; 6178 return 0; 6179} 6180_ACEOF 6181if ac_fn_c_try_link "$LINENO"; then : 6182 eval $cacheid=yes 6183else 6184 eval $cacheid=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext \ 6187 conftest$ac_exeext conftest.$ac_ext 6188fi 6189 6190 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192 6193 eval supported=\$$cacheid 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6195$as_echo "$supported" >&6; } 6196 if test "$supported" = "yes" ; then 6197 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6198 found="yes" 6199 fi 6200 fi 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216xorg_testset_save_CFLAGS="$CFLAGS" 6217 6218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224else 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227int i; 6228_ACEOF 6229if ac_fn_c_try_compile "$LINENO"; then : 6230 xorg_cv_cc_flag_unknown_warning_option=yes 6231else 6232 xorg_cv_cc_flag_unknown_warning_option=no 6233fi 6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6235fi 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6239 CFLAGS="$xorg_testset_save_CFLAGS" 6240fi 6241 6242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6245 fi 6246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251else 6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6253/* end confdefs.h. */ 6254int i; 6255_ACEOF 6256if ac_fn_c_try_compile "$LINENO"; then : 6257 xorg_cv_cc_flag_unused_command_line_argument=yes 6258else 6259 xorg_cv_cc_flag_unused_command_line_argument=no 6260fi 6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6262fi 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6265 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6266 CFLAGS="$xorg_testset_save_CFLAGS" 6267fi 6268 6269found="no" 6270 6271 if test $found = "no" ; then 6272 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6274 fi 6275 6276 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6278 fi 6279 6280 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6281 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5 6283$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; } 6284 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6285 if eval \${$cacheid+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289/* end confdefs.h. */ 6290int i; 6291int 6292main () 6293{ 6294 6295 ; 6296 return 0; 6297} 6298_ACEOF 6299if ac_fn_c_try_link "$LINENO"; then : 6300 eval $cacheid=yes 6301else 6302 eval $cacheid=no 6303fi 6304rm -f core conftest.err conftest.$ac_objext \ 6305 conftest$ac_exeext conftest.$ac_ext 6306fi 6307 6308 6309 CFLAGS="$xorg_testset_save_CFLAGS" 6310 6311 eval supported=\$$cacheid 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6313$as_echo "$supported" >&6; } 6314 if test "$supported" = "yes" ; then 6315 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6316 found="yes" 6317 fi 6318 fi 6319 6320 6321 6322 6323 6324# This chunk adds additional warnings that could catch undesired effects. 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338xorg_testset_save_CFLAGS="$CFLAGS" 6339 6340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6343$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6344if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349int i; 6350_ACEOF 6351if ac_fn_c_try_compile "$LINENO"; then : 6352 xorg_cv_cc_flag_unknown_warning_option=yes 6353else 6354 xorg_cv_cc_flag_unknown_warning_option=no 6355fi 6356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6359$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6361 CFLAGS="$xorg_testset_save_CFLAGS" 6362fi 6363 6364if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6367 fi 6368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6370$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6371if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6372 $as_echo_n "(cached) " >&6 6373else 6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6375/* end confdefs.h. */ 6376int i; 6377_ACEOF 6378if ac_fn_c_try_compile "$LINENO"; then : 6379 xorg_cv_cc_flag_unused_command_line_argument=yes 6380else 6381 xorg_cv_cc_flag_unused_command_line_argument=no 6382fi 6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6384fi 6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6386$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6388 CFLAGS="$xorg_testset_save_CFLAGS" 6389fi 6390 6391found="no" 6392 6393 if test $found = "no" ; then 6394 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6396 fi 6397 6398 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6400 fi 6401 6402 CFLAGS="$CFLAGS -Wunused" 6403 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5 6405$as_echo_n "checking if $CC supports-Wunused... " >&6; } 6406 cacheid=xorg_cv_cc_flag__Wunused 6407 if eval \${$cacheid+:} false; then : 6408 $as_echo_n "(cached) " >&6 6409else 6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411/* end confdefs.h. */ 6412int i; 6413int 6414main () 6415{ 6416 6417 ; 6418 return 0; 6419} 6420_ACEOF 6421if ac_fn_c_try_link "$LINENO"; then : 6422 eval $cacheid=yes 6423else 6424 eval $cacheid=no 6425fi 6426rm -f core conftest.err conftest.$ac_objext \ 6427 conftest$ac_exeext conftest.$ac_ext 6428fi 6429 6430 6431 CFLAGS="$xorg_testset_save_CFLAGS" 6432 6433 eval supported=\$$cacheid 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6435$as_echo "$supported" >&6; } 6436 if test "$supported" = "yes" ; then 6437 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6438 found="yes" 6439 fi 6440 fi 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456xorg_testset_save_CFLAGS="$CFLAGS" 6457 6458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6461$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6462if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6466/* end confdefs.h. */ 6467int i; 6468_ACEOF 6469if ac_fn_c_try_compile "$LINENO"; then : 6470 xorg_cv_cc_flag_unknown_warning_option=yes 6471else 6472 xorg_cv_cc_flag_unknown_warning_option=no 6473fi 6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6475fi 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6477$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6479 CFLAGS="$xorg_testset_save_CFLAGS" 6480fi 6481 6482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6485 fi 6486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6488$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6489if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6490 $as_echo_n "(cached) " >&6 6491else 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493/* end confdefs.h. */ 6494int i; 6495_ACEOF 6496if ac_fn_c_try_compile "$LINENO"; then : 6497 xorg_cv_cc_flag_unused_command_line_argument=yes 6498else 6499 xorg_cv_cc_flag_unused_command_line_argument=no 6500fi 6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6502fi 6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6504$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6506 CFLAGS="$xorg_testset_save_CFLAGS" 6507fi 6508 6509found="no" 6510 6511 if test $found = "no" ; then 6512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6514 fi 6515 6516 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6518 fi 6519 6520 CFLAGS="$CFLAGS -Wuninitialized" 6521 6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5 6523$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; } 6524 cacheid=xorg_cv_cc_flag__Wuninitialized 6525 if eval \${$cacheid+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530int i; 6531int 6532main () 6533{ 6534 6535 ; 6536 return 0; 6537} 6538_ACEOF 6539if ac_fn_c_try_link "$LINENO"; then : 6540 eval $cacheid=yes 6541else 6542 eval $cacheid=no 6543fi 6544rm -f core conftest.err conftest.$ac_objext \ 6545 conftest$ac_exeext conftest.$ac_ext 6546fi 6547 6548 6549 CFLAGS="$xorg_testset_save_CFLAGS" 6550 6551 eval supported=\$$cacheid 6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6553$as_echo "$supported" >&6; } 6554 if test "$supported" = "yes" ; then 6555 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6556 found="yes" 6557 fi 6558 fi 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574xorg_testset_save_CFLAGS="$CFLAGS" 6575 6576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6579$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6580if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584/* end confdefs.h. */ 6585int i; 6586_ACEOF 6587if ac_fn_c_try_compile "$LINENO"; then : 6588 xorg_cv_cc_flag_unknown_warning_option=yes 6589else 6590 xorg_cv_cc_flag_unknown_warning_option=no 6591fi 6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6593fi 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6595$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6597 CFLAGS="$xorg_testset_save_CFLAGS" 6598fi 6599 6600if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6603 fi 6604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6606$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6607if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611/* end confdefs.h. */ 6612int i; 6613_ACEOF 6614if ac_fn_c_try_compile "$LINENO"; then : 6615 xorg_cv_cc_flag_unused_command_line_argument=yes 6616else 6617 xorg_cv_cc_flag_unused_command_line_argument=no 6618fi 6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6620fi 6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6622$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6624 CFLAGS="$xorg_testset_save_CFLAGS" 6625fi 6626 6627found="no" 6628 6629 if test $found = "no" ; then 6630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 fi 6633 6634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6636 fi 6637 6638 CFLAGS="$CFLAGS -Wshadow" 6639 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5 6641$as_echo_n "checking if $CC supports-Wshadow... " >&6; } 6642 cacheid=xorg_cv_cc_flag__Wshadow 6643 if eval \${$cacheid+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648int i; 6649int 6650main () 6651{ 6652 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657if ac_fn_c_try_link "$LINENO"; then : 6658 eval $cacheid=yes 6659else 6660 eval $cacheid=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext \ 6663 conftest$ac_exeext conftest.$ac_ext 6664fi 6665 6666 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668 6669 eval supported=\$$cacheid 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6671$as_echo "$supported" >&6; } 6672 if test "$supported" = "yes" ; then 6673 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6674 found="yes" 6675 fi 6676 fi 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692xorg_testset_save_CFLAGS="$CFLAGS" 6693 6694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6697$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6698if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700else 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702/* end confdefs.h. */ 6703int i; 6704_ACEOF 6705if ac_fn_c_try_compile "$LINENO"; then : 6706 xorg_cv_cc_flag_unknown_warning_option=yes 6707else 6708 xorg_cv_cc_flag_unknown_warning_option=no 6709fi 6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6711fi 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6713$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6715 CFLAGS="$xorg_testset_save_CFLAGS" 6716fi 6717 6718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6721 fi 6722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6724$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6725if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6726 $as_echo_n "(cached) " >&6 6727else 6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6729/* end confdefs.h. */ 6730int i; 6731_ACEOF 6732if ac_fn_c_try_compile "$LINENO"; then : 6733 xorg_cv_cc_flag_unused_command_line_argument=yes 6734else 6735 xorg_cv_cc_flag_unused_command_line_argument=no 6736fi 6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6738fi 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6740$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6742 CFLAGS="$xorg_testset_save_CFLAGS" 6743fi 6744 6745found="no" 6746 6747 if test $found = "no" ; then 6748 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6750 fi 6751 6752 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6754 fi 6755 6756 CFLAGS="$CFLAGS -Wcast-qual" 6757 6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5 6759$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; } 6760 cacheid=xorg_cv_cc_flag__Wcast_qual 6761 if eval \${$cacheid+:} false; then : 6762 $as_echo_n "(cached) " >&6 6763else 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765/* end confdefs.h. */ 6766int i; 6767int 6768main () 6769{ 6770 6771 ; 6772 return 0; 6773} 6774_ACEOF 6775if ac_fn_c_try_link "$LINENO"; then : 6776 eval $cacheid=yes 6777else 6778 eval $cacheid=no 6779fi 6780rm -f core conftest.err conftest.$ac_objext \ 6781 conftest$ac_exeext conftest.$ac_ext 6782fi 6783 6784 6785 CFLAGS="$xorg_testset_save_CFLAGS" 6786 6787 eval supported=\$$cacheid 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6789$as_echo "$supported" >&6; } 6790 if test "$supported" = "yes" ; then 6791 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6792 found="yes" 6793 fi 6794 fi 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810xorg_testset_save_CFLAGS="$CFLAGS" 6811 6812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6815$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6816if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818else 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820/* end confdefs.h. */ 6821int i; 6822_ACEOF 6823if ac_fn_c_try_compile "$LINENO"; then : 6824 xorg_cv_cc_flag_unknown_warning_option=yes 6825else 6826 xorg_cv_cc_flag_unknown_warning_option=no 6827fi 6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6829fi 6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6831$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6833 CFLAGS="$xorg_testset_save_CFLAGS" 6834fi 6835 6836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6839 fi 6840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6842$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6843if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845else 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847/* end confdefs.h. */ 6848int i; 6849_ACEOF 6850if ac_fn_c_try_compile "$LINENO"; then : 6851 xorg_cv_cc_flag_unused_command_line_argument=yes 6852else 6853 xorg_cv_cc_flag_unused_command_line_argument=no 6854fi 6855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6856fi 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6858$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6860 CFLAGS="$xorg_testset_save_CFLAGS" 6861fi 6862 6863found="no" 6864 6865 if test $found = "no" ; then 6866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6868 fi 6869 6870 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6872 fi 6873 6874 CFLAGS="$CFLAGS -Wmissing-noreturn" 6875 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5 6877$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; } 6878 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6879 if eval \${$cacheid+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881else 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884int i; 6885int 6886main () 6887{ 6888 6889 ; 6890 return 0; 6891} 6892_ACEOF 6893if ac_fn_c_try_link "$LINENO"; then : 6894 eval $cacheid=yes 6895else 6896 eval $cacheid=no 6897fi 6898rm -f core conftest.err conftest.$ac_objext \ 6899 conftest$ac_exeext conftest.$ac_ext 6900fi 6901 6902 6903 CFLAGS="$xorg_testset_save_CFLAGS" 6904 6905 eval supported=\$$cacheid 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6907$as_echo "$supported" >&6; } 6908 if test "$supported" = "yes" ; then 6909 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6910 found="yes" 6911 fi 6912 fi 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928xorg_testset_save_CFLAGS="$CFLAGS" 6929 6930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939int i; 6940_ACEOF 6941if ac_fn_c_try_compile "$LINENO"; then : 6942 xorg_cv_cc_flag_unknown_warning_option=yes 6943else 6944 xorg_cv_cc_flag_unknown_warning_option=no 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6947fi 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6951 CFLAGS="$xorg_testset_save_CFLAGS" 6952fi 6953 6954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6957 fi 6958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966int i; 6967_ACEOF 6968if ac_fn_c_try_compile "$LINENO"; then : 6969 xorg_cv_cc_flag_unused_command_line_argument=yes 6970else 6971 xorg_cv_cc_flag_unused_command_line_argument=no 6972fi 6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6974fi 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6978 CFLAGS="$xorg_testset_save_CFLAGS" 6979fi 6980 6981found="no" 6982 6983 if test $found = "no" ; then 6984 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6986 fi 6987 6988 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6990 fi 6991 6992 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6993 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5 6995$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; } 6996 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6997 if eval \${$cacheid+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002int i; 7003int 7004main () 7005{ 7006 7007 ; 7008 return 0; 7009} 7010_ACEOF 7011if ac_fn_c_try_link "$LINENO"; then : 7012 eval $cacheid=yes 7013else 7014 eval $cacheid=no 7015fi 7016rm -f core conftest.err conftest.$ac_objext \ 7017 conftest$ac_exeext conftest.$ac_ext 7018fi 7019 7020 7021 CFLAGS="$xorg_testset_save_CFLAGS" 7022 7023 eval supported=\$$cacheid 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7025$as_echo "$supported" >&6; } 7026 if test "$supported" = "yes" ; then 7027 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7028 found="yes" 7029 fi 7030 fi 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046xorg_testset_save_CFLAGS="$CFLAGS" 7047 7048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7051$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7052if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056/* end confdefs.h. */ 7057int i; 7058_ACEOF 7059if ac_fn_c_try_compile "$LINENO"; then : 7060 xorg_cv_cc_flag_unknown_warning_option=yes 7061else 7062 xorg_cv_cc_flag_unknown_warning_option=no 7063fi 7064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7065fi 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7067$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7069 CFLAGS="$xorg_testset_save_CFLAGS" 7070fi 7071 7072if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7075 fi 7076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7078$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7079if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084int i; 7085_ACEOF 7086if ac_fn_c_try_compile "$LINENO"; then : 7087 xorg_cv_cc_flag_unused_command_line_argument=yes 7088else 7089 xorg_cv_cc_flag_unused_command_line_argument=no 7090fi 7091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7092fi 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7094$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7096 CFLAGS="$xorg_testset_save_CFLAGS" 7097fi 7098 7099found="no" 7100 7101 if test $found = "no" ; then 7102 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7104 fi 7105 7106 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7108 fi 7109 7110 CFLAGS="$CFLAGS -Wredundant-decls" 7111 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5 7113$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; } 7114 cacheid=xorg_cv_cc_flag__Wredundant_decls 7115 if eval \${$cacheid+:} false; then : 7116 $as_echo_n "(cached) " >&6 7117else 7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7119/* end confdefs.h. */ 7120int i; 7121int 7122main () 7123{ 7124 7125 ; 7126 return 0; 7127} 7128_ACEOF 7129if ac_fn_c_try_link "$LINENO"; then : 7130 eval $cacheid=yes 7131else 7132 eval $cacheid=no 7133fi 7134rm -f core conftest.err conftest.$ac_objext \ 7135 conftest$ac_exeext conftest.$ac_ext 7136fi 7137 7138 7139 CFLAGS="$xorg_testset_save_CFLAGS" 7140 7141 eval supported=\$$cacheid 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7143$as_echo "$supported" >&6; } 7144 if test "$supported" = "yes" ; then 7145 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7146 found="yes" 7147 fi 7148 fi 7149 7150 7151 7152# These are currently disabled because they are noisy. They will be enabled 7153# in the future once the codebase is sufficiently modernized to silence 7154# them. For now, I don't want them to drown out the other warnings. 7155# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 7156# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7157# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7158 7159# Turn some warnings into errors, so we don't accidently get successful builds 7160# when there are problems that should be fixed. 7161 7162if test "x$SELECTIVE_WERROR" = "xyes" ; then 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176xorg_testset_save_CFLAGS="$CFLAGS" 7177 7178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7181$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7182if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7183 $as_echo_n "(cached) " >&6 7184else 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186/* end confdefs.h. */ 7187int i; 7188_ACEOF 7189if ac_fn_c_try_compile "$LINENO"; then : 7190 xorg_cv_cc_flag_unknown_warning_option=yes 7191else 7192 xorg_cv_cc_flag_unknown_warning_option=no 7193fi 7194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7195fi 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7197$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7199 CFLAGS="$xorg_testset_save_CFLAGS" 7200fi 7201 7202if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7205 fi 7206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7208$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7209if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7210 $as_echo_n "(cached) " >&6 7211else 7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213/* end confdefs.h. */ 7214int i; 7215_ACEOF 7216if ac_fn_c_try_compile "$LINENO"; then : 7217 xorg_cv_cc_flag_unused_command_line_argument=yes 7218else 7219 xorg_cv_cc_flag_unused_command_line_argument=no 7220fi 7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222fi 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7224$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227fi 7228 7229found="no" 7230 7231 if test $found = "no" ; then 7232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 fi 7235 7236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7238 fi 7239 7240 CFLAGS="$CFLAGS -Werror=implicit" 7241 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5 7243$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; } 7244 cacheid=xorg_cv_cc_flag__Werror_implicit 7245 if eval \${$cacheid+:} false; then : 7246 $as_echo_n "(cached) " >&6 7247else 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249/* end confdefs.h. */ 7250int i; 7251int 7252main () 7253{ 7254 7255 ; 7256 return 0; 7257} 7258_ACEOF 7259if ac_fn_c_try_link "$LINENO"; then : 7260 eval $cacheid=yes 7261else 7262 eval $cacheid=no 7263fi 7264rm -f core conftest.err conftest.$ac_objext \ 7265 conftest$ac_exeext conftest.$ac_ext 7266fi 7267 7268 7269 CFLAGS="$xorg_testset_save_CFLAGS" 7270 7271 eval supported=\$$cacheid 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7273$as_echo "$supported" >&6; } 7274 if test "$supported" = "yes" ; then 7275 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7276 found="yes" 7277 fi 7278 fi 7279 7280 if test $found = "no" ; then 7281 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7283 fi 7284 7285 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7287 fi 7288 7289 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7290 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7292$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7293 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7294 if eval \${$cacheid+:} false; then : 7295 $as_echo_n "(cached) " >&6 7296else 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298/* end confdefs.h. */ 7299int i; 7300int 7301main () 7302{ 7303 7304 ; 7305 return 0; 7306} 7307_ACEOF 7308if ac_fn_c_try_link "$LINENO"; then : 7309 eval $cacheid=yes 7310else 7311 eval $cacheid=no 7312fi 7313rm -f core conftest.err conftest.$ac_objext \ 7314 conftest$ac_exeext conftest.$ac_ext 7315fi 7316 7317 7318 CFLAGS="$xorg_testset_save_CFLAGS" 7319 7320 eval supported=\$$cacheid 7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7322$as_echo "$supported" >&6; } 7323 if test "$supported" = "yes" ; then 7324 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7325 found="yes" 7326 fi 7327 fi 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343xorg_testset_save_CFLAGS="$CFLAGS" 7344 7345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353/* end confdefs.h. */ 7354int i; 7355_ACEOF 7356if ac_fn_c_try_compile "$LINENO"; then : 7357 xorg_cv_cc_flag_unknown_warning_option=yes 7358else 7359 xorg_cv_cc_flag_unknown_warning_option=no 7360fi 7361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7362fi 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7366 CFLAGS="$xorg_testset_save_CFLAGS" 7367fi 7368 7369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 fi 7373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378else 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381int i; 7382_ACEOF 7383if ac_fn_c_try_compile "$LINENO"; then : 7384 xorg_cv_cc_flag_unused_command_line_argument=yes 7385else 7386 xorg_cv_cc_flag_unused_command_line_argument=no 7387fi 7388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7389fi 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7393 CFLAGS="$xorg_testset_save_CFLAGS" 7394fi 7395 7396found="no" 7397 7398 if test $found = "no" ; then 7399 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7401 fi 7402 7403 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7405 fi 7406 7407 CFLAGS="$CFLAGS -Werror=nonnull" 7408 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5 7410$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; } 7411 cacheid=xorg_cv_cc_flag__Werror_nonnull 7412 if eval \${$cacheid+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416/* end confdefs.h. */ 7417int i; 7418int 7419main () 7420{ 7421 7422 ; 7423 return 0; 7424} 7425_ACEOF 7426if ac_fn_c_try_link "$LINENO"; then : 7427 eval $cacheid=yes 7428else 7429 eval $cacheid=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext \ 7432 conftest$ac_exeext conftest.$ac_ext 7433fi 7434 7435 7436 CFLAGS="$xorg_testset_save_CFLAGS" 7437 7438 eval supported=\$$cacheid 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7440$as_echo "$supported" >&6; } 7441 if test "$supported" = "yes" ; then 7442 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7443 found="yes" 7444 fi 7445 fi 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461xorg_testset_save_CFLAGS="$CFLAGS" 7462 7463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7468 $as_echo_n "(cached) " >&6 7469else 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472int i; 7473_ACEOF 7474if ac_fn_c_try_compile "$LINENO"; then : 7475 xorg_cv_cc_flag_unknown_warning_option=yes 7476else 7477 xorg_cv_cc_flag_unknown_warning_option=no 7478fi 7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7480fi 7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7484 CFLAGS="$xorg_testset_save_CFLAGS" 7485fi 7486 7487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 fi 7491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496else 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7498/* end confdefs.h. */ 7499int i; 7500_ACEOF 7501if ac_fn_c_try_compile "$LINENO"; then : 7502 xorg_cv_cc_flag_unused_command_line_argument=yes 7503else 7504 xorg_cv_cc_flag_unused_command_line_argument=no 7505fi 7506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7507fi 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7511 CFLAGS="$xorg_testset_save_CFLAGS" 7512fi 7513 7514found="no" 7515 7516 if test $found = "no" ; then 7517 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7519 fi 7520 7521 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 fi 7524 7525 CFLAGS="$CFLAGS -Werror=init-self" 7526 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5 7528$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; } 7529 cacheid=xorg_cv_cc_flag__Werror_init_self 7530 if eval \${$cacheid+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535int i; 7536int 7537main () 7538{ 7539 7540 ; 7541 return 0; 7542} 7543_ACEOF 7544if ac_fn_c_try_link "$LINENO"; then : 7545 eval $cacheid=yes 7546else 7547 eval $cacheid=no 7548fi 7549rm -f core conftest.err conftest.$ac_objext \ 7550 conftest$ac_exeext conftest.$ac_ext 7551fi 7552 7553 7554 CFLAGS="$xorg_testset_save_CFLAGS" 7555 7556 eval supported=\$$cacheid 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7558$as_echo "$supported" >&6; } 7559 if test "$supported" = "yes" ; then 7560 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7561 found="yes" 7562 fi 7563 fi 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579xorg_testset_save_CFLAGS="$CFLAGS" 7580 7581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587else 7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589/* end confdefs.h. */ 7590int i; 7591_ACEOF 7592if ac_fn_c_try_compile "$LINENO"; then : 7593 xorg_cv_cc_flag_unknown_warning_option=yes 7594else 7595 xorg_cv_cc_flag_unknown_warning_option=no 7596fi 7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7598fi 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7602 CFLAGS="$xorg_testset_save_CFLAGS" 7603fi 7604 7605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7608 fi 7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7613 $as_echo_n "(cached) " >&6 7614else 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616/* end confdefs.h. */ 7617int i; 7618_ACEOF 7619if ac_fn_c_try_compile "$LINENO"; then : 7620 xorg_cv_cc_flag_unused_command_line_argument=yes 7621else 7622 xorg_cv_cc_flag_unused_command_line_argument=no 7623fi 7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7625fi 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7629 CFLAGS="$xorg_testset_save_CFLAGS" 7630fi 7631 7632found="no" 7633 7634 if test $found = "no" ; then 7635 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7637 fi 7638 7639 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7641 fi 7642 7643 CFLAGS="$CFLAGS -Werror=main" 7644 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5 7646$as_echo_n "checking if $CC supports-Werror=main... " >&6; } 7647 cacheid=xorg_cv_cc_flag__Werror_main 7648 if eval \${$cacheid+:} false; then : 7649 $as_echo_n "(cached) " >&6 7650else 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652/* end confdefs.h. */ 7653int i; 7654int 7655main () 7656{ 7657 7658 ; 7659 return 0; 7660} 7661_ACEOF 7662if ac_fn_c_try_link "$LINENO"; then : 7663 eval $cacheid=yes 7664else 7665 eval $cacheid=no 7666fi 7667rm -f core conftest.err conftest.$ac_objext \ 7668 conftest$ac_exeext conftest.$ac_ext 7669fi 7670 7671 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673 7674 eval supported=\$$cacheid 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7676$as_echo "$supported" >&6; } 7677 if test "$supported" = "yes" ; then 7678 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7679 found="yes" 7680 fi 7681 fi 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697xorg_testset_save_CFLAGS="$CFLAGS" 7698 7699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7704 $as_echo_n "(cached) " >&6 7705else 7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707/* end confdefs.h. */ 7708int i; 7709_ACEOF 7710if ac_fn_c_try_compile "$LINENO"; then : 7711 xorg_cv_cc_flag_unknown_warning_option=yes 7712else 7713 xorg_cv_cc_flag_unknown_warning_option=no 7714fi 7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7716fi 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7720 CFLAGS="$xorg_testset_save_CFLAGS" 7721fi 7722 7723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7726 fi 7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735int i; 7736_ACEOF 7737if ac_fn_c_try_compile "$LINENO"; then : 7738 xorg_cv_cc_flag_unused_command_line_argument=yes 7739else 7740 xorg_cv_cc_flag_unused_command_line_argument=no 7741fi 7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7743fi 7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748fi 7749 7750found="no" 7751 7752 if test $found = "no" ; then 7753 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7755 fi 7756 7757 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7759 fi 7760 7761 CFLAGS="$CFLAGS -Werror=missing-braces" 7762 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5 7764$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; } 7765 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7766 if eval \${$cacheid+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770/* end confdefs.h. */ 7771int i; 7772int 7773main () 7774{ 7775 7776 ; 7777 return 0; 7778} 7779_ACEOF 7780if ac_fn_c_try_link "$LINENO"; then : 7781 eval $cacheid=yes 7782else 7783 eval $cacheid=no 7784fi 7785rm -f core conftest.err conftest.$ac_objext \ 7786 conftest$ac_exeext conftest.$ac_ext 7787fi 7788 7789 7790 CFLAGS="$xorg_testset_save_CFLAGS" 7791 7792 eval supported=\$$cacheid 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7794$as_echo "$supported" >&6; } 7795 if test "$supported" = "yes" ; then 7796 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7797 found="yes" 7798 fi 7799 fi 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815xorg_testset_save_CFLAGS="$CFLAGS" 7816 7817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823else 7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7825/* end confdefs.h. */ 7826int i; 7827_ACEOF 7828if ac_fn_c_try_compile "$LINENO"; then : 7829 xorg_cv_cc_flag_unknown_warning_option=yes 7830else 7831 xorg_cv_cc_flag_unknown_warning_option=no 7832fi 7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7834fi 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7838 CFLAGS="$xorg_testset_save_CFLAGS" 7839fi 7840 7841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7844 fi 7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850else 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853int i; 7854_ACEOF 7855if ac_fn_c_try_compile "$LINENO"; then : 7856 xorg_cv_cc_flag_unused_command_line_argument=yes 7857else 7858 xorg_cv_cc_flag_unused_command_line_argument=no 7859fi 7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7861fi 7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7865 CFLAGS="$xorg_testset_save_CFLAGS" 7866fi 7867 7868found="no" 7869 7870 if test $found = "no" ; then 7871 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7873 fi 7874 7875 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7877 fi 7878 7879 CFLAGS="$CFLAGS -Werror=sequence-point" 7880 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5 7882$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; } 7883 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7884 if eval \${$cacheid+:} false; then : 7885 $as_echo_n "(cached) " >&6 7886else 7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888/* end confdefs.h. */ 7889int i; 7890int 7891main () 7892{ 7893 7894 ; 7895 return 0; 7896} 7897_ACEOF 7898if ac_fn_c_try_link "$LINENO"; then : 7899 eval $cacheid=yes 7900else 7901 eval $cacheid=no 7902fi 7903rm -f core conftest.err conftest.$ac_objext \ 7904 conftest$ac_exeext conftest.$ac_ext 7905fi 7906 7907 7908 CFLAGS="$xorg_testset_save_CFLAGS" 7909 7910 eval supported=\$$cacheid 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7912$as_echo "$supported" >&6; } 7913 if test "$supported" = "yes" ; then 7914 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7915 found="yes" 7916 fi 7917 fi 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933xorg_testset_save_CFLAGS="$CFLAGS" 7934 7935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7938$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7939if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941else 7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7943/* end confdefs.h. */ 7944int i; 7945_ACEOF 7946if ac_fn_c_try_compile "$LINENO"; then : 7947 xorg_cv_cc_flag_unknown_warning_option=yes 7948else 7949 xorg_cv_cc_flag_unknown_warning_option=no 7950fi 7951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7952fi 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7954$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7956 CFLAGS="$xorg_testset_save_CFLAGS" 7957fi 7958 7959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7962 fi 7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7965$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7966if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968else 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971int i; 7972_ACEOF 7973if ac_fn_c_try_compile "$LINENO"; then : 7974 xorg_cv_cc_flag_unused_command_line_argument=yes 7975else 7976 xorg_cv_cc_flag_unused_command_line_argument=no 7977fi 7978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7979fi 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7981$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984fi 7985 7986found="no" 7987 7988 if test $found = "no" ; then 7989 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7991 fi 7992 7993 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7995 fi 7996 7997 CFLAGS="$CFLAGS -Werror=return-type" 7998 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5 8000$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; } 8001 cacheid=xorg_cv_cc_flag__Werror_return_type 8002 if eval \${$cacheid+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8006/* end confdefs.h. */ 8007int i; 8008int 8009main () 8010{ 8011 8012 ; 8013 return 0; 8014} 8015_ACEOF 8016if ac_fn_c_try_link "$LINENO"; then : 8017 eval $cacheid=yes 8018else 8019 eval $cacheid=no 8020fi 8021rm -f core conftest.err conftest.$ac_objext \ 8022 conftest$ac_exeext conftest.$ac_ext 8023fi 8024 8025 8026 CFLAGS="$xorg_testset_save_CFLAGS" 8027 8028 eval supported=\$$cacheid 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8030$as_echo "$supported" >&6; } 8031 if test "$supported" = "yes" ; then 8032 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8033 found="yes" 8034 fi 8035 fi 8036 8037 if test $found = "no" ; then 8038 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8040 fi 8041 8042 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8044 fi 8045 8046 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8047 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8049$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8050 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8051 if eval \${$cacheid+:} false; then : 8052 $as_echo_n "(cached) " >&6 8053else 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055/* end confdefs.h. */ 8056int i; 8057int 8058main () 8059{ 8060 8061 ; 8062 return 0; 8063} 8064_ACEOF 8065if ac_fn_c_try_link "$LINENO"; then : 8066 eval $cacheid=yes 8067else 8068 eval $cacheid=no 8069fi 8070rm -f core conftest.err conftest.$ac_objext \ 8071 conftest$ac_exeext conftest.$ac_ext 8072fi 8073 8074 8075 CFLAGS="$xorg_testset_save_CFLAGS" 8076 8077 eval supported=\$$cacheid 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8079$as_echo "$supported" >&6; } 8080 if test "$supported" = "yes" ; then 8081 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8082 found="yes" 8083 fi 8084 fi 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100xorg_testset_save_CFLAGS="$CFLAGS" 8101 8102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8105$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8106if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110/* end confdefs.h. */ 8111int i; 8112_ACEOF 8113if ac_fn_c_try_compile "$LINENO"; then : 8114 xorg_cv_cc_flag_unknown_warning_option=yes 8115else 8116 xorg_cv_cc_flag_unknown_warning_option=no 8117fi 8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8119fi 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8121$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8123 CFLAGS="$xorg_testset_save_CFLAGS" 8124fi 8125 8126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8129 fi 8130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8132$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8133if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8137/* end confdefs.h. */ 8138int i; 8139_ACEOF 8140if ac_fn_c_try_compile "$LINENO"; then : 8141 xorg_cv_cc_flag_unused_command_line_argument=yes 8142else 8143 xorg_cv_cc_flag_unused_command_line_argument=no 8144fi 8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8146fi 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8148$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8150 CFLAGS="$xorg_testset_save_CFLAGS" 8151fi 8152 8153found="no" 8154 8155 if test $found = "no" ; then 8156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8158 fi 8159 8160 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8162 fi 8163 8164 CFLAGS="$CFLAGS -Werror=trigraphs" 8165 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5 8167$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; } 8168 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8169 if eval \${$cacheid+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173/* end confdefs.h. */ 8174int i; 8175int 8176main () 8177{ 8178 8179 ; 8180 return 0; 8181} 8182_ACEOF 8183if ac_fn_c_try_link "$LINENO"; then : 8184 eval $cacheid=yes 8185else 8186 eval $cacheid=no 8187fi 8188rm -f core conftest.err conftest.$ac_objext \ 8189 conftest$ac_exeext conftest.$ac_ext 8190fi 8191 8192 8193 CFLAGS="$xorg_testset_save_CFLAGS" 8194 8195 eval supported=\$$cacheid 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8197$as_echo "$supported" >&6; } 8198 if test "$supported" = "yes" ; then 8199 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8200 found="yes" 8201 fi 8202 fi 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218xorg_testset_save_CFLAGS="$CFLAGS" 8219 8220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8223$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8224if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8225 $as_echo_n "(cached) " >&6 8226else 8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228/* end confdefs.h. */ 8229int i; 8230_ACEOF 8231if ac_fn_c_try_compile "$LINENO"; then : 8232 xorg_cv_cc_flag_unknown_warning_option=yes 8233else 8234 xorg_cv_cc_flag_unknown_warning_option=no 8235fi 8236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8237fi 8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8239$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8241 CFLAGS="$xorg_testset_save_CFLAGS" 8242fi 8243 8244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8247 fi 8248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8250$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8251if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253else 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256int i; 8257_ACEOF 8258if ac_fn_c_try_compile "$LINENO"; then : 8259 xorg_cv_cc_flag_unused_command_line_argument=yes 8260else 8261 xorg_cv_cc_flag_unused_command_line_argument=no 8262fi 8263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8264fi 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8266$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8268 CFLAGS="$xorg_testset_save_CFLAGS" 8269fi 8270 8271found="no" 8272 8273 if test $found = "no" ; then 8274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8276 fi 8277 8278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8280 fi 8281 8282 CFLAGS="$CFLAGS -Werror=array-bounds" 8283 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5 8285$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; } 8286 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8287 if eval \${$cacheid+:} false; then : 8288 $as_echo_n "(cached) " >&6 8289else 8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291/* end confdefs.h. */ 8292int i; 8293int 8294main () 8295{ 8296 8297 ; 8298 return 0; 8299} 8300_ACEOF 8301if ac_fn_c_try_link "$LINENO"; then : 8302 eval $cacheid=yes 8303else 8304 eval $cacheid=no 8305fi 8306rm -f core conftest.err conftest.$ac_objext \ 8307 conftest$ac_exeext conftest.$ac_ext 8308fi 8309 8310 8311 CFLAGS="$xorg_testset_save_CFLAGS" 8312 8313 eval supported=\$$cacheid 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8315$as_echo "$supported" >&6; } 8316 if test "$supported" = "yes" ; then 8317 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8318 found="yes" 8319 fi 8320 fi 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336xorg_testset_save_CFLAGS="$CFLAGS" 8337 8338if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8341$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8342if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8346/* end confdefs.h. */ 8347int i; 8348_ACEOF 8349if ac_fn_c_try_compile "$LINENO"; then : 8350 xorg_cv_cc_flag_unknown_warning_option=yes 8351else 8352 xorg_cv_cc_flag_unknown_warning_option=no 8353fi 8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8355fi 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8357$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8359 CFLAGS="$xorg_testset_save_CFLAGS" 8360fi 8361 8362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8365 fi 8366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8368$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8369if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371else 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373/* end confdefs.h. */ 8374int i; 8375_ACEOF 8376if ac_fn_c_try_compile "$LINENO"; then : 8377 xorg_cv_cc_flag_unused_command_line_argument=yes 8378else 8379 xorg_cv_cc_flag_unused_command_line_argument=no 8380fi 8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8384$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8386 CFLAGS="$xorg_testset_save_CFLAGS" 8387fi 8388 8389found="no" 8390 8391 if test $found = "no" ; then 8392 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8394 fi 8395 8396 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8398 fi 8399 8400 CFLAGS="$CFLAGS -Werror=write-strings" 8401 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5 8403$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; } 8404 cacheid=xorg_cv_cc_flag__Werror_write_strings 8405 if eval \${$cacheid+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409/* end confdefs.h. */ 8410int i; 8411int 8412main () 8413{ 8414 8415 ; 8416 return 0; 8417} 8418_ACEOF 8419if ac_fn_c_try_link "$LINENO"; then : 8420 eval $cacheid=yes 8421else 8422 eval $cacheid=no 8423fi 8424rm -f core conftest.err conftest.$ac_objext \ 8425 conftest$ac_exeext conftest.$ac_ext 8426fi 8427 8428 8429 CFLAGS="$xorg_testset_save_CFLAGS" 8430 8431 eval supported=\$$cacheid 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8433$as_echo "$supported" >&6; } 8434 if test "$supported" = "yes" ; then 8435 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8436 found="yes" 8437 fi 8438 fi 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454xorg_testset_save_CFLAGS="$CFLAGS" 8455 8456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8459$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8460if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464/* end confdefs.h. */ 8465int i; 8466_ACEOF 8467if ac_fn_c_try_compile "$LINENO"; then : 8468 xorg_cv_cc_flag_unknown_warning_option=yes 8469else 8470 xorg_cv_cc_flag_unknown_warning_option=no 8471fi 8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8473fi 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8475$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8477 CFLAGS="$xorg_testset_save_CFLAGS" 8478fi 8479 8480if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8483 fi 8484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8486$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8487if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489else 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492int i; 8493_ACEOF 8494if ac_fn_c_try_compile "$LINENO"; then : 8495 xorg_cv_cc_flag_unused_command_line_argument=yes 8496else 8497 xorg_cv_cc_flag_unused_command_line_argument=no 8498fi 8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8500fi 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8502$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505fi 8506 8507found="no" 8508 8509 if test $found = "no" ; then 8510 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8512 fi 8513 8514 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8516 fi 8517 8518 CFLAGS="$CFLAGS -Werror=address" 8519 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5 8521$as_echo_n "checking if $CC supports-Werror=address... " >&6; } 8522 cacheid=xorg_cv_cc_flag__Werror_address 8523 if eval \${$cacheid+:} false; then : 8524 $as_echo_n "(cached) " >&6 8525else 8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8527/* end confdefs.h. */ 8528int i; 8529int 8530main () 8531{ 8532 8533 ; 8534 return 0; 8535} 8536_ACEOF 8537if ac_fn_c_try_link "$LINENO"; then : 8538 eval $cacheid=yes 8539else 8540 eval $cacheid=no 8541fi 8542rm -f core conftest.err conftest.$ac_objext \ 8543 conftest$ac_exeext conftest.$ac_ext 8544fi 8545 8546 8547 CFLAGS="$xorg_testset_save_CFLAGS" 8548 8549 eval supported=\$$cacheid 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8551$as_echo "$supported" >&6; } 8552 if test "$supported" = "yes" ; then 8553 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8554 found="yes" 8555 fi 8556 fi 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572xorg_testset_save_CFLAGS="$CFLAGS" 8573 8574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8579 $as_echo_n "(cached) " >&6 8580else 8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582/* end confdefs.h. */ 8583int i; 8584_ACEOF 8585if ac_fn_c_try_compile "$LINENO"; then : 8586 xorg_cv_cc_flag_unknown_warning_option=yes 8587else 8588 xorg_cv_cc_flag_unknown_warning_option=no 8589fi 8590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8591fi 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8595 CFLAGS="$xorg_testset_save_CFLAGS" 8596fi 8597 8598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8601 fi 8602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609/* end confdefs.h. */ 8610int i; 8611_ACEOF 8612if ac_fn_c_try_compile "$LINENO"; then : 8613 xorg_cv_cc_flag_unused_command_line_argument=yes 8614else 8615 xorg_cv_cc_flag_unused_command_line_argument=no 8616fi 8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8618fi 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8622 CFLAGS="$xorg_testset_save_CFLAGS" 8623fi 8624 8625found="no" 8626 8627 if test $found = "no" ; then 8628 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8630 fi 8631 8632 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 fi 8635 8636 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8637 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5 8639$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; } 8640 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8641 if eval \${$cacheid+:} false; then : 8642 $as_echo_n "(cached) " >&6 8643else 8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645/* end confdefs.h. */ 8646int i; 8647int 8648main () 8649{ 8650 8651 ; 8652 return 0; 8653} 8654_ACEOF 8655if ac_fn_c_try_link "$LINENO"; then : 8656 eval $cacheid=yes 8657else 8658 eval $cacheid=no 8659fi 8660rm -f core conftest.err conftest.$ac_objext \ 8661 conftest$ac_exeext conftest.$ac_ext 8662fi 8663 8664 8665 CFLAGS="$xorg_testset_save_CFLAGS" 8666 8667 eval supported=\$$cacheid 8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8669$as_echo "$supported" >&6; } 8670 if test "$supported" = "yes" ; then 8671 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8672 found="yes" 8673 fi 8674 fi 8675 8676 if test $found = "no" ; then 8677 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8679 fi 8680 8681 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8683 fi 8684 8685 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8686 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8688$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8689 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8690 if eval \${$cacheid+:} false; then : 8691 $as_echo_n "(cached) " >&6 8692else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694/* end confdefs.h. */ 8695int i; 8696int 8697main () 8698{ 8699 8700 ; 8701 return 0; 8702} 8703_ACEOF 8704if ac_fn_c_try_link "$LINENO"; then : 8705 eval $cacheid=yes 8706else 8707 eval $cacheid=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext \ 8710 conftest$ac_exeext conftest.$ac_ext 8711fi 8712 8713 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715 8716 eval supported=\$$cacheid 8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8718$as_echo "$supported" >&6; } 8719 if test "$supported" = "yes" ; then 8720 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8721 found="yes" 8722 fi 8723 fi 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739xorg_testset_save_CFLAGS="$CFLAGS" 8740 8741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749/* end confdefs.h. */ 8750int i; 8751_ACEOF 8752if ac_fn_c_try_compile "$LINENO"; then : 8753 xorg_cv_cc_flag_unknown_warning_option=yes 8754else 8755 xorg_cv_cc_flag_unknown_warning_option=no 8756fi 8757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8758fi 8759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8762 CFLAGS="$xorg_testset_save_CFLAGS" 8763fi 8764 8765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8768 fi 8769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777int i; 8778_ACEOF 8779if ac_fn_c_try_compile "$LINENO"; then : 8780 xorg_cv_cc_flag_unused_command_line_argument=yes 8781else 8782 xorg_cv_cc_flag_unused_command_line_argument=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8785fi 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790fi 8791 8792found="no" 8793 8794 if test $found = "no" ; then 8795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8797 fi 8798 8799 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8801 fi 8802 8803 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8804 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5 8806$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; } 8807 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8808 if eval \${$cacheid+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812/* end confdefs.h. */ 8813int i; 8814int 8815main () 8816{ 8817 8818 ; 8819 return 0; 8820} 8821_ACEOF 8822if ac_fn_c_try_link "$LINENO"; then : 8823 eval $cacheid=yes 8824else 8825 eval $cacheid=no 8826fi 8827rm -f core conftest.err conftest.$ac_objext \ 8828 conftest$ac_exeext conftest.$ac_ext 8829fi 8830 8831 8832 CFLAGS="$xorg_testset_save_CFLAGS" 8833 8834 eval supported=\$$cacheid 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8836$as_echo "$supported" >&6; } 8837 if test "$supported" = "yes" ; then 8838 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8839 found="yes" 8840 fi 8841 fi 8842 8843 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8844else 8845{ $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 8846$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;} 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860xorg_testset_save_CFLAGS="$CFLAGS" 8861 8862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8867 $as_echo_n "(cached) " >&6 8868else 8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8870/* end confdefs.h. */ 8871int i; 8872_ACEOF 8873if ac_fn_c_try_compile "$LINENO"; then : 8874 xorg_cv_cc_flag_unknown_warning_option=yes 8875else 8876 xorg_cv_cc_flag_unknown_warning_option=no 8877fi 8878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8879fi 8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8883 CFLAGS="$xorg_testset_save_CFLAGS" 8884fi 8885 8886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895else 8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897/* end confdefs.h. */ 8898int i; 8899_ACEOF 8900if ac_fn_c_try_compile "$LINENO"; then : 8901 xorg_cv_cc_flag_unused_command_line_argument=yes 8902else 8903 xorg_cv_cc_flag_unused_command_line_argument=no 8904fi 8905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8906fi 8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8910 CFLAGS="$xorg_testset_save_CFLAGS" 8911fi 8912 8913found="no" 8914 8915 if test $found = "no" ; then 8916 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8918 fi 8919 8920 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8922 fi 8923 8924 CFLAGS="$CFLAGS -Wimplicit" 8925 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5 8927$as_echo_n "checking if $CC supports-Wimplicit... " >&6; } 8928 cacheid=xorg_cv_cc_flag__Wimplicit 8929 if eval \${$cacheid+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933/* end confdefs.h. */ 8934int i; 8935int 8936main () 8937{ 8938 8939 ; 8940 return 0; 8941} 8942_ACEOF 8943if ac_fn_c_try_link "$LINENO"; then : 8944 eval $cacheid=yes 8945else 8946 eval $cacheid=no 8947fi 8948rm -f core conftest.err conftest.$ac_objext \ 8949 conftest$ac_exeext conftest.$ac_ext 8950fi 8951 8952 8953 CFLAGS="$xorg_testset_save_CFLAGS" 8954 8955 eval supported=\$$cacheid 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8957$as_echo "$supported" >&6; } 8958 if test "$supported" = "yes" ; then 8959 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8960 found="yes" 8961 fi 8962 fi 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978xorg_testset_save_CFLAGS="$CFLAGS" 8979 8980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986else 8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988/* end confdefs.h. */ 8989int i; 8990_ACEOF 8991if ac_fn_c_try_compile "$LINENO"; then : 8992 xorg_cv_cc_flag_unknown_warning_option=yes 8993else 8994 xorg_cv_cc_flag_unknown_warning_option=no 8995fi 8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8997fi 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9001 CFLAGS="$xorg_testset_save_CFLAGS" 9002fi 9003 9004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 fi 9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9012 $as_echo_n "(cached) " >&6 9013else 9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9015/* end confdefs.h. */ 9016int i; 9017_ACEOF 9018if ac_fn_c_try_compile "$LINENO"; then : 9019 xorg_cv_cc_flag_unused_command_line_argument=yes 9020else 9021 xorg_cv_cc_flag_unused_command_line_argument=no 9022fi 9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9024fi 9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9028 CFLAGS="$xorg_testset_save_CFLAGS" 9029fi 9030 9031found="no" 9032 9033 if test $found = "no" ; then 9034 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 fi 9037 9038 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9040 fi 9041 9042 CFLAGS="$CFLAGS -Wnonnull" 9043 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5 9045$as_echo_n "checking if $CC supports-Wnonnull... " >&6; } 9046 cacheid=xorg_cv_cc_flag__Wnonnull 9047 if eval \${$cacheid+:} false; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9051/* end confdefs.h. */ 9052int i; 9053int 9054main () 9055{ 9056 9057 ; 9058 return 0; 9059} 9060_ACEOF 9061if ac_fn_c_try_link "$LINENO"; then : 9062 eval $cacheid=yes 9063else 9064 eval $cacheid=no 9065fi 9066rm -f core conftest.err conftest.$ac_objext \ 9067 conftest$ac_exeext conftest.$ac_ext 9068fi 9069 9070 9071 CFLAGS="$xorg_testset_save_CFLAGS" 9072 9073 eval supported=\$$cacheid 9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9075$as_echo "$supported" >&6; } 9076 if test "$supported" = "yes" ; then 9077 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9078 found="yes" 9079 fi 9080 fi 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096xorg_testset_save_CFLAGS="$CFLAGS" 9097 9098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104else 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106/* end confdefs.h. */ 9107int i; 9108_ACEOF 9109if ac_fn_c_try_compile "$LINENO"; then : 9110 xorg_cv_cc_flag_unknown_warning_option=yes 9111else 9112 xorg_cv_cc_flag_unknown_warning_option=no 9113fi 9114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9115fi 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9119 CFLAGS="$xorg_testset_save_CFLAGS" 9120fi 9121 9122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 fi 9126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131else 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133/* end confdefs.h. */ 9134int i; 9135_ACEOF 9136if ac_fn_c_try_compile "$LINENO"; then : 9137 xorg_cv_cc_flag_unused_command_line_argument=yes 9138else 9139 xorg_cv_cc_flag_unused_command_line_argument=no 9140fi 9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9142fi 9143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9146 CFLAGS="$xorg_testset_save_CFLAGS" 9147fi 9148 9149found="no" 9150 9151 if test $found = "no" ; then 9152 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9154 fi 9155 9156 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9158 fi 9159 9160 CFLAGS="$CFLAGS -Winit-self" 9161 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5 9163$as_echo_n "checking if $CC supports-Winit-self... " >&6; } 9164 cacheid=xorg_cv_cc_flag__Winit_self 9165 if eval \${$cacheid+:} false; then : 9166 $as_echo_n "(cached) " >&6 9167else 9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169/* end confdefs.h. */ 9170int i; 9171int 9172main () 9173{ 9174 9175 ; 9176 return 0; 9177} 9178_ACEOF 9179if ac_fn_c_try_link "$LINENO"; then : 9180 eval $cacheid=yes 9181else 9182 eval $cacheid=no 9183fi 9184rm -f core conftest.err conftest.$ac_objext \ 9185 conftest$ac_exeext conftest.$ac_ext 9186fi 9187 9188 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190 9191 eval supported=\$$cacheid 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9193$as_echo "$supported" >&6; } 9194 if test "$supported" = "yes" ; then 9195 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9196 found="yes" 9197 fi 9198 fi 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214xorg_testset_save_CFLAGS="$CFLAGS" 9215 9216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9221 $as_echo_n "(cached) " >&6 9222else 9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9224/* end confdefs.h. */ 9225int i; 9226_ACEOF 9227if ac_fn_c_try_compile "$LINENO"; then : 9228 xorg_cv_cc_flag_unknown_warning_option=yes 9229else 9230 xorg_cv_cc_flag_unknown_warning_option=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233fi 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9237 CFLAGS="$xorg_testset_save_CFLAGS" 9238fi 9239 9240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249else 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251/* end confdefs.h. */ 9252int i; 9253_ACEOF 9254if ac_fn_c_try_compile "$LINENO"; then : 9255 xorg_cv_cc_flag_unused_command_line_argument=yes 9256else 9257 xorg_cv_cc_flag_unused_command_line_argument=no 9258fi 9259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9260fi 9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9264 CFLAGS="$xorg_testset_save_CFLAGS" 9265fi 9266 9267found="no" 9268 9269 if test $found = "no" ; then 9270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 fi 9273 9274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9276 fi 9277 9278 CFLAGS="$CFLAGS -Wmain" 9279 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5 9281$as_echo_n "checking if $CC supports-Wmain... " >&6; } 9282 cacheid=xorg_cv_cc_flag__Wmain 9283 if eval \${$cacheid+:} false; then : 9284 $as_echo_n "(cached) " >&6 9285else 9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287/* end confdefs.h. */ 9288int i; 9289int 9290main () 9291{ 9292 9293 ; 9294 return 0; 9295} 9296_ACEOF 9297if ac_fn_c_try_link "$LINENO"; then : 9298 eval $cacheid=yes 9299else 9300 eval $cacheid=no 9301fi 9302rm -f core conftest.err conftest.$ac_objext \ 9303 conftest$ac_exeext conftest.$ac_ext 9304fi 9305 9306 9307 CFLAGS="$xorg_testset_save_CFLAGS" 9308 9309 eval supported=\$$cacheid 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9311$as_echo "$supported" >&6; } 9312 if test "$supported" = "yes" ; then 9313 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9314 found="yes" 9315 fi 9316 fi 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332xorg_testset_save_CFLAGS="$CFLAGS" 9333 9334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342/* end confdefs.h. */ 9343int i; 9344_ACEOF 9345if ac_fn_c_try_compile "$LINENO"; then : 9346 xorg_cv_cc_flag_unknown_warning_option=yes 9347else 9348 xorg_cv_cc_flag_unknown_warning_option=no 9349fi 9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9351fi 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9355 CFLAGS="$xorg_testset_save_CFLAGS" 9356fi 9357 9358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9361 fi 9362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369/* end confdefs.h. */ 9370int i; 9371_ACEOF 9372if ac_fn_c_try_compile "$LINENO"; then : 9373 xorg_cv_cc_flag_unused_command_line_argument=yes 9374else 9375 xorg_cv_cc_flag_unused_command_line_argument=no 9376fi 9377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9378fi 9379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9381 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9382 CFLAGS="$xorg_testset_save_CFLAGS" 9383fi 9384 9385found="no" 9386 9387 if test $found = "no" ; then 9388 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9390 fi 9391 9392 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9394 fi 9395 9396 CFLAGS="$CFLAGS -Wmissing-braces" 9397 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5 9399$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; } 9400 cacheid=xorg_cv_cc_flag__Wmissing_braces 9401 if eval \${$cacheid+:} false; then : 9402 $as_echo_n "(cached) " >&6 9403else 9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405/* end confdefs.h. */ 9406int i; 9407int 9408main () 9409{ 9410 9411 ; 9412 return 0; 9413} 9414_ACEOF 9415if ac_fn_c_try_link "$LINENO"; then : 9416 eval $cacheid=yes 9417else 9418 eval $cacheid=no 9419fi 9420rm -f core conftest.err conftest.$ac_objext \ 9421 conftest$ac_exeext conftest.$ac_ext 9422fi 9423 9424 9425 CFLAGS="$xorg_testset_save_CFLAGS" 9426 9427 eval supported=\$$cacheid 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9429$as_echo "$supported" >&6; } 9430 if test "$supported" = "yes" ; then 9431 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9432 found="yes" 9433 fi 9434 fi 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450xorg_testset_save_CFLAGS="$CFLAGS" 9451 9452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9457 $as_echo_n "(cached) " >&6 9458else 9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9460/* end confdefs.h. */ 9461int i; 9462_ACEOF 9463if ac_fn_c_try_compile "$LINENO"; then : 9464 xorg_cv_cc_flag_unknown_warning_option=yes 9465else 9466 xorg_cv_cc_flag_unknown_warning_option=no 9467fi 9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9469fi 9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9473 CFLAGS="$xorg_testset_save_CFLAGS" 9474fi 9475 9476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 fi 9480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485else 9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9487/* end confdefs.h. */ 9488int i; 9489_ACEOF 9490if ac_fn_c_try_compile "$LINENO"; then : 9491 xorg_cv_cc_flag_unused_command_line_argument=yes 9492else 9493 xorg_cv_cc_flag_unused_command_line_argument=no 9494fi 9495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9496fi 9497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9500 CFLAGS="$xorg_testset_save_CFLAGS" 9501fi 9502 9503found="no" 9504 9505 if test $found = "no" ; then 9506 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9508 fi 9509 9510 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9512 fi 9513 9514 CFLAGS="$CFLAGS -Wsequence-point" 9515 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5 9517$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; } 9518 cacheid=xorg_cv_cc_flag__Wsequence_point 9519 if eval \${$cacheid+:} false; then : 9520 $as_echo_n "(cached) " >&6 9521else 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524int i; 9525int 9526main () 9527{ 9528 9529 ; 9530 return 0; 9531} 9532_ACEOF 9533if ac_fn_c_try_link "$LINENO"; then : 9534 eval $cacheid=yes 9535else 9536 eval $cacheid=no 9537fi 9538rm -f core conftest.err conftest.$ac_objext \ 9539 conftest$ac_exeext conftest.$ac_ext 9540fi 9541 9542 9543 CFLAGS="$xorg_testset_save_CFLAGS" 9544 9545 eval supported=\$$cacheid 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9547$as_echo "$supported" >&6; } 9548 if test "$supported" = "yes" ; then 9549 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9550 found="yes" 9551 fi 9552 fi 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568xorg_testset_save_CFLAGS="$CFLAGS" 9569 9570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9575 $as_echo_n "(cached) " >&6 9576else 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578/* end confdefs.h. */ 9579int i; 9580_ACEOF 9581if ac_fn_c_try_compile "$LINENO"; then : 9582 xorg_cv_cc_flag_unknown_warning_option=yes 9583else 9584 xorg_cv_cc_flag_unknown_warning_option=no 9585fi 9586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9587fi 9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9591 CFLAGS="$xorg_testset_save_CFLAGS" 9592fi 9593 9594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9597 fi 9598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603else 9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9605/* end confdefs.h. */ 9606int i; 9607_ACEOF 9608if ac_fn_c_try_compile "$LINENO"; then : 9609 xorg_cv_cc_flag_unused_command_line_argument=yes 9610else 9611 xorg_cv_cc_flag_unused_command_line_argument=no 9612fi 9613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9614fi 9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9618 CFLAGS="$xorg_testset_save_CFLAGS" 9619fi 9620 9621found="no" 9622 9623 if test $found = "no" ; then 9624 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9626 fi 9627 9628 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9630 fi 9631 9632 CFLAGS="$CFLAGS -Wreturn-type" 9633 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5 9635$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; } 9636 cacheid=xorg_cv_cc_flag__Wreturn_type 9637 if eval \${$cacheid+:} false; then : 9638 $as_echo_n "(cached) " >&6 9639else 9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9641/* end confdefs.h. */ 9642int i; 9643int 9644main () 9645{ 9646 9647 ; 9648 return 0; 9649} 9650_ACEOF 9651if ac_fn_c_try_link "$LINENO"; then : 9652 eval $cacheid=yes 9653else 9654 eval $cacheid=no 9655fi 9656rm -f core conftest.err conftest.$ac_objext \ 9657 conftest$ac_exeext conftest.$ac_ext 9658fi 9659 9660 9661 CFLAGS="$xorg_testset_save_CFLAGS" 9662 9663 eval supported=\$$cacheid 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9665$as_echo "$supported" >&6; } 9666 if test "$supported" = "yes" ; then 9667 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9668 found="yes" 9669 fi 9670 fi 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686xorg_testset_save_CFLAGS="$CFLAGS" 9687 9688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697int i; 9698_ACEOF 9699if ac_fn_c_try_compile "$LINENO"; then : 9700 xorg_cv_cc_flag_unknown_warning_option=yes 9701else 9702 xorg_cv_cc_flag_unknown_warning_option=no 9703fi 9704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9705fi 9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9709 CFLAGS="$xorg_testset_save_CFLAGS" 9710fi 9711 9712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721else 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723/* end confdefs.h. */ 9724int i; 9725_ACEOF 9726if ac_fn_c_try_compile "$LINENO"; then : 9727 xorg_cv_cc_flag_unused_command_line_argument=yes 9728else 9729 xorg_cv_cc_flag_unused_command_line_argument=no 9730fi 9731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9732fi 9733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9736 CFLAGS="$xorg_testset_save_CFLAGS" 9737fi 9738 9739found="no" 9740 9741 if test $found = "no" ; then 9742 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9744 fi 9745 9746 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9748 fi 9749 9750 CFLAGS="$CFLAGS -Wtrigraphs" 9751 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5 9753$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; } 9754 cacheid=xorg_cv_cc_flag__Wtrigraphs 9755 if eval \${$cacheid+:} false; then : 9756 $as_echo_n "(cached) " >&6 9757else 9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759/* end confdefs.h. */ 9760int i; 9761int 9762main () 9763{ 9764 9765 ; 9766 return 0; 9767} 9768_ACEOF 9769if ac_fn_c_try_link "$LINENO"; then : 9770 eval $cacheid=yes 9771else 9772 eval $cacheid=no 9773fi 9774rm -f core conftest.err conftest.$ac_objext \ 9775 conftest$ac_exeext conftest.$ac_ext 9776fi 9777 9778 9779 CFLAGS="$xorg_testset_save_CFLAGS" 9780 9781 eval supported=\$$cacheid 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9783$as_echo "$supported" >&6; } 9784 if test "$supported" = "yes" ; then 9785 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9786 found="yes" 9787 fi 9788 fi 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804xorg_testset_save_CFLAGS="$CFLAGS" 9805 9806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9811 $as_echo_n "(cached) " >&6 9812else 9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814/* end confdefs.h. */ 9815int i; 9816_ACEOF 9817if ac_fn_c_try_compile "$LINENO"; then : 9818 xorg_cv_cc_flag_unknown_warning_option=yes 9819else 9820 xorg_cv_cc_flag_unknown_warning_option=no 9821fi 9822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9823fi 9824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9827 CFLAGS="$xorg_testset_save_CFLAGS" 9828fi 9829 9830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9833 fi 9834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9838 $as_echo_n "(cached) " >&6 9839else 9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841/* end confdefs.h. */ 9842int i; 9843_ACEOF 9844if ac_fn_c_try_compile "$LINENO"; then : 9845 xorg_cv_cc_flag_unused_command_line_argument=yes 9846else 9847 xorg_cv_cc_flag_unused_command_line_argument=no 9848fi 9849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9850fi 9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9854 CFLAGS="$xorg_testset_save_CFLAGS" 9855fi 9856 9857found="no" 9858 9859 if test $found = "no" ; then 9860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9862 fi 9863 9864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9866 fi 9867 9868 CFLAGS="$CFLAGS -Warray-bounds" 9869 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5 9871$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; } 9872 cacheid=xorg_cv_cc_flag__Warray_bounds 9873 if eval \${$cacheid+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875else 9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9877/* end confdefs.h. */ 9878int i; 9879int 9880main () 9881{ 9882 9883 ; 9884 return 0; 9885} 9886_ACEOF 9887if ac_fn_c_try_link "$LINENO"; then : 9888 eval $cacheid=yes 9889else 9890 eval $cacheid=no 9891fi 9892rm -f core conftest.err conftest.$ac_objext \ 9893 conftest$ac_exeext conftest.$ac_ext 9894fi 9895 9896 9897 CFLAGS="$xorg_testset_save_CFLAGS" 9898 9899 eval supported=\$$cacheid 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9901$as_echo "$supported" >&6; } 9902 if test "$supported" = "yes" ; then 9903 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9904 found="yes" 9905 fi 9906 fi 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922xorg_testset_save_CFLAGS="$CFLAGS" 9923 9924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930else 9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9932/* end confdefs.h. */ 9933int i; 9934_ACEOF 9935if ac_fn_c_try_compile "$LINENO"; then : 9936 xorg_cv_cc_flag_unknown_warning_option=yes 9937else 9938 xorg_cv_cc_flag_unknown_warning_option=no 9939fi 9940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9941fi 9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9945 CFLAGS="$xorg_testset_save_CFLAGS" 9946fi 9947 9948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 fi 9952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957else 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960int i; 9961_ACEOF 9962if ac_fn_c_try_compile "$LINENO"; then : 9963 xorg_cv_cc_flag_unused_command_line_argument=yes 9964else 9965 xorg_cv_cc_flag_unused_command_line_argument=no 9966fi 9967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9968fi 9969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9972 CFLAGS="$xorg_testset_save_CFLAGS" 9973fi 9974 9975found="no" 9976 9977 if test $found = "no" ; then 9978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9980 fi 9981 9982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9984 fi 9985 9986 CFLAGS="$CFLAGS -Wwrite-strings" 9987 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5 9989$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; } 9990 cacheid=xorg_cv_cc_flag__Wwrite_strings 9991 if eval \${$cacheid+:} false; then : 9992 $as_echo_n "(cached) " >&6 9993else 9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995/* end confdefs.h. */ 9996int i; 9997int 9998main () 9999{ 10000 10001 ; 10002 return 0; 10003} 10004_ACEOF 10005if ac_fn_c_try_link "$LINENO"; then : 10006 eval $cacheid=yes 10007else 10008 eval $cacheid=no 10009fi 10010rm -f core conftest.err conftest.$ac_objext \ 10011 conftest$ac_exeext conftest.$ac_ext 10012fi 10013 10014 10015 CFLAGS="$xorg_testset_save_CFLAGS" 10016 10017 eval supported=\$$cacheid 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10019$as_echo "$supported" >&6; } 10020 if test "$supported" = "yes" ; then 10021 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10022 found="yes" 10023 fi 10024 fi 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040xorg_testset_save_CFLAGS="$CFLAGS" 10041 10042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10047 $as_echo_n "(cached) " >&6 10048else 10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10050/* end confdefs.h. */ 10051int i; 10052_ACEOF 10053if ac_fn_c_try_compile "$LINENO"; then : 10054 xorg_cv_cc_flag_unknown_warning_option=yes 10055else 10056 xorg_cv_cc_flag_unknown_warning_option=no 10057fi 10058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10059fi 10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10063 CFLAGS="$xorg_testset_save_CFLAGS" 10064fi 10065 10066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10069 fi 10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10074 $as_echo_n "(cached) " >&6 10075else 10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10077/* end confdefs.h. */ 10078int i; 10079_ACEOF 10080if ac_fn_c_try_compile "$LINENO"; then : 10081 xorg_cv_cc_flag_unused_command_line_argument=yes 10082else 10083 xorg_cv_cc_flag_unused_command_line_argument=no 10084fi 10085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10086fi 10087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10090 CFLAGS="$xorg_testset_save_CFLAGS" 10091fi 10092 10093found="no" 10094 10095 if test $found = "no" ; then 10096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10098 fi 10099 10100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10102 fi 10103 10104 CFLAGS="$CFLAGS -Waddress" 10105 10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5 10107$as_echo_n "checking if $CC supports-Waddress... " >&6; } 10108 cacheid=xorg_cv_cc_flag__Waddress 10109 if eval \${$cacheid+:} false; then : 10110 $as_echo_n "(cached) " >&6 10111else 10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10113/* end confdefs.h. */ 10114int i; 10115int 10116main () 10117{ 10118 10119 ; 10120 return 0; 10121} 10122_ACEOF 10123if ac_fn_c_try_link "$LINENO"; then : 10124 eval $cacheid=yes 10125else 10126 eval $cacheid=no 10127fi 10128rm -f core conftest.err conftest.$ac_objext \ 10129 conftest$ac_exeext conftest.$ac_ext 10130fi 10131 10132 10133 CFLAGS="$xorg_testset_save_CFLAGS" 10134 10135 eval supported=\$$cacheid 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10137$as_echo "$supported" >&6; } 10138 if test "$supported" = "yes" ; then 10139 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10140 found="yes" 10141 fi 10142 fi 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158xorg_testset_save_CFLAGS="$CFLAGS" 10159 10160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10165 $as_echo_n "(cached) " >&6 10166else 10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168/* end confdefs.h. */ 10169int i; 10170_ACEOF 10171if ac_fn_c_try_compile "$LINENO"; then : 10172 xorg_cv_cc_flag_unknown_warning_option=yes 10173else 10174 xorg_cv_cc_flag_unknown_warning_option=no 10175fi 10176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10177fi 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10181 CFLAGS="$xorg_testset_save_CFLAGS" 10182fi 10183 10184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10187 fi 10188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193else 10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10195/* end confdefs.h. */ 10196int i; 10197_ACEOF 10198if ac_fn_c_try_compile "$LINENO"; then : 10199 xorg_cv_cc_flag_unused_command_line_argument=yes 10200else 10201 xorg_cv_cc_flag_unused_command_line_argument=no 10202fi 10203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10204fi 10205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10208 CFLAGS="$xorg_testset_save_CFLAGS" 10209fi 10210 10211found="no" 10212 10213 if test $found = "no" ; then 10214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10216 fi 10217 10218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10220 fi 10221 10222 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10223 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5 10225$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; } 10226 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10227 if eval \${$cacheid+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229else 10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10231/* end confdefs.h. */ 10232int i; 10233int 10234main () 10235{ 10236 10237 ; 10238 return 0; 10239} 10240_ACEOF 10241if ac_fn_c_try_link "$LINENO"; then : 10242 eval $cacheid=yes 10243else 10244 eval $cacheid=no 10245fi 10246rm -f core conftest.err conftest.$ac_objext \ 10247 conftest$ac_exeext conftest.$ac_ext 10248fi 10249 10250 10251 CFLAGS="$xorg_testset_save_CFLAGS" 10252 10253 eval supported=\$$cacheid 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10255$as_echo "$supported" >&6; } 10256 if test "$supported" = "yes" ; then 10257 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10258 found="yes" 10259 fi 10260 fi 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276xorg_testset_save_CFLAGS="$CFLAGS" 10277 10278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287int i; 10288_ACEOF 10289if ac_fn_c_try_compile "$LINENO"; then : 10290 xorg_cv_cc_flag_unknown_warning_option=yes 10291else 10292 xorg_cv_cc_flag_unknown_warning_option=no 10293fi 10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10295fi 10296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10299 CFLAGS="$xorg_testset_save_CFLAGS" 10300fi 10301 10302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10305 fi 10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10310 $as_echo_n "(cached) " >&6 10311else 10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313/* end confdefs.h. */ 10314int i; 10315_ACEOF 10316if ac_fn_c_try_compile "$LINENO"; then : 10317 xorg_cv_cc_flag_unused_command_line_argument=yes 10318else 10319 xorg_cv_cc_flag_unused_command_line_argument=no 10320fi 10321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10322fi 10323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10326 CFLAGS="$xorg_testset_save_CFLAGS" 10327fi 10328 10329found="no" 10330 10331 if test $found = "no" ; then 10332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 fi 10335 10336 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10338 fi 10339 10340 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10341 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5 10343$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; } 10344 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10345 if eval \${$cacheid+:} false; then : 10346 $as_echo_n "(cached) " >&6 10347else 10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10349/* end confdefs.h. */ 10350int i; 10351int 10352main () 10353{ 10354 10355 ; 10356 return 0; 10357} 10358_ACEOF 10359if ac_fn_c_try_link "$LINENO"; then : 10360 eval $cacheid=yes 10361else 10362 eval $cacheid=no 10363fi 10364rm -f core conftest.err conftest.$ac_objext \ 10365 conftest$ac_exeext conftest.$ac_ext 10366fi 10367 10368 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370 10371 eval supported=\$$cacheid 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10373$as_echo "$supported" >&6; } 10374 if test "$supported" = "yes" ; then 10375 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10376 found="yes" 10377 fi 10378 fi 10379 10380 10381fi 10382 10383 10384 10385 10386 10387 10388 10389 CWARNFLAGS="$BASE_CFLAGS" 10390 if test "x$GCC" = xyes ; then 10391 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10392 fi 10393 10394 10395 10396 10397 10398 10399 10400 10401# Check whether --enable-strict-compilation was given. 10402if test "${enable_strict_compilation+set}" = set; then : 10403 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10404else 10405 STRICT_COMPILE=no 10406fi 10407 10408 10409 10410 10411 10412 10413STRICT_CFLAGS="" 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427xorg_testset_save_CFLAGS="$CFLAGS" 10428 10429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10434 $as_echo_n "(cached) " >&6 10435else 10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10437/* end confdefs.h. */ 10438int i; 10439_ACEOF 10440if ac_fn_c_try_compile "$LINENO"; then : 10441 xorg_cv_cc_flag_unknown_warning_option=yes 10442else 10443 xorg_cv_cc_flag_unknown_warning_option=no 10444fi 10445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10446fi 10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10450 CFLAGS="$xorg_testset_save_CFLAGS" 10451fi 10452 10453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10456 fi 10457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462else 10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10464/* end confdefs.h. */ 10465int i; 10466_ACEOF 10467if ac_fn_c_try_compile "$LINENO"; then : 10468 xorg_cv_cc_flag_unused_command_line_argument=yes 10469else 10470 xorg_cv_cc_flag_unused_command_line_argument=no 10471fi 10472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10473fi 10474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10477 CFLAGS="$xorg_testset_save_CFLAGS" 10478fi 10479 10480found="no" 10481 10482 if test $found = "no" ; then 10483 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10485 fi 10486 10487 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10489 fi 10490 10491 CFLAGS="$CFLAGS -pedantic" 10492 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5 10494$as_echo_n "checking if $CC supports-pedantic... " >&6; } 10495 cacheid=xorg_cv_cc_flag__pedantic 10496 if eval \${$cacheid+:} false; then : 10497 $as_echo_n "(cached) " >&6 10498else 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500/* end confdefs.h. */ 10501int i; 10502int 10503main () 10504{ 10505 10506 ; 10507 return 0; 10508} 10509_ACEOF 10510if ac_fn_c_try_link "$LINENO"; then : 10511 eval $cacheid=yes 10512else 10513 eval $cacheid=no 10514fi 10515rm -f core conftest.err conftest.$ac_objext \ 10516 conftest$ac_exeext conftest.$ac_ext 10517fi 10518 10519 10520 CFLAGS="$xorg_testset_save_CFLAGS" 10521 10522 eval supported=\$$cacheid 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10524$as_echo "$supported" >&6; } 10525 if test "$supported" = "yes" ; then 10526 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10527 found="yes" 10528 fi 10529 fi 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545xorg_testset_save_CFLAGS="$CFLAGS" 10546 10547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10552 $as_echo_n "(cached) " >&6 10553else 10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10555/* end confdefs.h. */ 10556int i; 10557_ACEOF 10558if ac_fn_c_try_compile "$LINENO"; then : 10559 xorg_cv_cc_flag_unknown_warning_option=yes 10560else 10561 xorg_cv_cc_flag_unknown_warning_option=no 10562fi 10563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10564fi 10565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10568 CFLAGS="$xorg_testset_save_CFLAGS" 10569fi 10570 10571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10574 fi 10575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580else 10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10582/* end confdefs.h. */ 10583int i; 10584_ACEOF 10585if ac_fn_c_try_compile "$LINENO"; then : 10586 xorg_cv_cc_flag_unused_command_line_argument=yes 10587else 10588 xorg_cv_cc_flag_unused_command_line_argument=no 10589fi 10590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10591fi 10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10595 CFLAGS="$xorg_testset_save_CFLAGS" 10596fi 10597 10598found="no" 10599 10600 if test $found = "no" ; then 10601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10603 fi 10604 10605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10607 fi 10608 10609 CFLAGS="$CFLAGS -Werror" 10610 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5 10612$as_echo_n "checking if $CC supports-Werror... " >&6; } 10613 cacheid=xorg_cv_cc_flag__Werror 10614 if eval \${$cacheid+:} false; then : 10615 $as_echo_n "(cached) " >&6 10616else 10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618/* end confdefs.h. */ 10619int i; 10620int 10621main () 10622{ 10623 10624 ; 10625 return 0; 10626} 10627_ACEOF 10628if ac_fn_c_try_link "$LINENO"; then : 10629 eval $cacheid=yes 10630else 10631 eval $cacheid=no 10632fi 10633rm -f core conftest.err conftest.$ac_objext \ 10634 conftest$ac_exeext conftest.$ac_ext 10635fi 10636 10637 10638 CFLAGS="$xorg_testset_save_CFLAGS" 10639 10640 eval supported=\$$cacheid 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10642$as_echo "$supported" >&6; } 10643 if test "$supported" = "yes" ; then 10644 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10645 found="yes" 10646 fi 10647 fi 10648 10649 if test $found = "no" ; then 10650 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10652 fi 10653 10654 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10656 fi 10657 10658 CFLAGS="$CFLAGS -errwarn" 10659 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5 10661$as_echo_n "checking if $CC supports-errwarn... " >&6; } 10662 cacheid=xorg_cv_cc_flag__errwarn 10663 if eval \${$cacheid+:} false; then : 10664 $as_echo_n "(cached) " >&6 10665else 10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10667/* end confdefs.h. */ 10668int i; 10669int 10670main () 10671{ 10672 10673 ; 10674 return 0; 10675} 10676_ACEOF 10677if ac_fn_c_try_link "$LINENO"; then : 10678 eval $cacheid=yes 10679else 10680 eval $cacheid=no 10681fi 10682rm -f core conftest.err conftest.$ac_objext \ 10683 conftest$ac_exeext conftest.$ac_ext 10684fi 10685 10686 10687 CFLAGS="$xorg_testset_save_CFLAGS" 10688 10689 eval supported=\$$cacheid 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10691$as_echo "$supported" >&6; } 10692 if test "$supported" = "yes" ; then 10693 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10694 found="yes" 10695 fi 10696 fi 10697 10698 10699 10700# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10701# activate it with -Werror, so we add it here explicitly. 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715xorg_testset_save_CFLAGS="$CFLAGS" 10716 10717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10722 $as_echo_n "(cached) " >&6 10723else 10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10725/* end confdefs.h. */ 10726int i; 10727_ACEOF 10728if ac_fn_c_try_compile "$LINENO"; then : 10729 xorg_cv_cc_flag_unknown_warning_option=yes 10730else 10731 xorg_cv_cc_flag_unknown_warning_option=no 10732fi 10733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10734fi 10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10738 CFLAGS="$xorg_testset_save_CFLAGS" 10739fi 10740 10741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10744 fi 10745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10749 $as_echo_n "(cached) " >&6 10750else 10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752/* end confdefs.h. */ 10753int i; 10754_ACEOF 10755if ac_fn_c_try_compile "$LINENO"; then : 10756 xorg_cv_cc_flag_unused_command_line_argument=yes 10757else 10758 xorg_cv_cc_flag_unused_command_line_argument=no 10759fi 10760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10761fi 10762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10765 CFLAGS="$xorg_testset_save_CFLAGS" 10766fi 10767 10768found="no" 10769 10770 if test $found = "no" ; then 10771 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10773 fi 10774 10775 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10777 fi 10778 10779 CFLAGS="$CFLAGS -Werror=attributes" 10780 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5 10782$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; } 10783 cacheid=xorg_cv_cc_flag__Werror_attributes 10784 if eval \${$cacheid+:} false; then : 10785 $as_echo_n "(cached) " >&6 10786else 10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788/* end confdefs.h. */ 10789int i; 10790int 10791main () 10792{ 10793 10794 ; 10795 return 0; 10796} 10797_ACEOF 10798if ac_fn_c_try_link "$LINENO"; then : 10799 eval $cacheid=yes 10800else 10801 eval $cacheid=no 10802fi 10803rm -f core conftest.err conftest.$ac_objext \ 10804 conftest$ac_exeext conftest.$ac_ext 10805fi 10806 10807 10808 CFLAGS="$xorg_testset_save_CFLAGS" 10809 10810 eval supported=\$$cacheid 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10812$as_echo "$supported" >&6; } 10813 if test "$supported" = "yes" ; then 10814 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10815 found="yes" 10816 fi 10817 fi 10818 10819 10820 10821if test "x$STRICT_COMPILE" = "xyes"; then 10822 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10823 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10824fi 10825 10826 10827 10828 10829 10830 10831cat >>confdefs.h <<_ACEOF 10832#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10833_ACEOF 10834 10835 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10836 if test "x$PVM" = "x"; then 10837 PVM="0" 10838 fi 10839 10840cat >>confdefs.h <<_ACEOF 10841#define PACKAGE_VERSION_MINOR $PVM 10842_ACEOF 10843 10844 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10845 if test "x$PVP" = "x"; then 10846 PVP="0" 10847 fi 10848 10849cat >>confdefs.h <<_ACEOF 10850#define PACKAGE_VERSION_PATCHLEVEL $PVP 10851_ACEOF 10852 10853 10854 10855CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10856mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10857|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10858echo 'git directory not found: installing possibly empty changelog.' >&2)" 10859 10860 10861 10862 10863macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10864INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10865mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10866|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10867echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10868 10869 10870 10871 10872 10873 10874if test x$APP_MAN_SUFFIX = x ; then 10875 APP_MAN_SUFFIX=1 10876fi 10877if test x$APP_MAN_DIR = x ; then 10878 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10879fi 10880 10881if test x$LIB_MAN_SUFFIX = x ; then 10882 LIB_MAN_SUFFIX=3 10883fi 10884if test x$LIB_MAN_DIR = x ; then 10885 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10886fi 10887 10888if test x$FILE_MAN_SUFFIX = x ; then 10889 case $host_os in 10890 solaris*) FILE_MAN_SUFFIX=4 ;; 10891 *) FILE_MAN_SUFFIX=5 ;; 10892 esac 10893fi 10894if test x$FILE_MAN_DIR = x ; then 10895 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10896fi 10897 10898if test x$MISC_MAN_SUFFIX = x ; then 10899 case $host_os in 10900 solaris*) MISC_MAN_SUFFIX=5 ;; 10901 *) MISC_MAN_SUFFIX=7 ;; 10902 esac 10903fi 10904if test x$MISC_MAN_DIR = x ; then 10905 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10906fi 10907 10908if test x$DRIVER_MAN_SUFFIX = x ; then 10909 case $host_os in 10910 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10911 *) DRIVER_MAN_SUFFIX=4 ;; 10912 esac 10913fi 10914if test x$DRIVER_MAN_DIR = x ; then 10915 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10916fi 10917 10918if test x$ADMIN_MAN_SUFFIX = x ; then 10919 case $host_os in 10920 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10921 *) ADMIN_MAN_SUFFIX=8 ;; 10922 esac 10923fi 10924if test x$ADMIN_MAN_DIR = x ; then 10925 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10926fi 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942XORG_MAN_PAGE="X Version 11" 10943 10944MAN_SUBSTS="\ 10945 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10946 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10947 -e 's|__xservername__|Xorg|g' \ 10948 -e 's|__xconfigfile__|xorg.conf|g' \ 10949 -e 's|__projectroot__|\$(prefix)|g' \ 10950 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10951 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10952 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10953 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10954 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10955 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10956 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10957 10958 10959 10960# Check whether --enable-silent-rules was given. 10961if test "${enable_silent_rules+set}" = set; then : 10962 enableval=$enable_silent_rules; 10963fi 10964 10965case $enable_silent_rules in # ((( 10966 yes) AM_DEFAULT_VERBOSITY=0;; 10967 no) AM_DEFAULT_VERBOSITY=1;; 10968 *) AM_DEFAULT_VERBOSITY=0;; 10969esac 10970am_make=${MAKE-make} 10971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10972$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10973if ${am_cv_make_support_nested_variables+:} false; then : 10974 $as_echo_n "(cached) " >&6 10975else 10976 if $as_echo 'TRUE=$(BAR$(V)) 10977BAR0=false 10978BAR1=true 10979V=1 10980am__doit: 10981 @$(TRUE) 10982.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10983 am_cv_make_support_nested_variables=yes 10984else 10985 am_cv_make_support_nested_variables=no 10986fi 10987fi 10988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10989$as_echo "$am_cv_make_support_nested_variables" >&6; } 10990if test $am_cv_make_support_nested_variables = yes; then 10991 AM_V='$(V)' 10992 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10993else 10994 AM_V=$AM_DEFAULT_VERBOSITY 10995 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10996fi 10997AM_BACKSLASH='\' 10998 10999 11000 11001# And disable a few very noisy warnings 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016xorg_testset_save_CFLAGS="$CFLAGS" 11017 11018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11021$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11022if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11023 $as_echo_n "(cached) " >&6 11024else 11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11026/* end confdefs.h. */ 11027int i; 11028_ACEOF 11029if ac_fn_c_try_compile "$LINENO"; then : 11030 xorg_cv_cc_flag_unknown_warning_option=yes 11031else 11032 xorg_cv_cc_flag_unknown_warning_option=no 11033fi 11034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11035fi 11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11037$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11039 CFLAGS="$xorg_testset_save_CFLAGS" 11040fi 11041 11042if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11045 fi 11046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11048$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11049if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11050 $as_echo_n "(cached) " >&6 11051else 11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11053/* end confdefs.h. */ 11054int i; 11055_ACEOF 11056if ac_fn_c_try_compile "$LINENO"; then : 11057 xorg_cv_cc_flag_unused_command_line_argument=yes 11058else 11059 xorg_cv_cc_flag_unused_command_line_argument=no 11060fi 11061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11062fi 11063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11064$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11066 CFLAGS="$xorg_testset_save_CFLAGS" 11067fi 11068 11069found="no" 11070 11071 if test $found = "no" ; then 11072 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11074 fi 11075 11076 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11078 fi 11079 11080 CFLAGS="$CFLAGS -Wno-cast-qual" 11081 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-cast-qual" >&5 11083$as_echo_n "checking if $CC supports-Wno-cast-qual... " >&6; } 11084 cacheid=xorg_cv_cc_flag__Wno_cast_qual 11085 if eval \${$cacheid+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087else 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11089/* end confdefs.h. */ 11090int i; 11091int 11092main () 11093{ 11094 11095 ; 11096 return 0; 11097} 11098_ACEOF 11099if ac_fn_c_try_link "$LINENO"; then : 11100 eval $cacheid=yes 11101else 11102 eval $cacheid=no 11103fi 11104rm -f core conftest.err conftest.$ac_objext \ 11105 conftest$ac_exeext conftest.$ac_ext 11106fi 11107 11108 11109 CFLAGS="$xorg_testset_save_CFLAGS" 11110 11111 eval supported=\$$cacheid 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11113$as_echo "$supported" >&6; } 11114 if test "$supported" = "yes" ; then 11115 NOWARNFLAGS="$NOWARNFLAGS -Wno-cast-qual" 11116 found="yes" 11117 fi 11118 fi 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134xorg_testset_save_CFLAGS="$CFLAGS" 11135 11136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11139$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11140if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11141 $as_echo_n "(cached) " >&6 11142else 11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11144/* end confdefs.h. */ 11145int i; 11146_ACEOF 11147if ac_fn_c_try_compile "$LINENO"; then : 11148 xorg_cv_cc_flag_unknown_warning_option=yes 11149else 11150 xorg_cv_cc_flag_unknown_warning_option=no 11151fi 11152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11153fi 11154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11155$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11157 CFLAGS="$xorg_testset_save_CFLAGS" 11158fi 11159 11160if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11163 fi 11164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11166$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11167if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11168 $as_echo_n "(cached) " >&6 11169else 11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171/* end confdefs.h. */ 11172int i; 11173_ACEOF 11174if ac_fn_c_try_compile "$LINENO"; then : 11175 xorg_cv_cc_flag_unused_command_line_argument=yes 11176else 11177 xorg_cv_cc_flag_unused_command_line_argument=no 11178fi 11179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11180fi 11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11182$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11184 CFLAGS="$xorg_testset_save_CFLAGS" 11185fi 11186 11187found="no" 11188 11189 if test $found = "no" ; then 11190 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11192 fi 11193 11194 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11196 fi 11197 11198 CFLAGS="$CFLAGS -Wno-redundant-decls" 11199 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-redundant-decls" >&5 11201$as_echo_n "checking if $CC supports-Wno-redundant-decls... " >&6; } 11202 cacheid=xorg_cv_cc_flag__Wno_redundant_decls 11203 if eval \${$cacheid+:} false; then : 11204 $as_echo_n "(cached) " >&6 11205else 11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11207/* end confdefs.h. */ 11208int i; 11209int 11210main () 11211{ 11212 11213 ; 11214 return 0; 11215} 11216_ACEOF 11217if ac_fn_c_try_link "$LINENO"; then : 11218 eval $cacheid=yes 11219else 11220 eval $cacheid=no 11221fi 11222rm -f core conftest.err conftest.$ac_objext \ 11223 conftest$ac_exeext conftest.$ac_ext 11224fi 11225 11226 11227 CFLAGS="$xorg_testset_save_CFLAGS" 11228 11229 eval supported=\$$cacheid 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11231$as_echo "$supported" >&6; } 11232 if test "$supported" = "yes" ; then 11233 NOWARNFLAGS="$NOWARNFLAGS -Wno-redundant-decls" 11234 found="yes" 11235 fi 11236 fi 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252xorg_testset_save_CFLAGS="$CFLAGS" 11253 11254if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11257$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11258if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11259 $as_echo_n "(cached) " >&6 11260else 11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11262/* end confdefs.h. */ 11263int i; 11264_ACEOF 11265if ac_fn_c_try_compile "$LINENO"; then : 11266 xorg_cv_cc_flag_unknown_warning_option=yes 11267else 11268 xorg_cv_cc_flag_unknown_warning_option=no 11269fi 11270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11271fi 11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11273$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11275 CFLAGS="$xorg_testset_save_CFLAGS" 11276fi 11277 11278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11281 fi 11282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11284$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11285if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11286 $as_echo_n "(cached) " >&6 11287else 11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11289/* end confdefs.h. */ 11290int i; 11291_ACEOF 11292if ac_fn_c_try_compile "$LINENO"; then : 11293 xorg_cv_cc_flag_unused_command_line_argument=yes 11294else 11295 xorg_cv_cc_flag_unused_command_line_argument=no 11296fi 11297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11298fi 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11300$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11302 CFLAGS="$xorg_testset_save_CFLAGS" 11303fi 11304 11305found="no" 11306 11307 if test $found = "no" ; then 11308 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 11309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11310 fi 11311 11312 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 11313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11314 fi 11315 11316 CFLAGS="$CFLAGS -Wno-maybe-uninitialized" 11317 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-maybe-uninitialized" >&5 11319$as_echo_n "checking if $CC supports-Wno-maybe-uninitialized... " >&6; } 11320 cacheid=xorg_cv_cc_flag__Wno_maybe_uninitialized 11321 if eval \${$cacheid+:} false; then : 11322 $as_echo_n "(cached) " >&6 11323else 11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325/* end confdefs.h. */ 11326int i; 11327int 11328main () 11329{ 11330 11331 ; 11332 return 0; 11333} 11334_ACEOF 11335if ac_fn_c_try_link "$LINENO"; then : 11336 eval $cacheid=yes 11337else 11338 eval $cacheid=no 11339fi 11340rm -f core conftest.err conftest.$ac_objext \ 11341 conftest$ac_exeext conftest.$ac_ext 11342fi 11343 11344 11345 CFLAGS="$xorg_testset_save_CFLAGS" 11346 11347 eval supported=\$$cacheid 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11349$as_echo "$supported" >&6; } 11350 if test "$supported" = "yes" ; then 11351 NOWARNFLAGS="$NOWARNFLAGS -Wno-maybe-uninitialized" 11352 found="yes" 11353 fi 11354 fi 11355 11356 11357 11358 11359 11360# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules 11361 11362 11363# Initialize libtool 11364# Check whether --enable-static was given. 11365if test "${enable_static+set}" = set; then : 11366 enableval=$enable_static; p=${PACKAGE-default} 11367 case $enableval in 11368 yes) enable_static=yes ;; 11369 no) enable_static=no ;; 11370 *) 11371 enable_static=no 11372 # Look at the argument we got. We use all the common list separators. 11373 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11374 for pkg in $enableval; do 11375 IFS="$lt_save_ifs" 11376 if test "X$pkg" = "X$p"; then 11377 enable_static=yes 11378 fi 11379 done 11380 IFS="$lt_save_ifs" 11381 ;; 11382 esac 11383else 11384 enable_static=no 11385fi 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395case `pwd` in 11396 *\ * | *\ *) 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11398$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11399esac 11400 11401 11402 11403macro_version='2.4.2' 11404macro_revision='1.3337' 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418ltmain="$ac_aux_dir/ltmain.sh" 11419 11420# Backslashify metacharacters that are still active within 11421# double-quoted strings. 11422sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11423 11424# Same as above, but do not quote variable references. 11425double_quote_subst='s/\(["`\\]\)/\\\1/g' 11426 11427# Sed substitution to delay expansion of an escaped shell variable in a 11428# double_quote_subst'ed string. 11429delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11430 11431# Sed substitution to delay expansion of an escaped single quote. 11432delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11433 11434# Sed substitution to avoid accidental globbing in evaled expressions 11435no_glob_subst='s/\*/\\\*/g' 11436 11437ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11438ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11439ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11440 11441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11442$as_echo_n "checking how to print strings... " >&6; } 11443# Test print first, because it will be a builtin if present. 11444if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11445 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11446 ECHO='print -r --' 11447elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11448 ECHO='printf %s\n' 11449else 11450 # Use this function as a fallback that always works. 11451 func_fallback_echo () 11452 { 11453 eval 'cat <<_LTECHO_EOF 11454$1 11455_LTECHO_EOF' 11456 } 11457 ECHO='func_fallback_echo' 11458fi 11459 11460# func_echo_all arg... 11461# Invoke $ECHO with all args, space-separated. 11462func_echo_all () 11463{ 11464 $ECHO "" 11465} 11466 11467case "$ECHO" in 11468 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11469$as_echo "printf" >&6; } ;; 11470 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11471$as_echo "print -r" >&6; } ;; 11472 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11473$as_echo "cat" >&6; } ;; 11474esac 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11490$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11491if ${ac_cv_path_SED+:} false; then : 11492 $as_echo_n "(cached) " >&6 11493else 11494 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11495 for ac_i in 1 2 3 4 5 6 7; do 11496 ac_script="$ac_script$as_nl$ac_script" 11497 done 11498 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11499 { ac_script=; unset ac_script;} 11500 if test -z "$SED"; then 11501 ac_path_SED_found=false 11502 # Loop through the user's path and test for each of PROGNAME-LIST 11503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11504for as_dir in $PATH 11505do 11506 IFS=$as_save_IFS 11507 test -z "$as_dir" && as_dir=. 11508 for ac_prog in sed gsed; do 11509 for ac_exec_ext in '' $ac_executable_extensions; do 11510 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11511 as_fn_executable_p "$ac_path_SED" || continue 11512# Check for GNU ac_path_SED and select it if it is found. 11513 # Check for GNU $ac_path_SED 11514case `"$ac_path_SED" --version 2>&1` in 11515*GNU*) 11516 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11517*) 11518 ac_count=0 11519 $as_echo_n 0123456789 >"conftest.in" 11520 while : 11521 do 11522 cat "conftest.in" "conftest.in" >"conftest.tmp" 11523 mv "conftest.tmp" "conftest.in" 11524 cp "conftest.in" "conftest.nl" 11525 $as_echo '' >> "conftest.nl" 11526 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11527 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11528 as_fn_arith $ac_count + 1 && ac_count=$as_val 11529 if test $ac_count -gt ${ac_path_SED_max-0}; then 11530 # Best one so far, save it but keep looking for a better one 11531 ac_cv_path_SED="$ac_path_SED" 11532 ac_path_SED_max=$ac_count 11533 fi 11534 # 10*(2^10) chars as input seems more than enough 11535 test $ac_count -gt 10 && break 11536 done 11537 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11538esac 11539 11540 $ac_path_SED_found && break 3 11541 done 11542 done 11543 done 11544IFS=$as_save_IFS 11545 if test -z "$ac_cv_path_SED"; then 11546 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11547 fi 11548else 11549 ac_cv_path_SED=$SED 11550fi 11551 11552fi 11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11554$as_echo "$ac_cv_path_SED" >&6; } 11555 SED="$ac_cv_path_SED" 11556 rm -f conftest.sed 11557 11558test -z "$SED" && SED=sed 11559Xsed="$SED -e 1s/^X//" 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11572$as_echo_n "checking for fgrep... " >&6; } 11573if ${ac_cv_path_FGREP+:} false; then : 11574 $as_echo_n "(cached) " >&6 11575else 11576 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11577 then ac_cv_path_FGREP="$GREP -F" 11578 else 11579 if test -z "$FGREP"; then 11580 ac_path_FGREP_found=false 11581 # Loop through the user's path and test for each of PROGNAME-LIST 11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11584do 11585 IFS=$as_save_IFS 11586 test -z "$as_dir" && as_dir=. 11587 for ac_prog in fgrep; do 11588 for ac_exec_ext in '' $ac_executable_extensions; do 11589 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11590 as_fn_executable_p "$ac_path_FGREP" || continue 11591# Check for GNU ac_path_FGREP and select it if it is found. 11592 # Check for GNU $ac_path_FGREP 11593case `"$ac_path_FGREP" --version 2>&1` in 11594*GNU*) 11595 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11596*) 11597 ac_count=0 11598 $as_echo_n 0123456789 >"conftest.in" 11599 while : 11600 do 11601 cat "conftest.in" "conftest.in" >"conftest.tmp" 11602 mv "conftest.tmp" "conftest.in" 11603 cp "conftest.in" "conftest.nl" 11604 $as_echo 'FGREP' >> "conftest.nl" 11605 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11607 as_fn_arith $ac_count + 1 && ac_count=$as_val 11608 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11609 # Best one so far, save it but keep looking for a better one 11610 ac_cv_path_FGREP="$ac_path_FGREP" 11611 ac_path_FGREP_max=$ac_count 11612 fi 11613 # 10*(2^10) chars as input seems more than enough 11614 test $ac_count -gt 10 && break 11615 done 11616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11617esac 11618 11619 $ac_path_FGREP_found && break 3 11620 done 11621 done 11622 done 11623IFS=$as_save_IFS 11624 if test -z "$ac_cv_path_FGREP"; then 11625 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11626 fi 11627else 11628 ac_cv_path_FGREP=$FGREP 11629fi 11630 11631 fi 11632fi 11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11634$as_echo "$ac_cv_path_FGREP" >&6; } 11635 FGREP="$ac_cv_path_FGREP" 11636 11637 11638test -z "$GREP" && GREP=grep 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658# Check whether --with-gnu-ld was given. 11659if test "${with_gnu_ld+set}" = set; then : 11660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11661else 11662 with_gnu_ld=no 11663fi 11664 11665ac_prog=ld 11666if test "$GCC" = yes; then 11667 # Check if gcc -print-prog-name=ld gives a path. 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11669$as_echo_n "checking for ld used by $CC... " >&6; } 11670 case $host in 11671 *-*-mingw*) 11672 # gcc leaves a trailing carriage return which upsets mingw 11673 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11674 *) 11675 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11676 esac 11677 case $ac_prog in 11678 # Accept absolute paths. 11679 [\\/]* | ?:[\\/]*) 11680 re_direlt='/[^/][^/]*/\.\./' 11681 # Canonicalize the pathname of ld 11682 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11683 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11684 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11685 done 11686 test -z "$LD" && LD="$ac_prog" 11687 ;; 11688 "") 11689 # If it fails, then pretend we aren't using GCC. 11690 ac_prog=ld 11691 ;; 11692 *) 11693 # If it is relative, then search for the first ld in PATH. 11694 with_gnu_ld=unknown 11695 ;; 11696 esac 11697elif test "$with_gnu_ld" = yes; then 11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11699$as_echo_n "checking for GNU ld... " >&6; } 11700else 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11702$as_echo_n "checking for non-GNU ld... " >&6; } 11703fi 11704if ${lt_cv_path_LD+:} false; then : 11705 $as_echo_n "(cached) " >&6 11706else 11707 if test -z "$LD"; then 11708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11709 for ac_dir in $PATH; do 11710 IFS="$lt_save_ifs" 11711 test -z "$ac_dir" && ac_dir=. 11712 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11713 lt_cv_path_LD="$ac_dir/$ac_prog" 11714 # Check to see if the program is GNU ld. I'd rather use --version, 11715 # but apparently some variants of GNU ld only accept -v. 11716 # Break only if it was the GNU/non-GNU ld that we prefer. 11717 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11718 *GNU* | *'with BFD'*) 11719 test "$with_gnu_ld" != no && break 11720 ;; 11721 *) 11722 test "$with_gnu_ld" != yes && break 11723 ;; 11724 esac 11725 fi 11726 done 11727 IFS="$lt_save_ifs" 11728else 11729 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11730fi 11731fi 11732 11733LD="$lt_cv_path_LD" 11734if test -n "$LD"; then 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11736$as_echo "$LD" >&6; } 11737else 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11739$as_echo "no" >&6; } 11740fi 11741test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11743$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11744if ${lt_cv_prog_gnu_ld+:} false; then : 11745 $as_echo_n "(cached) " >&6 11746else 11747 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11748case `$LD -v 2>&1 </dev/null` in 11749*GNU* | *'with BFD'*) 11750 lt_cv_prog_gnu_ld=yes 11751 ;; 11752*) 11753 lt_cv_prog_gnu_ld=no 11754 ;; 11755esac 11756fi 11757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11758$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11759with_gnu_ld=$lt_cv_prog_gnu_ld 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11770$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11771if ${lt_cv_path_NM+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773else 11774 if test -n "$NM"; then 11775 # Let the user override the test. 11776 lt_cv_path_NM="$NM" 11777else 11778 lt_nm_to_check="${ac_tool_prefix}nm" 11779 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11780 lt_nm_to_check="$lt_nm_to_check nm" 11781 fi 11782 for lt_tmp_nm in $lt_nm_to_check; do 11783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11784 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11785 IFS="$lt_save_ifs" 11786 test -z "$ac_dir" && ac_dir=. 11787 tmp_nm="$ac_dir/$lt_tmp_nm" 11788 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11789 # Check to see if the nm accepts a BSD-compat flag. 11790 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11791 # nm: unknown option "B" ignored 11792 # Tru64's nm complains that /dev/null is an invalid object file 11793 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11794 */dev/null* | *'Invalid file or object type'*) 11795 lt_cv_path_NM="$tmp_nm -B" 11796 break 11797 ;; 11798 *) 11799 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11800 */dev/null*) 11801 lt_cv_path_NM="$tmp_nm -p" 11802 break 11803 ;; 11804 *) 11805 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11806 continue # so that we can try to find one that supports BSD flags 11807 ;; 11808 esac 11809 ;; 11810 esac 11811 fi 11812 done 11813 IFS="$lt_save_ifs" 11814 done 11815 : ${lt_cv_path_NM=no} 11816fi 11817fi 11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11819$as_echo "$lt_cv_path_NM" >&6; } 11820if test "$lt_cv_path_NM" != "no"; then 11821 NM="$lt_cv_path_NM" 11822else 11823 # Didn't find any BSD compatible name lister, look for dumpbin. 11824 if test -n "$DUMPBIN"; then : 11825 # Let the user override the test. 11826 else 11827 if test -n "$ac_tool_prefix"; then 11828 for ac_prog in dumpbin "link -dump" 11829 do 11830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11831set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11833$as_echo_n "checking for $ac_word... " >&6; } 11834if ${ac_cv_prog_DUMPBIN+:} false; then : 11835 $as_echo_n "(cached) " >&6 11836else 11837 if test -n "$DUMPBIN"; then 11838 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11839else 11840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11841for as_dir in $PATH 11842do 11843 IFS=$as_save_IFS 11844 test -z "$as_dir" && as_dir=. 11845 for ac_exec_ext in '' $ac_executable_extensions; do 11846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11847 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11849 break 2 11850 fi 11851done 11852 done 11853IFS=$as_save_IFS 11854 11855fi 11856fi 11857DUMPBIN=$ac_cv_prog_DUMPBIN 11858if test -n "$DUMPBIN"; then 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11860$as_echo "$DUMPBIN" >&6; } 11861else 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11863$as_echo "no" >&6; } 11864fi 11865 11866 11867 test -n "$DUMPBIN" && break 11868 done 11869fi 11870if test -z "$DUMPBIN"; then 11871 ac_ct_DUMPBIN=$DUMPBIN 11872 for ac_prog in dumpbin "link -dump" 11873do 11874 # Extract the first word of "$ac_prog", so it can be a program name with args. 11875set dummy $ac_prog; ac_word=$2 11876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11877$as_echo_n "checking for $ac_word... " >&6; } 11878if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11879 $as_echo_n "(cached) " >&6 11880else 11881 if test -n "$ac_ct_DUMPBIN"; then 11882 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11883else 11884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11885for as_dir in $PATH 11886do 11887 IFS=$as_save_IFS 11888 test -z "$as_dir" && as_dir=. 11889 for ac_exec_ext in '' $ac_executable_extensions; do 11890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11891 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11893 break 2 11894 fi 11895done 11896 done 11897IFS=$as_save_IFS 11898 11899fi 11900fi 11901ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11902if test -n "$ac_ct_DUMPBIN"; then 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11904$as_echo "$ac_ct_DUMPBIN" >&6; } 11905else 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11907$as_echo "no" >&6; } 11908fi 11909 11910 11911 test -n "$ac_ct_DUMPBIN" && break 11912done 11913 11914 if test "x$ac_ct_DUMPBIN" = x; then 11915 DUMPBIN=":" 11916 else 11917 case $cross_compiling:$ac_tool_warned in 11918yes:) 11919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11921ac_tool_warned=yes ;; 11922esac 11923 DUMPBIN=$ac_ct_DUMPBIN 11924 fi 11925fi 11926 11927 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11928 *COFF*) 11929 DUMPBIN="$DUMPBIN -symbols" 11930 ;; 11931 *) 11932 DUMPBIN=: 11933 ;; 11934 esac 11935 fi 11936 11937 if test "$DUMPBIN" != ":"; then 11938 NM="$DUMPBIN" 11939 fi 11940fi 11941test -z "$NM" && NM=nm 11942 11943 11944 11945 11946 11947 11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11949$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11950if ${lt_cv_nm_interface+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 lt_cv_nm_interface="BSD nm" 11954 echo "int some_variable = 0;" > conftest.$ac_ext 11955 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11956 (eval "$ac_compile" 2>conftest.err) 11957 cat conftest.err >&5 11958 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11959 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11960 cat conftest.err >&5 11961 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11962 cat conftest.out >&5 11963 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11964 lt_cv_nm_interface="MS dumpbin" 11965 fi 11966 rm -f conftest* 11967fi 11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11969$as_echo "$lt_cv_nm_interface" >&6; } 11970 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11972$as_echo_n "checking whether ln -s works... " >&6; } 11973LN_S=$as_ln_s 11974if test "$LN_S" = "ln -s"; then 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11976$as_echo "yes" >&6; } 11977else 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11979$as_echo "no, using $LN_S" >&6; } 11980fi 11981 11982# find the maximum length of command line arguments 11983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11984$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11985if ${lt_cv_sys_max_cmd_len+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987else 11988 i=0 11989 teststring="ABCD" 11990 11991 case $build_os in 11992 msdosdjgpp*) 11993 # On DJGPP, this test can blow up pretty badly due to problems in libc 11994 # (any single argument exceeding 2000 bytes causes a buffer overrun 11995 # during glob expansion). Even if it were fixed, the result of this 11996 # check would be larger than it should be. 11997 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11998 ;; 11999 12000 gnu*) 12001 # Under GNU Hurd, this test is not required because there is 12002 # no limit to the length of command line arguments. 12003 # Libtool will interpret -1 as no limit whatsoever 12004 lt_cv_sys_max_cmd_len=-1; 12005 ;; 12006 12007 cygwin* | mingw* | cegcc*) 12008 # On Win9x/ME, this test blows up -- it succeeds, but takes 12009 # about 5 minutes as the teststring grows exponentially. 12010 # Worse, since 9x/ME are not pre-emptively multitasking, 12011 # you end up with a "frozen" computer, even though with patience 12012 # the test eventually succeeds (with a max line length of 256k). 12013 # Instead, let's just punt: use the minimum linelength reported by 12014 # all of the supported platforms: 8192 (on NT/2K/XP). 12015 lt_cv_sys_max_cmd_len=8192; 12016 ;; 12017 12018 mint*) 12019 # On MiNT this can take a long time and run out of memory. 12020 lt_cv_sys_max_cmd_len=8192; 12021 ;; 12022 12023 amigaos*) 12024 # On AmigaOS with pdksh, this test takes hours, literally. 12025 # So we just punt and use a minimum line length of 8192. 12026 lt_cv_sys_max_cmd_len=8192; 12027 ;; 12028 12029 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 12030 # This has been around since 386BSD, at least. Likely further. 12031 if test -x /sbin/sysctl; then 12032 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12033 elif test -x /usr/sbin/sysctl; then 12034 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12035 else 12036 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12037 fi 12038 # And add a safety zone 12039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12041 ;; 12042 12043 interix*) 12044 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12045 lt_cv_sys_max_cmd_len=196608 12046 ;; 12047 12048 os2*) 12049 # The test takes a long time on OS/2. 12050 lt_cv_sys_max_cmd_len=8192 12051 ;; 12052 12053 osf*) 12054 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12055 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12056 # nice to cause kernel panics so lets avoid the loop below. 12057 # First set a reasonable default. 12058 lt_cv_sys_max_cmd_len=16384 12059 # 12060 if test -x /sbin/sysconfig; then 12061 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12062 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12063 esac 12064 fi 12065 ;; 12066 sco3.2v5*) 12067 lt_cv_sys_max_cmd_len=102400 12068 ;; 12069 sysv5* | sco5v6* | sysv4.2uw2*) 12070 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12071 if test -n "$kargmax"; then 12072 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12073 else 12074 lt_cv_sys_max_cmd_len=32768 12075 fi 12076 ;; 12077 *) 12078 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12079 if test -n "$lt_cv_sys_max_cmd_len" && \ 12080 test undefined != "$lt_cv_sys_max_cmd_len"; then 12081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12082 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12083 else 12084 # Make teststring a little bigger before we do anything with it. 12085 # a 1K string should be a reasonable start. 12086 for i in 1 2 3 4 5 6 7 8 ; do 12087 teststring=$teststring$teststring 12088 done 12089 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12090 # If test is not a shell built-in, we'll probably end up computing a 12091 # maximum length that is only half of the actual maximum length, but 12092 # we can't tell. 12093 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 12094 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12095 test $i != 17 # 1/2 MB should be enough 12096 do 12097 i=`expr $i + 1` 12098 teststring=$teststring$teststring 12099 done 12100 # Only check the string length outside the loop. 12101 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12102 teststring= 12103 # Add a significant safety factor because C++ compilers can tack on 12104 # massive amounts of additional arguments before passing them to the 12105 # linker. It appears as though 1/2 is a usable value. 12106 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12107 fi 12108 ;; 12109 esac 12110 12111fi 12112 12113if test -n $lt_cv_sys_max_cmd_len ; then 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12115$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 12116else 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12118$as_echo "none" >&6; } 12119fi 12120max_cmd_len=$lt_cv_sys_max_cmd_len 12121 12122 12123 12124 12125 12126 12127: ${CP="cp -f"} 12128: ${MV="mv -f"} 12129: ${RM="rm -f"} 12130 12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 12132$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 12133# Try some XSI features 12134xsi_shell=no 12135( _lt_dummy="a/b/c" 12136 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 12137 = c,a/b,b/c, \ 12138 && eval 'test $(( 1 + 1 )) -eq 2 \ 12139 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 12140 && xsi_shell=yes 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 12142$as_echo "$xsi_shell" >&6; } 12143 12144 12145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 12146$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 12147lt_shell_append=no 12148( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 12149 >/dev/null 2>&1 \ 12150 && lt_shell_append=yes 12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 12152$as_echo "$lt_shell_append" >&6; } 12153 12154 12155if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12156 lt_unset=unset 12157else 12158 lt_unset=false 12159fi 12160 12161 12162 12163 12164 12165# test EBCDIC or ASCII 12166case `echo X|tr X '\101'` in 12167 A) # ASCII based system 12168 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12169 lt_SP2NL='tr \040 \012' 12170 lt_NL2SP='tr \015\012 \040\040' 12171 ;; 12172 *) # EBCDIC based system 12173 lt_SP2NL='tr \100 \n' 12174 lt_NL2SP='tr \r\n \100\100' 12175 ;; 12176esac 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12187$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 12188if ${lt_cv_to_host_file_cmd+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 case $host in 12192 *-*-mingw* ) 12193 case $build in 12194 *-*-mingw* ) # actually msys 12195 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12196 ;; 12197 *-*-cygwin* ) 12198 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12199 ;; 12200 * ) # otherwise, assume *nix 12201 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12202 ;; 12203 esac 12204 ;; 12205 *-*-cygwin* ) 12206 case $build in 12207 *-*-mingw* ) # actually msys 12208 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12209 ;; 12210 *-*-cygwin* ) 12211 lt_cv_to_host_file_cmd=func_convert_file_noop 12212 ;; 12213 * ) # otherwise, assume *nix 12214 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12215 ;; 12216 esac 12217 ;; 12218 * ) # unhandled hosts (and "normal" native builds) 12219 lt_cv_to_host_file_cmd=func_convert_file_noop 12220 ;; 12221esac 12222 12223fi 12224 12225to_host_file_cmd=$lt_cv_to_host_file_cmd 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12227$as_echo "$lt_cv_to_host_file_cmd" >&6; } 12228 12229 12230 12231 12232 12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12234$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 12235if ${lt_cv_to_tool_file_cmd+:} false; then : 12236 $as_echo_n "(cached) " >&6 12237else 12238 #assume ordinary cross tools, or native build. 12239lt_cv_to_tool_file_cmd=func_convert_file_noop 12240case $host in 12241 *-*-mingw* ) 12242 case $build in 12243 *-*-mingw* ) # actually msys 12244 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12245 ;; 12246 esac 12247 ;; 12248esac 12249 12250fi 12251 12252to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12254$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12255 12256 12257 12258 12259 12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12261$as_echo_n "checking for $LD option to reload object files... " >&6; } 12262if ${lt_cv_ld_reload_flag+:} false; then : 12263 $as_echo_n "(cached) " >&6 12264else 12265 lt_cv_ld_reload_flag='-r' 12266fi 12267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12268$as_echo "$lt_cv_ld_reload_flag" >&6; } 12269reload_flag=$lt_cv_ld_reload_flag 12270case $reload_flag in 12271"" | " "*) ;; 12272*) reload_flag=" $reload_flag" ;; 12273esac 12274reload_cmds='$LD$reload_flag -o $output$reload_objs' 12275case $host_os in 12276 cygwin* | mingw* | pw32* | cegcc*) 12277 if test "$GCC" != yes; then 12278 reload_cmds=false 12279 fi 12280 ;; 12281 darwin*) 12282 if test "$GCC" = yes; then 12283 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 12284 else 12285 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12286 fi 12287 ;; 12288esac 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298if test -n "$ac_tool_prefix"; then 12299 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12300set dummy ${ac_tool_prefix}objdump; ac_word=$2 12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12302$as_echo_n "checking for $ac_word... " >&6; } 12303if ${ac_cv_prog_OBJDUMP+:} false; then : 12304 $as_echo_n "(cached) " >&6 12305else 12306 if test -n "$OBJDUMP"; then 12307 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12308else 12309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12310for as_dir in $PATH 12311do 12312 IFS=$as_save_IFS 12313 test -z "$as_dir" && as_dir=. 12314 for ac_exec_ext in '' $ac_executable_extensions; do 12315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12316 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12318 break 2 12319 fi 12320done 12321 done 12322IFS=$as_save_IFS 12323 12324fi 12325fi 12326OBJDUMP=$ac_cv_prog_OBJDUMP 12327if test -n "$OBJDUMP"; then 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12329$as_echo "$OBJDUMP" >&6; } 12330else 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12332$as_echo "no" >&6; } 12333fi 12334 12335 12336fi 12337if test -z "$ac_cv_prog_OBJDUMP"; then 12338 ac_ct_OBJDUMP=$OBJDUMP 12339 # Extract the first word of "objdump", so it can be a program name with args. 12340set dummy objdump; ac_word=$2 12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12342$as_echo_n "checking for $ac_word... " >&6; } 12343if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345else 12346 if test -n "$ac_ct_OBJDUMP"; then 12347 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12348else 12349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12350for as_dir in $PATH 12351do 12352 IFS=$as_save_IFS 12353 test -z "$as_dir" && as_dir=. 12354 for ac_exec_ext in '' $ac_executable_extensions; do 12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12356 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12358 break 2 12359 fi 12360done 12361 done 12362IFS=$as_save_IFS 12363 12364fi 12365fi 12366ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12367if test -n "$ac_ct_OBJDUMP"; then 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12369$as_echo "$ac_ct_OBJDUMP" >&6; } 12370else 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12372$as_echo "no" >&6; } 12373fi 12374 12375 if test "x$ac_ct_OBJDUMP" = x; then 12376 OBJDUMP="false" 12377 else 12378 case $cross_compiling:$ac_tool_warned in 12379yes:) 12380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12382ac_tool_warned=yes ;; 12383esac 12384 OBJDUMP=$ac_ct_OBJDUMP 12385 fi 12386else 12387 OBJDUMP="$ac_cv_prog_OBJDUMP" 12388fi 12389 12390test -z "$OBJDUMP" && OBJDUMP=objdump 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12401$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12402if ${lt_cv_deplibs_check_method+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404else 12405 lt_cv_file_magic_cmd='$MAGIC_CMD' 12406lt_cv_file_magic_test_file= 12407lt_cv_deplibs_check_method='unknown' 12408# Need to set the preceding variable on all platforms that support 12409# interlibrary dependencies. 12410# 'none' -- dependencies not supported. 12411# `unknown' -- same as none, but documents that we really don't know. 12412# 'pass_all' -- all dependencies passed with no checks. 12413# 'test_compile' -- check by making test program. 12414# 'file_magic [[regex]]' -- check by looking for files in library path 12415# which responds to the $file_magic_cmd with a given extended regex. 12416# If you have `file' or equivalent on your system and you're not sure 12417# whether `pass_all' will *always* work, you probably want this one. 12418 12419case $host_os in 12420aix[4-9]*) 12421 lt_cv_deplibs_check_method=pass_all 12422 ;; 12423 12424beos*) 12425 lt_cv_deplibs_check_method=pass_all 12426 ;; 12427 12428bsdi[45]*) 12429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12430 lt_cv_file_magic_cmd='/usr/bin/file -L' 12431 lt_cv_file_magic_test_file=/shlib/libc.so 12432 ;; 12433 12434cygwin*) 12435 # func_win32_libid is a shell function defined in ltmain.sh 12436 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12437 lt_cv_file_magic_cmd='func_win32_libid' 12438 ;; 12439 12440mingw* | pw32*) 12441 # Base MSYS/MinGW do not provide the 'file' command needed by 12442 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12443 # unless we find 'file', for example because we are cross-compiling. 12444 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 12445 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 12446 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12447 lt_cv_file_magic_cmd='func_win32_libid' 12448 else 12449 # Keep this pattern in sync with the one in func_win32_libid. 12450 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12451 lt_cv_file_magic_cmd='$OBJDUMP -f' 12452 fi 12453 ;; 12454 12455cegcc*) 12456 # use the weaker test based on 'objdump'. See mingw*. 12457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12458 lt_cv_file_magic_cmd='$OBJDUMP -f' 12459 ;; 12460 12461darwin* | rhapsody*) 12462 lt_cv_deplibs_check_method=pass_all 12463 ;; 12464 12465freebsd* | dragonfly*) 12466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12467 case $host_cpu in 12468 i*86 ) 12469 # Not sure whether the presence of OpenBSD here was a mistake. 12470 # Let's accept both of them until this is cleared up. 12471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12472 lt_cv_file_magic_cmd=/usr/bin/file 12473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12474 ;; 12475 esac 12476 else 12477 lt_cv_deplibs_check_method=pass_all 12478 fi 12479 ;; 12480 12481haiku*) 12482 lt_cv_deplibs_check_method=pass_all 12483 ;; 12484 12485hpux10.20* | hpux11*) 12486 lt_cv_file_magic_cmd=/usr/bin/file 12487 case $host_cpu in 12488 ia64*) 12489 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12490 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12491 ;; 12492 hppa*64*) 12493 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]' 12494 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12495 ;; 12496 *) 12497 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12498 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12499 ;; 12500 esac 12501 ;; 12502 12503interix[3-9]*) 12504 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12506 ;; 12507 12508irix5* | irix6* | nonstopux*) 12509 case $LD in 12510 *-32|*"-32 ") libmagic=32-bit;; 12511 *-n32|*"-n32 ") libmagic=N32;; 12512 *-64|*"-64 ") libmagic=64-bit;; 12513 *) libmagic=never-match;; 12514 esac 12515 lt_cv_deplibs_check_method=pass_all 12516 ;; 12517 12518# This must be glibc/ELF. 12519linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12520 lt_cv_deplibs_check_method=pass_all 12521 ;; 12522 12523netbsd* | netbsdelf*-gnu) 12524 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12526 else 12527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12528 fi 12529 ;; 12530 12531newos6*) 12532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12533 lt_cv_file_magic_cmd=/usr/bin/file 12534 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12535 ;; 12536 12537*nto* | *qnx*) 12538 lt_cv_deplibs_check_method=pass_all 12539 ;; 12540 12541openbsd*) 12542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12544 else 12545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12546 fi 12547 ;; 12548 12549osf3* | osf4* | osf5*) 12550 lt_cv_deplibs_check_method=pass_all 12551 ;; 12552 12553rdos*) 12554 lt_cv_deplibs_check_method=pass_all 12555 ;; 12556 12557solaris*) 12558 lt_cv_deplibs_check_method=pass_all 12559 ;; 12560 12561sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12562 lt_cv_deplibs_check_method=pass_all 12563 ;; 12564 12565sysv4 | sysv4.3*) 12566 case $host_vendor in 12567 motorola) 12568 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]' 12569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12570 ;; 12571 ncr) 12572 lt_cv_deplibs_check_method=pass_all 12573 ;; 12574 sequent) 12575 lt_cv_file_magic_cmd='/bin/file' 12576 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12577 ;; 12578 sni) 12579 lt_cv_file_magic_cmd='/bin/file' 12580 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12581 lt_cv_file_magic_test_file=/lib/libc.so 12582 ;; 12583 siemens) 12584 lt_cv_deplibs_check_method=pass_all 12585 ;; 12586 pc) 12587 lt_cv_deplibs_check_method=pass_all 12588 ;; 12589 esac 12590 ;; 12591 12592tpf*) 12593 lt_cv_deplibs_check_method=pass_all 12594 ;; 12595esac 12596 12597fi 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12599$as_echo "$lt_cv_deplibs_check_method" >&6; } 12600 12601file_magic_glob= 12602want_nocaseglob=no 12603if test "$build" = "$host"; then 12604 case $host_os in 12605 mingw* | pw32*) 12606 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12607 want_nocaseglob=yes 12608 else 12609 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12610 fi 12611 ;; 12612 esac 12613fi 12614 12615file_magic_cmd=$lt_cv_file_magic_cmd 12616deplibs_check_method=$lt_cv_deplibs_check_method 12617test -z "$deplibs_check_method" && deplibs_check_method=unknown 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640if test -n "$ac_tool_prefix"; then 12641 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12642set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12644$as_echo_n "checking for $ac_word... " >&6; } 12645if ${ac_cv_prog_DLLTOOL+:} false; then : 12646 $as_echo_n "(cached) " >&6 12647else 12648 if test -n "$DLLTOOL"; then 12649 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12650else 12651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12652for as_dir in $PATH 12653do 12654 IFS=$as_save_IFS 12655 test -z "$as_dir" && as_dir=. 12656 for ac_exec_ext in '' $ac_executable_extensions; do 12657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12658 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12660 break 2 12661 fi 12662done 12663 done 12664IFS=$as_save_IFS 12665 12666fi 12667fi 12668DLLTOOL=$ac_cv_prog_DLLTOOL 12669if test -n "$DLLTOOL"; then 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12671$as_echo "$DLLTOOL" >&6; } 12672else 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12674$as_echo "no" >&6; } 12675fi 12676 12677 12678fi 12679if test -z "$ac_cv_prog_DLLTOOL"; then 12680 ac_ct_DLLTOOL=$DLLTOOL 12681 # Extract the first word of "dlltool", so it can be a program name with args. 12682set dummy dlltool; ac_word=$2 12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12684$as_echo_n "checking for $ac_word... " >&6; } 12685if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12686 $as_echo_n "(cached) " >&6 12687else 12688 if test -n "$ac_ct_DLLTOOL"; then 12689 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12690else 12691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12692for as_dir in $PATH 12693do 12694 IFS=$as_save_IFS 12695 test -z "$as_dir" && as_dir=. 12696 for ac_exec_ext in '' $ac_executable_extensions; do 12697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12698 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12700 break 2 12701 fi 12702done 12703 done 12704IFS=$as_save_IFS 12705 12706fi 12707fi 12708ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12709if test -n "$ac_ct_DLLTOOL"; then 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12711$as_echo "$ac_ct_DLLTOOL" >&6; } 12712else 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12714$as_echo "no" >&6; } 12715fi 12716 12717 if test "x$ac_ct_DLLTOOL" = x; then 12718 DLLTOOL="false" 12719 else 12720 case $cross_compiling:$ac_tool_warned in 12721yes:) 12722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12724ac_tool_warned=yes ;; 12725esac 12726 DLLTOOL=$ac_ct_DLLTOOL 12727 fi 12728else 12729 DLLTOOL="$ac_cv_prog_DLLTOOL" 12730fi 12731 12732test -z "$DLLTOOL" && DLLTOOL=dlltool 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12744$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12745if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747else 12748 lt_cv_sharedlib_from_linklib_cmd='unknown' 12749 12750case $host_os in 12751cygwin* | mingw* | pw32* | cegcc*) 12752 # two different shell functions defined in ltmain.sh 12753 # decide which to use based on capabilities of $DLLTOOL 12754 case `$DLLTOOL --help 2>&1` in 12755 *--identify-strict*) 12756 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12757 ;; 12758 *) 12759 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12760 ;; 12761 esac 12762 ;; 12763*) 12764 # fallback: assume linklib IS sharedlib 12765 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12766 ;; 12767esac 12768 12769fi 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12771$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12772sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12773test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12774 12775 12776 12777 12778 12779 12780 12781if test -n "$ac_tool_prefix"; then 12782 for ac_prog in ar 12783 do 12784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12785set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12787$as_echo_n "checking for $ac_word... " >&6; } 12788if ${ac_cv_prog_AR+:} false; then : 12789 $as_echo_n "(cached) " >&6 12790else 12791 if test -n "$AR"; then 12792 ac_cv_prog_AR="$AR" # Let the user override the test. 12793else 12794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12795for as_dir in $PATH 12796do 12797 IFS=$as_save_IFS 12798 test -z "$as_dir" && as_dir=. 12799 for ac_exec_ext in '' $ac_executable_extensions; do 12800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12801 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12803 break 2 12804 fi 12805done 12806 done 12807IFS=$as_save_IFS 12808 12809fi 12810fi 12811AR=$ac_cv_prog_AR 12812if test -n "$AR"; then 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12814$as_echo "$AR" >&6; } 12815else 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12817$as_echo "no" >&6; } 12818fi 12819 12820 12821 test -n "$AR" && break 12822 done 12823fi 12824if test -z "$AR"; then 12825 ac_ct_AR=$AR 12826 for ac_prog in ar 12827do 12828 # Extract the first word of "$ac_prog", so it can be a program name with args. 12829set dummy $ac_prog; ac_word=$2 12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12831$as_echo_n "checking for $ac_word... " >&6; } 12832if ${ac_cv_prog_ac_ct_AR+:} false; then : 12833 $as_echo_n "(cached) " >&6 12834else 12835 if test -n "$ac_ct_AR"; then 12836 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12837else 12838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12839for as_dir in $PATH 12840do 12841 IFS=$as_save_IFS 12842 test -z "$as_dir" && as_dir=. 12843 for ac_exec_ext in '' $ac_executable_extensions; do 12844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12845 ac_cv_prog_ac_ct_AR="$ac_prog" 12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12847 break 2 12848 fi 12849done 12850 done 12851IFS=$as_save_IFS 12852 12853fi 12854fi 12855ac_ct_AR=$ac_cv_prog_ac_ct_AR 12856if test -n "$ac_ct_AR"; then 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12858$as_echo "$ac_ct_AR" >&6; } 12859else 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12861$as_echo "no" >&6; } 12862fi 12863 12864 12865 test -n "$ac_ct_AR" && break 12866done 12867 12868 if test "x$ac_ct_AR" = x; then 12869 AR="false" 12870 else 12871 case $cross_compiling:$ac_tool_warned in 12872yes:) 12873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12875ac_tool_warned=yes ;; 12876esac 12877 AR=$ac_ct_AR 12878 fi 12879fi 12880 12881: ${AR=ar} 12882: ${AR_FLAGS=cru} 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12895$as_echo_n "checking for archiver @FILE support... " >&6; } 12896if ${lt_cv_ar_at_file+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898else 12899 lt_cv_ar_at_file=no 12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12901/* end confdefs.h. */ 12902 12903int 12904main () 12905{ 12906 12907 ; 12908 return 0; 12909} 12910_ACEOF 12911if ac_fn_c_try_compile "$LINENO"; then : 12912 echo conftest.$ac_objext > conftest.lst 12913 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12915 (eval $lt_ar_try) 2>&5 12916 ac_status=$? 12917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12918 test $ac_status = 0; } 12919 if test "$ac_status" -eq 0; then 12920 # Ensure the archiver fails upon bogus file names. 12921 rm -f conftest.$ac_objext libconftest.a 12922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12923 (eval $lt_ar_try) 2>&5 12924 ac_status=$? 12925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12926 test $ac_status = 0; } 12927 if test "$ac_status" -ne 0; then 12928 lt_cv_ar_at_file=@ 12929 fi 12930 fi 12931 rm -f conftest.* libconftest.a 12932 12933fi 12934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12935 12936fi 12937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12938$as_echo "$lt_cv_ar_at_file" >&6; } 12939 12940if test "x$lt_cv_ar_at_file" = xno; then 12941 archiver_list_spec= 12942else 12943 archiver_list_spec=$lt_cv_ar_at_file 12944fi 12945 12946 12947 12948 12949 12950 12951 12952if test -n "$ac_tool_prefix"; then 12953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12954set dummy ${ac_tool_prefix}strip; ac_word=$2 12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12956$as_echo_n "checking for $ac_word... " >&6; } 12957if ${ac_cv_prog_STRIP+:} false; then : 12958 $as_echo_n "(cached) " >&6 12959else 12960 if test -n "$STRIP"; then 12961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12962else 12963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12964for as_dir in $PATH 12965do 12966 IFS=$as_save_IFS 12967 test -z "$as_dir" && as_dir=. 12968 for ac_exec_ext in '' $ac_executable_extensions; do 12969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12970 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12972 break 2 12973 fi 12974done 12975 done 12976IFS=$as_save_IFS 12977 12978fi 12979fi 12980STRIP=$ac_cv_prog_STRIP 12981if test -n "$STRIP"; then 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12983$as_echo "$STRIP" >&6; } 12984else 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12986$as_echo "no" >&6; } 12987fi 12988 12989 12990fi 12991if test -z "$ac_cv_prog_STRIP"; then 12992 ac_ct_STRIP=$STRIP 12993 # Extract the first word of "strip", so it can be a program name with args. 12994set dummy strip; ac_word=$2 12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12996$as_echo_n "checking for $ac_word... " >&6; } 12997if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12998 $as_echo_n "(cached) " >&6 12999else 13000 if test -n "$ac_ct_STRIP"; then 13001 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13002else 13003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13004for as_dir in $PATH 13005do 13006 IFS=$as_save_IFS 13007 test -z "$as_dir" && as_dir=. 13008 for ac_exec_ext in '' $ac_executable_extensions; do 13009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13010 ac_cv_prog_ac_ct_STRIP="strip" 13011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13012 break 2 13013 fi 13014done 13015 done 13016IFS=$as_save_IFS 13017 13018fi 13019fi 13020ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13021if test -n "$ac_ct_STRIP"; then 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13023$as_echo "$ac_ct_STRIP" >&6; } 13024else 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13026$as_echo "no" >&6; } 13027fi 13028 13029 if test "x$ac_ct_STRIP" = x; then 13030 STRIP=":" 13031 else 13032 case $cross_compiling:$ac_tool_warned in 13033yes:) 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13036ac_tool_warned=yes ;; 13037esac 13038 STRIP=$ac_ct_STRIP 13039 fi 13040else 13041 STRIP="$ac_cv_prog_STRIP" 13042fi 13043 13044test -z "$STRIP" && STRIP=: 13045 13046 13047 13048 13049 13050 13051if test -n "$ac_tool_prefix"; then 13052 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13053set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13055$as_echo_n "checking for $ac_word... " >&6; } 13056if ${ac_cv_prog_RANLIB+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 if test -n "$RANLIB"; then 13060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13061else 13062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13063for as_dir in $PATH 13064do 13065 IFS=$as_save_IFS 13066 test -z "$as_dir" && as_dir=. 13067 for ac_exec_ext in '' $ac_executable_extensions; do 13068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13069 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13071 break 2 13072 fi 13073done 13074 done 13075IFS=$as_save_IFS 13076 13077fi 13078fi 13079RANLIB=$ac_cv_prog_RANLIB 13080if test -n "$RANLIB"; then 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13082$as_echo "$RANLIB" >&6; } 13083else 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13085$as_echo "no" >&6; } 13086fi 13087 13088 13089fi 13090if test -z "$ac_cv_prog_RANLIB"; then 13091 ac_ct_RANLIB=$RANLIB 13092 # Extract the first word of "ranlib", so it can be a program name with args. 13093set dummy ranlib; ac_word=$2 13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13095$as_echo_n "checking for $ac_word... " >&6; } 13096if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 if test -n "$ac_ct_RANLIB"; then 13100 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13101else 13102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13103for as_dir in $PATH 13104do 13105 IFS=$as_save_IFS 13106 test -z "$as_dir" && as_dir=. 13107 for ac_exec_ext in '' $ac_executable_extensions; do 13108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13109 ac_cv_prog_ac_ct_RANLIB="ranlib" 13110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13111 break 2 13112 fi 13113done 13114 done 13115IFS=$as_save_IFS 13116 13117fi 13118fi 13119ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13120if test -n "$ac_ct_RANLIB"; then 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13122$as_echo "$ac_ct_RANLIB" >&6; } 13123else 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13125$as_echo "no" >&6; } 13126fi 13127 13128 if test "x$ac_ct_RANLIB" = x; then 13129 RANLIB=":" 13130 else 13131 case $cross_compiling:$ac_tool_warned in 13132yes:) 13133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13135ac_tool_warned=yes ;; 13136esac 13137 RANLIB=$ac_ct_RANLIB 13138 fi 13139else 13140 RANLIB="$ac_cv_prog_RANLIB" 13141fi 13142 13143test -z "$RANLIB" && RANLIB=: 13144 13145 13146 13147 13148 13149 13150# Determine commands to create old-style static archives. 13151old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13152old_postinstall_cmds='chmod 644 $oldlib' 13153old_postuninstall_cmds= 13154 13155if test -n "$RANLIB"; then 13156 case $host_os in 13157 openbsd*) 13158 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13159 ;; 13160 *) 13161 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13162 ;; 13163 esac 13164 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13165fi 13166 13167case $host_os in 13168 darwin*) 13169 lock_old_archive_extraction=yes ;; 13170 *) 13171 lock_old_archive_extraction=no ;; 13172esac 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212# If no C compiler was specified, use CC. 13213LTCC=${LTCC-"$CC"} 13214 13215# If no C compiler flags were specified, use CFLAGS. 13216LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13217 13218# Allow CC to be a program name with arguments. 13219compiler=$CC 13220 13221 13222# Check for command to grab the raw symbol name followed by C symbol from nm. 13223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13224$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 13225if ${lt_cv_sys_global_symbol_pipe+:} false; then : 13226 $as_echo_n "(cached) " >&6 13227else 13228 13229# These are sane defaults that work on at least a few old systems. 13230# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13231 13232# Character class describing NM global symbol codes. 13233symcode='[BCDEGRST]' 13234 13235# Regexp to match symbols that can be accessed directly from C. 13236sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13237 13238# Define system-specific variables. 13239case $host_os in 13240aix*) 13241 symcode='[BCDT]' 13242 ;; 13243cygwin* | mingw* | pw32* | cegcc*) 13244 symcode='[ABCDGISTW]' 13245 ;; 13246hpux*) 13247 if test "$host_cpu" = ia64; then 13248 symcode='[ABCDEGRST]' 13249 fi 13250 ;; 13251irix* | nonstopux*) 13252 symcode='[BCDEGRST]' 13253 ;; 13254osf*) 13255 symcode='[BCDEGQRST]' 13256 ;; 13257solaris*) 13258 symcode='[BDRT]' 13259 ;; 13260sco3.2v5*) 13261 symcode='[DT]' 13262 ;; 13263sysv4.2uw2*) 13264 symcode='[DT]' 13265 ;; 13266sysv5* | sco5v6* | unixware* | OpenUNIX*) 13267 symcode='[ABDT]' 13268 ;; 13269sysv4) 13270 symcode='[DFNSTU]' 13271 ;; 13272esac 13273 13274# If we're using GNU nm, then use its standard symbol codes. 13275case `$NM -V 2>&1` in 13276*GNU* | *'with BFD'*) 13277 symcode='[ABCDGIRSTW]' ;; 13278esac 13279 13280# Transform an extracted symbol line into a proper C declaration. 13281# Some systems (esp. on ia64) link data and code symbols differently, 13282# so use this general approach. 13283lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 13284 13285# Transform an extracted symbol line into symbol name and symbol address 13286lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 13287lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 13288 13289# Handle CRLF in mingw tool chain 13290opt_cr= 13291case $build_os in 13292mingw*) 13293 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13294 ;; 13295esac 13296 13297# Try without a prefix underscore, then with it. 13298for ac_symprfx in "" "_"; do 13299 13300 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13301 symxfrm="\\1 $ac_symprfx\\2 \\2" 13302 13303 # Write the raw and C identifiers. 13304 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13305 # Fake it for dumpbin and say T for any non-static function 13306 # and D for any global variable. 13307 # Also find C++ and __fastcall symbols from MSVC++, 13308 # which start with @ or ?. 13309 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13310" {last_section=section; section=\$ 3};"\ 13311" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13312" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13313" \$ 0!~/External *\|/{next};"\ 13314" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13315" {if(hide[section]) next};"\ 13316" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 13317" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 13318" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 13319" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 13320" ' prfx=^$ac_symprfx" 13321 else 13322 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13323 fi 13324 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13325 13326 # Check to see that the pipe works correctly. 13327 pipe_works=no 13328 13329 rm -f conftest* 13330 cat > conftest.$ac_ext <<_LT_EOF 13331#ifdef __cplusplus 13332extern "C" { 13333#endif 13334char nm_test_var; 13335void nm_test_func(void); 13336void nm_test_func(void){} 13337#ifdef __cplusplus 13338} 13339#endif 13340int main(){nm_test_var='a';nm_test_func();return(0);} 13341_LT_EOF 13342 13343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13344 (eval $ac_compile) 2>&5 13345 ac_status=$? 13346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13347 test $ac_status = 0; }; then 13348 # Now try to grab the symbols. 13349 nlist=conftest.nm 13350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13351 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13352 ac_status=$? 13353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13354 test $ac_status = 0; } && test -s "$nlist"; then 13355 # Try sorting and uniquifying the output. 13356 if sort "$nlist" | uniq > "$nlist"T; then 13357 mv -f "$nlist"T "$nlist" 13358 else 13359 rm -f "$nlist"T 13360 fi 13361 13362 # Make sure that we snagged all the symbols we need. 13363 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13364 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13365 cat <<_LT_EOF > conftest.$ac_ext 13366/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13367#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 13368/* DATA imports from DLLs on WIN32 con't be const, because runtime 13369 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13370# define LT_DLSYM_CONST 13371#elif defined(__osf__) 13372/* This system does not cope well with relocations in const data. */ 13373# define LT_DLSYM_CONST 13374#else 13375# define LT_DLSYM_CONST const 13376#endif 13377 13378#ifdef __cplusplus 13379extern "C" { 13380#endif 13381 13382_LT_EOF 13383 # Now generate the symbol file. 13384 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13385 13386 cat <<_LT_EOF >> conftest.$ac_ext 13387 13388/* The mapping between symbol names and symbols. */ 13389LT_DLSYM_CONST struct { 13390 const char *name; 13391 void *address; 13392} 13393lt__PROGRAM__LTX_preloaded_symbols[] = 13394{ 13395 { "@PROGRAM@", (void *) 0 }, 13396_LT_EOF 13397 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13398 cat <<\_LT_EOF >> conftest.$ac_ext 13399 {0, (void *) 0} 13400}; 13401 13402/* This works around a problem in FreeBSD linker */ 13403#ifdef FREEBSD_WORKAROUND 13404static const void *lt_preloaded_setup() { 13405 return lt__PROGRAM__LTX_preloaded_symbols; 13406} 13407#endif 13408 13409#ifdef __cplusplus 13410} 13411#endif 13412_LT_EOF 13413 # Now try linking the two files. 13414 mv conftest.$ac_objext conftstm.$ac_objext 13415 lt_globsym_save_LIBS=$LIBS 13416 lt_globsym_save_CFLAGS=$CFLAGS 13417 LIBS="conftstm.$ac_objext" 13418 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13420 (eval $ac_link) 2>&5 13421 ac_status=$? 13422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13423 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 13424 pipe_works=yes 13425 fi 13426 LIBS=$lt_globsym_save_LIBS 13427 CFLAGS=$lt_globsym_save_CFLAGS 13428 else 13429 echo "cannot find nm_test_func in $nlist" >&5 13430 fi 13431 else 13432 echo "cannot find nm_test_var in $nlist" >&5 13433 fi 13434 else 13435 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13436 fi 13437 else 13438 echo "$progname: failed program was:" >&5 13439 cat conftest.$ac_ext >&5 13440 fi 13441 rm -rf conftest* conftst* 13442 13443 # Do not use the global_symbol_pipe unless it works. 13444 if test "$pipe_works" = yes; then 13445 break 13446 else 13447 lt_cv_sys_global_symbol_pipe= 13448 fi 13449done 13450 13451fi 13452 13453if test -z "$lt_cv_sys_global_symbol_pipe"; then 13454 lt_cv_sys_global_symbol_to_cdecl= 13455fi 13456if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13458$as_echo "failed" >&6; } 13459else 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13461$as_echo "ok" >&6; } 13462fi 13463 13464# Response file support. 13465if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13466 nm_file_list_spec='@' 13467elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13468 nm_file_list_spec='@' 13469fi 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13498$as_echo_n "checking for sysroot... " >&6; } 13499 13500# Check whether --with-sysroot was given. 13501if test "${with_sysroot+set}" = set; then : 13502 withval=$with_sysroot; 13503else 13504 with_sysroot=no 13505fi 13506 13507 13508lt_sysroot= 13509case ${with_sysroot} in #( 13510 yes) 13511 if test "$GCC" = yes; then 13512 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13513 fi 13514 ;; #( 13515 /*) 13516 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13517 ;; #( 13518 no|'') 13519 ;; #( 13520 *) 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 13522$as_echo "${with_sysroot}" >&6; } 13523 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13524 ;; 13525esac 13526 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13528$as_echo "${lt_sysroot:-no}" >&6; } 13529 13530 13531 13532 13533 13534# Check whether --enable-libtool-lock was given. 13535if test "${enable_libtool_lock+set}" = set; then : 13536 enableval=$enable_libtool_lock; 13537fi 13538 13539test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 13540 13541# Some flags need to be propagated to the compiler or linker for good 13542# libtool support. 13543case $host in 13544ia64-*-hpux*) 13545 # Find out which ABI we are using. 13546 echo 'int i;' > conftest.$ac_ext 13547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13548 (eval $ac_compile) 2>&5 13549 ac_status=$? 13550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13551 test $ac_status = 0; }; then 13552 case `/usr/bin/file conftest.$ac_objext` in 13553 *ELF-32*) 13554 HPUX_IA64_MODE="32" 13555 ;; 13556 *ELF-64*) 13557 HPUX_IA64_MODE="64" 13558 ;; 13559 esac 13560 fi 13561 rm -rf conftest* 13562 ;; 13563*-*-irix6*) 13564 # Find out which ABI we are using. 13565 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13567 (eval $ac_compile) 2>&5 13568 ac_status=$? 13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13570 test $ac_status = 0; }; then 13571 if test "$lt_cv_prog_gnu_ld" = yes; then 13572 case `/usr/bin/file conftest.$ac_objext` in 13573 *32-bit*) 13574 LD="${LD-ld} -melf32bsmip" 13575 ;; 13576 *N32*) 13577 LD="${LD-ld} -melf32bmipn32" 13578 ;; 13579 *64-bit*) 13580 LD="${LD-ld} -melf64bmip" 13581 ;; 13582 esac 13583 else 13584 case `/usr/bin/file conftest.$ac_objext` in 13585 *32-bit*) 13586 LD="${LD-ld} -32" 13587 ;; 13588 *N32*) 13589 LD="${LD-ld} -n32" 13590 ;; 13591 *64-bit*) 13592 LD="${LD-ld} -64" 13593 ;; 13594 esac 13595 fi 13596 fi 13597 rm -rf conftest* 13598 ;; 13599 13600x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13601s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13602 # Find out which ABI we are using. 13603 echo 'int i;' > conftest.$ac_ext 13604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13605 (eval $ac_compile) 2>&5 13606 ac_status=$? 13607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13608 test $ac_status = 0; }; then 13609 case `/usr/bin/file conftest.o` in 13610 *32-bit*) 13611 case $host in 13612 x86_64-*kfreebsd*-gnu) 13613 LD="${LD-ld} -m elf_i386_fbsd" 13614 ;; 13615 x86_64-*linux*) 13616 case `/usr/bin/file conftest.o` in 13617 *x86-64*) 13618 LD="${LD-ld} -m elf32_x86_64" 13619 ;; 13620 *) 13621 LD="${LD-ld} -m elf_i386" 13622 ;; 13623 esac 13624 ;; 13625 powerpc64le-*) 13626 LD="${LD-ld} -m elf32lppclinux" 13627 ;; 13628 powerpc64-*) 13629 LD="${LD-ld} -m elf32ppclinux" 13630 ;; 13631 s390x-*linux*) 13632 LD="${LD-ld} -m elf_s390" 13633 ;; 13634 sparc64-*linux*) 13635 LD="${LD-ld} -m elf32_sparc" 13636 ;; 13637 esac 13638 ;; 13639 *64-bit*) 13640 case $host in 13641 x86_64-*kfreebsd*-gnu) 13642 LD="${LD-ld} -m elf_x86_64_fbsd" 13643 ;; 13644 x86_64-*linux*) 13645 LD="${LD-ld} -m elf_x86_64" 13646 ;; 13647 powerpcle-*) 13648 LD="${LD-ld} -m elf64lppc" 13649 ;; 13650 powerpc-*) 13651 LD="${LD-ld} -m elf64ppc" 13652 ;; 13653 s390*-*linux*|s390*-*tpf*) 13654 LD="${LD-ld} -m elf64_s390" 13655 ;; 13656 sparc*-*linux*) 13657 LD="${LD-ld} -m elf64_sparc" 13658 ;; 13659 esac 13660 ;; 13661 esac 13662 fi 13663 rm -rf conftest* 13664 ;; 13665 13666*-*-sco3.2v5*) 13667 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13668 SAVE_CFLAGS="$CFLAGS" 13669 CFLAGS="$CFLAGS -belf" 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13671$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13672if ${lt_cv_cc_needs_belf+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674else 13675 ac_ext=c 13676ac_cpp='$CPP $CPPFLAGS' 13677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13679ac_compiler_gnu=$ac_cv_c_compiler_gnu 13680 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13682/* end confdefs.h. */ 13683 13684int 13685main () 13686{ 13687 13688 ; 13689 return 0; 13690} 13691_ACEOF 13692if ac_fn_c_try_link "$LINENO"; then : 13693 lt_cv_cc_needs_belf=yes 13694else 13695 lt_cv_cc_needs_belf=no 13696fi 13697rm -f core conftest.err conftest.$ac_objext \ 13698 conftest$ac_exeext conftest.$ac_ext 13699 ac_ext=c 13700ac_cpp='$CPP $CPPFLAGS' 13701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13703ac_compiler_gnu=$ac_cv_c_compiler_gnu 13704 13705fi 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13707$as_echo "$lt_cv_cc_needs_belf" >&6; } 13708 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13710 CFLAGS="$SAVE_CFLAGS" 13711 fi 13712 ;; 13713*-*solaris*) 13714 # Find out which ABI we are using. 13715 echo 'int i;' > conftest.$ac_ext 13716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13717 (eval $ac_compile) 2>&5 13718 ac_status=$? 13719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13720 test $ac_status = 0; }; then 13721 case `/usr/bin/file conftest.o` in 13722 *64-bit*) 13723 case $lt_cv_prog_gnu_ld in 13724 yes*) 13725 case $host in 13726 i?86-*-solaris*) 13727 LD="${LD-ld} -m elf_x86_64" 13728 ;; 13729 sparc*-*-solaris*) 13730 LD="${LD-ld} -m elf64_sparc" 13731 ;; 13732 esac 13733 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13734 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13735 LD="${LD-ld}_sol2" 13736 fi 13737 ;; 13738 *) 13739 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13740 LD="${LD-ld} -64" 13741 fi 13742 ;; 13743 esac 13744 ;; 13745 esac 13746 fi 13747 rm -rf conftest* 13748 ;; 13749esac 13750 13751need_locks="$enable_libtool_lock" 13752 13753if test -n "$ac_tool_prefix"; then 13754 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13755set dummy ${ac_tool_prefix}mt; ac_word=$2 13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13757$as_echo_n "checking for $ac_word... " >&6; } 13758if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13759 $as_echo_n "(cached) " >&6 13760else 13761 if test -n "$MANIFEST_TOOL"; then 13762 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13763else 13764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13765for as_dir in $PATH 13766do 13767 IFS=$as_save_IFS 13768 test -z "$as_dir" && as_dir=. 13769 for ac_exec_ext in '' $ac_executable_extensions; do 13770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13771 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13773 break 2 13774 fi 13775done 13776 done 13777IFS=$as_save_IFS 13778 13779fi 13780fi 13781MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13782if test -n "$MANIFEST_TOOL"; then 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13784$as_echo "$MANIFEST_TOOL" >&6; } 13785else 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13787$as_echo "no" >&6; } 13788fi 13789 13790 13791fi 13792if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13793 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13794 # Extract the first word of "mt", so it can be a program name with args. 13795set dummy mt; ac_word=$2 13796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13797$as_echo_n "checking for $ac_word... " >&6; } 13798if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13799 $as_echo_n "(cached) " >&6 13800else 13801 if test -n "$ac_ct_MANIFEST_TOOL"; then 13802 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13803else 13804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13805for as_dir in $PATH 13806do 13807 IFS=$as_save_IFS 13808 test -z "$as_dir" && as_dir=. 13809 for ac_exec_ext in '' $ac_executable_extensions; do 13810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13811 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13813 break 2 13814 fi 13815done 13816 done 13817IFS=$as_save_IFS 13818 13819fi 13820fi 13821ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13822if test -n "$ac_ct_MANIFEST_TOOL"; then 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13824$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13825else 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13827$as_echo "no" >&6; } 13828fi 13829 13830 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13831 MANIFEST_TOOL=":" 13832 else 13833 case $cross_compiling:$ac_tool_warned in 13834yes:) 13835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13837ac_tool_warned=yes ;; 13838esac 13839 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13840 fi 13841else 13842 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13843fi 13844 13845test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13847$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13848if ${lt_cv_path_mainfest_tool+:} false; then : 13849 $as_echo_n "(cached) " >&6 13850else 13851 lt_cv_path_mainfest_tool=no 13852 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13853 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13854 cat conftest.err >&5 13855 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13856 lt_cv_path_mainfest_tool=yes 13857 fi 13858 rm -f conftest* 13859fi 13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13861$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13862if test "x$lt_cv_path_mainfest_tool" != xyes; then 13863 MANIFEST_TOOL=: 13864fi 13865 13866 13867 13868 13869 13870 13871 case $host_os in 13872 rhapsody* | darwin*) 13873 if test -n "$ac_tool_prefix"; then 13874 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13875set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13877$as_echo_n "checking for $ac_word... " >&6; } 13878if ${ac_cv_prog_DSYMUTIL+:} false; then : 13879 $as_echo_n "(cached) " >&6 13880else 13881 if test -n "$DSYMUTIL"; then 13882 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13883else 13884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13885for as_dir in $PATH 13886do 13887 IFS=$as_save_IFS 13888 test -z "$as_dir" && as_dir=. 13889 for ac_exec_ext in '' $ac_executable_extensions; do 13890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13891 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13893 break 2 13894 fi 13895done 13896 done 13897IFS=$as_save_IFS 13898 13899fi 13900fi 13901DSYMUTIL=$ac_cv_prog_DSYMUTIL 13902if test -n "$DSYMUTIL"; then 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13904$as_echo "$DSYMUTIL" >&6; } 13905else 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13907$as_echo "no" >&6; } 13908fi 13909 13910 13911fi 13912if test -z "$ac_cv_prog_DSYMUTIL"; then 13913 ac_ct_DSYMUTIL=$DSYMUTIL 13914 # Extract the first word of "dsymutil", so it can be a program name with args. 13915set dummy dsymutil; ac_word=$2 13916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13917$as_echo_n "checking for $ac_word... " >&6; } 13918if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13919 $as_echo_n "(cached) " >&6 13920else 13921 if test -n "$ac_ct_DSYMUTIL"; then 13922 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13923else 13924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13925for as_dir in $PATH 13926do 13927 IFS=$as_save_IFS 13928 test -z "$as_dir" && as_dir=. 13929 for ac_exec_ext in '' $ac_executable_extensions; do 13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13931 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13933 break 2 13934 fi 13935done 13936 done 13937IFS=$as_save_IFS 13938 13939fi 13940fi 13941ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13942if test -n "$ac_ct_DSYMUTIL"; then 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13944$as_echo "$ac_ct_DSYMUTIL" >&6; } 13945else 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13947$as_echo "no" >&6; } 13948fi 13949 13950 if test "x$ac_ct_DSYMUTIL" = x; then 13951 DSYMUTIL=":" 13952 else 13953 case $cross_compiling:$ac_tool_warned in 13954yes:) 13955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13957ac_tool_warned=yes ;; 13958esac 13959 DSYMUTIL=$ac_ct_DSYMUTIL 13960 fi 13961else 13962 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13963fi 13964 13965 if test -n "$ac_tool_prefix"; then 13966 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13967set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13969$as_echo_n "checking for $ac_word... " >&6; } 13970if ${ac_cv_prog_NMEDIT+:} false; then : 13971 $as_echo_n "(cached) " >&6 13972else 13973 if test -n "$NMEDIT"; then 13974 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13975else 13976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13977for as_dir in $PATH 13978do 13979 IFS=$as_save_IFS 13980 test -z "$as_dir" && as_dir=. 13981 for ac_exec_ext in '' $ac_executable_extensions; do 13982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13983 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13985 break 2 13986 fi 13987done 13988 done 13989IFS=$as_save_IFS 13990 13991fi 13992fi 13993NMEDIT=$ac_cv_prog_NMEDIT 13994if test -n "$NMEDIT"; then 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13996$as_echo "$NMEDIT" >&6; } 13997else 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13999$as_echo "no" >&6; } 14000fi 14001 14002 14003fi 14004if test -z "$ac_cv_prog_NMEDIT"; then 14005 ac_ct_NMEDIT=$NMEDIT 14006 # Extract the first word of "nmedit", so it can be a program name with args. 14007set dummy nmedit; ac_word=$2 14008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14009$as_echo_n "checking for $ac_word... " >&6; } 14010if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 14011 $as_echo_n "(cached) " >&6 14012else 14013 if test -n "$ac_ct_NMEDIT"; then 14014 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14015else 14016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14017for as_dir in $PATH 14018do 14019 IFS=$as_save_IFS 14020 test -z "$as_dir" && as_dir=. 14021 for ac_exec_ext in '' $ac_executable_extensions; do 14022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14023 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14025 break 2 14026 fi 14027done 14028 done 14029IFS=$as_save_IFS 14030 14031fi 14032fi 14033ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14034if test -n "$ac_ct_NMEDIT"; then 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14036$as_echo "$ac_ct_NMEDIT" >&6; } 14037else 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14039$as_echo "no" >&6; } 14040fi 14041 14042 if test "x$ac_ct_NMEDIT" = x; then 14043 NMEDIT=":" 14044 else 14045 case $cross_compiling:$ac_tool_warned in 14046yes:) 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14049ac_tool_warned=yes ;; 14050esac 14051 NMEDIT=$ac_ct_NMEDIT 14052 fi 14053else 14054 NMEDIT="$ac_cv_prog_NMEDIT" 14055fi 14056 14057 if test -n "$ac_tool_prefix"; then 14058 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14059set dummy ${ac_tool_prefix}lipo; ac_word=$2 14060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14061$as_echo_n "checking for $ac_word... " >&6; } 14062if ${ac_cv_prog_LIPO+:} false; then : 14063 $as_echo_n "(cached) " >&6 14064else 14065 if test -n "$LIPO"; then 14066 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14067else 14068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14069for as_dir in $PATH 14070do 14071 IFS=$as_save_IFS 14072 test -z "$as_dir" && as_dir=. 14073 for ac_exec_ext in '' $ac_executable_extensions; do 14074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14075 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14077 break 2 14078 fi 14079done 14080 done 14081IFS=$as_save_IFS 14082 14083fi 14084fi 14085LIPO=$ac_cv_prog_LIPO 14086if test -n "$LIPO"; then 14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14088$as_echo "$LIPO" >&6; } 14089else 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14091$as_echo "no" >&6; } 14092fi 14093 14094 14095fi 14096if test -z "$ac_cv_prog_LIPO"; then 14097 ac_ct_LIPO=$LIPO 14098 # Extract the first word of "lipo", so it can be a program name with args. 14099set dummy lipo; ac_word=$2 14100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14101$as_echo_n "checking for $ac_word... " >&6; } 14102if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14103 $as_echo_n "(cached) " >&6 14104else 14105 if test -n "$ac_ct_LIPO"; then 14106 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14107else 14108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14109for as_dir in $PATH 14110do 14111 IFS=$as_save_IFS 14112 test -z "$as_dir" && as_dir=. 14113 for ac_exec_ext in '' $ac_executable_extensions; do 14114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14115 ac_cv_prog_ac_ct_LIPO="lipo" 14116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14117 break 2 14118 fi 14119done 14120 done 14121IFS=$as_save_IFS 14122 14123fi 14124fi 14125ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14126if test -n "$ac_ct_LIPO"; then 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14128$as_echo "$ac_ct_LIPO" >&6; } 14129else 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14131$as_echo "no" >&6; } 14132fi 14133 14134 if test "x$ac_ct_LIPO" = x; then 14135 LIPO=":" 14136 else 14137 case $cross_compiling:$ac_tool_warned in 14138yes:) 14139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14141ac_tool_warned=yes ;; 14142esac 14143 LIPO=$ac_ct_LIPO 14144 fi 14145else 14146 LIPO="$ac_cv_prog_LIPO" 14147fi 14148 14149 if test -n "$ac_tool_prefix"; then 14150 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14151set dummy ${ac_tool_prefix}otool; ac_word=$2 14152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14153$as_echo_n "checking for $ac_word... " >&6; } 14154if ${ac_cv_prog_OTOOL+:} false; then : 14155 $as_echo_n "(cached) " >&6 14156else 14157 if test -n "$OTOOL"; then 14158 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14159else 14160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14161for as_dir in $PATH 14162do 14163 IFS=$as_save_IFS 14164 test -z "$as_dir" && as_dir=. 14165 for ac_exec_ext in '' $ac_executable_extensions; do 14166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14167 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14169 break 2 14170 fi 14171done 14172 done 14173IFS=$as_save_IFS 14174 14175fi 14176fi 14177OTOOL=$ac_cv_prog_OTOOL 14178if test -n "$OTOOL"; then 14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14180$as_echo "$OTOOL" >&6; } 14181else 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14183$as_echo "no" >&6; } 14184fi 14185 14186 14187fi 14188if test -z "$ac_cv_prog_OTOOL"; then 14189 ac_ct_OTOOL=$OTOOL 14190 # Extract the first word of "otool", so it can be a program name with args. 14191set dummy otool; ac_word=$2 14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14193$as_echo_n "checking for $ac_word... " >&6; } 14194if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14195 $as_echo_n "(cached) " >&6 14196else 14197 if test -n "$ac_ct_OTOOL"; then 14198 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14199else 14200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14201for as_dir in $PATH 14202do 14203 IFS=$as_save_IFS 14204 test -z "$as_dir" && as_dir=. 14205 for ac_exec_ext in '' $ac_executable_extensions; do 14206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14207 ac_cv_prog_ac_ct_OTOOL="otool" 14208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14209 break 2 14210 fi 14211done 14212 done 14213IFS=$as_save_IFS 14214 14215fi 14216fi 14217ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14218if test -n "$ac_ct_OTOOL"; then 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14220$as_echo "$ac_ct_OTOOL" >&6; } 14221else 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14223$as_echo "no" >&6; } 14224fi 14225 14226 if test "x$ac_ct_OTOOL" = x; then 14227 OTOOL=":" 14228 else 14229 case $cross_compiling:$ac_tool_warned in 14230yes:) 14231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14233ac_tool_warned=yes ;; 14234esac 14235 OTOOL=$ac_ct_OTOOL 14236 fi 14237else 14238 OTOOL="$ac_cv_prog_OTOOL" 14239fi 14240 14241 if test -n "$ac_tool_prefix"; then 14242 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14243set dummy ${ac_tool_prefix}otool64; ac_word=$2 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14245$as_echo_n "checking for $ac_word... " >&6; } 14246if ${ac_cv_prog_OTOOL64+:} false; then : 14247 $as_echo_n "(cached) " >&6 14248else 14249 if test -n "$OTOOL64"; then 14250 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14251else 14252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14253for as_dir in $PATH 14254do 14255 IFS=$as_save_IFS 14256 test -z "$as_dir" && as_dir=. 14257 for ac_exec_ext in '' $ac_executable_extensions; do 14258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14259 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14261 break 2 14262 fi 14263done 14264 done 14265IFS=$as_save_IFS 14266 14267fi 14268fi 14269OTOOL64=$ac_cv_prog_OTOOL64 14270if test -n "$OTOOL64"; then 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14272$as_echo "$OTOOL64" >&6; } 14273else 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14275$as_echo "no" >&6; } 14276fi 14277 14278 14279fi 14280if test -z "$ac_cv_prog_OTOOL64"; then 14281 ac_ct_OTOOL64=$OTOOL64 14282 # Extract the first word of "otool64", so it can be a program name with args. 14283set dummy otool64; ac_word=$2 14284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14285$as_echo_n "checking for $ac_word... " >&6; } 14286if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 if test -n "$ac_ct_OTOOL64"; then 14290 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14291else 14292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14293for as_dir in $PATH 14294do 14295 IFS=$as_save_IFS 14296 test -z "$as_dir" && as_dir=. 14297 for ac_exec_ext in '' $ac_executable_extensions; do 14298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14299 ac_cv_prog_ac_ct_OTOOL64="otool64" 14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14301 break 2 14302 fi 14303done 14304 done 14305IFS=$as_save_IFS 14306 14307fi 14308fi 14309ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14310if test -n "$ac_ct_OTOOL64"; then 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14312$as_echo "$ac_ct_OTOOL64" >&6; } 14313else 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14315$as_echo "no" >&6; } 14316fi 14317 14318 if test "x$ac_ct_OTOOL64" = x; then 14319 OTOOL64=":" 14320 else 14321 case $cross_compiling:$ac_tool_warned in 14322yes:) 14323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14325ac_tool_warned=yes ;; 14326esac 14327 OTOOL64=$ac_ct_OTOOL64 14328 fi 14329else 14330 OTOOL64="$ac_cv_prog_OTOOL64" 14331fi 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14360$as_echo_n "checking for -single_module linker flag... " >&6; } 14361if ${lt_cv_apple_cc_single_mod+:} false; then : 14362 $as_echo_n "(cached) " >&6 14363else 14364 lt_cv_apple_cc_single_mod=no 14365 if test -z "${LT_MULTI_MODULE}"; then 14366 # By default we will add the -single_module flag. You can override 14367 # by either setting the environment variable LT_MULTI_MODULE 14368 # non-empty at configure time, or by adding -multi_module to the 14369 # link flags. 14370 rm -rf libconftest.dylib* 14371 echo "int foo(void){return 1;}" > conftest.c 14372 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14373-dynamiclib -Wl,-single_module conftest.c" >&5 14374 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14375 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14376 _lt_result=$? 14377 # If there is a non-empty error log, and "single_module" 14378 # appears in it, assume the flag caused a linker warning 14379 if test -s conftest.err && $GREP single_module conftest.err; then 14380 cat conftest.err >&5 14381 # Otherwise, if the output was created with a 0 exit code from 14382 # the compiler, it worked. 14383 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 14384 lt_cv_apple_cc_single_mod=yes 14385 else 14386 cat conftest.err >&5 14387 fi 14388 rm -rf libconftest.dylib* 14389 rm -f conftest.* 14390 fi 14391fi 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14393$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14394 14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14396$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14397if ${lt_cv_ld_exported_symbols_list+:} false; then : 14398 $as_echo_n "(cached) " >&6 14399else 14400 lt_cv_ld_exported_symbols_list=no 14401 save_LDFLAGS=$LDFLAGS 14402 echo "_main" > conftest.sym 14403 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14405/* end confdefs.h. */ 14406 14407int 14408main () 14409{ 14410 14411 ; 14412 return 0; 14413} 14414_ACEOF 14415if ac_fn_c_try_link "$LINENO"; then : 14416 lt_cv_ld_exported_symbols_list=yes 14417else 14418 lt_cv_ld_exported_symbols_list=no 14419fi 14420rm -f core conftest.err conftest.$ac_objext \ 14421 conftest$ac_exeext conftest.$ac_ext 14422 LDFLAGS="$save_LDFLAGS" 14423 14424fi 14425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14426$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14427 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14429$as_echo_n "checking for -force_load linker flag... " >&6; } 14430if ${lt_cv_ld_force_load+:} false; then : 14431 $as_echo_n "(cached) " >&6 14432else 14433 lt_cv_ld_force_load=no 14434 cat > conftest.c << _LT_EOF 14435int forced_loaded() { return 2;} 14436_LT_EOF 14437 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14438 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14439 echo "$AR cru libconftest.a conftest.o" >&5 14440 $AR cru libconftest.a conftest.o 2>&5 14441 echo "$RANLIB libconftest.a" >&5 14442 $RANLIB libconftest.a 2>&5 14443 cat > conftest.c << _LT_EOF 14444int main() { return 0;} 14445_LT_EOF 14446 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14447 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14448 _lt_result=$? 14449 if test -s conftest.err && $GREP force_load conftest.err; then 14450 cat conftest.err >&5 14451 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 14452 lt_cv_ld_force_load=yes 14453 else 14454 cat conftest.err >&5 14455 fi 14456 rm -f conftest.err libconftest.a conftest conftest.c 14457 rm -rf conftest.dSYM 14458 14459fi 14460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14461$as_echo "$lt_cv_ld_force_load" >&6; } 14462 case $host_os in 14463 rhapsody* | darwin1.[012]) 14464 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 14465 darwin1.*) 14466 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14467 darwin*) # darwin 5.x on 14468 # if running on 10.5 or later, the deployment target defaults 14469 # to the OS version, if on x86, and 10.4, the deployment 14470 # target defaults to 10.4. Don't you love it? 14471 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14472 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14473 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14474 10.[012]*) 14475 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14476 10.*) 14477 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14478 esac 14479 ;; 14480 esac 14481 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 14482 _lt_dar_single_mod='$single_module' 14483 fi 14484 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 14485 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 14486 else 14487 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 14488 fi 14489 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 14490 _lt_dsymutil='~$DSYMUTIL $lib || :' 14491 else 14492 _lt_dsymutil= 14493 fi 14494 ;; 14495 esac 14496 14497for ac_header in dlfcn.h 14498do : 14499 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14500" 14501if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14502 cat >>confdefs.h <<_ACEOF 14503#define HAVE_DLFCN_H 1 14504_ACEOF 14505 14506fi 14507 14508done 14509 14510 14511 14512 14513 14514# Set options 14515 14516 14517 14518 enable_dlopen=no 14519 14520 14521 enable_win32_dll=no 14522 14523 14524 # Check whether --enable-shared was given. 14525if test "${enable_shared+set}" = set; then : 14526 enableval=$enable_shared; p=${PACKAGE-default} 14527 case $enableval in 14528 yes) enable_shared=yes ;; 14529 no) enable_shared=no ;; 14530 *) 14531 enable_shared=no 14532 # Look at the argument we got. We use all the common list separators. 14533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14534 for pkg in $enableval; do 14535 IFS="$lt_save_ifs" 14536 if test "X$pkg" = "X$p"; then 14537 enable_shared=yes 14538 fi 14539 done 14540 IFS="$lt_save_ifs" 14541 ;; 14542 esac 14543else 14544 enable_shared=yes 14545fi 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557# Check whether --with-pic was given. 14558if test "${with_pic+set}" = set; then : 14559 withval=$with_pic; lt_p=${PACKAGE-default} 14560 case $withval in 14561 yes|no) pic_mode=$withval ;; 14562 *) 14563 pic_mode=default 14564 # Look at the argument we got. We use all the common list separators. 14565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14566 for lt_pkg in $withval; do 14567 IFS="$lt_save_ifs" 14568 if test "X$lt_pkg" = "X$lt_p"; then 14569 pic_mode=yes 14570 fi 14571 done 14572 IFS="$lt_save_ifs" 14573 ;; 14574 esac 14575else 14576 pic_mode=default 14577fi 14578 14579 14580test -z "$pic_mode" && pic_mode=default 14581 14582 14583 14584 14585 14586 14587 14588 # Check whether --enable-fast-install was given. 14589if test "${enable_fast_install+set}" = set; then : 14590 enableval=$enable_fast_install; p=${PACKAGE-default} 14591 case $enableval in 14592 yes) enable_fast_install=yes ;; 14593 no) enable_fast_install=no ;; 14594 *) 14595 enable_fast_install=no 14596 # Look at the argument we got. We use all the common list separators. 14597 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14598 for pkg in $enableval; do 14599 IFS="$lt_save_ifs" 14600 if test "X$pkg" = "X$p"; then 14601 enable_fast_install=yes 14602 fi 14603 done 14604 IFS="$lt_save_ifs" 14605 ;; 14606 esac 14607else 14608 enable_fast_install=yes 14609fi 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621# This can be used to rebuild libtool when needed 14622LIBTOOL_DEPS="$ltmain" 14623 14624# Always use our own libtool. 14625LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656test -z "$LN_S" && LN_S="ln -s" 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671if test -n "${ZSH_VERSION+set}" ; then 14672 setopt NO_GLOB_SUBST 14673fi 14674 14675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14676$as_echo_n "checking for objdir... " >&6; } 14677if ${lt_cv_objdir+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679else 14680 rm -f .libs 2>/dev/null 14681mkdir .libs 2>/dev/null 14682if test -d .libs; then 14683 lt_cv_objdir=.libs 14684else 14685 # MS-DOS does not allow filenames that begin with a dot. 14686 lt_cv_objdir=_libs 14687fi 14688rmdir .libs 2>/dev/null 14689fi 14690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14691$as_echo "$lt_cv_objdir" >&6; } 14692objdir=$lt_cv_objdir 14693 14694 14695 14696 14697 14698cat >>confdefs.h <<_ACEOF 14699#define LT_OBJDIR "$lt_cv_objdir/" 14700_ACEOF 14701 14702 14703 14704 14705case $host_os in 14706aix3*) 14707 # AIX sometimes has problems with the GCC collect2 program. For some 14708 # reason, if we set the COLLECT_NAMES environment variable, the problems 14709 # vanish in a puff of smoke. 14710 if test "X${COLLECT_NAMES+set}" != Xset; then 14711 COLLECT_NAMES= 14712 export COLLECT_NAMES 14713 fi 14714 ;; 14715esac 14716 14717# Global variables: 14718ofile=libtool 14719can_build_shared=yes 14720 14721# All known linkers require a `.a' archive for static linking (except MSVC, 14722# which needs '.lib'). 14723libext=a 14724 14725with_gnu_ld="$lt_cv_prog_gnu_ld" 14726 14727old_CC="$CC" 14728old_CFLAGS="$CFLAGS" 14729 14730# Set sane defaults for various variables 14731test -z "$CC" && CC=cc 14732test -z "$LTCC" && LTCC=$CC 14733test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14734test -z "$LD" && LD=ld 14735test -z "$ac_objext" && ac_objext=o 14736 14737for cc_temp in $compiler""; do 14738 case $cc_temp in 14739 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14740 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14741 \-*) ;; 14742 *) break;; 14743 esac 14744done 14745cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14746 14747 14748# Only perform the check for file, if the check method requires it 14749test -z "$MAGIC_CMD" && MAGIC_CMD=file 14750case $deplibs_check_method in 14751file_magic*) 14752 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14754$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14755if ${lt_cv_path_MAGIC_CMD+:} false; then : 14756 $as_echo_n "(cached) " >&6 14757else 14758 case $MAGIC_CMD in 14759[\\/*] | ?:[\\/]*) 14760 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14761 ;; 14762*) 14763 lt_save_MAGIC_CMD="$MAGIC_CMD" 14764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14765 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14766 for ac_dir in $ac_dummy; do 14767 IFS="$lt_save_ifs" 14768 test -z "$ac_dir" && ac_dir=. 14769 if test -f $ac_dir/${ac_tool_prefix}file; then 14770 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14771 if test -n "$file_magic_test_file"; then 14772 case $deplibs_check_method in 14773 "file_magic "*) 14774 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14776 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14777 $EGREP "$file_magic_regex" > /dev/null; then 14778 : 14779 else 14780 cat <<_LT_EOF 1>&2 14781 14782*** Warning: the command libtool uses to detect shared libraries, 14783*** $file_magic_cmd, produces output that libtool cannot recognize. 14784*** The result is that libtool may fail to recognize shared libraries 14785*** as such. This will affect the creation of libtool libraries that 14786*** depend on shared libraries, but programs linked with such libtool 14787*** libraries will work regardless of this problem. Nevertheless, you 14788*** may want to report the problem to your system manager and/or to 14789*** bug-libtool@gnu.org 14790 14791_LT_EOF 14792 fi ;; 14793 esac 14794 fi 14795 break 14796 fi 14797 done 14798 IFS="$lt_save_ifs" 14799 MAGIC_CMD="$lt_save_MAGIC_CMD" 14800 ;; 14801esac 14802fi 14803 14804MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14805if test -n "$MAGIC_CMD"; then 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14807$as_echo "$MAGIC_CMD" >&6; } 14808else 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14810$as_echo "no" >&6; } 14811fi 14812 14813 14814 14815 14816 14817if test -z "$lt_cv_path_MAGIC_CMD"; then 14818 if test -n "$ac_tool_prefix"; then 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14820$as_echo_n "checking for file... " >&6; } 14821if ${lt_cv_path_MAGIC_CMD+:} false; then : 14822 $as_echo_n "(cached) " >&6 14823else 14824 case $MAGIC_CMD in 14825[\\/*] | ?:[\\/]*) 14826 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14827 ;; 14828*) 14829 lt_save_MAGIC_CMD="$MAGIC_CMD" 14830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14832 for ac_dir in $ac_dummy; do 14833 IFS="$lt_save_ifs" 14834 test -z "$ac_dir" && ac_dir=. 14835 if test -f $ac_dir/file; then 14836 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14837 if test -n "$file_magic_test_file"; then 14838 case $deplibs_check_method in 14839 "file_magic "*) 14840 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14843 $EGREP "$file_magic_regex" > /dev/null; then 14844 : 14845 else 14846 cat <<_LT_EOF 1>&2 14847 14848*** Warning: the command libtool uses to detect shared libraries, 14849*** $file_magic_cmd, produces output that libtool cannot recognize. 14850*** The result is that libtool may fail to recognize shared libraries 14851*** as such. This will affect the creation of libtool libraries that 14852*** depend on shared libraries, but programs linked with such libtool 14853*** libraries will work regardless of this problem. Nevertheless, you 14854*** may want to report the problem to your system manager and/or to 14855*** bug-libtool@gnu.org 14856 14857_LT_EOF 14858 fi ;; 14859 esac 14860 fi 14861 break 14862 fi 14863 done 14864 IFS="$lt_save_ifs" 14865 MAGIC_CMD="$lt_save_MAGIC_CMD" 14866 ;; 14867esac 14868fi 14869 14870MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14871if test -n "$MAGIC_CMD"; then 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14873$as_echo "$MAGIC_CMD" >&6; } 14874else 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14876$as_echo "no" >&6; } 14877fi 14878 14879 14880 else 14881 MAGIC_CMD=: 14882 fi 14883fi 14884 14885 fi 14886 ;; 14887esac 14888 14889# Use C for the default configuration in the libtool script 14890 14891lt_save_CC="$CC" 14892ac_ext=c 14893ac_cpp='$CPP $CPPFLAGS' 14894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14896ac_compiler_gnu=$ac_cv_c_compiler_gnu 14897 14898 14899# Source file extension for C test sources. 14900ac_ext=c 14901 14902# Object file extension for compiled C test sources. 14903objext=o 14904objext=$objext 14905 14906# Code to be used in simple compile tests 14907lt_simple_compile_test_code="int some_variable = 0;" 14908 14909# Code to be used in simple link tests 14910lt_simple_link_test_code='int main(){return(0);}' 14911 14912 14913 14914 14915 14916 14917 14918# If no C compiler was specified, use CC. 14919LTCC=${LTCC-"$CC"} 14920 14921# If no C compiler flags were specified, use CFLAGS. 14922LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14923 14924# Allow CC to be a program name with arguments. 14925compiler=$CC 14926 14927# Save the default compiler, since it gets overwritten when the other 14928# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14929compiler_DEFAULT=$CC 14930 14931# save warnings/boilerplate of simple test code 14932ac_outfile=conftest.$ac_objext 14933echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14934eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14935_lt_compiler_boilerplate=`cat conftest.err` 14936$RM conftest* 14937 14938ac_outfile=conftest.$ac_objext 14939echo "$lt_simple_link_test_code" >conftest.$ac_ext 14940eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14941_lt_linker_boilerplate=`cat conftest.err` 14942$RM -r conftest* 14943 14944 14945## CAVEAT EMPTOR: 14946## There is no encapsulation within the following macros, do not change 14947## the running order or otherwise move them around unless you know exactly 14948## what you are doing... 14949if test -n "$compiler"; then 14950 14951lt_prog_compiler_no_builtin_flag= 14952 14953if test "$GCC" = yes; then 14954 case $cc_basename in 14955 nvcc*) 14956 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14957 *) 14958 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14959 esac 14960 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14962$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14963if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965else 14966 lt_cv_prog_compiler_rtti_exceptions=no 14967 ac_outfile=conftest.$ac_objext 14968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14969 lt_compiler_flag="-fno-rtti -fno-exceptions" 14970 # Insert the option either (1) after the last *FLAGS variable, or 14971 # (2) before a word containing "conftest.", or (3) at the end. 14972 # Note that $ac_compile itself does not contain backslashes and begins 14973 # with a dollar sign (not a hyphen), so the echo should work correctly. 14974 # The option is referenced via a variable to avoid confusing sed. 14975 lt_compile=`echo "$ac_compile" | $SED \ 14976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14978 -e 's:$: $lt_compiler_flag:'` 14979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14980 (eval "$lt_compile" 2>conftest.err) 14981 ac_status=$? 14982 cat conftest.err >&5 14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14984 if (exit $ac_status) && test -s "$ac_outfile"; then 14985 # The compiler can only warn and ignore the option if not recognized 14986 # So say no if there are warnings other than the usual output. 14987 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14989 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14990 lt_cv_prog_compiler_rtti_exceptions=yes 14991 fi 14992 fi 14993 $RM conftest* 14994 14995fi 14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14997$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14998 14999if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15000 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15001else 15002 : 15003fi 15004 15005fi 15006 15007 15008 15009 15010 15011 15012 lt_prog_compiler_wl= 15013lt_prog_compiler_pic= 15014lt_prog_compiler_static= 15015 15016 15017 if test "$GCC" = yes; then 15018 lt_prog_compiler_wl='-Wl,' 15019 lt_prog_compiler_static='-static' 15020 15021 case $host_os in 15022 aix*) 15023 # All AIX code is PIC. 15024 if test "$host_cpu" = ia64; then 15025 # AIX 5 now supports IA64 processor 15026 lt_prog_compiler_static='-Bstatic' 15027 fi 15028 ;; 15029 15030 amigaos*) 15031 case $host_cpu in 15032 powerpc) 15033 # see comment about AmigaOS4 .so support 15034 lt_prog_compiler_pic='-fPIC' 15035 ;; 15036 m68k) 15037 # FIXME: we need at least 68020 code to build shared libraries, but 15038 # adding the `-m68020' flag to GCC prevents building anything better, 15039 # like `-m68040'. 15040 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15041 ;; 15042 esac 15043 ;; 15044 15045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15046 # PIC is the default for these OSes. 15047 ;; 15048 15049 mingw* | cygwin* | pw32* | os2* | cegcc*) 15050 # This hack is so that the source file can tell whether it is being 15051 # built for inclusion in a dll (and should export symbols for example). 15052 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15053 # (--disable-auto-import) libraries 15054 lt_prog_compiler_pic='-DDLL_EXPORT' 15055 ;; 15056 15057 darwin* | rhapsody*) 15058 # PIC is the default on this platform 15059 # Common symbols not allowed in MH_DYLIB files 15060 lt_prog_compiler_pic='-fno-common' 15061 ;; 15062 15063 haiku*) 15064 # PIC is the default for Haiku. 15065 # The "-static" flag exists, but is broken. 15066 lt_prog_compiler_static= 15067 ;; 15068 15069 hpux*) 15070 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15071 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15072 # sets the default TLS model and affects inlining. 15073 case $host_cpu in 15074 hppa*64*) 15075 # +Z the default 15076 ;; 15077 *) 15078 lt_prog_compiler_pic='-fPIC' 15079 ;; 15080 esac 15081 ;; 15082 15083 interix[3-9]*) 15084 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15085 # Instead, we relocate shared libraries at runtime. 15086 ;; 15087 15088 msdosdjgpp*) 15089 # Just because we use GCC doesn't mean we suddenly get shared libraries 15090 # on systems that don't support them. 15091 lt_prog_compiler_can_build_shared=no 15092 enable_shared=no 15093 ;; 15094 15095 *nto* | *qnx*) 15096 # QNX uses GNU C++, but need to define -shared option too, otherwise 15097 # it will coredump. 15098 lt_prog_compiler_pic='-fPIC -shared' 15099 ;; 15100 15101 sysv4*MP*) 15102 if test -d /usr/nec; then 15103 lt_prog_compiler_pic=-Kconform_pic 15104 fi 15105 ;; 15106 15107 *) 15108 lt_prog_compiler_pic='-fPIC' 15109 ;; 15110 esac 15111 15112 case $cc_basename in 15113 nvcc*) # Cuda Compiler Driver 2.2 15114 lt_prog_compiler_wl='-Xlinker ' 15115 if test -n "$lt_prog_compiler_pic"; then 15116 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15117 fi 15118 ;; 15119 esac 15120 else 15121 # PORTME Check for flag to pass linker flags through the system compiler. 15122 case $host_os in 15123 aix*) 15124 lt_prog_compiler_wl='-Wl,' 15125 if test "$host_cpu" = ia64; then 15126 # AIX 5 now supports IA64 processor 15127 lt_prog_compiler_static='-Bstatic' 15128 else 15129 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15130 fi 15131 ;; 15132 15133 mingw* | cygwin* | pw32* | os2* | cegcc*) 15134 # This hack is so that the source file can tell whether it is being 15135 # built for inclusion in a dll (and should export symbols for example). 15136 lt_prog_compiler_pic='-DDLL_EXPORT' 15137 ;; 15138 15139 hpux9* | hpux10* | hpux11*) 15140 lt_prog_compiler_wl='-Wl,' 15141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15142 # not for PA HP-UX. 15143 case $host_cpu in 15144 hppa*64*|ia64*) 15145 # +Z the default 15146 ;; 15147 *) 15148 lt_prog_compiler_pic='+Z' 15149 ;; 15150 esac 15151 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15152 lt_prog_compiler_static='${wl}-a ${wl}archive' 15153 ;; 15154 15155 irix5* | irix6* | nonstopux*) 15156 lt_prog_compiler_wl='-Wl,' 15157 # PIC (with -KPIC) is the default. 15158 lt_prog_compiler_static='-non_shared' 15159 ;; 15160 15161 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15162 case $cc_basename in 15163 # old Intel for x86_64 which still supported -KPIC. 15164 ecc*) 15165 lt_prog_compiler_wl='-Wl,' 15166 lt_prog_compiler_pic='-KPIC' 15167 lt_prog_compiler_static='-static' 15168 ;; 15169 # icc used to be incompatible with GCC. 15170 # ICC 10 doesn't accept -KPIC any more. 15171 icc* | ifort*) 15172 lt_prog_compiler_wl='-Wl,' 15173 lt_prog_compiler_pic='-fPIC' 15174 lt_prog_compiler_static='-static' 15175 ;; 15176 # Lahey Fortran 8.1. 15177 lf95*) 15178 lt_prog_compiler_wl='-Wl,' 15179 lt_prog_compiler_pic='--shared' 15180 lt_prog_compiler_static='--static' 15181 ;; 15182 nagfor*) 15183 # NAG Fortran compiler 15184 lt_prog_compiler_wl='-Wl,-Wl,,' 15185 lt_prog_compiler_pic='-PIC' 15186 lt_prog_compiler_static='-Bstatic' 15187 ;; 15188 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15189 # Portland Group compilers (*not* the Pentium gcc compiler, 15190 # which looks to be a dead project) 15191 lt_prog_compiler_wl='-Wl,' 15192 lt_prog_compiler_pic='-fpic' 15193 lt_prog_compiler_static='-Bstatic' 15194 ;; 15195 ccc*) 15196 lt_prog_compiler_wl='-Wl,' 15197 # All Alpha code is PIC. 15198 lt_prog_compiler_static='-non_shared' 15199 ;; 15200 xl* | bgxl* | bgf* | mpixl*) 15201 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15202 lt_prog_compiler_wl='-Wl,' 15203 lt_prog_compiler_pic='-qpic' 15204 lt_prog_compiler_static='-qstaticlink' 15205 ;; 15206 *) 15207 case `$CC -V 2>&1 | sed 5q` in 15208 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15209 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15210 lt_prog_compiler_pic='-KPIC' 15211 lt_prog_compiler_static='-Bstatic' 15212 lt_prog_compiler_wl='' 15213 ;; 15214 *Sun\ F* | *Sun*Fortran*) 15215 lt_prog_compiler_pic='-KPIC' 15216 lt_prog_compiler_static='-Bstatic' 15217 lt_prog_compiler_wl='-Qoption ld ' 15218 ;; 15219 *Sun\ C*) 15220 # Sun C 5.9 15221 lt_prog_compiler_pic='-KPIC' 15222 lt_prog_compiler_static='-Bstatic' 15223 lt_prog_compiler_wl='-Wl,' 15224 ;; 15225 *Intel*\ [CF]*Compiler*) 15226 lt_prog_compiler_wl='-Wl,' 15227 lt_prog_compiler_pic='-fPIC' 15228 lt_prog_compiler_static='-static' 15229 ;; 15230 *Portland\ Group*) 15231 lt_prog_compiler_wl='-Wl,' 15232 lt_prog_compiler_pic='-fpic' 15233 lt_prog_compiler_static='-Bstatic' 15234 ;; 15235 esac 15236 ;; 15237 esac 15238 ;; 15239 15240 newsos6) 15241 lt_prog_compiler_pic='-KPIC' 15242 lt_prog_compiler_static='-Bstatic' 15243 ;; 15244 15245 *nto* | *qnx*) 15246 # QNX uses GNU C++, but need to define -shared option too, otherwise 15247 # it will coredump. 15248 lt_prog_compiler_pic='-fPIC -shared' 15249 ;; 15250 15251 osf3* | osf4* | osf5*) 15252 lt_prog_compiler_wl='-Wl,' 15253 # All OSF/1 code is PIC. 15254 lt_prog_compiler_static='-non_shared' 15255 ;; 15256 15257 rdos*) 15258 lt_prog_compiler_static='-non_shared' 15259 ;; 15260 15261 solaris*) 15262 lt_prog_compiler_pic='-KPIC' 15263 lt_prog_compiler_static='-Bstatic' 15264 case $cc_basename in 15265 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15266 lt_prog_compiler_wl='-Qoption ld ';; 15267 *) 15268 lt_prog_compiler_wl='-Wl,';; 15269 esac 15270 ;; 15271 15272 sunos4*) 15273 lt_prog_compiler_wl='-Qoption ld ' 15274 lt_prog_compiler_pic='-PIC' 15275 lt_prog_compiler_static='-Bstatic' 15276 ;; 15277 15278 sysv4 | sysv4.2uw2* | sysv4.3*) 15279 lt_prog_compiler_wl='-Wl,' 15280 lt_prog_compiler_pic='-KPIC' 15281 lt_prog_compiler_static='-Bstatic' 15282 ;; 15283 15284 sysv4*MP*) 15285 if test -d /usr/nec ;then 15286 lt_prog_compiler_pic='-Kconform_pic' 15287 lt_prog_compiler_static='-Bstatic' 15288 fi 15289 ;; 15290 15291 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15292 lt_prog_compiler_wl='-Wl,' 15293 lt_prog_compiler_pic='-KPIC' 15294 lt_prog_compiler_static='-Bstatic' 15295 ;; 15296 15297 unicos*) 15298 lt_prog_compiler_wl='-Wl,' 15299 lt_prog_compiler_can_build_shared=no 15300 ;; 15301 15302 uts4*) 15303 lt_prog_compiler_pic='-pic' 15304 lt_prog_compiler_static='-Bstatic' 15305 ;; 15306 15307 *) 15308 lt_prog_compiler_can_build_shared=no 15309 ;; 15310 esac 15311 fi 15312 15313case $host_os in 15314 # For platforms which do not support PIC, -DPIC is meaningless: 15315 *djgpp*) 15316 lt_prog_compiler_pic= 15317 ;; 15318 *) 15319 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15320 ;; 15321esac 15322 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15324$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15325if ${lt_cv_prog_compiler_pic+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327else 15328 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15329fi 15330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15331$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15332lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15333 15334# 15335# Check to make sure the PIC flag actually works. 15336# 15337if test -n "$lt_prog_compiler_pic"; then 15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15339$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15340if ${lt_cv_prog_compiler_pic_works+:} false; then : 15341 $as_echo_n "(cached) " >&6 15342else 15343 lt_cv_prog_compiler_pic_works=no 15344 ac_outfile=conftest.$ac_objext 15345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15346 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 15347 # Insert the option either (1) after the last *FLAGS variable, or 15348 # (2) before a word containing "conftest.", or (3) at the end. 15349 # Note that $ac_compile itself does not contain backslashes and begins 15350 # with a dollar sign (not a hyphen), so the echo should work correctly. 15351 # The option is referenced via a variable to avoid confusing sed. 15352 lt_compile=`echo "$ac_compile" | $SED \ 15353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15355 -e 's:$: $lt_compiler_flag:'` 15356 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15357 (eval "$lt_compile" 2>conftest.err) 15358 ac_status=$? 15359 cat conftest.err >&5 15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15361 if (exit $ac_status) && test -s "$ac_outfile"; then 15362 # The compiler can only warn and ignore the option if not recognized 15363 # So say no if there are warnings other than the usual output. 15364 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15366 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15367 lt_cv_prog_compiler_pic_works=yes 15368 fi 15369 fi 15370 $RM conftest* 15371 15372fi 15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15374$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15375 15376if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 15377 case $lt_prog_compiler_pic in 15378 "" | " "*) ;; 15379 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15380 esac 15381else 15382 lt_prog_compiler_pic= 15383 lt_prog_compiler_can_build_shared=no 15384fi 15385 15386fi 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398# 15399# Check to make sure the static flag actually works. 15400# 15401wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15403$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15404if ${lt_cv_prog_compiler_static_works+:} false; then : 15405 $as_echo_n "(cached) " >&6 15406else 15407 lt_cv_prog_compiler_static_works=no 15408 save_LDFLAGS="$LDFLAGS" 15409 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15410 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15412 # The linker can only warn and ignore the option if not recognized 15413 # So say no if there are warnings 15414 if test -s conftest.err; then 15415 # Append any errors to the config.log. 15416 cat conftest.err 1>&5 15417 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15419 if diff conftest.exp conftest.er2 >/dev/null; then 15420 lt_cv_prog_compiler_static_works=yes 15421 fi 15422 else 15423 lt_cv_prog_compiler_static_works=yes 15424 fi 15425 fi 15426 $RM -r conftest* 15427 LDFLAGS="$save_LDFLAGS" 15428 15429fi 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15431$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15432 15433if test x"$lt_cv_prog_compiler_static_works" = xyes; then 15434 : 15435else 15436 lt_prog_compiler_static= 15437fi 15438 15439 15440 15441 15442 15443 15444 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15446$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15447if ${lt_cv_prog_compiler_c_o+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449else 15450 lt_cv_prog_compiler_c_o=no 15451 $RM -r conftest 2>/dev/null 15452 mkdir conftest 15453 cd conftest 15454 mkdir out 15455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15456 15457 lt_compiler_flag="-o out/conftest2.$ac_objext" 15458 # Insert the option either (1) after the last *FLAGS variable, or 15459 # (2) before a word containing "conftest.", or (3) at the end. 15460 # Note that $ac_compile itself does not contain backslashes and begins 15461 # with a dollar sign (not a hyphen), so the echo should work correctly. 15462 lt_compile=`echo "$ac_compile" | $SED \ 15463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15465 -e 's:$: $lt_compiler_flag:'` 15466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15467 (eval "$lt_compile" 2>out/conftest.err) 15468 ac_status=$? 15469 cat out/conftest.err >&5 15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15471 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15472 then 15473 # The compiler can only warn and ignore the option if not recognized 15474 # So say no if there are warnings 15475 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15478 lt_cv_prog_compiler_c_o=yes 15479 fi 15480 fi 15481 chmod u+w . 2>&5 15482 $RM conftest* 15483 # SGI C++ compiler will create directory out/ii_files/ for 15484 # template instantiation 15485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15486 $RM out/* && rmdir out 15487 cd .. 15488 $RM -r conftest 15489 $RM conftest* 15490 15491fi 15492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15493$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15494 15495 15496 15497 15498 15499 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15501$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15502if ${lt_cv_prog_compiler_c_o+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504else 15505 lt_cv_prog_compiler_c_o=no 15506 $RM -r conftest 2>/dev/null 15507 mkdir conftest 15508 cd conftest 15509 mkdir out 15510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15511 15512 lt_compiler_flag="-o out/conftest2.$ac_objext" 15513 # Insert the option either (1) after the last *FLAGS variable, or 15514 # (2) before a word containing "conftest.", or (3) at the end. 15515 # Note that $ac_compile itself does not contain backslashes and begins 15516 # with a dollar sign (not a hyphen), so the echo should work correctly. 15517 lt_compile=`echo "$ac_compile" | $SED \ 15518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15520 -e 's:$: $lt_compiler_flag:'` 15521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15522 (eval "$lt_compile" 2>out/conftest.err) 15523 ac_status=$? 15524 cat out/conftest.err >&5 15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15526 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15527 then 15528 # The compiler can only warn and ignore the option if not recognized 15529 # So say no if there are warnings 15530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15533 lt_cv_prog_compiler_c_o=yes 15534 fi 15535 fi 15536 chmod u+w . 2>&5 15537 $RM conftest* 15538 # SGI C++ compiler will create directory out/ii_files/ for 15539 # template instantiation 15540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15541 $RM out/* && rmdir out 15542 cd .. 15543 $RM -r conftest 15544 $RM conftest* 15545 15546fi 15547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15548$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15549 15550 15551 15552 15553hard_links="nottested" 15554if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 15555 # do not overwrite the value of need_locks provided by the user 15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15557$as_echo_n "checking if we can lock with hard links... " >&6; } 15558 hard_links=yes 15559 $RM conftest* 15560 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15561 touch conftest.a 15562 ln conftest.a conftest.b 2>&5 || hard_links=no 15563 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15565$as_echo "$hard_links" >&6; } 15566 if test "$hard_links" = no; then 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15568$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15569 need_locks=warn 15570 fi 15571else 15572 need_locks=no 15573fi 15574 15575 15576 15577 15578 15579 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15581$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15582 15583 runpath_var= 15584 allow_undefined_flag= 15585 always_export_symbols=no 15586 archive_cmds= 15587 archive_expsym_cmds= 15588 compiler_needs_object=no 15589 enable_shared_with_static_runtimes=no 15590 export_dynamic_flag_spec= 15591 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15592 hardcode_automatic=no 15593 hardcode_direct=no 15594 hardcode_direct_absolute=no 15595 hardcode_libdir_flag_spec= 15596 hardcode_libdir_separator= 15597 hardcode_minus_L=no 15598 hardcode_shlibpath_var=unsupported 15599 inherit_rpath=no 15600 link_all_deplibs=unknown 15601 module_cmds= 15602 module_expsym_cmds= 15603 old_archive_from_new_cmds= 15604 old_archive_from_expsyms_cmds= 15605 thread_safe_flag_spec= 15606 whole_archive_flag_spec= 15607 # include_expsyms should be a list of space-separated symbols to be *always* 15608 # included in the symbol list 15609 include_expsyms= 15610 # exclude_expsyms can be an extended regexp of symbols to exclude 15611 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15613 # as well as any symbol that contains `d'. 15614 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15616 # platforms (ab)use it in PIC code, but their linkers get confused if 15617 # the symbol is explicitly referenced. Since portable code cannot 15618 # rely on this symbol name, it's probably fine to never include it in 15619 # preloaded symbol tables. 15620 # Exclude shared library initialization/finalization symbols. 15621 extract_expsyms_cmds= 15622 15623 case $host_os in 15624 cygwin* | mingw* | pw32* | cegcc*) 15625 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15626 # When not using gcc, we currently assume that we are using 15627 # Microsoft Visual C++. 15628 if test "$GCC" != yes; then 15629 with_gnu_ld=no 15630 fi 15631 ;; 15632 interix*) 15633 # we just hope/assume this is gcc and not c89 (= MSVC++) 15634 with_gnu_ld=yes 15635 ;; 15636 openbsd*) 15637 with_gnu_ld=no 15638 ;; 15639 linux* | k*bsd*-gnu | gnu*) 15640 link_all_deplibs=no 15641 ;; 15642 esac 15643 15644 ld_shlibs=yes 15645 15646 # On some targets, GNU ld is compatible enough with the native linker 15647 # that we're better off using the native interface for both. 15648 lt_use_gnu_ld_interface=no 15649 if test "$with_gnu_ld" = yes; then 15650 case $host_os in 15651 aix*) 15652 # The AIX port of GNU ld has always aspired to compatibility 15653 # with the native linker. However, as the warning in the GNU ld 15654 # block says, versions before 2.19.5* couldn't really create working 15655 # shared libraries, regardless of the interface used. 15656 case `$LD -v 2>&1` in 15657 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15658 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15659 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15660 *) 15661 lt_use_gnu_ld_interface=yes 15662 ;; 15663 esac 15664 ;; 15665 *) 15666 lt_use_gnu_ld_interface=yes 15667 ;; 15668 esac 15669 fi 15670 15671 if test "$lt_use_gnu_ld_interface" = yes; then 15672 # If archive_cmds runs LD, not CC, wlarc should be empty 15673 wlarc='${wl}' 15674 15675 # Set some defaults for GNU ld with shared library support. These 15676 # are reset later if shared libraries are not supported. Putting them 15677 # here allows them to be overridden if necessary. 15678 runpath_var=LD_RUN_PATH 15679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15680 export_dynamic_flag_spec='${wl}--export-dynamic' 15681 # ancient GNU ld didn't support --whole-archive et. al. 15682 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15683 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15684 else 15685 whole_archive_flag_spec= 15686 fi 15687 supports_anon_versioning=no 15688 case `$LD -v 2>&1` in 15689 *GNU\ gold*) supports_anon_versioning=yes ;; 15690 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15691 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15692 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15693 *\ 2.11.*) ;; # other 2.11 versions 15694 *) supports_anon_versioning=yes ;; 15695 esac 15696 15697 # See if GNU ld supports shared libraries. 15698 case $host_os in 15699 aix[3-9]*) 15700 # On AIX/PPC, the GNU linker is very broken 15701 if test "$host_cpu" != ia64; then 15702 ld_shlibs=no 15703 cat <<_LT_EOF 1>&2 15704 15705*** Warning: the GNU linker, at least up to release 2.19, is reported 15706*** to be unable to reliably create shared libraries on AIX. 15707*** Therefore, libtool is disabling shared libraries support. If you 15708*** really care for shared libraries, you may want to install binutils 15709*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15710*** You will then need to restart the configuration process. 15711 15712_LT_EOF 15713 fi 15714 ;; 15715 15716 amigaos*) 15717 case $host_cpu in 15718 powerpc) 15719 # see comment about AmigaOS4 .so support 15720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15721 archive_expsym_cmds='' 15722 ;; 15723 m68k) 15724 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)' 15725 hardcode_libdir_flag_spec='-L$libdir' 15726 hardcode_minus_L=yes 15727 ;; 15728 esac 15729 ;; 15730 15731 beos*) 15732 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15733 allow_undefined_flag=unsupported 15734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15735 # support --undefined. This deserves some investigation. FIXME 15736 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15737 else 15738 ld_shlibs=no 15739 fi 15740 ;; 15741 15742 cygwin* | mingw* | pw32* | cegcc*) 15743 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15744 # as there is no search path for DLLs. 15745 hardcode_libdir_flag_spec='-L$libdir' 15746 export_dynamic_flag_spec='${wl}--export-all-symbols' 15747 allow_undefined_flag=unsupported 15748 always_export_symbols=no 15749 enable_shared_with_static_runtimes=yes 15750 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' 15751 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15752 15753 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15755 # If the export-symbols file already is a .def file (1st line 15756 # is EXPORTS), use it as is; otherwise, prepend... 15757 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15758 cp $export_symbols $output_objdir/$soname.def; 15759 else 15760 echo EXPORTS > $output_objdir/$soname.def; 15761 cat $export_symbols >> $output_objdir/$soname.def; 15762 fi~ 15763 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15764 else 15765 ld_shlibs=no 15766 fi 15767 ;; 15768 15769 haiku*) 15770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15771 link_all_deplibs=yes 15772 ;; 15773 15774 interix[3-9]*) 15775 hardcode_direct=no 15776 hardcode_shlibpath_var=no 15777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15778 export_dynamic_flag_spec='${wl}-E' 15779 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15780 # Instead, shared libraries are loaded at an image base (0x10000000 by 15781 # default) and relocated if they conflict, which is a slow very memory 15782 # consuming and fragmenting process. To avoid this, we pick a random, 15783 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15784 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15786 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' 15787 ;; 15788 15789 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15790 tmp_diet=no 15791 if test "$host_os" = linux-dietlibc; then 15792 case $cc_basename in 15793 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15794 esac 15795 fi 15796 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15797 && test "$tmp_diet" = no 15798 then 15799 tmp_addflag=' $pic_flag' 15800 tmp_sharedflag='-shared' 15801 case $cc_basename,$host_cpu in 15802 pgcc*) # Portland Group C compiler 15803 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' 15804 tmp_addflag=' $pic_flag' 15805 ;; 15806 pgf77* | pgf90* | pgf95* | pgfortran*) 15807 # Portland Group f77 and f90 compilers 15808 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' 15809 tmp_addflag=' $pic_flag -Mnomain' ;; 15810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15811 tmp_addflag=' -i_dynamic' ;; 15812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15813 tmp_addflag=' -i_dynamic -nofor_main' ;; 15814 ifc* | ifort*) # Intel Fortran compiler 15815 tmp_addflag=' -nofor_main' ;; 15816 lf95*) # Lahey Fortran 8.1 15817 whole_archive_flag_spec= 15818 tmp_sharedflag='--shared' ;; 15819 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15820 tmp_sharedflag='-qmkshrobj' 15821 tmp_addflag= ;; 15822 nvcc*) # Cuda Compiler Driver 2.2 15823 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' 15824 compiler_needs_object=yes 15825 ;; 15826 esac 15827 case `$CC -V 2>&1 | sed 5q` in 15828 *Sun\ C*) # Sun C 5.9 15829 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' 15830 compiler_needs_object=yes 15831 tmp_sharedflag='-G' ;; 15832 *Sun\ F*) # Sun Fortran 8.3 15833 tmp_sharedflag='-G' ;; 15834 esac 15835 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15836 15837 if test "x$supports_anon_versioning" = xyes; then 15838 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15839 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15840 echo "local: *; };" >> $output_objdir/$libname.ver~ 15841 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15842 fi 15843 15844 case $cc_basename in 15845 xlf* | bgf* | bgxlf* | mpixlf*) 15846 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15847 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15849 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15850 if test "x$supports_anon_versioning" = xyes; then 15851 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15853 echo "local: *; };" >> $output_objdir/$libname.ver~ 15854 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15855 fi 15856 ;; 15857 esac 15858 else 15859 ld_shlibs=no 15860 fi 15861 ;; 15862 15863 netbsd* | netbsdelf*-gnu) 15864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15865 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15866 wlarc= 15867 else 15868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15869 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15870 fi 15871 ;; 15872 15873 solaris*) 15874 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15875 ld_shlibs=no 15876 cat <<_LT_EOF 1>&2 15877 15878*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15879*** create shared libraries on Solaris systems. Therefore, libtool 15880*** is disabling shared libraries support. We urge you to upgrade GNU 15881*** binutils to release 2.9.1 or newer. Another option is to modify 15882*** your PATH or compiler configuration so that the native linker is 15883*** used, and then restart. 15884 15885_LT_EOF 15886 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15888 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15889 else 15890 ld_shlibs=no 15891 fi 15892 ;; 15893 15894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15895 case `$LD -v 2>&1` in 15896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15897 ld_shlibs=no 15898 cat <<_LT_EOF 1>&2 15899 15900*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15901*** reliably create shared libraries on SCO systems. Therefore, libtool 15902*** is disabling shared libraries support. We urge you to upgrade GNU 15903*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15904*** your PATH or compiler configuration so that the native linker is 15905*** used, and then restart. 15906 15907_LT_EOF 15908 ;; 15909 *) 15910 # For security reasons, it is highly recommended that you always 15911 # use absolute paths for naming shared libraries, and exclude the 15912 # DT_RUNPATH tag from executables and libraries. But doing so 15913 # requires that you compile everything twice, which is a pain. 15914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15918 else 15919 ld_shlibs=no 15920 fi 15921 ;; 15922 esac 15923 ;; 15924 15925 sunos4*) 15926 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15927 wlarc= 15928 hardcode_direct=yes 15929 hardcode_shlibpath_var=no 15930 ;; 15931 15932 *) 15933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15935 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15936 else 15937 ld_shlibs=no 15938 fi 15939 ;; 15940 esac 15941 15942 if test "$ld_shlibs" = no; then 15943 runpath_var= 15944 hardcode_libdir_flag_spec= 15945 export_dynamic_flag_spec= 15946 whole_archive_flag_spec= 15947 fi 15948 else 15949 # PORTME fill in a description of your system's linker (not GNU ld) 15950 case $host_os in 15951 aix3*) 15952 allow_undefined_flag=unsupported 15953 always_export_symbols=yes 15954 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' 15955 # Note: this linker hardcodes the directories in LIBPATH if there 15956 # are no directories specified by -L. 15957 hardcode_minus_L=yes 15958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15959 # Neither direct hardcoding nor static linking is supported with a 15960 # broken collect2. 15961 hardcode_direct=unsupported 15962 fi 15963 ;; 15964 15965 aix[4-9]*) 15966 if test "$host_cpu" = ia64; then 15967 # On IA64, the linker does run time linking by default, so we don't 15968 # have to do anything special. 15969 aix_use_runtimelinking=no 15970 exp_sym_flag='-Bexport' 15971 no_entry_flag="" 15972 else 15973 # If we're using GNU nm, then we don't want the "-C" option. 15974 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15975 # Also, AIX nm treats weak defined symbols like other global 15976 # defined symbols, whereas GNU nm marks them as "W". 15977 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15978 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15979 else 15980 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15981 fi 15982 aix_use_runtimelinking=no 15983 15984 # Test if we are trying to use run time linking or normal 15985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15986 # need to do runtime linking. 15987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15988 for ld_flag in $LDFLAGS; do 15989 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15990 aix_use_runtimelinking=yes 15991 break 15992 fi 15993 done 15994 ;; 15995 esac 15996 15997 exp_sym_flag='-bexport' 15998 no_entry_flag='-bnoentry' 15999 fi 16000 16001 # When large executables or shared objects are built, AIX ld can 16002 # have problems creating the table of contents. If linking a library 16003 # or program results in "error TOC overflow" add -mminimal-toc to 16004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16006 16007 archive_cmds='' 16008 hardcode_direct=yes 16009 hardcode_direct_absolute=yes 16010 hardcode_libdir_separator=':' 16011 link_all_deplibs=yes 16012 file_list_spec='${wl}-f,' 16013 16014 if test "$GCC" = yes; then 16015 case $host_os in aix4.[012]|aix4.[012].*) 16016 # We only want to do this on AIX 4.2 and lower, the check 16017 # below for broken collect2 doesn't work under 4.3+ 16018 collect2name=`${CC} -print-prog-name=collect2` 16019 if test -f "$collect2name" && 16020 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16021 then 16022 # We have reworked collect2 16023 : 16024 else 16025 # We have old collect2 16026 hardcode_direct=unsupported 16027 # It fails to find uninstalled libraries when the uninstalled 16028 # path is not listed in the libpath. Setting hardcode_minus_L 16029 # to unsupported forces relinking 16030 hardcode_minus_L=yes 16031 hardcode_libdir_flag_spec='-L$libdir' 16032 hardcode_libdir_separator= 16033 fi 16034 ;; 16035 esac 16036 shared_flag='-shared' 16037 if test "$aix_use_runtimelinking" = yes; then 16038 shared_flag="$shared_flag "'${wl}-G' 16039 fi 16040 link_all_deplibs=no 16041 else 16042 # not using gcc 16043 if test "$host_cpu" = ia64; then 16044 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16045 # chokes on -Wl,-G. The following line is correct: 16046 shared_flag='-G' 16047 else 16048 if test "$aix_use_runtimelinking" = yes; then 16049 shared_flag='${wl}-G' 16050 else 16051 shared_flag='${wl}-bM:SRE' 16052 fi 16053 fi 16054 fi 16055 16056 export_dynamic_flag_spec='${wl}-bexpall' 16057 # It seems that -bexpall does not export symbols beginning with 16058 # underscore (_), so it is better to generate a list of symbols to export. 16059 always_export_symbols=yes 16060 if test "$aix_use_runtimelinking" = yes; then 16061 # Warning - without using the other runtime loading flags (-brtl), 16062 # -berok will link without error, but may produce a broken library. 16063 allow_undefined_flag='-berok' 16064 # Determine the default libpath from the value encoded in an 16065 # empty executable. 16066 if test "${lt_cv_aix_libpath+set}" = set; then 16067 aix_libpath=$lt_cv_aix_libpath 16068else 16069 if ${lt_cv_aix_libpath_+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071else 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073/* end confdefs.h. */ 16074 16075int 16076main () 16077{ 16078 16079 ; 16080 return 0; 16081} 16082_ACEOF 16083if ac_fn_c_try_link "$LINENO"; then : 16084 16085 lt_aix_libpath_sed=' 16086 /Import File Strings/,/^$/ { 16087 /^0/ { 16088 s/^0 *\([^ ]*\) *$/\1/ 16089 p 16090 } 16091 }' 16092 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16093 # Check for a 64-bit object if we didn't find anything. 16094 if test -z "$lt_cv_aix_libpath_"; then 16095 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16096 fi 16097fi 16098rm -f core conftest.err conftest.$ac_objext \ 16099 conftest$ac_exeext conftest.$ac_ext 16100 if test -z "$lt_cv_aix_libpath_"; then 16101 lt_cv_aix_libpath_="/usr/lib:/lib" 16102 fi 16103 16104fi 16105 16106 aix_libpath=$lt_cv_aix_libpath_ 16107fi 16108 16109 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16110 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16111 else 16112 if test "$host_cpu" = ia64; then 16113 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 16114 allow_undefined_flag="-z nodefs" 16115 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" 16116 else 16117 # Determine the default libpath from the value encoded in an 16118 # empty executable. 16119 if test "${lt_cv_aix_libpath+set}" = set; then 16120 aix_libpath=$lt_cv_aix_libpath 16121else 16122 if ${lt_cv_aix_libpath_+:} false; then : 16123 $as_echo_n "(cached) " >&6 16124else 16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16126/* end confdefs.h. */ 16127 16128int 16129main () 16130{ 16131 16132 ; 16133 return 0; 16134} 16135_ACEOF 16136if ac_fn_c_try_link "$LINENO"; then : 16137 16138 lt_aix_libpath_sed=' 16139 /Import File Strings/,/^$/ { 16140 /^0/ { 16141 s/^0 *\([^ ]*\) *$/\1/ 16142 p 16143 } 16144 }' 16145 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16146 # Check for a 64-bit object if we didn't find anything. 16147 if test -z "$lt_cv_aix_libpath_"; then 16148 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16149 fi 16150fi 16151rm -f core conftest.err conftest.$ac_objext \ 16152 conftest$ac_exeext conftest.$ac_ext 16153 if test -z "$lt_cv_aix_libpath_"; then 16154 lt_cv_aix_libpath_="/usr/lib:/lib" 16155 fi 16156 16157fi 16158 16159 aix_libpath=$lt_cv_aix_libpath_ 16160fi 16161 16162 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16163 # Warning - without using the other run time loading flags, 16164 # -berok will link without error, but may produce a broken library. 16165 no_undefined_flag=' ${wl}-bernotok' 16166 allow_undefined_flag=' ${wl}-berok' 16167 if test "$with_gnu_ld" = yes; then 16168 # We only use this code for GNU lds that support --whole-archive. 16169 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16170 else 16171 # Exported symbols can be pulled into shared objects from archives 16172 whole_archive_flag_spec='$convenience' 16173 fi 16174 archive_cmds_need_lc=yes 16175 # This is similar to how AIX traditionally builds its shared libraries. 16176 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16177 fi 16178 fi 16179 ;; 16180 16181 amigaos*) 16182 case $host_cpu in 16183 powerpc) 16184 # see comment about AmigaOS4 .so support 16185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16186 archive_expsym_cmds='' 16187 ;; 16188 m68k) 16189 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)' 16190 hardcode_libdir_flag_spec='-L$libdir' 16191 hardcode_minus_L=yes 16192 ;; 16193 esac 16194 ;; 16195 16196 bsdi[45]*) 16197 export_dynamic_flag_spec=-rdynamic 16198 ;; 16199 16200 cygwin* | mingw* | pw32* | cegcc*) 16201 # When not using gcc, we currently assume that we are using 16202 # Microsoft Visual C++. 16203 # hardcode_libdir_flag_spec is actually meaningless, as there is 16204 # no search path for DLLs. 16205 case $cc_basename in 16206 cl*) 16207 # Native MSVC 16208 hardcode_libdir_flag_spec=' ' 16209 allow_undefined_flag=unsupported 16210 always_export_symbols=yes 16211 file_list_spec='@' 16212 # Tell ltmain to make .lib files, not .a files. 16213 libext=lib 16214 # Tell ltmain to make .dll files, not .so files. 16215 shrext_cmds=".dll" 16216 # FIXME: Setting linknames here is a bad hack. 16217 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 16218 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16219 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 16220 else 16221 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 16222 fi~ 16223 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16224 linknames=' 16225 # The linker will not automatically build a static lib if we build a DLL. 16226 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16227 enable_shared_with_static_runtimes=yes 16228 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16229 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16230 # Don't use ranlib 16231 old_postinstall_cmds='chmod 644 $oldlib' 16232 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16233 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16234 case $lt_outputfile in 16235 *.exe|*.EXE) ;; 16236 *) 16237 lt_outputfile="$lt_outputfile.exe" 16238 lt_tool_outputfile="$lt_tool_outputfile.exe" 16239 ;; 16240 esac~ 16241 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 16242 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16243 $RM "$lt_outputfile.manifest"; 16244 fi' 16245 ;; 16246 *) 16247 # Assume MSVC wrapper 16248 hardcode_libdir_flag_spec=' ' 16249 allow_undefined_flag=unsupported 16250 # Tell ltmain to make .lib files, not .a files. 16251 libext=lib 16252 # Tell ltmain to make .dll files, not .so files. 16253 shrext_cmds=".dll" 16254 # FIXME: Setting linknames here is a bad hack. 16255 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16256 # The linker will automatically build a .lib file if we build a DLL. 16257 old_archive_from_new_cmds='true' 16258 # FIXME: Should let the user specify the lib program. 16259 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16260 enable_shared_with_static_runtimes=yes 16261 ;; 16262 esac 16263 ;; 16264 16265 darwin* | rhapsody*) 16266 16267 16268 archive_cmds_need_lc=no 16269 hardcode_direct=no 16270 hardcode_automatic=yes 16271 hardcode_shlibpath_var=unsupported 16272 if test "$lt_cv_ld_force_load" = "yes"; then 16273 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\"`' 16274 16275 else 16276 whole_archive_flag_spec='' 16277 fi 16278 link_all_deplibs=yes 16279 allow_undefined_flag="$_lt_dar_allow_undefined" 16280 case $cc_basename in 16281 ifort*) _lt_dar_can_shared=yes ;; 16282 *) _lt_dar_can_shared=$GCC ;; 16283 esac 16284 if test "$_lt_dar_can_shared" = "yes"; then 16285 output_verbose_link_cmd=func_echo_all 16286 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16287 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16288 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}" 16289 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}" 16290 16291 else 16292 ld_shlibs=no 16293 fi 16294 16295 ;; 16296 16297 dgux*) 16298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16299 hardcode_libdir_flag_spec='-L$libdir' 16300 hardcode_shlibpath_var=no 16301 ;; 16302 16303 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16304 # support. Future versions do this automatically, but an explicit c++rt0.o 16305 # does not break anything, and helps significantly (at the cost of a little 16306 # extra space). 16307 freebsd2.2*) 16308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16309 hardcode_libdir_flag_spec='-R$libdir' 16310 hardcode_direct=yes 16311 hardcode_shlibpath_var=no 16312 ;; 16313 16314 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16315 freebsd2.*) 16316 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16317 hardcode_direct=yes 16318 hardcode_minus_L=yes 16319 hardcode_shlibpath_var=no 16320 ;; 16321 16322 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16323 freebsd* | dragonfly*) 16324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16325 hardcode_libdir_flag_spec='-R$libdir' 16326 hardcode_direct=yes 16327 hardcode_shlibpath_var=no 16328 ;; 16329 16330 hpux9*) 16331 if test "$GCC" = yes; then 16332 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16333 else 16334 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16335 fi 16336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16337 hardcode_libdir_separator=: 16338 hardcode_direct=yes 16339 16340 # hardcode_minus_L: Not really in the search PATH, 16341 # but as the default location of the library. 16342 hardcode_minus_L=yes 16343 export_dynamic_flag_spec='${wl}-E' 16344 ;; 16345 16346 hpux10*) 16347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16348 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16349 else 16350 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16351 fi 16352 if test "$with_gnu_ld" = no; then 16353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16354 hardcode_libdir_separator=: 16355 hardcode_direct=yes 16356 hardcode_direct_absolute=yes 16357 export_dynamic_flag_spec='${wl}-E' 16358 # hardcode_minus_L: Not really in the search PATH, 16359 # but as the default location of the library. 16360 hardcode_minus_L=yes 16361 fi 16362 ;; 16363 16364 hpux11*) 16365 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16366 case $host_cpu in 16367 hppa*64*) 16368 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16369 ;; 16370 ia64*) 16371 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16372 ;; 16373 *) 16374 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16375 ;; 16376 esac 16377 else 16378 case $host_cpu in 16379 hppa*64*) 16380 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16381 ;; 16382 ia64*) 16383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16384 ;; 16385 *) 16386 16387 # Older versions of the 11.00 compiler do not understand -b yet 16388 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16390$as_echo_n "checking if $CC understands -b... " >&6; } 16391if ${lt_cv_prog_compiler__b+:} false; then : 16392 $as_echo_n "(cached) " >&6 16393else 16394 lt_cv_prog_compiler__b=no 16395 save_LDFLAGS="$LDFLAGS" 16396 LDFLAGS="$LDFLAGS -b" 16397 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16399 # The linker can only warn and ignore the option if not recognized 16400 # So say no if there are warnings 16401 if test -s conftest.err; then 16402 # Append any errors to the config.log. 16403 cat conftest.err 1>&5 16404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16406 if diff conftest.exp conftest.er2 >/dev/null; then 16407 lt_cv_prog_compiler__b=yes 16408 fi 16409 else 16410 lt_cv_prog_compiler__b=yes 16411 fi 16412 fi 16413 $RM -r conftest* 16414 LDFLAGS="$save_LDFLAGS" 16415 16416fi 16417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16418$as_echo "$lt_cv_prog_compiler__b" >&6; } 16419 16420if test x"$lt_cv_prog_compiler__b" = xyes; then 16421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16422else 16423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16424fi 16425 16426 ;; 16427 esac 16428 fi 16429 if test "$with_gnu_ld" = no; then 16430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16431 hardcode_libdir_separator=: 16432 16433 case $host_cpu in 16434 hppa*64*|ia64*) 16435 hardcode_direct=no 16436 hardcode_shlibpath_var=no 16437 ;; 16438 *) 16439 hardcode_direct=yes 16440 hardcode_direct_absolute=yes 16441 export_dynamic_flag_spec='${wl}-E' 16442 16443 # hardcode_minus_L: Not really in the search PATH, 16444 # but as the default location of the library. 16445 hardcode_minus_L=yes 16446 ;; 16447 esac 16448 fi 16449 ;; 16450 16451 irix5* | irix6* | nonstopux*) 16452 if test "$GCC" = yes; then 16453 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' 16454 # Try to use the -exported_symbol ld option, if it does not 16455 # work, assume that -exports_file does not work either and 16456 # implicitly export all symbols. 16457 # This should be the same for all languages, so no per-tag cache variable. 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16459$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16460if ${lt_cv_irix_exported_symbol+:} false; then : 16461 $as_echo_n "(cached) " >&6 16462else 16463 save_LDFLAGS="$LDFLAGS" 16464 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16466/* end confdefs.h. */ 16467int foo (void) { return 0; } 16468_ACEOF 16469if ac_fn_c_try_link "$LINENO"; then : 16470 lt_cv_irix_exported_symbol=yes 16471else 16472 lt_cv_irix_exported_symbol=no 16473fi 16474rm -f core conftest.err conftest.$ac_objext \ 16475 conftest$ac_exeext conftest.$ac_ext 16476 LDFLAGS="$save_LDFLAGS" 16477fi 16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16479$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16480 if test "$lt_cv_irix_exported_symbol" = yes; then 16481 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' 16482 fi 16483 else 16484 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' 16485 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' 16486 fi 16487 archive_cmds_need_lc='no' 16488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16489 hardcode_libdir_separator=: 16490 inherit_rpath=yes 16491 link_all_deplibs=yes 16492 ;; 16493 16494 netbsd* | netbsdelf*-gnu) 16495 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16497 else 16498 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16499 fi 16500 hardcode_libdir_flag_spec='-R$libdir' 16501 hardcode_direct=yes 16502 hardcode_shlibpath_var=no 16503 ;; 16504 16505 newsos6) 16506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16507 hardcode_direct=yes 16508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16509 hardcode_libdir_separator=: 16510 hardcode_shlibpath_var=no 16511 ;; 16512 16513 *nto* | *qnx*) 16514 ;; 16515 16516 openbsd*) 16517 if test -f /usr/libexec/ld.so; then 16518 hardcode_direct=yes 16519 hardcode_shlibpath_var=no 16520 hardcode_direct_absolute=yes 16521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16522 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16523 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16525 export_dynamic_flag_spec='${wl}-E' 16526 else 16527 case $host_os in 16528 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16529 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16530 hardcode_libdir_flag_spec='-R$libdir' 16531 ;; 16532 *) 16533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16535 ;; 16536 esac 16537 fi 16538 else 16539 ld_shlibs=no 16540 fi 16541 ;; 16542 16543 os2*) 16544 hardcode_libdir_flag_spec='-L$libdir' 16545 hardcode_minus_L=yes 16546 allow_undefined_flag=unsupported 16547 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 16548 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16549 ;; 16550 16551 osf3*) 16552 if test "$GCC" = yes; then 16553 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16554 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' 16555 else 16556 allow_undefined_flag=' -expect_unresolved \*' 16557 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' 16558 fi 16559 archive_cmds_need_lc='no' 16560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16561 hardcode_libdir_separator=: 16562 ;; 16563 16564 osf4* | osf5*) # as osf3* with the addition of -msym flag 16565 if test "$GCC" = yes; then 16566 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16567 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' 16568 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16569 else 16570 allow_undefined_flag=' -expect_unresolved \*' 16571 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' 16572 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~ 16573 $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' 16574 16575 # Both c and cxx compiler support -rpath directly 16576 hardcode_libdir_flag_spec='-rpath $libdir' 16577 fi 16578 archive_cmds_need_lc='no' 16579 hardcode_libdir_separator=: 16580 ;; 16581 16582 solaris*) 16583 no_undefined_flag=' -z defs' 16584 if test "$GCC" = yes; then 16585 wlarc='${wl}' 16586 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16588 $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' 16589 else 16590 case `$CC -V 2>&1` in 16591 *"Compilers 5.0"*) 16592 wlarc='' 16593 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16594 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16595 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16596 ;; 16597 *) 16598 wlarc='${wl}' 16599 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16600 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16601 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16602 ;; 16603 esac 16604 fi 16605 hardcode_libdir_flag_spec='-R$libdir' 16606 hardcode_shlibpath_var=no 16607 case $host_os in 16608 solaris2.[0-5] | solaris2.[0-5].*) ;; 16609 *) 16610 # The compiler driver will combine and reorder linker options, 16611 # but understands `-z linker_flag'. GCC discards it without `$wl', 16612 # but is careful enough not to reorder. 16613 # Supported since Solaris 2.6 (maybe 2.5.1?) 16614 if test "$GCC" = yes; then 16615 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16616 else 16617 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16618 fi 16619 ;; 16620 esac 16621 link_all_deplibs=yes 16622 ;; 16623 16624 sunos4*) 16625 if test "x$host_vendor" = xsequent; then 16626 # Use $CC to link under sequent, because it throws in some extra .o 16627 # files that make .init and .fini sections work. 16628 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16629 else 16630 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16631 fi 16632 hardcode_libdir_flag_spec='-L$libdir' 16633 hardcode_direct=yes 16634 hardcode_minus_L=yes 16635 hardcode_shlibpath_var=no 16636 ;; 16637 16638 sysv4) 16639 case $host_vendor in 16640 sni) 16641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16642 hardcode_direct=yes # is this really true??? 16643 ;; 16644 siemens) 16645 ## LD is ld it makes a PLAMLIB 16646 ## CC just makes a GrossModule. 16647 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16648 reload_cmds='$CC -r -o $output$reload_objs' 16649 hardcode_direct=no 16650 ;; 16651 motorola) 16652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16653 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16654 ;; 16655 esac 16656 runpath_var='LD_RUN_PATH' 16657 hardcode_shlibpath_var=no 16658 ;; 16659 16660 sysv4.3*) 16661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16662 hardcode_shlibpath_var=no 16663 export_dynamic_flag_spec='-Bexport' 16664 ;; 16665 16666 sysv4*MP*) 16667 if test -d /usr/nec; then 16668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16669 hardcode_shlibpath_var=no 16670 runpath_var=LD_RUN_PATH 16671 hardcode_runpath_var=yes 16672 ld_shlibs=yes 16673 fi 16674 ;; 16675 16676 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16677 no_undefined_flag='${wl}-z,text' 16678 archive_cmds_need_lc=no 16679 hardcode_shlibpath_var=no 16680 runpath_var='LD_RUN_PATH' 16681 16682 if test "$GCC" = yes; then 16683 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16684 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16685 else 16686 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16687 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16688 fi 16689 ;; 16690 16691 sysv5* | sco3.2v5* | sco5v6*) 16692 # Note: We can NOT use -z defs as we might desire, because we do not 16693 # link with -lc, and that would cause any symbols used from libc to 16694 # always be unresolved, which means just about no library would 16695 # ever link correctly. If we're not using GNU ld we use -z text 16696 # though, which does catch some bad symbols but isn't as heavy-handed 16697 # as -z defs. 16698 no_undefined_flag='${wl}-z,text' 16699 allow_undefined_flag='${wl}-z,nodefs' 16700 archive_cmds_need_lc=no 16701 hardcode_shlibpath_var=no 16702 hardcode_libdir_flag_spec='${wl}-R,$libdir' 16703 hardcode_libdir_separator=':' 16704 link_all_deplibs=yes 16705 export_dynamic_flag_spec='${wl}-Bexport' 16706 runpath_var='LD_RUN_PATH' 16707 16708 if test "$GCC" = yes; then 16709 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16710 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16711 else 16712 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16713 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16714 fi 16715 ;; 16716 16717 uts4*) 16718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16719 hardcode_libdir_flag_spec='-L$libdir' 16720 hardcode_shlibpath_var=no 16721 ;; 16722 16723 *) 16724 ld_shlibs=no 16725 ;; 16726 esac 16727 16728 if test x$host_vendor = xsni; then 16729 case $host in 16730 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16731 export_dynamic_flag_spec='${wl}-Blargedynsym' 16732 ;; 16733 esac 16734 fi 16735 fi 16736 16737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16738$as_echo "$ld_shlibs" >&6; } 16739test "$ld_shlibs" = no && can_build_shared=no 16740 16741with_gnu_ld=$with_gnu_ld 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757# 16758# Do we need to explicitly link libc? 16759# 16760case "x$archive_cmds_need_lc" in 16761x|xyes) 16762 # Assume -lc should be added 16763 archive_cmds_need_lc=yes 16764 16765 if test "$enable_shared" = yes && test "$GCC" = yes; then 16766 case $archive_cmds in 16767 *'~'*) 16768 # FIXME: we may have to deal with multi-command sequences. 16769 ;; 16770 '$CC '*) 16771 # Test whether the compiler implicitly links with -lc since on some 16772 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16773 # to ld, don't add -lc before -lgcc. 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16775$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16776if ${lt_cv_archive_cmds_need_lc+:} false; then : 16777 $as_echo_n "(cached) " >&6 16778else 16779 $RM conftest* 16780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16781 16782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16783 (eval $ac_compile) 2>&5 16784 ac_status=$? 16785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16786 test $ac_status = 0; } 2>conftest.err; then 16787 soname=conftest 16788 lib=conftest 16789 libobjs=conftest.$ac_objext 16790 deplibs= 16791 wl=$lt_prog_compiler_wl 16792 pic_flag=$lt_prog_compiler_pic 16793 compiler_flags=-v 16794 linker_flags=-v 16795 verstring= 16796 output_objdir=. 16797 libname=conftest 16798 lt_save_allow_undefined_flag=$allow_undefined_flag 16799 allow_undefined_flag= 16800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16801 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16802 ac_status=$? 16803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16804 test $ac_status = 0; } 16805 then 16806 lt_cv_archive_cmds_need_lc=no 16807 else 16808 lt_cv_archive_cmds_need_lc=yes 16809 fi 16810 allow_undefined_flag=$lt_save_allow_undefined_flag 16811 else 16812 cat conftest.err 1>&5 16813 fi 16814 $RM conftest* 16815 16816fi 16817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16818$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16819 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16820 ;; 16821 esac 16822 fi 16823 ;; 16824esac 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16978$as_echo_n "checking dynamic linker characteristics... " >&6; } 16979 16980if test "$GCC" = yes; then 16981 case $host_os in 16982 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16983 *) lt_awk_arg="/^libraries:/" ;; 16984 esac 16985 case $host_os in 16986 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16987 *) lt_sed_strip_eq="s,=/,/,g" ;; 16988 esac 16989 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16990 case $lt_search_path_spec in 16991 *\;*) 16992 # if the path contains ";" then we assume it to be the separator 16993 # otherwise default to the standard path separator (i.e. ":") - it is 16994 # assumed that no part of a normal pathname contains ";" but that should 16995 # okay in the real world where ";" in dirpaths is itself problematic. 16996 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16997 ;; 16998 *) 16999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17000 ;; 17001 esac 17002 # Ok, now we have the path, separated by spaces, we can step through it 17003 # and add multilib dir if necessary. 17004 lt_tmp_lt_search_path_spec= 17005 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17006 for lt_sys_path in $lt_search_path_spec; do 17007 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 17008 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 17009 else 17010 test -d "$lt_sys_path" && \ 17011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17012 fi 17013 done 17014 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17015BEGIN {RS=" "; FS="/|\n";} { 17016 lt_foo=""; 17017 lt_count=0; 17018 for (lt_i = NF; lt_i > 0; lt_i--) { 17019 if ($lt_i != "" && $lt_i != ".") { 17020 if ($lt_i == "..") { 17021 lt_count++; 17022 } else { 17023 if (lt_count == 0) { 17024 lt_foo="/" $lt_i lt_foo; 17025 } else { 17026 lt_count--; 17027 } 17028 } 17029 } 17030 } 17031 if (lt_foo != "") { lt_freq[lt_foo]++; } 17032 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17033}'` 17034 # AWK program above erroneously prepends '/' to C:/dos/paths 17035 # for these hosts. 17036 case $host_os in 17037 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17038 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 17039 esac 17040 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17041else 17042 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17043fi 17044library_names_spec= 17045libname_spec='lib$name' 17046soname_spec= 17047shrext_cmds=".so" 17048postinstall_cmds= 17049postuninstall_cmds= 17050finish_cmds= 17051finish_eval= 17052shlibpath_var= 17053shlibpath_overrides_runpath=unknown 17054version_type=none 17055dynamic_linker="$host_os ld.so" 17056sys_lib_dlsearch_path_spec="/lib /usr/lib" 17057need_lib_prefix=unknown 17058hardcode_into_libs=no 17059 17060# when you set need_version to no, make sure it does not cause -set_version 17061# flags to be left without arguments 17062need_version=unknown 17063 17064case $host_os in 17065aix3*) 17066 version_type=linux # correct to gnu/linux during the next big refactor 17067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17068 shlibpath_var=LIBPATH 17069 17070 # AIX 3 has no versioning support, so we append a major version to the name. 17071 soname_spec='${libname}${release}${shared_ext}$major' 17072 ;; 17073 17074aix[4-9]*) 17075 version_type=linux # correct to gnu/linux during the next big refactor 17076 need_lib_prefix=no 17077 need_version=no 17078 hardcode_into_libs=yes 17079 if test "$host_cpu" = ia64; then 17080 # AIX 5 supports IA64 17081 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17082 shlibpath_var=LD_LIBRARY_PATH 17083 else 17084 # With GCC up to 2.95.x, collect2 would create an import file 17085 # for dependence libraries. The import file would start with 17086 # the line `#! .'. This would cause the generated library to 17087 # depend on `.', always an invalid library. This was fixed in 17088 # development snapshots of GCC prior to 3.0. 17089 case $host_os in 17090 aix4 | aix4.[01] | aix4.[01].*) 17091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17092 echo ' yes ' 17093 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17094 : 17095 else 17096 can_build_shared=no 17097 fi 17098 ;; 17099 esac 17100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17101 # soname into executable. Probably we can add versioning support to 17102 # collect2, so additional links can be useful in future. 17103 if test "$aix_use_runtimelinking" = yes; then 17104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17105 # instead of lib<name>.a to let people know that these are not 17106 # typical AIX shared libraries. 17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17108 else 17109 # We preserve .a as extension for shared libraries through AIX4.2 17110 # and later when we are not doing run time linking. 17111 library_names_spec='${libname}${release}.a $libname.a' 17112 soname_spec='${libname}${release}${shared_ext}$major' 17113 fi 17114 shlibpath_var=LIBPATH 17115 fi 17116 ;; 17117 17118amigaos*) 17119 case $host_cpu in 17120 powerpc) 17121 # Since July 2007 AmigaOS4 officially supports .so libraries. 17122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17124 ;; 17125 m68k) 17126 library_names_spec='$libname.ixlibrary $libname.a' 17127 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17128 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17129 ;; 17130 esac 17131 ;; 17132 17133beos*) 17134 library_names_spec='${libname}${shared_ext}' 17135 dynamic_linker="$host_os ld.so" 17136 shlibpath_var=LIBRARY_PATH 17137 ;; 17138 17139bsdi[45]*) 17140 version_type=linux # correct to gnu/linux during the next big refactor 17141 need_version=no 17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17143 soname_spec='${libname}${release}${shared_ext}$major' 17144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17145 shlibpath_var=LD_LIBRARY_PATH 17146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17148 # the default ld.so.conf also contains /usr/contrib/lib and 17149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17150 # libtool to hard-code these into programs 17151 ;; 17152 17153cygwin* | mingw* | pw32* | cegcc*) 17154 version_type=windows 17155 shrext_cmds=".dll" 17156 need_version=no 17157 need_lib_prefix=no 17158 17159 case $GCC,$cc_basename in 17160 yes,*) 17161 # gcc 17162 library_names_spec='$libname.dll.a' 17163 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17164 postinstall_cmds='base_file=`basename \${file}`~ 17165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17166 dldir=$destdir/`dirname \$dlpath`~ 17167 test -d \$dldir || mkdir -p \$dldir~ 17168 $install_prog $dir/$dlname \$dldir/$dlname~ 17169 chmod a+x \$dldir/$dlname~ 17170 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17171 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17172 fi' 17173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17174 dlpath=$dir/\$dldll~ 17175 $RM \$dlpath' 17176 shlibpath_overrides_runpath=yes 17177 17178 case $host_os in 17179 cygwin*) 17180 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17182 17183 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17184 ;; 17185 mingw* | cegcc*) 17186 # MinGW DLLs use traditional 'lib' prefix 17187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17188 ;; 17189 pw32*) 17190 # pw32 DLLs use 'pw' prefix rather than 'lib' 17191 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17192 ;; 17193 esac 17194 dynamic_linker='Win32 ld.exe' 17195 ;; 17196 17197 *,cl*) 17198 # Native MSVC 17199 libname_spec='$name' 17200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17201 library_names_spec='${libname}.dll.lib' 17202 17203 case $build_os in 17204 mingw*) 17205 sys_lib_search_path_spec= 17206 lt_save_ifs=$IFS 17207 IFS=';' 17208 for lt_path in $LIB 17209 do 17210 IFS=$lt_save_ifs 17211 # Let DOS variable expansion print the short 8.3 style file name. 17212 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17213 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17214 done 17215 IFS=$lt_save_ifs 17216 # Convert to MSYS style. 17217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17218 ;; 17219 cygwin*) 17220 # Convert to unix form, then to dos form, then back to unix form 17221 # but this time dos style (no spaces!) so that the unix form looks 17222 # like /cygdrive/c/PROGRA~1:/cygdr... 17223 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17224 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17225 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17226 ;; 17227 *) 17228 sys_lib_search_path_spec="$LIB" 17229 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17230 # It is most probably a Windows format PATH. 17231 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17232 else 17233 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17234 fi 17235 # FIXME: find the short name or the path components, as spaces are 17236 # common. (e.g. "Program Files" -> "PROGRA~1") 17237 ;; 17238 esac 17239 17240 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17241 postinstall_cmds='base_file=`basename \${file}`~ 17242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17243 dldir=$destdir/`dirname \$dlpath`~ 17244 test -d \$dldir || mkdir -p \$dldir~ 17245 $install_prog $dir/$dlname \$dldir/$dlname' 17246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17247 dlpath=$dir/\$dldll~ 17248 $RM \$dlpath' 17249 shlibpath_overrides_runpath=yes 17250 dynamic_linker='Win32 link.exe' 17251 ;; 17252 17253 *) 17254 # Assume MSVC wrapper 17255 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17256 dynamic_linker='Win32 ld.exe' 17257 ;; 17258 esac 17259 # FIXME: first we should search . and the directory the executable is in 17260 shlibpath_var=PATH 17261 ;; 17262 17263darwin* | rhapsody*) 17264 dynamic_linker="$host_os dyld" 17265 version_type=darwin 17266 need_lib_prefix=no 17267 need_version=no 17268 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17269 soname_spec='${libname}${release}${major}$shared_ext' 17270 shlibpath_overrides_runpath=yes 17271 shlibpath_var=DYLD_LIBRARY_PATH 17272 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17273 17274 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17275 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17276 ;; 17277 17278dgux*) 17279 version_type=linux # correct to gnu/linux during the next big refactor 17280 need_lib_prefix=no 17281 need_version=no 17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17283 soname_spec='${libname}${release}${shared_ext}$major' 17284 shlibpath_var=LD_LIBRARY_PATH 17285 ;; 17286 17287freebsd* | dragonfly*) 17288 # DragonFly does not have aout. When/if they implement a new 17289 # versioning mechanism, adjust this. 17290 if test -x /usr/bin/objformat; then 17291 objformat=`/usr/bin/objformat` 17292 else 17293 case $host_os in 17294 freebsd[23].*) objformat=aout ;; 17295 *) objformat=elf ;; 17296 esac 17297 fi 17298 version_type=freebsd-$objformat 17299 case $version_type in 17300 freebsd-elf*) 17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17302 need_version=no 17303 need_lib_prefix=no 17304 ;; 17305 freebsd-*) 17306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17307 need_version=yes 17308 ;; 17309 esac 17310 shlibpath_var=LD_LIBRARY_PATH 17311 case $host_os in 17312 freebsd2.*) 17313 shlibpath_overrides_runpath=yes 17314 ;; 17315 freebsd3.[01]* | freebsdelf3.[01]*) 17316 shlibpath_overrides_runpath=yes 17317 hardcode_into_libs=yes 17318 ;; 17319 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17320 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17321 shlibpath_overrides_runpath=no 17322 hardcode_into_libs=yes 17323 ;; 17324 *) # from 4.6 on, and DragonFly 17325 shlibpath_overrides_runpath=yes 17326 hardcode_into_libs=yes 17327 ;; 17328 esac 17329 ;; 17330 17331haiku*) 17332 version_type=linux # correct to gnu/linux during the next big refactor 17333 need_lib_prefix=no 17334 need_version=no 17335 dynamic_linker="$host_os runtime_loader" 17336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17337 soname_spec='${libname}${release}${shared_ext}$major' 17338 shlibpath_var=LIBRARY_PATH 17339 shlibpath_overrides_runpath=yes 17340 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17341 hardcode_into_libs=yes 17342 ;; 17343 17344hpux9* | hpux10* | hpux11*) 17345 # Give a soname corresponding to the major version so that dld.sl refuses to 17346 # link against other versions. 17347 version_type=sunos 17348 need_lib_prefix=no 17349 need_version=no 17350 case $host_cpu in 17351 ia64*) 17352 shrext_cmds='.so' 17353 hardcode_into_libs=yes 17354 dynamic_linker="$host_os dld.so" 17355 shlibpath_var=LD_LIBRARY_PATH 17356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17358 soname_spec='${libname}${release}${shared_ext}$major' 17359 if test "X$HPUX_IA64_MODE" = X32; then 17360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17361 else 17362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17363 fi 17364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17365 ;; 17366 hppa*64*) 17367 shrext_cmds='.sl' 17368 hardcode_into_libs=yes 17369 dynamic_linker="$host_os dld.sl" 17370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17373 soname_spec='${libname}${release}${shared_ext}$major' 17374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17376 ;; 17377 *) 17378 shrext_cmds='.sl' 17379 dynamic_linker="$host_os dld.sl" 17380 shlibpath_var=SHLIB_PATH 17381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17383 soname_spec='${libname}${release}${shared_ext}$major' 17384 ;; 17385 esac 17386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17387 postinstall_cmds='chmod 555 $lib' 17388 # or fails outright, so override atomically: 17389 install_override_mode=555 17390 ;; 17391 17392interix[3-9]*) 17393 version_type=linux # correct to gnu/linux during the next big refactor 17394 need_lib_prefix=no 17395 need_version=no 17396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17397 soname_spec='${libname}${release}${shared_ext}$major' 17398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17399 shlibpath_var=LD_LIBRARY_PATH 17400 shlibpath_overrides_runpath=no 17401 hardcode_into_libs=yes 17402 ;; 17403 17404irix5* | irix6* | nonstopux*) 17405 case $host_os in 17406 nonstopux*) version_type=nonstopux ;; 17407 *) 17408 if test "$lt_cv_prog_gnu_ld" = yes; then 17409 version_type=linux # correct to gnu/linux during the next big refactor 17410 else 17411 version_type=irix 17412 fi ;; 17413 esac 17414 need_lib_prefix=no 17415 need_version=no 17416 soname_spec='${libname}${release}${shared_ext}$major' 17417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17418 case $host_os in 17419 irix5* | nonstopux*) 17420 libsuff= shlibsuff= 17421 ;; 17422 *) 17423 case $LD in # libtool.m4 will add one of these switches to LD 17424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17425 libsuff= shlibsuff= libmagic=32-bit;; 17426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17427 libsuff=32 shlibsuff=N32 libmagic=N32;; 17428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17429 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17430 *) libsuff= shlibsuff= libmagic=never-match;; 17431 esac 17432 ;; 17433 esac 17434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17435 shlibpath_overrides_runpath=no 17436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17438 hardcode_into_libs=yes 17439 ;; 17440 17441# No shared lib support for Linux oldld, aout, or coff. 17442linux*oldld* | linux*aout* | linux*coff*) 17443 dynamic_linker=no 17444 ;; 17445 17446# This must be glibc/ELF. 17447linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17448 version_type=linux # correct to gnu/linux during the next big refactor 17449 need_lib_prefix=no 17450 need_version=no 17451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17452 soname_spec='${libname}${release}${shared_ext}$major' 17453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17454 shlibpath_var=LD_LIBRARY_PATH 17455 shlibpath_overrides_runpath=no 17456 17457 # Some binutils ld are patched to set DT_RUNPATH 17458 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17459 $as_echo_n "(cached) " >&6 17460else 17461 lt_cv_shlibpath_overrides_runpath=no 17462 save_LDFLAGS=$LDFLAGS 17463 save_libdir=$libdir 17464 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17465 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17467/* end confdefs.h. */ 17468 17469int 17470main () 17471{ 17472 17473 ; 17474 return 0; 17475} 17476_ACEOF 17477if ac_fn_c_try_link "$LINENO"; then : 17478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17479 lt_cv_shlibpath_overrides_runpath=yes 17480fi 17481fi 17482rm -f core conftest.err conftest.$ac_objext \ 17483 conftest$ac_exeext conftest.$ac_ext 17484 LDFLAGS=$save_LDFLAGS 17485 libdir=$save_libdir 17486 17487fi 17488 17489 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17490 17491 # This implies no fast_install, which is unacceptable. 17492 # Some rework will be needed to allow for fast_install 17493 # before this can be enabled. 17494 hardcode_into_libs=yes 17495 17496 # Append ld.so.conf contents to the search path 17497 if test -f /etc/ld.so.conf; then 17498 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' ' '` 17499 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17500 fi 17501 17502 # We used to test for /lib/ld.so.1 and disable shared libraries on 17503 # powerpc, because MkLinux only supported shared libraries with the 17504 # GNU dynamic linker. Since this was broken with cross compilers, 17505 # most powerpc-linux boxes support dynamic linking these days and 17506 # people can always --disable-shared, the test was removed, and we 17507 # assume the GNU/Linux dynamic linker is in use. 17508 dynamic_linker='GNU/Linux ld.so' 17509 ;; 17510 17511netbsdelf*-gnu) 17512 version_type=linux 17513 need_lib_prefix=no 17514 need_version=no 17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17516 soname_spec='${libname}${release}${shared_ext}$major' 17517 shlibpath_var=LD_LIBRARY_PATH 17518 shlibpath_overrides_runpath=no 17519 hardcode_into_libs=yes 17520 dynamic_linker='NetBSD ld.elf_so' 17521 ;; 17522 17523netbsd*) 17524 version_type=sunos 17525 need_lib_prefix=no 17526 need_version=no 17527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17530 dynamic_linker='NetBSD (a.out) ld.so' 17531 else 17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17533 soname_spec='${libname}${release}${shared_ext}$major' 17534 dynamic_linker='NetBSD ld.elf_so' 17535 fi 17536 shlibpath_var=LD_LIBRARY_PATH 17537 shlibpath_overrides_runpath=yes 17538 hardcode_into_libs=yes 17539 ;; 17540 17541newsos6) 17542 version_type=linux # correct to gnu/linux during the next big refactor 17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17544 shlibpath_var=LD_LIBRARY_PATH 17545 shlibpath_overrides_runpath=yes 17546 ;; 17547 17548*nto* | *qnx*) 17549 version_type=qnx 17550 need_lib_prefix=no 17551 need_version=no 17552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17553 soname_spec='${libname}${release}${shared_ext}$major' 17554 shlibpath_var=LD_LIBRARY_PATH 17555 shlibpath_overrides_runpath=no 17556 hardcode_into_libs=yes 17557 dynamic_linker='ldqnx.so' 17558 ;; 17559 17560openbsd*) 17561 version_type=sunos 17562 sys_lib_dlsearch_path_spec="/usr/lib" 17563 need_lib_prefix=no 17564 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17565 case $host_os in 17566 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17567 *) need_version=no ;; 17568 esac 17569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17571 shlibpath_var=LD_LIBRARY_PATH 17572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17573 case $host_os in 17574 openbsd2.[89] | openbsd2.[89].*) 17575 shlibpath_overrides_runpath=no 17576 ;; 17577 *) 17578 shlibpath_overrides_runpath=yes 17579 ;; 17580 esac 17581 else 17582 shlibpath_overrides_runpath=yes 17583 fi 17584 ;; 17585 17586os2*) 17587 libname_spec='$name' 17588 shrext_cmds=".dll" 17589 need_lib_prefix=no 17590 library_names_spec='$libname${shared_ext} $libname.a' 17591 dynamic_linker='OS/2 ld.exe' 17592 shlibpath_var=LIBPATH 17593 ;; 17594 17595osf3* | osf4* | osf5*) 17596 version_type=osf 17597 need_lib_prefix=no 17598 need_version=no 17599 soname_spec='${libname}${release}${shared_ext}$major' 17600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17601 shlibpath_var=LD_LIBRARY_PATH 17602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17604 ;; 17605 17606rdos*) 17607 dynamic_linker=no 17608 ;; 17609 17610solaris*) 17611 version_type=linux # correct to gnu/linux during the next big refactor 17612 need_lib_prefix=no 17613 need_version=no 17614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17615 soname_spec='${libname}${release}${shared_ext}$major' 17616 shlibpath_var=LD_LIBRARY_PATH 17617 shlibpath_overrides_runpath=yes 17618 hardcode_into_libs=yes 17619 # ldd complains unless libraries are executable 17620 postinstall_cmds='chmod +x $lib' 17621 ;; 17622 17623sunos4*) 17624 version_type=sunos 17625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17626 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17627 shlibpath_var=LD_LIBRARY_PATH 17628 shlibpath_overrides_runpath=yes 17629 if test "$with_gnu_ld" = yes; then 17630 need_lib_prefix=no 17631 fi 17632 need_version=yes 17633 ;; 17634 17635sysv4 | sysv4.3*) 17636 version_type=linux # correct to gnu/linux during the next big refactor 17637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17638 soname_spec='${libname}${release}${shared_ext}$major' 17639 shlibpath_var=LD_LIBRARY_PATH 17640 case $host_vendor in 17641 sni) 17642 shlibpath_overrides_runpath=no 17643 need_lib_prefix=no 17644 runpath_var=LD_RUN_PATH 17645 ;; 17646 siemens) 17647 need_lib_prefix=no 17648 ;; 17649 motorola) 17650 need_lib_prefix=no 17651 need_version=no 17652 shlibpath_overrides_runpath=no 17653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17654 ;; 17655 esac 17656 ;; 17657 17658sysv4*MP*) 17659 if test -d /usr/nec ;then 17660 version_type=linux # correct to gnu/linux during the next big refactor 17661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17662 soname_spec='$libname${shared_ext}.$major' 17663 shlibpath_var=LD_LIBRARY_PATH 17664 fi 17665 ;; 17666 17667sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17668 version_type=freebsd-elf 17669 need_lib_prefix=no 17670 need_version=no 17671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17672 soname_spec='${libname}${release}${shared_ext}$major' 17673 shlibpath_var=LD_LIBRARY_PATH 17674 shlibpath_overrides_runpath=yes 17675 hardcode_into_libs=yes 17676 if test "$with_gnu_ld" = yes; then 17677 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17678 else 17679 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17680 case $host_os in 17681 sco3.2v5*) 17682 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17683 ;; 17684 esac 17685 fi 17686 sys_lib_dlsearch_path_spec='/usr/lib' 17687 ;; 17688 17689tpf*) 17690 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17691 version_type=linux # correct to gnu/linux during the next big refactor 17692 need_lib_prefix=no 17693 need_version=no 17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17695 shlibpath_var=LD_LIBRARY_PATH 17696 shlibpath_overrides_runpath=no 17697 hardcode_into_libs=yes 17698 ;; 17699 17700uts4*) 17701 version_type=linux # correct to gnu/linux during the next big refactor 17702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17703 soname_spec='${libname}${release}${shared_ext}$major' 17704 shlibpath_var=LD_LIBRARY_PATH 17705 ;; 17706 17707*) 17708 dynamic_linker=no 17709 ;; 17710esac 17711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17712$as_echo "$dynamic_linker" >&6; } 17713test "$dynamic_linker" = no && can_build_shared=no 17714 17715variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17716if test "$GCC" = yes; then 17717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17718fi 17719 17720if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17721 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17722fi 17723if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17724 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17725fi 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17819$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17820hardcode_action= 17821if test -n "$hardcode_libdir_flag_spec" || 17822 test -n "$runpath_var" || 17823 test "X$hardcode_automatic" = "Xyes" ; then 17824 17825 # We can hardcode non-existent directories. 17826 if test "$hardcode_direct" != no && 17827 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17828 # have to relink, otherwise we might link with an installed library 17829 # when we should be linking with a yet-to-be-installed one 17830 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17831 test "$hardcode_minus_L" != no; then 17832 # Linking always hardcodes the temporary library directory. 17833 hardcode_action=relink 17834 else 17835 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17836 hardcode_action=immediate 17837 fi 17838else 17839 # We cannot hardcode anything, or else we can only hardcode existing 17840 # directories. 17841 hardcode_action=unsupported 17842fi 17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17844$as_echo "$hardcode_action" >&6; } 17845 17846if test "$hardcode_action" = relink || 17847 test "$inherit_rpath" = yes; then 17848 # Fast installation is not supported 17849 enable_fast_install=no 17850elif test "$shlibpath_overrides_runpath" = yes || 17851 test "$enable_shared" = no; then 17852 # Fast installation is not necessary 17853 enable_fast_install=needless 17854fi 17855 17856 17857 17858 17859 17860 17861 if test "x$enable_dlopen" != xyes; then 17862 enable_dlopen=unknown 17863 enable_dlopen_self=unknown 17864 enable_dlopen_self_static=unknown 17865else 17866 lt_cv_dlopen=no 17867 lt_cv_dlopen_libs= 17868 17869 case $host_os in 17870 beos*) 17871 lt_cv_dlopen="load_add_on" 17872 lt_cv_dlopen_libs= 17873 lt_cv_dlopen_self=yes 17874 ;; 17875 17876 mingw* | pw32* | cegcc*) 17877 lt_cv_dlopen="LoadLibrary" 17878 lt_cv_dlopen_libs= 17879 ;; 17880 17881 cygwin*) 17882 lt_cv_dlopen="dlopen" 17883 lt_cv_dlopen_libs= 17884 ;; 17885 17886 darwin*) 17887 # if libdl is installed we need to link against it 17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17889$as_echo_n "checking for dlopen in -ldl... " >&6; } 17890if ${ac_cv_lib_dl_dlopen+:} false; then : 17891 $as_echo_n "(cached) " >&6 17892else 17893 ac_check_lib_save_LIBS=$LIBS 17894LIBS="-ldl $LIBS" 17895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17896/* end confdefs.h. */ 17897 17898/* Override any GCC internal prototype to avoid an error. 17899 Use char because int might match the return type of a GCC 17900 builtin and then its argument prototype would still apply. */ 17901#ifdef __cplusplus 17902extern "C" 17903#endif 17904char dlopen (); 17905int 17906main () 17907{ 17908return dlopen (); 17909 ; 17910 return 0; 17911} 17912_ACEOF 17913if ac_fn_c_try_link "$LINENO"; then : 17914 ac_cv_lib_dl_dlopen=yes 17915else 17916 ac_cv_lib_dl_dlopen=no 17917fi 17918rm -f core conftest.err conftest.$ac_objext \ 17919 conftest$ac_exeext conftest.$ac_ext 17920LIBS=$ac_check_lib_save_LIBS 17921fi 17922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17923$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17924if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17926else 17927 17928 lt_cv_dlopen="dyld" 17929 lt_cv_dlopen_libs= 17930 lt_cv_dlopen_self=yes 17931 17932fi 17933 17934 ;; 17935 17936 *) 17937 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17938if test "x$ac_cv_func_shl_load" = xyes; then : 17939 lt_cv_dlopen="shl_load" 17940else 17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17942$as_echo_n "checking for shl_load in -ldld... " >&6; } 17943if ${ac_cv_lib_dld_shl_load+:} false; then : 17944 $as_echo_n "(cached) " >&6 17945else 17946 ac_check_lib_save_LIBS=$LIBS 17947LIBS="-ldld $LIBS" 17948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17949/* end confdefs.h. */ 17950 17951/* Override any GCC internal prototype to avoid an error. 17952 Use char because int might match the return type of a GCC 17953 builtin and then its argument prototype would still apply. */ 17954#ifdef __cplusplus 17955extern "C" 17956#endif 17957char shl_load (); 17958int 17959main () 17960{ 17961return shl_load (); 17962 ; 17963 return 0; 17964} 17965_ACEOF 17966if ac_fn_c_try_link "$LINENO"; then : 17967 ac_cv_lib_dld_shl_load=yes 17968else 17969 ac_cv_lib_dld_shl_load=no 17970fi 17971rm -f core conftest.err conftest.$ac_objext \ 17972 conftest$ac_exeext conftest.$ac_ext 17973LIBS=$ac_check_lib_save_LIBS 17974fi 17975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17976$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17977if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17978 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17979else 17980 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17981if test "x$ac_cv_func_dlopen" = xyes; then : 17982 lt_cv_dlopen="dlopen" 17983else 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17985$as_echo_n "checking for dlopen in -ldl... " >&6; } 17986if ${ac_cv_lib_dl_dlopen+:} false; then : 17987 $as_echo_n "(cached) " >&6 17988else 17989 ac_check_lib_save_LIBS=$LIBS 17990LIBS="-ldl $LIBS" 17991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17992/* end confdefs.h. */ 17993 17994/* Override any GCC internal prototype to avoid an error. 17995 Use char because int might match the return type of a GCC 17996 builtin and then its argument prototype would still apply. */ 17997#ifdef __cplusplus 17998extern "C" 17999#endif 18000char dlopen (); 18001int 18002main () 18003{ 18004return dlopen (); 18005 ; 18006 return 0; 18007} 18008_ACEOF 18009if ac_fn_c_try_link "$LINENO"; then : 18010 ac_cv_lib_dl_dlopen=yes 18011else 18012 ac_cv_lib_dl_dlopen=no 18013fi 18014rm -f core conftest.err conftest.$ac_objext \ 18015 conftest$ac_exeext conftest.$ac_ext 18016LIBS=$ac_check_lib_save_LIBS 18017fi 18018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18019$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18020if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18022else 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18024$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18025if ${ac_cv_lib_svld_dlopen+:} false; then : 18026 $as_echo_n "(cached) " >&6 18027else 18028 ac_check_lib_save_LIBS=$LIBS 18029LIBS="-lsvld $LIBS" 18030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18031/* end confdefs.h. */ 18032 18033/* Override any GCC internal prototype to avoid an error. 18034 Use char because int might match the return type of a GCC 18035 builtin and then its argument prototype would still apply. */ 18036#ifdef __cplusplus 18037extern "C" 18038#endif 18039char dlopen (); 18040int 18041main () 18042{ 18043return dlopen (); 18044 ; 18045 return 0; 18046} 18047_ACEOF 18048if ac_fn_c_try_link "$LINENO"; then : 18049 ac_cv_lib_svld_dlopen=yes 18050else 18051 ac_cv_lib_svld_dlopen=no 18052fi 18053rm -f core conftest.err conftest.$ac_objext \ 18054 conftest$ac_exeext conftest.$ac_ext 18055LIBS=$ac_check_lib_save_LIBS 18056fi 18057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18058$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18059if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18061else 18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18063$as_echo_n "checking for dld_link in -ldld... " >&6; } 18064if ${ac_cv_lib_dld_dld_link+:} false; then : 18065 $as_echo_n "(cached) " >&6 18066else 18067 ac_check_lib_save_LIBS=$LIBS 18068LIBS="-ldld $LIBS" 18069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18070/* end confdefs.h. */ 18071 18072/* Override any GCC internal prototype to avoid an error. 18073 Use char because int might match the return type of a GCC 18074 builtin and then its argument prototype would still apply. */ 18075#ifdef __cplusplus 18076extern "C" 18077#endif 18078char dld_link (); 18079int 18080main () 18081{ 18082return dld_link (); 18083 ; 18084 return 0; 18085} 18086_ACEOF 18087if ac_fn_c_try_link "$LINENO"; then : 18088 ac_cv_lib_dld_dld_link=yes 18089else 18090 ac_cv_lib_dld_dld_link=no 18091fi 18092rm -f core conftest.err conftest.$ac_objext \ 18093 conftest$ac_exeext conftest.$ac_ext 18094LIBS=$ac_check_lib_save_LIBS 18095fi 18096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18097$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18098if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 18100fi 18101 18102 18103fi 18104 18105 18106fi 18107 18108 18109fi 18110 18111 18112fi 18113 18114 18115fi 18116 18117 ;; 18118 esac 18119 18120 if test "x$lt_cv_dlopen" != xno; then 18121 enable_dlopen=yes 18122 else 18123 enable_dlopen=no 18124 fi 18125 18126 case $lt_cv_dlopen in 18127 dlopen) 18128 save_CPPFLAGS="$CPPFLAGS" 18129 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18130 18131 save_LDFLAGS="$LDFLAGS" 18132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18133 18134 save_LIBS="$LIBS" 18135 LIBS="$lt_cv_dlopen_libs $LIBS" 18136 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18138$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18139if ${lt_cv_dlopen_self+:} false; then : 18140 $as_echo_n "(cached) " >&6 18141else 18142 if test "$cross_compiling" = yes; then : 18143 lt_cv_dlopen_self=cross 18144else 18145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18146 lt_status=$lt_dlunknown 18147 cat > conftest.$ac_ext <<_LT_EOF 18148#line $LINENO "configure" 18149#include "confdefs.h" 18150 18151#if HAVE_DLFCN_H 18152#include <dlfcn.h> 18153#endif 18154 18155#include <stdio.h> 18156 18157#ifdef RTLD_GLOBAL 18158# define LT_DLGLOBAL RTLD_GLOBAL 18159#else 18160# ifdef DL_GLOBAL 18161# define LT_DLGLOBAL DL_GLOBAL 18162# else 18163# define LT_DLGLOBAL 0 18164# endif 18165#endif 18166 18167/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18168 find out it does not work in some platform. */ 18169#ifndef LT_DLLAZY_OR_NOW 18170# ifdef RTLD_LAZY 18171# define LT_DLLAZY_OR_NOW RTLD_LAZY 18172# else 18173# ifdef DL_LAZY 18174# define LT_DLLAZY_OR_NOW DL_LAZY 18175# else 18176# ifdef RTLD_NOW 18177# define LT_DLLAZY_OR_NOW RTLD_NOW 18178# else 18179# ifdef DL_NOW 18180# define LT_DLLAZY_OR_NOW DL_NOW 18181# else 18182# define LT_DLLAZY_OR_NOW 0 18183# endif 18184# endif 18185# endif 18186# endif 18187#endif 18188 18189/* When -fvisbility=hidden is used, assume the code has been annotated 18190 correspondingly for the symbols needed. */ 18191#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18192int fnord () __attribute__((visibility("default"))); 18193#endif 18194 18195int fnord () { return 42; } 18196int main () 18197{ 18198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18199 int status = $lt_dlunknown; 18200 18201 if (self) 18202 { 18203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18204 else 18205 { 18206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18207 else puts (dlerror ()); 18208 } 18209 /* dlclose (self); */ 18210 } 18211 else 18212 puts (dlerror ()); 18213 18214 return status; 18215} 18216_LT_EOF 18217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18218 (eval $ac_link) 2>&5 18219 ac_status=$? 18220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18222 (./conftest; exit; ) >&5 2>/dev/null 18223 lt_status=$? 18224 case x$lt_status in 18225 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18226 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18227 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18228 esac 18229 else : 18230 # compilation failed 18231 lt_cv_dlopen_self=no 18232 fi 18233fi 18234rm -fr conftest* 18235 18236 18237fi 18238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18239$as_echo "$lt_cv_dlopen_self" >&6; } 18240 18241 if test "x$lt_cv_dlopen_self" = xyes; then 18242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18244$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18245if ${lt_cv_dlopen_self_static+:} false; then : 18246 $as_echo_n "(cached) " >&6 18247else 18248 if test "$cross_compiling" = yes; then : 18249 lt_cv_dlopen_self_static=cross 18250else 18251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18252 lt_status=$lt_dlunknown 18253 cat > conftest.$ac_ext <<_LT_EOF 18254#line $LINENO "configure" 18255#include "confdefs.h" 18256 18257#if HAVE_DLFCN_H 18258#include <dlfcn.h> 18259#endif 18260 18261#include <stdio.h> 18262 18263#ifdef RTLD_GLOBAL 18264# define LT_DLGLOBAL RTLD_GLOBAL 18265#else 18266# ifdef DL_GLOBAL 18267# define LT_DLGLOBAL DL_GLOBAL 18268# else 18269# define LT_DLGLOBAL 0 18270# endif 18271#endif 18272 18273/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18274 find out it does not work in some platform. */ 18275#ifndef LT_DLLAZY_OR_NOW 18276# ifdef RTLD_LAZY 18277# define LT_DLLAZY_OR_NOW RTLD_LAZY 18278# else 18279# ifdef DL_LAZY 18280# define LT_DLLAZY_OR_NOW DL_LAZY 18281# else 18282# ifdef RTLD_NOW 18283# define LT_DLLAZY_OR_NOW RTLD_NOW 18284# else 18285# ifdef DL_NOW 18286# define LT_DLLAZY_OR_NOW DL_NOW 18287# else 18288# define LT_DLLAZY_OR_NOW 0 18289# endif 18290# endif 18291# endif 18292# endif 18293#endif 18294 18295/* When -fvisbility=hidden is used, assume the code has been annotated 18296 correspondingly for the symbols needed. */ 18297#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18298int fnord () __attribute__((visibility("default"))); 18299#endif 18300 18301int fnord () { return 42; } 18302int main () 18303{ 18304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18305 int status = $lt_dlunknown; 18306 18307 if (self) 18308 { 18309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18310 else 18311 { 18312 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18313 else puts (dlerror ()); 18314 } 18315 /* dlclose (self); */ 18316 } 18317 else 18318 puts (dlerror ()); 18319 18320 return status; 18321} 18322_LT_EOF 18323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18324 (eval $ac_link) 2>&5 18325 ac_status=$? 18326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18327 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18328 (./conftest; exit; ) >&5 2>/dev/null 18329 lt_status=$? 18330 case x$lt_status in 18331 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18332 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18333 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18334 esac 18335 else : 18336 # compilation failed 18337 lt_cv_dlopen_self_static=no 18338 fi 18339fi 18340rm -fr conftest* 18341 18342 18343fi 18344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18345$as_echo "$lt_cv_dlopen_self_static" >&6; } 18346 fi 18347 18348 CPPFLAGS="$save_CPPFLAGS" 18349 LDFLAGS="$save_LDFLAGS" 18350 LIBS="$save_LIBS" 18351 ;; 18352 esac 18353 18354 case $lt_cv_dlopen_self in 18355 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18356 *) enable_dlopen_self=unknown ;; 18357 esac 18358 18359 case $lt_cv_dlopen_self_static in 18360 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18361 *) enable_dlopen_self_static=unknown ;; 18362 esac 18363fi 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381striplib= 18382old_striplib= 18383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18384$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18385if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18387 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18389$as_echo "yes" >&6; } 18390else 18391# FIXME - insert some real tests, host_os isn't really good enough 18392 case $host_os in 18393 darwin*) 18394 if test -n "$STRIP" ; then 18395 striplib="$STRIP -x" 18396 old_striplib="$STRIP -S" 18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18398$as_echo "yes" >&6; } 18399 else 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18401$as_echo "no" >&6; } 18402 fi 18403 ;; 18404 *) 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18406$as_echo "no" >&6; } 18407 ;; 18408 esac 18409fi 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 # Report which library types will actually be built 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18424$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18426$as_echo "$can_build_shared" >&6; } 18427 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18429$as_echo_n "checking whether to build shared libraries... " >&6; } 18430 test "$can_build_shared" = "no" && enable_shared=no 18431 18432 # On AIX, shared libraries and static libraries use the same namespace, and 18433 # are all built from PIC. 18434 case $host_os in 18435 aix3*) 18436 test "$enable_shared" = yes && enable_static=no 18437 if test -n "$RANLIB"; then 18438 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18439 postinstall_cmds='$RANLIB $lib' 18440 fi 18441 ;; 18442 18443 aix[4-9]*) 18444 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 18445 test "$enable_shared" = yes && enable_static=no 18446 fi 18447 ;; 18448 esac 18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18450$as_echo "$enable_shared" >&6; } 18451 18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18453$as_echo_n "checking whether to build static libraries... " >&6; } 18454 # Make sure either enable_shared or enable_static is yes. 18455 test "$enable_shared" = yes || enable_static=yes 18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18457$as_echo "$enable_static" >&6; } 18458 18459 18460 18461 18462fi 18463ac_ext=c 18464ac_cpp='$CPP $CPPFLAGS' 18465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18467ac_compiler_gnu=$ac_cv_c_compiler_gnu 18468 18469CC="$lt_save_CC" 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 ac_config_commands="$ac_config_commands libtool" 18486 18487 18488 18489 18490# Only expand once: 18491 18492 18493# Check whether --enable-largefile was given. 18494if test "${enable_largefile+set}" = set; then : 18495 enableval=$enable_largefile; 18496fi 18497 18498if test "$enable_largefile" != no; then 18499 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 18501$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 18502if ${ac_cv_sys_largefile_CC+:} false; then : 18503 $as_echo_n "(cached) " >&6 18504else 18505 ac_cv_sys_largefile_CC=no 18506 if test "$GCC" != yes; then 18507 ac_save_CC=$CC 18508 while :; do 18509 # IRIX 6.2 and later do not support large files by default, 18510 # so use the C compiler's -n32 option if that helps. 18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18512/* end confdefs.h. */ 18513#include <sys/types.h> 18514 /* Check that off_t can represent 2**63 - 1 correctly. 18515 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18516 since some C++ compilers masquerading as C compilers 18517 incorrectly reject 9223372036854775807. */ 18518#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18520 && LARGE_OFF_T % 2147483647 == 1) 18521 ? 1 : -1]; 18522int 18523main () 18524{ 18525 18526 ; 18527 return 0; 18528} 18529_ACEOF 18530 if ac_fn_c_try_compile "$LINENO"; then : 18531 break 18532fi 18533rm -f core conftest.err conftest.$ac_objext 18534 CC="$CC -n32" 18535 if ac_fn_c_try_compile "$LINENO"; then : 18536 ac_cv_sys_largefile_CC=' -n32'; break 18537fi 18538rm -f core conftest.err conftest.$ac_objext 18539 break 18540 done 18541 CC=$ac_save_CC 18542 rm -f conftest.$ac_ext 18543 fi 18544fi 18545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18546$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18547 if test "$ac_cv_sys_largefile_CC" != no; then 18548 CC=$CC$ac_cv_sys_largefile_CC 18549 fi 18550 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18552$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18553if ${ac_cv_sys_file_offset_bits+:} false; then : 18554 $as_echo_n "(cached) " >&6 18555else 18556 while :; do 18557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18558/* end confdefs.h. */ 18559#include <sys/types.h> 18560 /* Check that off_t can represent 2**63 - 1 correctly. 18561 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18562 since some C++ compilers masquerading as C compilers 18563 incorrectly reject 9223372036854775807. */ 18564#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18566 && LARGE_OFF_T % 2147483647 == 1) 18567 ? 1 : -1]; 18568int 18569main () 18570{ 18571 18572 ; 18573 return 0; 18574} 18575_ACEOF 18576if ac_fn_c_try_compile "$LINENO"; then : 18577 ac_cv_sys_file_offset_bits=no; break 18578fi 18579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18581/* end confdefs.h. */ 18582#define _FILE_OFFSET_BITS 64 18583#include <sys/types.h> 18584 /* Check that off_t can represent 2**63 - 1 correctly. 18585 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18586 since some C++ compilers masquerading as C compilers 18587 incorrectly reject 9223372036854775807. */ 18588#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18590 && LARGE_OFF_T % 2147483647 == 1) 18591 ? 1 : -1]; 18592int 18593main () 18594{ 18595 18596 ; 18597 return 0; 18598} 18599_ACEOF 18600if ac_fn_c_try_compile "$LINENO"; then : 18601 ac_cv_sys_file_offset_bits=64; break 18602fi 18603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18604 ac_cv_sys_file_offset_bits=unknown 18605 break 18606done 18607fi 18608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18609$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18610case $ac_cv_sys_file_offset_bits in #( 18611 no | unknown) ;; 18612 *) 18613cat >>confdefs.h <<_ACEOF 18614#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18615_ACEOF 18616;; 18617esac 18618rm -rf conftest* 18619 if test $ac_cv_sys_file_offset_bits = unknown; then 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18621$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18622if ${ac_cv_sys_large_files+:} false; then : 18623 $as_echo_n "(cached) " >&6 18624else 18625 while :; do 18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18627/* end confdefs.h. */ 18628#include <sys/types.h> 18629 /* Check that off_t can represent 2**63 - 1 correctly. 18630 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18631 since some C++ compilers masquerading as C compilers 18632 incorrectly reject 9223372036854775807. */ 18633#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18635 && LARGE_OFF_T % 2147483647 == 1) 18636 ? 1 : -1]; 18637int 18638main () 18639{ 18640 18641 ; 18642 return 0; 18643} 18644_ACEOF 18645if ac_fn_c_try_compile "$LINENO"; then : 18646 ac_cv_sys_large_files=no; break 18647fi 18648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18650/* end confdefs.h. */ 18651#define _LARGE_FILES 1 18652#include <sys/types.h> 18653 /* Check that off_t can represent 2**63 - 1 correctly. 18654 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18655 since some C++ compilers masquerading as C compilers 18656 incorrectly reject 9223372036854775807. */ 18657#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 18658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18659 && LARGE_OFF_T % 2147483647 == 1) 18660 ? 1 : -1]; 18661int 18662main () 18663{ 18664 18665 ; 18666 return 0; 18667} 18668_ACEOF 18669if ac_fn_c_try_compile "$LINENO"; then : 18670 ac_cv_sys_large_files=1; break 18671fi 18672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18673 ac_cv_sys_large_files=unknown 18674 break 18675done 18676fi 18677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18678$as_echo "$ac_cv_sys_large_files" >&6; } 18679case $ac_cv_sys_large_files in #( 18680 no | unknown) ;; 18681 *) 18682cat >>confdefs.h <<_ACEOF 18683#define _LARGE_FILES $ac_cv_sys_large_files 18684_ACEOF 18685;; 18686esac 18687rm -rf conftest* 18688 fi 18689 18690 18691fi 18692 18693 18694# Check for common libc routines redefined by os.h 18695for ac_func in strlcpy strlcat strndup 18696do : 18697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18698ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18699if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18700 cat >>confdefs.h <<_ACEOF 18701#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18702_ACEOF 18703 18704fi 18705done 18706 18707 18708# Platform specific settings 18709case $host_os in 18710 *linux*) 18711 backlight_helper=yes 18712 ;; 18713esac 18714 18715# Check whether --enable-backlight was given. 18716if test "${enable_backlight+set}" = set; then : 18717 enableval=$enable_backlight; backlight="$enableval" 18718else 18719 backlight="yes" 18720fi 18721 18722if test "x$backlight" = "xyes"; then 18723 18724$as_echo "#define USE_BACKLIGHT 1" >>confdefs.h 18725 18726fi 18727 18728# Check whether --enable-backlight-helper was given. 18729if test "${enable_backlight_helper+set}" = set; then : 18730 enableval=$enable_backlight_helper; backlight_helper="$enableval" 18731fi 18732 18733 if test "x$backlight" = "xyes" -a "x$backlight_helper" = "xyes"; then 18734 BUILD_BACKLIGHT_HELPER_TRUE= 18735 BUILD_BACKLIGHT_HELPER_FALSE='#' 18736else 18737 BUILD_BACKLIGHT_HELPER_TRUE='#' 18738 BUILD_BACKLIGHT_HELPER_FALSE= 18739fi 18740 18741if test "x$backlight_helper" = "xyes"; then 18742 tools_msg="$tools_msg xf86-video-intel-backlight-helper" 18743 18744$as_echo "#define USE_BACKLIGHT_HELPER 1" >>confdefs.h 18745 18746fi 18747 18748# Are we in a git checkout? 18749dot_git=no 18750if test -e .git; then 18751 18752$as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h 18753 18754 dot_git=yes 18755fi 18756 if test "x$dot_git" = "xyes"; then 18757 HAVE_DOT_GIT_TRUE= 18758 HAVE_DOT_GIT_FALSE='#' 18759else 18760 HAVE_DOT_GIT_TRUE='#' 18761 HAVE_DOT_GIT_FALSE= 18762fi 18763 18764 18765# If so, we include the git description in our logs for sanity checking. 18766# 18767# However, for people not running their own drivers this is just noise. 18768# So we copy the xserver's builderstring idiom to allow for this to be 18769# overridden and perhaps replaced with something more useful. 18770 18771# Check whether --with-builderstring was given. 18772if test "${with_builderstring+set}" = set; then : 18773 withval=$with_builderstring; BUILDERSTRING="$withval" 18774else 18775 BUILDERSTRING="x-magic-git-describe" 18776fi 18777 18778 18779if test "x$BUILDERSTRING" = "xx-magic-git-describe" -a "x$dot_git" = "xyes"; then 18780 18781$as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h 18782 18783else 18784 if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != "xno" -a "x$BUILDERSTRING" != xx-magic-git-describe; then 18785 18786cat >>confdefs.h <<_ACEOF 18787#define BUILDER_DESCRIPTION "$BUILDERSTRING" 18788_ACEOF 18789 18790 fi 18791fi 18792 18793# Check whether --enable-gen4asm was given. 18794if test "${enable_gen4asm+set}" = set; then : 18795 enableval=$enable_gen4asm; ASM="$enableval" 18796else 18797 ASM="no" 18798fi 18799 18800 18801gen4asm=no 18802if test "x$ASM" != "xno"; then 18803 18804# Check whether --with-gen4asm was given. 18805if test "${with_gen4asm+set}" = set; then : 18806 withval=$with_gen4asm; path="$withval" 18807else 18808 path="" 18809fi 18810 18811 if test -n "$path" ; then 18812 gen4asm=yes 18813 else 18814 18815pkg_failed=no 18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5 18817$as_echo_n "checking for GEN4ASM... " >&6; } 18818 18819if test -n "$GEN4ASM_CFLAGS"; then 18820 pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS" 18821 elif test -n "$PKG_CONFIG"; then 18822 if test -n "$PKG_CONFIG" && \ 18823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5 18824 ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5 18825 ac_status=$? 18826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18827 test $ac_status = 0; }; then 18828 pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null` 18829 test "x$?" != "x0" && pkg_failed=yes 18830else 18831 pkg_failed=yes 18832fi 18833 else 18834 pkg_failed=untried 18835fi 18836if test -n "$GEN4ASM_LIBS"; then 18837 pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS" 18838 elif test -n "$PKG_CONFIG"; then 18839 if test -n "$PKG_CONFIG" && \ 18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5 18841 ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5 18842 ac_status=$? 18843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18844 test $ac_status = 0; }; then 18845 pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null` 18846 test "x$?" != "x0" && pkg_failed=yes 18847else 18848 pkg_failed=yes 18849fi 18850 else 18851 pkg_failed=untried 18852fi 18853 18854 18855 18856if test $pkg_failed = yes; then 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18858$as_echo "no" >&6; } 18859 18860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18861 _pkg_short_errors_supported=yes 18862else 18863 _pkg_short_errors_supported=no 18864fi 18865 if test $_pkg_short_errors_supported = yes; then 18866 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1` 18867 else 18868 GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1` 18869 fi 18870 # Put the nasty error message in config.log where it belongs 18871 echo "$GEN4ASM_PKG_ERRORS" >&5 18872 18873 gen4asm=no 18874elif test $pkg_failed = untried; then 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18876$as_echo "no" >&6; } 18877 gen4asm=no 18878else 18879 GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS 18880 GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18882$as_echo "yes" >&6; } 18883 gen4asm=yes 18884fi 18885 if test "x$ASM" = "xyes" -a "x$gen4asm" != "xyes"; then 18886 as_fn_error $? "intel-gen4asm support requested but not found" "$LINENO" 5 18887 fi 18888 fi 18889 if test "x$gen4asm" = "xyes"; then 18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to use for intel-gen4asm" >&5 18891$as_echo_n "checking path to use for intel-gen4asm... " >&6; } 18892 if test -n "$path" ; then 18893 INTEL_GEN4ASM="$path" 18894 else 18895 INTEL_GEN4ASM="`pkg-config intel-gen4asm --variable=exec_prefix`/bin/intel-gen4asm" 18896 fi 18897 if ! test -e "$INTEL_GEN4ASM"; then 18898 as_fn_error $? "intel-gen4asm enabled, but not found. Tried '$INTEL_GEN4ASM'." "$LINENO" 5 18899 fi 18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTEL_GEN4ASM" >&5 18901$as_echo "$INTEL_GEN4ASM" >&6; } 18902 18903 fi 18904fi 18905 if test "x$gen4asm" = "xyes"; then 18906 HAVE_GEN4ASM_TRUE= 18907 HAVE_GEN4ASM_FALSE='#' 18908else 18909 HAVE_GEN4ASM_TRUE='#' 18910 HAVE_GEN4ASM_FALSE= 18911fi 18912 18913 18914# Check for atomic intrinsics 18915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5 18916$as_echo_n "checking for native atomic primitives... " >&6; } 18917if ${intel_cv_atomic_primitives+:} false; then : 18918 $as_echo_n "(cached) " >&6 18919else 18920 18921 intel_cv_atomic_primitives="none" 18922 18923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18924/* end confdefs.h. */ 18925 18926int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); } 18927int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); } 18928 18929int 18930main () 18931{ 18932 18933 ; 18934 return 0; 18935} 18936_ACEOF 18937if ac_fn_c_try_link "$LINENO"; then : 18938 intel_cv_atomic_primitives="Intel" 18939fi 18940rm -f core conftest.err conftest.$ac_objext \ 18941 conftest$ac_exeext conftest.$ac_ext 18942 18943 if test "x$intel_cv_atomic_primitives" = "xnone"; then 18944 ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default" 18945if test "x$ac_cv_header_atomic_ops_h" = xyes; then : 18946 intel_cv_atomic_primitives="libatomic-ops" 18947fi 18948 18949 18950 fi 18951 18952 # atomic functions defined in <atomic.h> & libc on Solaris 18953 if test "x$intel_cv_atomic_primitives" = "xnone"; then 18954 ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint" 18955if test "x$ac_cv_func_atomic_cas_uint" = xyes; then : 18956 intel_cv_atomic_primitives="Solaris" 18957fi 18958 18959 fi 18960 18961 18962fi 18963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_cv_atomic_primitives" >&5 18964$as_echo "$intel_cv_atomic_primitives" >&6; } 18965if test "x$intel_cv_atomic_primitives" = "xIntel"; then 18966 18967$as_echo "#define HAVE_ATOMIC_PRIMITIVES 1" >>confdefs.h 18968 18969fi 18970if test "x$intel_cv_atomic_primitives" = "xlibatomic-ops"; then 18971 18972$as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h 18973 18974fi 18975 18976if test "x$intel_cv_atomic_primitives" = "xnone"; then 18977 as_fn_error $? "xf86-video-intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." "$LINENO" 5 18978fi 18979 18980# Check whether --enable-udev was given. 18981if test "${enable_udev+set}" = set; then : 18982 enableval=$enable_udev; UDEV="$enableval" 18983else 18984 UDEV=auto 18985fi 18986 18987 18988if test "x$UDEV" != "xno"; then 18989 18990pkg_failed=no 18991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 18992$as_echo_n "checking for UDEV... " >&6; } 18993 18994if test -n "$UDEV_CFLAGS"; then 18995 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 18996 elif test -n "$PKG_CONFIG"; then 18997 if test -n "$PKG_CONFIG" && \ 18998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 18999 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19000 ac_status=$? 19001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19002 test $ac_status = 0; }; then 19003 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 19004 test "x$?" != "x0" && pkg_failed=yes 19005else 19006 pkg_failed=yes 19007fi 19008 else 19009 pkg_failed=untried 19010fi 19011if test -n "$UDEV_LIBS"; then 19012 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 19013 elif test -n "$PKG_CONFIG"; then 19014 if test -n "$PKG_CONFIG" && \ 19015 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 19016 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 19017 ac_status=$? 19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19019 test $ac_status = 0; }; then 19020 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 19021 test "x$?" != "x0" && pkg_failed=yes 19022else 19023 pkg_failed=yes 19024fi 19025 else 19026 pkg_failed=untried 19027fi 19028 19029 19030 19031if test $pkg_failed = yes; then 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19033$as_echo "no" >&6; } 19034 19035if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19036 _pkg_short_errors_supported=yes 19037else 19038 _pkg_short_errors_supported=no 19039fi 19040 if test $_pkg_short_errors_supported = yes; then 19041 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 19042 else 19043 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 19044 fi 19045 # Put the nasty error message in config.log where it belongs 19046 echo "$UDEV_PKG_ERRORS" >&5 19047 19048 udev="no" 19049elif test $pkg_failed = untried; then 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19051$as_echo "no" >&6; } 19052 udev="no" 19053else 19054 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 19055 UDEV_LIBS=$pkg_cv_UDEV_LIBS 19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19057$as_echo "yes" >&6; } 19058 udev="yes" 19059fi 19060 if test "x$UDEV" = "xyes" -a "x$udev" != "xyes"; then 19061 as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5 19062 fi 19063 if test "x$udev" = "xyes"; then 19064 19065$as_echo "#define HAVE_UDEV 1" >>confdefs.h 19066 19067 fi 19068fi 19069 19070 19071pkg_failed=no 19072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 19073$as_echo_n "checking for X11... " >&6; } 19074 19075if test -n "$X11_CFLAGS"; then 19076 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 19077 elif test -n "$PKG_CONFIG"; then 19078 if test -n "$PKG_CONFIG" && \ 19079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5 19080 ($PKG_CONFIG --exists --print-errors "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5 19081 ac_status=$? 19082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19083 test $ac_status = 0; }; then 19084 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null` 19085 test "x$?" != "x0" && pkg_failed=yes 19086else 19087 pkg_failed=yes 19088fi 19089 else 19090 pkg_failed=untried 19091fi 19092if test -n "$X11_LIBS"; then 19093 pkg_cv_X11_LIBS="$X11_LIBS" 19094 elif test -n "$PKG_CONFIG"; then 19095 if test -n "$PKG_CONFIG" && \ 19096 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng\""; } >&5 19097 ($PKG_CONFIG --exists --print-errors "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng") 2>&5 19098 ac_status=$? 19099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19100 test $ac_status = 0; }; then 19101 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>/dev/null` 19102 test "x$?" != "x0" && pkg_failed=yes 19103else 19104 pkg_failed=yes 19105fi 19106 else 19107 pkg_failed=untried 19108fi 19109 19110 19111 19112if test $pkg_failed = yes; then 19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19114$as_echo "no" >&6; } 19115 19116if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19117 _pkg_short_errors_supported=yes 19118else 19119 _pkg_short_errors_supported=no 19120fi 19121 if test $_pkg_short_errors_supported = yes; then 19122 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1` 19123 else 19124 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xrender xrandr xext xfixes cairo cairo-xlib-xrender pixman-1 libpng" 2>&1` 19125 fi 19126 # Put the nasty error message in config.log where it belongs 19127 echo "$X11_PKG_ERRORS" >&5 19128 19129 x11="no" 19130elif test $pkg_failed = untried; then 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19132$as_echo "no" >&6; } 19133 x11="no" 19134else 19135 X11_CFLAGS=$pkg_cv_X11_CFLAGS 19136 X11_LIBS=$pkg_cv_X11_LIBS 19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19138$as_echo "yes" >&6; } 19139 x11="yes" 19140fi 19141 if test "x$x11" = "xyes"; then 19142 HAVE_X11_TRUE= 19143 HAVE_X11_FALSE='#' 19144else 19145 HAVE_X11_TRUE='#' 19146 HAVE_X11_FALSE= 19147fi 19148 19149 19150cpuid="yes" 19151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19152/* end confdefs.h. */ 19153 19154 #include <cpuid.h> 19155 #include <stddef.h> 19156 19157int 19158main () 19159{ 19160 19161 int eax, ebx, ecx, edx; 19162 if (__get_cpuid_max(0, NULL) < 4) 19163 return 0; 19164 __cpuid_count(4, 0, eax, ebx, ecx, edx); 19165 19166 ; 19167 return 0; 19168} 19169_ACEOF 19170if ac_fn_c_try_link "$LINENO"; then : 19171 cpuid="yes" 19172else 19173 cpuid="no" 19174 19175fi 19176rm -f core conftest.err conftest.$ac_objext \ 19177 conftest$ac_exeext conftest.$ac_ext 19178if test "x$cpuid" = "xyes"; then 19179 19180$as_echo "#define HAVE_CPUID_H 1" >>confdefs.h 19181 19182fi 19183 19184shm=yes 19185for ac_header in sys/ipc.h sys/ipc.h 19186do : 19187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19188ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19189if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19190 cat >>confdefs.h <<_ACEOF 19191#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19192_ACEOF 19193 19194else 19195 shm="no" 19196fi 19197 19198done 19199 19200for ac_header in X11/extensions/XShm.h 19201do : 19202 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XShm.h" "ac_cv_header_X11_extensions_XShm_h" " 19203#include <X11/Xlibint.h> 19204#include <X11/Xproto.h> 19205 19206" 19207if test "x$ac_cv_header_X11_extensions_XShm_h" = xyes; then : 19208 cat >>confdefs.h <<_ACEOF 19209#define HAVE_X11_EXTENSIONS_XSHM_H 1 19210_ACEOF 19211 19212else 19213 shm="no" 19214fi 19215 19216done 19217 19218for ac_header in X11/extensions/shmproto.h X11/extensions/shmstr.h 19219do : 19220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19221ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 19222#include <X11/Xlibint.h> 19223#include <X11/Xproto.h> 19224 19225" 19226if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19227 cat >>confdefs.h <<_ACEOF 19228#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19229_ACEOF 19230 19231fi 19232 19233done 19234 19235if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_X11_extensions_shmstr_h" != "xyes"; then 19236 shm="no" 19237fi 19238 19239if test "x$shm" = "xyes"; then 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shmctl IPC_RMID allows subsequent attaches" >&5 19241$as_echo_n "checking whether shmctl IPC_RMID allows subsequent attaches... " >&6; } 19242 if test "$cross_compiling" = yes; then : 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5 19244$as_echo "assuming no" >&6; } 19245else 19246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19247/* end confdefs.h. */ 19248 19249 #include <sys/types.h> 19250 #include <sys/ipc.h> 19251 #include <sys/shm.h> 19252 int main() 19253 { 19254 char *shmaddr; 19255 int id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600); 19256 if (id == -1) return 2; 19257 shmaddr = shmat (id, 0, 0); 19258 shmctl (id, IPC_RMID, 0); 19259 if ((char*) shmat (id, 0, 0) == (char*) -1) { 19260 shmdt (shmaddr); 19261 return 1; 19262 } 19263 shmdt (shmaddr); 19264 shmdt (shmaddr); 19265 return 0; 19266 } 19267 19268_ACEOF 19269if ac_fn_c_try_run "$LINENO"; then : 19270 19271$as_echo "#define IPC_RMID_DEFERRED_RELEASE 1" >>confdefs.h 19272 19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19274$as_echo "yes" >&6; } 19275else 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19277$as_echo "no" >&6; } 19278fi 19279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19280 conftest.$ac_objext conftest.beam conftest.$ac_ext 19281fi 19282 19283 19284$as_echo "#define HAVE_MIT_SHM 1" >>confdefs.h 19285 19286fi 19287 19288 19289pkg_failed=no 19290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11_DRI3" >&5 19291$as_echo_n "checking for X11_DRI3... " >&6; } 19292 19293if test -n "$X11_DRI3_CFLAGS"; then 19294 pkg_cv_X11_DRI3_CFLAGS="$X11_DRI3_CFLAGS" 19295 elif test -n "$PKG_CONFIG"; then 19296 if test -n "$PKG_CONFIG" && \ 19297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm\""; } >&5 19298 ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm") 2>&5 19299 ac_status=$? 19300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19301 test $ac_status = 0; }; then 19302 pkg_cv_X11_DRI3_CFLAGS=`$PKG_CONFIG --cflags "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>/dev/null` 19303 test "x$?" != "x0" && pkg_failed=yes 19304else 19305 pkg_failed=yes 19306fi 19307 else 19308 pkg_failed=untried 19309fi 19310if test -n "$X11_DRI3_LIBS"; then 19311 pkg_cv_X11_DRI3_LIBS="$X11_DRI3_LIBS" 19312 elif test -n "$PKG_CONFIG"; then 19313 if test -n "$PKG_CONFIG" && \ 19314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm\""; } >&5 19315 ($PKG_CONFIG --exists --print-errors "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm") 2>&5 19316 ac_status=$? 19317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19318 test $ac_status = 0; }; then 19319 pkg_cv_X11_DRI3_LIBS=`$PKG_CONFIG --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>/dev/null` 19320 test "x$?" != "x0" && pkg_failed=yes 19321else 19322 pkg_failed=yes 19323fi 19324 else 19325 pkg_failed=untried 19326fi 19327 19328 19329 19330if test $pkg_failed = yes; then 19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19332$as_echo "no" >&6; } 19333 19334if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19335 _pkg_short_errors_supported=yes 19336else 19337 _pkg_short_errors_supported=no 19338fi 19339 if test $_pkg_short_errors_supported = yes; then 19340 X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>&1` 19341 else 19342 X11_DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-dri3 xcb-sync xcb-present x11-xcb xshmfence x11 xrender xext libdrm" 2>&1` 19343 fi 19344 # Put the nasty error message in config.log where it belongs 19345 echo "$X11_DRI3_PKG_ERRORS" >&5 19346 19347 x11_dri3="no" 19348elif test $pkg_failed = untried; then 19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19350$as_echo "no" >&6; } 19351 x11_dri3="no" 19352else 19353 X11_DRI3_CFLAGS=$pkg_cv_X11_DRI3_CFLAGS 19354 X11_DRI3_LIBS=$pkg_cv_X11_DRI3_LIBS 19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19356$as_echo "yes" >&6; } 19357 x11_dri3="yes" 19358fi 19359 if test "x$x11_dri3" = "xyes" -a "x$shm" = "xyes"; then 19360 X11_DRI3_TRUE= 19361 X11_DRI3_FALSE='#' 19362else 19363 X11_DRI3_TRUE='#' 19364 X11_DRI3_FALSE= 19365fi 19366 19367 if test "x$shm" = "xyes"; then 19368 X11_SHM_TRUE= 19369 X11_SHM_FALSE='#' 19370else 19371 X11_SHM_TRUE='#' 19372 X11_SHM_FALSE= 19373fi 19374 19375 19376# Check whether --enable-tools was given. 19377if test "${enable_tools+set}" = set; then : 19378 enableval=$enable_tools; tools="$enableval" 19379else 19380 tools="auto" 19381fi 19382 19383if test "x$shm" != "xyes"; then 19384 if test "x$tools" = "xyes"; then 19385 as_fn_error $? "Incomplete requirements for extra tools, X11 MIT-SHM extension required" "$LINENO" 5 19386 fi 19387 tools="no" 19388fi 19389if test "x$tools" != "xno"; then 19390 ivo_requires="xrandr xdamage xfixes xcursor xtst xrender xext x11 pixman-1" 19391 extra_cflags="" 19392 19393 ignore="xinerama" 19394 19395pkg_failed=no 19396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5 19397$as_echo_n "checking for IVO_EXTRA... " >&6; } 19398 19399if test -n "$IVO_EXTRA_CFLAGS"; then 19400 pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS" 19401 elif test -n "$PKG_CONFIG"; then 19402 if test -n "$PKG_CONFIG" && \ 19403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 19404 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 19405 ac_status=$? 19406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19407 test $ac_status = 0; }; then 19408 pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null` 19409 test "x$?" != "x0" && pkg_failed=yes 19410else 19411 pkg_failed=yes 19412fi 19413 else 19414 pkg_failed=untried 19415fi 19416if test -n "$IVO_EXTRA_LIBS"; then 19417 pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS" 19418 elif test -n "$PKG_CONFIG"; then 19419 if test -n "$PKG_CONFIG" && \ 19420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 19421 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 19422 ac_status=$? 19423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19424 test $ac_status = 0; }; then 19425 pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null` 19426 test "x$?" != "x0" && pkg_failed=yes 19427else 19428 pkg_failed=yes 19429fi 19430 else 19431 pkg_failed=untried 19432fi 19433 19434 19435 19436if test $pkg_failed = yes; then 19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19438$as_echo "no" >&6; } 19439 19440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19441 _pkg_short_errors_supported=yes 19442else 19443 _pkg_short_errors_supported=no 19444fi 19445 if test $_pkg_short_errors_supported = yes; then 19446 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1` 19447 else 19448 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1` 19449 fi 19450 # Put the nasty error message in config.log where it belongs 19451 echo "$IVO_EXTRA_PKG_ERRORS" >&5 19452 19453 ignore="" 19454elif test $pkg_failed = untried; then 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19456$as_echo "no" >&6; } 19457 ignore="" 19458else 19459 IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS 19460 IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS 19461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19462$as_echo "yes" >&6; } 19463 for ac_header in X11/extensions/Xinerama.h 19464do : 19465 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlibint.h> 19466 #include <X11/Xproto.h> 19467 19468" 19469if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then : 19470 cat >>confdefs.h <<_ACEOF 19471#define HAVE_X11_EXTENSIONS_XINERAMA_H 1 19472_ACEOF 19473 ivo_requires="$ignore $ivo_requires" 19474fi 19475 19476done 19477 19478fi 19479 19480 ignore="xcb-dri3 xcb-sync x11-xcb xshmfence x11" 19481 19482pkg_failed=no 19483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO_EXTRA" >&5 19484$as_echo_n "checking for IVO_EXTRA... " >&6; } 19485 19486if test -n "$IVO_EXTRA_CFLAGS"; then 19487 pkg_cv_IVO_EXTRA_CFLAGS="$IVO_EXTRA_CFLAGS" 19488 elif test -n "$PKG_CONFIG"; then 19489 if test -n "$PKG_CONFIG" && \ 19490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 19491 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 19492 ac_status=$? 19493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19494 test $ac_status = 0; }; then 19495 pkg_cv_IVO_EXTRA_CFLAGS=`$PKG_CONFIG --cflags "$ignore" 2>/dev/null` 19496 test "x$?" != "x0" && pkg_failed=yes 19497else 19498 pkg_failed=yes 19499fi 19500 else 19501 pkg_failed=untried 19502fi 19503if test -n "$IVO_EXTRA_LIBS"; then 19504 pkg_cv_IVO_EXTRA_LIBS="$IVO_EXTRA_LIBS" 19505 elif test -n "$PKG_CONFIG"; then 19506 if test -n "$PKG_CONFIG" && \ 19507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ignore\""; } >&5 19508 ($PKG_CONFIG --exists --print-errors "$ignore") 2>&5 19509 ac_status=$? 19510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19511 test $ac_status = 0; }; then 19512 pkg_cv_IVO_EXTRA_LIBS=`$PKG_CONFIG --libs "$ignore" 2>/dev/null` 19513 test "x$?" != "x0" && pkg_failed=yes 19514else 19515 pkg_failed=yes 19516fi 19517 else 19518 pkg_failed=untried 19519fi 19520 19521 19522 19523if test $pkg_failed = yes; then 19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19525$as_echo "no" >&6; } 19526 19527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19528 _pkg_short_errors_supported=yes 19529else 19530 _pkg_short_errors_supported=no 19531fi 19532 if test $_pkg_short_errors_supported = yes; then 19533 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ignore" 2>&1` 19534 else 19535 IVO_EXTRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ignore" 2>&1` 19536 fi 19537 # Put the nasty error message in config.log where it belongs 19538 echo "$IVO_EXTRA_PKG_ERRORS" >&5 19539 19540 ignore="" 19541elif test $pkg_failed = untried; then 19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19543$as_echo "no" >&6; } 19544 ignore="" 19545else 19546 IVO_EXTRA_CFLAGS=$pkg_cv_IVO_EXTRA_CFLAGS 19547 IVO_EXTRA_LIBS=$pkg_cv_IVO_EXTRA_LIBS 19548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19549$as_echo "yes" >&6; } 19550 ivo_requires="$ivo_requires $ignore"; extra_cflags="-DDRI3" 19551fi 19552 19553 19554pkg_failed=no 19555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO" >&5 19556$as_echo_n "checking for IVO... " >&6; } 19557 19558if test -n "$IVO_CFLAGS"; then 19559 pkg_cv_IVO_CFLAGS="$IVO_CFLAGS" 19560 elif test -n "$PKG_CONFIG"; then 19561 if test -n "$PKG_CONFIG" && \ 19562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5 19563 ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5 19564 ac_status=$? 19565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19566 test $ac_status = 0; }; then 19567 pkg_cv_IVO_CFLAGS=`$PKG_CONFIG --cflags "$ivo_requires" 2>/dev/null` 19568 test "x$?" != "x0" && pkg_failed=yes 19569else 19570 pkg_failed=yes 19571fi 19572 else 19573 pkg_failed=untried 19574fi 19575if test -n "$IVO_LIBS"; then 19576 pkg_cv_IVO_LIBS="$IVO_LIBS" 19577 elif test -n "$PKG_CONFIG"; then 19578 if test -n "$PKG_CONFIG" && \ 19579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$ivo_requires\""; } >&5 19580 ($PKG_CONFIG --exists --print-errors "$ivo_requires") 2>&5 19581 ac_status=$? 19582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19583 test $ac_status = 0; }; then 19584 pkg_cv_IVO_LIBS=`$PKG_CONFIG --libs "$ivo_requires" 2>/dev/null` 19585 test "x$?" != "x0" && pkg_failed=yes 19586else 19587 pkg_failed=yes 19588fi 19589 else 19590 pkg_failed=untried 19591fi 19592 19593 19594 19595if test $pkg_failed = yes; then 19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19597$as_echo "no" >&6; } 19598 19599if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19600 _pkg_short_errors_supported=yes 19601else 19602 _pkg_short_errors_supported=no 19603fi 19604 if test $_pkg_short_errors_supported = yes; then 19605 IVO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$ivo_requires" 2>&1` 19606 else 19607 IVO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$ivo_requires" 2>&1` 19608 fi 19609 # Put the nasty error message in config.log where it belongs 19610 echo "$IVO_PKG_ERRORS" >&5 19611 19612 ivo="no" 19613elif test $pkg_failed = untried; then 19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19615$as_echo "no" >&6; } 19616 ivo="no" 19617else 19618 IVO_CFLAGS=$pkg_cv_IVO_CFLAGS 19619 IVO_LIBS=$pkg_cv_IVO_LIBS 19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19621$as_echo "yes" >&6; } 19622 ivo="yes" 19623fi 19624 ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" 19625if test "x$ac_cv_header_sys_timerfd_h" = xyes; then : 19626 19627else 19628 ivo="no" 19629fi 19630 19631 19632 if test "x$ivo" = "xno"; then 19633 if test "x$tools" = "xyes"; then 19634 as_fn_error $? "Incomplete requirements for intel-virtual-output, requires $ivo_requires" "$LINENO" 5 19635 fi 19636 tools="no" 19637 fi 19638 19639 IVO_CFLAGS="$IVO_CFLAGS $extra_cflags" 19640fi 19641if test "x$tools" != "xno"; then 19642 tools_msg="$tools_msg intel-virtual-output" 19643fi 19644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build additional tools" >&5 19645$as_echo_n "checking whether to build additional tools... " >&6; } 19646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tools" >&5 19647$as_echo "$tools" >&6; } 19648 if test "x$tools" != "xno"; then 19649 BUILD_TOOLS_TRUE= 19650 BUILD_TOOLS_FALSE='#' 19651else 19652 BUILD_TOOLS_TRUE='#' 19653 BUILD_TOOLS_FALSE= 19654fi 19655 19656 19657# Define a configure option for an alternate module directory 19658 19659# Check whether --with-xorg-module-dir was given. 19660if test "${with_xorg_module_dir+set}" = set; then : 19661 withval=$with_xorg_module_dir; moduledir="$withval" 19662else 19663 moduledir="$libdir/xorg/modules" 19664fi 19665 19666 19667# Check whether --enable-dri was given. 19668if test "${enable_dri+set}" = set; then : 19669 enableval=$enable_dri; DRI=$enableval 19670else 19671 DRI=auto 19672fi 19673 19674# Check whether --enable-dri1 was given. 19675if test "${enable_dri1+set}" = set; then : 19676 enableval=$enable_dri1; DRI1=$enableval 19677else 19678 DRI1=yes 19679fi 19680 19681# Check whether --enable-dri2 was given. 19682if test "${enable_dri2+set}" = set; then : 19683 enableval=$enable_dri2; DRI2=$enableval 19684else 19685 DRI2=yes 19686fi 19687 19688# Check whether --enable-dri3 was given. 19689if test "${enable_dri3+set}" = set; then : 19690 enableval=$enable_dri3; DRI3=$enableval 19691else 19692 DRI3=no 19693fi 19694 19695 19696# Check whether --enable-xvmc was given. 19697if test "${enable_xvmc+set}" = set; then : 19698 enableval=$enable_xvmc; XVMC="$enableval" 19699else 19700 XVMC="yes" 19701fi 19702 19703 19704# Check whether --enable-kms was given. 19705if test "${enable_kms+set}" = set; then : 19706 enableval=$enable_kms; KMS="$enableval" 19707else 19708 KMS="yes" 19709fi 19710 19711# Check whether --enable-ums was given. 19712if test "${enable_ums+set}" = set; then : 19713 enableval=$enable_ums; UMS="$enableval" 19714else 19715 UMS="auto" 19716fi 19717 19718 19719# Check whether --enable-kms-only was given. 19720if test "${enable_kms_only+set}" = set; then : 19721 enableval=$enable_kms_only; ONLY_KMS="$enableval" 19722else 19723 ONLY_KMS="no" 19724fi 19725 19726 19727# Check whether --enable-ums-only was given. 19728if test "${enable_ums_only+set}" = set; then : 19729 enableval=$enable_ums_only; ONLY_UMS="$enableval" 19730else 19731 ONLY_UMS="no" 19732fi 19733 19734 19735required_xorg_server_version=1.6 19736required_pixman_version=0.16 19737 19738if pkg-config --exists 'pixman-1 >= 0.27.1'; then 19739 19740$as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h 19741 19742fi 19743 19744if pkg-config --exists 'pixman-1 >= 0.24.0'; then 19745 19746$as_echo "#define HAS_PIXMAN_TRIANGLES 1" >>confdefs.h 19747 19748fi 19749 19750# Store the list of server defined optional extensions in REQUIRED_MODULES 19751 19752 19753 SAVE_CFLAGS="$CFLAGS" 19754 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19756/* end confdefs.h. */ 19757 19758#include "xorg-server.h" 19759#if !defined RANDR 19760#error RANDR not defined 19761#endif 19762 19763int 19764main () 19765{ 19766 19767 ; 19768 return 0; 19769} 19770_ACEOF 19771if ac_fn_c_try_compile "$LINENO"; then : 19772 _EXT_CHECK=yes 19773else 19774 _EXT_CHECK=no 19775fi 19776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19777 CFLAGS="$SAVE_CFLAGS" 19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19779$as_echo_n "checking if RANDR is defined... " >&6; } 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19781$as_echo "$_EXT_CHECK" >&6; } 19782 if test "$_EXT_CHECK" != no; then 19783 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19784 fi 19785 19786 19787 19788 SAVE_CFLAGS="$CFLAGS" 19789 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19791/* end confdefs.h. */ 19792 19793#include "xorg-server.h" 19794#if !defined RENDER 19795#error RENDER not defined 19796#endif 19797 19798int 19799main () 19800{ 19801 19802 ; 19803 return 0; 19804} 19805_ACEOF 19806if ac_fn_c_try_compile "$LINENO"; then : 19807 _EXT_CHECK=yes 19808else 19809 _EXT_CHECK=no 19810fi 19811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19812 CFLAGS="$SAVE_CFLAGS" 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19814$as_echo_n "checking if RENDER is defined... " >&6; } 19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19816$as_echo "$_EXT_CHECK" >&6; } 19817 if test "$_EXT_CHECK" != no; then 19818 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19819 fi 19820 19821 19822 19823 SAVE_CFLAGS="$CFLAGS" 19824 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19826/* end confdefs.h. */ 19827 19828#include "xorg-server.h" 19829#if !defined DPMSExtension 19830#error DPMSExtension not defined 19831#endif 19832 19833int 19834main () 19835{ 19836 19837 ; 19838 return 0; 19839} 19840_ACEOF 19841if ac_fn_c_try_compile "$LINENO"; then : 19842 _EXT_CHECK=yes 19843else 19844 _EXT_CHECK=no 19845fi 19846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19847 CFLAGS="$SAVE_CFLAGS" 19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19849$as_echo_n "checking if DPMSExtension is defined... " >&6; } 19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19851$as_echo "$_EXT_CHECK" >&6; } 19852 if test "$_EXT_CHECK" != no; then 19853 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19854 fi 19855 19856 19857# Obtain compiler/linker options for the driver dependencies 19858 19859pkg_failed=no 19860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 19861$as_echo_n "checking for DRM... " >&6; } 19862 19863if test -n "$DRM_CFLAGS"; then 19864 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" 19865 elif test -n "$PKG_CONFIG"; then 19866 if test -n "$PKG_CONFIG" && \ 19867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5 19868 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5 19869 ac_status=$? 19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19871 test $ac_status = 0; }; then 19872 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.20" 2>/dev/null` 19873 test "x$?" != "x0" && pkg_failed=yes 19874else 19875 pkg_failed=yes 19876fi 19877 else 19878 pkg_failed=untried 19879fi 19880if test -n "$DRM_LIBS"; then 19881 pkg_cv_DRM_LIBS="$DRM_LIBS" 19882 elif test -n "$PKG_CONFIG"; then 19883 if test -n "$PKG_CONFIG" && \ 19884 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5 19885 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5 19886 ac_status=$? 19887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19888 test $ac_status = 0; }; then 19889 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.20" 2>/dev/null` 19890 test "x$?" != "x0" && pkg_failed=yes 19891else 19892 pkg_failed=yes 19893fi 19894 else 19895 pkg_failed=untried 19896fi 19897 19898 19899 19900if test $pkg_failed = yes; then 19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19902$as_echo "no" >&6; } 19903 19904if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19905 _pkg_short_errors_supported=yes 19906else 19907 _pkg_short_errors_supported=no 19908fi 19909 if test $_pkg_short_errors_supported = yes; then 19910 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1` 19911 else 19912 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1` 19913 fi 19914 # Put the nasty error message in config.log where it belongs 19915 echo "$DRM_PKG_ERRORS" >&5 19916 19917 as_fn_error $? "Package requirements (libdrm >= 2.4.20) were not met: 19918 19919$DRM_PKG_ERRORS 19920 19921Consider adjusting the PKG_CONFIG_PATH environment variable if you 19922installed software in a non-standard prefix. 19923 19924Alternatively, you may set the environment variables DRM_CFLAGS 19925and DRM_LIBS to avoid the need to call pkg-config. 19926See the pkg-config man page for more details." "$LINENO" 5 19927elif test $pkg_failed = untried; then 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19929$as_echo "no" >&6; } 19930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19932as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19933is in your PATH or set the PKG_CONFIG environment variable to the full 19934path to pkg-config. 19935 19936Alternatively, you may set the environment variables DRM_CFLAGS 19937and DRM_LIBS to avoid the need to call pkg-config. 19938See the pkg-config man page for more details. 19939 19940To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19941See \`config.log' for more details" "$LINENO" 5; } 19942else 19943 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS 19944 DRM_LIBS=$pkg_cv_DRM_LIBS 19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19946$as_echo "yes" >&6; } 19947 19948fi # libdrm_intel is checked separately 19949 19950pkg_failed=no 19951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19952$as_echo_n "checking for PCIACCESS... " >&6; } 19953 19954if test -n "$PCIACCESS_CFLAGS"; then 19955 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19956 elif test -n "$PKG_CONFIG"; then 19957 if test -n "$PKG_CONFIG" && \ 19958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19959 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19960 ac_status=$? 19961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19962 test $ac_status = 0; }; then 19963 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 19964 test "x$?" != "x0" && pkg_failed=yes 19965else 19966 pkg_failed=yes 19967fi 19968 else 19969 pkg_failed=untried 19970fi 19971if test -n "$PCIACCESS_LIBS"; then 19972 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19973 elif test -n "$PKG_CONFIG"; then 19974 if test -n "$PKG_CONFIG" && \ 19975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19976 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19977 ac_status=$? 19978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19979 test $ac_status = 0; }; then 19980 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 19981 test "x$?" != "x0" && pkg_failed=yes 19982else 19983 pkg_failed=yes 19984fi 19985 else 19986 pkg_failed=untried 19987fi 19988 19989 19990 19991if test $pkg_failed = yes; then 19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19993$as_echo "no" >&6; } 19994 19995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19996 _pkg_short_errors_supported=yes 19997else 19998 _pkg_short_errors_supported=no 19999fi 20000 if test $_pkg_short_errors_supported = yes; then 20001 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20002 else 20003 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20004 fi 20005 # Put the nasty error message in config.log where it belongs 20006 echo "$PCIACCESS_PKG_ERRORS" >&5 20007 20008 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 20009 20010$PCIACCESS_PKG_ERRORS 20011 20012Consider adjusting the PKG_CONFIG_PATH environment variable if you 20013installed software in a non-standard prefix. 20014 20015Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20016and PCIACCESS_LIBS to avoid the need to call pkg-config. 20017See the pkg-config man page for more details." "$LINENO" 5 20018elif test $pkg_failed = untried; then 20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20020$as_echo "no" >&6; } 20021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20023as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20024is in your PATH or set the PKG_CONFIG environment variable to the full 20025path to pkg-config. 20026 20027Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20028and PCIACCESS_LIBS to avoid the need to call pkg-config. 20029See the pkg-config man page for more details. 20030 20031To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20032See \`config.log' for more details" "$LINENO" 5; } 20033else 20034 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20035 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20037$as_echo "yes" >&6; } 20038 20039fi 20040 20041# Check whether --enable-sna was given. 20042if test "${enable_sna+set}" = set; then : 20043 enableval=$enable_sna; SNA="$enableval" 20044else 20045 SNA=auto 20046fi 20047 20048 20049if test "x$SNA" != "xno"; then 20050 20051$as_echo "#define USE_SNA 1" >>confdefs.h 20052 20053 for ac_header in sys/sysinfo.h 20054do : 20055 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" 20056if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then : 20057 cat >>confdefs.h <<_ACEOF 20058#define HAVE_SYS_SYSINFO_H 1 20059_ACEOF 20060 20061# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 20062# ---------------------------------------------------- 20063# Tries to find if the field MEMBER exists in type AGGR, after including 20064# INCLUDES, setting cache variable VAR accordingly. 20065ac_fn_c_check_member () 20066{ 20067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 20069$as_echo_n "checking for $2.$3... " >&6; } 20070if eval \${$4+:} false; then : 20071 $as_echo_n "(cached) " >&6 20072else 20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20074/* end confdefs.h. */ 20075$5 20076int 20077main () 20078{ 20079static $2 ac_aggr; 20080if (ac_aggr.$3) 20081return 0; 20082 ; 20083 return 0; 20084} 20085_ACEOF 20086if ac_fn_c_try_compile "$LINENO"; then : 20087 eval "$4=yes" 20088else 20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20090/* end confdefs.h. */ 20091$5 20092int 20093main () 20094{ 20095static $2 ac_aggr; 20096if (sizeof ac_aggr.$3) 20097return 0; 20098 ; 20099 return 0; 20100} 20101_ACEOF 20102if ac_fn_c_try_compile "$LINENO"; then : 20103 eval "$4=yes" 20104else 20105 eval "$4=no" 20106fi 20107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20108fi 20109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20110fi 20111eval ac_res=\$$4 20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20113$as_echo "$ac_res" >&6; } 20114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 20115 20116} # ac_fn_c_check_member 20117ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h> 20118" 20119if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then : 20120 20121cat >>confdefs.h <<_ACEOF 20122#define HAVE_STRUCT_SYSINFO_TOTALRAM 1 20123_ACEOF 20124 20125 20126fi 20127 20128fi 20129 20130done 20131 20132fi 20133 20134uxa_requires_libdrm=2.4.52 20135# Check whether --enable-uxa was given. 20136if test "${enable_uxa+set}" = set; then : 20137 enableval=$enable_uxa; UXA="$enableval" 20138else 20139 UXA=auto 20140fi 20141 20142if test "x$UXA" = "xauto"; then 20143 if ! pkg-config --exists "libdrm_intel >= $uxa_requires_libdrm"; then 20144 UXA=no 20145 fi 20146 if ! pkg-config --exists 'pixman-1 >= 0.24.0'; then 20147 UXA=no 20148 fi 20149fi 20150if test "x$UXA" != "xno"; then 20151 20152$as_echo "#define USE_UXA 1" >>confdefs.h 20153 20154 20155pkg_failed=no 20156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5 20157$as_echo_n "checking for DRMINTEL... " >&6; } 20158 20159if test -n "$DRMINTEL_CFLAGS"; then 20160 pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS" 20161 elif test -n "$PKG_CONFIG"; then 20162 if test -n "$PKG_CONFIG" && \ 20163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5 20164 ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5 20165 ac_status=$? 20166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20167 test $ac_status = 0; }; then 20168 pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null` 20169 test "x$?" != "x0" && pkg_failed=yes 20170else 20171 pkg_failed=yes 20172fi 20173 else 20174 pkg_failed=untried 20175fi 20176if test -n "$DRMINTEL_LIBS"; then 20177 pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS" 20178 elif test -n "$PKG_CONFIG"; then 20179 if test -n "$PKG_CONFIG" && \ 20180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= \$uxa_requires_libdrm\""; } >&5 20181 ($PKG_CONFIG --exists --print-errors "libdrm_intel >= $uxa_requires_libdrm") 2>&5 20182 ac_status=$? 20183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20184 test $ac_status = 0; }; then 20185 pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= $uxa_requires_libdrm" 2>/dev/null` 20186 test "x$?" != "x0" && pkg_failed=yes 20187else 20188 pkg_failed=yes 20189fi 20190 else 20191 pkg_failed=untried 20192fi 20193 20194 20195 20196if test $pkg_failed = yes; then 20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20198$as_echo "no" >&6; } 20199 20200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20201 _pkg_short_errors_supported=yes 20202else 20203 _pkg_short_errors_supported=no 20204fi 20205 if test $_pkg_short_errors_supported = yes; then 20206 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1` 20207 else 20208 DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= $uxa_requires_libdrm" 2>&1` 20209 fi 20210 # Put the nasty error message in config.log where it belongs 20211 echo "$DRMINTEL_PKG_ERRORS" >&5 20212 20213 as_fn_error $? "Package requirements (libdrm_intel >= $uxa_requires_libdrm) were not met: 20214 20215$DRMINTEL_PKG_ERRORS 20216 20217Consider adjusting the PKG_CONFIG_PATH environment variable if you 20218installed software in a non-standard prefix. 20219 20220Alternatively, you may set the environment variables DRMINTEL_CFLAGS 20221and DRMINTEL_LIBS to avoid the need to call pkg-config. 20222See the pkg-config man page for more details." "$LINENO" 5 20223elif test $pkg_failed = untried; then 20224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20225$as_echo "no" >&6; } 20226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20228as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20229is in your PATH or set the PKG_CONFIG environment variable to the full 20230path to pkg-config. 20231 20232Alternatively, you may set the environment variables DRMINTEL_CFLAGS 20233and DRMINTEL_LIBS to avoid the need to call pkg-config. 20234See the pkg-config man page for more details. 20235 20236To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20237See \`config.log' for more details" "$LINENO" 5; } 20238else 20239 DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS 20240 DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20242$as_echo "yes" >&6; } 20243 20244fi 20245 required_pixman_version=0.24 20246 UXA=yes 20247fi 20248 20249 20250pkg_failed=no 20251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 20252$as_echo_n "checking for XORG... " >&6; } 20253 20254if test -n "$XORG_CFLAGS"; then 20255 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20256 elif test -n "$PKG_CONFIG"; then 20257 if test -n "$PKG_CONFIG" && \ 20258 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5 20259 ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5 20260 ac_status=$? 20261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20262 test $ac_status = 0; }; then 20263 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null` 20264 test "x$?" != "x0" && pkg_failed=yes 20265else 20266 pkg_failed=yes 20267fi 20268 else 20269 pkg_failed=untried 20270fi 20271if test -n "$XORG_LIBS"; then 20272 pkg_cv_XORG_LIBS="$XORG_LIBS" 20273 elif test -n "$PKG_CONFIG"; then 20274 if test -n "$PKG_CONFIG" && \ 20275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5 20276 ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5 20277 ac_status=$? 20278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20279 test $ac_status = 0; }; then 20280 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null` 20281 test "x$?" != "x0" && pkg_failed=yes 20282else 20283 pkg_failed=yes 20284fi 20285 else 20286 pkg_failed=untried 20287fi 20288 20289 20290 20291if test $pkg_failed = yes; then 20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20293$as_echo "no" >&6; } 20294 20295if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20296 _pkg_short_errors_supported=yes 20297else 20298 _pkg_short_errors_supported=no 20299fi 20300 if test $_pkg_short_errors_supported = yes; then 20301 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1` 20302 else 20303 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1` 20304 fi 20305 # Put the nasty error message in config.log where it belongs 20306 echo "$XORG_PKG_ERRORS" >&5 20307 20308 as_fn_error $? "Package requirements (xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met: 20309 20310$XORG_PKG_ERRORS 20311 20312Consider adjusting the PKG_CONFIG_PATH environment variable if you 20313installed software in a non-standard prefix. 20314 20315Alternatively, you may set the environment variables XORG_CFLAGS 20316and XORG_LIBS to avoid the need to call pkg-config. 20317See the pkg-config man page for more details." "$LINENO" 5 20318elif test $pkg_failed = untried; then 20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20320$as_echo "no" >&6; } 20321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20323as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20324is in your PATH or set the PKG_CONFIG environment variable to the full 20325path to pkg-config. 20326 20327Alternatively, you may set the environment variables XORG_CFLAGS 20328and XORG_LIBS to avoid the need to call pkg-config. 20329See the pkg-config man page for more details. 20330 20331To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20332See \`config.log' for more details" "$LINENO" 5; } 20333else 20334 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20335 XORG_LIBS=$pkg_cv_XORG_LIBS 20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20337$as_echo "yes" >&6; } 20338 20339fi 20340ABI_VERSION=`$PKG_CONFIG --variable=abi_videodrv xorg-server` 20341 20342if test "x$ONLY_UMS" = "xyes"; then 20343 UMS="yes" 20344 KMS="no" 20345fi 20346 20347if test "x$ONLY_KMS" = "xyes"; then 20348 UMS="no" 20349 KMS="yes" 20350fi 20351 20352save_CPPFLAGS=$CPPFLAGS 20353CPPFLAGS=$XORG_CFLAGS 20354for ac_header in vgaHW.h 20355do : 20356 ac_fn_c_check_header_mongrel "$LINENO" "vgaHW.h" "ac_cv_header_vgaHW_h" "$ac_includes_default" 20357if test "x$ac_cv_header_vgaHW_h" = xyes; then : 20358 cat >>confdefs.h <<_ACEOF 20359#define HAVE_VGAHW_H 1 20360_ACEOF 20361 legacy="yes" 20362else 20363 legacy="no" 20364fi 20365 20366done 20367 20368CPPFLAGS=$save_CPPFLAGS 20369if test "x$UMS" = "xauto"; then 20370 UMS="$legacy" 20371fi 20372if test "x$UMS" = "xyes" -a "x$legacy" = "xno"; then 20373 as_fn_error $? "vgaHW support required for UMS (i810) driver" "$LINENO" 5 20374fi 20375 20376if test "x$UMS" = "xyes"; then 20377 # Check whether --enable-xaa was given. 20378if test "${enable_xaa+set}" = set; then : 20379 enableval=$enable_xaa; XAA="$enableval" 20380else 20381 XAA="auto" 20382fi 20383 20384 if test "x$XAA" != "xno"; then 20385 save_CPPFLAGS=$CPPFLAGS 20386 CPPFLAGS=$XORG_CFLAGS 20387 for ac_header in xaa.h 20388do : 20389 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 20390if test "x$ac_cv_header_xaa_h" = xyes; then : 20391 cat >>confdefs.h <<_ACEOF 20392#define HAVE_XAA_H 1 20393_ACEOF 20394 XAA="yes" 20395else 20396 XAA="no" 20397fi 20398 20399done 20400 20401 CPPFLAGS=$save_CPPFLAGS 20402 fi 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 20404$as_echo_n "checking whether to include XAA support... " >&6; } 20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 20406$as_echo "$XAA" >&6; } 20407 20408 # Check whether --enable-dga was given. 20409if test "${enable_dga+set}" = set; then : 20410 enableval=$enable_dga; DGA="$enableval" 20411else 20412 DGA="auto" 20413fi 20414 20415 if test "x$DGA" != "xno"; then 20416 save_CFLAGS=$CFLAGS 20417 CFLAGS=$XORG_CFLAGS 20418 for ac_header in dgaproc.h 20419do : 20420 ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h> 20421" 20422if test "x$ac_cv_header_dgaproc_h" = xyes; then : 20423 cat >>confdefs.h <<_ACEOF 20424#define HAVE_DGAPROC_H 1 20425_ACEOF 20426 DGA="yes" 20427else 20428 DGA="no" 20429fi 20430 20431done 20432 20433 CFLAGS=$save_CFLAGS 20434 fi 20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5 20436$as_echo_n "checking whether to include DGA support... " >&6; } 20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5 20438$as_echo "$DGA" >&6; } 20439fi 20440 if test "x$DGA" = "xyes"; then 20441 DGA_TRUE= 20442 DGA_FALSE='#' 20443else 20444 DGA_TRUE='#' 20445 DGA_FALSE= 20446fi 20447 20448 if test "x$XAA" = "xyes"; then 20449 XAA_TRUE= 20450 XAA_FALSE='#' 20451else 20452 XAA_TRUE='#' 20453 XAA_FALSE= 20454fi 20455 20456 20457 if test "x$KMS" = "xyes"; then 20458 KMS_TRUE= 20459 KMS_FALSE='#' 20460else 20461 KMS_TRUE='#' 20462 KMS_FALSE= 20463fi 20464 20465if test "x$KMS" = "xyes"; then 20466 20467$as_echo "#define KMS 1" >>confdefs.h 20468 20469fi 20470 if test "x$UMS" = "xyes"; then 20471 UMS_TRUE= 20472 UMS_FALSE='#' 20473else 20474 UMS_TRUE='#' 20475 UMS_FALSE= 20476fi 20477 20478if test "x$UMS" = "xyes"; then 20479 20480$as_echo "#define UMS 1" >>confdefs.h 20481 20482fi 20483 20484have_dri1=no 20485 20486 20487 SAVE_CFLAGS="$CFLAGS" 20488 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 20489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20490/* end confdefs.h. */ 20491 20492#include "xorg-server.h" 20493#if !defined XF86DRI 20494#error XF86DRI not defined 20495#endif 20496 20497int 20498main () 20499{ 20500 20501 ; 20502 return 0; 20503} 20504_ACEOF 20505if ac_fn_c_try_compile "$LINENO"; then : 20506 _EXT_CHECK=yes 20507else 20508 _EXT_CHECK=no 20509fi 20510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20511 CFLAGS="$SAVE_CFLAGS" 20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5 20513$as_echo_n "checking if XF86DRI is defined... " >&6; } 20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20515$as_echo "$_EXT_CHECK" >&6; } 20516 if test "$_EXT_CHECK" != no; then 20517 REQUIRED_MODULES="$REQUIRED_MODULES xf86driproto" 20518 fi 20519 20520if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$DRI1" != "xno" -a "x$UMS" = "xyes"; then 20521 20522pkg_failed=no 20523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI1" >&5 20524$as_echo_n "checking for DRI1... " >&6; } 20525 20526if test -n "$DRI1_CFLAGS"; then 20527 pkg_cv_DRI1_CFLAGS="$DRI1_CFLAGS" 20528 elif test -n "$PKG_CONFIG"; then 20529 if test -n "$PKG_CONFIG" && \ 20530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5 20531 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5 20532 ac_status=$? 20533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20534 test $ac_status = 0; }; then 20535 pkg_cv_DRI1_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null` 20536 test "x$?" != "x0" && pkg_failed=yes 20537else 20538 pkg_failed=yes 20539fi 20540 else 20541 pkg_failed=untried 20542fi 20543if test -n "$DRI1_LIBS"; then 20544 pkg_cv_DRI1_LIBS="$DRI1_LIBS" 20545 elif test -n "$PKG_CONFIG"; then 20546 if test -n "$PKG_CONFIG" && \ 20547 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5 20548 ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5 20549 ac_status=$? 20550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20551 test $ac_status = 0; }; then 20552 pkg_cv_DRI1_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null` 20553 test "x$?" != "x0" && pkg_failed=yes 20554else 20555 pkg_failed=yes 20556fi 20557 else 20558 pkg_failed=untried 20559fi 20560 20561 20562 20563if test $pkg_failed = yes; then 20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20565$as_echo "no" >&6; } 20566 20567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20568 _pkg_short_errors_supported=yes 20569else 20570 _pkg_short_errors_supported=no 20571fi 20572 if test $_pkg_short_errors_supported = yes; then 20573 DRI1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1` 20574 else 20575 DRI1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1` 20576 fi 20577 # Put the nasty error message in config.log where it belongs 20578 echo "$DRI1_PKG_ERRORS" >&5 20579 20580 have_dri1=no 20581elif test $pkg_failed = untried; then 20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20583$as_echo "no" >&6; } 20584 have_dri1=no 20585else 20586 DRI1_CFLAGS=$pkg_cv_DRI1_CFLAGS 20587 DRI1_LIBS=$pkg_cv_DRI1_LIBS 20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20589$as_echo "yes" >&6; } 20590 have_dri1=$DRI 20591fi 20592 save_CFLAGS="$CFLAGS" 20593 save_CPPFLAGS="$CPPFLAGS" 20594 CFLAGS="$CFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS" 20595 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI1_CFLAGS $DRM_CFLAGS" 20596 for ac_header in dri.h sarea.h dristruct.h 20597do : 20598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20599ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */ 20600 #include <xf86str.h> 20601 /* for dristruct.h */ 20602 #include <xorg-server.h> 20603 #ifdef HAVE_DRI_H 20604 # include <dri.h> 20605 #endif 20606 #ifdef HAVE_SAREA_H 20607 # include <sarea.h> 20608 #endif 20609 20610" 20611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20612 cat >>confdefs.h <<_ACEOF 20613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20614_ACEOF 20615 20616else 20617 have_dri1=no 20618fi 20619 20620done 20621 20622 CFLAGS="$save_CFLAGS" 20623 CPPFLAGS="$save_CPPFLAGS" 20624fi 20625 20626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI1 support" >&5 20627$as_echo_n "checking whether to include DRI1 support... " >&6; } 20628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri1" >&5 20629$as_echo "$have_dri1" >&6; } 20630 20631 if test "x$have_dri1" != "xno"; then 20632 DRI1_TRUE= 20633 DRI1_FALSE='#' 20634else 20635 DRI1_TRUE='#' 20636 DRI1_FALSE= 20637fi 20638 20639if test "x$have_dri1" != "xno"; then 20640 20641$as_echo "#define HAVE_DRI1 1" >>confdefs.h 20642 20643 dri_msg="$dri_msg DRI1" 20644else 20645 DRI1_CFLAGS="" 20646 DRI1_LIBS="" 20647 20648 if test "x$DRI" = "xyes" -a "x$UMS" = "xyes" -a "x$DRI1" != "xno"; then 20649 as_fn_error $? "DRI1 requested but prerequisites not found" "$LINENO" 5 20650 fi 20651fi 20652 20653have_dri2=no 20654have_dri3=no 20655if test "x$DRI" != "xno"; then 20656 if test "x$DRI2" != "xno"; then 20657 20658pkg_failed=no 20659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5 20660$as_echo_n "checking for DRI2... " >&6; } 20661 20662if test -n "$DRI2_CFLAGS"; then 20663 pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS" 20664 elif test -n "$PKG_CONFIG"; then 20665 if test -n "$PKG_CONFIG" && \ 20666 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5 20667 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5 20668 ac_status=$? 20669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20670 test $ac_status = 0; }; then 20671 pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null` 20672 test "x$?" != "x0" && pkg_failed=yes 20673else 20674 pkg_failed=yes 20675fi 20676 else 20677 pkg_failed=untried 20678fi 20679if test -n "$DRI2_LIBS"; then 20680 pkg_cv_DRI2_LIBS="$DRI2_LIBS" 20681 elif test -n "$PKG_CONFIG"; then 20682 if test -n "$PKG_CONFIG" && \ 20683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5 20684 ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5 20685 ac_status=$? 20686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20687 test $ac_status = 0; }; then 20688 pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null` 20689 test "x$?" != "x0" && pkg_failed=yes 20690else 20691 pkg_failed=yes 20692fi 20693 else 20694 pkg_failed=untried 20695fi 20696 20697 20698 20699if test $pkg_failed = yes; then 20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20701$as_echo "no" >&6; } 20702 20703if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20704 _pkg_short_errors_supported=yes 20705else 20706 _pkg_short_errors_supported=no 20707fi 20708 if test $_pkg_short_errors_supported = yes; then 20709 DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1` 20710 else 20711 DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1` 20712 fi 20713 # Put the nasty error message in config.log where it belongs 20714 echo "$DRI2_PKG_ERRORS" >&5 20715 20716 have_dri2=no 20717elif test $pkg_failed = untried; then 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20719$as_echo "no" >&6; } 20720 have_dri2=no 20721else 20722 DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS 20723 DRI2_LIBS=$pkg_cv_DRI2_LIBS 20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20725$as_echo "yes" >&6; } 20726 have_dri2=$DRI 20727fi 20728 fi 20729 if test "x$have_dri2" != "xno"; then 20730 save_CFLAGS=$CFLAGS 20731 CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI1_CFLAGS $DRI2_CFLAGS" 20732 for ac_header in dri2.h 20733do : 20734 ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" " 20735#include <dixstruct.h> 20736#include <drm.h> 20737 20738" 20739if test "x$ac_cv_header_dri2_h" = xyes; then : 20740 cat >>confdefs.h <<_ACEOF 20741#define HAVE_DRI2_H 1 20742_ACEOF 20743 20744else 20745 have_dri2=no 20746fi 20747 20748done 20749 20750 CFLAGS=$save_CFLAGS 20751 fi 20752 if test "x$have_dri2" != "xno"; then 20753 dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri` 20754 if test "x$dridriverdir" = "x"; then 20755 dridriverdir="$libdir/dri" 20756 fi 20757 20758 prefix_NONE= 20759 exec_prefix_NONE= 20760 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20761 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20762 eval ac_define_dir="\"$dridriverdir\"" 20763 eval ac_define_dir="\"$ac_define_dir\"" 20764 DRI_DRIVER_PATH="$ac_define_dir" 20765 20766 20767cat >>confdefs.h <<_ACEOF 20768#define DRI_DRIVER_PATH "$ac_define_dir" 20769_ACEOF 20770 20771 test "$prefix_NONE" && prefix=NONE 20772 test "$exec_prefix_NONE" && exec_prefix=NONE 20773 20774 fi 20775 20776 if test "x$DRI3" != "xno"; then 20777 20778 20779 SAVE_CFLAGS="$CFLAGS" 20780 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 20781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20782/* end confdefs.h. */ 20783 20784#include "xorg-server.h" 20785#if !defined DRI3 20786#error DRI3 not defined 20787#endif 20788 20789int 20790main () 20791{ 20792 20793 ; 20794 return 0; 20795} 20796_ACEOF 20797if ac_fn_c_try_compile "$LINENO"; then : 20798 _EXT_CHECK=yes 20799else 20800 _EXT_CHECK=no 20801fi 20802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20803 CFLAGS="$SAVE_CFLAGS" 20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DRI3 is defined" >&5 20805$as_echo_n "checking if DRI3 is defined... " >&6; } 20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20807$as_echo "$_EXT_CHECK" >&6; } 20808 if test "$_EXT_CHECK" != no; then 20809 REQUIRED_MODULES="$REQUIRED_MODULES dri3proto" 20810 fi 20811 20812 if test "x$_EXT_CHECK" != "xno"; then 20813 20814pkg_failed=no 20815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3" >&5 20816$as_echo_n "checking for DRI3... " >&6; } 20817 20818if test -n "$DRI3_CFLAGS"; then 20819 pkg_cv_DRI3_CFLAGS="$DRI3_CFLAGS" 20820 elif test -n "$PKG_CONFIG"; then 20821 if test -n "$PKG_CONFIG" && \ 20822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5 20823 ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5 20824 ac_status=$? 20825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20826 test $ac_status = 0; }; then 20827 pkg_cv_DRI3_CFLAGS=`$PKG_CONFIG --cflags "dri3proto" 2>/dev/null` 20828 test "x$?" != "x0" && pkg_failed=yes 20829else 20830 pkg_failed=yes 20831fi 20832 else 20833 pkg_failed=untried 20834fi 20835if test -n "$DRI3_LIBS"; then 20836 pkg_cv_DRI3_LIBS="$DRI3_LIBS" 20837 elif test -n "$PKG_CONFIG"; then 20838 if test -n "$PKG_CONFIG" && \ 20839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri3proto\""; } >&5 20840 ($PKG_CONFIG --exists --print-errors "dri3proto") 2>&5 20841 ac_status=$? 20842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20843 test $ac_status = 0; }; then 20844 pkg_cv_DRI3_LIBS=`$PKG_CONFIG --libs "dri3proto" 2>/dev/null` 20845 test "x$?" != "x0" && pkg_failed=yes 20846else 20847 pkg_failed=yes 20848fi 20849 else 20850 pkg_failed=untried 20851fi 20852 20853 20854 20855if test $pkg_failed = yes; then 20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20857$as_echo "no" >&6; } 20858 20859if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20860 _pkg_short_errors_supported=yes 20861else 20862 _pkg_short_errors_supported=no 20863fi 20864 if test $_pkg_short_errors_supported = yes; then 20865 DRI3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri3proto" 2>&1` 20866 else 20867 DRI3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri3proto" 2>&1` 20868 fi 20869 # Put the nasty error message in config.log where it belongs 20870 echo "$DRI3_PKG_ERRORS" >&5 20871 20872 as_fn_error $? "Package requirements (dri3proto) were not met: 20873 20874$DRI3_PKG_ERRORS 20875 20876Consider adjusting the PKG_CONFIG_PATH environment variable if you 20877installed software in a non-standard prefix. 20878 20879Alternatively, you may set the environment variables DRI3_CFLAGS 20880and DRI3_LIBS to avoid the need to call pkg-config. 20881See the pkg-config man page for more details." "$LINENO" 5 20882elif test $pkg_failed = untried; then 20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20884$as_echo "no" >&6; } 20885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20887as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20888is in your PATH or set the PKG_CONFIG environment variable to the full 20889path to pkg-config. 20890 20891Alternatively, you may set the environment variables DRI3_CFLAGS 20892and DRI3_LIBS to avoid the need to call pkg-config. 20893See the pkg-config man page for more details. 20894 20895To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20896See \`config.log' for more details" "$LINENO" 5; } 20897else 20898 DRI3_CFLAGS=$pkg_cv_DRI3_CFLAGS 20899 DRI3_LIBS=$pkg_cv_DRI3_LIBS 20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20901$as_echo "yes" >&6; } 20902 have_dri3=$DRI 20903fi 20904 fi 20905 fi 20906 if test "x$have_dri3" != "xno"; then 20907 save_CFLAGS=$CFLAGS 20908 CFLAGS="$XORG_CFLAGS $DRI3_CFLAGS" 20909 ac_fn_c_check_decl "$LINENO" "DRI3" "ac_cv_have_decl_DRI3" "#include <xorg-server.h> 20910" 20911if test "x$ac_cv_have_decl_DRI3" = xyes; then : 20912 20913else 20914 have_dri3=no 20915fi 20916 20917 for ac_header in misyncstr.h misyncshm.h 20918do : 20919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20920ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 20921#include <xorg-server.h> 20922#include <xf86str.h> 20923#include <misync.h> 20924 20925" 20926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20927 cat >>confdefs.h <<_ACEOF 20928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20929_ACEOF 20930 20931else 20932 have_dri3=no 20933fi 20934 20935done 20936 20937 CFLAGS=$save_CFLAGS 20938 fi 20939fi 20940 20941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5 20942$as_echo_n "checking whether to include DRI2 support... " >&6; } 20943 if test "x$have_dri2" != "xno"; then 20944 DRI2_TRUE= 20945 DRI2_FALSE='#' 20946else 20947 DRI2_TRUE='#' 20948 DRI2_FALSE= 20949fi 20950 20951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri2" >&5 20952$as_echo "$have_dri2" >&6; } 20953if test "x$have_dri2" != "xno"; then 20954 20955$as_echo "#define HAVE_DRI2 1" >>confdefs.h 20956 20957 dri_msg="$dri_msg DRI2" 20958else 20959 if test "x$DRI" = "xyes" -a "x$DRI2" != "xno" -a "x$KMS" = "xyes"; then 20960 as_fn_error $? "DRI2 requested but prerequisites not found" "$LINENO" 5 20961 fi 20962 20963 # UXA doesn't build without DRI2 headers, too late to fix 20964 UXA=no 20965fi 20966 20967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI3 support" >&5 20968$as_echo_n "checking whether to include DRI3 support... " >&6; } 20969 if test "x$have_dri3" != "xno"; then 20970 DRI3_TRUE= 20971 DRI3_FALSE='#' 20972else 20973 DRI3_TRUE='#' 20974 DRI3_FALSE= 20975fi 20976 20977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri3" >&5 20978$as_echo "$have_dri3" >&6; } 20979if test "x$have_dri3" != "xno"; then 20980 20981$as_echo "#define HAVE_DRI3 1" >>confdefs.h 20982 20983 dri_msg="$dri_msg DRI3" 20984else 20985 if test "x$DRI" = "xyes" -a "x$DRI3" != "xno" -a "x$KMS" = "xyes"; then 20986 as_fn_error $? "DRI3 requested but prerequisites not found" "$LINENO" 5 20987 fi 20988fi 20989 20990for ac_header in X11/extensions/dpmsconst.h 20991do : 20992 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/dpmsconst.h" "ac_cv_header_X11_extensions_dpmsconst_h" "$ac_includes_default" 20993if test "x$ac_cv_header_X11_extensions_dpmsconst_h" = xyes; then : 20994 cat >>confdefs.h <<_ACEOF 20995#define HAVE_X11_EXTENSIONS_DPMSCONST_H 1 20996_ACEOF 20997 20998fi 20999 21000done 21001 21002 21003PRESENT="no" 21004 21005 21006 SAVE_CFLAGS="$CFLAGS" 21007 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 21008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21009/* end confdefs.h. */ 21010 21011#include "xorg-server.h" 21012#if !defined PRESENT 21013#error PRESENT not defined 21014#endif 21015 21016int 21017main () 21018{ 21019 21020 ; 21021 return 0; 21022} 21023_ACEOF 21024if ac_fn_c_try_compile "$LINENO"; then : 21025 _EXT_CHECK=yes 21026else 21027 _EXT_CHECK=no 21028fi 21029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21030 CFLAGS="$SAVE_CFLAGS" 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PRESENT is defined" >&5 21032$as_echo_n "checking if PRESENT is defined... " >&6; } 21033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 21034$as_echo "$_EXT_CHECK" >&6; } 21035 if test "$_EXT_CHECK" != no; then 21036 REQUIRED_MODULES="$REQUIRED_MODULES presentproto" 21037 fi 21038 21039if test "x$_EXT_CHECK" != "xno"; then 21040 21041pkg_failed=no 21042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5 21043$as_echo_n "checking for PRESENT... " >&6; } 21044 21045if test -n "$PRESENT_CFLAGS"; then 21046 pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS" 21047 elif test -n "$PKG_CONFIG"; then 21048 if test -n "$PKG_CONFIG" && \ 21049 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5 21050 ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5 21051 ac_status=$? 21052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21053 test $ac_status = 0; }; then 21054 pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "presentproto" 2>/dev/null` 21055 test "x$?" != "x0" && pkg_failed=yes 21056else 21057 pkg_failed=yes 21058fi 21059 else 21060 pkg_failed=untried 21061fi 21062if test -n "$PRESENT_LIBS"; then 21063 pkg_cv_PRESENT_LIBS="$PRESENT_LIBS" 21064 elif test -n "$PKG_CONFIG"; then 21065 if test -n "$PKG_CONFIG" && \ 21066 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"presentproto\""; } >&5 21067 ($PKG_CONFIG --exists --print-errors "presentproto") 2>&5 21068 ac_status=$? 21069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21070 test $ac_status = 0; }; then 21071 pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "presentproto" 2>/dev/null` 21072 test "x$?" != "x0" && pkg_failed=yes 21073else 21074 pkg_failed=yes 21075fi 21076 else 21077 pkg_failed=untried 21078fi 21079 21080 21081 21082if test $pkg_failed = yes; then 21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21084$as_echo "no" >&6; } 21085 21086if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21087 _pkg_short_errors_supported=yes 21088else 21089 _pkg_short_errors_supported=no 21090fi 21091 if test $_pkg_short_errors_supported = yes; then 21092 PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "presentproto" 2>&1` 21093 else 21094 PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "presentproto" 2>&1` 21095 fi 21096 # Put the nasty error message in config.log where it belongs 21097 echo "$PRESENT_PKG_ERRORS" >&5 21098 21099 as_fn_error $? "Package requirements (presentproto) were not met: 21100 21101$PRESENT_PKG_ERRORS 21102 21103Consider adjusting the PKG_CONFIG_PATH environment variable if you 21104installed software in a non-standard prefix. 21105 21106Alternatively, you may set the environment variables PRESENT_CFLAGS 21107and PRESENT_LIBS to avoid the need to call pkg-config. 21108See the pkg-config man page for more details." "$LINENO" 5 21109elif test $pkg_failed = untried; then 21110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21111$as_echo "no" >&6; } 21112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21114as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21115is in your PATH or set the PKG_CONFIG environment variable to the full 21116path to pkg-config. 21117 21118Alternatively, you may set the environment variables PRESENT_CFLAGS 21119and PRESENT_LIBS to avoid the need to call pkg-config. 21120See the pkg-config man page for more details. 21121 21122To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21123See \`config.log' for more details" "$LINENO" 5; } 21124else 21125 PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS 21126 PRESENT_LIBS=$pkg_cv_PRESENT_LIBS 21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21128$as_echo "yes" >&6; } 21129 PRESENT="yes" 21130fi 21131fi 21132if test "x$PRESENT" != "xno"; then 21133 save_CFLAGS=$CFLAGS 21134 CFLAGS="$XORG_CFLAGS $PRESENT_CFLAGS" 21135 for ac_header in present.h 21136do : 21137 ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" " 21138#include <xorg-server.h> 21139#include <xf86str.h> 21140 21141" 21142if test "x$ac_cv_header_present_h" = xyes; then : 21143 cat >>confdefs.h <<_ACEOF 21144#define HAVE_PRESENT_H 1 21145_ACEOF 21146 21147else 21148 PRESENT="no" 21149fi 21150 21151done 21152 21153 CFLAGS=$save_CFLAGS 21154fi 21155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include PRESENT support" >&5 21156$as_echo_n "checking whether to include PRESENT support... " >&6; } 21157 if test "x$PRESENT" != "xno"; then 21158 PRESENT_TRUE= 21159 PRESENT_FALSE='#' 21160else 21161 PRESENT_TRUE='#' 21162 PRESENT_FALSE= 21163fi 21164 21165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRESENT" >&5 21166$as_echo "$PRESENT" >&6; } 21167if test "x$PRESENT" != "xno"; then 21168 21169$as_echo "#define HAVE_PRESENT 1" >>confdefs.h 21170 21171 dri_msg="$dri_msg Present" 21172fi 21173 21174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5 21175$as_echo_n "checking whether to include UXA support... " >&6; } 21176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5 21177$as_echo "$UXA" >&6; } 21178 if test "x$UXA" != "xno"; then 21179 UXA_TRUE= 21180 UXA_FALSE='#' 21181else 21182 UXA_TRUE='#' 21183 UXA_FALSE= 21184fi 21185 21186 21187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5 21188$as_echo_n "checking whether to include SNA support... " >&6; } 21189 if test "x$SNA" != "xno"; then 21190 SNA_TRUE= 21191 SNA_FALSE='#' 21192else 21193 SNA_TRUE='#' 21194 SNA_FALSE= 21195fi 21196 21197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5 21198$as_echo "$SNA" >&6; } 21199 21200if test "$XVMC" = "yes"; then 21201 21202pkg_failed=no 21203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5 21204$as_echo_n "checking for XVMCLIB... " >&6; } 21205 21206if test -n "$XVMCLIB_CFLAGS"; then 21207 pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS" 21208 elif test -n "$PKG_CONFIG"; then 21209 if test -n "$PKG_CONFIG" && \ 21210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5 21211 ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5 21212 ac_status=$? 21213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21214 test $ac_status = 0; }; then 21215 pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null` 21216 test "x$?" != "x0" && pkg_failed=yes 21217else 21218 pkg_failed=yes 21219fi 21220 else 21221 pkg_failed=untried 21222fi 21223if test -n "$XVMCLIB_LIBS"; then 21224 pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS" 21225 elif test -n "$PKG_CONFIG"; then 21226 if test -n "$PKG_CONFIG" && \ 21227 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel\""; } >&5 21228 ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel") 2>&5 21229 ac_status=$? 21230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21231 test $ac_status = 0; }; then 21232 pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>/dev/null` 21233 test "x$?" != "x0" && pkg_failed=yes 21234else 21235 pkg_failed=yes 21236fi 21237 else 21238 pkg_failed=untried 21239fi 21240 21241 21242 21243if test $pkg_failed = yes; then 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21245$as_echo "no" >&6; } 21246 21247if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21248 _pkg_short_errors_supported=yes 21249else 21250 _pkg_short_errors_supported=no 21251fi 21252 if test $_pkg_short_errors_supported = yes; then 21253 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1` 21254 else 21255 XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc dri2proto x11 x11-xcb xcb-dri2 xcb-aux libdrm_intel" 2>&1` 21256 fi 21257 # Put the nasty error message in config.log where it belongs 21258 echo "$XVMCLIB_PKG_ERRORS" >&5 21259 21260 XVMC="no" 21261elif test $pkg_failed = untried; then 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21263$as_echo "no" >&6; } 21264 XVMC="no" 21265else 21266 XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS 21267 XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS 21268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21269$as_echo "yes" >&6; } 21270 21271fi 21272fi 21273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5 21274$as_echo_n "checking whether to include XvMC support... " >&6; } 21275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5 21276$as_echo "$XVMC" >&6; } 21277 if test "x$XVMC" = "xyes"; then 21278 XVMC_TRUE= 21279 XVMC_FALSE='#' 21280else 21281 XVMC_TRUE='#' 21282 XVMC_FALSE= 21283fi 21284 21285if test "x$XVMC" = "xyes"; then 21286 21287$as_echo "#define ENABLE_XVMC 1" >>confdefs.h 21288 21289 xvmc_msg=" yes" 21290else 21291 xvmc_msg=" no" 21292fi 21293 21294 21295 21296# Check whether --with-default-accel was given. 21297if test "${with_default_accel+set}" = set; then : 21298 withval=$with_default_accel; accel="$withval" 21299else 21300 accel="auto" 21301fi 21302 21303if test "x$accel" = "xyes"; then 21304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5 21305$as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;} 21306 accel="auto" 21307fi 21308 21309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5 21310$as_echo_n "checking which acceleration method to use by default... " >&6; } 21311if test "x$accel" = "xauto"; then 21312 if test "x$SNA" != "xno"; then 21313 accel="sna" 21314 else 21315 if test "x$UXA" != "xno"; then 21316 accel="uxa" 21317 fi 21318 fi 21319 if test "x$accel" = "xauto" -a "x$KMS" = "xyes"; then 21320 as_fn_error $? "No default acceleration option" "$LINENO" 5 21321 fi 21322fi 21323 21324have_accel="none" 21325if test "x$accel" = "xsna"; then 21326 if test "x$SNA" != "xno"; then 21327 21328$as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h 21329 21330 have_accel="yes" 21331 else 21332 as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5 21333 fi 21334fi 21335 21336if test "x$accel" = "xuxa"; then 21337 if test "x$UXA" != "xno"; then 21338 21339$as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h 21340 21341 have_accel="yes" 21342 else 21343 as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5 21344 fi 21345fi 21346 21347if test "x$have_accel" = "xnone"; then 21348 if test "x$KMS" = "xyes"; then 21349 if test "x$SNA" != "xno" -o "x$UXA" != "xno"; then 21350 21351$as_echo "#define DEFAULT_ACCEL_METHOD NOACCEL" >>confdefs.h 21352 21353 else 21354 as_fn_error $? "Invalid default acceleration option" "$LINENO" 5 21355 fi 21356 fi 21357 accel="none" 21358fi 21359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5 21360$as_echo "$accel" >&6; } 21361 21362xp_msg="" 21363 21364# Check whether --enable-tear-free was given. 21365if test "${enable_tear_free+set}" = set; then : 21366 enableval=$enable_tear_free; TEARFREE="$enableval" 21367else 21368 TEARFREE="no" 21369fi 21370 21371if test "x$TEARFREE" = "xyes"; then 21372 21373$as_echo "#define TEARFREE 1" >>confdefs.h 21374 21375 xp_msg="$xp_msg TearFree" 21376fi 21377 21378# Check whether --enable-rendernode was given. 21379if test "${enable_rendernode+set}" = set; then : 21380 enableval=$enable_rendernode; RENDERNODE="$enableval" 21381else 21382 RENDERNODE="no" 21383fi 21384 21385 if test "x$RENDERNODE" = "xyes"; then 21386 USE_RENDERNODE_TRUE= 21387 USE_RENDERNODE_FALSE='#' 21388else 21389 USE_RENDERNODE_TRUE='#' 21390 USE_RENDERNODE_FALSE= 21391fi 21392 21393if test "x$RENDERNODE" = "xyes"; then 21394 21395$as_echo "#define USE_RENDERNODE 1" >>confdefs.h 21396 21397 xp_msg="$xp_msg rendernode" 21398fi 21399 21400# Check whether --enable-wc-mmap was given. 21401if test "${enable_wc_mmap+set}" = set; then : 21402 enableval=$enable_wc_mmap; WC_MMAP="$enableval" 21403else 21404 WC_MMAP="no" 21405fi 21406 21407if test "x$WC_MMAP" = "xyes"; then 21408 21409$as_echo "#define USE_WC_MMAP 1" >>confdefs.h 21410 21411 xp_msg="$xp_msg mmap(wc)" 21412fi 21413 21414# Check whether --enable-create2 was given. 21415if test "${enable_create2+set}" = set; then : 21416 enableval=$enable_create2; CREATE2="$enableval" 21417else 21418 CREATE2="no" 21419fi 21420 21421 if test "x$CREATE2" = "xyes"; then 21422 USE_CREATE2_TRUE= 21423 USE_CREATE2_FALSE='#' 21424else 21425 USE_CREATE2_TRUE='#' 21426 USE_CREATE2_FALSE= 21427fi 21428 21429if test "x$CREATE2" = "xyes"; then 21430 21431$as_echo "#define USE_CREATE2 1" >>confdefs.h 21432 21433 xp_msg="$xp_msg create2" 21434fi 21435 21436# Check whether --enable-async-swap was given. 21437if test "${enable_async_swap+set}" = set; then : 21438 enableval=$enable_async_swap; ASYNC_SWAP="$enableval" 21439else 21440 ASYNC_SWAP="no" 21441fi 21442 21443 if test "x$ASYNC_SWAP" = "xyes"; then 21444 USE_ASYNC_SWAP_TRUE= 21445 USE_ASYNC_SWAP_FALSE='#' 21446else 21447 USE_ASYNC_SWAP_TRUE='#' 21448 USE_ASYNC_SWAP_FALSE= 21449fi 21450 21451if test "x$ASYNC_SWAP" = "xyes"; then 21452 21453$as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h 21454 21455 xp_msg="$xp_msg async-swap" 21456fi 21457 21458# Check whether --enable-debug was given. 21459if test "${enable_debug+set}" = set; then : 21460 enableval=$enable_debug; DEBUG="$enableval" 21461else 21462 DEBUG="no" 21463fi 21464 21465# Check whether --enable-valgrind was given. 21466if test "${enable_valgrind+set}" = set; then : 21467 enableval=$enable_valgrind; VG="$enableval" 21468else 21469 VG="no" 21470fi 21471 21472 21473LIBS="" 21474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 21475$as_echo_n "checking for library containing clock_gettime... " >&6; } 21476if ${ac_cv_search_clock_gettime+:} false; then : 21477 $as_echo_n "(cached) " >&6 21478else 21479 ac_func_search_save_LIBS=$LIBS 21480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21481/* end confdefs.h. */ 21482 21483/* Override any GCC internal prototype to avoid an error. 21484 Use char because int might match the return type of a GCC 21485 builtin and then its argument prototype would still apply. */ 21486#ifdef __cplusplus 21487extern "C" 21488#endif 21489char clock_gettime (); 21490int 21491main () 21492{ 21493return clock_gettime (); 21494 ; 21495 return 0; 21496} 21497_ACEOF 21498for ac_lib in '' rt; do 21499 if test -z "$ac_lib"; then 21500 ac_res="none required" 21501 else 21502 ac_res=-l$ac_lib 21503 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21504 fi 21505 if ac_fn_c_try_link "$LINENO"; then : 21506 ac_cv_search_clock_gettime=$ac_res 21507fi 21508rm -f core conftest.err conftest.$ac_objext \ 21509 conftest$ac_exeext 21510 if ${ac_cv_search_clock_gettime+:} false; then : 21511 break 21512fi 21513done 21514if ${ac_cv_search_clock_gettime+:} false; then : 21515 21516else 21517 ac_cv_search_clock_gettime=no 21518fi 21519rm conftest.$ac_ext 21520LIBS=$ac_func_search_save_LIBS 21521fi 21522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21523$as_echo "$ac_cv_search_clock_gettime" >&6; } 21524ac_res=$ac_cv_search_clock_gettime 21525if test "$ac_res" != no; then : 21526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21527 CLOCK_GETTIME_LIBS=$LIBS 21528fi 21529 21530 21531 21532sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 21533 21534 if test "x$DEBUG" != "xno"; then 21535 DEBUG_TRUE= 21536 DEBUG_FALSE='#' 21537else 21538 DEBUG_TRUE='#' 21539 DEBUG_FALSE= 21540fi 21541 21542 if test "x$DEBUG" = "xfull"; then 21543 FULL_DEBUG_TRUE= 21544 FULL_DEBUG_FALSE='#' 21545else 21546 FULL_DEBUG_TRUE='#' 21547 FULL_DEBUG_FALSE= 21548fi 21549 21550if test "x$DEBUG" = "xno"; then 21551 21552$as_echo "#define NDEBUG 1" >>confdefs.h 21553 21554else 21555 if test "x$VG" != "xyes"; then 21556 VG=auto 21557 fi 21558fi 21559debug_msg="" 21560have_valgrind="no" 21561if test "x$VG" != "xno"; then 21562 21563pkg_failed=no 21564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 21565$as_echo_n "checking for VALGRIND... " >&6; } 21566 21567if test -n "$VALGRIND_CFLAGS"; then 21568 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" 21569 elif test -n "$PKG_CONFIG"; then 21570 if test -n "$PKG_CONFIG" && \ 21571 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 21572 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 21573 ac_status=$? 21574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21575 test $ac_status = 0; }; then 21576 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` 21577 test "x$?" != "x0" && pkg_failed=yes 21578else 21579 pkg_failed=yes 21580fi 21581 else 21582 pkg_failed=untried 21583fi 21584if test -n "$VALGRIND_LIBS"; then 21585 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" 21586 elif test -n "$PKG_CONFIG"; then 21587 if test -n "$PKG_CONFIG" && \ 21588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 21589 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 21590 ac_status=$? 21591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21592 test $ac_status = 0; }; then 21593 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` 21594 test "x$?" != "x0" && pkg_failed=yes 21595else 21596 pkg_failed=yes 21597fi 21598 else 21599 pkg_failed=untried 21600fi 21601 21602 21603 21604if test $pkg_failed = yes; then 21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21606$as_echo "no" >&6; } 21607 21608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21609 _pkg_short_errors_supported=yes 21610else 21611 _pkg_short_errors_supported=no 21612fi 21613 if test $_pkg_short_errors_supported = yes; then 21614 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` 21615 else 21616 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` 21617 fi 21618 # Put the nasty error message in config.log where it belongs 21619 echo "$VALGRIND_PKG_ERRORS" >&5 21620 21621 have_valgrind="no" 21622elif test $pkg_failed = untried; then 21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21624$as_echo "no" >&6; } 21625 have_valgrind="no" 21626else 21627 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS 21628 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS 21629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21630$as_echo "yes" >&6; } 21631 have_valgrind="yes" 21632fi 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include valgrind support" >&5 21634$as_echo_n "checking whether to include valgrind support... " >&6; } 21635 if test "x$have_valgrind" = "xyes"; then 21636 21637$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h 21638 21639 else 21640 if test "x$VG" = "xyes"; then 21641 as_fn_error $? "valgrind support requested, but valgrind-dev headers not found" "$LINENO" 5 21642 fi 21643 fi 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind ($VG)" >&5 21645$as_echo "$have_valgrind ($VG)" >&6; } 21646fi 21647 if test "x$have_valgrind" = "xyes"; then 21648 VALGRIND_TRUE= 21649 VALGRIND_FALSE='#' 21650else 21651 VALGRIND_TRUE='#' 21652 VALGRIND_FALSE= 21653fi 21654 21655if test "x$have_valgrind" = "xyes"; then 21656 debug_msg="$debug_msg valgrind" 21657fi 21658if test "x$DEBUG" = "xsync"; then 21659 21660$as_echo "#define DEBUG_SYNC 1" >>confdefs.h 21661 21662 debug_msg="$debug_msg sync" 21663fi 21664if test "x$DEBUG" = "xmemory"; then 21665 21666$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h 21667 21668 debug_msg="$debug_msg memory" 21669fi 21670if test "x$DEBUG" = "xpixmap"; then 21671 21672$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h 21673 21674 debug_msg="$debug_msg pixmaps" 21675fi 21676if test "x$DEBUG" = "xfull"; then 21677 21678$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h 21679 21680 21681$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h 21682 21683 21684$as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h 21685 21686 CFLAGS="$CFLAGS -O0 -ggdb3" 21687 debug_msg=" full" 21688fi 21689if test "x$debug_msg" = "x"; then 21690 debug_msg=" none" 21691fi 21692 21693 21694ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 21695if test "x$ac_cv_func_getline" = xyes; then : 21696 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 21697 21698else 21699 case " $LIBOBJS " in 21700 *" getline.$ac_objext "* ) ;; 21701 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 21702 ;; 21703esac 21704 21705fi 21706 21707 21708 21709DRIVER_NAME="intel" 21710 21711 21712 21713 prefix_NONE= 21714 exec_prefix_NONE= 21715 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21716 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21717 eval ac_define_dir="\"$prefix\"" 21718 eval ac_define_dir="\"$ac_define_dir\"" 21719 PREFIX_PATH="$ac_define_dir" 21720 21721 21722cat >>confdefs.h <<_ACEOF 21723#define PREFIX_PATH "$ac_define_dir" 21724_ACEOF 21725 21726 test "$prefix_NONE" && prefix=NONE 21727 test "$exec_prefix_NONE" && exec_prefix=NONE 21728 21729 21730 prefix_NONE= 21731 exec_prefix_NONE= 21732 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 21733 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 21734 eval ac_define_dir="\"$libexecdir\"" 21735 eval ac_define_dir="\"$ac_define_dir\"" 21736 LIBEXEC_PATH="$ac_define_dir" 21737 21738 21739cat >>confdefs.h <<_ACEOF 21740#define LIBEXEC_PATH "$ac_define_dir" 21741_ACEOF 21742 21743 test "$prefix_NONE" && prefix=NONE 21744 test "$exec_prefix_NONE" && exec_prefix=NONE 21745 21746 21747ac_config_files="$ac_config_files Makefile man/Makefile libobj/Makefile src/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/render_program/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile src/uxa/Makefile xvmc/Makefile xvmc/shader/Makefile xvmc/shader/mc/Makefile xvmc/shader/vld/Makefile test/Makefile tools/Makefile tools/org.x.xf86-video-intel.backlight-helper.policy" 21748 21749cat >confcache <<\_ACEOF 21750# This file is a shell script that caches the results of configure 21751# tests run on this system so they can be shared between configure 21752# scripts and configure runs, see configure's option --config-cache. 21753# It is not useful on other systems. If it contains results you don't 21754# want to keep, you may remove or edit it. 21755# 21756# config.status only pays attention to the cache file if you give it 21757# the --recheck option to rerun configure. 21758# 21759# `ac_cv_env_foo' variables (set or unset) will be overridden when 21760# loading this file, other *unset* `ac_cv_foo' will be assigned the 21761# following values. 21762 21763_ACEOF 21764 21765# The following way of writing the cache mishandles newlines in values, 21766# but we know of no workaround that is simple, portable, and efficient. 21767# So, we kill variables containing newlines. 21768# Ultrix sh set writes to stderr and can't be redirected directly, 21769# and sets the high bit in the cache file unless we assign to the vars. 21770( 21771 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21772 eval ac_val=\$$ac_var 21773 case $ac_val in #( 21774 *${as_nl}*) 21775 case $ac_var in #( 21776 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21777$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21778 esac 21779 case $ac_var in #( 21780 _ | IFS | as_nl) ;; #( 21781 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21782 *) { eval $ac_var=; unset $ac_var;} ;; 21783 esac ;; 21784 esac 21785 done 21786 21787 (set) 2>&1 | 21788 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21789 *${as_nl}ac_space=\ *) 21790 # `set' does not quote correctly, so add quotes: double-quote 21791 # substitution turns \\\\ into \\, and sed turns \\ into \. 21792 sed -n \ 21793 "s/'/'\\\\''/g; 21794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21795 ;; #( 21796 *) 21797 # `set' quotes correctly as required by POSIX, so do not add quotes. 21798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21799 ;; 21800 esac | 21801 sort 21802) | 21803 sed ' 21804 /^ac_cv_env_/b end 21805 t clear 21806 :clear 21807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21808 t end 21809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21810 :end' >>confcache 21811if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21812 if test -w "$cache_file"; then 21813 if test "x$cache_file" != "x/dev/null"; then 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21815$as_echo "$as_me: updating cache $cache_file" >&6;} 21816 if test ! -f "$cache_file" || test -h "$cache_file"; then 21817 cat confcache >"$cache_file" 21818 else 21819 case $cache_file in #( 21820 */* | ?:*) 21821 mv -f confcache "$cache_file"$$ && 21822 mv -f "$cache_file"$$ "$cache_file" ;; #( 21823 *) 21824 mv -f confcache "$cache_file" ;; 21825 esac 21826 fi 21827 fi 21828 else 21829 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21830$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21831 fi 21832fi 21833rm -f confcache 21834 21835test "x$prefix" = xNONE && prefix=$ac_default_prefix 21836# Let make expand exec_prefix. 21837test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21838 21839DEFS=-DHAVE_CONFIG_H 21840 21841ac_libobjs= 21842ac_ltlibobjs= 21843U= 21844for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21845 # 1. Remove the extension, and $U if already installed. 21846 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21847 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21848 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21849 # will be set to the directory where LIBOBJS objects are built. 21850 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21851 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21852done 21853LIBOBJS=$ac_libobjs 21854 21855LTLIBOBJS=$ac_ltlibobjs 21856 21857 21858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21859$as_echo_n "checking that generated files are newer than configure... " >&6; } 21860 if test -n "$am_sleep_pid"; then 21861 # Hide warnings about reused PIDs. 21862 wait $am_sleep_pid 2>/dev/null 21863 fi 21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21865$as_echo "done" >&6; } 21866 if test -n "$EXEEXT"; then 21867 am__EXEEXT_TRUE= 21868 am__EXEEXT_FALSE='#' 21869else 21870 am__EXEEXT_TRUE='#' 21871 am__EXEEXT_FALSE= 21872fi 21873 21874if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21875 as_fn_error $? "conditional \"AMDEP\" was never defined. 21876Usually this means the macro was only invoked conditionally." "$LINENO" 5 21877fi 21878if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21879 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21880Usually this means the macro was only invoked conditionally." "$LINENO" 5 21881fi 21882if test -z "${BUILD_BACKLIGHT_HELPER_TRUE}" && test -z "${BUILD_BACKLIGHT_HELPER_FALSE}"; then 21883 as_fn_error $? "conditional \"BUILD_BACKLIGHT_HELPER\" was never defined. 21884Usually this means the macro was only invoked conditionally." "$LINENO" 5 21885fi 21886if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then 21887 as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined. 21888Usually this means the macro was only invoked conditionally." "$LINENO" 5 21889fi 21890if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then 21891 as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined. 21892Usually this means the macro was only invoked conditionally." "$LINENO" 5 21893fi 21894if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then 21895 as_fn_error $? "conditional \"HAVE_X11\" was never defined. 21896Usually this means the macro was only invoked conditionally." "$LINENO" 5 21897fi 21898if test -z "${X11_DRI3_TRUE}" && test -z "${X11_DRI3_FALSE}"; then 21899 as_fn_error $? "conditional \"X11_DRI3\" was never defined. 21900Usually this means the macro was only invoked conditionally." "$LINENO" 5 21901fi 21902if test -z "${X11_SHM_TRUE}" && test -z "${X11_SHM_FALSE}"; then 21903 as_fn_error $? "conditional \"X11_SHM\" was never defined. 21904Usually this means the macro was only invoked conditionally." "$LINENO" 5 21905fi 21906if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then 21907 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined. 21908Usually this means the macro was only invoked conditionally." "$LINENO" 5 21909fi 21910if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 21911 as_fn_error $? "conditional \"DGA\" was never defined. 21912Usually this means the macro was only invoked conditionally." "$LINENO" 5 21913fi 21914if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 21915 as_fn_error $? "conditional \"XAA\" was never defined. 21916Usually this means the macro was only invoked conditionally." "$LINENO" 5 21917fi 21918if test -z "${KMS_TRUE}" && test -z "${KMS_FALSE}"; then 21919 as_fn_error $? "conditional \"KMS\" was never defined. 21920Usually this means the macro was only invoked conditionally." "$LINENO" 5 21921fi 21922if test -z "${UMS_TRUE}" && test -z "${UMS_FALSE}"; then 21923 as_fn_error $? "conditional \"UMS\" was never defined. 21924Usually this means the macro was only invoked conditionally." "$LINENO" 5 21925fi 21926if test -z "${DRI1_TRUE}" && test -z "${DRI1_FALSE}"; then 21927 as_fn_error $? "conditional \"DRI1\" was never defined. 21928Usually this means the macro was only invoked conditionally." "$LINENO" 5 21929fi 21930if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 21931 as_fn_error $? "conditional \"DRI2\" was never defined. 21932Usually this means the macro was only invoked conditionally." "$LINENO" 5 21933fi 21934if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 21935 as_fn_error $? "conditional \"DRI3\" was never defined. 21936Usually this means the macro was only invoked conditionally." "$LINENO" 5 21937fi 21938if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 21939 as_fn_error $? "conditional \"PRESENT\" was never defined. 21940Usually this means the macro was only invoked conditionally." "$LINENO" 5 21941fi 21942if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then 21943 as_fn_error $? "conditional \"UXA\" was never defined. 21944Usually this means the macro was only invoked conditionally." "$LINENO" 5 21945fi 21946if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then 21947 as_fn_error $? "conditional \"SNA\" was never defined. 21948Usually this means the macro was only invoked conditionally." "$LINENO" 5 21949fi 21950if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 21951 as_fn_error $? "conditional \"XVMC\" was never defined. 21952Usually this means the macro was only invoked conditionally." "$LINENO" 5 21953fi 21954if test -z "${USE_RENDERNODE_TRUE}" && test -z "${USE_RENDERNODE_FALSE}"; then 21955 as_fn_error $? "conditional \"USE_RENDERNODE\" was never defined. 21956Usually this means the macro was only invoked conditionally." "$LINENO" 5 21957fi 21958if test -z "${USE_CREATE2_TRUE}" && test -z "${USE_CREATE2_FALSE}"; then 21959 as_fn_error $? "conditional \"USE_CREATE2\" was never defined. 21960Usually this means the macro was only invoked conditionally." "$LINENO" 5 21961fi 21962if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then 21963 as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined. 21964Usually this means the macro was only invoked conditionally." "$LINENO" 5 21965fi 21966if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 21967 as_fn_error $? "conditional \"DEBUG\" was never defined. 21968Usually this means the macro was only invoked conditionally." "$LINENO" 5 21969fi 21970if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then 21971 as_fn_error $? "conditional \"FULL_DEBUG\" was never defined. 21972Usually this means the macro was only invoked conditionally." "$LINENO" 5 21973fi 21974if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then 21975 as_fn_error $? "conditional \"VALGRIND\" was never defined. 21976Usually this means the macro was only invoked conditionally." "$LINENO" 5 21977fi 21978 21979: "${CONFIG_STATUS=./config.status}" 21980ac_write_fail=0 21981ac_clean_files_save=$ac_clean_files 21982ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21983{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21984$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21985as_write_fail=0 21986cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21987#! $SHELL 21988# Generated by $as_me. 21989# Run this file to recreate the current configuration. 21990# Compiler output produced by configure, useful for debugging 21991# configure, is in config.log if it exists. 21992 21993debug=false 21994ac_cs_recheck=false 21995ac_cs_silent=false 21996 21997SHELL=\${CONFIG_SHELL-$SHELL} 21998export SHELL 21999_ASEOF 22000cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22001## -------------------- ## 22002## M4sh Initialization. ## 22003## -------------------- ## 22004 22005# Be more Bourne compatible 22006DUALCASE=1; export DUALCASE # for MKS sh 22007if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22008 emulate sh 22009 NULLCMD=: 22010 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22011 # is contrary to our usage. Disable this feature. 22012 alias -g '${1+"$@"}'='"$@"' 22013 setopt NO_GLOB_SUBST 22014else 22015 case `(set -o) 2>/dev/null` in #( 22016 *posix*) : 22017 set -o posix ;; #( 22018 *) : 22019 ;; 22020esac 22021fi 22022 22023 22024as_nl=' 22025' 22026export as_nl 22027# Printing a long string crashes Solaris 7 /usr/bin/printf. 22028as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22029as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22030as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22031# Prefer a ksh shell builtin over an external printf program on Solaris, 22032# but without wasting forks for bash or zsh. 22033if test -z "$BASH_VERSION$ZSH_VERSION" \ 22034 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22035 as_echo='print -r --' 22036 as_echo_n='print -rn --' 22037elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22038 as_echo='printf %s\n' 22039 as_echo_n='printf %s' 22040else 22041 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22042 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22043 as_echo_n='/usr/ucb/echo -n' 22044 else 22045 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22046 as_echo_n_body='eval 22047 arg=$1; 22048 case $arg in #( 22049 *"$as_nl"*) 22050 expr "X$arg" : "X\\(.*\\)$as_nl"; 22051 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22052 esac; 22053 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22054 ' 22055 export as_echo_n_body 22056 as_echo_n='sh -c $as_echo_n_body as_echo' 22057 fi 22058 export as_echo_body 22059 as_echo='sh -c $as_echo_body as_echo' 22060fi 22061 22062# The user is always right. 22063if test "${PATH_SEPARATOR+set}" != set; then 22064 PATH_SEPARATOR=: 22065 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22066 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22067 PATH_SEPARATOR=';' 22068 } 22069fi 22070 22071 22072# IFS 22073# We need space, tab and new line, in precisely that order. Quoting is 22074# there to prevent editors from complaining about space-tab. 22075# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22076# splitting by setting IFS to empty value.) 22077IFS=" "" $as_nl" 22078 22079# Find who we are. Look in the path if we contain no directory separator. 22080as_myself= 22081case $0 in #(( 22082 *[\\/]* ) as_myself=$0 ;; 22083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22084for as_dir in $PATH 22085do 22086 IFS=$as_save_IFS 22087 test -z "$as_dir" && as_dir=. 22088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22089 done 22090IFS=$as_save_IFS 22091 22092 ;; 22093esac 22094# We did not find ourselves, most probably we were run as `sh COMMAND' 22095# in which case we are not to be found in the path. 22096if test "x$as_myself" = x; then 22097 as_myself=$0 22098fi 22099if test ! -f "$as_myself"; then 22100 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22101 exit 1 22102fi 22103 22104# Unset variables that we do not need and which cause bugs (e.g. in 22105# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22106# suppresses any "Segmentation fault" message there. '((' could 22107# trigger a bug in pdksh 5.2.14. 22108for as_var in BASH_ENV ENV MAIL MAILPATH 22109do eval test x\${$as_var+set} = xset \ 22110 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22111done 22112PS1='$ ' 22113PS2='> ' 22114PS4='+ ' 22115 22116# NLS nuisances. 22117LC_ALL=C 22118export LC_ALL 22119LANGUAGE=C 22120export LANGUAGE 22121 22122# CDPATH. 22123(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22124 22125 22126# as_fn_error STATUS ERROR [LINENO LOG_FD] 22127# ---------------------------------------- 22128# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22129# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22130# script with STATUS, using 1 if that was 0. 22131as_fn_error () 22132{ 22133 as_status=$1; test $as_status -eq 0 && as_status=1 22134 if test "$4"; then 22135 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22136 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22137 fi 22138 $as_echo "$as_me: error: $2" >&2 22139 as_fn_exit $as_status 22140} # as_fn_error 22141 22142 22143# as_fn_set_status STATUS 22144# ----------------------- 22145# Set $? to STATUS, without forking. 22146as_fn_set_status () 22147{ 22148 return $1 22149} # as_fn_set_status 22150 22151# as_fn_exit STATUS 22152# ----------------- 22153# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22154as_fn_exit () 22155{ 22156 set +e 22157 as_fn_set_status $1 22158 exit $1 22159} # as_fn_exit 22160 22161# as_fn_unset VAR 22162# --------------- 22163# Portably unset VAR. 22164as_fn_unset () 22165{ 22166 { eval $1=; unset $1;} 22167} 22168as_unset=as_fn_unset 22169# as_fn_append VAR VALUE 22170# ---------------------- 22171# Append the text in VALUE to the end of the definition contained in VAR. Take 22172# advantage of any shell optimizations that allow amortized linear growth over 22173# repeated appends, instead of the typical quadratic growth present in naive 22174# implementations. 22175if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22176 eval 'as_fn_append () 22177 { 22178 eval $1+=\$2 22179 }' 22180else 22181 as_fn_append () 22182 { 22183 eval $1=\$$1\$2 22184 } 22185fi # as_fn_append 22186 22187# as_fn_arith ARG... 22188# ------------------ 22189# Perform arithmetic evaluation on the ARGs, and store the result in the 22190# global $as_val. Take advantage of shells that can avoid forks. The arguments 22191# must be portable across $(()) and expr. 22192if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22193 eval 'as_fn_arith () 22194 { 22195 as_val=$(( $* )) 22196 }' 22197else 22198 as_fn_arith () 22199 { 22200 as_val=`expr "$@" || test $? -eq 1` 22201 } 22202fi # as_fn_arith 22203 22204 22205if expr a : '\(a\)' >/dev/null 2>&1 && 22206 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22207 as_expr=expr 22208else 22209 as_expr=false 22210fi 22211 22212if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22213 as_basename=basename 22214else 22215 as_basename=false 22216fi 22217 22218if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22219 as_dirname=dirname 22220else 22221 as_dirname=false 22222fi 22223 22224as_me=`$as_basename -- "$0" || 22225$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22226 X"$0" : 'X\(//\)$' \| \ 22227 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22228$as_echo X/"$0" | 22229 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22230 s//\1/ 22231 q 22232 } 22233 /^X\/\(\/\/\)$/{ 22234 s//\1/ 22235 q 22236 } 22237 /^X\/\(\/\).*/{ 22238 s//\1/ 22239 q 22240 } 22241 s/.*/./; q'` 22242 22243# Avoid depending upon Character Ranges. 22244as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22245as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22246as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22247as_cr_digits='0123456789' 22248as_cr_alnum=$as_cr_Letters$as_cr_digits 22249 22250ECHO_C= ECHO_N= ECHO_T= 22251case `echo -n x` in #((((( 22252-n*) 22253 case `echo 'xy\c'` in 22254 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22255 xy) ECHO_C='\c';; 22256 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22257 ECHO_T=' ';; 22258 esac;; 22259*) 22260 ECHO_N='-n';; 22261esac 22262 22263rm -f conf$$ conf$$.exe conf$$.file 22264if test -d conf$$.dir; then 22265 rm -f conf$$.dir/conf$$.file 22266else 22267 rm -f conf$$.dir 22268 mkdir conf$$.dir 2>/dev/null 22269fi 22270if (echo >conf$$.file) 2>/dev/null; then 22271 if ln -s conf$$.file conf$$ 2>/dev/null; then 22272 as_ln_s='ln -s' 22273 # ... but there are two gotchas: 22274 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22275 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22276 # In both cases, we have to default to `cp -pR'. 22277 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22278 as_ln_s='cp -pR' 22279 elif ln conf$$.file conf$$ 2>/dev/null; then 22280 as_ln_s=ln 22281 else 22282 as_ln_s='cp -pR' 22283 fi 22284else 22285 as_ln_s='cp -pR' 22286fi 22287rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22288rmdir conf$$.dir 2>/dev/null 22289 22290 22291# as_fn_mkdir_p 22292# ------------- 22293# Create "$as_dir" as a directory, including parents if necessary. 22294as_fn_mkdir_p () 22295{ 22296 22297 case $as_dir in #( 22298 -*) as_dir=./$as_dir;; 22299 esac 22300 test -d "$as_dir" || eval $as_mkdir_p || { 22301 as_dirs= 22302 while :; do 22303 case $as_dir in #( 22304 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22305 *) as_qdir=$as_dir;; 22306 esac 22307 as_dirs="'$as_qdir' $as_dirs" 22308 as_dir=`$as_dirname -- "$as_dir" || 22309$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22310 X"$as_dir" : 'X\(//\)[^/]' \| \ 22311 X"$as_dir" : 'X\(//\)$' \| \ 22312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22313$as_echo X"$as_dir" | 22314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22315 s//\1/ 22316 q 22317 } 22318 /^X\(\/\/\)[^/].*/{ 22319 s//\1/ 22320 q 22321 } 22322 /^X\(\/\/\)$/{ 22323 s//\1/ 22324 q 22325 } 22326 /^X\(\/\).*/{ 22327 s//\1/ 22328 q 22329 } 22330 s/.*/./; q'` 22331 test -d "$as_dir" && break 22332 done 22333 test -z "$as_dirs" || eval "mkdir $as_dirs" 22334 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22335 22336 22337} # as_fn_mkdir_p 22338if mkdir -p . 2>/dev/null; then 22339 as_mkdir_p='mkdir -p "$as_dir"' 22340else 22341 test -d ./-p && rmdir ./-p 22342 as_mkdir_p=false 22343fi 22344 22345 22346# as_fn_executable_p FILE 22347# ----------------------- 22348# Test if FILE is an executable regular file. 22349as_fn_executable_p () 22350{ 22351 test -f "$1" && test -x "$1" 22352} # as_fn_executable_p 22353as_test_x='test -x' 22354as_executable_p=as_fn_executable_p 22355 22356# Sed expression to map a string onto a valid CPP name. 22357as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22358 22359# Sed expression to map a string onto a valid variable name. 22360as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22361 22362 22363exec 6>&1 22364## ----------------------------------- ## 22365## Main body of $CONFIG_STATUS script. ## 22366## ----------------------------------- ## 22367_ASEOF 22368test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22369 22370cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22371# Save the log message, to keep $0 and so on meaningful, and to 22372# report actual input values of CONFIG_FILES etc. instead of their 22373# values after options handling. 22374ac_log=" 22375This file was extended by xf86-video-intel $as_me 2.99.917, which was 22376generated by GNU Autoconf 2.69. Invocation command line was 22377 22378 CONFIG_FILES = $CONFIG_FILES 22379 CONFIG_HEADERS = $CONFIG_HEADERS 22380 CONFIG_LINKS = $CONFIG_LINKS 22381 CONFIG_COMMANDS = $CONFIG_COMMANDS 22382 $ $0 $@ 22383 22384on `(hostname || uname -n) 2>/dev/null | sed 1q` 22385" 22386 22387_ACEOF 22388 22389case $ac_config_files in *" 22390"*) set x $ac_config_files; shift; ac_config_files=$*;; 22391esac 22392 22393case $ac_config_headers in *" 22394"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22395esac 22396 22397 22398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22399# Files that config.status was made for. 22400config_files="$ac_config_files" 22401config_headers="$ac_config_headers" 22402config_commands="$ac_config_commands" 22403 22404_ACEOF 22405 22406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22407ac_cs_usage="\ 22408\`$as_me' instantiates files and other configuration actions 22409from templates according to the current configuration. Unless the files 22410and actions are specified as TAGs, all are instantiated by default. 22411 22412Usage: $0 [OPTION]... [TAG]... 22413 22414 -h, --help print this help, then exit 22415 -V, --version print version number and configuration settings, then exit 22416 --config print configuration, then exit 22417 -q, --quiet, --silent 22418 do not print progress messages 22419 -d, --debug don't remove temporary files 22420 --recheck update $as_me by reconfiguring in the same conditions 22421 --file=FILE[:TEMPLATE] 22422 instantiate the configuration file FILE 22423 --header=FILE[:TEMPLATE] 22424 instantiate the configuration header FILE 22425 22426Configuration files: 22427$config_files 22428 22429Configuration headers: 22430$config_headers 22431 22432Configuration commands: 22433$config_commands 22434 22435Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 22436 22437_ACEOF 22438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22439ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22440ac_cs_version="\\ 22441xf86-video-intel config.status 2.99.917 22442configured by $0, generated by GNU Autoconf 2.69, 22443 with options \\"\$ac_cs_config\\" 22444 22445Copyright (C) 2012 Free Software Foundation, Inc. 22446This config.status script is free software; the Free Software Foundation 22447gives unlimited permission to copy, distribute and modify it." 22448 22449ac_pwd='$ac_pwd' 22450srcdir='$srcdir' 22451INSTALL='$INSTALL' 22452MKDIR_P='$MKDIR_P' 22453AWK='$AWK' 22454test -n "\$AWK" || AWK=awk 22455_ACEOF 22456 22457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22458# The default lists apply if the user does not specify any file. 22459ac_need_defaults=: 22460while test $# != 0 22461do 22462 case $1 in 22463 --*=?*) 22464 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22465 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22466 ac_shift=: 22467 ;; 22468 --*=) 22469 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22470 ac_optarg= 22471 ac_shift=: 22472 ;; 22473 *) 22474 ac_option=$1 22475 ac_optarg=$2 22476 ac_shift=shift 22477 ;; 22478 esac 22479 22480 case $ac_option in 22481 # Handling of the options. 22482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22483 ac_cs_recheck=: ;; 22484 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22485 $as_echo "$ac_cs_version"; exit ;; 22486 --config | --confi | --conf | --con | --co | --c ) 22487 $as_echo "$ac_cs_config"; exit ;; 22488 --debug | --debu | --deb | --de | --d | -d ) 22489 debug=: ;; 22490 --file | --fil | --fi | --f ) 22491 $ac_shift 22492 case $ac_optarg in 22493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22494 '') as_fn_error $? "missing file argument" ;; 22495 esac 22496 as_fn_append CONFIG_FILES " '$ac_optarg'" 22497 ac_need_defaults=false;; 22498 --header | --heade | --head | --hea ) 22499 $ac_shift 22500 case $ac_optarg in 22501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22502 esac 22503 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22504 ac_need_defaults=false;; 22505 --he | --h) 22506 # Conflict between --help and --header 22507 as_fn_error $? "ambiguous option: \`$1' 22508Try \`$0 --help' for more information.";; 22509 --help | --hel | -h ) 22510 $as_echo "$ac_cs_usage"; exit ;; 22511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22512 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22513 ac_cs_silent=: ;; 22514 22515 # This is an error. 22516 -*) as_fn_error $? "unrecognized option: \`$1' 22517Try \`$0 --help' for more information." ;; 22518 22519 *) as_fn_append ac_config_targets " $1" 22520 ac_need_defaults=false ;; 22521 22522 esac 22523 shift 22524done 22525 22526ac_configure_extra_args= 22527 22528if $ac_cs_silent; then 22529 exec 6>/dev/null 22530 ac_configure_extra_args="$ac_configure_extra_args --silent" 22531fi 22532 22533_ACEOF 22534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22535if \$ac_cs_recheck; then 22536 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22537 shift 22538 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22539 CONFIG_SHELL='$SHELL' 22540 export CONFIG_SHELL 22541 exec "\$@" 22542fi 22543 22544_ACEOF 22545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22546exec 5>>config.log 22547{ 22548 echo 22549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22550## Running $as_me. ## 22551_ASBOX 22552 $as_echo "$ac_log" 22553} >&5 22554 22555_ACEOF 22556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22557# 22558# INIT-COMMANDS 22559# 22560AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22561 22562 22563# The HP-UX ksh and POSIX shell print the target directory to stdout 22564# if CDPATH is set. 22565(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22566 22567sed_quote_subst='$sed_quote_subst' 22568double_quote_subst='$double_quote_subst' 22569delay_variable_subst='$delay_variable_subst' 22570enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22571macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22572macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22573enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22574pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22575enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22576SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22577ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22578PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22579host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22580host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22581host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22582build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22583build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22584build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22585SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22586Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22587GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22588EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22589FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22590LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22591NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22592LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22593max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22594ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22595exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22596lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22597lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22598lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22599lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22600lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22601reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22602reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22603OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22604deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22605file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22606file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22607want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22608DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22609sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22610AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22611AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22612archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22613STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22614RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22615old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22616old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22617old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22618lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22619CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22620CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22621compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22622GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22623lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22624lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22625lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22626lt_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"`' 22627nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22628lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22629objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22630MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22631lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22632lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22633lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22634lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22635lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22636need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22637MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22638DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22639NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22640LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22641OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22642OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22643libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22644shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22645extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22646archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22647enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22648export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22649whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22650compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22651old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22652old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22653archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22654archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22655module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22656module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22657with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22658allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22659no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22660hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22661hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22662hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22663hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22664hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22665hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22666hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22667inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22668link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22669always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22670export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22671exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22672include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22673prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22674postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22675file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22676variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22677need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22678need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22679version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22680runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22681shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22682shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22683libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22684library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22685soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22686install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22687postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22688postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22689finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22690finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22691hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22692sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22693sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 22694hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22695enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22696enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22697enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22698old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22699striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22700 22701LTCC='$LTCC' 22702LTCFLAGS='$LTCFLAGS' 22703compiler='$compiler_DEFAULT' 22704 22705# A function that is used when there is no print builtin or printf. 22706func_fallback_echo () 22707{ 22708 eval 'cat <<_LTECHO_EOF 22709\$1 22710_LTECHO_EOF' 22711} 22712 22713# Quote evaled strings. 22714for var in SHELL \ 22715ECHO \ 22716PATH_SEPARATOR \ 22717SED \ 22718GREP \ 22719EGREP \ 22720FGREP \ 22721LD \ 22722NM \ 22723LN_S \ 22724lt_SP2NL \ 22725lt_NL2SP \ 22726reload_flag \ 22727OBJDUMP \ 22728deplibs_check_method \ 22729file_magic_cmd \ 22730file_magic_glob \ 22731want_nocaseglob \ 22732DLLTOOL \ 22733sharedlib_from_linklib_cmd \ 22734AR \ 22735AR_FLAGS \ 22736archiver_list_spec \ 22737STRIP \ 22738RANLIB \ 22739CC \ 22740CFLAGS \ 22741compiler \ 22742lt_cv_sys_global_symbol_pipe \ 22743lt_cv_sys_global_symbol_to_cdecl \ 22744lt_cv_sys_global_symbol_to_c_name_address \ 22745lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22746nm_file_list_spec \ 22747lt_prog_compiler_no_builtin_flag \ 22748lt_prog_compiler_pic \ 22749lt_prog_compiler_wl \ 22750lt_prog_compiler_static \ 22751lt_cv_prog_compiler_c_o \ 22752need_locks \ 22753MANIFEST_TOOL \ 22754DSYMUTIL \ 22755NMEDIT \ 22756LIPO \ 22757OTOOL \ 22758OTOOL64 \ 22759shrext_cmds \ 22760export_dynamic_flag_spec \ 22761whole_archive_flag_spec \ 22762compiler_needs_object \ 22763with_gnu_ld \ 22764allow_undefined_flag \ 22765no_undefined_flag \ 22766hardcode_libdir_flag_spec \ 22767hardcode_libdir_separator \ 22768exclude_expsyms \ 22769include_expsyms \ 22770file_list_spec \ 22771variables_saved_for_relink \ 22772libname_spec \ 22773library_names_spec \ 22774soname_spec \ 22775install_override_mode \ 22776finish_eval \ 22777old_striplib \ 22778striplib; do 22779 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22780 *[\\\\\\\`\\"\\\$]*) 22781 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22782 ;; 22783 *) 22784 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22785 ;; 22786 esac 22787done 22788 22789# Double-quote double-evaled strings. 22790for var in reload_cmds \ 22791old_postinstall_cmds \ 22792old_postuninstall_cmds \ 22793old_archive_cmds \ 22794extract_expsyms_cmds \ 22795old_archive_from_new_cmds \ 22796old_archive_from_expsyms_cmds \ 22797archive_cmds \ 22798archive_expsym_cmds \ 22799module_cmds \ 22800module_expsym_cmds \ 22801export_symbols_cmds \ 22802prelink_cmds \ 22803postlink_cmds \ 22804postinstall_cmds \ 22805postuninstall_cmds \ 22806finish_cmds \ 22807sys_lib_search_path_spec \ 22808sys_lib_dlsearch_path_spec; do 22809 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22810 *[\\\\\\\`\\"\\\$]*) 22811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22812 ;; 22813 *) 22814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22815 ;; 22816 esac 22817done 22818 22819ac_aux_dir='$ac_aux_dir' 22820xsi_shell='$xsi_shell' 22821lt_shell_append='$lt_shell_append' 22822 22823# See if we are running on zsh, and set the options which allow our 22824# commands through without removal of \ escapes INIT. 22825if test -n "\${ZSH_VERSION+set}" ; then 22826 setopt NO_GLOB_SUBST 22827fi 22828 22829 22830 PACKAGE='$PACKAGE' 22831 VERSION='$VERSION' 22832 TIMESTAMP='$TIMESTAMP' 22833 RM='$RM' 22834 ofile='$ofile' 22835 22836 22837 22838 22839_ACEOF 22840 22841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22842 22843# Handling of arguments. 22844for ac_config_target in $ac_config_targets 22845do 22846 case $ac_config_target in 22847 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22848 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22849 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22850 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22851 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22852 "libobj/Makefile") CONFIG_FILES="$CONFIG_FILES libobj/Makefile" ;; 22853 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22854 "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;; 22855 "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;; 22856 "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;; 22857 "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;; 22858 "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;; 22859 "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;; 22860 "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;; 22861 "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;; 22862 "xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/Makefile" ;; 22863 "xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/Makefile" ;; 22864 "xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/mc/Makefile" ;; 22865 "xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/vld/Makefile" ;; 22866 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 22867 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 22868 "tools/org.x.xf86-video-intel.backlight-helper.policy") CONFIG_FILES="$CONFIG_FILES tools/org.x.xf86-video-intel.backlight-helper.policy" ;; 22869 22870 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22871 esac 22872done 22873 22874 22875# If the user did not use the arguments to specify the items to instantiate, 22876# then the envvar interface is used. Set only those that are not. 22877# We use the long form for the default assignment because of an extremely 22878# bizarre bug on SunOS 4.1.3. 22879if $ac_need_defaults; then 22880 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22881 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22882 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22883fi 22884 22885# Have a temporary directory for convenience. Make it in the build tree 22886# simply because there is no reason against having it here, and in addition, 22887# creating and moving files from /tmp can sometimes cause problems. 22888# Hook for its removal unless debugging. 22889# Note that there is a small window in which the directory will not be cleaned: 22890# after its creation but before its name has been assigned to `$tmp'. 22891$debug || 22892{ 22893 tmp= ac_tmp= 22894 trap 'exit_status=$? 22895 : "${ac_tmp:=$tmp}" 22896 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22897' 0 22898 trap 'as_fn_exit 1' 1 2 13 15 22899} 22900# Create a (secure) tmp directory for tmp files. 22901 22902{ 22903 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22904 test -d "$tmp" 22905} || 22906{ 22907 tmp=./conf$$-$RANDOM 22908 (umask 077 && mkdir "$tmp") 22909} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22910ac_tmp=$tmp 22911 22912# Set up the scripts for CONFIG_FILES section. 22913# No need to generate them if there are no CONFIG_FILES. 22914# This happens for instance with `./config.status config.h'. 22915if test -n "$CONFIG_FILES"; then 22916 22917 22918ac_cr=`echo X | tr X '\015'` 22919# On cygwin, bash can eat \r inside `` if the user requested igncr. 22920# But we know of no other shell where ac_cr would be empty at this 22921# point, so we can use a bashism as a fallback. 22922if test "x$ac_cr" = x; then 22923 eval ac_cr=\$\'\\r\' 22924fi 22925ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22926if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22927 ac_cs_awk_cr='\\r' 22928else 22929 ac_cs_awk_cr=$ac_cr 22930fi 22931 22932echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22933_ACEOF 22934 22935 22936{ 22937 echo "cat >conf$$subs.awk <<_ACEOF" && 22938 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22939 echo "_ACEOF" 22940} >conf$$subs.sh || 22941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22942ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22943ac_delim='%!_!# ' 22944for ac_last_try in false false false false false :; do 22945 . ./conf$$subs.sh || 22946 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22947 22948 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22949 if test $ac_delim_n = $ac_delim_num; then 22950 break 22951 elif $ac_last_try; then 22952 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22953 else 22954 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22955 fi 22956done 22957rm -f conf$$subs.sh 22958 22959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22960cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22961_ACEOF 22962sed -n ' 22963h 22964s/^/S["/; s/!.*/"]=/ 22965p 22966g 22967s/^[^!]*!// 22968:repl 22969t repl 22970s/'"$ac_delim"'$// 22971t delim 22972:nl 22973h 22974s/\(.\{148\}\)..*/\1/ 22975t more1 22976s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22977p 22978n 22979b repl 22980:more1 22981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22982p 22983g 22984s/.\{148\}// 22985t nl 22986:delim 22987h 22988s/\(.\{148\}\)..*/\1/ 22989t more2 22990s/["\\]/\\&/g; s/^/"/; s/$/"/ 22991p 22992b 22993:more2 22994s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22995p 22996g 22997s/.\{148\}// 22998t delim 22999' <conf$$subs.awk | sed ' 23000/^[^""]/{ 23001 N 23002 s/\n// 23003} 23004' >>$CONFIG_STATUS || ac_write_fail=1 23005rm -f conf$$subs.awk 23006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23007_ACAWK 23008cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23009 for (key in S) S_is_set[key] = 1 23010 FS = "" 23011 23012} 23013{ 23014 line = $ 0 23015 nfields = split(line, field, "@") 23016 substed = 0 23017 len = length(field[1]) 23018 for (i = 2; i < nfields; i++) { 23019 key = field[i] 23020 keylen = length(key) 23021 if (S_is_set[key]) { 23022 value = S[key] 23023 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23024 len += length(value) + length(field[++i]) 23025 substed = 1 23026 } else 23027 len += 1 + keylen 23028 } 23029 23030 print line 23031} 23032 23033_ACAWK 23034_ACEOF 23035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23036if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23038else 23039 cat 23040fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23041 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23042_ACEOF 23043 23044# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23045# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23046# trailing colons and then remove the whole line if VPATH becomes empty 23047# (actually we leave an empty line to preserve line numbers). 23048if test "x$srcdir" = x.; then 23049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23050h 23051s/// 23052s/^/:/ 23053s/[ ]*$/:/ 23054s/:\$(srcdir):/:/g 23055s/:\${srcdir}:/:/g 23056s/:@srcdir@:/:/g 23057s/^:*// 23058s/:*$// 23059x 23060s/\(=[ ]*\).*/\1/ 23061G 23062s/\n// 23063s/^[^=]*=[ ]*$// 23064}' 23065fi 23066 23067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23068fi # test -n "$CONFIG_FILES" 23069 23070# Set up the scripts for CONFIG_HEADERS section. 23071# No need to generate them if there are no CONFIG_HEADERS. 23072# This happens for instance with `./config.status Makefile'. 23073if test -n "$CONFIG_HEADERS"; then 23074cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23075BEGIN { 23076_ACEOF 23077 23078# Transform confdefs.h into an awk script `defines.awk', embedded as 23079# here-document in config.status, that substitutes the proper values into 23080# config.h.in to produce config.h. 23081 23082# Create a delimiter string that does not exist in confdefs.h, to ease 23083# handling of long lines. 23084ac_delim='%!_!# ' 23085for ac_last_try in false false :; do 23086 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23087 if test -z "$ac_tt"; then 23088 break 23089 elif $ac_last_try; then 23090 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23091 else 23092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23093 fi 23094done 23095 23096# For the awk script, D is an array of macro values keyed by name, 23097# likewise P contains macro parameters if any. Preserve backslash 23098# newline sequences. 23099 23100ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23101sed -n ' 23102s/.\{148\}/&'"$ac_delim"'/g 23103t rset 23104:rset 23105s/^[ ]*#[ ]*define[ ][ ]*/ / 23106t def 23107d 23108:def 23109s/\\$// 23110t bsnl 23111s/["\\]/\\&/g 23112s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23113D["\1"]=" \3"/p 23114s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23115d 23116:bsnl 23117s/["\\]/\\&/g 23118s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23119D["\1"]=" \3\\\\\\n"\\/p 23120t cont 23121s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23122t cont 23123d 23124:cont 23125n 23126s/.\{148\}/&'"$ac_delim"'/g 23127t clear 23128:clear 23129s/\\$// 23130t bsnlc 23131s/["\\]/\\&/g; s/^/"/; s/$/"/p 23132d 23133:bsnlc 23134s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23135b cont 23136' <confdefs.h | sed ' 23137s/'"$ac_delim"'/"\\\ 23138"/g' >>$CONFIG_STATUS || ac_write_fail=1 23139 23140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23141 for (key in D) D_is_set[key] = 1 23142 FS = "" 23143} 23144/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23145 line = \$ 0 23146 split(line, arg, " ") 23147 if (arg[1] == "#") { 23148 defundef = arg[2] 23149 mac1 = arg[3] 23150 } else { 23151 defundef = substr(arg[1], 2) 23152 mac1 = arg[2] 23153 } 23154 split(mac1, mac2, "(") #) 23155 macro = mac2[1] 23156 prefix = substr(line, 1, index(line, defundef) - 1) 23157 if (D_is_set[macro]) { 23158 # Preserve the white space surrounding the "#". 23159 print prefix "define", macro P[macro] D[macro] 23160 next 23161 } else { 23162 # Replace #undef with comments. This is necessary, for example, 23163 # in the case of _POSIX_SOURCE, which is predefined and required 23164 # on some systems where configure will not decide to define it. 23165 if (defundef == "undef") { 23166 print "/*", prefix defundef, macro, "*/" 23167 next 23168 } 23169 } 23170} 23171{ print } 23172_ACAWK 23173_ACEOF 23174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23175 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23176fi # test -n "$CONFIG_HEADERS" 23177 23178 23179eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23180shift 23181for ac_tag 23182do 23183 case $ac_tag in 23184 :[FHLC]) ac_mode=$ac_tag; continue;; 23185 esac 23186 case $ac_mode$ac_tag in 23187 :[FHL]*:*);; 23188 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23189 :[FH]-) ac_tag=-:-;; 23190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23191 esac 23192 ac_save_IFS=$IFS 23193 IFS=: 23194 set x $ac_tag 23195 IFS=$ac_save_IFS 23196 shift 23197 ac_file=$1 23198 shift 23199 23200 case $ac_mode in 23201 :L) ac_source=$1;; 23202 :[FH]) 23203 ac_file_inputs= 23204 for ac_f 23205 do 23206 case $ac_f in 23207 -) ac_f="$ac_tmp/stdin";; 23208 *) # Look for the file first in the build tree, then in the source tree 23209 # (if the path is not absolute). The absolute path cannot be DOS-style, 23210 # because $ac_f cannot contain `:'. 23211 test -f "$ac_f" || 23212 case $ac_f in 23213 [\\/$]*) false;; 23214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23215 esac || 23216 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23217 esac 23218 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23219 as_fn_append ac_file_inputs " '$ac_f'" 23220 done 23221 23222 # Let's still pretend it is `configure' which instantiates (i.e., don't 23223 # use $as_me), people would be surprised to read: 23224 # /* config.h. Generated by config.status. */ 23225 configure_input='Generated from '` 23226 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23227 `' by configure.' 23228 if test x"$ac_file" != x-; then 23229 configure_input="$ac_file. $configure_input" 23230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23231$as_echo "$as_me: creating $ac_file" >&6;} 23232 fi 23233 # Neutralize special characters interpreted by sed in replacement strings. 23234 case $configure_input in #( 23235 *\&* | *\|* | *\\* ) 23236 ac_sed_conf_input=`$as_echo "$configure_input" | 23237 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23238 *) ac_sed_conf_input=$configure_input;; 23239 esac 23240 23241 case $ac_tag in 23242 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23244 esac 23245 ;; 23246 esac 23247 23248 ac_dir=`$as_dirname -- "$ac_file" || 23249$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23250 X"$ac_file" : 'X\(//\)[^/]' \| \ 23251 X"$ac_file" : 'X\(//\)$' \| \ 23252 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23253$as_echo X"$ac_file" | 23254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23255 s//\1/ 23256 q 23257 } 23258 /^X\(\/\/\)[^/].*/{ 23259 s//\1/ 23260 q 23261 } 23262 /^X\(\/\/\)$/{ 23263 s//\1/ 23264 q 23265 } 23266 /^X\(\/\).*/{ 23267 s//\1/ 23268 q 23269 } 23270 s/.*/./; q'` 23271 as_dir="$ac_dir"; as_fn_mkdir_p 23272 ac_builddir=. 23273 23274case "$ac_dir" in 23275.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23276*) 23277 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23278 # A ".." for each directory in $ac_dir_suffix. 23279 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23280 case $ac_top_builddir_sub in 23281 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23282 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23283 esac ;; 23284esac 23285ac_abs_top_builddir=$ac_pwd 23286ac_abs_builddir=$ac_pwd$ac_dir_suffix 23287# for backward compatibility: 23288ac_top_builddir=$ac_top_build_prefix 23289 23290case $srcdir in 23291 .) # We are building in place. 23292 ac_srcdir=. 23293 ac_top_srcdir=$ac_top_builddir_sub 23294 ac_abs_top_srcdir=$ac_pwd ;; 23295 [\\/]* | ?:[\\/]* ) # Absolute name. 23296 ac_srcdir=$srcdir$ac_dir_suffix; 23297 ac_top_srcdir=$srcdir 23298 ac_abs_top_srcdir=$srcdir ;; 23299 *) # Relative name. 23300 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23301 ac_top_srcdir=$ac_top_build_prefix$srcdir 23302 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23303esac 23304ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23305 23306 23307 case $ac_mode in 23308 :F) 23309 # 23310 # CONFIG_FILE 23311 # 23312 23313 case $INSTALL in 23314 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23315 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23316 esac 23317 ac_MKDIR_P=$MKDIR_P 23318 case $MKDIR_P in 23319 [\\/$]* | ?:[\\/]* ) ;; 23320 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23321 esac 23322_ACEOF 23323 23324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23325# If the template does not know about datarootdir, expand it. 23326# FIXME: This hack should be removed a few years after 2.60. 23327ac_datarootdir_hack=; ac_datarootdir_seen= 23328ac_sed_dataroot=' 23329/datarootdir/ { 23330 p 23331 q 23332} 23333/@datadir@/p 23334/@docdir@/p 23335/@infodir@/p 23336/@localedir@/p 23337/@mandir@/p' 23338case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23339*datarootdir*) ac_datarootdir_seen=yes;; 23340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23342$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23343_ACEOF 23344cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23345 ac_datarootdir_hack=' 23346 s&@datadir@&$datadir&g 23347 s&@docdir@&$docdir&g 23348 s&@infodir@&$infodir&g 23349 s&@localedir@&$localedir&g 23350 s&@mandir@&$mandir&g 23351 s&\\\${datarootdir}&$datarootdir&g' ;; 23352esac 23353_ACEOF 23354 23355# Neutralize VPATH when `$srcdir' = `.'. 23356# Shell code in configure.ac might set extrasub. 23357# FIXME: do we really want to maintain this feature? 23358cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23359ac_sed_extra="$ac_vpsub 23360$extrasub 23361_ACEOF 23362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23363:t 23364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23365s|@configure_input@|$ac_sed_conf_input|;t t 23366s&@top_builddir@&$ac_top_builddir_sub&;t t 23367s&@top_build_prefix@&$ac_top_build_prefix&;t t 23368s&@srcdir@&$ac_srcdir&;t t 23369s&@abs_srcdir@&$ac_abs_srcdir&;t t 23370s&@top_srcdir@&$ac_top_srcdir&;t t 23371s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23372s&@builddir@&$ac_builddir&;t t 23373s&@abs_builddir@&$ac_abs_builddir&;t t 23374s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23375s&@INSTALL@&$ac_INSTALL&;t t 23376s&@MKDIR_P@&$ac_MKDIR_P&;t t 23377$ac_datarootdir_hack 23378" 23379eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23380 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23381 23382test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23383 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23385 "$ac_tmp/out"`; test -z "$ac_out"; } && 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23387which seems to be undefined. Please make sure it is defined" >&5 23388$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23389which seems to be undefined. Please make sure it is defined" >&2;} 23390 23391 rm -f "$ac_tmp/stdin" 23392 case $ac_file in 23393 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23394 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23395 esac \ 23396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23397 ;; 23398 :H) 23399 # 23400 # CONFIG_HEADER 23401 # 23402 if test x"$ac_file" != x-; then 23403 { 23404 $as_echo "/* $configure_input */" \ 23405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23406 } >"$ac_tmp/config.h" \ 23407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23408 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23409 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23410$as_echo "$as_me: $ac_file is unchanged" >&6;} 23411 else 23412 rm -f "$ac_file" 23413 mv "$ac_tmp/config.h" "$ac_file" \ 23414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23415 fi 23416 else 23417 $as_echo "/* $configure_input */" \ 23418 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23419 || as_fn_error $? "could not create -" "$LINENO" 5 23420 fi 23421# Compute "$ac_file"'s index in $config_headers. 23422_am_arg="$ac_file" 23423_am_stamp_count=1 23424for _am_header in $config_headers :; do 23425 case $_am_header in 23426 $_am_arg | $_am_arg:* ) 23427 break ;; 23428 * ) 23429 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23430 esac 23431done 23432echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23433$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23434 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23435 X"$_am_arg" : 'X\(//\)$' \| \ 23436 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23437$as_echo X"$_am_arg" | 23438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23439 s//\1/ 23440 q 23441 } 23442 /^X\(\/\/\)[^/].*/{ 23443 s//\1/ 23444 q 23445 } 23446 /^X\(\/\/\)$/{ 23447 s//\1/ 23448 q 23449 } 23450 /^X\(\/\).*/{ 23451 s//\1/ 23452 q 23453 } 23454 s/.*/./; q'`/stamp-h$_am_stamp_count 23455 ;; 23456 23457 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23458$as_echo "$as_me: executing $ac_file commands" >&6;} 23459 ;; 23460 esac 23461 23462 23463 case $ac_file$ac_mode in 23464 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23465 # Older Autoconf quotes --file arguments for eval, but not when files 23466 # are listed without --file. Let's play safe and only enable the eval 23467 # if we detect the quoting. 23468 case $CONFIG_FILES in 23469 *\'*) eval set x "$CONFIG_FILES" ;; 23470 *) set x $CONFIG_FILES ;; 23471 esac 23472 shift 23473 for mf 23474 do 23475 # Strip MF so we end up with the name of the file. 23476 mf=`echo "$mf" | sed -e 's/:.*$//'` 23477 # Check whether this is an Automake generated Makefile or not. 23478 # We used to match only the files named 'Makefile.in', but 23479 # some people rename them; so instead we look at the file content. 23480 # Grep'ing the first line is not enough: some people post-process 23481 # each Makefile.in and add a new line on top of each file to say so. 23482 # Grep'ing the whole file is not good either: AIX grep has a line 23483 # limit of 2048, but all sed's we know have understand at least 4000. 23484 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23485 dirpart=`$as_dirname -- "$mf" || 23486$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23487 X"$mf" : 'X\(//\)[^/]' \| \ 23488 X"$mf" : 'X\(//\)$' \| \ 23489 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23490$as_echo X"$mf" | 23491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23492 s//\1/ 23493 q 23494 } 23495 /^X\(\/\/\)[^/].*/{ 23496 s//\1/ 23497 q 23498 } 23499 /^X\(\/\/\)$/{ 23500 s//\1/ 23501 q 23502 } 23503 /^X\(\/\).*/{ 23504 s//\1/ 23505 q 23506 } 23507 s/.*/./; q'` 23508 else 23509 continue 23510 fi 23511 # Extract the definition of DEPDIR, am__include, and am__quote 23512 # from the Makefile without running 'make'. 23513 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23514 test -z "$DEPDIR" && continue 23515 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23516 test -z "$am__include" && continue 23517 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23518 # Find all dependency output files, they are included files with 23519 # $(DEPDIR) in their names. We invoke sed twice because it is the 23520 # simplest approach to changing $(DEPDIR) to its actual value in the 23521 # expansion. 23522 for file in `sed -n " 23523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 23525 # Make sure the directory exists. 23526 test -f "$dirpart/$file" && continue 23527 fdir=`$as_dirname -- "$file" || 23528$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23529 X"$file" : 'X\(//\)[^/]' \| \ 23530 X"$file" : 'X\(//\)$' \| \ 23531 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23532$as_echo X"$file" | 23533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23534 s//\1/ 23535 q 23536 } 23537 /^X\(\/\/\)[^/].*/{ 23538 s//\1/ 23539 q 23540 } 23541 /^X\(\/\/\)$/{ 23542 s//\1/ 23543 q 23544 } 23545 /^X\(\/\).*/{ 23546 s//\1/ 23547 q 23548 } 23549 s/.*/./; q'` 23550 as_dir=$dirpart/$fdir; as_fn_mkdir_p 23551 # echo "creating $dirpart/$file" 23552 echo '# dummy' > "$dirpart/$file" 23553 done 23554 done 23555} 23556 ;; 23557 "libtool":C) 23558 23559 # See if we are running on zsh, and set the options which allow our 23560 # commands through without removal of \ escapes. 23561 if test -n "${ZSH_VERSION+set}" ; then 23562 setopt NO_GLOB_SUBST 23563 fi 23564 23565 cfgfile="${ofile}T" 23566 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23567 $RM "$cfgfile" 23568 23569 cat <<_LT_EOF >> "$cfgfile" 23570#! $SHELL 23571 23572# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 23573# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 23574# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23575# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23576# 23577# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 23578# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 23579# Foundation, Inc. 23580# Written by Gordon Matzigkeit, 1996 23581# 23582# This file is part of GNU Libtool. 23583# 23584# GNU Libtool is free software; you can redistribute it and/or 23585# modify it under the terms of the GNU General Public License as 23586# published by the Free Software Foundation; either version 2 of 23587# the License, or (at your option) any later version. 23588# 23589# As a special exception to the GNU General Public License, 23590# if you distribute this file as part of a program or library that 23591# is built using GNU Libtool, you may include this file under the 23592# same distribution terms that you use for the rest of that program. 23593# 23594# GNU Libtool is distributed in the hope that it will be useful, 23595# but WITHOUT ANY WARRANTY; without even the implied warranty of 23596# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23597# GNU General Public License for more details. 23598# 23599# You should have received a copy of the GNU General Public License 23600# along with GNU Libtool; see the file COPYING. If not, a copy 23601# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 23602# obtained by writing to the Free Software Foundation, Inc., 23603# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23604 23605 23606# The names of the tagged configurations supported by this script. 23607available_tags="" 23608 23609# ### BEGIN LIBTOOL CONFIG 23610 23611# Whether or not to build static libraries. 23612build_old_libs=$enable_static 23613 23614# Which release of libtool.m4 was used? 23615macro_version=$macro_version 23616macro_revision=$macro_revision 23617 23618# Whether or not to build shared libraries. 23619build_libtool_libs=$enable_shared 23620 23621# What type of objects to build. 23622pic_mode=$pic_mode 23623 23624# Whether or not to optimize for fast installation. 23625fast_install=$enable_fast_install 23626 23627# Shell to use when invoking shell scripts. 23628SHELL=$lt_SHELL 23629 23630# An echo program that protects backslashes. 23631ECHO=$lt_ECHO 23632 23633# The PATH separator for the build system. 23634PATH_SEPARATOR=$lt_PATH_SEPARATOR 23635 23636# The host system. 23637host_alias=$host_alias 23638host=$host 23639host_os=$host_os 23640 23641# The build system. 23642build_alias=$build_alias 23643build=$build 23644build_os=$build_os 23645 23646# A sed program that does not truncate output. 23647SED=$lt_SED 23648 23649# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23650Xsed="\$SED -e 1s/^X//" 23651 23652# A grep program that handles long lines. 23653GREP=$lt_GREP 23654 23655# An ERE matcher. 23656EGREP=$lt_EGREP 23657 23658# A literal string matcher. 23659FGREP=$lt_FGREP 23660 23661# A BSD- or MS-compatible name lister. 23662NM=$lt_NM 23663 23664# Whether we need soft or hard links. 23665LN_S=$lt_LN_S 23666 23667# What is the maximum length of a command? 23668max_cmd_len=$max_cmd_len 23669 23670# Object file suffix (normally "o"). 23671objext=$ac_objext 23672 23673# Executable file suffix (normally ""). 23674exeext=$exeext 23675 23676# whether the shell understands "unset". 23677lt_unset=$lt_unset 23678 23679# turn spaces into newlines. 23680SP2NL=$lt_lt_SP2NL 23681 23682# turn newlines into spaces. 23683NL2SP=$lt_lt_NL2SP 23684 23685# convert \$build file names to \$host format. 23686to_host_file_cmd=$lt_cv_to_host_file_cmd 23687 23688# convert \$build files to toolchain format. 23689to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23690 23691# An object symbol dumper. 23692OBJDUMP=$lt_OBJDUMP 23693 23694# Method to check whether dependent libraries are shared objects. 23695deplibs_check_method=$lt_deplibs_check_method 23696 23697# Command to use when deplibs_check_method = "file_magic". 23698file_magic_cmd=$lt_file_magic_cmd 23699 23700# How to find potential files when deplibs_check_method = "file_magic". 23701file_magic_glob=$lt_file_magic_glob 23702 23703# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23704want_nocaseglob=$lt_want_nocaseglob 23705 23706# DLL creation program. 23707DLLTOOL=$lt_DLLTOOL 23708 23709# Command to associate shared and link libraries. 23710sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23711 23712# The archiver. 23713AR=$lt_AR 23714 23715# Flags to create an archive. 23716AR_FLAGS=$lt_AR_FLAGS 23717 23718# How to feed a file listing to the archiver. 23719archiver_list_spec=$lt_archiver_list_spec 23720 23721# A symbol stripping program. 23722STRIP=$lt_STRIP 23723 23724# Commands used to install an old-style archive. 23725RANLIB=$lt_RANLIB 23726old_postinstall_cmds=$lt_old_postinstall_cmds 23727old_postuninstall_cmds=$lt_old_postuninstall_cmds 23728 23729# Whether to use a lock for old archive extraction. 23730lock_old_archive_extraction=$lock_old_archive_extraction 23731 23732# A C compiler. 23733LTCC=$lt_CC 23734 23735# LTCC compiler flags. 23736LTCFLAGS=$lt_CFLAGS 23737 23738# Take the output of nm and produce a listing of raw symbols and C names. 23739global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23740 23741# Transform the output of nm in a proper C declaration. 23742global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23743 23744# Transform the output of nm in a C name address pair. 23745global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23746 23747# Transform the output of nm in a C name address pair when lib prefix is needed. 23748global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23749 23750# Specify filename containing input files for \$NM. 23751nm_file_list_spec=$lt_nm_file_list_spec 23752 23753# The root where to search for dependent libraries,and in which our libraries should be installed. 23754lt_sysroot=$lt_sysroot 23755 23756# The name of the directory that contains temporary libtool files. 23757objdir=$objdir 23758 23759# Used to examine libraries when file_magic_cmd begins with "file". 23760MAGIC_CMD=$MAGIC_CMD 23761 23762# Must we lock files when doing compilation? 23763need_locks=$lt_need_locks 23764 23765# Manifest tool. 23766MANIFEST_TOOL=$lt_MANIFEST_TOOL 23767 23768# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23769DSYMUTIL=$lt_DSYMUTIL 23770 23771# Tool to change global to local symbols on Mac OS X. 23772NMEDIT=$lt_NMEDIT 23773 23774# Tool to manipulate fat objects and archives on Mac OS X. 23775LIPO=$lt_LIPO 23776 23777# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23778OTOOL=$lt_OTOOL 23779 23780# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23781OTOOL64=$lt_OTOOL64 23782 23783# Old archive suffix (normally "a"). 23784libext=$libext 23785 23786# Shared library suffix (normally ".so"). 23787shrext_cmds=$lt_shrext_cmds 23788 23789# The commands to extract the exported symbol list from a shared archive. 23790extract_expsyms_cmds=$lt_extract_expsyms_cmds 23791 23792# Variables whose values should be saved in libtool wrapper scripts and 23793# restored at link time. 23794variables_saved_for_relink=$lt_variables_saved_for_relink 23795 23796# Do we need the "lib" prefix for modules? 23797need_lib_prefix=$need_lib_prefix 23798 23799# Do we need a version for libraries? 23800need_version=$need_version 23801 23802# Library versioning type. 23803version_type=$version_type 23804 23805# Shared library runtime path variable. 23806runpath_var=$runpath_var 23807 23808# Shared library path variable. 23809shlibpath_var=$shlibpath_var 23810 23811# Is shlibpath searched before the hard-coded library search path? 23812shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23813 23814# Format of library name prefix. 23815libname_spec=$lt_libname_spec 23816 23817# List of archive names. First name is the real one, the rest are links. 23818# The last name is the one that the linker finds with -lNAME 23819library_names_spec=$lt_library_names_spec 23820 23821# The coded name of the library, if different from the real name. 23822soname_spec=$lt_soname_spec 23823 23824# Permission mode override for installation of shared libraries. 23825install_override_mode=$lt_install_override_mode 23826 23827# Command to use after installation of a shared archive. 23828postinstall_cmds=$lt_postinstall_cmds 23829 23830# Command to use after uninstallation of a shared archive. 23831postuninstall_cmds=$lt_postuninstall_cmds 23832 23833# Commands used to finish a libtool library installation in a directory. 23834finish_cmds=$lt_finish_cmds 23835 23836# As "finish_cmds", except a single script fragment to be evaled but 23837# not shown. 23838finish_eval=$lt_finish_eval 23839 23840# Whether we should hardcode library paths into libraries. 23841hardcode_into_libs=$hardcode_into_libs 23842 23843# Compile-time system search path for libraries. 23844sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23845 23846# Run-time system search path for libraries. 23847sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23848 23849# Whether dlopen is supported. 23850dlopen_support=$enable_dlopen 23851 23852# Whether dlopen of programs is supported. 23853dlopen_self=$enable_dlopen_self 23854 23855# Whether dlopen of statically linked programs is supported. 23856dlopen_self_static=$enable_dlopen_self_static 23857 23858# Commands to strip libraries. 23859old_striplib=$lt_old_striplib 23860striplib=$lt_striplib 23861 23862 23863# The linker used to build libraries. 23864LD=$lt_LD 23865 23866# How to create reloadable object files. 23867reload_flag=$lt_reload_flag 23868reload_cmds=$lt_reload_cmds 23869 23870# Commands used to build an old-style archive. 23871old_archive_cmds=$lt_old_archive_cmds 23872 23873# A language specific compiler. 23874CC=$lt_compiler 23875 23876# Is the compiler the GNU compiler? 23877with_gcc=$GCC 23878 23879# Compiler flag to turn off builtin functions. 23880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23881 23882# Additional compiler flags for building library objects. 23883pic_flag=$lt_lt_prog_compiler_pic 23884 23885# How to pass a linker flag through the compiler. 23886wl=$lt_lt_prog_compiler_wl 23887 23888# Compiler flag to prevent dynamic linking. 23889link_static_flag=$lt_lt_prog_compiler_static 23890 23891# Does compiler simultaneously support -c and -o options? 23892compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23893 23894# Whether or not to add -lc for building shared libraries. 23895build_libtool_need_lc=$archive_cmds_need_lc 23896 23897# Whether or not to disallow shared libs when runtime libs are static. 23898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23899 23900# Compiler flag to allow reflexive dlopens. 23901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23902 23903# Compiler flag to generate shared objects directly from archives. 23904whole_archive_flag_spec=$lt_whole_archive_flag_spec 23905 23906# Whether the compiler copes with passing no objects directly. 23907compiler_needs_object=$lt_compiler_needs_object 23908 23909# Create an old-style archive from a shared archive. 23910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23911 23912# Create a temporary old-style archive to link instead of a shared archive. 23913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23914 23915# Commands used to build a shared archive. 23916archive_cmds=$lt_archive_cmds 23917archive_expsym_cmds=$lt_archive_expsym_cmds 23918 23919# Commands used to build a loadable module if different from building 23920# a shared archive. 23921module_cmds=$lt_module_cmds 23922module_expsym_cmds=$lt_module_expsym_cmds 23923 23924# Whether we are building with GNU ld or not. 23925with_gnu_ld=$lt_with_gnu_ld 23926 23927# Flag that allows shared libraries with undefined symbols to be built. 23928allow_undefined_flag=$lt_allow_undefined_flag 23929 23930# Flag that enforces no undefined symbols. 23931no_undefined_flag=$lt_no_undefined_flag 23932 23933# Flag to hardcode \$libdir into a binary during linking. 23934# This must work even if \$libdir does not exist 23935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23936 23937# Whether we need a single "-rpath" flag with a separated argument. 23938hardcode_libdir_separator=$lt_hardcode_libdir_separator 23939 23940# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23941# DIR into the resulting binary. 23942hardcode_direct=$hardcode_direct 23943 23944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23945# DIR into the resulting binary and the resulting library dependency is 23946# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23947# library is relocated. 23948hardcode_direct_absolute=$hardcode_direct_absolute 23949 23950# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23951# into the resulting binary. 23952hardcode_minus_L=$hardcode_minus_L 23953 23954# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23955# into the resulting binary. 23956hardcode_shlibpath_var=$hardcode_shlibpath_var 23957 23958# Set to "yes" if building a shared library automatically hardcodes DIR 23959# into the library and all subsequent libraries and executables linked 23960# against it. 23961hardcode_automatic=$hardcode_automatic 23962 23963# Set to yes if linker adds runtime paths of dependent libraries 23964# to runtime path list. 23965inherit_rpath=$inherit_rpath 23966 23967# Whether libtool must link a program against all its dependency libraries. 23968link_all_deplibs=$link_all_deplibs 23969 23970# Set to "yes" if exported symbols are required. 23971always_export_symbols=$always_export_symbols 23972 23973# The commands to list exported symbols. 23974export_symbols_cmds=$lt_export_symbols_cmds 23975 23976# Symbols that should not be listed in the preloaded symbols. 23977exclude_expsyms=$lt_exclude_expsyms 23978 23979# Symbols that must always be exported. 23980include_expsyms=$lt_include_expsyms 23981 23982# Commands necessary for linking programs (against libraries) with templates. 23983prelink_cmds=$lt_prelink_cmds 23984 23985# Commands necessary for finishing linking programs. 23986postlink_cmds=$lt_postlink_cmds 23987 23988# Specify filename containing input files. 23989file_list_spec=$lt_file_list_spec 23990 23991# How to hardcode a shared library path into an executable. 23992hardcode_action=$hardcode_action 23993 23994# ### END LIBTOOL CONFIG 23995 23996_LT_EOF 23997 23998 case $host_os in 23999 aix3*) 24000 cat <<\_LT_EOF >> "$cfgfile" 24001# AIX sometimes has problems with the GCC collect2 program. For some 24002# reason, if we set the COLLECT_NAMES environment variable, the problems 24003# vanish in a puff of smoke. 24004if test "X${COLLECT_NAMES+set}" != Xset; then 24005 COLLECT_NAMES= 24006 export COLLECT_NAMES 24007fi 24008_LT_EOF 24009 ;; 24010 esac 24011 24012 24013ltmain="$ac_aux_dir/ltmain.sh" 24014 24015 24016 # We use sed instead of cat because bash on DJGPP gets confused if 24017 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24018 # text mode, it properly converts lines to CR/LF. This bash problem 24019 # is reportedly fixed, but why not run on old versions too? 24020 sed '$q' "$ltmain" >> "$cfgfile" \ 24021 || (rm -f "$cfgfile"; exit 1) 24022 24023 if test x"$xsi_shell" = xyes; then 24024 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 24025func_dirname ()\ 24026{\ 24027\ case ${1} in\ 24028\ */*) func_dirname_result="${1%/*}${2}" ;;\ 24029\ * ) func_dirname_result="${3}" ;;\ 24030\ esac\ 24031} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 24032 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24033 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24034test 0 -eq $? || _lt_function_replace_fail=: 24035 24036 24037 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 24038func_basename ()\ 24039{\ 24040\ func_basename_result="${1##*/}"\ 24041} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 24042 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24044test 0 -eq $? || _lt_function_replace_fail=: 24045 24046 24047 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 24048func_dirname_and_basename ()\ 24049{\ 24050\ case ${1} in\ 24051\ */*) func_dirname_result="${1%/*}${2}" ;;\ 24052\ * ) func_dirname_result="${3}" ;;\ 24053\ esac\ 24054\ func_basename_result="${1##*/}"\ 24055} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 24056 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24058test 0 -eq $? || _lt_function_replace_fail=: 24059 24060 24061 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 24062func_stripname ()\ 24063{\ 24064\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 24065\ # positional parameters, so assign one to ordinary parameter first.\ 24066\ func_stripname_result=${3}\ 24067\ func_stripname_result=${func_stripname_result#"${1}"}\ 24068\ func_stripname_result=${func_stripname_result%"${2}"}\ 24069} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 24070 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24072test 0 -eq $? || _lt_function_replace_fail=: 24073 24074 24075 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 24076func_split_long_opt ()\ 24077{\ 24078\ func_split_long_opt_name=${1%%=*}\ 24079\ func_split_long_opt_arg=${1#*=}\ 24080} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 24081 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24083test 0 -eq $? || _lt_function_replace_fail=: 24084 24085 24086 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 24087func_split_short_opt ()\ 24088{\ 24089\ func_split_short_opt_arg=${1#??}\ 24090\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 24091} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 24092 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24093 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24094test 0 -eq $? || _lt_function_replace_fail=: 24095 24096 24097 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 24098func_lo2o ()\ 24099{\ 24100\ case ${1} in\ 24101\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 24102\ *) func_lo2o_result=${1} ;;\ 24103\ esac\ 24104} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 24105 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24107test 0 -eq $? || _lt_function_replace_fail=: 24108 24109 24110 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 24111func_xform ()\ 24112{\ 24113 func_xform_result=${1%.*}.lo\ 24114} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 24115 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24117test 0 -eq $? || _lt_function_replace_fail=: 24118 24119 24120 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 24121func_arith ()\ 24122{\ 24123 func_arith_result=$(( $* ))\ 24124} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 24125 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24126 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24127test 0 -eq $? || _lt_function_replace_fail=: 24128 24129 24130 sed -e '/^func_len ()$/,/^} # func_len /c\ 24131func_len ()\ 24132{\ 24133 func_len_result=${#1}\ 24134} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 24135 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24137test 0 -eq $? || _lt_function_replace_fail=: 24138 24139fi 24140 24141if test x"$lt_shell_append" = xyes; then 24142 sed -e '/^func_append ()$/,/^} # func_append /c\ 24143func_append ()\ 24144{\ 24145 eval "${1}+=\\${2}"\ 24146} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 24147 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24148 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24149test 0 -eq $? || _lt_function_replace_fail=: 24150 24151 24152 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 24153func_append_quoted ()\ 24154{\ 24155\ func_quote_for_eval "${2}"\ 24156\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 24157} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 24158 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24160test 0 -eq $? || _lt_function_replace_fail=: 24161 24162 24163 # Save a `func_append' function call where possible by direct use of '+=' 24164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 24165 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24167 test 0 -eq $? || _lt_function_replace_fail=: 24168else 24169 # Save a `func_append' function call even when '+=' is not available 24170 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 24171 && mv -f "$cfgfile.tmp" "$cfgfile" \ 24172 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 24173 test 0 -eq $? || _lt_function_replace_fail=: 24174fi 24175 24176if test x"$_lt_function_replace_fail" = x":"; then 24177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 24178$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 24179fi 24180 24181 24182 mv -f "$cfgfile" "$ofile" || 24183 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24184 chmod +x "$ofile" 24185 24186 ;; 24187 24188 esac 24189done # for ac_tag 24190 24191 24192as_fn_exit 0 24193_ACEOF 24194ac_clean_files=$ac_clean_files_save 24195 24196test $ac_write_fail = 0 || 24197 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24198 24199 24200# configure is writing to config.log, and then calls config.status. 24201# config.status does its own redirection, appending to config.log. 24202# Unfortunately, on DOS this fails, as config.log is still kept open 24203# by configure, so config.status won't be able to write to it; its 24204# output is simply discarded. So we exec the FD to /dev/null, 24205# effectively closing config.log, so it can be properly (re)opened and 24206# appended to by config.status. When coming back to configure, we 24207# need to make the FD available again. 24208if test "$no_create" != yes; then 24209 ac_cs_success=: 24210 ac_config_status_args= 24211 test "$silent" = yes && 24212 ac_config_status_args="$ac_config_status_args --quiet" 24213 exec 5>/dev/null 24214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24215 exec 5>>config.log 24216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24217 # would make configure fail if this is the last instruction. 24218 $ac_cs_success || as_fn_exit 1 24219fi 24220if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24222$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24223fi 24224 24225 24226echo "" 24227echo "" 24228test -e `pwd $0`/README && cat `pwd $0`/README 24229 24230accel_msg="" 24231if test "x$SNA" != "xno"; then 24232 if test "$accel" = "none"; then 24233 accel_msg="$accel_msg *none" 24234 else 24235 accel_msg="$accel_msg none" 24236 fi 24237 if test "$accel" = "sna"; then 24238 accel_msg="$accel_msg *sna" 24239 else 24240 accel_msg="$accel_msg sna" 24241 fi 24242fi 24243if test "x$UXA" != "xno"; then 24244 if test "x$SNA" = "xno"; then 24245 if test "$accel" = "none"; then 24246 accel_msg="$accel_msg *none" 24247 else 24248 accel_msg="$accel_msg none" 24249 fi 24250 fi 24251 if test "$accel" = "uxa"; then 24252 accel_msg="$accel_msg *uxa" 24253 else 24254 accel_msg="$accel_msg uxa" 24255 fi 24256fi 24257 24258if test "x$dri_msg" = "x"; then 24259 dri_msg=" none" 24260fi 24261 24262if test "x$tools_msg" = "x"; then 24263 tools_msg=" none" 24264fi 24265 24266echo "" 24267echo "xf86-video-intel 2.99.917 will be compiled with:" 24268echo " Xorg Video ABI version: $ABI_VERSION" 24269echo " Acceleration backends:$accel_msg" 24270echo " Additional debugging support?$debug_msg" 24271echo " Support for Kernel Mode Setting? $KMS" 24272echo " Support for legacy User Mode Setting (for i810)? $UMS" 24273echo " Support for Direct Rendering Infrastructure:$dri_msg" 24274echo " Support for Xv motion compensation (XvMC and libXvMC):$xvmc_msg" 24275echo " Build additional tools and utilities?$tools_msg" 24276if test -n "$xp_msg"; then 24277echo " Experimental support:$xp_msg" 24278fi 24279echo "" 24280