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 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if 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 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_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. 45 if 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 --' 49 elif (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' 52 else 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' 72 fi 73 74 # The user is always right. 75 if 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 } 81 fi 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.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 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 102 IFS=$as_save_IFS 103 104 ;; 105 esac 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. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 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. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export 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. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $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 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if 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 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 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 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 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 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 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 244 fi; } 245 IFS=$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. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $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 267 exit 255 268 fi 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 (at] 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 285 fi 286 fi 287 fi 288 SHELL=${CONFIG_SHELL-/bin/sh} 289 export SHELL 290 # Unset more variables known to interfere with behavior of common tools. 291 CLICOLOR_FORCE= GREP_OPTIONS= 292 unset CLICOLOR_FORCE GREP_OPTIONS 293 294 ## --------------------- ## 295 ## M4sh Shell Functions. ## 296 ## --------------------- ## 297 # as_fn_unset VAR 298 # --------------- 299 # Portably unset VAR. 300 as_fn_unset () 301 { 302 { eval $1=; unset $1;} 303 } 304 as_unset=as_fn_unset 305 306 # as_fn_set_status STATUS 307 # ----------------------- 308 # Set $? to STATUS, without forking. 309 as_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. 317 as_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. 327 as_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. 375 as_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. 385 if (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 }' 390 else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395 fi # 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. 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407 else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412 fi # 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. 420 as_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 431 if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434 else 435 as_expr=false 436 fi 437 438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440 else 441 as_basename=false 442 fi 443 444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446 else 447 as_dirname=false 448 fi 449 450 as_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. 470 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473 as_cr_digits='0123456789' 474 as_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 512 ECHO_C= ECHO_N= ECHO_T= 513 case `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';; 523 esac 524 525 rm -f conf$$ conf$$.exe conf$$.file 526 if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528 else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531 fi 532 if (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 546 else 547 as_ln_s='cp -pR' 548 fi 549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550 rmdir conf$$.dir 2>/dev/null 551 552 if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554 else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557 fi 558 559 as_test_x='test -x' 560 as_executable_p=as_fn_executable_p 561 562 # Sed expression to map a string onto a valid CPP name. 563 as_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. 566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568 SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571 test -n "$DJDIR" || exec 7<&0 </dev/null 572 exec 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. 577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579 # 580 # Initializations. 581 # 582 ac_default_prefix=/usr/local 583 ac_clean_files= 584 ac_config_libobj_dir=. 585 LIBOBJS= 586 cross_compiling=no 587 subdirs= 588 MFLAGS= 589 MAKEFLAGS= 590 591 # Identity of this package. 592 PACKAGE_NAME='xf86-video-intel' 593 PACKAGE_TARNAME='xf86-video-intel' 594 PACKAGE_VERSION='2.99.917' 595 PACKAGE_STRING='xf86-video-intel 2.99.917' 596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597 PACKAGE_URL='' 598 599 ac_unique_file="Makefile.am" 600 # Factoring default headers for most tests. 601 ac_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 636 ac_config_libobj_dir=libobj 637 ac_subst_vars='am__EXEEXT_FALSE 638 am__EXEEXT_TRUE 639 LTLIBOBJS 640 LIBEXEC_PATH 641 PREFIX_PATH 642 moduledir 643 DRIVER_NAME 644 LIBOBJS 645 VALGRIND_FALSE 646 VALGRIND_TRUE 647 VALGRIND_LIBS 648 VALGRIND_CFLAGS 649 FULL_DEBUG_FALSE 650 FULL_DEBUG_TRUE 651 DEBUG_FALSE 652 DEBUG_TRUE 653 CLOCK_GETTIME_LIBS 654 USE_ASYNC_SWAP_FALSE 655 USE_ASYNC_SWAP_TRUE 656 USE_CREATE2_FALSE 657 USE_CREATE2_TRUE 658 USE_RENDERNODE_FALSE 659 USE_RENDERNODE_TRUE 660 XVMC_FALSE 661 XVMC_TRUE 662 XVMCLIB_LIBS 663 XVMCLIB_CFLAGS 664 SNA_FALSE 665 SNA_TRUE 666 UXA_FALSE 667 UXA_TRUE 668 PRESENT_FALSE 669 PRESENT_TRUE 670 PRESENT_LIBS 671 PRESENT_CFLAGS 672 DRI3_FALSE 673 DRI3_TRUE 674 DRI2_FALSE 675 DRI2_TRUE 676 DRI3_LIBS 677 DRI3_CFLAGS 678 DRI_DRIVER_PATH 679 DRI2_LIBS 680 DRI2_CFLAGS 681 DRI1_FALSE 682 DRI1_TRUE 683 DRI1_LIBS 684 DRI1_CFLAGS 685 UMS_FALSE 686 UMS_TRUE 687 KMS_FALSE 688 KMS_TRUE 689 XAA_FALSE 690 XAA_TRUE 691 DGA_FALSE 692 DGA_TRUE 693 XORG_LIBS 694 XORG_CFLAGS 695 DRMINTEL_LIBS 696 DRMINTEL_CFLAGS 697 PCIACCESS_LIBS 698 PCIACCESS_CFLAGS 699 DRM_LIBS 700 DRM_CFLAGS 701 BUILD_TOOLS_FALSE 702 BUILD_TOOLS_TRUE 703 IVO_LIBS 704 IVO_CFLAGS 705 IVO_EXTRA_LIBS 706 IVO_EXTRA_CFLAGS 707 X11_SHM_FALSE 708 X11_SHM_TRUE 709 X11_DRI3_FALSE 710 X11_DRI3_TRUE 711 X11_DRI3_LIBS 712 X11_DRI3_CFLAGS 713 HAVE_X11_FALSE 714 HAVE_X11_TRUE 715 X11_LIBS 716 X11_CFLAGS 717 UDEV_LIBS 718 UDEV_CFLAGS 719 HAVE_GEN4ASM_FALSE 720 HAVE_GEN4ASM_TRUE 721 INTEL_GEN4ASM 722 GEN4ASM_LIBS 723 GEN4ASM_CFLAGS 724 HAVE_DOT_GIT_FALSE 725 HAVE_DOT_GIT_TRUE 726 BUILD_BACKLIGHT_HELPER_FALSE 727 BUILD_BACKLIGHT_HELPER_TRUE 728 OTOOL64 729 OTOOL 730 LIPO 731 NMEDIT 732 DSYMUTIL 733 MANIFEST_TOOL 734 RANLIB 735 ac_ct_AR 736 AR 737 DLLTOOL 738 OBJDUMP 739 LN_S 740 NM 741 ac_ct_DUMPBIN 742 DUMPBIN 743 LD 744 FGREP 745 LIBTOOL 746 NOWARNFLAGS 747 MAN_SUBSTS 748 XORG_MAN_PAGE 749 ADMIN_MAN_DIR 750 DRIVER_MAN_DIR 751 MISC_MAN_DIR 752 FILE_MAN_DIR 753 LIB_MAN_DIR 754 APP_MAN_DIR 755 ADMIN_MAN_SUFFIX 756 DRIVER_MAN_SUFFIX 757 MISC_MAN_SUFFIX 758 FILE_MAN_SUFFIX 759 LIB_MAN_SUFFIX 760 APP_MAN_SUFFIX 761 SED 762 host_os 763 host_vendor 764 host_cpu 765 host 766 build_os 767 build_vendor 768 build_cpu 769 build 770 INSTALL_CMD 771 PKG_CONFIG_LIBDIR 772 PKG_CONFIG_PATH 773 PKG_CONFIG 774 CHANGELOG_CMD 775 STRICT_CFLAGS 776 CWARNFLAGS 777 BASE_CFLAGS 778 EGREP 779 GREP 780 CPP 781 am__fastdepCC_FALSE 782 am__fastdepCC_TRUE 783 CCDEPMODE 784 am__nodep 785 AMDEPBACKSLASH 786 AMDEP_FALSE 787 AMDEP_TRUE 788 am__quote 789 am__include 790 DEPDIR 791 OBJEXT 792 EXEEXT 793 ac_ct_CC 794 CPPFLAGS 795 LDFLAGS 796 CFLAGS 797 CC 798 AM_BACKSLASH 799 AM_DEFAULT_VERBOSITY 800 AM_DEFAULT_V 801 AM_V 802 am__untar 803 am__tar 804 AMTAR 805 am__leading_dot 806 SET_MAKE 807 AWK 808 mkdir_p 809 MKDIR_P 810 INSTALL_STRIP_PROGRAM 811 STRIP 812 install_sh 813 MAKEINFO 814 AUTOHEADER 815 AUTOMAKE 816 AUTOCONF 817 ACLOCAL 818 VERSION 819 PACKAGE 820 CYGPATH_W 821 am__isrc 822 INSTALL_DATA 823 INSTALL_SCRIPT 824 INSTALL_PROGRAM 825 target_alias 826 host_alias 827 build_alias 828 LIBS 829 ECHO_T 830 ECHO_N 831 ECHO_C 832 DEFS 833 mandir 834 localedir 835 libdir 836 psdir 837 pdfdir 838 dvidir 839 htmldir 840 infodir 841 docdir 842 oldincludedir 843 includedir 844 localstatedir 845 sharedstatedir 846 sysconfdir 847 datadir 848 datarootdir 849 libexecdir 850 sbindir 851 bindir 852 program_transform_name 853 prefix 854 exec_prefix 855 PACKAGE_URL 856 PACKAGE_BUGREPORT 857 PACKAGE_STRING 858 PACKAGE_VERSION 859 PACKAGE_TARNAME 860 PACKAGE_NAME 861 PATH_SEPARATOR 862 SHELL' 863 ac_subst_files='' 864 ac_user_opts=' 865 enable_option_checking 866 enable_silent_rules 867 enable_dependency_tracking 868 enable_selective_werror 869 enable_strict_compilation 870 enable_static 871 enable_shared 872 with_pic 873 enable_fast_install 874 with_gnu_ld 875 with_sysroot 876 enable_libtool_lock 877 enable_largefile 878 enable_backlight 879 enable_backlight_helper 880 with_builderstring 881 enable_gen4asm 882 with_gen4asm 883 enable_udev 884 enable_tools 885 with_xorg_module_dir 886 enable_dri 887 enable_dri1 888 enable_dri2 889 enable_dri3 890 enable_xvmc 891 enable_kms 892 enable_ums 893 enable_kms_only 894 enable_ums_only 895 enable_sna 896 enable_uxa 897 enable_xaa 898 enable_dga 899 with_default_accel 900 enable_tear_free 901 enable_rendernode 902 enable_wc_mmap 903 enable_create2 904 enable_async_swap 905 enable_debug 906 enable_valgrind 907 ' 908 ac_precious_vars='build_alias 909 host_alias 910 target_alias 911 CC 912 CFLAGS 913 LDFLAGS 914 LIBS 915 CPPFLAGS 916 CPP 917 PKG_CONFIG 918 PKG_CONFIG_PATH 919 PKG_CONFIG_LIBDIR 920 GEN4ASM_CFLAGS 921 GEN4ASM_LIBS 922 UDEV_CFLAGS 923 UDEV_LIBS 924 X11_CFLAGS 925 X11_LIBS 926 X11_DRI3_CFLAGS 927 X11_DRI3_LIBS 928 IVO_EXTRA_CFLAGS 929 IVO_EXTRA_LIBS 930 IVO_CFLAGS 931 IVO_LIBS 932 DRM_CFLAGS 933 DRM_LIBS 934 PCIACCESS_CFLAGS 935 PCIACCESS_LIBS 936 DRMINTEL_CFLAGS 937 DRMINTEL_LIBS 938 XORG_CFLAGS 939 XORG_LIBS 940 DRI1_CFLAGS 941 DRI1_LIBS 942 DRI2_CFLAGS 943 DRI2_LIBS 944 DRI3_CFLAGS 945 DRI3_LIBS 946 PRESENT_CFLAGS 947 PRESENT_LIBS 948 XVMCLIB_CFLAGS 949 XVMCLIB_LIBS 950 VALGRIND_CFLAGS 951 VALGRIND_LIBS' 952 953 954 # Initialize some variables set by options. 955 ac_init_help= 956 ac_init_version=false 957 ac_unrecognized_opts= 958 ac_unrecognized_sep= 959 # The variables have the same names as the options, with 960 # dashes changed to underlines. 961 cache_file=/dev/null 962 exec_prefix=NONE 963 no_create= 964 no_recursion= 965 prefix=NONE 966 program_prefix=NONE 967 program_suffix=NONE 968 program_transform_name=s,x,x, 969 silent= 970 site= 971 srcdir= 972 verbose= 973 x_includes=NONE 974 x_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.) 982 bindir='${exec_prefix}/bin' 983 sbindir='${exec_prefix}/sbin' 984 libexecdir='${exec_prefix}/libexec' 985 datarootdir='${prefix}/share' 986 datadir='${datarootdir}' 987 sysconfdir='${prefix}/etc' 988 sharedstatedir='${prefix}/com' 989 localstatedir='${prefix}/var' 990 includedir='${prefix}/include' 991 oldincludedir='/usr/include' 992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 993 infodir='${datarootdir}/info' 994 htmldir='${docdir}' 995 dvidir='${docdir}' 996 pdfdir='${docdir}' 997 psdir='${docdir}' 998 libdir='${exec_prefix}/lib' 999 localedir='${datarootdir}/locale' 1000 mandir='${datarootdir}/man' 1001 1002 ac_prev= 1003 ac_dashdash= 1004 for ac_option 1005 do 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' 1338 Try \`$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 1360 done 1361 1362 if test -n "$ac_prev"; then 1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1364 as_fn_error $? "missing argument to $ac_option" 1365 fi 1366 1367 if 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 1373 fi 1374 1375 # Check all directory arguments for consistency. 1376 for 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 1380 do 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" 1394 done 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. 1399 build=$build_alias 1400 host=$host_alias 1401 target=$target_alias 1402 1403 # FIXME: To remove some day. 1404 if 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 1410 fi 1411 1412 ac_tool_prefix= 1413 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1414 1415 test "$silent" = yes && exec 6>/dev/null 1416 1417 1418 ac_pwd=`pwd` && test -n "$ac_pwd" && 1419 ac_ls_di=`ls -di .` && 1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1421 as_fn_error $? "working directory cannot be determined" 1422 test "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. 1427 if 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 1457 else 1458 ac_srcdir_defaulted=no 1459 fi 1460 if 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" 1463 fi 1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1465 ac_abs_confdir=`( 1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1467 pwd)` 1468 # When building in place, set srcdir=. 1469 if test "$ac_abs_confdir" = "$ac_pwd"; then 1470 srcdir=. 1471 fi 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. 1475 case $srcdir in 1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1477 esac 1478 for 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} 1483 done 1484 1485 # 1486 # Report the --help message. 1487 # 1488 if 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 1494 Usage: $0 [OPTION]... [VAR=VALUE]... 1495 1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1497 VAR=VALUE. See below for descriptions of some of the useful variables. 1498 1499 Defaults for the options are specified in brackets. 1500 1501 Configuration: 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 1512 Installation 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 1518 By default, \`make install' will install all the files in 1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1521 for instance \`--prefix=\$HOME'. 1522 1523 For better control, use the options below. 1524 1525 Fine 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 1550 Program 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 1555 System 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 1559 fi 1560 1561 if 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 1567 Optional 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 1628 Optional 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 1647 Some 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 1710 Use these variables to override the choices made by `configure' or to help 1711 it to find libraries and programs with nonstandard names/locations. 1712 1713 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1714 _ACEOF 1715 ac_status=$? 1716 fi 1717 1718 if 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 1726 case "$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 ;; 1736 esac 1737 ac_abs_top_builddir=$ac_pwd 1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1739 # for backward compatibility: 1740 ac_top_builddir=$ac_top_build_prefix 1741 1742 case $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 ;; 1755 esac 1756 ac_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 1771 fi 1772 1773 test -n "$ac_init_help" && exit $ac_status 1774 if $ac_init_version; then 1775 cat <<\_ACEOF 1776 xf86-video-intel configure 2.99.917 1777 generated by GNU Autoconf 2.69 1778 1779 Copyright (C) 2012 Free Software Foundation, Inc. 1780 This configure script is free software; the Free Software Foundation 1781 gives unlimited permission to copy, distribute and modify it. 1782 _ACEOF 1783 exit 1784 fi 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. 1793 ac_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" 1798 case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801 esac 1802 eval 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 1817 else 1818 $as_echo "$as_me: failed program was:" >&5 1819 sed 's/^/| /' conftest.$ac_ext >&5 1820 1821 ac_retval=1 1822 fi 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. 1832 ac_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; } 1839 if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841 else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843 /* end confdefs.h. */ 1844 $4 1845 int 1846 main () 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 1860 if ac_fn_c_try_compile "$LINENO"; then : 1861 eval "$3=yes" 1862 else 1863 eval "$3=no" 1864 fi 1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866 fi 1867 eval 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. 1877 ac_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" 1881 case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884 esac 1885 eval 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 1900 else 1901 $as_echo "$as_me: failed program was:" >&5 1902 sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=1 1905 fi 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. 1915 ac_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" 1919 case "(($ac_try" in 1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1921 *) ac_try_echo=$ac_try;; 1922 esac 1923 eval 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;; 1932 esac 1933 eval 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 1940 else 1941 $as_echo "$as_me: program exited with status $ac_status" >&5 1942 $as_echo "$as_me: failed program was:" >&5 1943 sed 's/^/| /' conftest.$ac_ext >&5 1944 1945 ac_retval=$ac_status 1946 fi 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. 1957 ac_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; } 1962 if eval \${$3+:} false; then : 1963 $as_echo_n "(cached) " >&6 1964 else 1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1966 /* end confdefs.h. */ 1967 $4 1968 #include <$2> 1969 _ACEOF 1970 if ac_fn_c_try_compile "$LINENO"; then : 1971 eval "$3=yes" 1972 else 1973 eval "$3=no" 1974 fi 1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976 fi 1977 eval 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. 1987 ac_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" 1992 case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995 esac 1996 eval 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 2014 else 2015 $as_echo "$as_me: failed program was:" >&5 2016 sed 's/^/| /' conftest.$ac_ext >&5 2017 2018 ac_retval=1 2019 fi 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 2033 ac_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; } 2038 if eval \${$3+:} false; then : 2039 $as_echo_n "(cached) " >&6 2040 else 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 2064 extern "C" 2065 #endif 2066 char $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 2071 choke me 2072 #endif 2073 2074 int 2075 main () 2076 { 2077 return $2 (); 2078 ; 2079 return 0; 2080 } 2081 _ACEOF 2082 if ac_fn_c_try_link "$LINENO"; then : 2083 eval "$3=yes" 2084 else 2085 eval "$3=no" 2086 fi 2087 rm -f core conftest.err conftest.$ac_objext \ 2088 conftest$ac_exeext conftest.$ac_ext 2089 fi 2090 eval 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. 2102 ac_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; } 2108 if eval \${$3+:} false; then : 2109 $as_echo_n "(cached) " >&6 2110 fi 2111 eval ac_res=\$$3 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2113 $as_echo "$ac_res" >&6; } 2114 else 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; } 2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119 /* end confdefs.h. */ 2120 $4 2121 #include <$2> 2122 _ACEOF 2123 if ac_fn_c_try_compile "$LINENO"; then : 2124 ac_header_compiler=yes 2125 else 2126 ac_header_compiler=no 2127 fi 2128 rm -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; } 2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2136 /* end confdefs.h. */ 2137 #include <$2> 2138 _ACEOF 2139 if ac_fn_c_try_cpp "$LINENO"; then : 2140 ac_header_preproc=yes 2141 else 2142 ac_header_preproc=no 2143 fi 2144 rm -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? 2149 case $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 ;; 2172 esac 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2174 $as_echo_n "checking for $2... " >&6; } 2175 if eval \${$3+:} false; then : 2176 $as_echo_n "(cached) " >&6 2177 else 2178 eval "$3=\$ac_header_compiler" 2179 fi 2180 eval ac_res=\$$3 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2182 $as_echo "$ac_res" >&6; } 2183 fi 2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2185 2186 } # ac_fn_c_check_header_mongrel 2187 cat >config.log <<_ACEOF 2188 This file contains any messages produced by compilers while 2189 running configure, to aid debugging if configure makes a mistake. 2190 2191 It was created by xf86-video-intel $as_me 2.99.917, which was 2192 generated by GNU Autoconf 2.69. Invocation command line was 2193 2194 $ $0 $@ 2195 2196 _ACEOF 2197 exec 5>>config.log 2198 { 2199 cat <<_ASUNAME 2200 ## --------- ## 2201 ## Platform. ## 2202 ## --------- ## 2203 2204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2205 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2206 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2207 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2208 uname -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 2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2224 for as_dir in $PATH 2225 do 2226 IFS=$as_save_IFS 2227 test -z "$as_dir" && as_dir=. 2228 $as_echo "PATH: $as_dir" 2229 done 2230 IFS=$as_save_IFS 2231 2232 } >&5 2233 2234 cat >&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. 2249 ac_configure_args= 2250 ac_configure_args0= 2251 ac_configure_args1= 2252 ac_must_keep_next=false 2253 for ac_pass in 1 2 2254 do 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 2288 done 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. 2297 trap '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 2384 for ac_signal in 1 2 13 15; do 2385 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2386 done 2387 ac_signal=0 2388 2389 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2390 rm -f -r conftest* confdefs.h 2391 2392 $as_echo "/* confdefs.h */" > confdefs.h 2393 2394 # Predefined preprocessor variables. 2395 2396 cat >>confdefs.h <<_ACEOF 2397 #define PACKAGE_NAME "$PACKAGE_NAME" 2398 _ACEOF 2399 2400 cat >>confdefs.h <<_ACEOF 2401 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2402 _ACEOF 2403 2404 cat >>confdefs.h <<_ACEOF 2405 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2406 _ACEOF 2407 2408 cat >>confdefs.h <<_ACEOF 2409 #define PACKAGE_STRING "$PACKAGE_STRING" 2410 _ACEOF 2411 2412 cat >>confdefs.h <<_ACEOF 2413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2414 _ACEOF 2415 2416 cat >>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. 2423 ac_site_file1=NONE 2424 ac_site_file2=NONE 2425 if 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 2432 elif test "x$prefix" != xNONE; then 2433 ac_site_file1=$prefix/share/config.site 2434 ac_site_file2=$prefix/etc/config.site 2435 else 2436 ac_site_file1=$ac_default_prefix/share/config.site 2437 ac_site_file2=$ac_default_prefix/etc/config.site 2438 fi 2439 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2440 do 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;} 2449 as_fn_error $? "failed to load site script $ac_site_file 2450 See \`config.log' for more details" "$LINENO" 5; } 2451 fi 2452 done 2453 2454 if 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 2465 else 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 2469 fi 2470 2471 # Check that the precious variables saved in the cache have kept the same 2472 # value. 2473 ac_cache_corrupted=false 2474 for 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 2520 done 2521 if $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 2527 fi 2528 ## -------------------- ## 2529 ## Main body of script. ## 2530 ## -------------------- ## 2531 2532 ac_ext=c 2533 ac_cpp='$CPP $CPPFLAGS' 2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2537 2538 2539 2540 ac_config_headers="$ac_config_headers config.h" 2541 2542 2543 ac_aux_dir= 2544 for 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 2558 done 2559 if test -z "$ac_aux_dir"; then 2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2561 fi 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. 2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2570 2571 2572 2573 # Initialize Automake 2574 am__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; } 2592 if test -z "$INSTALL"; then 2593 if ${ac_cv_path_install+:} false; then : 2594 $as_echo_n "(cached) " >&6 2595 else 2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597 for as_dir in $PATH 2598 do 2599 IFS=$as_save_IFS 2600 test -z "$as_dir" && as_dir=. 2601 # Account for people who put trailing slashes in PATH elements. 2602 case $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 ;; 2640 esac 2641 2642 done 2643 IFS=$as_save_IFS 2644 2645 rm -rf conftest.one conftest.two conftest.dir 2646 2647 fi 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 2657 fi 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. 2663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2664 2665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2666 2667 test -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. 2673 am_lf=' 2674 ' 2675 case `pwd` in 2676 *[\\\"\#\$\&\'\`$am_lf]*) 2677 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2678 esac 2679 case $srcdir in 2680 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2681 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2682 esac 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). 2689 if ( 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 ) 2717 then 2718 # Ok. 2719 : 2720 else 2721 as_fn_error $? "newly created file is older than distributed files! 2722 Check your system clock" "$LINENO" 5 2723 fi 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. 2728 am_sleep_pid= 2729 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2730 ( sleep 1 ) & 2731 am_sleep_pid=$! 2732 fi 2733 2734 rm -f conftest.file 2735 2736 test "$program_prefix" != NONE && 2737 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2738 # Use a double $ so make ignores it. 2739 test "$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. 2743 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2744 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2745 2746 # expand $ac_aux_dir to an absolute path 2747 am_aux_dir=`cd $ac_aux_dir && pwd` 2748 2749 if 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 2756 fi 2757 # Use eval to expand $SHELL 2758 if eval "$MISSING --is-lightweight"; then 2759 am_missing_run="$MISSING " 2760 else 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;} 2764 fi 2765 2766 if 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 2773 fi 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. 2779 if 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. 2782 set 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; } 2785 if ${ac_cv_prog_STRIP+:} false; then : 2786 $as_echo_n "(cached) " >&6 2787 else 2788 if test -n "$STRIP"; then 2789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2790 else 2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792 for as_dir in $PATH 2793 do 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 2802 done 2803 done 2804 IFS=$as_save_IFS 2805 2806 fi 2807 fi 2808 STRIP=$ac_cv_prog_STRIP 2809 if test -n "$STRIP"; then 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2811 $as_echo "$STRIP" >&6; } 2812 else 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814 $as_echo "no" >&6; } 2815 fi 2816 2817 2818 fi 2819 if 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. 2822 set 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; } 2825 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827 else 2828 if test -n "$ac_ct_STRIP"; then 2829 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2830 else 2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832 for as_dir in $PATH 2833 do 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 2842 done 2843 done 2844 IFS=$as_save_IFS 2845 2846 fi 2847 fi 2848 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2849 if 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; } 2852 else 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854 $as_echo "no" >&6; } 2855 fi 2856 2857 if test "x$ac_ct_STRIP" = x; then 2858 STRIP=":" 2859 else 2860 case $cross_compiling:$ac_tool_warned in 2861 yes:) 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;} 2864 ac_tool_warned=yes ;; 2865 esac 2866 STRIP=$ac_ct_STRIP 2867 fi 2868 else 2869 STRIP="$ac_cv_prog_STRIP" 2870 fi 2871 2872 fi 2873 INSTALL_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; } 2877 if test -z "$MKDIR_P"; then 2878 if ${ac_cv_path_mkdir+:} false; then : 2879 $as_echo_n "(cached) " >&6 2880 else 2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2883 do 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 2899 IFS=$as_save_IFS 2900 2901 fi 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 2913 fi 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2915 $as_echo "$MKDIR_P" >&6; } 2916 2917 for ac_prog in gawk mawk nawk awk 2918 do 2919 # Extract the first word of "$ac_prog", so it can be a program name with args. 2920 set 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; } 2923 if ${ac_cv_prog_AWK+:} false; then : 2924 $as_echo_n "(cached) " >&6 2925 else 2926 if test -n "$AWK"; then 2927 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2928 else 2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930 for as_dir in $PATH 2931 do 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 2940 done 2941 done 2942 IFS=$as_save_IFS 2943 2944 fi 2945 fi 2946 AWK=$ac_cv_prog_AWK 2947 if test -n "$AWK"; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2949 $as_echo "$AWK" >&6; } 2950 else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952 $as_echo "no" >&6; } 2953 fi 2954 2955 2956 test -n "$AWK" && break 2957 done 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; } 2961 set x ${MAKE-make} 2962 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2963 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2964 $as_echo_n "(cached) " >&6 2965 else 2966 cat >conftest.make <<\_ACEOF 2967 SHELL = /bin/sh 2968 all: 2969 @echo '@@@%%%=$(MAKE)=@@@%%%' 2970 _ACEOF 2971 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2972 case `${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;; 2977 esac 2978 rm -f conftest.make 2979 fi 2980 if 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= 2984 else 2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2986 $as_echo "no" >&6; } 2987 SET_MAKE="MAKE=${MAKE-make}" 2988 fi 2989 2990 rm -rf .tst 2>/dev/null 2991 mkdir .tst 2>/dev/null 2992 if test -d .tst; then 2993 am__leading_dot=. 2994 else 2995 am__leading_dot=_ 2996 fi 2997 rmdir .tst 2>/dev/null 2998 2999 # Check whether --enable-silent-rules was given. 3000 if test "${enable_silent_rules+set}" = set; then : 3001 enableval=$enable_silent_rules; 3002 fi 3003 3004 case $enable_silent_rules in # ((( 3005 yes) AM_DEFAULT_VERBOSITY=0;; 3006 no) AM_DEFAULT_VERBOSITY=1;; 3007 *) AM_DEFAULT_VERBOSITY=1;; 3008 esac 3009 am_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; } 3012 if ${am_cv_make_support_nested_variables+:} false; then : 3013 $as_echo_n "(cached) " >&6 3014 else 3015 if $as_echo 'TRUE=$(BAR$(V)) 3016 BAR0=false 3017 BAR1=true 3018 V=1 3019 am__doit: 3020 @$(TRUE) 3021 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3022 am_cv_make_support_nested_variables=yes 3023 else 3024 am_cv_make_support_nested_variables=no 3025 fi 3026 fi 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; } 3029 if test $am_cv_make_support_nested_variables = yes; then 3030 AM_V='$(V)' 3031 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3032 else 3033 AM_V=$AM_DEFAULT_VERBOSITY 3034 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3035 fi 3036 AM_BACKSLASH='\' 3037 3038 if 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 3046 fi 3047 3048 # test whether we have cygpath 3049 if 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 3055 fi 3056 3057 3058 # Define the identity of the package. 3059 PACKAGE='xf86-video-intel' 3060 VERSION='2.99.917' 3061 3062 3063 cat >>confdefs.h <<_ACEOF 3064 #define PACKAGE "$PACKAGE" 3065 _ACEOF 3066 3067 3068 cat >>confdefs.h <<_ACEOF 3069 #define VERSION "$VERSION" 3070 _ACEOF 3071 3072 # Some tools Automake needs. 3073 3074 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3075 3076 3077 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3078 3079 3080 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3081 3082 3083 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3084 3085 3086 MAKEINFO=${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> 3092 mkdir_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 ... 3098 AMTAR='$${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 3104 am__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. 3119 if rm -f && rm -fr && rm -rf; then : OK; else 3120 cat >&2 <<'END' 3121 Oops! 3122 3123 Your 'rm' program seems unable to run without file operands specified 3124 on the command line, even when the '-f' option is present. This is contrary 3125 to the behaviour of most rm programs out there, and not conforming with 3126 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3127 3128 Please tell bug-automake@gnu.org about your system, including the value 3129 of your $PATH and any error possibly output before this message. This 3130 can help us improve future automake versions. 3131 3132 END 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' 3139 Aborting the configuration process, to ensure you take notice of the issue. 3140 3141 You can download and install GNU coreutils to get an 'rm' implementation 3142 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3143 3144 If you want to complete the configuration process using your problematic 3145 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3146 to "yes", and re-run configure. 3147 3148 END 3149 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3150 fi 3151 fi 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 3166 DEPDIR="${am__leading_dot}deps" 3167 3168 ac_config_commands="$ac_config_commands depfiles" 3169 3170 3171 am_make=${MAKE-make} 3172 cat > confinc << 'END' 3173 am__doit: 3174 @echo this is the am__doit target 3175 .PHONY: am__doit 3176 END 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; } 3180 am__include="#" 3181 am__quote= 3182 _am_result=none 3183 # First try GNU make style include. 3184 echo "include confinc" > confmf 3185 # Ignore all kinds of additional output from 'make'. 3186 case `$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 ;; 3192 esac 3193 # Now try BSD make style include. 3194 if 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 3203 fi 3204 3205 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3207 $as_echo "$_am_result" >&6; } 3208 rm -f confinc confmf 3209 3210 # Check whether --enable-dependency-tracking was given. 3211 if test "${enable_dependency_tracking+set}" = set; then : 3212 enableval=$enable_dependency_tracking; 3213 fi 3214 3215 if test "x$enable_dependency_tracking" != xno; then 3216 am_depcomp="$ac_aux_dir/depcomp" 3217 AMDEPBACKSLASH='\' 3218 am__nodep='_no' 3219 fi 3220 if test "x$enable_dependency_tracking" != xno; then 3221 AMDEP_TRUE= 3222 AMDEP_FALSE='#' 3223 else 3224 AMDEP_TRUE='#' 3225 AMDEP_FALSE= 3226 fi 3227 3228 3229 ac_ext=c 3230 ac_cpp='$CPP $CPPFLAGS' 3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3234 if 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. 3236 set 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; } 3239 if ${ac_cv_prog_CC+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241 else 3242 if test -n "$CC"; then 3243 ac_cv_prog_CC="$CC" # Let the user override the test. 3244 else 3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246 for as_dir in $PATH 3247 do 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 3256 done 3257 done 3258 IFS=$as_save_IFS 3259 3260 fi 3261 fi 3262 CC=$ac_cv_prog_CC 3263 if test -n "$CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265 $as_echo "$CC" >&6; } 3266 else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268 $as_echo "no" >&6; } 3269 fi 3270 3271 3272 fi 3273 if 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. 3276 set 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; } 3279 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3280 $as_echo_n "(cached) " >&6 3281 else 3282 if test -n "$ac_ct_CC"; then 3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3284 else 3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286 for as_dir in $PATH 3287 do 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 3296 done 3297 done 3298 IFS=$as_save_IFS 3299 3300 fi 3301 fi 3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3303 if 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; } 3306 else 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308 $as_echo "no" >&6; } 3309 fi 3310 3311 if test "x$ac_ct_CC" = x; then 3312 CC="" 3313 else 3314 case $cross_compiling:$ac_tool_warned in 3315 yes:) 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;} 3318 ac_tool_warned=yes ;; 3319 esac 3320 CC=$ac_ct_CC 3321 fi 3322 else 3323 CC="$ac_cv_prog_CC" 3324 fi 3325 3326 if 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. 3329 set 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; } 3332 if ${ac_cv_prog_CC+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334 else 3335 if test -n "$CC"; then 3336 ac_cv_prog_CC="$CC" # Let the user override the test. 3337 else 3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3339 for as_dir in $PATH 3340 do 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 3349 done 3350 done 3351 IFS=$as_save_IFS 3352 3353 fi 3354 fi 3355 CC=$ac_cv_prog_CC 3356 if test -n "$CC"; then 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3358 $as_echo "$CC" >&6; } 3359 else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3361 $as_echo "no" >&6; } 3362 fi 3363 3364 3365 fi 3366 fi 3367 if test -z "$CC"; then 3368 # Extract the first word of "cc", so it can be a program name with args. 3369 set 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; } 3372 if ${ac_cv_prog_CC+:} false; then : 3373 $as_echo_n "(cached) " >&6 3374 else 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377 else 3378 ac_prog_rejected=no 3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380 for as_dir in $PATH 3381 do 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 3394 done 3395 done 3396 IFS=$as_save_IFS 3397 3398 if 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 3409 fi 3410 fi 3411 fi 3412 CC=$ac_cv_prog_CC 3413 if test -n "$CC"; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3415 $as_echo "$CC" >&6; } 3416 else 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418 $as_echo "no" >&6; } 3419 fi 3420 3421 3422 fi 3423 if 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. 3428 set 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; } 3431 if ${ac_cv_prog_CC+:} false; then : 3432 $as_echo_n "(cached) " >&6 3433 else 3434 if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436 else 3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438 for as_dir in $PATH 3439 do 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 3448 done 3449 done 3450 IFS=$as_save_IFS 3451 3452 fi 3453 fi 3454 CC=$ac_cv_prog_CC 3455 if test -n "$CC"; then 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3457 $as_echo "$CC" >&6; } 3458 else 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3460 $as_echo "no" >&6; } 3461 fi 3462 3463 3464 test -n "$CC" && break 3465 done 3466 fi 3467 if test -z "$CC"; then 3468 ac_ct_CC=$CC 3469 for ac_prog in cl.exe 3470 do 3471 # Extract the first word of "$ac_prog", so it can be a program name with args. 3472 set 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; } 3475 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477 else 3478 if test -n "$ac_ct_CC"; then 3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3480 else 3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482 for as_dir in $PATH 3483 do 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 3492 done 3493 done 3494 IFS=$as_save_IFS 3495 3496 fi 3497 fi 3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3499 if 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; } 3502 else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504 $as_echo "no" >&6; } 3505 fi 3506 3507 3508 test -n "$ac_ct_CC" && break 3509 done 3510 3511 if test "x$ac_ct_CC" = x; then 3512 CC="" 3513 else 3514 case $cross_compiling:$ac_tool_warned in 3515 yes:) 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;} 3518 ac_tool_warned=yes ;; 3519 esac 3520 CC=$ac_ct_CC 3521 fi 3522 fi 3523 3524 fi 3525 3526 3527 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529 as_fn_error $? "no acceptable C compiler found in \$PATH 3530 See \`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 3534 set X $ac_compile 3535 ac_compiler=$2 3536 for ac_option in --version -v -V -qversion; do 3537 { { ac_try="$ac_compiler $ac_option >&5" 3538 case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541 esac 3542 eval 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; } 3555 done 3556 3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558 /* end confdefs.h. */ 3559 3560 int 3561 main () 3562 { 3563 3564 ; 3565 return 0; 3566 } 3567 _ACEOF 3568 ac_clean_files_save=$ac_clean_files 3569 ac_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; } 3575 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3576 3577 # The possible output files: 3578 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3579 3580 ac_rmfiles= 3581 for ac_file in $ac_files 3582 do 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 3587 done 3588 rm -f $ac_rmfiles 3589 3590 if { { ac_try="$ac_link_default" 3591 case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594 esac 3595 eval 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. 3606 for ac_file in $ac_files '' 3607 do 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 3630 done 3631 test "$ac_cv_exeext" = no && ac_cv_exeext= 3632 3633 else 3634 ac_file='' 3635 fi 3636 if 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 3640 sed '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;} 3644 as_fn_error 77 "C compiler cannot create executables 3645 See \`config.log' for more details" "$LINENO" 5; } 3646 else 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3648 $as_echo "yes" >&6; } 3649 fi 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; } 3654 ac_exeext=$ac_cv_exeext 3655 3656 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3657 ac_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; } 3660 if { { ac_try="$ac_link" 3661 case "(($ac_try" in 3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3663 *) ac_try_echo=$ac_try;; 3664 esac 3665 eval 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'. 3675 for 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 3683 done 3684 else 3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3687 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3688 See \`config.log' for more details" "$LINENO" 5; } 3689 fi 3690 rm -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 3694 rm -f conftest.$ac_ext 3695 EXEEXT=$ac_cv_exeext 3696 ac_exeext=$EXEEXT 3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698 /* end confdefs.h. */ 3699 #include <stdio.h> 3700 int 3701 main () 3702 { 3703 FILE *f = fopen ("conftest.out", "w"); 3704 return ferror (f) || fclose (f) != 0; 3705 3706 ; 3707 return 0; 3708 } 3709 _ACEOF 3710 ac_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; } 3715 if test "$cross_compiling" != yes; then 3716 { { ac_try="$ac_link" 3717 case "(($ac_try" in 3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3719 *) ac_try_echo=$ac_try;; 3720 esac 3721 eval 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;; 3731 esac 3732 eval 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;} 3745 as_fn_error $? "cannot run C compiled programs. 3746 If you meant to cross compile, use \`--host'. 3747 See \`config.log' for more details" "$LINENO" 5; } 3748 fi 3749 fi 3750 fi 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3752 $as_echo "$cross_compiling" >&6; } 3753 3754 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3755 ac_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; } 3758 if ${ac_cv_objext+:} false; then : 3759 $as_echo_n "(cached) " >&6 3760 else 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762 /* end confdefs.h. */ 3763 3764 int 3765 main () 3766 { 3767 3768 ; 3769 return 0; 3770 } 3771 _ACEOF 3772 rm -f conftest.o conftest.obj 3773 if { { ac_try="$ac_compile" 3774 case "(($ac_try" in 3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3776 *) ac_try_echo=$ac_try;; 3777 esac 3778 eval 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 3791 done 3792 else 3793 $as_echo "$as_me: failed program was:" >&5 3794 sed '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;} 3798 as_fn_error $? "cannot compute suffix of object files: cannot compile 3799 See \`config.log' for more details" "$LINENO" 5; } 3800 fi 3801 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3802 fi 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3804 $as_echo "$ac_cv_objext" >&6; } 3805 OBJEXT=$ac_cv_objext 3806 ac_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; } 3809 if ${ac_cv_c_compiler_gnu+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811 else 3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3813 /* end confdefs.h. */ 3814 3815 int 3816 main () 3817 { 3818 #ifndef __GNUC__ 3819 choke me 3820 #endif 3821 3822 ; 3823 return 0; 3824 } 3825 _ACEOF 3826 if ac_fn_c_try_compile "$LINENO"; then : 3827 ac_compiler_gnu=yes 3828 else 3829 ac_compiler_gnu=no 3830 fi 3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3833 3834 fi 3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3836 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3837 if test $ac_compiler_gnu = yes; then 3838 GCC=yes 3839 else 3840 GCC= 3841 fi 3842 ac_test_CFLAGS=${CFLAGS+set} 3843 ac_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; } 3846 if ${ac_cv_prog_cc_g+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848 else 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 3856 int 3857 main () 3858 { 3859 3860 ; 3861 return 0; 3862 } 3863 _ACEOF 3864 if ac_fn_c_try_compile "$LINENO"; then : 3865 ac_cv_prog_cc_g=yes 3866 else 3867 CFLAGS="" 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869 /* end confdefs.h. */ 3870 3871 int 3872 main () 3873 { 3874 3875 ; 3876 return 0; 3877 } 3878 _ACEOF 3879 if ac_fn_c_try_compile "$LINENO"; then : 3880 3881 else 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 3887 int 3888 main () 3889 { 3890 3891 ; 3892 return 0; 3893 } 3894 _ACEOF 3895 if ac_fn_c_try_compile "$LINENO"; then : 3896 ac_cv_prog_cc_g=yes 3897 fi 3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3899 fi 3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3901 fi 3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3903 ac_c_werror_flag=$ac_save_c_werror_flag 3904 fi 3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3906 $as_echo "$ac_cv_prog_cc_g" >&6; } 3907 if test "$ac_test_CFLAGS" = set; then 3908 CFLAGS=$ac_save_CFLAGS 3909 elif 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 3915 else 3916 if test "$GCC" = yes; then 3917 CFLAGS="-O2" 3918 else 3919 CFLAGS= 3920 fi 3921 fi 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; } 3924 if ${ac_cv_prog_cc_c89+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926 else 3927 ac_cv_prog_cc_c89=no 3928 ac_save_CC=$CC 3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930 /* end confdefs.h. */ 3931 #include <stdarg.h> 3932 #include <stdio.h> 3933 struct stat; 3934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3935 struct buf { int x; }; 3936 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3937 static char *e (p, i) 3938 char **p; 3939 int i; 3940 { 3941 return p[i]; 3942 } 3943 static 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. */ 3960 int 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' 3965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3966 3967 int test (int i, double x); 3968 struct s1 {int (*f) (int a);}; 3969 struct s2 {int (*f) (double a);}; 3970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3971 int argc; 3972 char **argv; 3973 int 3974 main () 3975 { 3976 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3977 ; 3978 return 0; 3979 } 3980 _ACEOF 3981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3983 do 3984 CC="$ac_save_CC $ac_arg" 3985 if ac_fn_c_try_compile "$LINENO"; then : 3986 ac_cv_prog_cc_c89=$ac_arg 3987 fi 3988 rm -f core conftest.err conftest.$ac_objext 3989 test "x$ac_cv_prog_cc_c89" != "xno" && break 3990 done 3991 rm -f conftest.$ac_ext 3992 CC=$ac_save_CC 3993 3994 fi 3995 # AC_CACHE_VAL 3996 case "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; } ;; 4007 esac 4008 if test "x$ac_cv_prog_cc_c89" != xno; then : 4009 4010 fi 4011 4012 ac_ext=c 4013 ac_cpp='$CPP $CPPFLAGS' 4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4017 4018 ac_ext=c 4019 ac_cpp='$CPP $CPPFLAGS' 4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4022 ac_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; } 4025 if ${am_cv_prog_cc_c_o+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027 else 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029 /* end confdefs.h. */ 4030 4031 int 4032 main () 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 4059 fi 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; } 4062 if 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" 4069 fi 4070 ac_ext=c 4071 ac_cpp='$CPP $CPPFLAGS' 4072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4074 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4075 4076 4077 depcc="$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; } 4081 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083 else 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 4185 else 4186 am_cv_CC_dependencies_compiler_type=none 4187 fi 4188 4189 fi 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; } 4192 CCDEPMODE=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='#' 4199 else 4200 am__fastdepCC_TRUE='#' 4201 am__fastdepCC_FALSE= 4202 fi 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; } 4207 if ${ac_cv_prog_cc_c99+:} false; then : 4208 $as_echo_n "(cached) " >&6 4209 else 4210 ac_cv_prog_cc_c99=no 4211 ac_save_CC=$CC 4212 cat 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__)) 4224 static void 4225 test_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 4246 static long long int bignum = -9223372036854775807LL; 4247 static unsigned long long int ubignum = BIG64; 4248 4249 struct incomplete_array 4250 { 4251 int datasize; 4252 double data[]; 4253 }; 4254 4255 struct named_init { 4256 int number; 4257 const wchar_t *name; 4258 double average; 4259 }; 4260 4261 typedef const char *ccp; 4262 4263 static inline int 4264 test_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. 4275 static void 4276 test_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 4308 int 4309 main () 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 4351 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4352 do 4353 CC="$ac_save_CC $ac_arg" 4354 if ac_fn_c_try_compile "$LINENO"; then : 4355 ac_cv_prog_cc_c99=$ac_arg 4356 fi 4357 rm -f core conftest.err conftest.$ac_objext 4358 test "x$ac_cv_prog_cc_c99" != "xno" && break 4359 done 4360 rm -f conftest.$ac_ext 4361 CC=$ac_save_CC 4362 4363 fi 4364 # AC_CACHE_VAL 4365 case "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; } ;; 4376 esac 4377 if test "x$ac_cv_prog_cc_c99" != xno; then : 4378 4379 fi 4380 4381 4382 4383 ac_ext=c 4384 ac_cpp='$CPP $CPPFLAGS' 4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4387 ac_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. 4391 if test -n "$CPP" && test -d "$CPP"; then 4392 CPP= 4393 fi 4394 if test -z "$CPP"; then 4395 if ${ac_cv_prog_CPP+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397 else 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 4402 for ac_c_preproc_warn_flag in '' yes 4403 do 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 4419 if ac_fn_c_try_cpp "$LINENO"; then : 4420 4421 else 4422 # Broken: fails on valid input. 4423 continue 4424 fi 4425 rm -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 4433 if ac_fn_c_try_cpp "$LINENO"; then : 4434 # Broken: success on invalid input. 4435 continue 4436 else 4437 # Passes both tests. 4438 ac_preproc_ok=: 4439 break 4440 fi 4441 rm -f conftest.err conftest.i conftest.$ac_ext 4442 4443 done 4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4445 rm -f conftest.i conftest.err conftest.$ac_ext 4446 if $ac_preproc_ok; then : 4447 break 4448 fi 4449 4450 done 4451 ac_cv_prog_CPP=$CPP 4452 4453 fi 4454 CPP=$ac_cv_prog_CPP 4455 else 4456 ac_cv_prog_CPP=$CPP 4457 fi 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4459 $as_echo "$CPP" >&6; } 4460 ac_preproc_ok=false 4461 for ac_c_preproc_warn_flag in '' yes 4462 do 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 4478 if ac_fn_c_try_cpp "$LINENO"; then : 4479 4480 else 4481 # Broken: fails on valid input. 4482 continue 4483 fi 4484 rm -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 4492 if ac_fn_c_try_cpp "$LINENO"; then : 4493 # Broken: success on invalid input. 4494 continue 4495 else 4496 # Passes both tests. 4497 ac_preproc_ok=: 4498 break 4499 fi 4500 rm -f conftest.err conftest.i conftest.$ac_ext 4501 4502 done 4503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4504 rm -f conftest.i conftest.err conftest.$ac_ext 4505 if $ac_preproc_ok; then : 4506 4507 else 4508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4510 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4511 See \`config.log' for more details" "$LINENO" 5; } 4512 fi 4513 4514 ac_ext=c 4515 ac_cpp='$CPP $CPPFLAGS' 4516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4518 ac_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; } 4523 if ${ac_cv_path_GREP+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525 else 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 4530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4531 do 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 4540 case `"$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;; 4564 esac 4565 4566 $ac_path_GREP_found && break 3 4567 done 4568 done 4569 done 4570 IFS=$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 4574 else 4575 ac_cv_path_GREP=$GREP 4576 fi 4577 4578 fi 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; } 4586 if ${ac_cv_path_EGREP+:} false; then : 4587 $as_echo_n "(cached) " >&6 4588 else 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 4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4597 do 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 4606 case `"$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;; 4630 esac 4631 4632 $ac_path_EGREP_found && break 3 4633 done 4634 done 4635 done 4636 IFS=$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 4640 else 4641 ac_cv_path_EGREP=$EGREP 4642 fi 4643 4644 fi 4645 fi 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; } 4653 if ${ac_cv_header_stdc+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655 else 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 4663 int 4664 main () 4665 { 4666 4667 ; 4668 return 0; 4669 } 4670 _ACEOF 4671 if ac_fn_c_try_compile "$LINENO"; then : 4672 ac_cv_header_stdc=yes 4673 else 4674 ac_cv_header_stdc=no 4675 fi 4676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4677 4678 if 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 4685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4686 $EGREP "memchr" >/dev/null 2>&1; then : 4687 4688 else 4689 ac_cv_header_stdc=no 4690 fi 4691 rm -f conftest* 4692 4693 fi 4694 4695 if 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 4702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4703 $EGREP "free" >/dev/null 2>&1; then : 4704 4705 else 4706 ac_cv_header_stdc=no 4707 fi 4708 rm -f conftest* 4709 4710 fi 4711 4712 if 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 : 4716 else 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))) 4733 int 4734 main () 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 4744 if ac_fn_c_try_run "$LINENO"; then : 4745 4746 else 4747 ac_cv_header_stdc=no 4748 fi 4749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4750 conftest.$ac_objext conftest.beam conftest.$ac_ext 4751 fi 4752 4753 fi 4754 fi 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4756 $as_echo "$ac_cv_header_stdc" >&6; } 4757 if test $ac_cv_header_stdc = yes; then 4758 4759 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4760 4761 fi 4762 4763 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4764 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4765 inttypes.h stdint.h unistd.h 4766 do : 4767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4768 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4769 " 4770 if 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 4775 fi 4776 4777 done 4778 4779 4780 4781 4782 4783 4784 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4785 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4786 CLANGCC="yes" 4787 else 4788 CLANGCC="no" 4789 fi 4790 4791 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4792 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4793 INTELCC="yes" 4794 else 4795 INTELCC="no" 4796 fi 4797 4798 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4799 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4800 SUNCC="yes" 4801 else 4802 SUNCC="no" 4803 fi 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 if 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. 4816 set 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; } 4819 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821 else 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 4828 for as_dir in $PATH 4829 do 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 4838 done 4839 done 4840 IFS=$as_save_IFS 4841 4842 ;; 4843 esac 4844 fi 4845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4846 if test -n "$PKG_CONFIG"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4848 $as_echo "$PKG_CONFIG" >&6; } 4849 else 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4851 $as_echo "no" >&6; } 4852 fi 4853 4854 4855 fi 4856 if 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. 4859 set 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; } 4862 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4863 $as_echo_n "(cached) " >&6 4864 else 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 4871 for as_dir in $PATH 4872 do 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 4881 done 4882 done 4883 IFS=$as_save_IFS 4884 4885 ;; 4886 esac 4887 fi 4888 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4889 if 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; } 4892 else 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4894 $as_echo "no" >&6; } 4895 fi 4896 4897 if test "x$ac_pt_PKG_CONFIG" = x; then 4898 PKG_CONFIG="" 4899 else 4900 case $cross_compiling:$ac_tool_warned in 4901 yes:) 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;} 4904 ac_tool_warned=yes ;; 4905 esac 4906 PKG_CONFIG=$ac_pt_PKG_CONFIG 4907 fi 4908 else 4909 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4910 fi 4911 4912 fi 4913 if 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 4925 fi 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; } 4932 if ${ac_cv_build+:} false; then : 4933 $as_echo_n "(cached) " >&6 4934 else 4935 ac_build_alias=$build_alias 4936 test "x$ac_build_alias" = x && 4937 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4938 test "x$ac_build_alias" = x && 4939 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4940 ac_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 4943 fi 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4945 $as_echo "$ac_cv_build" >&6; } 4946 case $ac_cv_build in 4947 *-*-*) ;; 4948 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4949 esac 4950 build=$ac_cv_build 4951 ac_save_IFS=$IFS; IFS='-' 4952 set x $ac_cv_build 4953 shift 4954 build_cpu=$1 4955 build_vendor=$2 4956 shift; shift 4957 # Remember, the first character of IFS is used to create $*, 4958 # except with old shells: 4959 build_os=$* 4960 IFS=$ac_save_IFS 4961 case $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; } 4966 if ${ac_cv_host+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968 else 4969 if test "x$host_alias" = x; then 4970 ac_cv_host=$ac_cv_build 4971 else 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 4974 fi 4975 4976 fi 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4978 $as_echo "$ac_cv_host" >&6; } 4979 case $ac_cv_host in 4980 *-*-*) ;; 4981 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4982 esac 4983 host=$ac_cv_host 4984 ac_save_IFS=$IFS; IFS='-' 4985 set x $ac_cv_host 4986 shift 4987 host_cpu=$1 4988 host_vendor=$2 4989 shift; shift 4990 # Remember, the first character of IFS is used to create $*, 4991 # except with old shells: 4992 host_os=$* 4993 IFS=$ac_save_IFS 4994 case $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; } 4999 if ${ac_cv_path_SED+:} false; then : 5000 $as_echo_n "(cached) " >&6 5001 else 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 5012 for as_dir in $PATH 5013 do 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 5022 case `"$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;; 5046 esac 5047 5048 $ac_path_SED_found && break 3 5049 done 5050 done 5051 done 5052 IFS=$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 5056 else 5057 ac_cv_path_SED=$SED 5058 fi 5059 5060 fi 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. 5072 if test "${enable_selective_werror+set}" = set; then : 5073 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5074 else 5075 SELECTIVE_WERROR=yes 5076 fi 5077 5078 5079 5080 5081 5082 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5083 if test "x$SUNCC" = "xyes"; then 5084 BASE_CFLAGS="-v" 5085 else 5086 BASE_CFLAGS="" 5087 fi 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 5103 xorg_testset_save_CFLAGS="$CFLAGS" 5104 5105 if 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; } 5109 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111 else 5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113 /* end confdefs.h. */ 5114 int i; 5115 _ACEOF 5116 if ac_fn_c_try_compile "$LINENO"; then : 5117 xorg_cv_cc_flag_unknown_warning_option=yes 5118 else 5119 xorg_cv_cc_flag_unknown_warning_option=no 5120 fi 5121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5122 fi 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" 5127 fi 5128 5129 if 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; } 5136 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5137 $as_echo_n "(cached) " >&6 5138 else 5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5140 /* end confdefs.h. */ 5141 int i; 5142 _ACEOF 5143 if ac_fn_c_try_compile "$LINENO"; then : 5144 xorg_cv_cc_flag_unused_command_line_argument=yes 5145 else 5146 xorg_cv_cc_flag_unused_command_line_argument=no 5147 fi 5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5149 fi 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" 5154 fi 5155 5156 found="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 5174 else 5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5176 /* end confdefs.h. */ 5177 int i; 5178 int 5179 main () 5180 { 5181 5182 ; 5183 return 0; 5184 } 5185 _ACEOF 5186 if ac_fn_c_try_link "$LINENO"; then : 5187 eval $cacheid=yes 5188 else 5189 eval $cacheid=no 5190 fi 5191 rm -f core conftest.err conftest.$ac_objext \ 5192 conftest$ac_exeext conftest.$ac_ext 5193 fi 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 5221 xorg_testset_save_CFLAGS="$CFLAGS" 5222 5223 if 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; } 5227 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229 else 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231 /* end confdefs.h. */ 5232 int i; 5233 _ACEOF 5234 if ac_fn_c_try_compile "$LINENO"; then : 5235 xorg_cv_cc_flag_unknown_warning_option=yes 5236 else 5237 xorg_cv_cc_flag_unknown_warning_option=no 5238 fi 5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5240 fi 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" 5245 fi 5246 5247 if 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; } 5254 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5255 $as_echo_n "(cached) " >&6 5256 else 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5258 /* end confdefs.h. */ 5259 int i; 5260 _ACEOF 5261 if ac_fn_c_try_compile "$LINENO"; then : 5262 xorg_cv_cc_flag_unused_command_line_argument=yes 5263 else 5264 xorg_cv_cc_flag_unused_command_line_argument=no 5265 fi 5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5267 fi 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" 5272 fi 5273 5274 found="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 5292 else 5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294 /* end confdefs.h. */ 5295 int i; 5296 int 5297 main () 5298 { 5299 5300 ; 5301 return 0; 5302 } 5303 _ACEOF 5304 if ac_fn_c_try_link "$LINENO"; then : 5305 eval $cacheid=yes 5306 else 5307 eval $cacheid=no 5308 fi 5309 rm -f core conftest.err conftest.$ac_objext \ 5310 conftest$ac_exeext conftest.$ac_ext 5311 fi 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 5339 xorg_testset_save_CFLAGS="$CFLAGS" 5340 5341 if 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; } 5345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5346 $as_echo_n "(cached) " >&6 5347 else 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349 /* end confdefs.h. */ 5350 int i; 5351 _ACEOF 5352 if ac_fn_c_try_compile "$LINENO"; then : 5353 xorg_cv_cc_flag_unknown_warning_option=yes 5354 else 5355 xorg_cv_cc_flag_unknown_warning_option=no 5356 fi 5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5358 fi 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" 5363 fi 5364 5365 if 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; } 5372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374 else 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5376 /* end confdefs.h. */ 5377 int i; 5378 _ACEOF 5379 if ac_fn_c_try_compile "$LINENO"; then : 5380 xorg_cv_cc_flag_unused_command_line_argument=yes 5381 else 5382 xorg_cv_cc_flag_unused_command_line_argument=no 5383 fi 5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5385 fi 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" 5390 fi 5391 5392 found="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 5410 else 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5412 /* end confdefs.h. */ 5413 int i; 5414 int 5415 main () 5416 { 5417 5418 ; 5419 return 0; 5420 } 5421 _ACEOF 5422 if ac_fn_c_try_link "$LINENO"; then : 5423 eval $cacheid=yes 5424 else 5425 eval $cacheid=no 5426 fi 5427 rm -f core conftest.err conftest.$ac_objext \ 5428 conftest$ac_exeext conftest.$ac_ext 5429 fi 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 5457 xorg_testset_save_CFLAGS="$CFLAGS" 5458 5459 if 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; } 5463 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5464 $as_echo_n "(cached) " >&6 5465 else 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467 /* end confdefs.h. */ 5468 int i; 5469 _ACEOF 5470 if ac_fn_c_try_compile "$LINENO"; then : 5471 xorg_cv_cc_flag_unknown_warning_option=yes 5472 else 5473 xorg_cv_cc_flag_unknown_warning_option=no 5474 fi 5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5476 fi 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" 5481 fi 5482 5483 if 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; } 5490 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5491 $as_echo_n "(cached) " >&6 5492 else 5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5494 /* end confdefs.h. */ 5495 int i; 5496 _ACEOF 5497 if ac_fn_c_try_compile "$LINENO"; then : 5498 xorg_cv_cc_flag_unused_command_line_argument=yes 5499 else 5500 xorg_cv_cc_flag_unused_command_line_argument=no 5501 fi 5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503 fi 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" 5508 fi 5509 5510 found="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 5528 else 5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5530 /* end confdefs.h. */ 5531 int i; 5532 int 5533 main () 5534 { 5535 5536 ; 5537 return 0; 5538 } 5539 _ACEOF 5540 if ac_fn_c_try_link "$LINENO"; then : 5541 eval $cacheid=yes 5542 else 5543 eval $cacheid=no 5544 fi 5545 rm -f core conftest.err conftest.$ac_objext \ 5546 conftest$ac_exeext conftest.$ac_ext 5547 fi 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 5577 else 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579 /* end confdefs.h. */ 5580 int i; 5581 int 5582 main () 5583 { 5584 5585 ; 5586 return 0; 5587 } 5588 _ACEOF 5589 if ac_fn_c_try_link "$LINENO"; then : 5590 eval $cacheid=yes 5591 else 5592 eval $cacheid=no 5593 fi 5594 rm -f core conftest.err conftest.$ac_objext \ 5595 conftest$ac_exeext conftest.$ac_ext 5596 fi 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 5626 xorg_testset_save_CFLAGS="$CFLAGS" 5627 5628 if 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; } 5632 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634 else 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636 /* end confdefs.h. */ 5637 int i; 5638 _ACEOF 5639 if ac_fn_c_try_compile "$LINENO"; then : 5640 xorg_cv_cc_flag_unknown_warning_option=yes 5641 else 5642 xorg_cv_cc_flag_unknown_warning_option=no 5643 fi 5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5645 fi 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" 5650 fi 5651 5652 if 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; } 5659 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5660 $as_echo_n "(cached) " >&6 5661 else 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663 /* end confdefs.h. */ 5664 int i; 5665 _ACEOF 5666 if ac_fn_c_try_compile "$LINENO"; then : 5667 xorg_cv_cc_flag_unused_command_line_argument=yes 5668 else 5669 xorg_cv_cc_flag_unused_command_line_argument=no 5670 fi 5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5672 fi 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" 5677 fi 5678 5679 found="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 5697 else 5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5699 /* end confdefs.h. */ 5700 int i; 5701 int 5702 main () 5703 { 5704 5705 ; 5706 return 0; 5707 } 5708 _ACEOF 5709 if ac_fn_c_try_link "$LINENO"; then : 5710 eval $cacheid=yes 5711 else 5712 eval $cacheid=no 5713 fi 5714 rm -f core conftest.err conftest.$ac_objext \ 5715 conftest$ac_exeext conftest.$ac_ext 5716 fi 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 5744 xorg_testset_save_CFLAGS="$CFLAGS" 5745 5746 if 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; } 5750 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5751 $as_echo_n "(cached) " >&6 5752 else 5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5754 /* end confdefs.h. */ 5755 int i; 5756 _ACEOF 5757 if ac_fn_c_try_compile "$LINENO"; then : 5758 xorg_cv_cc_flag_unknown_warning_option=yes 5759 else 5760 xorg_cv_cc_flag_unknown_warning_option=no 5761 fi 5762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5763 fi 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" 5768 fi 5769 5770 if 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; } 5777 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5778 $as_echo_n "(cached) " >&6 5779 else 5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5781 /* end confdefs.h. */ 5782 int i; 5783 _ACEOF 5784 if ac_fn_c_try_compile "$LINENO"; then : 5785 xorg_cv_cc_flag_unused_command_line_argument=yes 5786 else 5787 xorg_cv_cc_flag_unused_command_line_argument=no 5788 fi 5789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5790 fi 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" 5795 fi 5796 5797 found="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 5815 else 5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5817 /* end confdefs.h. */ 5818 int i; 5819 int 5820 main () 5821 { 5822 5823 ; 5824 return 0; 5825 } 5826 _ACEOF 5827 if ac_fn_c_try_link "$LINENO"; then : 5828 eval $cacheid=yes 5829 else 5830 eval $cacheid=no 5831 fi 5832 rm -f core conftest.err conftest.$ac_objext \ 5833 conftest$ac_exeext conftest.$ac_ext 5834 fi 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 5862 xorg_testset_save_CFLAGS="$CFLAGS" 5863 5864 if 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; } 5868 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870 else 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872 /* end confdefs.h. */ 5873 int i; 5874 _ACEOF 5875 if ac_fn_c_try_compile "$LINENO"; then : 5876 xorg_cv_cc_flag_unknown_warning_option=yes 5877 else 5878 xorg_cv_cc_flag_unknown_warning_option=no 5879 fi 5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5881 fi 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" 5886 fi 5887 5888 if 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; } 5895 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897 else 5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5899 /* end confdefs.h. */ 5900 int i; 5901 _ACEOF 5902 if ac_fn_c_try_compile "$LINENO"; then : 5903 xorg_cv_cc_flag_unused_command_line_argument=yes 5904 else 5905 xorg_cv_cc_flag_unused_command_line_argument=no 5906 fi 5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5908 fi 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" 5913 fi 5914 5915 found="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 5933 else 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935 /* end confdefs.h. */ 5936 int i; 5937 int 5938 main () 5939 { 5940 5941 ; 5942 return 0; 5943 } 5944 _ACEOF 5945 if ac_fn_c_try_link "$LINENO"; then : 5946 eval $cacheid=yes 5947 else 5948 eval $cacheid=no 5949 fi 5950 rm -f core conftest.err conftest.$ac_objext \ 5951 conftest$ac_exeext conftest.$ac_ext 5952 fi 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 5980 xorg_testset_save_CFLAGS="$CFLAGS" 5981 5982 if 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; } 5986 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988 else 5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5990 /* end confdefs.h. */ 5991 int i; 5992 _ACEOF 5993 if ac_fn_c_try_compile "$LINENO"; then : 5994 xorg_cv_cc_flag_unknown_warning_option=yes 5995 else 5996 xorg_cv_cc_flag_unknown_warning_option=no 5997 fi 5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5999 fi 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" 6004 fi 6005 6006 if 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; } 6013 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6014 $as_echo_n "(cached) " >&6 6015 else 6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6017 /* end confdefs.h. */ 6018 int i; 6019 _ACEOF 6020 if ac_fn_c_try_compile "$LINENO"; then : 6021 xorg_cv_cc_flag_unused_command_line_argument=yes 6022 else 6023 xorg_cv_cc_flag_unused_command_line_argument=no 6024 fi 6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6026 fi 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" 6031 fi 6032 6033 found="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 6051 else 6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6053 /* end confdefs.h. */ 6054 int i; 6055 int 6056 main () 6057 { 6058 6059 ; 6060 return 0; 6061 } 6062 _ACEOF 6063 if ac_fn_c_try_link "$LINENO"; then : 6064 eval $cacheid=yes 6065 else 6066 eval $cacheid=no 6067 fi 6068 rm -f core conftest.err conftest.$ac_objext \ 6069 conftest$ac_exeext conftest.$ac_ext 6070 fi 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 6098 xorg_testset_save_CFLAGS="$CFLAGS" 6099 6100 if 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; } 6104 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106 else 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108 /* end confdefs.h. */ 6109 int i; 6110 _ACEOF 6111 if ac_fn_c_try_compile "$LINENO"; then : 6112 xorg_cv_cc_flag_unknown_warning_option=yes 6113 else 6114 xorg_cv_cc_flag_unknown_warning_option=no 6115 fi 6116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6117 fi 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" 6122 fi 6123 6124 if 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; } 6131 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133 else 6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6135 /* end confdefs.h. */ 6136 int i; 6137 _ACEOF 6138 if ac_fn_c_try_compile "$LINENO"; then : 6139 xorg_cv_cc_flag_unused_command_line_argument=yes 6140 else 6141 xorg_cv_cc_flag_unused_command_line_argument=no 6142 fi 6143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6144 fi 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" 6149 fi 6150 6151 found="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 6169 else 6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6171 /* end confdefs.h. */ 6172 int i; 6173 int 6174 main () 6175 { 6176 6177 ; 6178 return 0; 6179 } 6180 _ACEOF 6181 if ac_fn_c_try_link "$LINENO"; then : 6182 eval $cacheid=yes 6183 else 6184 eval $cacheid=no 6185 fi 6186 rm -f core conftest.err conftest.$ac_objext \ 6187 conftest$ac_exeext conftest.$ac_ext 6188 fi 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 6216 xorg_testset_save_CFLAGS="$CFLAGS" 6217 6218 if 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; } 6222 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6223 $as_echo_n "(cached) " >&6 6224 else 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226 /* end confdefs.h. */ 6227 int i; 6228 _ACEOF 6229 if ac_fn_c_try_compile "$LINENO"; then : 6230 xorg_cv_cc_flag_unknown_warning_option=yes 6231 else 6232 xorg_cv_cc_flag_unknown_warning_option=no 6233 fi 6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6235 fi 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" 6240 fi 6241 6242 if 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; } 6249 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6250 $as_echo_n "(cached) " >&6 6251 else 6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6253 /* end confdefs.h. */ 6254 int i; 6255 _ACEOF 6256 if ac_fn_c_try_compile "$LINENO"; then : 6257 xorg_cv_cc_flag_unused_command_line_argument=yes 6258 else 6259 xorg_cv_cc_flag_unused_command_line_argument=no 6260 fi 6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6262 fi 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" 6267 fi 6268 6269 found="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 6287 else 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289 /* end confdefs.h. */ 6290 int i; 6291 int 6292 main () 6293 { 6294 6295 ; 6296 return 0; 6297 } 6298 _ACEOF 6299 if ac_fn_c_try_link "$LINENO"; then : 6300 eval $cacheid=yes 6301 else 6302 eval $cacheid=no 6303 fi 6304 rm -f core conftest.err conftest.$ac_objext \ 6305 conftest$ac_exeext conftest.$ac_ext 6306 fi 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 6338 xorg_testset_save_CFLAGS="$CFLAGS" 6339 6340 if 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; } 6344 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346 else 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348 /* end confdefs.h. */ 6349 int i; 6350 _ACEOF 6351 if ac_fn_c_try_compile "$LINENO"; then : 6352 xorg_cv_cc_flag_unknown_warning_option=yes 6353 else 6354 xorg_cv_cc_flag_unknown_warning_option=no 6355 fi 6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6357 fi 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" 6362 fi 6363 6364 if 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; } 6371 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6372 $as_echo_n "(cached) " >&6 6373 else 6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6375 /* end confdefs.h. */ 6376 int i; 6377 _ACEOF 6378 if ac_fn_c_try_compile "$LINENO"; then : 6379 xorg_cv_cc_flag_unused_command_line_argument=yes 6380 else 6381 xorg_cv_cc_flag_unused_command_line_argument=no 6382 fi 6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6384 fi 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" 6389 fi 6390 6391 found="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 6409 else 6410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6411 /* end confdefs.h. */ 6412 int i; 6413 int 6414 main () 6415 { 6416 6417 ; 6418 return 0; 6419 } 6420 _ACEOF 6421 if ac_fn_c_try_link "$LINENO"; then : 6422 eval $cacheid=yes 6423 else 6424 eval $cacheid=no 6425 fi 6426 rm -f core conftest.err conftest.$ac_objext \ 6427 conftest$ac_exeext conftest.$ac_ext 6428 fi 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 6456 xorg_testset_save_CFLAGS="$CFLAGS" 6457 6458 if 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; } 6462 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464 else 6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6466 /* end confdefs.h. */ 6467 int i; 6468 _ACEOF 6469 if ac_fn_c_try_compile "$LINENO"; then : 6470 xorg_cv_cc_flag_unknown_warning_option=yes 6471 else 6472 xorg_cv_cc_flag_unknown_warning_option=no 6473 fi 6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6475 fi 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" 6480 fi 6481 6482 if 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; } 6489 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6490 $as_echo_n "(cached) " >&6 6491 else 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6493 /* end confdefs.h. */ 6494 int i; 6495 _ACEOF 6496 if ac_fn_c_try_compile "$LINENO"; then : 6497 xorg_cv_cc_flag_unused_command_line_argument=yes 6498 else 6499 xorg_cv_cc_flag_unused_command_line_argument=no 6500 fi 6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6502 fi 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" 6507 fi 6508 6509 found="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 6527 else 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529 /* end confdefs.h. */ 6530 int i; 6531 int 6532 main () 6533 { 6534 6535 ; 6536 return 0; 6537 } 6538 _ACEOF 6539 if ac_fn_c_try_link "$LINENO"; then : 6540 eval $cacheid=yes 6541 else 6542 eval $cacheid=no 6543 fi 6544 rm -f core conftest.err conftest.$ac_objext \ 6545 conftest$ac_exeext conftest.$ac_ext 6546 fi 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 6574 xorg_testset_save_CFLAGS="$CFLAGS" 6575 6576 if 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; } 6580 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582 else 6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6584 /* end confdefs.h. */ 6585 int i; 6586 _ACEOF 6587 if ac_fn_c_try_compile "$LINENO"; then : 6588 xorg_cv_cc_flag_unknown_warning_option=yes 6589 else 6590 xorg_cv_cc_flag_unknown_warning_option=no 6591 fi 6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6593 fi 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" 6598 fi 6599 6600 if 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; } 6607 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609 else 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611 /* end confdefs.h. */ 6612 int i; 6613 _ACEOF 6614 if ac_fn_c_try_compile "$LINENO"; then : 6615 xorg_cv_cc_flag_unused_command_line_argument=yes 6616 else 6617 xorg_cv_cc_flag_unused_command_line_argument=no 6618 fi 6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6620 fi 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" 6625 fi 6626 6627 found="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 6645 else 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647 /* end confdefs.h. */ 6648 int i; 6649 int 6650 main () 6651 { 6652 6653 ; 6654 return 0; 6655 } 6656 _ACEOF 6657 if ac_fn_c_try_link "$LINENO"; then : 6658 eval $cacheid=yes 6659 else 6660 eval $cacheid=no 6661 fi 6662 rm -f core conftest.err conftest.$ac_objext \ 6663 conftest$ac_exeext conftest.$ac_ext 6664 fi 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 6692 xorg_testset_save_CFLAGS="$CFLAGS" 6693 6694 if 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; } 6698 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6699 $as_echo_n "(cached) " >&6 6700 else 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702 /* end confdefs.h. */ 6703 int i; 6704 _ACEOF 6705 if ac_fn_c_try_compile "$LINENO"; then : 6706 xorg_cv_cc_flag_unknown_warning_option=yes 6707 else 6708 xorg_cv_cc_flag_unknown_warning_option=no 6709 fi 6710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6711 fi 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" 6716 fi 6717 6718 if 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; } 6725 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6726 $as_echo_n "(cached) " >&6 6727 else 6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6729 /* end confdefs.h. */ 6730 int i; 6731 _ACEOF 6732 if ac_fn_c_try_compile "$LINENO"; then : 6733 xorg_cv_cc_flag_unused_command_line_argument=yes 6734 else 6735 xorg_cv_cc_flag_unused_command_line_argument=no 6736 fi 6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6738 fi 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" 6743 fi 6744 6745 found="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 6763 else 6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6765 /* end confdefs.h. */ 6766 int i; 6767 int 6768 main () 6769 { 6770 6771 ; 6772 return 0; 6773 } 6774 _ACEOF 6775 if ac_fn_c_try_link "$LINENO"; then : 6776 eval $cacheid=yes 6777 else 6778 eval $cacheid=no 6779 fi 6780 rm -f core conftest.err conftest.$ac_objext \ 6781 conftest$ac_exeext conftest.$ac_ext 6782 fi 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 6810 xorg_testset_save_CFLAGS="$CFLAGS" 6811 6812 if 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; } 6816 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818 else 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820 /* end confdefs.h. */ 6821 int i; 6822 _ACEOF 6823 if ac_fn_c_try_compile "$LINENO"; then : 6824 xorg_cv_cc_flag_unknown_warning_option=yes 6825 else 6826 xorg_cv_cc_flag_unknown_warning_option=no 6827 fi 6828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6829 fi 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" 6834 fi 6835 6836 if 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; } 6843 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6844 $as_echo_n "(cached) " >&6 6845 else 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847 /* end confdefs.h. */ 6848 int i; 6849 _ACEOF 6850 if ac_fn_c_try_compile "$LINENO"; then : 6851 xorg_cv_cc_flag_unused_command_line_argument=yes 6852 else 6853 xorg_cv_cc_flag_unused_command_line_argument=no 6854 fi 6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6856 fi 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" 6861 fi 6862 6863 found="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 6881 else 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883 /* end confdefs.h. */ 6884 int i; 6885 int 6886 main () 6887 { 6888 6889 ; 6890 return 0; 6891 } 6892 _ACEOF 6893 if ac_fn_c_try_link "$LINENO"; then : 6894 eval $cacheid=yes 6895 else 6896 eval $cacheid=no 6897 fi 6898 rm -f core conftest.err conftest.$ac_objext \ 6899 conftest$ac_exeext conftest.$ac_ext 6900 fi 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 6928 xorg_testset_save_CFLAGS="$CFLAGS" 6929 6930 if 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; } 6934 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936 else 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938 /* end confdefs.h. */ 6939 int i; 6940 _ACEOF 6941 if ac_fn_c_try_compile "$LINENO"; then : 6942 xorg_cv_cc_flag_unknown_warning_option=yes 6943 else 6944 xorg_cv_cc_flag_unknown_warning_option=no 6945 fi 6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6947 fi 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" 6952 fi 6953 6954 if 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; } 6961 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963 else 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965 /* end confdefs.h. */ 6966 int i; 6967 _ACEOF 6968 if ac_fn_c_try_compile "$LINENO"; then : 6969 xorg_cv_cc_flag_unused_command_line_argument=yes 6970 else 6971 xorg_cv_cc_flag_unused_command_line_argument=no 6972 fi 6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6974 fi 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" 6979 fi 6980 6981 found="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 6999 else 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001 /* end confdefs.h. */ 7002 int i; 7003 int 7004 main () 7005 { 7006 7007 ; 7008 return 0; 7009 } 7010 _ACEOF 7011 if ac_fn_c_try_link "$LINENO"; then : 7012 eval $cacheid=yes 7013 else 7014 eval $cacheid=no 7015 fi 7016 rm -f core conftest.err conftest.$ac_objext \ 7017 conftest$ac_exeext conftest.$ac_ext 7018 fi 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 7046 xorg_testset_save_CFLAGS="$CFLAGS" 7047 7048 if 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; } 7052 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054 else 7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7056 /* end confdefs.h. */ 7057 int i; 7058 _ACEOF 7059 if ac_fn_c_try_compile "$LINENO"; then : 7060 xorg_cv_cc_flag_unknown_warning_option=yes 7061 else 7062 xorg_cv_cc_flag_unknown_warning_option=no 7063 fi 7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7065 fi 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" 7070 fi 7071 7072 if 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; } 7079 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7080 $as_echo_n "(cached) " >&6 7081 else 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083 /* end confdefs.h. */ 7084 int i; 7085 _ACEOF 7086 if ac_fn_c_try_compile "$LINENO"; then : 7087 xorg_cv_cc_flag_unused_command_line_argument=yes 7088 else 7089 xorg_cv_cc_flag_unused_command_line_argument=no 7090 fi 7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7092 fi 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" 7097 fi 7098 7099 found="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 7117 else 7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7119 /* end confdefs.h. */ 7120 int i; 7121 int 7122 main () 7123 { 7124 7125 ; 7126 return 0; 7127 } 7128 _ACEOF 7129 if ac_fn_c_try_link "$LINENO"; then : 7130 eval $cacheid=yes 7131 else 7132 eval $cacheid=no 7133 fi 7134 rm -f core conftest.err conftest.$ac_objext \ 7135 conftest$ac_exeext conftest.$ac_ext 7136 fi 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 7162 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 xorg_testset_save_CFLAGS="$CFLAGS" 7177 7178 if 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; } 7182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7183 $as_echo_n "(cached) " >&6 7184 else 7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7186 /* end confdefs.h. */ 7187 int i; 7188 _ACEOF 7189 if ac_fn_c_try_compile "$LINENO"; then : 7190 xorg_cv_cc_flag_unknown_warning_option=yes 7191 else 7192 xorg_cv_cc_flag_unknown_warning_option=no 7193 fi 7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7195 fi 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" 7200 fi 7201 7202 if 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; } 7209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7210 $as_echo_n "(cached) " >&6 7211 else 7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213 /* end confdefs.h. */ 7214 int i; 7215 _ACEOF 7216 if ac_fn_c_try_compile "$LINENO"; then : 7217 xorg_cv_cc_flag_unused_command_line_argument=yes 7218 else 7219 xorg_cv_cc_flag_unused_command_line_argument=no 7220 fi 7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222 fi 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" 7227 fi 7228 7229 found="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 7247 else 7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249 /* end confdefs.h. */ 7250 int i; 7251 int 7252 main () 7253 { 7254 7255 ; 7256 return 0; 7257 } 7258 _ACEOF 7259 if ac_fn_c_try_link "$LINENO"; then : 7260 eval $cacheid=yes 7261 else 7262 eval $cacheid=no 7263 fi 7264 rm -f core conftest.err conftest.$ac_objext \ 7265 conftest$ac_exeext conftest.$ac_ext 7266 fi 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 7296 else 7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7298 /* end confdefs.h. */ 7299 int i; 7300 int 7301 main () 7302 { 7303 7304 ; 7305 return 0; 7306 } 7307 _ACEOF 7308 if ac_fn_c_try_link "$LINENO"; then : 7309 eval $cacheid=yes 7310 else 7311 eval $cacheid=no 7312 fi 7313 rm -f core conftest.err conftest.$ac_objext \ 7314 conftest$ac_exeext conftest.$ac_ext 7315 fi 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 7343 xorg_testset_save_CFLAGS="$CFLAGS" 7344 7345 if 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; } 7349 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351 else 7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353 /* end confdefs.h. */ 7354 int i; 7355 _ACEOF 7356 if ac_fn_c_try_compile "$LINENO"; then : 7357 xorg_cv_cc_flag_unknown_warning_option=yes 7358 else 7359 xorg_cv_cc_flag_unknown_warning_option=no 7360 fi 7361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7362 fi 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" 7367 fi 7368 7369 if 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; } 7376 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7377 $as_echo_n "(cached) " >&6 7378 else 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380 /* end confdefs.h. */ 7381 int i; 7382 _ACEOF 7383 if ac_fn_c_try_compile "$LINENO"; then : 7384 xorg_cv_cc_flag_unused_command_line_argument=yes 7385 else 7386 xorg_cv_cc_flag_unused_command_line_argument=no 7387 fi 7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7389 fi 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" 7394 fi 7395 7396 found="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 7414 else 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416 /* end confdefs.h. */ 7417 int i; 7418 int 7419 main () 7420 { 7421 7422 ; 7423 return 0; 7424 } 7425 _ACEOF 7426 if ac_fn_c_try_link "$LINENO"; then : 7427 eval $cacheid=yes 7428 else 7429 eval $cacheid=no 7430 fi 7431 rm -f core conftest.err conftest.$ac_objext \ 7432 conftest$ac_exeext conftest.$ac_ext 7433 fi 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 7461 xorg_testset_save_CFLAGS="$CFLAGS" 7462 7463 if 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; } 7467 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7468 $as_echo_n "(cached) " >&6 7469 else 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471 /* end confdefs.h. */ 7472 int i; 7473 _ACEOF 7474 if ac_fn_c_try_compile "$LINENO"; then : 7475 xorg_cv_cc_flag_unknown_warning_option=yes 7476 else 7477 xorg_cv_cc_flag_unknown_warning_option=no 7478 fi 7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7480 fi 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" 7485 fi 7486 7487 if 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; } 7494 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496 else 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7498 /* end confdefs.h. */ 7499 int i; 7500 _ACEOF 7501 if ac_fn_c_try_compile "$LINENO"; then : 7502 xorg_cv_cc_flag_unused_command_line_argument=yes 7503 else 7504 xorg_cv_cc_flag_unused_command_line_argument=no 7505 fi 7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7507 fi 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" 7512 fi 7513 7514 found="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 7532 else 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534 /* end confdefs.h. */ 7535 int i; 7536 int 7537 main () 7538 { 7539 7540 ; 7541 return 0; 7542 } 7543 _ACEOF 7544 if ac_fn_c_try_link "$LINENO"; then : 7545 eval $cacheid=yes 7546 else 7547 eval $cacheid=no 7548 fi 7549 rm -f core conftest.err conftest.$ac_objext \ 7550 conftest$ac_exeext conftest.$ac_ext 7551 fi 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 7579 xorg_testset_save_CFLAGS="$CFLAGS" 7580 7581 if 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; } 7585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7586 $as_echo_n "(cached) " >&6 7587 else 7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7589 /* end confdefs.h. */ 7590 int i; 7591 _ACEOF 7592 if ac_fn_c_try_compile "$LINENO"; then : 7593 xorg_cv_cc_flag_unknown_warning_option=yes 7594 else 7595 xorg_cv_cc_flag_unknown_warning_option=no 7596 fi 7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7598 fi 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" 7603 fi 7604 7605 if 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; } 7612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7613 $as_echo_n "(cached) " >&6 7614 else 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616 /* end confdefs.h. */ 7617 int i; 7618 _ACEOF 7619 if ac_fn_c_try_compile "$LINENO"; then : 7620 xorg_cv_cc_flag_unused_command_line_argument=yes 7621 else 7622 xorg_cv_cc_flag_unused_command_line_argument=no 7623 fi 7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7625 fi 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" 7630 fi 7631 7632 found="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 7650 else 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652 /* end confdefs.h. */ 7653 int i; 7654 int 7655 main () 7656 { 7657 7658 ; 7659 return 0; 7660 } 7661 _ACEOF 7662 if ac_fn_c_try_link "$LINENO"; then : 7663 eval $cacheid=yes 7664 else 7665 eval $cacheid=no 7666 fi 7667 rm -f core conftest.err conftest.$ac_objext \ 7668 conftest$ac_exeext conftest.$ac_ext 7669 fi 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 7697 xorg_testset_save_CFLAGS="$CFLAGS" 7698 7699 if 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; } 7703 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7704 $as_echo_n "(cached) " >&6 7705 else 7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707 /* end confdefs.h. */ 7708 int i; 7709 _ACEOF 7710 if ac_fn_c_try_compile "$LINENO"; then : 7711 xorg_cv_cc_flag_unknown_warning_option=yes 7712 else 7713 xorg_cv_cc_flag_unknown_warning_option=no 7714 fi 7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7716 fi 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" 7721 fi 7722 7723 if 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; } 7730 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732 else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734 /* end confdefs.h. */ 7735 int i; 7736 _ACEOF 7737 if ac_fn_c_try_compile "$LINENO"; then : 7738 xorg_cv_cc_flag_unused_command_line_argument=yes 7739 else 7740 xorg_cv_cc_flag_unused_command_line_argument=no 7741 fi 7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7743 fi 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" 7748 fi 7749 7750 found="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 7768 else 7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770 /* end confdefs.h. */ 7771 int i; 7772 int 7773 main () 7774 { 7775 7776 ; 7777 return 0; 7778 } 7779 _ACEOF 7780 if ac_fn_c_try_link "$LINENO"; then : 7781 eval $cacheid=yes 7782 else 7783 eval $cacheid=no 7784 fi 7785 rm -f core conftest.err conftest.$ac_objext \ 7786 conftest$ac_exeext conftest.$ac_ext 7787 fi 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 7815 xorg_testset_save_CFLAGS="$CFLAGS" 7816 7817 if 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; } 7821 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7822 $as_echo_n "(cached) " >&6 7823 else 7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7825 /* end confdefs.h. */ 7826 int i; 7827 _ACEOF 7828 if ac_fn_c_try_compile "$LINENO"; then : 7829 xorg_cv_cc_flag_unknown_warning_option=yes 7830 else 7831 xorg_cv_cc_flag_unknown_warning_option=no 7832 fi 7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7834 fi 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" 7839 fi 7840 7841 if 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; } 7848 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7849 $as_echo_n "(cached) " >&6 7850 else 7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852 /* end confdefs.h. */ 7853 int i; 7854 _ACEOF 7855 if ac_fn_c_try_compile "$LINENO"; then : 7856 xorg_cv_cc_flag_unused_command_line_argument=yes 7857 else 7858 xorg_cv_cc_flag_unused_command_line_argument=no 7859 fi 7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7861 fi 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" 7866 fi 7867 7868 found="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 7886 else 7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888 /* end confdefs.h. */ 7889 int i; 7890 int 7891 main () 7892 { 7893 7894 ; 7895 return 0; 7896 } 7897 _ACEOF 7898 if ac_fn_c_try_link "$LINENO"; then : 7899 eval $cacheid=yes 7900 else 7901 eval $cacheid=no 7902 fi 7903 rm -f core conftest.err conftest.$ac_objext \ 7904 conftest$ac_exeext conftest.$ac_ext 7905 fi 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 7933 xorg_testset_save_CFLAGS="$CFLAGS" 7934 7935 if 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; } 7939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941 else 7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7943 /* end confdefs.h. */ 7944 int i; 7945 _ACEOF 7946 if ac_fn_c_try_compile "$LINENO"; then : 7947 xorg_cv_cc_flag_unknown_warning_option=yes 7948 else 7949 xorg_cv_cc_flag_unknown_warning_option=no 7950 fi 7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7952 fi 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" 7957 fi 7958 7959 if 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; } 7966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968 else 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970 /* end confdefs.h. */ 7971 int i; 7972 _ACEOF 7973 if ac_fn_c_try_compile "$LINENO"; then : 7974 xorg_cv_cc_flag_unused_command_line_argument=yes 7975 else 7976 xorg_cv_cc_flag_unused_command_line_argument=no 7977 fi 7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7979 fi 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" 7984 fi 7985 7986 found="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 8004 else 8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8006 /* end confdefs.h. */ 8007 int i; 8008 int 8009 main () 8010 { 8011 8012 ; 8013 return 0; 8014 } 8015 _ACEOF 8016 if ac_fn_c_try_link "$LINENO"; then : 8017 eval $cacheid=yes 8018 else 8019 eval $cacheid=no 8020 fi 8021 rm -f core conftest.err conftest.$ac_objext \ 8022 conftest$ac_exeext conftest.$ac_ext 8023 fi 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 8053 else 8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8055 /* end confdefs.h. */ 8056 int i; 8057 int 8058 main () 8059 { 8060 8061 ; 8062 return 0; 8063 } 8064 _ACEOF 8065 if ac_fn_c_try_link "$LINENO"; then : 8066 eval $cacheid=yes 8067 else 8068 eval $cacheid=no 8069 fi 8070 rm -f core conftest.err conftest.$ac_objext \ 8071 conftest$ac_exeext conftest.$ac_ext 8072 fi 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 8100 xorg_testset_save_CFLAGS="$CFLAGS" 8101 8102 if 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; } 8106 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108 else 8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110 /* end confdefs.h. */ 8111 int i; 8112 _ACEOF 8113 if ac_fn_c_try_compile "$LINENO"; then : 8114 xorg_cv_cc_flag_unknown_warning_option=yes 8115 else 8116 xorg_cv_cc_flag_unknown_warning_option=no 8117 fi 8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8119 fi 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" 8124 fi 8125 8126 if 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; } 8133 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135 else 8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8137 /* end confdefs.h. */ 8138 int i; 8139 _ACEOF 8140 if ac_fn_c_try_compile "$LINENO"; then : 8141 xorg_cv_cc_flag_unused_command_line_argument=yes 8142 else 8143 xorg_cv_cc_flag_unused_command_line_argument=no 8144 fi 8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8146 fi 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" 8151 fi 8152 8153 found="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 8171 else 8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173 /* end confdefs.h. */ 8174 int i; 8175 int 8176 main () 8177 { 8178 8179 ; 8180 return 0; 8181 } 8182 _ACEOF 8183 if ac_fn_c_try_link "$LINENO"; then : 8184 eval $cacheid=yes 8185 else 8186 eval $cacheid=no 8187 fi 8188 rm -f core conftest.err conftest.$ac_objext \ 8189 conftest$ac_exeext conftest.$ac_ext 8190 fi 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 8218 xorg_testset_save_CFLAGS="$CFLAGS" 8219 8220 if 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; } 8224 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8225 $as_echo_n "(cached) " >&6 8226 else 8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228 /* end confdefs.h. */ 8229 int i; 8230 _ACEOF 8231 if ac_fn_c_try_compile "$LINENO"; then : 8232 xorg_cv_cc_flag_unknown_warning_option=yes 8233 else 8234 xorg_cv_cc_flag_unknown_warning_option=no 8235 fi 8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8237 fi 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" 8242 fi 8243 8244 if 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; } 8251 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253 else 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255 /* end confdefs.h. */ 8256 int i; 8257 _ACEOF 8258 if ac_fn_c_try_compile "$LINENO"; then : 8259 xorg_cv_cc_flag_unused_command_line_argument=yes 8260 else 8261 xorg_cv_cc_flag_unused_command_line_argument=no 8262 fi 8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8264 fi 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" 8269 fi 8270 8271 found="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 8289 else 8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8291 /* end confdefs.h. */ 8292 int i; 8293 int 8294 main () 8295 { 8296 8297 ; 8298 return 0; 8299 } 8300 _ACEOF 8301 if ac_fn_c_try_link "$LINENO"; then : 8302 eval $cacheid=yes 8303 else 8304 eval $cacheid=no 8305 fi 8306 rm -f core conftest.err conftest.$ac_objext \ 8307 conftest$ac_exeext conftest.$ac_ext 8308 fi 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 8336 xorg_testset_save_CFLAGS="$CFLAGS" 8337 8338 if 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; } 8342 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344 else 8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8346 /* end confdefs.h. */ 8347 int i; 8348 _ACEOF 8349 if ac_fn_c_try_compile "$LINENO"; then : 8350 xorg_cv_cc_flag_unknown_warning_option=yes 8351 else 8352 xorg_cv_cc_flag_unknown_warning_option=no 8353 fi 8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8355 fi 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" 8360 fi 8361 8362 if 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; } 8369 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8370 $as_echo_n "(cached) " >&6 8371 else 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373 /* end confdefs.h. */ 8374 int i; 8375 _ACEOF 8376 if ac_fn_c_try_compile "$LINENO"; then : 8377 xorg_cv_cc_flag_unused_command_line_argument=yes 8378 else 8379 xorg_cv_cc_flag_unused_command_line_argument=no 8380 fi 8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8382 fi 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" 8387 fi 8388 8389 found="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 8407 else 8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409 /* end confdefs.h. */ 8410 int i; 8411 int 8412 main () 8413 { 8414 8415 ; 8416 return 0; 8417 } 8418 _ACEOF 8419 if ac_fn_c_try_link "$LINENO"; then : 8420 eval $cacheid=yes 8421 else 8422 eval $cacheid=no 8423 fi 8424 rm -f core conftest.err conftest.$ac_objext \ 8425 conftest$ac_exeext conftest.$ac_ext 8426 fi 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 8454 xorg_testset_save_CFLAGS="$CFLAGS" 8455 8456 if 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; } 8460 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462 else 8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8464 /* end confdefs.h. */ 8465 int i; 8466 _ACEOF 8467 if ac_fn_c_try_compile "$LINENO"; then : 8468 xorg_cv_cc_flag_unknown_warning_option=yes 8469 else 8470 xorg_cv_cc_flag_unknown_warning_option=no 8471 fi 8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8473 fi 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" 8478 fi 8479 8480 if 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; } 8487 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8488 $as_echo_n "(cached) " >&6 8489 else 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491 /* end confdefs.h. */ 8492 int i; 8493 _ACEOF 8494 if ac_fn_c_try_compile "$LINENO"; then : 8495 xorg_cv_cc_flag_unused_command_line_argument=yes 8496 else 8497 xorg_cv_cc_flag_unused_command_line_argument=no 8498 fi 8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8500 fi 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" 8505 fi 8506 8507 found="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 8525 else 8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8527 /* end confdefs.h. */ 8528 int i; 8529 int 8530 main () 8531 { 8532 8533 ; 8534 return 0; 8535 } 8536 _ACEOF 8537 if ac_fn_c_try_link "$LINENO"; then : 8538 eval $cacheid=yes 8539 else 8540 eval $cacheid=no 8541 fi 8542 rm -f core conftest.err conftest.$ac_objext \ 8543 conftest$ac_exeext conftest.$ac_ext 8544 fi 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 8572 xorg_testset_save_CFLAGS="$CFLAGS" 8573 8574 if 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; } 8578 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8579 $as_echo_n "(cached) " >&6 8580 else 8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582 /* end confdefs.h. */ 8583 int i; 8584 _ACEOF 8585 if ac_fn_c_try_compile "$LINENO"; then : 8586 xorg_cv_cc_flag_unknown_warning_option=yes 8587 else 8588 xorg_cv_cc_flag_unknown_warning_option=no 8589 fi 8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8591 fi 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" 8596 fi 8597 8598 if 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; } 8605 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607 else 8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609 /* end confdefs.h. */ 8610 int i; 8611 _ACEOF 8612 if ac_fn_c_try_compile "$LINENO"; then : 8613 xorg_cv_cc_flag_unused_command_line_argument=yes 8614 else 8615 xorg_cv_cc_flag_unused_command_line_argument=no 8616 fi 8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8618 fi 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" 8623 fi 8624 8625 found="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 8643 else 8644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8645 /* end confdefs.h. */ 8646 int i; 8647 int 8648 main () 8649 { 8650 8651 ; 8652 return 0; 8653 } 8654 _ACEOF 8655 if ac_fn_c_try_link "$LINENO"; then : 8656 eval $cacheid=yes 8657 else 8658 eval $cacheid=no 8659 fi 8660 rm -f core conftest.err conftest.$ac_objext \ 8661 conftest$ac_exeext conftest.$ac_ext 8662 fi 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 8692 else 8693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8694 /* end confdefs.h. */ 8695 int i; 8696 int 8697 main () 8698 { 8699 8700 ; 8701 return 0; 8702 } 8703 _ACEOF 8704 if ac_fn_c_try_link "$LINENO"; then : 8705 eval $cacheid=yes 8706 else 8707 eval $cacheid=no 8708 fi 8709 rm -f core conftest.err conftest.$ac_objext \ 8710 conftest$ac_exeext conftest.$ac_ext 8711 fi 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 8739 xorg_testset_save_CFLAGS="$CFLAGS" 8740 8741 if 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; } 8745 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747 else 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8749 /* end confdefs.h. */ 8750 int i; 8751 _ACEOF 8752 if ac_fn_c_try_compile "$LINENO"; then : 8753 xorg_cv_cc_flag_unknown_warning_option=yes 8754 else 8755 xorg_cv_cc_flag_unknown_warning_option=no 8756 fi 8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8758 fi 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" 8763 fi 8764 8765 if 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; } 8772 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8773 $as_echo_n "(cached) " >&6 8774 else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776 /* end confdefs.h. */ 8777 int i; 8778 _ACEOF 8779 if ac_fn_c_try_compile "$LINENO"; then : 8780 xorg_cv_cc_flag_unused_command_line_argument=yes 8781 else 8782 xorg_cv_cc_flag_unused_command_line_argument=no 8783 fi 8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8785 fi 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" 8790 fi 8791 8792 found="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 8810 else 8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8812 /* end confdefs.h. */ 8813 int i; 8814 int 8815 main () 8816 { 8817 8818 ; 8819 return 0; 8820 } 8821 _ACEOF 8822 if ac_fn_c_try_link "$LINENO"; then : 8823 eval $cacheid=yes 8824 else 8825 eval $cacheid=no 8826 fi 8827 rm -f core conftest.err conftest.$ac_objext \ 8828 conftest$ac_exeext conftest.$ac_ext 8829 fi 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 8844 else 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 8860 xorg_testset_save_CFLAGS="$CFLAGS" 8861 8862 if 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; } 8866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8867 $as_echo_n "(cached) " >&6 8868 else 8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8870 /* end confdefs.h. */ 8871 int i; 8872 _ACEOF 8873 if ac_fn_c_try_compile "$LINENO"; then : 8874 xorg_cv_cc_flag_unknown_warning_option=yes 8875 else 8876 xorg_cv_cc_flag_unknown_warning_option=no 8877 fi 8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8879 fi 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" 8884 fi 8885 8886 if 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; } 8893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8894 $as_echo_n "(cached) " >&6 8895 else 8896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8897 /* end confdefs.h. */ 8898 int i; 8899 _ACEOF 8900 if ac_fn_c_try_compile "$LINENO"; then : 8901 xorg_cv_cc_flag_unused_command_line_argument=yes 8902 else 8903 xorg_cv_cc_flag_unused_command_line_argument=no 8904 fi 8905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8906 fi 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" 8911 fi 8912 8913 found="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 8931 else 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933 /* end confdefs.h. */ 8934 int i; 8935 int 8936 main () 8937 { 8938 8939 ; 8940 return 0; 8941 } 8942 _ACEOF 8943 if ac_fn_c_try_link "$LINENO"; then : 8944 eval $cacheid=yes 8945 else 8946 eval $cacheid=no 8947 fi 8948 rm -f core conftest.err conftest.$ac_objext \ 8949 conftest$ac_exeext conftest.$ac_ext 8950 fi 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 8978 xorg_testset_save_CFLAGS="$CFLAGS" 8979 8980 if 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; } 8984 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8985 $as_echo_n "(cached) " >&6 8986 else 8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988 /* end confdefs.h. */ 8989 int i; 8990 _ACEOF 8991 if ac_fn_c_try_compile "$LINENO"; then : 8992 xorg_cv_cc_flag_unknown_warning_option=yes 8993 else 8994 xorg_cv_cc_flag_unknown_warning_option=no 8995 fi 8996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8997 fi 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" 9002 fi 9003 9004 if 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; } 9011 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9012 $as_echo_n "(cached) " >&6 9013 else 9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9015 /* end confdefs.h. */ 9016 int i; 9017 _ACEOF 9018 if ac_fn_c_try_compile "$LINENO"; then : 9019 xorg_cv_cc_flag_unused_command_line_argument=yes 9020 else 9021 xorg_cv_cc_flag_unused_command_line_argument=no 9022 fi 9023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9024 fi 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" 9029 fi 9030 9031 found="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 9049 else 9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9051 /* end confdefs.h. */ 9052 int i; 9053 int 9054 main () 9055 { 9056 9057 ; 9058 return 0; 9059 } 9060 _ACEOF 9061 if ac_fn_c_try_link "$LINENO"; then : 9062 eval $cacheid=yes 9063 else 9064 eval $cacheid=no 9065 fi 9066 rm -f core conftest.err conftest.$ac_objext \ 9067 conftest$ac_exeext conftest.$ac_ext 9068 fi 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 9096 xorg_testset_save_CFLAGS="$CFLAGS" 9097 9098 if 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; } 9102 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104 else 9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9106 /* end confdefs.h. */ 9107 int i; 9108 _ACEOF 9109 if ac_fn_c_try_compile "$LINENO"; then : 9110 xorg_cv_cc_flag_unknown_warning_option=yes 9111 else 9112 xorg_cv_cc_flag_unknown_warning_option=no 9113 fi 9114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9115 fi 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" 9120 fi 9121 9122 if 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; } 9129 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131 else 9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9133 /* end confdefs.h. */ 9134 int i; 9135 _ACEOF 9136 if ac_fn_c_try_compile "$LINENO"; then : 9137 xorg_cv_cc_flag_unused_command_line_argument=yes 9138 else 9139 xorg_cv_cc_flag_unused_command_line_argument=no 9140 fi 9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9142 fi 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" 9147 fi 9148 9149 found="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 9167 else 9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169 /* end confdefs.h. */ 9170 int i; 9171 int 9172 main () 9173 { 9174 9175 ; 9176 return 0; 9177 } 9178 _ACEOF 9179 if ac_fn_c_try_link "$LINENO"; then : 9180 eval $cacheid=yes 9181 else 9182 eval $cacheid=no 9183 fi 9184 rm -f core conftest.err conftest.$ac_objext \ 9185 conftest$ac_exeext conftest.$ac_ext 9186 fi 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 9214 xorg_testset_save_CFLAGS="$CFLAGS" 9215 9216 if 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; } 9220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9221 $as_echo_n "(cached) " >&6 9222 else 9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9224 /* end confdefs.h. */ 9225 int i; 9226 _ACEOF 9227 if ac_fn_c_try_compile "$LINENO"; then : 9228 xorg_cv_cc_flag_unknown_warning_option=yes 9229 else 9230 xorg_cv_cc_flag_unknown_warning_option=no 9231 fi 9232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233 fi 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" 9238 fi 9239 9240 if 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; } 9247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249 else 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251 /* end confdefs.h. */ 9252 int i; 9253 _ACEOF 9254 if ac_fn_c_try_compile "$LINENO"; then : 9255 xorg_cv_cc_flag_unused_command_line_argument=yes 9256 else 9257 xorg_cv_cc_flag_unused_command_line_argument=no 9258 fi 9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9260 fi 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" 9265 fi 9266 9267 found="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 9285 else 9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287 /* end confdefs.h. */ 9288 int i; 9289 int 9290 main () 9291 { 9292 9293 ; 9294 return 0; 9295 } 9296 _ACEOF 9297 if ac_fn_c_try_link "$LINENO"; then : 9298 eval $cacheid=yes 9299 else 9300 eval $cacheid=no 9301 fi 9302 rm -f core conftest.err conftest.$ac_objext \ 9303 conftest$ac_exeext conftest.$ac_ext 9304 fi 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 9332 xorg_testset_save_CFLAGS="$CFLAGS" 9333 9334 if 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; } 9338 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340 else 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342 /* end confdefs.h. */ 9343 int i; 9344 _ACEOF 9345 if ac_fn_c_try_compile "$LINENO"; then : 9346 xorg_cv_cc_flag_unknown_warning_option=yes 9347 else 9348 xorg_cv_cc_flag_unknown_warning_option=no 9349 fi 9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9351 fi 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" 9356 fi 9357 9358 if 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; } 9365 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367 else 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369 /* end confdefs.h. */ 9370 int i; 9371 _ACEOF 9372 if ac_fn_c_try_compile "$LINENO"; then : 9373 xorg_cv_cc_flag_unused_command_line_argument=yes 9374 else 9375 xorg_cv_cc_flag_unused_command_line_argument=no 9376 fi 9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9378 fi 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" 9383 fi 9384 9385 found="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 9403 else 9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9405 /* end confdefs.h. */ 9406 int i; 9407 int 9408 main () 9409 { 9410 9411 ; 9412 return 0; 9413 } 9414 _ACEOF 9415 if ac_fn_c_try_link "$LINENO"; then : 9416 eval $cacheid=yes 9417 else 9418 eval $cacheid=no 9419 fi 9420 rm -f core conftest.err conftest.$ac_objext \ 9421 conftest$ac_exeext conftest.$ac_ext 9422 fi 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 9450 xorg_testset_save_CFLAGS="$CFLAGS" 9451 9452 if 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; } 9456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9457 $as_echo_n "(cached) " >&6 9458 else 9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9460 /* end confdefs.h. */ 9461 int i; 9462 _ACEOF 9463 if ac_fn_c_try_compile "$LINENO"; then : 9464 xorg_cv_cc_flag_unknown_warning_option=yes 9465 else 9466 xorg_cv_cc_flag_unknown_warning_option=no 9467 fi 9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9469 fi 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" 9474 fi 9475 9476 if 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; } 9483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485 else 9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9487 /* end confdefs.h. */ 9488 int i; 9489 _ACEOF 9490 if ac_fn_c_try_compile "$LINENO"; then : 9491 xorg_cv_cc_flag_unused_command_line_argument=yes 9492 else 9493 xorg_cv_cc_flag_unused_command_line_argument=no 9494 fi 9495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9496 fi 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" 9501 fi 9502 9503 found="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 9521 else 9522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523 /* end confdefs.h. */ 9524 int i; 9525 int 9526 main () 9527 { 9528 9529 ; 9530 return 0; 9531 } 9532 _ACEOF 9533 if ac_fn_c_try_link "$LINENO"; then : 9534 eval $cacheid=yes 9535 else 9536 eval $cacheid=no 9537 fi 9538 rm -f core conftest.err conftest.$ac_objext \ 9539 conftest$ac_exeext conftest.$ac_ext 9540 fi 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 9568 xorg_testset_save_CFLAGS="$CFLAGS" 9569 9570 if 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; } 9574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9575 $as_echo_n "(cached) " >&6 9576 else 9577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9578 /* end confdefs.h. */ 9579 int i; 9580 _ACEOF 9581 if ac_fn_c_try_compile "$LINENO"; then : 9582 xorg_cv_cc_flag_unknown_warning_option=yes 9583 else 9584 xorg_cv_cc_flag_unknown_warning_option=no 9585 fi 9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9587 fi 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" 9592 fi 9593 9594 if 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; } 9601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603 else 9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9605 /* end confdefs.h. */ 9606 int i; 9607 _ACEOF 9608 if ac_fn_c_try_compile "$LINENO"; then : 9609 xorg_cv_cc_flag_unused_command_line_argument=yes 9610 else 9611 xorg_cv_cc_flag_unused_command_line_argument=no 9612 fi 9613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9614 fi 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" 9619 fi 9620 9621 found="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 9639 else 9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9641 /* end confdefs.h. */ 9642 int i; 9643 int 9644 main () 9645 { 9646 9647 ; 9648 return 0; 9649 } 9650 _ACEOF 9651 if ac_fn_c_try_link "$LINENO"; then : 9652 eval $cacheid=yes 9653 else 9654 eval $cacheid=no 9655 fi 9656 rm -f core conftest.err conftest.$ac_objext \ 9657 conftest$ac_exeext conftest.$ac_ext 9658 fi 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 9686 xorg_testset_save_CFLAGS="$CFLAGS" 9687 9688 if 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; } 9692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694 else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696 /* end confdefs.h. */ 9697 int i; 9698 _ACEOF 9699 if ac_fn_c_try_compile "$LINENO"; then : 9700 xorg_cv_cc_flag_unknown_warning_option=yes 9701 else 9702 xorg_cv_cc_flag_unknown_warning_option=no 9703 fi 9704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9705 fi 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" 9710 fi 9711 9712 if 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; } 9719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9720 $as_echo_n "(cached) " >&6 9721 else 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723 /* end confdefs.h. */ 9724 int i; 9725 _ACEOF 9726 if ac_fn_c_try_compile "$LINENO"; then : 9727 xorg_cv_cc_flag_unused_command_line_argument=yes 9728 else 9729 xorg_cv_cc_flag_unused_command_line_argument=no 9730 fi 9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9732 fi 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" 9737 fi 9738 9739 found="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 9757 else 9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9759 /* end confdefs.h. */ 9760 int i; 9761 int 9762 main () 9763 { 9764 9765 ; 9766 return 0; 9767 } 9768 _ACEOF 9769 if ac_fn_c_try_link "$LINENO"; then : 9770 eval $cacheid=yes 9771 else 9772 eval $cacheid=no 9773 fi 9774 rm -f core conftest.err conftest.$ac_objext \ 9775 conftest$ac_exeext conftest.$ac_ext 9776 fi 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 9804 xorg_testset_save_CFLAGS="$CFLAGS" 9805 9806 if 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; } 9810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9811 $as_echo_n "(cached) " >&6 9812 else 9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814 /* end confdefs.h. */ 9815 int i; 9816 _ACEOF 9817 if ac_fn_c_try_compile "$LINENO"; then : 9818 xorg_cv_cc_flag_unknown_warning_option=yes 9819 else 9820 xorg_cv_cc_flag_unknown_warning_option=no 9821 fi 9822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9823 fi 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" 9828 fi 9829 9830 if 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; } 9837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9838 $as_echo_n "(cached) " >&6 9839 else 9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841 /* end confdefs.h. */ 9842 int i; 9843 _ACEOF 9844 if ac_fn_c_try_compile "$LINENO"; then : 9845 xorg_cv_cc_flag_unused_command_line_argument=yes 9846 else 9847 xorg_cv_cc_flag_unused_command_line_argument=no 9848 fi 9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9850 fi 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" 9855 fi 9856 9857 found="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 9875 else 9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9877 /* end confdefs.h. */ 9878 int i; 9879 int 9880 main () 9881 { 9882 9883 ; 9884 return 0; 9885 } 9886 _ACEOF 9887 if ac_fn_c_try_link "$LINENO"; then : 9888 eval $cacheid=yes 9889 else 9890 eval $cacheid=no 9891 fi 9892 rm -f core conftest.err conftest.$ac_objext \ 9893 conftest$ac_exeext conftest.$ac_ext 9894 fi 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 9922 xorg_testset_save_CFLAGS="$CFLAGS" 9923 9924 if 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; } 9928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930 else 9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9932 /* end confdefs.h. */ 9933 int i; 9934 _ACEOF 9935 if ac_fn_c_try_compile "$LINENO"; then : 9936 xorg_cv_cc_flag_unknown_warning_option=yes 9937 else 9938 xorg_cv_cc_flag_unknown_warning_option=no 9939 fi 9940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9941 fi 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" 9946 fi 9947 9948 if 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; } 9955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9956 $as_echo_n "(cached) " >&6 9957 else 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959 /* end confdefs.h. */ 9960 int i; 9961 _ACEOF 9962 if ac_fn_c_try_compile "$LINENO"; then : 9963 xorg_cv_cc_flag_unused_command_line_argument=yes 9964 else 9965 xorg_cv_cc_flag_unused_command_line_argument=no 9966 fi 9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9968 fi 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" 9973 fi 9974 9975 found="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 9993 else 9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995 /* end confdefs.h. */ 9996 int i; 9997 int 9998 main () 9999 { 10000 10001 ; 10002 return 0; 10003 } 10004 _ACEOF 10005 if ac_fn_c_try_link "$LINENO"; then : 10006 eval $cacheid=yes 10007 else 10008 eval $cacheid=no 10009 fi 10010 rm -f core conftest.err conftest.$ac_objext \ 10011 conftest$ac_exeext conftest.$ac_ext 10012 fi 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 10040 xorg_testset_save_CFLAGS="$CFLAGS" 10041 10042 if 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; } 10046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10047 $as_echo_n "(cached) " >&6 10048 else 10049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10050 /* end confdefs.h. */ 10051 int i; 10052 _ACEOF 10053 if ac_fn_c_try_compile "$LINENO"; then : 10054 xorg_cv_cc_flag_unknown_warning_option=yes 10055 else 10056 xorg_cv_cc_flag_unknown_warning_option=no 10057 fi 10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10059 fi 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" 10064 fi 10065 10066 if 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; } 10073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10074 $as_echo_n "(cached) " >&6 10075 else 10076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10077 /* end confdefs.h. */ 10078 int i; 10079 _ACEOF 10080 if ac_fn_c_try_compile "$LINENO"; then : 10081 xorg_cv_cc_flag_unused_command_line_argument=yes 10082 else 10083 xorg_cv_cc_flag_unused_command_line_argument=no 10084 fi 10085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10086 fi 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" 10091 fi 10092 10093 found="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 10111 else 10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10113 /* end confdefs.h. */ 10114 int i; 10115 int 10116 main () 10117 { 10118 10119 ; 10120 return 0; 10121 } 10122 _ACEOF 10123 if ac_fn_c_try_link "$LINENO"; then : 10124 eval $cacheid=yes 10125 else 10126 eval $cacheid=no 10127 fi 10128 rm -f core conftest.err conftest.$ac_objext \ 10129 conftest$ac_exeext conftest.$ac_ext 10130 fi 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 10158 xorg_testset_save_CFLAGS="$CFLAGS" 10159 10160 if 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; } 10164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10165 $as_echo_n "(cached) " >&6 10166 else 10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10168 /* end confdefs.h. */ 10169 int i; 10170 _ACEOF 10171 if ac_fn_c_try_compile "$LINENO"; then : 10172 xorg_cv_cc_flag_unknown_warning_option=yes 10173 else 10174 xorg_cv_cc_flag_unknown_warning_option=no 10175 fi 10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10177 fi 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" 10182 fi 10183 10184 if 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; } 10191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193 else 10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10195 /* end confdefs.h. */ 10196 int i; 10197 _ACEOF 10198 if ac_fn_c_try_compile "$LINENO"; then : 10199 xorg_cv_cc_flag_unused_command_line_argument=yes 10200 else 10201 xorg_cv_cc_flag_unused_command_line_argument=no 10202 fi 10203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10204 fi 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" 10209 fi 10210 10211 found="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 10229 else 10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10231 /* end confdefs.h. */ 10232 int i; 10233 int 10234 main () 10235 { 10236 10237 ; 10238 return 0; 10239 } 10240 _ACEOF 10241 if ac_fn_c_try_link "$LINENO"; then : 10242 eval $cacheid=yes 10243 else 10244 eval $cacheid=no 10245 fi 10246 rm -f core conftest.err conftest.$ac_objext \ 10247 conftest$ac_exeext conftest.$ac_ext 10248 fi 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 10276 xorg_testset_save_CFLAGS="$CFLAGS" 10277 10278 if 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; } 10282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284 else 10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286 /* end confdefs.h. */ 10287 int i; 10288 _ACEOF 10289 if ac_fn_c_try_compile "$LINENO"; then : 10290 xorg_cv_cc_flag_unknown_warning_option=yes 10291 else 10292 xorg_cv_cc_flag_unknown_warning_option=no 10293 fi 10294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10295 fi 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" 10300 fi 10301 10302 if 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; } 10309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10310 $as_echo_n "(cached) " >&6 10311 else 10312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10313 /* end confdefs.h. */ 10314 int i; 10315 _ACEOF 10316 if ac_fn_c_try_compile "$LINENO"; then : 10317 xorg_cv_cc_flag_unused_command_line_argument=yes 10318 else 10319 xorg_cv_cc_flag_unused_command_line_argument=no 10320 fi 10321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10322 fi 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" 10327 fi 10328 10329 found="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 10347 else 10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10349 /* end confdefs.h. */ 10350 int i; 10351 int 10352 main () 10353 { 10354 10355 ; 10356 return 0; 10357 } 10358 _ACEOF 10359 if ac_fn_c_try_link "$LINENO"; then : 10360 eval $cacheid=yes 10361 else 10362 eval $cacheid=no 10363 fi 10364 rm -f core conftest.err conftest.$ac_objext \ 10365 conftest$ac_exeext conftest.$ac_ext 10366 fi 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 10381 fi 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. 10402 if test "${enable_strict_compilation+set}" = set; then : 10403 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10404 else 10405 STRICT_COMPILE=no 10406 fi 10407 10408 10409 10410 10411 10412 10413 STRICT_CFLAGS="" 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 xorg_testset_save_CFLAGS="$CFLAGS" 10428 10429 if 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; } 10433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10434 $as_echo_n "(cached) " >&6 10435 else 10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10437 /* end confdefs.h. */ 10438 int i; 10439 _ACEOF 10440 if ac_fn_c_try_compile "$LINENO"; then : 10441 xorg_cv_cc_flag_unknown_warning_option=yes 10442 else 10443 xorg_cv_cc_flag_unknown_warning_option=no 10444 fi 10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10446 fi 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" 10451 fi 10452 10453 if 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; } 10460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10461 $as_echo_n "(cached) " >&6 10462 else 10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10464 /* end confdefs.h. */ 10465 int i; 10466 _ACEOF 10467 if ac_fn_c_try_compile "$LINENO"; then : 10468 xorg_cv_cc_flag_unused_command_line_argument=yes 10469 else 10470 xorg_cv_cc_flag_unused_command_line_argument=no 10471 fi 10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10473 fi 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" 10478 fi 10479 10480 found="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 10498 else 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500 /* end confdefs.h. */ 10501 int i; 10502 int 10503 main () 10504 { 10505 10506 ; 10507 return 0; 10508 } 10509 _ACEOF 10510 if ac_fn_c_try_link "$LINENO"; then : 10511 eval $cacheid=yes 10512 else 10513 eval $cacheid=no 10514 fi 10515 rm -f core conftest.err conftest.$ac_objext \ 10516 conftest$ac_exeext conftest.$ac_ext 10517 fi 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 10545 xorg_testset_save_CFLAGS="$CFLAGS" 10546 10547 if 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; } 10551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10552 $as_echo_n "(cached) " >&6 10553 else 10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10555 /* end confdefs.h. */ 10556 int i; 10557 _ACEOF 10558 if ac_fn_c_try_compile "$LINENO"; then : 10559 xorg_cv_cc_flag_unknown_warning_option=yes 10560 else 10561 xorg_cv_cc_flag_unknown_warning_option=no 10562 fi 10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10564 fi 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" 10569 fi 10570 10571 if 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; } 10578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580 else 10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10582 /* end confdefs.h. */ 10583 int i; 10584 _ACEOF 10585 if ac_fn_c_try_compile "$LINENO"; then : 10586 xorg_cv_cc_flag_unused_command_line_argument=yes 10587 else 10588 xorg_cv_cc_flag_unused_command_line_argument=no 10589 fi 10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10591 fi 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" 10596 fi 10597 10598 found="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 10616 else 10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618 /* end confdefs.h. */ 10619 int i; 10620 int 10621 main () 10622 { 10623 10624 ; 10625 return 0; 10626 } 10627 _ACEOF 10628 if ac_fn_c_try_link "$LINENO"; then : 10629 eval $cacheid=yes 10630 else 10631 eval $cacheid=no 10632 fi 10633 rm -f core conftest.err conftest.$ac_objext \ 10634 conftest$ac_exeext conftest.$ac_ext 10635 fi 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 10665 else 10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10667 /* end confdefs.h. */ 10668 int i; 10669 int 10670 main () 10671 { 10672 10673 ; 10674 return 0; 10675 } 10676 _ACEOF 10677 if ac_fn_c_try_link "$LINENO"; then : 10678 eval $cacheid=yes 10679 else 10680 eval $cacheid=no 10681 fi 10682 rm -f core conftest.err conftest.$ac_objext \ 10683 conftest$ac_exeext conftest.$ac_ext 10684 fi 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 10715 xorg_testset_save_CFLAGS="$CFLAGS" 10716 10717 if 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; } 10721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10722 $as_echo_n "(cached) " >&6 10723 else 10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10725 /* end confdefs.h. */ 10726 int i; 10727 _ACEOF 10728 if ac_fn_c_try_compile "$LINENO"; then : 10729 xorg_cv_cc_flag_unknown_warning_option=yes 10730 else 10731 xorg_cv_cc_flag_unknown_warning_option=no 10732 fi 10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10734 fi 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" 10739 fi 10740 10741 if 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; } 10748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10749 $as_echo_n "(cached) " >&6 10750 else 10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10752 /* end confdefs.h. */ 10753 int i; 10754 _ACEOF 10755 if ac_fn_c_try_compile "$LINENO"; then : 10756 xorg_cv_cc_flag_unused_command_line_argument=yes 10757 else 10758 xorg_cv_cc_flag_unused_command_line_argument=no 10759 fi 10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10761 fi 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" 10766 fi 10767 10768 found="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 10786 else 10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788 /* end confdefs.h. */ 10789 int i; 10790 int 10791 main () 10792 { 10793 10794 ; 10795 return 0; 10796 } 10797 _ACEOF 10798 if ac_fn_c_try_link "$LINENO"; then : 10799 eval $cacheid=yes 10800 else 10801 eval $cacheid=no 10802 fi 10803 rm -f core conftest.err conftest.$ac_objext \ 10804 conftest$ac_exeext conftest.$ac_ext 10805 fi 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 10821 if test "x$STRICT_COMPILE" = "xyes"; then 10822 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10823 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10824 fi 10825 10826 10827 10828 10829 10830 10831 cat >>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 10840 cat >>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 10849 cat >>confdefs.h <<_ACEOF 10850 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10851 _ACEOF 10852 10853 10854 10855 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10856 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10857 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10858 echo 'git directory not found: installing possibly empty changelog.' >&2)" 10859 10860 10861 10862 10863 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10864 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10865 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10866 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10867 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10868 10869 10870 10871 10872 10873 10874 if test x$APP_MAN_SUFFIX = x ; then 10875 APP_MAN_SUFFIX=1 10876 fi 10877 if test x$APP_MAN_DIR = x ; then 10878 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10879 fi 10880 10881 if test x$LIB_MAN_SUFFIX = x ; then 10882 LIB_MAN_SUFFIX=3 10883 fi 10884 if test x$LIB_MAN_DIR = x ; then 10885 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10886 fi 10887 10888 if 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 10893 fi 10894 if test x$FILE_MAN_DIR = x ; then 10895 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10896 fi 10897 10898 if 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 10903 fi 10904 if test x$MISC_MAN_DIR = x ; then 10905 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10906 fi 10907 10908 if 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 10913 fi 10914 if test x$DRIVER_MAN_DIR = x ; then 10915 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10916 fi 10917 10918 if 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 10923 fi 10924 if test x$ADMIN_MAN_DIR = x ; then 10925 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10926 fi 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 XORG_MAN_PAGE="X Version 11" 10943 10944 MAN_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. 10961 if test "${enable_silent_rules+set}" = set; then : 10962 enableval=$enable_silent_rules; 10963 fi 10964 10965 case $enable_silent_rules in # ((( 10966 yes) AM_DEFAULT_VERBOSITY=0;; 10967 no) AM_DEFAULT_VERBOSITY=1;; 10968 *) AM_DEFAULT_VERBOSITY=0;; 10969 esac 10970 am_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; } 10973 if ${am_cv_make_support_nested_variables+:} false; then : 10974 $as_echo_n "(cached) " >&6 10975 else 10976 if $as_echo 'TRUE=$(BAR$(V)) 10977 BAR0=false 10978 BAR1=true 10979 V=1 10980 am__doit: 10981 @$(TRUE) 10982 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10983 am_cv_make_support_nested_variables=yes 10984 else 10985 am_cv_make_support_nested_variables=no 10986 fi 10987 fi 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; } 10990 if test $am_cv_make_support_nested_variables = yes; then 10991 AM_V='$(V)' 10992 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10993 else 10994 AM_V=$AM_DEFAULT_VERBOSITY 10995 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10996 fi 10997 AM_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 11016 xorg_testset_save_CFLAGS="$CFLAGS" 11017 11018 if 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; } 11022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11023 $as_echo_n "(cached) " >&6 11024 else 11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11026 /* end confdefs.h. */ 11027 int i; 11028 _ACEOF 11029 if ac_fn_c_try_compile "$LINENO"; then : 11030 xorg_cv_cc_flag_unknown_warning_option=yes 11031 else 11032 xorg_cv_cc_flag_unknown_warning_option=no 11033 fi 11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11035 fi 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" 11040 fi 11041 11042 if 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; } 11049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11050 $as_echo_n "(cached) " >&6 11051 else 11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11053 /* end confdefs.h. */ 11054 int i; 11055 _ACEOF 11056 if ac_fn_c_try_compile "$LINENO"; then : 11057 xorg_cv_cc_flag_unused_command_line_argument=yes 11058 else 11059 xorg_cv_cc_flag_unused_command_line_argument=no 11060 fi 11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11062 fi 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" 11067 fi 11068 11069 found="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 11087 else 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11089 /* end confdefs.h. */ 11090 int i; 11091 int 11092 main () 11093 { 11094 11095 ; 11096 return 0; 11097 } 11098 _ACEOF 11099 if ac_fn_c_try_link "$LINENO"; then : 11100 eval $cacheid=yes 11101 else 11102 eval $cacheid=no 11103 fi 11104 rm -f core conftest.err conftest.$ac_objext \ 11105 conftest$ac_exeext conftest.$ac_ext 11106 fi 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 11134 xorg_testset_save_CFLAGS="$CFLAGS" 11135 11136 if 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; } 11140 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11141 $as_echo_n "(cached) " >&6 11142 else 11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11144 /* end confdefs.h. */ 11145 int i; 11146 _ACEOF 11147 if ac_fn_c_try_compile "$LINENO"; then : 11148 xorg_cv_cc_flag_unknown_warning_option=yes 11149 else 11150 xorg_cv_cc_flag_unknown_warning_option=no 11151 fi 11152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11153 fi 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" 11158 fi 11159 11160 if 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; } 11167 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11168 $as_echo_n "(cached) " >&6 11169 else 11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11171 /* end confdefs.h. */ 11172 int i; 11173 _ACEOF 11174 if ac_fn_c_try_compile "$LINENO"; then : 11175 xorg_cv_cc_flag_unused_command_line_argument=yes 11176 else 11177 xorg_cv_cc_flag_unused_command_line_argument=no 11178 fi 11179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11180 fi 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" 11185 fi 11186 11187 found="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 11205 else 11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11207 /* end confdefs.h. */ 11208 int i; 11209 int 11210 main () 11211 { 11212 11213 ; 11214 return 0; 11215 } 11216 _ACEOF 11217 if ac_fn_c_try_link "$LINENO"; then : 11218 eval $cacheid=yes 11219 else 11220 eval $cacheid=no 11221 fi 11222 rm -f core conftest.err conftest.$ac_objext \ 11223 conftest$ac_exeext conftest.$ac_ext 11224 fi 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 11252 xorg_testset_save_CFLAGS="$CFLAGS" 11253 11254 if 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; } 11258 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 11259 $as_echo_n "(cached) " >&6 11260 else 11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11262 /* end confdefs.h. */ 11263 int i; 11264 _ACEOF 11265 if ac_fn_c_try_compile "$LINENO"; then : 11266 xorg_cv_cc_flag_unknown_warning_option=yes 11267 else 11268 xorg_cv_cc_flag_unknown_warning_option=no 11269 fi 11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11271 fi 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" 11276 fi 11277 11278 if 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; } 11285 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 11286 $as_echo_n "(cached) " >&6 11287 else 11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11289 /* end confdefs.h. */ 11290 int i; 11291 _ACEOF 11292 if ac_fn_c_try_compile "$LINENO"; then : 11293 xorg_cv_cc_flag_unused_command_line_argument=yes 11294 else 11295 xorg_cv_cc_flag_unused_command_line_argument=no 11296 fi 11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11298 fi 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" 11303 fi 11304 11305 found="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 11323 else 11324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325 /* end confdefs.h. */ 11326 int i; 11327 int 11328 main () 11329 { 11330 11331 ; 11332 return 0; 11333 } 11334 _ACEOF 11335 if ac_fn_c_try_link "$LINENO"; then : 11336 eval $cacheid=yes 11337 else 11338 eval $cacheid=no 11339 fi 11340 rm -f core conftest.err conftest.$ac_objext \ 11341 conftest$ac_exeext conftest.$ac_ext 11342 fi 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. 11365 if 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 11383 else 11384 enable_static=no 11385 fi 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 case `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;} ;; 11399 esac 11400 11401 11402 11403 macro_version='2.4.2' 11404 macro_revision='1.3337' 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 ltmain="$ac_aux_dir/ltmain.sh" 11419 11420 # Backslashify metacharacters that are still active within 11421 # double-quoted strings. 11422 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11423 11424 # Same as above, but do not quote variable references. 11425 double_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. 11429 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11430 11431 # Sed substitution to delay expansion of an escaped single quote. 11432 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11433 11434 # Sed substitution to avoid accidental globbing in evaled expressions 11435 no_glob_subst='s/\*/\\\*/g' 11436 11437 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11438 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11439 ECHO=$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. 11444 if 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 --' 11447 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11448 ECHO='printf %s\n' 11449 else 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' 11458 fi 11459 11460 # func_echo_all arg... 11461 # Invoke $ECHO with all args, space-separated. 11462 func_echo_all () 11463 { 11464 $ECHO "" 11465 } 11466 11467 case "$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; } ;; 11474 esac 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; } 11491 if ${ac_cv_path_SED+:} false; then : 11492 $as_echo_n "(cached) " >&6 11493 else 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 11504 for as_dir in $PATH 11505 do 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 11514 case `"$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;; 11538 esac 11539 11540 $ac_path_SED_found && break 3 11541 done 11542 done 11543 done 11544 IFS=$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 11548 else 11549 ac_cv_path_SED=$SED 11550 fi 11551 11552 fi 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 11558 test -z "$SED" && SED=sed 11559 Xsed="$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; } 11573 if ${ac_cv_path_FGREP+:} false; then : 11574 $as_echo_n "(cached) " >&6 11575 else 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 11583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11584 do 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 11593 case `"$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;; 11617 esac 11618 11619 $ac_path_FGREP_found && break 3 11620 done 11621 done 11622 done 11623 IFS=$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 11627 else 11628 ac_cv_path_FGREP=$FGREP 11629 fi 11630 11631 fi 11632 fi 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 11638 test -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. 11659 if test "${with_gnu_ld+set}" = set; then : 11660 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11661 else 11662 with_gnu_ld=no 11663 fi 11664 11665 ac_prog=ld 11666 if 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 11697 elif 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; } 11700 else 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11702 $as_echo_n "checking for non-GNU ld... " >&6; } 11703 fi 11704 if ${lt_cv_path_LD+:} false; then : 11705 $as_echo_n "(cached) " >&6 11706 else 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" 11728 else 11729 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11730 fi 11731 fi 11732 11733 LD="$lt_cv_path_LD" 11734 if test -n "$LD"; then 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11736 $as_echo "$LD" >&6; } 11737 else 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11739 $as_echo "no" >&6; } 11740 fi 11741 test -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; } 11744 if ${lt_cv_prog_gnu_ld+:} false; then : 11745 $as_echo_n "(cached) " >&6 11746 else 11747 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11748 case `$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 ;; 11755 esac 11756 fi 11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11758 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11759 with_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; } 11771 if ${lt_cv_path_NM+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773 else 11774 if test -n "$NM"; then 11775 # Let the user override the test. 11776 lt_cv_path_NM="$NM" 11777 else 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} 11816 fi 11817 fi 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11819 $as_echo "$lt_cv_path_NM" >&6; } 11820 if test "$lt_cv_path_NM" != "no"; then 11821 NM="$lt_cv_path_NM" 11822 else 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. 11831 set 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; } 11834 if ${ac_cv_prog_DUMPBIN+:} false; then : 11835 $as_echo_n "(cached) " >&6 11836 else 11837 if test -n "$DUMPBIN"; then 11838 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11839 else 11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11841 for as_dir in $PATH 11842 do 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 11851 done 11852 done 11853 IFS=$as_save_IFS 11854 11855 fi 11856 fi 11857 DUMPBIN=$ac_cv_prog_DUMPBIN 11858 if test -n "$DUMPBIN"; then 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11860 $as_echo "$DUMPBIN" >&6; } 11861 else 11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11863 $as_echo "no" >&6; } 11864 fi 11865 11866 11867 test -n "$DUMPBIN" && break 11868 done 11869 fi 11870 if test -z "$DUMPBIN"; then 11871 ac_ct_DUMPBIN=$DUMPBIN 11872 for ac_prog in dumpbin "link -dump" 11873 do 11874 # Extract the first word of "$ac_prog", so it can be a program name with args. 11875 set 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; } 11878 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11879 $as_echo_n "(cached) " >&6 11880 else 11881 if test -n "$ac_ct_DUMPBIN"; then 11882 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11883 else 11884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11885 for as_dir in $PATH 11886 do 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 11895 done 11896 done 11897 IFS=$as_save_IFS 11898 11899 fi 11900 fi 11901 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11902 if 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; } 11905 else 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11907 $as_echo "no" >&6; } 11908 fi 11909 11910 11911 test -n "$ac_ct_DUMPBIN" && break 11912 done 11913 11914 if test "x$ac_ct_DUMPBIN" = x; then 11915 DUMPBIN=":" 11916 else 11917 case $cross_compiling:$ac_tool_warned in 11918 yes:) 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;} 11921 ac_tool_warned=yes ;; 11922 esac 11923 DUMPBIN=$ac_ct_DUMPBIN 11924 fi 11925 fi 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 11940 fi 11941 test -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; } 11950 if ${lt_cv_nm_interface+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952 else 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* 11967 fi 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; } 11973 LN_S=$as_ln_s 11974 if test "$LN_S" = "ln -s"; then 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11976 $as_echo "yes" >&6; } 11977 else 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11979 $as_echo "no, using $LN_S" >&6; } 11980 fi 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; } 11985 if ${lt_cv_sys_max_cmd_len+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987 else 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 12111 fi 12112 12113 if 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; } 12116 else 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12118 $as_echo "none" >&6; } 12119 fi 12120 max_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 12134 xsi_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; } 12147 lt_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 12155 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12156 lt_unset=unset 12157 else 12158 lt_unset=false 12159 fi 12160 12161 12162 12163 12164 12165 # test EBCDIC or ASCII 12166 case `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 ;; 12176 esac 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; } 12188 if ${lt_cv_to_host_file_cmd+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190 else 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 ;; 12221 esac 12222 12223 fi 12224 12225 to_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; } 12235 if ${lt_cv_to_tool_file_cmd+:} false; then : 12236 $as_echo_n "(cached) " >&6 12237 else 12238 #assume ordinary cross tools, or native build. 12239 lt_cv_to_tool_file_cmd=func_convert_file_noop 12240 case $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 ;; 12248 esac 12249 12250 fi 12251 12252 to_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; } 12262 if ${lt_cv_ld_reload_flag+:} false; then : 12263 $as_echo_n "(cached) " >&6 12264 else 12265 lt_cv_ld_reload_flag='-r' 12266 fi 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12268 $as_echo "$lt_cv_ld_reload_flag" >&6; } 12269 reload_flag=$lt_cv_ld_reload_flag 12270 case $reload_flag in 12271 "" | " "*) ;; 12272 *) reload_flag=" $reload_flag" ;; 12273 esac 12274 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12275 case $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 ;; 12288 esac 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 if 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. 12300 set 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; } 12303 if ${ac_cv_prog_OBJDUMP+:} false; then : 12304 $as_echo_n "(cached) " >&6 12305 else 12306 if test -n "$OBJDUMP"; then 12307 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12308 else 12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12310 for as_dir in $PATH 12311 do 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 12320 done 12321 done 12322 IFS=$as_save_IFS 12323 12324 fi 12325 fi 12326 OBJDUMP=$ac_cv_prog_OBJDUMP 12327 if test -n "$OBJDUMP"; then 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12329 $as_echo "$OBJDUMP" >&6; } 12330 else 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12332 $as_echo "no" >&6; } 12333 fi 12334 12335 12336 fi 12337 if 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. 12340 set 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; } 12343 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 12344 $as_echo_n "(cached) " >&6 12345 else 12346 if test -n "$ac_ct_OBJDUMP"; then 12347 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12348 else 12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12350 for as_dir in $PATH 12351 do 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 12360 done 12361 done 12362 IFS=$as_save_IFS 12363 12364 fi 12365 fi 12366 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12367 if 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; } 12370 else 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12372 $as_echo "no" >&6; } 12373 fi 12374 12375 if test "x$ac_ct_OBJDUMP" = x; then 12376 OBJDUMP="false" 12377 else 12378 case $cross_compiling:$ac_tool_warned in 12379 yes:) 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;} 12382 ac_tool_warned=yes ;; 12383 esac 12384 OBJDUMP=$ac_ct_OBJDUMP 12385 fi 12386 else 12387 OBJDUMP="$ac_cv_prog_OBJDUMP" 12388 fi 12389 12390 test -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; } 12402 if ${lt_cv_deplibs_check_method+:} false; then : 12403 $as_echo_n "(cached) " >&6 12404 else 12405 lt_cv_file_magic_cmd='$MAGIC_CMD' 12406 lt_cv_file_magic_test_file= 12407 lt_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 12419 case $host_os in 12420 aix[4-9]*) 12421 lt_cv_deplibs_check_method=pass_all 12422 ;; 12423 12424 beos*) 12425 lt_cv_deplibs_check_method=pass_all 12426 ;; 12427 12428 bsdi[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 12434 cygwin*) 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 12440 mingw* | 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 12455 cegcc*) 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 12461 darwin* | rhapsody*) 12462 lt_cv_deplibs_check_method=pass_all 12463 ;; 12464 12465 freebsd* | 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 12481 haiku*) 12482 lt_cv_deplibs_check_method=pass_all 12483 ;; 12484 12485 hpux10.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 12503 interix[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 12508 irix5* | 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. 12519 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12520 lt_cv_deplibs_check_method=pass_all 12521 ;; 12522 12523 netbsd* | 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 12531 newos6*) 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 12541 openbsd*) 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 12549 osf3* | osf4* | osf5*) 12550 lt_cv_deplibs_check_method=pass_all 12551 ;; 12552 12553 rdos*) 12554 lt_cv_deplibs_check_method=pass_all 12555 ;; 12556 12557 solaris*) 12558 lt_cv_deplibs_check_method=pass_all 12559 ;; 12560 12561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12562 lt_cv_deplibs_check_method=pass_all 12563 ;; 12564 12565 sysv4 | 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 12592 tpf*) 12593 lt_cv_deplibs_check_method=pass_all 12594 ;; 12595 esac 12596 12597 fi 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 12601 file_magic_glob= 12602 want_nocaseglob=no 12603 if 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 12613 fi 12614 12615 file_magic_cmd=$lt_cv_file_magic_cmd 12616 deplibs_check_method=$lt_cv_deplibs_check_method 12617 test -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 12640 if 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. 12642 set 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; } 12645 if ${ac_cv_prog_DLLTOOL+:} false; then : 12646 $as_echo_n "(cached) " >&6 12647 else 12648 if test -n "$DLLTOOL"; then 12649 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12650 else 12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12652 for as_dir in $PATH 12653 do 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 12662 done 12663 done 12664 IFS=$as_save_IFS 12665 12666 fi 12667 fi 12668 DLLTOOL=$ac_cv_prog_DLLTOOL 12669 if test -n "$DLLTOOL"; then 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12671 $as_echo "$DLLTOOL" >&6; } 12672 else 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12674 $as_echo "no" >&6; } 12675 fi 12676 12677 12678 fi 12679 if 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. 12682 set 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; } 12685 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12686 $as_echo_n "(cached) " >&6 12687 else 12688 if test -n "$ac_ct_DLLTOOL"; then 12689 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12690 else 12691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12692 for as_dir in $PATH 12693 do 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 12702 done 12703 done 12704 IFS=$as_save_IFS 12705 12706 fi 12707 fi 12708 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12709 if 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; } 12712 else 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12714 $as_echo "no" >&6; } 12715 fi 12716 12717 if test "x$ac_ct_DLLTOOL" = x; then 12718 DLLTOOL="false" 12719 else 12720 case $cross_compiling:$ac_tool_warned in 12721 yes:) 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;} 12724 ac_tool_warned=yes ;; 12725 esac 12726 DLLTOOL=$ac_ct_DLLTOOL 12727 fi 12728 else 12729 DLLTOOL="$ac_cv_prog_DLLTOOL" 12730 fi 12731 12732 test -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; } 12745 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12746 $as_echo_n "(cached) " >&6 12747 else 12748 lt_cv_sharedlib_from_linklib_cmd='unknown' 12749 12750 case $host_os in 12751 cygwin* | 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 ;; 12767 esac 12768 12769 fi 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; } 12772 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12773 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12774 12775 12776 12777 12778 12779 12780 12781 if 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. 12785 set 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; } 12788 if ${ac_cv_prog_AR+:} false; then : 12789 $as_echo_n "(cached) " >&6 12790 else 12791 if test -n "$AR"; then 12792 ac_cv_prog_AR="$AR" # Let the user override the test. 12793 else 12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12795 for as_dir in $PATH 12796 do 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 12805 done 12806 done 12807 IFS=$as_save_IFS 12808 12809 fi 12810 fi 12811 AR=$ac_cv_prog_AR 12812 if test -n "$AR"; then 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12814 $as_echo "$AR" >&6; } 12815 else 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12817 $as_echo "no" >&6; } 12818 fi 12819 12820 12821 test -n "$AR" && break 12822 done 12823 fi 12824 if test -z "$AR"; then 12825 ac_ct_AR=$AR 12826 for ac_prog in ar 12827 do 12828 # Extract the first word of "$ac_prog", so it can be a program name with args. 12829 set 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; } 12832 if ${ac_cv_prog_ac_ct_AR+:} false; then : 12833 $as_echo_n "(cached) " >&6 12834 else 12835 if test -n "$ac_ct_AR"; then 12836 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12837 else 12838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12839 for as_dir in $PATH 12840 do 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 12849 done 12850 done 12851 IFS=$as_save_IFS 12852 12853 fi 12854 fi 12855 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12856 if 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; } 12859 else 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12861 $as_echo "no" >&6; } 12862 fi 12863 12864 12865 test -n "$ac_ct_AR" && break 12866 done 12867 12868 if test "x$ac_ct_AR" = x; then 12869 AR="false" 12870 else 12871 case $cross_compiling:$ac_tool_warned in 12872 yes:) 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;} 12875 ac_tool_warned=yes ;; 12876 esac 12877 AR=$ac_ct_AR 12878 fi 12879 fi 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; } 12896 if ${lt_cv_ar_at_file+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898 else 12899 lt_cv_ar_at_file=no 12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12901 /* end confdefs.h. */ 12902 12903 int 12904 main () 12905 { 12906 12907 ; 12908 return 0; 12909 } 12910 _ACEOF 12911 if 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 12933 fi 12934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12935 12936 fi 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 12940 if test "x$lt_cv_ar_at_file" = xno; then 12941 archiver_list_spec= 12942 else 12943 archiver_list_spec=$lt_cv_ar_at_file 12944 fi 12945 12946 12947 12948 12949 12950 12951 12952 if 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. 12954 set 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; } 12957 if ${ac_cv_prog_STRIP+:} false; then : 12958 $as_echo_n "(cached) " >&6 12959 else 12960 if test -n "$STRIP"; then 12961 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12962 else 12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12964 for as_dir in $PATH 12965 do 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 12974 done 12975 done 12976 IFS=$as_save_IFS 12977 12978 fi 12979 fi 12980 STRIP=$ac_cv_prog_STRIP 12981 if test -n "$STRIP"; then 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12983 $as_echo "$STRIP" >&6; } 12984 else 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12986 $as_echo "no" >&6; } 12987 fi 12988 12989 12990 fi 12991 if 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. 12994 set 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; } 12997 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12998 $as_echo_n "(cached) " >&6 12999 else 13000 if test -n "$ac_ct_STRIP"; then 13001 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13002 else 13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13004 for as_dir in $PATH 13005 do 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 13014 done 13015 done 13016 IFS=$as_save_IFS 13017 13018 fi 13019 fi 13020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13021 if 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; } 13024 else 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13026 $as_echo "no" >&6; } 13027 fi 13028 13029 if test "x$ac_ct_STRIP" = x; then 13030 STRIP=":" 13031 else 13032 case $cross_compiling:$ac_tool_warned in 13033 yes:) 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;} 13036 ac_tool_warned=yes ;; 13037 esac 13038 STRIP=$ac_ct_STRIP 13039 fi 13040 else 13041 STRIP="$ac_cv_prog_STRIP" 13042 fi 13043 13044 test -z "$STRIP" && STRIP=: 13045 13046 13047 13048 13049 13050 13051 if 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. 13053 set 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; } 13056 if ${ac_cv_prog_RANLIB+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058 else 13059 if test -n "$RANLIB"; then 13060 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13061 else 13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13063 for as_dir in $PATH 13064 do 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 13073 done 13074 done 13075 IFS=$as_save_IFS 13076 13077 fi 13078 fi 13079 RANLIB=$ac_cv_prog_RANLIB 13080 if test -n "$RANLIB"; then 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13082 $as_echo "$RANLIB" >&6; } 13083 else 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13085 $as_echo "no" >&6; } 13086 fi 13087 13088 13089 fi 13090 if 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. 13093 set 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; } 13096 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 13097 $as_echo_n "(cached) " >&6 13098 else 13099 if test -n "$ac_ct_RANLIB"; then 13100 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13101 else 13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13103 for as_dir in $PATH 13104 do 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 13113 done 13114 done 13115 IFS=$as_save_IFS 13116 13117 fi 13118 fi 13119 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13120 if 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; } 13123 else 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13125 $as_echo "no" >&6; } 13126 fi 13127 13128 if test "x$ac_ct_RANLIB" = x; then 13129 RANLIB=":" 13130 else 13131 case $cross_compiling:$ac_tool_warned in 13132 yes:) 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;} 13135 ac_tool_warned=yes ;; 13136 esac 13137 RANLIB=$ac_ct_RANLIB 13138 fi 13139 else 13140 RANLIB="$ac_cv_prog_RANLIB" 13141 fi 13142 13143 test -z "$RANLIB" && RANLIB=: 13144 13145 13146 13147 13148 13149 13150 # Determine commands to create old-style static archives. 13151 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13152 old_postinstall_cmds='chmod 644 $oldlib' 13153 old_postuninstall_cmds= 13154 13155 if 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" 13165 fi 13166 13167 case $host_os in 13168 darwin*) 13169 lock_old_archive_extraction=yes ;; 13170 *) 13171 lock_old_archive_extraction=no ;; 13172 esac 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. 13213 LTCC=${LTCC-"$CC"} 13214 13215 # If no C compiler flags were specified, use CFLAGS. 13216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13217 13218 # Allow CC to be a program name with arguments. 13219 compiler=$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; } 13225 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 13226 $as_echo_n "(cached) " >&6 13227 else 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. 13233 symcode='[BCDEGRST]' 13234 13235 # Regexp to match symbols that can be accessed directly from C. 13236 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13237 13238 # Define system-specific variables. 13239 case $host_os in 13240 aix*) 13241 symcode='[BCDT]' 13242 ;; 13243 cygwin* | mingw* | pw32* | cegcc*) 13244 symcode='[ABCDGISTW]' 13245 ;; 13246 hpux*) 13247 if test "$host_cpu" = ia64; then 13248 symcode='[ABCDEGRST]' 13249 fi 13250 ;; 13251 irix* | nonstopux*) 13252 symcode='[BCDEGRST]' 13253 ;; 13254 osf*) 13255 symcode='[BCDEGQRST]' 13256 ;; 13257 solaris*) 13258 symcode='[BDRT]' 13259 ;; 13260 sco3.2v5*) 13261 symcode='[DT]' 13262 ;; 13263 sysv4.2uw2*) 13264 symcode='[DT]' 13265 ;; 13266 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13267 symcode='[ABDT]' 13268 ;; 13269 sysv4) 13270 symcode='[DFNSTU]' 13271 ;; 13272 esac 13273 13274 # If we're using GNU nm, then use its standard symbol codes. 13275 case `$NM -V 2>&1` in 13276 *GNU* | *'with BFD'*) 13277 symcode='[ABCDGIRSTW]' ;; 13278 esac 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. 13283 lt_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 13286 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 13287 lt_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 13290 opt_cr= 13291 case $build_os in 13292 mingw*) 13293 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13294 ;; 13295 esac 13296 13297 # Try without a prefix underscore, then with it. 13298 for 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 13332 extern "C" { 13333 #endif 13334 char nm_test_var; 13335 void nm_test_func(void); 13336 void nm_test_func(void){} 13337 #ifdef __cplusplus 13338 } 13339 #endif 13340 int 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 13379 extern "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. */ 13389 LT_DLSYM_CONST struct { 13390 const char *name; 13391 void *address; 13392 } 13393 lt__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 13404 static 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 13449 done 13450 13451 fi 13452 13453 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13454 lt_cv_sys_global_symbol_to_cdecl= 13455 fi 13456 if 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; } 13459 else 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13461 $as_echo "ok" >&6; } 13462 fi 13463 13464 # Response file support. 13465 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13466 nm_file_list_spec='@' 13467 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13468 nm_file_list_spec='@' 13469 fi 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. 13501 if test "${with_sysroot+set}" = set; then : 13502 withval=$with_sysroot; 13503 else 13504 with_sysroot=no 13505 fi 13506 13507 13508 lt_sysroot= 13509 case ${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 ;; 13525 esac 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. 13535 if test "${enable_libtool_lock+set}" = set; then : 13536 enableval=$enable_libtool_lock; 13537 fi 13538 13539 test "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. 13543 case $host in 13544 ia64-*-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 13600 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13601 s390*-*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; } 13672 if ${lt_cv_cc_needs_belf+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674 else 13675 ac_ext=c 13676 ac_cpp='$CPP $CPPFLAGS' 13677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13679 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13680 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13682 /* end confdefs.h. */ 13683 13684 int 13685 main () 13686 { 13687 13688 ; 13689 return 0; 13690 } 13691 _ACEOF 13692 if ac_fn_c_try_link "$LINENO"; then : 13693 lt_cv_cc_needs_belf=yes 13694 else 13695 lt_cv_cc_needs_belf=no 13696 fi 13697 rm -f core conftest.err conftest.$ac_objext \ 13698 conftest$ac_exeext conftest.$ac_ext 13699 ac_ext=c 13700 ac_cpp='$CPP $CPPFLAGS' 13701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13703 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13704 13705 fi 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 ;; 13749 esac 13750 13751 need_locks="$enable_libtool_lock" 13752 13753 if 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. 13755 set 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; } 13758 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13759 $as_echo_n "(cached) " >&6 13760 else 13761 if test -n "$MANIFEST_TOOL"; then 13762 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13763 else 13764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13765 for as_dir in $PATH 13766 do 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 13775 done 13776 done 13777 IFS=$as_save_IFS 13778 13779 fi 13780 fi 13781 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13782 if test -n "$MANIFEST_TOOL"; then 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13784 $as_echo "$MANIFEST_TOOL" >&6; } 13785 else 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13787 $as_echo "no" >&6; } 13788 fi 13789 13790 13791 fi 13792 if 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. 13795 set 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; } 13798 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13799 $as_echo_n "(cached) " >&6 13800 else 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. 13803 else 13804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13805 for as_dir in $PATH 13806 do 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 13815 done 13816 done 13817 IFS=$as_save_IFS 13818 13819 fi 13820 fi 13821 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13822 if 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; } 13825 else 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13827 $as_echo "no" >&6; } 13828 fi 13829 13830 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13831 MANIFEST_TOOL=":" 13832 else 13833 case $cross_compiling:$ac_tool_warned in 13834 yes:) 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;} 13837 ac_tool_warned=yes ;; 13838 esac 13839 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13840 fi 13841 else 13842 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13843 fi 13844 13845 test -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; } 13848 if ${lt_cv_path_mainfest_tool+:} false; then : 13849 $as_echo_n "(cached) " >&6 13850 else 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* 13859 fi 13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13861 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 13862 if test "x$lt_cv_path_mainfest_tool" != xyes; then 13863 MANIFEST_TOOL=: 13864 fi 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. 13875 set 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; } 13878 if ${ac_cv_prog_DSYMUTIL+:} false; then : 13879 $as_echo_n "(cached) " >&6 13880 else 13881 if test -n "$DSYMUTIL"; then 13882 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13883 else 13884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13885 for as_dir in $PATH 13886 do 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 13895 done 13896 done 13897 IFS=$as_save_IFS 13898 13899 fi 13900 fi 13901 DSYMUTIL=$ac_cv_prog_DSYMUTIL 13902 if test -n "$DSYMUTIL"; then 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13904 $as_echo "$DSYMUTIL" >&6; } 13905 else 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13907 $as_echo "no" >&6; } 13908 fi 13909 13910 13911 fi 13912 if 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. 13915 set 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; } 13918 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13919 $as_echo_n "(cached) " >&6 13920 else 13921 if test -n "$ac_ct_DSYMUTIL"; then 13922 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13923 else 13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13925 for as_dir in $PATH 13926 do 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 13935 done 13936 done 13937 IFS=$as_save_IFS 13938 13939 fi 13940 fi 13941 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13942 if 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; } 13945 else 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13947 $as_echo "no" >&6; } 13948 fi 13949 13950 if test "x$ac_ct_DSYMUTIL" = x; then 13951 DSYMUTIL=":" 13952 else 13953 case $cross_compiling:$ac_tool_warned in 13954 yes:) 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;} 13957 ac_tool_warned=yes ;; 13958 esac 13959 DSYMUTIL=$ac_ct_DSYMUTIL 13960 fi 13961 else 13962 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13963 fi 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. 13967 set 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; } 13970 if ${ac_cv_prog_NMEDIT+:} false; then : 13971 $as_echo_n "(cached) " >&6 13972 else 13973 if test -n "$NMEDIT"; then 13974 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13975 else 13976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13977 for as_dir in $PATH 13978 do 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 13987 done 13988 done 13989 IFS=$as_save_IFS 13990 13991 fi 13992 fi 13993 NMEDIT=$ac_cv_prog_NMEDIT 13994 if test -n "$NMEDIT"; then 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13996 $as_echo "$NMEDIT" >&6; } 13997 else 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13999 $as_echo "no" >&6; } 14000 fi 14001 14002 14003 fi 14004 if 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. 14007 set 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; } 14010 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 14011 $as_echo_n "(cached) " >&6 14012 else 14013 if test -n "$ac_ct_NMEDIT"; then 14014 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14015 else 14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14017 for as_dir in $PATH 14018 do 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 14027 done 14028 done 14029 IFS=$as_save_IFS 14030 14031 fi 14032 fi 14033 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14034 if 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; } 14037 else 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14039 $as_echo "no" >&6; } 14040 fi 14041 14042 if test "x$ac_ct_NMEDIT" = x; then 14043 NMEDIT=":" 14044 else 14045 case $cross_compiling:$ac_tool_warned in 14046 yes:) 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;} 14049 ac_tool_warned=yes ;; 14050 esac 14051 NMEDIT=$ac_ct_NMEDIT 14052 fi 14053 else 14054 NMEDIT="$ac_cv_prog_NMEDIT" 14055 fi 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. 14059 set 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; } 14062 if ${ac_cv_prog_LIPO+:} false; then : 14063 $as_echo_n "(cached) " >&6 14064 else 14065 if test -n "$LIPO"; then 14066 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14067 else 14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14069 for as_dir in $PATH 14070 do 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 14079 done 14080 done 14081 IFS=$as_save_IFS 14082 14083 fi 14084 fi 14085 LIPO=$ac_cv_prog_LIPO 14086 if test -n "$LIPO"; then 14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14088 $as_echo "$LIPO" >&6; } 14089 else 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14091 $as_echo "no" >&6; } 14092 fi 14093 14094 14095 fi 14096 if 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. 14099 set 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; } 14102 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 14103 $as_echo_n "(cached) " >&6 14104 else 14105 if test -n "$ac_ct_LIPO"; then 14106 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14107 else 14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14109 for as_dir in $PATH 14110 do 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 14119 done 14120 done 14121 IFS=$as_save_IFS 14122 14123 fi 14124 fi 14125 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14126 if 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; } 14129 else 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14131 $as_echo "no" >&6; } 14132 fi 14133 14134 if test "x$ac_ct_LIPO" = x; then 14135 LIPO=":" 14136 else 14137 case $cross_compiling:$ac_tool_warned in 14138 yes:) 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;} 14141 ac_tool_warned=yes ;; 14142 esac 14143 LIPO=$ac_ct_LIPO 14144 fi 14145 else 14146 LIPO="$ac_cv_prog_LIPO" 14147 fi 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. 14151 set 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; } 14154 if ${ac_cv_prog_OTOOL+:} false; then : 14155 $as_echo_n "(cached) " >&6 14156 else 14157 if test -n "$OTOOL"; then 14158 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14159 else 14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14161 for as_dir in $PATH 14162 do 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 14171 done 14172 done 14173 IFS=$as_save_IFS 14174 14175 fi 14176 fi 14177 OTOOL=$ac_cv_prog_OTOOL 14178 if test -n "$OTOOL"; then 14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14180 $as_echo "$OTOOL" >&6; } 14181 else 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14183 $as_echo "no" >&6; } 14184 fi 14185 14186 14187 fi 14188 if 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. 14191 set 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; } 14194 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 14195 $as_echo_n "(cached) " >&6 14196 else 14197 if test -n "$ac_ct_OTOOL"; then 14198 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14199 else 14200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14201 for as_dir in $PATH 14202 do 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 14211 done 14212 done 14213 IFS=$as_save_IFS 14214 14215 fi 14216 fi 14217 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14218 if 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; } 14221 else 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14223 $as_echo "no" >&6; } 14224 fi 14225 14226 if test "x$ac_ct_OTOOL" = x; then 14227 OTOOL=":" 14228 else 14229 case $cross_compiling:$ac_tool_warned in 14230 yes:) 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;} 14233 ac_tool_warned=yes ;; 14234 esac 14235 OTOOL=$ac_ct_OTOOL 14236 fi 14237 else 14238 OTOOL="$ac_cv_prog_OTOOL" 14239 fi 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. 14243 set 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; } 14246 if ${ac_cv_prog_OTOOL64+:} false; then : 14247 $as_echo_n "(cached) " >&6 14248 else 14249 if test -n "$OTOOL64"; then 14250 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14251 else 14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14253 for as_dir in $PATH 14254 do 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 14263 done 14264 done 14265 IFS=$as_save_IFS 14266 14267 fi 14268 fi 14269 OTOOL64=$ac_cv_prog_OTOOL64 14270 if test -n "$OTOOL64"; then 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14272 $as_echo "$OTOOL64" >&6; } 14273 else 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14275 $as_echo "no" >&6; } 14276 fi 14277 14278 14279 fi 14280 if 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. 14283 set 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; } 14286 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288 else 14289 if test -n "$ac_ct_OTOOL64"; then 14290 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14291 else 14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14293 for as_dir in $PATH 14294 do 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 14303 done 14304 done 14305 IFS=$as_save_IFS 14306 14307 fi 14308 fi 14309 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14310 if 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; } 14313 else 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14315 $as_echo "no" >&6; } 14316 fi 14317 14318 if test "x$ac_ct_OTOOL64" = x; then 14319 OTOOL64=":" 14320 else 14321 case $cross_compiling:$ac_tool_warned in 14322 yes:) 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;} 14325 ac_tool_warned=yes ;; 14326 esac 14327 OTOOL64=$ac_ct_OTOOL64 14328 fi 14329 else 14330 OTOOL64="$ac_cv_prog_OTOOL64" 14331 fi 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; } 14361 if ${lt_cv_apple_cc_single_mod+:} false; then : 14362 $as_echo_n "(cached) " >&6 14363 else 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 14391 fi 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; } 14397 if ${lt_cv_ld_exported_symbols_list+:} false; then : 14398 $as_echo_n "(cached) " >&6 14399 else 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 14407 int 14408 main () 14409 { 14410 14411 ; 14412 return 0; 14413 } 14414 _ACEOF 14415 if ac_fn_c_try_link "$LINENO"; then : 14416 lt_cv_ld_exported_symbols_list=yes 14417 else 14418 lt_cv_ld_exported_symbols_list=no 14419 fi 14420 rm -f core conftest.err conftest.$ac_objext \ 14421 conftest$ac_exeext conftest.$ac_ext 14422 LDFLAGS="$save_LDFLAGS" 14423 14424 fi 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; } 14430 if ${lt_cv_ld_force_load+:} false; then : 14431 $as_echo_n "(cached) " >&6 14432 else 14433 lt_cv_ld_force_load=no 14434 cat > conftest.c << _LT_EOF 14435 int 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 14444 int 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 14459 fi 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 14497 for ac_header in dlfcn.h 14498 do : 14499 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14500 " 14501 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14502 cat >>confdefs.h <<_ACEOF 14503 #define HAVE_DLFCN_H 1 14504 _ACEOF 14505 14506 fi 14507 14508 done 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. 14525 if 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 14543 else 14544 enable_shared=yes 14545 fi 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 # Check whether --with-pic was given. 14558 if 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 14575 else 14576 pic_mode=default 14577 fi 14578 14579 14580 test -z "$pic_mode" && pic_mode=default 14581 14582 14583 14584 14585 14586 14587 14588 # Check whether --enable-fast-install was given. 14589 if 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 14607 else 14608 enable_fast_install=yes 14609 fi 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 # This can be used to rebuild libtool when needed 14622 LIBTOOL_DEPS="$ltmain" 14623 14624 # Always use our own libtool. 14625 LIBTOOL='$(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 14656 test -z "$LN_S" && LN_S="ln -s" 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 if test -n "${ZSH_VERSION+set}" ; then 14672 setopt NO_GLOB_SUBST 14673 fi 14674 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14676 $as_echo_n "checking for objdir... " >&6; } 14677 if ${lt_cv_objdir+:} false; then : 14678 $as_echo_n "(cached) " >&6 14679 else 14680 rm -f .libs 2>/dev/null 14681 mkdir .libs 2>/dev/null 14682 if test -d .libs; then 14683 lt_cv_objdir=.libs 14684 else 14685 # MS-DOS does not allow filenames that begin with a dot. 14686 lt_cv_objdir=_libs 14687 fi 14688 rmdir .libs 2>/dev/null 14689 fi 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14691 $as_echo "$lt_cv_objdir" >&6; } 14692 objdir=$lt_cv_objdir 14693 14694 14695 14696 14697 14698 cat >>confdefs.h <<_ACEOF 14699 #define LT_OBJDIR "$lt_cv_objdir/" 14700 _ACEOF 14701 14702 14703 14704 14705 case $host_os in 14706 aix3*) 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 ;; 14715 esac 14716 14717 # Global variables: 14718 ofile=libtool 14719 can_build_shared=yes 14720 14721 # All known linkers require a `.a' archive for static linking (except MSVC, 14722 # which needs '.lib'). 14723 libext=a 14724 14725 with_gnu_ld="$lt_cv_prog_gnu_ld" 14726 14727 old_CC="$CC" 14728 old_CFLAGS="$CFLAGS" 14729 14730 # Set sane defaults for various variables 14731 test -z "$CC" && CC=cc 14732 test -z "$LTCC" && LTCC=$CC 14733 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14734 test -z "$LD" && LD=ld 14735 test -z "$ac_objext" && ac_objext=o 14736 14737 for 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 14744 done 14745 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14746 14747 14748 # Only perform the check for file, if the check method requires it 14749 test -z "$MAGIC_CMD" && MAGIC_CMD=file 14750 case $deplibs_check_method in 14751 file_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; } 14755 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14756 $as_echo_n "(cached) " >&6 14757 else 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 ;; 14801 esac 14802 fi 14803 14804 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14805 if test -n "$MAGIC_CMD"; then 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14807 $as_echo "$MAGIC_CMD" >&6; } 14808 else 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14810 $as_echo "no" >&6; } 14811 fi 14812 14813 14814 14815 14816 14817 if 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; } 14821 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14822 $as_echo_n "(cached) " >&6 14823 else 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 ;; 14867 esac 14868 fi 14869 14870 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14871 if test -n "$MAGIC_CMD"; then 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14873 $as_echo "$MAGIC_CMD" >&6; } 14874 else 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14876 $as_echo "no" >&6; } 14877 fi 14878 14879 14880 else 14881 MAGIC_CMD=: 14882 fi 14883 fi 14884 14885 fi 14886 ;; 14887 esac 14888 14889 # Use C for the default configuration in the libtool script 14890 14891 lt_save_CC="$CC" 14892 ac_ext=c 14893 ac_cpp='$CPP $CPPFLAGS' 14894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14896 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14897 14898 14899 # Source file extension for C test sources. 14900 ac_ext=c 14901 14902 # Object file extension for compiled C test sources. 14903 objext=o 14904 objext=$objext 14905 14906 # Code to be used in simple compile tests 14907 lt_simple_compile_test_code="int some_variable = 0;" 14908 14909 # Code to be used in simple link tests 14910 lt_simple_link_test_code='int main(){return(0);}' 14911 14912 14913 14914 14915 14916 14917 14918 # If no C compiler was specified, use CC. 14919 LTCC=${LTCC-"$CC"} 14920 14921 # If no C compiler flags were specified, use CFLAGS. 14922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14923 14924 # Allow CC to be a program name with arguments. 14925 compiler=$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. 14929 compiler_DEFAULT=$CC 14930 14931 # save warnings/boilerplate of simple test code 14932 ac_outfile=conftest.$ac_objext 14933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14935 _lt_compiler_boilerplate=`cat conftest.err` 14936 $RM conftest* 14937 14938 ac_outfile=conftest.$ac_objext 14939 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14940 eval "$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... 14949 if test -n "$compiler"; then 14950 14951 lt_prog_compiler_no_builtin_flag= 14952 14953 if 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; } 14963 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14964 $as_echo_n "(cached) " >&6 14965 else 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 14995 fi 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 14999 if 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" 15001 else 15002 : 15003 fi 15004 15005 fi 15006 15007 15008 15009 15010 15011 15012 lt_prog_compiler_wl= 15013 lt_prog_compiler_pic= 15014 lt_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 15313 case $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 ;; 15321 esac 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; } 15325 if ${lt_cv_prog_compiler_pic+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327 else 15328 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15329 fi 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15331 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 15332 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15333 15334 # 15335 # Check to make sure the PIC flag actually works. 15336 # 15337 if 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; } 15340 if ${lt_cv_prog_compiler_pic_works+:} false; then : 15341 $as_echo_n "(cached) " >&6 15342 else 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 15372 fi 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 15376 if 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 15381 else 15382 lt_prog_compiler_pic= 15383 lt_prog_compiler_can_build_shared=no 15384 fi 15385 15386 fi 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 # 15399 # Check to make sure the static flag actually works. 15400 # 15401 wl=$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; } 15404 if ${lt_cv_prog_compiler_static_works+:} false; then : 15405 $as_echo_n "(cached) " >&6 15406 else 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 15429 fi 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 15433 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 15434 : 15435 else 15436 lt_prog_compiler_static= 15437 fi 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; } 15447 if ${lt_cv_prog_compiler_c_o+:} false; then : 15448 $as_echo_n "(cached) " >&6 15449 else 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 15491 fi 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; } 15502 if ${lt_cv_prog_compiler_c_o+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504 else 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 15546 fi 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 15553 hard_links="nottested" 15554 if 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 15571 else 15572 need_locks=no 15573 fi 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 (at] 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 16068 else 16069 if ${lt_cv_aix_libpath_+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071 else 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073 /* end confdefs.h. */ 16074 16075 int 16076 main () 16077 { 16078 16079 ; 16080 return 0; 16081 } 16082 _ACEOF 16083 if 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 16097 fi 16098 rm -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 16104 fi 16105 16106 aix_libpath=$lt_cv_aix_libpath_ 16107 fi 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 16121 else 16122 if ${lt_cv_aix_libpath_+:} false; then : 16123 $as_echo_n "(cached) " >&6 16124 else 16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16126 /* end confdefs.h. */ 16127 16128 int 16129 main () 16130 { 16131 16132 ; 16133 return 0; 16134 } 16135 _ACEOF 16136 if 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 16150 fi 16151 rm -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 16157 fi 16158 16159 aix_libpath=$lt_cv_aix_libpath_ 16160 fi 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; } 16391 if ${lt_cv_prog_compiler__b+:} false; then : 16392 $as_echo_n "(cached) " >&6 16393 else 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 16416 fi 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 16420 if 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' 16422 else 16423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16424 fi 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; } 16460 if ${lt_cv_irix_exported_symbol+:} false; then : 16461 $as_echo_n "(cached) " >&6 16462 else 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. */ 16467 int foo (void) { return 0; } 16468 _ACEOF 16469 if ac_fn_c_try_link "$LINENO"; then : 16470 lt_cv_irix_exported_symbol=yes 16471 else 16472 lt_cv_irix_exported_symbol=no 16473 fi 16474 rm -f core conftest.err conftest.$ac_objext \ 16475 conftest$ac_exeext conftest.$ac_ext 16476 LDFLAGS="$save_LDFLAGS" 16477 fi 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; } 16739 test "$ld_shlibs" = no && can_build_shared=no 16740 16741 with_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 # 16760 case "x$archive_cmds_need_lc" in 16761 x|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; } 16776 if ${lt_cv_archive_cmds_need_lc+:} false; then : 16777 $as_echo_n "(cached) " >&6 16778 else 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 16816 fi 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 ;; 16824 esac 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 16980 if 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 ' 17015 BEGIN {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` 17041 else 17042 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17043 fi 17044 library_names_spec= 17045 libname_spec='lib$name' 17046 soname_spec= 17047 shrext_cmds=".so" 17048 postinstall_cmds= 17049 postuninstall_cmds= 17050 finish_cmds= 17051 finish_eval= 17052 shlibpath_var= 17053 shlibpath_overrides_runpath=unknown 17054 version_type=none 17055 dynamic_linker="$host_os ld.so" 17056 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17057 need_lib_prefix=unknown 17058 hardcode_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 17062 need_version=unknown 17063 17064 case $host_os in 17065 aix3*) 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 17074 aix[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 17118 amigaos*) 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 17133 beos*) 17134 library_names_spec='${libname}${shared_ext}' 17135 dynamic_linker="$host_os ld.so" 17136 shlibpath_var=LIBRARY_PATH 17137 ;; 17138 17139 bsdi[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 17153 cygwin* | 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 17263 darwin* | 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 17278 dgux*) 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 17287 freebsd* | 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 17331 haiku*) 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 17344 hpux9* | 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 17392 interix[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 17404 irix5* | 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. 17442 linux*oldld* | linux*aout* | linux*coff*) 17443 dynamic_linker=no 17444 ;; 17445 17446 # This must be glibc/ELF. 17447 linux* | 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 17460 else 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 17469 int 17470 main () 17471 { 17472 17473 ; 17474 return 0; 17475 } 17476 _ACEOF 17477 if 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 17480 fi 17481 fi 17482 rm -f core conftest.err conftest.$ac_objext \ 17483 conftest$ac_exeext conftest.$ac_ext 17484 LDFLAGS=$save_LDFLAGS 17485 libdir=$save_libdir 17486 17487 fi 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 17511 netbsdelf*-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 17523 netbsd*) 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 17541 newsos6) 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 17560 openbsd*) 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 17586 os2*) 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 17595 osf3* | 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 17606 rdos*) 17607 dynamic_linker=no 17608 ;; 17609 17610 solaris*) 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 17623 sunos4*) 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 17635 sysv4 | 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 17658 sysv4*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 17667 sysv5* | 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 17689 tpf*) 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 17700 uts4*) 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 ;; 17710 esac 17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17712 $as_echo "$dynamic_linker" >&6; } 17713 test "$dynamic_linker" = no && can_build_shared=no 17714 17715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17716 if test "$GCC" = yes; then 17717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17718 fi 17719 17720 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17721 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17722 fi 17723 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17724 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17725 fi 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; } 17820 hardcode_action= 17821 if 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 17838 else 17839 # We cannot hardcode anything, or else we can only hardcode existing 17840 # directories. 17841 hardcode_action=unsupported 17842 fi 17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17844 $as_echo "$hardcode_action" >&6; } 17845 17846 if test "$hardcode_action" = relink || 17847 test "$inherit_rpath" = yes; then 17848 # Fast installation is not supported 17849 enable_fast_install=no 17850 elif test "$shlibpath_overrides_runpath" = yes || 17851 test "$enable_shared" = no; then 17852 # Fast installation is not necessary 17853 enable_fast_install=needless 17854 fi 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 17865 else 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; } 17890 if ${ac_cv_lib_dl_dlopen+:} false; then : 17891 $as_echo_n "(cached) " >&6 17892 else 17893 ac_check_lib_save_LIBS=$LIBS 17894 LIBS="-ldl $LIBS" 17895 cat 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 17902 extern "C" 17903 #endif 17904 char dlopen (); 17905 int 17906 main () 17907 { 17908 return dlopen (); 17909 ; 17910 return 0; 17911 } 17912 _ACEOF 17913 if ac_fn_c_try_link "$LINENO"; then : 17914 ac_cv_lib_dl_dlopen=yes 17915 else 17916 ac_cv_lib_dl_dlopen=no 17917 fi 17918 rm -f core conftest.err conftest.$ac_objext \ 17919 conftest$ac_exeext conftest.$ac_ext 17920 LIBS=$ac_check_lib_save_LIBS 17921 fi 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17924 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17926 else 17927 17928 lt_cv_dlopen="dyld" 17929 lt_cv_dlopen_libs= 17930 lt_cv_dlopen_self=yes 17931 17932 fi 17933 17934 ;; 17935 17936 *) 17937 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17938 if test "x$ac_cv_func_shl_load" = xyes; then : 17939 lt_cv_dlopen="shl_load" 17940 else 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; } 17943 if ${ac_cv_lib_dld_shl_load+:} false; then : 17944 $as_echo_n "(cached) " >&6 17945 else 17946 ac_check_lib_save_LIBS=$LIBS 17947 LIBS="-ldld $LIBS" 17948 cat 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 17955 extern "C" 17956 #endif 17957 char shl_load (); 17958 int 17959 main () 17960 { 17961 return shl_load (); 17962 ; 17963 return 0; 17964 } 17965 _ACEOF 17966 if ac_fn_c_try_link "$LINENO"; then : 17967 ac_cv_lib_dld_shl_load=yes 17968 else 17969 ac_cv_lib_dld_shl_load=no 17970 fi 17971 rm -f core conftest.err conftest.$ac_objext \ 17972 conftest$ac_exeext conftest.$ac_ext 17973 LIBS=$ac_check_lib_save_LIBS 17974 fi 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; } 17977 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17978 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17979 else 17980 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17981 if test "x$ac_cv_func_dlopen" = xyes; then : 17982 lt_cv_dlopen="dlopen" 17983 else 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17985 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17986 if ${ac_cv_lib_dl_dlopen+:} false; then : 17987 $as_echo_n "(cached) " >&6 17988 else 17989 ac_check_lib_save_LIBS=$LIBS 17990 LIBS="-ldl $LIBS" 17991 cat 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 17998 extern "C" 17999 #endif 18000 char dlopen (); 18001 int 18002 main () 18003 { 18004 return dlopen (); 18005 ; 18006 return 0; 18007 } 18008 _ACEOF 18009 if ac_fn_c_try_link "$LINENO"; then : 18010 ac_cv_lib_dl_dlopen=yes 18011 else 18012 ac_cv_lib_dl_dlopen=no 18013 fi 18014 rm -f core conftest.err conftest.$ac_objext \ 18015 conftest$ac_exeext conftest.$ac_ext 18016 LIBS=$ac_check_lib_save_LIBS 18017 fi 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18020 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18022 else 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18024 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 18025 if ${ac_cv_lib_svld_dlopen+:} false; then : 18026 $as_echo_n "(cached) " >&6 18027 else 18028 ac_check_lib_save_LIBS=$LIBS 18029 LIBS="-lsvld $LIBS" 18030 cat 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 18037 extern "C" 18038 #endif 18039 char dlopen (); 18040 int 18041 main () 18042 { 18043 return dlopen (); 18044 ; 18045 return 0; 18046 } 18047 _ACEOF 18048 if ac_fn_c_try_link "$LINENO"; then : 18049 ac_cv_lib_svld_dlopen=yes 18050 else 18051 ac_cv_lib_svld_dlopen=no 18052 fi 18053 rm -f core conftest.err conftest.$ac_objext \ 18054 conftest$ac_exeext conftest.$ac_ext 18055 LIBS=$ac_check_lib_save_LIBS 18056 fi 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18058 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18059 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18061 else 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; } 18064 if ${ac_cv_lib_dld_dld_link+:} false; then : 18065 $as_echo_n "(cached) " >&6 18066 else 18067 ac_check_lib_save_LIBS=$LIBS 18068 LIBS="-ldld $LIBS" 18069 cat 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 18076 extern "C" 18077 #endif 18078 char dld_link (); 18079 int 18080 main () 18081 { 18082 return dld_link (); 18083 ; 18084 return 0; 18085 } 18086 _ACEOF 18087 if ac_fn_c_try_link "$LINENO"; then : 18088 ac_cv_lib_dld_dld_link=yes 18089 else 18090 ac_cv_lib_dld_dld_link=no 18091 fi 18092 rm -f core conftest.err conftest.$ac_objext \ 18093 conftest$ac_exeext conftest.$ac_ext 18094 LIBS=$ac_check_lib_save_LIBS 18095 fi 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; } 18098 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 18100 fi 18101 18102 18103 fi 18104 18105 18106 fi 18107 18108 18109 fi 18110 18111 18112 fi 18113 18114 18115 fi 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; } 18139 if ${lt_cv_dlopen_self+:} false; then : 18140 $as_echo_n "(cached) " >&6 18141 else 18142 if test "$cross_compiling" = yes; then : 18143 lt_cv_dlopen_self=cross 18144 else 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)) 18192 int fnord () __attribute__((visibility("default"))); 18193 #endif 18194 18195 int fnord () { return 42; } 18196 int 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 18233 fi 18234 rm -fr conftest* 18235 18236 18237 fi 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; } 18245 if ${lt_cv_dlopen_self_static+:} false; then : 18246 $as_echo_n "(cached) " >&6 18247 else 18248 if test "$cross_compiling" = yes; then : 18249 lt_cv_dlopen_self_static=cross 18250 else 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)) 18298 int fnord () __attribute__((visibility("default"))); 18299 #endif 18300 18301 int fnord () { return 42; } 18302 int 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 18339 fi 18340 rm -fr conftest* 18341 18342 18343 fi 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 18363 fi 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 striplib= 18382 old_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; } 18385 if 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; } 18390 else 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 18409 fi 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 18462 fi 18463 ac_ext=c 18464 ac_cpp='$CPP $CPPFLAGS' 18465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18467 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18468 18469 CC="$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. 18494 if test "${enable_largefile+set}" = set; then : 18495 enableval=$enable_largefile; 18496 fi 18497 18498 if 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; } 18502 if ${ac_cv_sys_largefile_CC+:} false; then : 18503 $as_echo_n "(cached) " >&6 18504 else 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]; 18522 int 18523 main () 18524 { 18525 18526 ; 18527 return 0; 18528 } 18529 _ACEOF 18530 if ac_fn_c_try_compile "$LINENO"; then : 18531 break 18532 fi 18533 rm -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 18537 fi 18538 rm -f core conftest.err conftest.$ac_objext 18539 break 18540 done 18541 CC=$ac_save_CC 18542 rm -f conftest.$ac_ext 18543 fi 18544 fi 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; } 18553 if ${ac_cv_sys_file_offset_bits+:} false; then : 18554 $as_echo_n "(cached) " >&6 18555 else 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]; 18568 int 18569 main () 18570 { 18571 18572 ; 18573 return 0; 18574 } 18575 _ACEOF 18576 if ac_fn_c_try_compile "$LINENO"; then : 18577 ac_cv_sys_file_offset_bits=no; break 18578 fi 18579 rm -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]; 18592 int 18593 main () 18594 { 18595 18596 ; 18597 return 0; 18598 } 18599 _ACEOF 18600 if ac_fn_c_try_compile "$LINENO"; then : 18601 ac_cv_sys_file_offset_bits=64; break 18602 fi 18603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18604 ac_cv_sys_file_offset_bits=unknown 18605 break 18606 done 18607 fi 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; } 18610 case $ac_cv_sys_file_offset_bits in #( 18611 no | unknown) ;; 18612 *) 18613 cat >>confdefs.h <<_ACEOF 18614 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18615 _ACEOF 18616 ;; 18617 esac 18618 rm -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; } 18622 if ${ac_cv_sys_large_files+:} false; then : 18623 $as_echo_n "(cached) " >&6 18624 else 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]; 18637 int 18638 main () 18639 { 18640 18641 ; 18642 return 0; 18643 } 18644 _ACEOF 18645 if ac_fn_c_try_compile "$LINENO"; then : 18646 ac_cv_sys_large_files=no; break 18647 fi 18648 rm -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]; 18661 int 18662 main () 18663 { 18664 18665 ; 18666 return 0; 18667 } 18668 _ACEOF 18669 if ac_fn_c_try_compile "$LINENO"; then : 18670 ac_cv_sys_large_files=1; break 18671 fi 18672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18673 ac_cv_sys_large_files=unknown 18674 break 18675 done 18676 fi 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18678 $as_echo "$ac_cv_sys_large_files" >&6; } 18679 case $ac_cv_sys_large_files in #( 18680 no | unknown) ;; 18681 *) 18682 cat >>confdefs.h <<_ACEOF 18683 #define _LARGE_FILES $ac_cv_sys_large_files 18684 _ACEOF 18685 ;; 18686 esac 18687 rm -rf conftest* 18688 fi 18689 18690 18691 fi 18692 18693 18694 # Check for common libc routines redefined by os.h 18695 for ac_func in strlcpy strlcat strndup 18696 do : 18697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18699 if 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 18704 fi 18705 done 18706 18707 18708 # Platform specific settings 18709 case $host_os in 18710 *linux*) 18711 backlight_helper=yes 18712 ;; 18713 esac 18714 18715 # Check whether --enable-backlight was given. 18716 if test "${enable_backlight+set}" = set; then : 18717 enableval=$enable_backlight; backlight="$enableval" 18718 else 18719 backlight="yes" 18720 fi 18721 18722 if test "x$backlight" = "xyes"; then 18723 18724 $as_echo "#define USE_BACKLIGHT 1" >>confdefs.h 18725 18726 fi 18727 18728 # Check whether --enable-backlight-helper was given. 18729 if test "${enable_backlight_helper+set}" = set; then : 18730 enableval=$enable_backlight_helper; backlight_helper="$enableval" 18731 fi 18732 18733 if test "x$backlight" = "xyes" -a "x$backlight_helper" = "xyes"; then 18734 BUILD_BACKLIGHT_HELPER_TRUE= 18735 BUILD_BACKLIGHT_HELPER_FALSE='#' 18736 else 18737 BUILD_BACKLIGHT_HELPER_TRUE='#' 18738 BUILD_BACKLIGHT_HELPER_FALSE= 18739 fi 18740 18741 if 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 18746 fi 18747 18748 # Are we in a git checkout? 18749 dot_git=no 18750 if test -e .git; then 18751 18752 $as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h 18753 18754 dot_git=yes 18755 fi 18756 if test "x$dot_git" = "xyes"; then 18757 HAVE_DOT_GIT_TRUE= 18758 HAVE_DOT_GIT_FALSE='#' 18759 else 18760 HAVE_DOT_GIT_TRUE='#' 18761 HAVE_DOT_GIT_FALSE= 18762 fi 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. 18772 if test "${with_builderstring+set}" = set; then : 18773 withval=$with_builderstring; BUILDERSTRING="$withval" 18774 else 18775 BUILDERSTRING="x-magic-git-describe" 18776 fi 18777 18778 18779 if 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 18783 else 18784 if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != "xno" -a "x$BUILDERSTRING" != xx-magic-git-describe; then 18785 18786 cat >>confdefs.h <<_ACEOF 18787 #define BUILDER_DESCRIPTION "$BUILDERSTRING" 18788 _ACEOF 18789 18790 fi 18791 fi 18792 18793 # Check whether --enable-gen4asm was given. 18794 if test "${enable_gen4asm+set}" = set; then : 18795 enableval=$enable_gen4asm; ASM="$enableval" 18796 else 18797 ASM="no" 18798 fi 18799 18800 18801 gen4asm=no 18802 if test "x$ASM" != "xno"; then 18803 18804 # Check whether --with-gen4asm was given. 18805 if test "${with_gen4asm+set}" = set; then : 18806 withval=$with_gen4asm; path="$withval" 18807 else 18808 path="" 18809 fi 18810 18811 if test -n "$path" ; then 18812 gen4asm=yes 18813 else 18814 18815 pkg_failed=no 18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5 18817 $as_echo_n "checking for GEN4ASM... " >&6; } 18818 18819 if 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 18830 else 18831 pkg_failed=yes 18832 fi 18833 else 18834 pkg_failed=untried 18835 fi 18836 if 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 18847 else 18848 pkg_failed=yes 18849 fi 18850 else 18851 pkg_failed=untried 18852 fi 18853 18854 18855 18856 if test $pkg_failed = yes; then 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18858 $as_echo "no" >&6; } 18859 18860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18861 _pkg_short_errors_supported=yes 18862 else 18863 _pkg_short_errors_supported=no 18864 fi 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 18874 elif test $pkg_failed = untried; then 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18876 $as_echo "no" >&6; } 18877 gen4asm=no 18878 else 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 18884 fi 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 18904 fi 18905 if test "x$gen4asm" = "xyes"; then 18906 HAVE_GEN4ASM_TRUE= 18907 HAVE_GEN4ASM_FALSE='#' 18908 else 18909 HAVE_GEN4ASM_TRUE='#' 18910 HAVE_GEN4ASM_FALSE= 18911 fi 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; } 18917 if ${intel_cv_atomic_primitives+:} false; then : 18918 $as_echo_n "(cached) " >&6 18919 else 18920 18921 intel_cv_atomic_primitives="none" 18922 18923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18924 /* end confdefs.h. */ 18925 18926 int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); } 18927 int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); } 18928 18929 int 18930 main () 18931 { 18932 18933 ; 18934 return 0; 18935 } 18936 _ACEOF 18937 if ac_fn_c_try_link "$LINENO"; then : 18938 intel_cv_atomic_primitives="Intel" 18939 fi 18940 rm -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" 18945 if test "x$ac_cv_header_atomic_ops_h" = xyes; then : 18946 intel_cv_atomic_primitives="libatomic-ops" 18947 fi 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" 18955 if test "x$ac_cv_func_atomic_cas_uint" = xyes; then : 18956 intel_cv_atomic_primitives="Solaris" 18957 fi 18958 18959 fi 18960 18961 18962 fi 18963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_cv_atomic_primitives" >&5 18964 $as_echo "$intel_cv_atomic_primitives" >&6; } 18965 if test "x$intel_cv_atomic_primitives" = "xIntel"; then 18966 18967 $as_echo "#define HAVE_ATOMIC_PRIMITIVES 1" >>confdefs.h 18968 18969 fi 18970 if test "x$intel_cv_atomic_primitives" = "xlibatomic-ops"; then 18971 18972 $as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h 18973 18974 fi 18975 18976 if 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 18978 fi 18979 18980 # Check whether --enable-udev was given. 18981 if test "${enable_udev+set}" = set; then : 18982 enableval=$enable_udev; UDEV="$enableval" 18983 else 18984 UDEV=auto 18985 fi 18986 18987 18988 if test "x$UDEV" != "xno"; then 18989 18990 pkg_failed=no 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 18992 $as_echo_n "checking for UDEV... " >&6; } 18993 18994 if 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 19005 else 19006 pkg_failed=yes 19007 fi 19008 else 19009 pkg_failed=untried 19010 fi 19011 if 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 19022 else 19023 pkg_failed=yes 19024 fi 19025 else 19026 pkg_failed=untried 19027 fi 19028 19029 19030 19031 if test $pkg_failed = yes; then 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19033 $as_echo "no" >&6; } 19034 19035 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19036 _pkg_short_errors_supported=yes 19037 else 19038 _pkg_short_errors_supported=no 19039 fi 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" 19049 elif test $pkg_failed = untried; then 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19051 $as_echo "no" >&6; } 19052 udev="no" 19053 else 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" 19059 fi 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 19068 fi 19069 19070 19071 pkg_failed=no 19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 19073 $as_echo_n "checking for X11... " >&6; } 19074 19075 if 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 19086 else 19087 pkg_failed=yes 19088 fi 19089 else 19090 pkg_failed=untried 19091 fi 19092 if 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 19103 else 19104 pkg_failed=yes 19105 fi 19106 else 19107 pkg_failed=untried 19108 fi 19109 19110 19111 19112 if test $pkg_failed = yes; then 19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19114 $as_echo "no" >&6; } 19115 19116 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19117 _pkg_short_errors_supported=yes 19118 else 19119 _pkg_short_errors_supported=no 19120 fi 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" 19130 elif test $pkg_failed = untried; then 19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19132 $as_echo "no" >&6; } 19133 x11="no" 19134 else 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" 19140 fi 19141 if test "x$x11" = "xyes"; then 19142 HAVE_X11_TRUE= 19143 HAVE_X11_FALSE='#' 19144 else 19145 HAVE_X11_TRUE='#' 19146 HAVE_X11_FALSE= 19147 fi 19148 19149 19150 cpuid="yes" 19151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19152 /* end confdefs.h. */ 19153 19154 #include <cpuid.h> 19155 #include <stddef.h> 19156 19157 int 19158 main () 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 19170 if ac_fn_c_try_link "$LINENO"; then : 19171 cpuid="yes" 19172 else 19173 cpuid="no" 19174 19175 fi 19176 rm -f core conftest.err conftest.$ac_objext \ 19177 conftest$ac_exeext conftest.$ac_ext 19178 if test "x$cpuid" = "xyes"; then 19179 19180 $as_echo "#define HAVE_CPUID_H 1" >>confdefs.h 19181 19182 fi 19183 19184 shm=yes 19185 for ac_header in sys/ipc.h sys/ipc.h 19186 do : 19187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19188 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19189 if 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 19194 else 19195 shm="no" 19196 fi 19197 19198 done 19199 19200 for ac_header in X11/extensions/XShm.h 19201 do : 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 " 19207 if 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 19212 else 19213 shm="no" 19214 fi 19215 19216 done 19217 19218 for ac_header in X11/extensions/shmproto.h X11/extensions/shmstr.h 19219 do : 19220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19221 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 19222 #include <X11/Xlibint.h> 19223 #include <X11/Xproto.h> 19224 19225 " 19226 if 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 19231 fi 19232 19233 done 19234 19235 if test "x$ac_cv_header_X11_extensions_shmproto_h" != "xyes" -a "x$ac_cv_header_X11_extensions_shmstr_h" != "xyes"; then 19236 shm="no" 19237 fi 19238 19239 if 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; } 19245 else 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 19269 if 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; } 19275 else 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19277 $as_echo "no" >&6; } 19278 fi 19279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19280 conftest.$ac_objext conftest.beam conftest.$ac_ext 19281 fi 19282 19283 19284 $as_echo "#define HAVE_MIT_SHM 1" >>confdefs.h 19285 19286 fi 19287 19288 19289 pkg_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 19293 if 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 19304 else 19305 pkg_failed=yes 19306 fi 19307 else 19308 pkg_failed=untried 19309 fi 19310 if 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 19321 else 19322 pkg_failed=yes 19323 fi 19324 else 19325 pkg_failed=untried 19326 fi 19327 19328 19329 19330 if test $pkg_failed = yes; then 19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19332 $as_echo "no" >&6; } 19333 19334 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19335 _pkg_short_errors_supported=yes 19336 else 19337 _pkg_short_errors_supported=no 19338 fi 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" 19348 elif 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" 19352 else 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" 19358 fi 19359 if test "x$x11_dri3" = "xyes" -a "x$shm" = "xyes"; then 19360 X11_DRI3_TRUE= 19361 X11_DRI3_FALSE='#' 19362 else 19363 X11_DRI3_TRUE='#' 19364 X11_DRI3_FALSE= 19365 fi 19366 19367 if test "x$shm" = "xyes"; then 19368 X11_SHM_TRUE= 19369 X11_SHM_FALSE='#' 19370 else 19371 X11_SHM_TRUE='#' 19372 X11_SHM_FALSE= 19373 fi 19374 19375 19376 # Check whether --enable-tools was given. 19377 if test "${enable_tools+set}" = set; then : 19378 enableval=$enable_tools; tools="$enableval" 19379 else 19380 tools="auto" 19381 fi 19382 19383 if 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" 19388 fi 19389 if 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 19395 pkg_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 19399 if 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 19410 else 19411 pkg_failed=yes 19412 fi 19413 else 19414 pkg_failed=untried 19415 fi 19416 if 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 19427 else 19428 pkg_failed=yes 19429 fi 19430 else 19431 pkg_failed=untried 19432 fi 19433 19434 19435 19436 if test $pkg_failed = yes; then 19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19438 $as_echo "no" >&6; } 19439 19440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19441 _pkg_short_errors_supported=yes 19442 else 19443 _pkg_short_errors_supported=no 19444 fi 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="" 19454 elif test $pkg_failed = untried; then 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19456 $as_echo "no" >&6; } 19457 ignore="" 19458 else 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 19464 do : 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 " 19469 if 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" 19474 fi 19475 19476 done 19477 19478 fi 19479 19480 ignore="xcb-dri3 xcb-sync x11-xcb xshmfence x11" 19481 19482 pkg_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 19486 if 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 19497 else 19498 pkg_failed=yes 19499 fi 19500 else 19501 pkg_failed=untried 19502 fi 19503 if 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 19514 else 19515 pkg_failed=yes 19516 fi 19517 else 19518 pkg_failed=untried 19519 fi 19520 19521 19522 19523 if test $pkg_failed = yes; then 19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19525 $as_echo "no" >&6; } 19526 19527 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19528 _pkg_short_errors_supported=yes 19529 else 19530 _pkg_short_errors_supported=no 19531 fi 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="" 19541 elif test $pkg_failed = untried; then 19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19543 $as_echo "no" >&6; } 19544 ignore="" 19545 else 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" 19551 fi 19552 19553 19554 pkg_failed=no 19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IVO" >&5 19556 $as_echo_n "checking for IVO... " >&6; } 19557 19558 if 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 19569 else 19570 pkg_failed=yes 19571 fi 19572 else 19573 pkg_failed=untried 19574 fi 19575 if 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 19586 else 19587 pkg_failed=yes 19588 fi 19589 else 19590 pkg_failed=untried 19591 fi 19592 19593 19594 19595 if test $pkg_failed = yes; then 19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19597 $as_echo "no" >&6; } 19598 19599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19600 _pkg_short_errors_supported=yes 19601 else 19602 _pkg_short_errors_supported=no 19603 fi 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" 19613 elif test $pkg_failed = untried; then 19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19615 $as_echo "no" >&6; } 19616 ivo="no" 19617 else 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" 19623 fi 19624 ac_fn_c_check_header_mongrel "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" 19625 if test "x$ac_cv_header_sys_timerfd_h" = xyes; then : 19626 19627 else 19628 ivo="no" 19629 fi 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" 19640 fi 19641 if test "x$tools" != "xno"; then 19642 tools_msg="$tools_msg intel-virtual-output" 19643 fi 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='#' 19651 else 19652 BUILD_TOOLS_TRUE='#' 19653 BUILD_TOOLS_FALSE= 19654 fi 19655 19656 19657 # Define a configure option for an alternate module directory 19658 19659 # Check whether --with-xorg-module-dir was given. 19660 if test "${with_xorg_module_dir+set}" = set; then : 19661 withval=$with_xorg_module_dir; moduledir="$withval" 19662 else 19663 moduledir="$libdir/xorg/modules" 19664 fi 19665 19666 19667 # Check whether --enable-dri was given. 19668 if test "${enable_dri+set}" = set; then : 19669 enableval=$enable_dri; DRI=$enableval 19670 else 19671 DRI=auto 19672 fi 19673 19674 # Check whether --enable-dri1 was given. 19675 if test "${enable_dri1+set}" = set; then : 19676 enableval=$enable_dri1; DRI1=$enableval 19677 else 19678 DRI1=yes 19679 fi 19680 19681 # Check whether --enable-dri2 was given. 19682 if test "${enable_dri2+set}" = set; then : 19683 enableval=$enable_dri2; DRI2=$enableval 19684 else 19685 DRI2=yes 19686 fi 19687 19688 # Check whether --enable-dri3 was given. 19689 if test "${enable_dri3+set}" = set; then : 19690 enableval=$enable_dri3; DRI3=$enableval 19691 else 19692 DRI3=no 19693 fi 19694 19695 19696 # Check whether --enable-xvmc was given. 19697 if test "${enable_xvmc+set}" = set; then : 19698 enableval=$enable_xvmc; XVMC="$enableval" 19699 else 19700 XVMC="yes" 19701 fi 19702 19703 19704 # Check whether --enable-kms was given. 19705 if test "${enable_kms+set}" = set; then : 19706 enableval=$enable_kms; KMS="$enableval" 19707 else 19708 KMS="yes" 19709 fi 19710 19711 # Check whether --enable-ums was given. 19712 if test "${enable_ums+set}" = set; then : 19713 enableval=$enable_ums; UMS="$enableval" 19714 else 19715 UMS="auto" 19716 fi 19717 19718 19719 # Check whether --enable-kms-only was given. 19720 if test "${enable_kms_only+set}" = set; then : 19721 enableval=$enable_kms_only; ONLY_KMS="$enableval" 19722 else 19723 ONLY_KMS="no" 19724 fi 19725 19726 19727 # Check whether --enable-ums-only was given. 19728 if test "${enable_ums_only+set}" = set; then : 19729 enableval=$enable_ums_only; ONLY_UMS="$enableval" 19730 else 19731 ONLY_UMS="no" 19732 fi 19733 19734 19735 required_xorg_server_version=1.6 19736 required_pixman_version=0.16 19737 19738 if pkg-config --exists 'pixman-1 >= 0.27.1'; then 19739 19740 $as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h 19741 19742 fi 19743 19744 if pkg-config --exists 'pixman-1 >= 0.24.0'; then 19745 19746 $as_echo "#define HAS_PIXMAN_TRIANGLES 1" >>confdefs.h 19747 19748 fi 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 19763 int 19764 main () 19765 { 19766 19767 ; 19768 return 0; 19769 } 19770 _ACEOF 19771 if ac_fn_c_try_compile "$LINENO"; then : 19772 _EXT_CHECK=yes 19773 else 19774 _EXT_CHECK=no 19775 fi 19776 rm -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 19798 int 19799 main () 19800 { 19801 19802 ; 19803 return 0; 19804 } 19805 _ACEOF 19806 if ac_fn_c_try_compile "$LINENO"; then : 19807 _EXT_CHECK=yes 19808 else 19809 _EXT_CHECK=no 19810 fi 19811 rm -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 19833 int 19834 main () 19835 { 19836 19837 ; 19838 return 0; 19839 } 19840 _ACEOF 19841 if ac_fn_c_try_compile "$LINENO"; then : 19842 _EXT_CHECK=yes 19843 else 19844 _EXT_CHECK=no 19845 fi 19846 rm -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 19859 pkg_failed=no 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 19861 $as_echo_n "checking for DRM... " >&6; } 19862 19863 if 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 19874 else 19875 pkg_failed=yes 19876 fi 19877 else 19878 pkg_failed=untried 19879 fi 19880 if 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 19891 else 19892 pkg_failed=yes 19893 fi 19894 else 19895 pkg_failed=untried 19896 fi 19897 19898 19899 19900 if test $pkg_failed = yes; then 19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19902 $as_echo "no" >&6; } 19903 19904 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19905 _pkg_short_errors_supported=yes 19906 else 19907 _pkg_short_errors_supported=no 19908 fi 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 19921 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19922 installed software in a non-standard prefix. 19923 19924 Alternatively, you may set the environment variables DRM_CFLAGS 19925 and DRM_LIBS to avoid the need to call pkg-config. 19926 See the pkg-config man page for more details." "$LINENO" 5 19927 elif 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;} 19932 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19933 is in your PATH or set the PKG_CONFIG environment variable to the full 19934 path to pkg-config. 19935 19936 Alternatively, you may set the environment variables DRM_CFLAGS 19937 and DRM_LIBS to avoid the need to call pkg-config. 19938 See the pkg-config man page for more details. 19939 19940 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19941 See \`config.log' for more details" "$LINENO" 5; } 19942 else 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 19948 fi # libdrm_intel is checked separately 19949 19950 pkg_failed=no 19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19952 $as_echo_n "checking for PCIACCESS... " >&6; } 19953 19954 if 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 19965 else 19966 pkg_failed=yes 19967 fi 19968 else 19969 pkg_failed=untried 19970 fi 19971 if 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 19982 else 19983 pkg_failed=yes 19984 fi 19985 else 19986 pkg_failed=untried 19987 fi 19988 19989 19990 19991 if test $pkg_failed = yes; then 19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19993 $as_echo "no" >&6; } 19994 19995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19996 _pkg_short_errors_supported=yes 19997 else 19998 _pkg_short_errors_supported=no 19999 fi 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 20012 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20013 installed software in a non-standard prefix. 20014 20015 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20016 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20017 See the pkg-config man page for more details." "$LINENO" 5 20018 elif 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;} 20023 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20024 is in your PATH or set the PKG_CONFIG environment variable to the full 20025 path to pkg-config. 20026 20027 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20028 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20029 See the pkg-config man page for more details. 20030 20031 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20032 See \`config.log' for more details" "$LINENO" 5; } 20033 else 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 20039 fi 20040 20041 # Check whether --enable-sna was given. 20042 if test "${enable_sna+set}" = set; then : 20043 enableval=$enable_sna; SNA="$enableval" 20044 else 20045 SNA=auto 20046 fi 20047 20048 20049 if test "x$SNA" != "xno"; then 20050 20051 $as_echo "#define USE_SNA 1" >>confdefs.h 20052 20053 for ac_header in sys/sysinfo.h 20054 do : 20055 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" 20056 if 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. 20065 ac_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; } 20070 if eval \${$4+:} false; then : 20071 $as_echo_n "(cached) " >&6 20072 else 20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20074 /* end confdefs.h. */ 20075 $5 20076 int 20077 main () 20078 { 20079 static $2 ac_aggr; 20080 if (ac_aggr.$3) 20081 return 0; 20082 ; 20083 return 0; 20084 } 20085 _ACEOF 20086 if ac_fn_c_try_compile "$LINENO"; then : 20087 eval "$4=yes" 20088 else 20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20090 /* end confdefs.h. */ 20091 $5 20092 int 20093 main () 20094 { 20095 static $2 ac_aggr; 20096 if (sizeof ac_aggr.$3) 20097 return 0; 20098 ; 20099 return 0; 20100 } 20101 _ACEOF 20102 if ac_fn_c_try_compile "$LINENO"; then : 20103 eval "$4=yes" 20104 else 20105 eval "$4=no" 20106 fi 20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20108 fi 20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20110 fi 20111 eval 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 20117 ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h> 20118 " 20119 if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then : 20120 20121 cat >>confdefs.h <<_ACEOF 20122 #define HAVE_STRUCT_SYSINFO_TOTALRAM 1 20123 _ACEOF 20124 20125 20126 fi 20127 20128 fi 20129 20130 done 20131 20132 fi 20133 20134 uxa_requires_libdrm=2.4.52 20135 # Check whether --enable-uxa was given. 20136 if test "${enable_uxa+set}" = set; then : 20137 enableval=$enable_uxa; UXA="$enableval" 20138 else 20139 UXA=auto 20140 fi 20141 20142 if 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 20149 fi 20150 if test "x$UXA" != "xno"; then 20151 20152 $as_echo "#define USE_UXA 1" >>confdefs.h 20153 20154 20155 pkg_failed=no 20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5 20157 $as_echo_n "checking for DRMINTEL... " >&6; } 20158 20159 if 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 20170 else 20171 pkg_failed=yes 20172 fi 20173 else 20174 pkg_failed=untried 20175 fi 20176 if 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 20187 else 20188 pkg_failed=yes 20189 fi 20190 else 20191 pkg_failed=untried 20192 fi 20193 20194 20195 20196 if test $pkg_failed = yes; then 20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20198 $as_echo "no" >&6; } 20199 20200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20201 _pkg_short_errors_supported=yes 20202 else 20203 _pkg_short_errors_supported=no 20204 fi 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 20217 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20218 installed software in a non-standard prefix. 20219 20220 Alternatively, you may set the environment variables DRMINTEL_CFLAGS 20221 and DRMINTEL_LIBS to avoid the need to call pkg-config. 20222 See the pkg-config man page for more details." "$LINENO" 5 20223 elif 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;} 20228 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20229 is in your PATH or set the PKG_CONFIG environment variable to the full 20230 path to pkg-config. 20231 20232 Alternatively, you may set the environment variables DRMINTEL_CFLAGS 20233 and DRMINTEL_LIBS to avoid the need to call pkg-config. 20234 See the pkg-config man page for more details. 20235 20236 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20237 See \`config.log' for more details" "$LINENO" 5; } 20238 else 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 20244 fi 20245 required_pixman_version=0.24 20246 UXA=yes 20247 fi 20248 20249 20250 pkg_failed=no 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 20252 $as_echo_n "checking for XORG... " >&6; } 20253 20254 if 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 20265 else 20266 pkg_failed=yes 20267 fi 20268 else 20269 pkg_failed=untried 20270 fi 20271 if 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 20282 else 20283 pkg_failed=yes 20284 fi 20285 else 20286 pkg_failed=untried 20287 fi 20288 20289 20290 20291 if test $pkg_failed = yes; then 20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20293 $as_echo "no" >&6; } 20294 20295 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20296 _pkg_short_errors_supported=yes 20297 else 20298 _pkg_short_errors_supported=no 20299 fi 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 20312 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20313 installed software in a non-standard prefix. 20314 20315 Alternatively, you may set the environment variables XORG_CFLAGS 20316 and XORG_LIBS to avoid the need to call pkg-config. 20317 See the pkg-config man page for more details." "$LINENO" 5 20318 elif 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;} 20323 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20324 is in your PATH or set the PKG_CONFIG environment variable to the full 20325 path to pkg-config. 20326 20327 Alternatively, you may set the environment variables XORG_CFLAGS 20328 and XORG_LIBS to avoid the need to call pkg-config. 20329 See the pkg-config man page for more details. 20330 20331 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20332 See \`config.log' for more details" "$LINENO" 5; } 20333 else 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 20339 fi 20340 ABI_VERSION=`$PKG_CONFIG --variable=abi_videodrv xorg-server` 20341 20342 if test "x$ONLY_UMS" = "xyes"; then 20343 UMS="yes" 20344 KMS="no" 20345 fi 20346 20347 if test "x$ONLY_KMS" = "xyes"; then 20348 UMS="no" 20349 KMS="yes" 20350 fi 20351 20352 save_CPPFLAGS=$CPPFLAGS 20353 CPPFLAGS=$XORG_CFLAGS 20354 for ac_header in vgaHW.h 20355 do : 20356 ac_fn_c_check_header_mongrel "$LINENO" "vgaHW.h" "ac_cv_header_vgaHW_h" "$ac_includes_default" 20357 if 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" 20362 else 20363 legacy="no" 20364 fi 20365 20366 done 20367 20368 CPPFLAGS=$save_CPPFLAGS 20369 if test "x$UMS" = "xauto"; then 20370 UMS="$legacy" 20371 fi 20372 if test "x$UMS" = "xyes" -a "x$legacy" = "xno"; then 20373 as_fn_error $? "vgaHW support required for UMS (i810) driver" "$LINENO" 5 20374 fi 20375 20376 if test "x$UMS" = "xyes"; then 20377 # Check whether --enable-xaa was given. 20378 if test "${enable_xaa+set}" = set; then : 20379 enableval=$enable_xaa; XAA="$enableval" 20380 else 20381 XAA="auto" 20382 fi 20383 20384 if test "x$XAA" != "xno"; then 20385 save_CPPFLAGS=$CPPFLAGS 20386 CPPFLAGS=$XORG_CFLAGS 20387 for ac_header in xaa.h 20388 do : 20389 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 20390 if 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" 20395 else 20396 XAA="no" 20397 fi 20398 20399 done 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. 20409 if test "${enable_dga+set}" = set; then : 20410 enableval=$enable_dga; DGA="$enableval" 20411 else 20412 DGA="auto" 20413 fi 20414 20415 if test "x$DGA" != "xno"; then 20416 save_CFLAGS=$CFLAGS 20417 CFLAGS=$XORG_CFLAGS 20418 for ac_header in dgaproc.h 20419 do : 20420 ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h> 20421 " 20422 if 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" 20427 else 20428 DGA="no" 20429 fi 20430 20431 done 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; } 20439 fi 20440 if test "x$DGA" = "xyes"; then 20441 DGA_TRUE= 20442 DGA_FALSE='#' 20443 else 20444 DGA_TRUE='#' 20445 DGA_FALSE= 20446 fi 20447 20448 if test "x$XAA" = "xyes"; then 20449 XAA_TRUE= 20450 XAA_FALSE='#' 20451 else 20452 XAA_TRUE='#' 20453 XAA_FALSE= 20454 fi 20455 20456 20457 if test "x$KMS" = "xyes"; then 20458 KMS_TRUE= 20459 KMS_FALSE='#' 20460 else 20461 KMS_TRUE='#' 20462 KMS_FALSE= 20463 fi 20464 20465 if test "x$KMS" = "xyes"; then 20466 20467 $as_echo "#define KMS 1" >>confdefs.h 20468 20469 fi 20470 if test "x$UMS" = "xyes"; then 20471 UMS_TRUE= 20472 UMS_FALSE='#' 20473 else 20474 UMS_TRUE='#' 20475 UMS_FALSE= 20476 fi 20477 20478 if test "x$UMS" = "xyes"; then 20479 20480 $as_echo "#define UMS 1" >>confdefs.h 20481 20482 fi 20483 20484 have_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 20497 int 20498 main () 20499 { 20500 20501 ; 20502 return 0; 20503 } 20504 _ACEOF 20505 if ac_fn_c_try_compile "$LINENO"; then : 20506 _EXT_CHECK=yes 20507 else 20508 _EXT_CHECK=no 20509 fi 20510 rm -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 20520 if test "x$_EXT_CHECK" != "xno" -a "x$DRI" != "xno" -a "x$DRI1" != "xno" -a "x$UMS" = "xyes"; then 20521 20522 pkg_failed=no 20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI1" >&5 20524 $as_echo_n "checking for DRI1... " >&6; } 20525 20526 if 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 20537 else 20538 pkg_failed=yes 20539 fi 20540 else 20541 pkg_failed=untried 20542 fi 20543 if 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 20554 else 20555 pkg_failed=yes 20556 fi 20557 else 20558 pkg_failed=untried 20559 fi 20560 20561 20562 20563 if test $pkg_failed = yes; then 20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20565 $as_echo "no" >&6; } 20566 20567 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20568 _pkg_short_errors_supported=yes 20569 else 20570 _pkg_short_errors_supported=no 20571 fi 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 20581 elif 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 20585 else 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 20591 fi 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 20597 do : 20598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20599 ac_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 " 20611 if 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 20616 else 20617 have_dri1=no 20618 fi 20619 20620 done 20621 20622 CFLAGS="$save_CFLAGS" 20623 CPPFLAGS="$save_CPPFLAGS" 20624 fi 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='#' 20634 else 20635 DRI1_TRUE='#' 20636 DRI1_FALSE= 20637 fi 20638 20639 if test "x$have_dri1" != "xno"; then 20640 20641 $as_echo "#define HAVE_DRI1 1" >>confdefs.h 20642 20643 dri_msg="$dri_msg DRI1" 20644 else 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 20651 fi 20652 20653 have_dri2=no 20654 have_dri3=no 20655 if test "x$DRI" != "xno"; then 20656 if test "x$DRI2" != "xno"; then 20657 20658 pkg_failed=no 20659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5 20660 $as_echo_n "checking for DRI2... " >&6; } 20661 20662 if 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 20673 else 20674 pkg_failed=yes 20675 fi 20676 else 20677 pkg_failed=untried 20678 fi 20679 if 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 20690 else 20691 pkg_failed=yes 20692 fi 20693 else 20694 pkg_failed=untried 20695 fi 20696 20697 20698 20699 if test $pkg_failed = yes; then 20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20701 $as_echo "no" >&6; } 20702 20703 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20704 _pkg_short_errors_supported=yes 20705 else 20706 _pkg_short_errors_supported=no 20707 fi 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 20717 elif 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 20721 else 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 20727 fi 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 20733 do : 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 " 20739 if test "x$ac_cv_header_dri2_h" = xyes; then : 20740 cat >>confdefs.h <<_ACEOF 20741 #define HAVE_DRI2_H 1 20742 _ACEOF 20743 20744 else 20745 have_dri2=no 20746 fi 20747 20748 done 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 20767 cat >>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 20789 int 20790 main () 20791 { 20792 20793 ; 20794 return 0; 20795 } 20796 _ACEOF 20797 if ac_fn_c_try_compile "$LINENO"; then : 20798 _EXT_CHECK=yes 20799 else 20800 _EXT_CHECK=no 20801 fi 20802 rm -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 20814 pkg_failed=no 20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3" >&5 20816 $as_echo_n "checking for DRI3... " >&6; } 20817 20818 if 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 20829 else 20830 pkg_failed=yes 20831 fi 20832 else 20833 pkg_failed=untried 20834 fi 20835 if 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 20846 else 20847 pkg_failed=yes 20848 fi 20849 else 20850 pkg_failed=untried 20851 fi 20852 20853 20854 20855 if test $pkg_failed = yes; then 20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20857 $as_echo "no" >&6; } 20858 20859 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20860 _pkg_short_errors_supported=yes 20861 else 20862 _pkg_short_errors_supported=no 20863 fi 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 20876 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20877 installed software in a non-standard prefix. 20878 20879 Alternatively, you may set the environment variables DRI3_CFLAGS 20880 and DRI3_LIBS to avoid the need to call pkg-config. 20881 See the pkg-config man page for more details." "$LINENO" 5 20882 elif 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;} 20887 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20888 is in your PATH or set the PKG_CONFIG environment variable to the full 20889 path to pkg-config. 20890 20891 Alternatively, you may set the environment variables DRI3_CFLAGS 20892 and DRI3_LIBS to avoid the need to call pkg-config. 20893 See the pkg-config man page for more details. 20894 20895 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20896 See \`config.log' for more details" "$LINENO" 5; } 20897 else 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 20903 fi 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 " 20911 if test "x$ac_cv_have_decl_DRI3" = xyes; then : 20912 20913 else 20914 have_dri3=no 20915 fi 20916 20917 for ac_header in misyncstr.h misyncshm.h 20918 do : 20919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20920 ac_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 " 20926 if 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 20931 else 20932 have_dri3=no 20933 fi 20934 20935 done 20936 20937 CFLAGS=$save_CFLAGS 20938 fi 20939 fi 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='#' 20946 else 20947 DRI2_TRUE='#' 20948 DRI2_FALSE= 20949 fi 20950 20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri2" >&5 20952 $as_echo "$have_dri2" >&6; } 20953 if test "x$have_dri2" != "xno"; then 20954 20955 $as_echo "#define HAVE_DRI2 1" >>confdefs.h 20956 20957 dri_msg="$dri_msg DRI2" 20958 else 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 20965 fi 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='#' 20972 else 20973 DRI3_TRUE='#' 20974 DRI3_FALSE= 20975 fi 20976 20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dri3" >&5 20978 $as_echo "$have_dri3" >&6; } 20979 if test "x$have_dri3" != "xno"; then 20980 20981 $as_echo "#define HAVE_DRI3 1" >>confdefs.h 20982 20983 dri_msg="$dri_msg DRI3" 20984 else 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 20988 fi 20989 20990 for ac_header in X11/extensions/dpmsconst.h 20991 do : 20992 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/dpmsconst.h" "ac_cv_header_X11_extensions_dpmsconst_h" "$ac_includes_default" 20993 if 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 20998 fi 20999 21000 done 21001 21002 21003 PRESENT="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 21016 int 21017 main () 21018 { 21019 21020 ; 21021 return 0; 21022 } 21023 _ACEOF 21024 if ac_fn_c_try_compile "$LINENO"; then : 21025 _EXT_CHECK=yes 21026 else 21027 _EXT_CHECK=no 21028 fi 21029 rm -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 21039 if test "x$_EXT_CHECK" != "xno"; then 21040 21041 pkg_failed=no 21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5 21043 $as_echo_n "checking for PRESENT... " >&6; } 21044 21045 if 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 21056 else 21057 pkg_failed=yes 21058 fi 21059 else 21060 pkg_failed=untried 21061 fi 21062 if 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 21073 else 21074 pkg_failed=yes 21075 fi 21076 else 21077 pkg_failed=untried 21078 fi 21079 21080 21081 21082 if test $pkg_failed = yes; then 21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21084 $as_echo "no" >&6; } 21085 21086 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21087 _pkg_short_errors_supported=yes 21088 else 21089 _pkg_short_errors_supported=no 21090 fi 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 21103 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21104 installed software in a non-standard prefix. 21105 21106 Alternatively, you may set the environment variables PRESENT_CFLAGS 21107 and PRESENT_LIBS to avoid the need to call pkg-config. 21108 See the pkg-config man page for more details." "$LINENO" 5 21109 elif 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;} 21114 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21115 is in your PATH or set the PKG_CONFIG environment variable to the full 21116 path to pkg-config. 21117 21118 Alternatively, you may set the environment variables PRESENT_CFLAGS 21119 and PRESENT_LIBS to avoid the need to call pkg-config. 21120 See the pkg-config man page for more details. 21121 21122 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21123 See \`config.log' for more details" "$LINENO" 5; } 21124 else 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" 21130 fi 21131 fi 21132 if test "x$PRESENT" != "xno"; then 21133 save_CFLAGS=$CFLAGS 21134 CFLAGS="$XORG_CFLAGS $PRESENT_CFLAGS" 21135 for ac_header in present.h 21136 do : 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 " 21142 if test "x$ac_cv_header_present_h" = xyes; then : 21143 cat >>confdefs.h <<_ACEOF 21144 #define HAVE_PRESENT_H 1 21145 _ACEOF 21146 21147 else 21148 PRESENT="no" 21149 fi 21150 21151 done 21152 21153 CFLAGS=$save_CFLAGS 21154 fi 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='#' 21160 else 21161 PRESENT_TRUE='#' 21162 PRESENT_FALSE= 21163 fi 21164 21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRESENT" >&5 21166 $as_echo "$PRESENT" >&6; } 21167 if test "x$PRESENT" != "xno"; then 21168 21169 $as_echo "#define HAVE_PRESENT 1" >>confdefs.h 21170 21171 dri_msg="$dri_msg Present" 21172 fi 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='#' 21181 else 21182 UXA_TRUE='#' 21183 UXA_FALSE= 21184 fi 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='#' 21192 else 21193 SNA_TRUE='#' 21194 SNA_FALSE= 21195 fi 21196 21197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5 21198 $as_echo "$SNA" >&6; } 21199 21200 if test "$XVMC" = "yes"; then 21201 21202 pkg_failed=no 21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5 21204 $as_echo_n "checking for XVMCLIB... " >&6; } 21205 21206 if 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 21217 else 21218 pkg_failed=yes 21219 fi 21220 else 21221 pkg_failed=untried 21222 fi 21223 if 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 21234 else 21235 pkg_failed=yes 21236 fi 21237 else 21238 pkg_failed=untried 21239 fi 21240 21241 21242 21243 if test $pkg_failed = yes; then 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21245 $as_echo "no" >&6; } 21246 21247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21248 _pkg_short_errors_supported=yes 21249 else 21250 _pkg_short_errors_supported=no 21251 fi 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" 21261 elif test $pkg_failed = untried; then 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21263 $as_echo "no" >&6; } 21264 XVMC="no" 21265 else 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 21271 fi 21272 fi 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='#' 21280 else 21281 XVMC_TRUE='#' 21282 XVMC_FALSE= 21283 fi 21284 21285 if test "x$XVMC" = "xyes"; then 21286 21287 $as_echo "#define ENABLE_XVMC 1" >>confdefs.h 21288 21289 xvmc_msg=" yes" 21290 else 21291 xvmc_msg=" no" 21292 fi 21293 21294 21295 21296 # Check whether --with-default-accel was given. 21297 if test "${with_default_accel+set}" = set; then : 21298 withval=$with_default_accel; accel="$withval" 21299 else 21300 accel="auto" 21301 fi 21302 21303 if 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" 21307 fi 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; } 21311 if 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 21322 fi 21323 21324 have_accel="none" 21325 if 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 21334 fi 21335 21336 if 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 21345 fi 21346 21347 if 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" 21358 fi 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5 21360 $as_echo "$accel" >&6; } 21361 21362 xp_msg="" 21363 21364 # Check whether --enable-tear-free was given. 21365 if test "${enable_tear_free+set}" = set; then : 21366 enableval=$enable_tear_free; TEARFREE="$enableval" 21367 else 21368 TEARFREE="no" 21369 fi 21370 21371 if test "x$TEARFREE" = "xyes"; then 21372 21373 $as_echo "#define TEARFREE 1" >>confdefs.h 21374 21375 xp_msg="$xp_msg TearFree" 21376 fi 21377 21378 # Check whether --enable-rendernode was given. 21379 if test "${enable_rendernode+set}" = set; then : 21380 enableval=$enable_rendernode; RENDERNODE="$enableval" 21381 else 21382 RENDERNODE="no" 21383 fi 21384 21385 if test "x$RENDERNODE" = "xyes"; then 21386 USE_RENDERNODE_TRUE= 21387 USE_RENDERNODE_FALSE='#' 21388 else 21389 USE_RENDERNODE_TRUE='#' 21390 USE_RENDERNODE_FALSE= 21391 fi 21392 21393 if test "x$RENDERNODE" = "xyes"; then 21394 21395 $as_echo "#define USE_RENDERNODE 1" >>confdefs.h 21396 21397 xp_msg="$xp_msg rendernode" 21398 fi 21399 21400 # Check whether --enable-wc-mmap was given. 21401 if test "${enable_wc_mmap+set}" = set; then : 21402 enableval=$enable_wc_mmap; WC_MMAP="$enableval" 21403 else 21404 WC_MMAP="no" 21405 fi 21406 21407 if 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)" 21412 fi 21413 21414 # Check whether --enable-create2 was given. 21415 if test "${enable_create2+set}" = set; then : 21416 enableval=$enable_create2; CREATE2="$enableval" 21417 else 21418 CREATE2="no" 21419 fi 21420 21421 if test "x$CREATE2" = "xyes"; then 21422 USE_CREATE2_TRUE= 21423 USE_CREATE2_FALSE='#' 21424 else 21425 USE_CREATE2_TRUE='#' 21426 USE_CREATE2_FALSE= 21427 fi 21428 21429 if test "x$CREATE2" = "xyes"; then 21430 21431 $as_echo "#define USE_CREATE2 1" >>confdefs.h 21432 21433 xp_msg="$xp_msg create2" 21434 fi 21435 21436 # Check whether --enable-async-swap was given. 21437 if test "${enable_async_swap+set}" = set; then : 21438 enableval=$enable_async_swap; ASYNC_SWAP="$enableval" 21439 else 21440 ASYNC_SWAP="no" 21441 fi 21442 21443 if test "x$ASYNC_SWAP" = "xyes"; then 21444 USE_ASYNC_SWAP_TRUE= 21445 USE_ASYNC_SWAP_FALSE='#' 21446 else 21447 USE_ASYNC_SWAP_TRUE='#' 21448 USE_ASYNC_SWAP_FALSE= 21449 fi 21450 21451 if 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" 21456 fi 21457 21458 # Check whether --enable-debug was given. 21459 if test "${enable_debug+set}" = set; then : 21460 enableval=$enable_debug; DEBUG="$enableval" 21461 else 21462 DEBUG="no" 21463 fi 21464 21465 # Check whether --enable-valgrind was given. 21466 if test "${enable_valgrind+set}" = set; then : 21467 enableval=$enable_valgrind; VG="$enableval" 21468 else 21469 VG="no" 21470 fi 21471 21472 21473 LIBS="" 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; } 21476 if ${ac_cv_search_clock_gettime+:} false; then : 21477 $as_echo_n "(cached) " >&6 21478 else 21479 ac_func_search_save_LIBS=$LIBS 21480 cat 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 21487 extern "C" 21488 #endif 21489 char clock_gettime (); 21490 int 21491 main () 21492 { 21493 return clock_gettime (); 21494 ; 21495 return 0; 21496 } 21497 _ACEOF 21498 for 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 21507 fi 21508 rm -f core conftest.err conftest.$ac_objext \ 21509 conftest$ac_exeext 21510 if ${ac_cv_search_clock_gettime+:} false; then : 21511 break 21512 fi 21513 done 21514 if ${ac_cv_search_clock_gettime+:} false; then : 21515 21516 else 21517 ac_cv_search_clock_gettime=no 21518 fi 21519 rm conftest.$ac_ext 21520 LIBS=$ac_func_search_save_LIBS 21521 fi 21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 21523 $as_echo "$ac_cv_search_clock_gettime" >&6; } 21524 ac_res=$ac_cv_search_clock_gettime 21525 if test "$ac_res" != no; then : 21526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21527 CLOCK_GETTIME_LIBS=$LIBS 21528 fi 21529 21530 21531 21532 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 21533 21534 if test "x$DEBUG" != "xno"; then 21535 DEBUG_TRUE= 21536 DEBUG_FALSE='#' 21537 else 21538 DEBUG_TRUE='#' 21539 DEBUG_FALSE= 21540 fi 21541 21542 if test "x$DEBUG" = "xfull"; then 21543 FULL_DEBUG_TRUE= 21544 FULL_DEBUG_FALSE='#' 21545 else 21546 FULL_DEBUG_TRUE='#' 21547 FULL_DEBUG_FALSE= 21548 fi 21549 21550 if test "x$DEBUG" = "xno"; then 21551 21552 $as_echo "#define NDEBUG 1" >>confdefs.h 21553 21554 else 21555 if test "x$VG" != "xyes"; then 21556 VG=auto 21557 fi 21558 fi 21559 debug_msg="" 21560 have_valgrind="no" 21561 if test "x$VG" != "xno"; then 21562 21563 pkg_failed=no 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5 21565 $as_echo_n "checking for VALGRIND... " >&6; } 21566 21567 if 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 21578 else 21579 pkg_failed=yes 21580 fi 21581 else 21582 pkg_failed=untried 21583 fi 21584 if 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 21595 else 21596 pkg_failed=yes 21597 fi 21598 else 21599 pkg_failed=untried 21600 fi 21601 21602 21603 21604 if test $pkg_failed = yes; then 21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21606 $as_echo "no" >&6; } 21607 21608 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21609 _pkg_short_errors_supported=yes 21610 else 21611 _pkg_short_errors_supported=no 21612 fi 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" 21622 elif 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" 21626 else 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" 21632 fi 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; } 21646 fi 21647 if test "x$have_valgrind" = "xyes"; then 21648 VALGRIND_TRUE= 21649 VALGRIND_FALSE='#' 21650 else 21651 VALGRIND_TRUE='#' 21652 VALGRIND_FALSE= 21653 fi 21654 21655 if test "x$have_valgrind" = "xyes"; then 21656 debug_msg="$debug_msg valgrind" 21657 fi 21658 if test "x$DEBUG" = "xsync"; then 21659 21660 $as_echo "#define DEBUG_SYNC 1" >>confdefs.h 21661 21662 debug_msg="$debug_msg sync" 21663 fi 21664 if test "x$DEBUG" = "xmemory"; then 21665 21666 $as_echo "#define DEBUG_MEMORY 1" >>confdefs.h 21667 21668 debug_msg="$debug_msg memory" 21669 fi 21670 if test "x$DEBUG" = "xpixmap"; then 21671 21672 $as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h 21673 21674 debug_msg="$debug_msg pixmaps" 21675 fi 21676 if 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" 21688 fi 21689 if test "x$debug_msg" = "x"; then 21690 debug_msg=" none" 21691 fi 21692 21693 21694 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 21695 if test "x$ac_cv_func_getline" = xyes; then : 21696 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h 21697 21698 else 21699 case " $LIBOBJS " in 21700 *" getline.$ac_objext "* ) ;; 21701 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 21702 ;; 21703 esac 21704 21705 fi 21706 21707 21708 21709 DRIVER_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 21722 cat >>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 21739 cat >>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 21747 ac_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 21749 cat >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 21811 if 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 21832 fi 21833 rm -f confcache 21834 21835 test "x$prefix" = xNONE && prefix=$ac_default_prefix 21836 # Let make expand exec_prefix. 21837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21838 21839 DEFS=-DHAVE_CONFIG_H 21840 21841 ac_libobjs= 21842 ac_ltlibobjs= 21843 U= 21844 for 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' 21852 done 21853 LIBOBJS=$ac_libobjs 21854 21855 LTLIBOBJS=$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='#' 21869 else 21870 am__EXEEXT_TRUE='#' 21871 am__EXEEXT_FALSE= 21872 fi 21873 21874 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21875 as_fn_error $? "conditional \"AMDEP\" was never defined. 21876 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21877 fi 21878 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21879 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21880 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21881 fi 21882 if test -z "${BUILD_BACKLIGHT_HELPER_TRUE}" && test -z "${BUILD_BACKLIGHT_HELPER_FALSE}"; then 21883 as_fn_error $? "conditional \"BUILD_BACKLIGHT_HELPER\" was never defined. 21884 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21885 fi 21886 if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then 21887 as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined. 21888 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21889 fi 21890 if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then 21891 as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined. 21892 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21893 fi 21894 if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then 21895 as_fn_error $? "conditional \"HAVE_X11\" was never defined. 21896 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21897 fi 21898 if test -z "${X11_DRI3_TRUE}" && test -z "${X11_DRI3_FALSE}"; then 21899 as_fn_error $? "conditional \"X11_DRI3\" was never defined. 21900 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21901 fi 21902 if test -z "${X11_SHM_TRUE}" && test -z "${X11_SHM_FALSE}"; then 21903 as_fn_error $? "conditional \"X11_SHM\" was never defined. 21904 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21905 fi 21906 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then 21907 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined. 21908 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21909 fi 21910 if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then 21911 as_fn_error $? "conditional \"DGA\" was never defined. 21912 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21913 fi 21914 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 21915 as_fn_error $? "conditional \"XAA\" was never defined. 21916 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21917 fi 21918 if test -z "${KMS_TRUE}" && test -z "${KMS_FALSE}"; then 21919 as_fn_error $? "conditional \"KMS\" was never defined. 21920 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21921 fi 21922 if test -z "${UMS_TRUE}" && test -z "${UMS_FALSE}"; then 21923 as_fn_error $? "conditional \"UMS\" was never defined. 21924 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21925 fi 21926 if test -z "${DRI1_TRUE}" && test -z "${DRI1_FALSE}"; then 21927 as_fn_error $? "conditional \"DRI1\" was never defined. 21928 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21929 fi 21930 if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then 21931 as_fn_error $? "conditional \"DRI2\" was never defined. 21932 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21933 fi 21934 if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then 21935 as_fn_error $? "conditional \"DRI3\" was never defined. 21936 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21937 fi 21938 if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then 21939 as_fn_error $? "conditional \"PRESENT\" was never defined. 21940 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21941 fi 21942 if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then 21943 as_fn_error $? "conditional \"UXA\" was never defined. 21944 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21945 fi 21946 if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then 21947 as_fn_error $? "conditional \"SNA\" was never defined. 21948 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21949 fi 21950 if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then 21951 as_fn_error $? "conditional \"XVMC\" was never defined. 21952 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21953 fi 21954 if test -z "${USE_RENDERNODE_TRUE}" && test -z "${USE_RENDERNODE_FALSE}"; then 21955 as_fn_error $? "conditional \"USE_RENDERNODE\" was never defined. 21956 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21957 fi 21958 if test -z "${USE_CREATE2_TRUE}" && test -z "${USE_CREATE2_FALSE}"; then 21959 as_fn_error $? "conditional \"USE_CREATE2\" was never defined. 21960 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21961 fi 21962 if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then 21963 as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined. 21964 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21965 fi 21966 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 21967 as_fn_error $? "conditional \"DEBUG\" was never defined. 21968 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21969 fi 21970 if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then 21971 as_fn_error $? "conditional \"FULL_DEBUG\" was never defined. 21972 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21973 fi 21974 if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then 21975 as_fn_error $? "conditional \"VALGRIND\" was never defined. 21976 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21977 fi 21978 21979 : "${CONFIG_STATUS=./config.status}" 21980 ac_write_fail=0 21981 ac_clean_files_save=$ac_clean_files 21982 ac_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;} 21985 as_write_fail=0 21986 cat >$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 21993 debug=false 21994 ac_cs_recheck=false 21995 ac_cs_silent=false 21996 21997 SHELL=\${CONFIG_SHELL-$SHELL} 21998 export SHELL 21999 _ASEOF 22000 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22001 ## -------------------- ## 22002 ## M4sh Initialization. ## 22003 ## -------------------- ## 22004 22005 # Be more Bourne compatible 22006 DUALCASE=1; export DUALCASE # for MKS sh 22007 if 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 22014 else 22015 case `(set -o) 2>/dev/null` in #( 22016 *posix*) : 22017 set -o posix ;; #( 22018 *) : 22019 ;; 22020 esac 22021 fi 22022 22023 22024 as_nl=' 22025 ' 22026 export as_nl 22027 # Printing a long string crashes Solaris 7 /usr/bin/printf. 22028 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22029 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22030 as_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. 22033 if 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 --' 22037 elif (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' 22040 else 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' 22060 fi 22061 22062 # The user is always right. 22063 if 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 } 22069 fi 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.) 22077 IFS=" "" $as_nl" 22078 22079 # Find who we are. Look in the path if we contain no directory separator. 22080 as_myself= 22081 case $0 in #(( 22082 *[\\/]* ) as_myself=$0 ;; 22083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22084 for as_dir in $PATH 22085 do 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 22090 IFS=$as_save_IFS 22091 22092 ;; 22093 esac 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. 22096 if test "x$as_myself" = x; then 22097 as_myself=$0 22098 fi 22099 if test ! -f "$as_myself"; then 22100 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22101 exit 1 22102 fi 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. 22108 for as_var in BASH_ENV ENV MAIL MAILPATH 22109 do eval test x\${$as_var+set} = xset \ 22110 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22111 done 22112 PS1='$ ' 22113 PS2='> ' 22114 PS4='+ ' 22115 22116 # NLS nuisances. 22117 LC_ALL=C 22118 export LC_ALL 22119 LANGUAGE=C 22120 export 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. 22131 as_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. 22146 as_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. 22154 as_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. 22164 as_fn_unset () 22165 { 22166 { eval $1=; unset $1;} 22167 } 22168 as_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. 22175 if (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 }' 22180 else 22181 as_fn_append () 22182 { 22183 eval $1=\$$1\$2 22184 } 22185 fi # 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. 22192 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22193 eval 'as_fn_arith () 22194 { 22195 as_val=$(( $* )) 22196 }' 22197 else 22198 as_fn_arith () 22199 { 22200 as_val=`expr "$@" || test $? -eq 1` 22201 } 22202 fi # as_fn_arith 22203 22204 22205 if expr a : '\(a\)' >/dev/null 2>&1 && 22206 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22207 as_expr=expr 22208 else 22209 as_expr=false 22210 fi 22211 22212 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22213 as_basename=basename 22214 else 22215 as_basename=false 22216 fi 22217 22218 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22219 as_dirname=dirname 22220 else 22221 as_dirname=false 22222 fi 22223 22224 as_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. 22244 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22247 as_cr_digits='0123456789' 22248 as_cr_alnum=$as_cr_Letters$as_cr_digits 22249 22250 ECHO_C= ECHO_N= ECHO_T= 22251 case `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';; 22261 esac 22262 22263 rm -f conf$$ conf$$.exe conf$$.file 22264 if test -d conf$$.dir; then 22265 rm -f conf$$.dir/conf$$.file 22266 else 22267 rm -f conf$$.dir 22268 mkdir conf$$.dir 2>/dev/null 22269 fi 22270 if (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 22284 else 22285 as_ln_s='cp -pR' 22286 fi 22287 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22288 rmdir conf$$.dir 2>/dev/null 22289 22290 22291 # as_fn_mkdir_p 22292 # ------------- 22293 # Create "$as_dir" as a directory, including parents if necessary. 22294 as_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 22338 if mkdir -p . 2>/dev/null; then 22339 as_mkdir_p='mkdir -p "$as_dir"' 22340 else 22341 test -d ./-p && rmdir ./-p 22342 as_mkdir_p=false 22343 fi 22344 22345 22346 # as_fn_executable_p FILE 22347 # ----------------------- 22348 # Test if FILE is an executable regular file. 22349 as_fn_executable_p () 22350 { 22351 test -f "$1" && test -x "$1" 22352 } # as_fn_executable_p 22353 as_test_x='test -x' 22354 as_executable_p=as_fn_executable_p 22355 22356 # Sed expression to map a string onto a valid CPP name. 22357 as_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. 22360 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22361 22362 22363 exec 6>&1 22364 ## ----------------------------------- ## 22365 ## Main body of $CONFIG_STATUS script. ## 22366 ## ----------------------------------- ## 22367 _ASEOF 22368 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22369 22370 cat >>$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. 22374 ac_log=" 22375 This file was extended by xf86-video-intel $as_me 2.99.917, which was 22376 generated 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 22384 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22385 " 22386 22387 _ACEOF 22388 22389 case $ac_config_files in *" 22390 "*) set x $ac_config_files; shift; ac_config_files=$*;; 22391 esac 22392 22393 case $ac_config_headers in *" 22394 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22395 esac 22396 22397 22398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22399 # Files that config.status was made for. 22400 config_files="$ac_config_files" 22401 config_headers="$ac_config_headers" 22402 config_commands="$ac_config_commands" 22403 22404 _ACEOF 22405 22406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22407 ac_cs_usage="\ 22408 \`$as_me' instantiates files and other configuration actions 22409 from templates according to the current configuration. Unless the files 22410 and actions are specified as TAGs, all are instantiated by default. 22411 22412 Usage: $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 22426 Configuration files: 22427 $config_files 22428 22429 Configuration headers: 22430 $config_headers 22431 22432 Configuration commands: 22433 $config_commands 22434 22435 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 22436 22437 _ACEOF 22438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22439 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22440 ac_cs_version="\\ 22441 xf86-video-intel config.status 2.99.917 22442 configured by $0, generated by GNU Autoconf 2.69, 22443 with options \\"\$ac_cs_config\\" 22444 22445 Copyright (C) 2012 Free Software Foundation, Inc. 22446 This config.status script is free software; the Free Software Foundation 22447 gives unlimited permission to copy, distribute and modify it." 22448 22449 ac_pwd='$ac_pwd' 22450 srcdir='$srcdir' 22451 INSTALL='$INSTALL' 22452 MKDIR_P='$MKDIR_P' 22453 AWK='$AWK' 22454 test -n "\$AWK" || AWK=awk 22455 _ACEOF 22456 22457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22458 # The default lists apply if the user does not specify any file. 22459 ac_need_defaults=: 22460 while test $# != 0 22461 do 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' 22508 Try \`$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' 22517 Try \`$0 --help' for more information." ;; 22518 22519 *) as_fn_append ac_config_targets " $1" 22520 ac_need_defaults=false ;; 22521 22522 esac 22523 shift 22524 done 22525 22526 ac_configure_extra_args= 22527 22528 if $ac_cs_silent; then 22529 exec 6>/dev/null 22530 ac_configure_extra_args="$ac_configure_extra_args --silent" 22531 fi 22532 22533 _ACEOF 22534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22535 if \$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 "\$@" 22542 fi 22543 22544 _ACEOF 22545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22546 exec 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 22556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22557 # 22558 # INIT-COMMANDS 22559 # 22560 AMDEP_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 22567 sed_quote_subst='$sed_quote_subst' 22568 double_quote_subst='$double_quote_subst' 22569 delay_variable_subst='$delay_variable_subst' 22570 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22571 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22572 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22573 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22574 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22575 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22576 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22577 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22578 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22579 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22580 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22581 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22582 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22583 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22584 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22585 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22586 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22587 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22588 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22589 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22590 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22591 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22592 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22593 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22594 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22595 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22596 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22597 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22598 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22599 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22600 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22601 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22602 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22603 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22604 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22605 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22606 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22607 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22608 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22609 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22610 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22611 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22612 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22613 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22614 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22615 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22616 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22617 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22618 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22619 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22620 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22621 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22622 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22623 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22624 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22625 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22626 lt_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"`' 22627 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22628 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22629 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22630 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22631 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22632 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22633 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22634 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22635 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22636 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22637 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22638 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22639 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22640 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22641 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22642 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22643 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22644 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22645 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22646 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22647 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22648 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22649 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22650 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22651 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22652 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22653 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22654 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22655 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22656 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22657 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22658 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22659 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22660 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22661 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22662 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22663 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22664 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22665 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22666 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22667 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22668 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22669 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22670 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22671 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22672 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22673 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22674 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22675 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22676 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22677 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22678 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22679 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22680 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22681 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22682 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22683 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22684 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22685 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22686 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22687 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22688 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22689 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22690 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22691 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22692 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22693 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 22694 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22695 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22696 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22697 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22698 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22699 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22700 22701 LTCC='$LTCC' 22702 LTCFLAGS='$LTCFLAGS' 22703 compiler='$compiler_DEFAULT' 22704 22705 # A function that is used when there is no print builtin or printf. 22706 func_fallback_echo () 22707 { 22708 eval 'cat <<_LTECHO_EOF 22709 \$1 22710 _LTECHO_EOF' 22711 } 22712 22713 # Quote evaled strings. 22714 for var in SHELL \ 22715 ECHO \ 22716 PATH_SEPARATOR \ 22717 SED \ 22718 GREP \ 22719 EGREP \ 22720 FGREP \ 22721 LD \ 22722 NM \ 22723 LN_S \ 22724 lt_SP2NL \ 22725 lt_NL2SP \ 22726 reload_flag \ 22727 OBJDUMP \ 22728 deplibs_check_method \ 22729 file_magic_cmd \ 22730 file_magic_glob \ 22731 want_nocaseglob \ 22732 DLLTOOL \ 22733 sharedlib_from_linklib_cmd \ 22734 AR \ 22735 AR_FLAGS \ 22736 archiver_list_spec \ 22737 STRIP \ 22738 RANLIB \ 22739 CC \ 22740 CFLAGS \ 22741 compiler \ 22742 lt_cv_sys_global_symbol_pipe \ 22743 lt_cv_sys_global_symbol_to_cdecl \ 22744 lt_cv_sys_global_symbol_to_c_name_address \ 22745 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22746 nm_file_list_spec \ 22747 lt_prog_compiler_no_builtin_flag \ 22748 lt_prog_compiler_pic \ 22749 lt_prog_compiler_wl \ 22750 lt_prog_compiler_static \ 22751 lt_cv_prog_compiler_c_o \ 22752 need_locks \ 22753 MANIFEST_TOOL \ 22754 DSYMUTIL \ 22755 NMEDIT \ 22756 LIPO \ 22757 OTOOL \ 22758 OTOOL64 \ 22759 shrext_cmds \ 22760 export_dynamic_flag_spec \ 22761 whole_archive_flag_spec \ 22762 compiler_needs_object \ 22763 with_gnu_ld \ 22764 allow_undefined_flag \ 22765 no_undefined_flag \ 22766 hardcode_libdir_flag_spec \ 22767 hardcode_libdir_separator \ 22768 exclude_expsyms \ 22769 include_expsyms \ 22770 file_list_spec \ 22771 variables_saved_for_relink \ 22772 libname_spec \ 22773 library_names_spec \ 22774 soname_spec \ 22775 install_override_mode \ 22776 finish_eval \ 22777 old_striplib \ 22778 striplib; 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 22787 done 22788 22789 # Double-quote double-evaled strings. 22790 for var in reload_cmds \ 22791 old_postinstall_cmds \ 22792 old_postuninstall_cmds \ 22793 old_archive_cmds \ 22794 extract_expsyms_cmds \ 22795 old_archive_from_new_cmds \ 22796 old_archive_from_expsyms_cmds \ 22797 archive_cmds \ 22798 archive_expsym_cmds \ 22799 module_cmds \ 22800 module_expsym_cmds \ 22801 export_symbols_cmds \ 22802 prelink_cmds \ 22803 postlink_cmds \ 22804 postinstall_cmds \ 22805 postuninstall_cmds \ 22806 finish_cmds \ 22807 sys_lib_search_path_spec \ 22808 sys_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 22817 done 22818 22819 ac_aux_dir='$ac_aux_dir' 22820 xsi_shell='$xsi_shell' 22821 lt_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. 22825 if test -n "\${ZSH_VERSION+set}" ; then 22826 setopt NO_GLOB_SUBST 22827 fi 22828 22829 22830 PACKAGE='$PACKAGE' 22831 VERSION='$VERSION' 22832 TIMESTAMP='$TIMESTAMP' 22833 RM='$RM' 22834 ofile='$ofile' 22835 22836 22837 22838 22839 _ACEOF 22840 22841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22842 22843 # Handling of arguments. 22844 for ac_config_target in $ac_config_targets 22845 do 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 22872 done 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. 22879 if $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 22883 fi 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 22910 ac_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'. 22915 if test -n "$CONFIG_FILES"; then 22916 22917 22918 ac_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. 22922 if test "x$ac_cr" = x; then 22923 eval ac_cr=\$\'\\r\' 22924 fi 22925 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22926 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22927 ac_cs_awk_cr='\\r' 22928 else 22929 ac_cs_awk_cr=$ac_cr 22930 fi 22931 22932 echo '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 22942 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22943 ac_delim='%!_!# ' 22944 for 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 22956 done 22957 rm -f conf$$subs.sh 22958 22959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22960 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22961 _ACEOF 22962 sed -n ' 22963 h 22964 s/^/S["/; s/!.*/"]=/ 22965 p 22966 g 22967 s/^[^!]*!// 22968 :repl 22969 t repl 22970 s/'"$ac_delim"'$// 22971 t delim 22972 :nl 22973 h 22974 s/\(.\{148\}\)..*/\1/ 22975 t more1 22976 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22977 p 22978 n 22979 b repl 22980 :more1 22981 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22982 p 22983 g 22984 s/.\{148\}// 22985 t nl 22986 :delim 22987 h 22988 s/\(.\{148\}\)..*/\1/ 22989 t more2 22990 s/["\\]/\\&/g; s/^/"/; s/$/"/ 22991 p 22992 b 22993 :more2 22994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22995 p 22996 g 22997 s/.\{148\}// 22998 t delim 22999 ' <conf$$subs.awk | sed ' 23000 /^[^""]/{ 23001 N 23002 s/\n// 23003 } 23004 ' >>$CONFIG_STATUS || ac_write_fail=1 23005 rm -f conf$$subs.awk 23006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23007 _ACAWK 23008 cat >>"\$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 23035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23036 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23037 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23038 else 23039 cat 23040 fi < "$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). 23048 if test "x$srcdir" = x.; then 23049 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23050 h 23051 s/// 23052 s/^/:/ 23053 s/[ ]*$/:/ 23054 s/:\$(srcdir):/:/g 23055 s/:\${srcdir}:/:/g 23056 s/:@srcdir@:/:/g 23057 s/^:*// 23058 s/:*$// 23059 x 23060 s/\(=[ ]*\).*/\1/ 23061 G 23062 s/\n// 23063 s/^[^=]*=[ ]*$// 23064 }' 23065 fi 23066 23067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23068 fi # 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'. 23073 if test -n "$CONFIG_HEADERS"; then 23074 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23075 BEGIN { 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. 23084 ac_delim='%!_!# ' 23085 for 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 23094 done 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 23100 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23101 sed -n ' 23102 s/.\{148\}/&'"$ac_delim"'/g 23103 t rset 23104 :rset 23105 s/^[ ]*#[ ]*define[ ][ ]*/ / 23106 t def 23107 d 23108 :def 23109 s/\\$// 23110 t bsnl 23111 s/["\\]/\\&/g 23112 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23113 D["\1"]=" \3"/p 23114 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23115 d 23116 :bsnl 23117 s/["\\]/\\&/g 23118 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23119 D["\1"]=" \3\\\\\\n"\\/p 23120 t cont 23121 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23122 t cont 23123 d 23124 :cont 23125 n 23126 s/.\{148\}/&'"$ac_delim"'/g 23127 t clear 23128 :clear 23129 s/\\$// 23130 t bsnlc 23131 s/["\\]/\\&/g; s/^/"/; s/$/"/p 23132 d 23133 :bsnlc 23134 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23135 b cont 23136 ' <confdefs.h | sed ' 23137 s/'"$ac_delim"'/"\\\ 23138 "/g' >>$CONFIG_STATUS || ac_write_fail=1 23139 23140 cat >>$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 23174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23175 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23176 fi # test -n "$CONFIG_HEADERS" 23177 23178 23179 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23180 shift 23181 for ac_tag 23182 do 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 23274 case "$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 ;; 23284 esac 23285 ac_abs_top_builddir=$ac_pwd 23286 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23287 # for backward compatibility: 23288 ac_top_builddir=$ac_top_build_prefix 23289 23290 case $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 ;; 23303 esac 23304 ac_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 23324 cat >>$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. 23327 ac_datarootdir_hack=; ac_datarootdir_seen= 23328 ac_sed_dataroot=' 23329 /datarootdir/ { 23330 p 23331 q 23332 } 23333 /@datadir@/p 23334 /@docdir@/p 23335 /@infodir@/p 23336 /@localedir@/p 23337 /@mandir@/p' 23338 case `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 23344 cat >>$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' ;; 23352 esac 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? 23358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23359 ac_sed_extra="$ac_vpsub 23360 $extrasub 23361 _ACEOF 23362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23363 :t 23364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23365 s|@configure_input@|$ac_sed_conf_input|;t t 23366 s&@top_builddir@&$ac_top_builddir_sub&;t t 23367 s&@top_build_prefix@&$ac_top_build_prefix&;t t 23368 s&@srcdir@&$ac_srcdir&;t t 23369 s&@abs_srcdir@&$ac_abs_srcdir&;t t 23370 s&@top_srcdir@&$ac_top_srcdir&;t t 23371 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23372 s&@builddir@&$ac_builddir&;t t 23373 s&@abs_builddir@&$ac_abs_builddir&;t t 23374 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23375 s&@INSTALL@&$ac_INSTALL&;t t 23376 s&@MKDIR_P@&$ac_MKDIR_P&;t t 23377 $ac_datarootdir_hack 23378 " 23379 eval 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 23382 test -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' 23387 which 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' 23389 which 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 23424 for _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 23431 done 23432 echo "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. 23607 available_tags="" 23608 23609 # ### BEGIN LIBTOOL CONFIG 23610 23611 # Whether or not to build static libraries. 23612 build_old_libs=$enable_static 23613 23614 # Which release of libtool.m4 was used? 23615 macro_version=$macro_version 23616 macro_revision=$macro_revision 23617 23618 # Whether or not to build shared libraries. 23619 build_libtool_libs=$enable_shared 23620 23621 # What type of objects to build. 23622 pic_mode=$pic_mode 23623 23624 # Whether or not to optimize for fast installation. 23625 fast_install=$enable_fast_install 23626 23627 # Shell to use when invoking shell scripts. 23628 SHELL=$lt_SHELL 23629 23630 # An echo program that protects backslashes. 23631 ECHO=$lt_ECHO 23632 23633 # The PATH separator for the build system. 23634 PATH_SEPARATOR=$lt_PATH_SEPARATOR 23635 23636 # The host system. 23637 host_alias=$host_alias 23638 host=$host 23639 host_os=$host_os 23640 23641 # The build system. 23642 build_alias=$build_alias 23643 build=$build 23644 build_os=$build_os 23645 23646 # A sed program that does not truncate output. 23647 SED=$lt_SED 23648 23649 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 23650 Xsed="\$SED -e 1s/^X//" 23651 23652 # A grep program that handles long lines. 23653 GREP=$lt_GREP 23654 23655 # An ERE matcher. 23656 EGREP=$lt_EGREP 23657 23658 # A literal string matcher. 23659 FGREP=$lt_FGREP 23660 23661 # A BSD- or MS-compatible name lister. 23662 NM=$lt_NM 23663 23664 # Whether we need soft or hard links. 23665 LN_S=$lt_LN_S 23666 23667 # What is the maximum length of a command? 23668 max_cmd_len=$max_cmd_len 23669 23670 # Object file suffix (normally "o"). 23671 objext=$ac_objext 23672 23673 # Executable file suffix (normally ""). 23674 exeext=$exeext 23675 23676 # whether the shell understands "unset". 23677 lt_unset=$lt_unset 23678 23679 # turn spaces into newlines. 23680 SP2NL=$lt_lt_SP2NL 23681 23682 # turn newlines into spaces. 23683 NL2SP=$lt_lt_NL2SP 23684 23685 # convert \$build file names to \$host format. 23686 to_host_file_cmd=$lt_cv_to_host_file_cmd 23687 23688 # convert \$build files to toolchain format. 23689 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23690 23691 # An object symbol dumper. 23692 OBJDUMP=$lt_OBJDUMP 23693 23694 # Method to check whether dependent libraries are shared objects. 23695 deplibs_check_method=$lt_deplibs_check_method 23696 23697 # Command to use when deplibs_check_method = "file_magic". 23698 file_magic_cmd=$lt_file_magic_cmd 23699 23700 # How to find potential files when deplibs_check_method = "file_magic". 23701 file_magic_glob=$lt_file_magic_glob 23702 23703 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23704 want_nocaseglob=$lt_want_nocaseglob 23705 23706 # DLL creation program. 23707 DLLTOOL=$lt_DLLTOOL 23708 23709 # Command to associate shared and link libraries. 23710 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23711 23712 # The archiver. 23713 AR=$lt_AR 23714 23715 # Flags to create an archive. 23716 AR_FLAGS=$lt_AR_FLAGS 23717 23718 # How to feed a file listing to the archiver. 23719 archiver_list_spec=$lt_archiver_list_spec 23720 23721 # A symbol stripping program. 23722 STRIP=$lt_STRIP 23723 23724 # Commands used to install an old-style archive. 23725 RANLIB=$lt_RANLIB 23726 old_postinstall_cmds=$lt_old_postinstall_cmds 23727 old_postuninstall_cmds=$lt_old_postuninstall_cmds 23728 23729 # Whether to use a lock for old archive extraction. 23730 lock_old_archive_extraction=$lock_old_archive_extraction 23731 23732 # A C compiler. 23733 LTCC=$lt_CC 23734 23735 # LTCC compiler flags. 23736 LTCFLAGS=$lt_CFLAGS 23737 23738 # Take the output of nm and produce a listing of raw symbols and C names. 23739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23740 23741 # Transform the output of nm in a proper C declaration. 23742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23743 23744 # Transform the output of nm in a C name address pair. 23745 global_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. 23748 global_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. 23751 nm_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. 23754 lt_sysroot=$lt_sysroot 23755 23756 # The name of the directory that contains temporary libtool files. 23757 objdir=$objdir 23758 23759 # Used to examine libraries when file_magic_cmd begins with "file". 23760 MAGIC_CMD=$MAGIC_CMD 23761 23762 # Must we lock files when doing compilation? 23763 need_locks=$lt_need_locks 23764 23765 # Manifest tool. 23766 MANIFEST_TOOL=$lt_MANIFEST_TOOL 23767 23768 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23769 DSYMUTIL=$lt_DSYMUTIL 23770 23771 # Tool to change global to local symbols on Mac OS X. 23772 NMEDIT=$lt_NMEDIT 23773 23774 # Tool to manipulate fat objects and archives on Mac OS X. 23775 LIPO=$lt_LIPO 23776 23777 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 23778 OTOOL=$lt_OTOOL 23779 23780 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23781 OTOOL64=$lt_OTOOL64 23782 23783 # Old archive suffix (normally "a"). 23784 libext=$libext 23785 23786 # Shared library suffix (normally ".so"). 23787 shrext_cmds=$lt_shrext_cmds 23788 23789 # The commands to extract the exported symbol list from a shared archive. 23790 extract_expsyms_cmds=$lt_extract_expsyms_cmds 23791 23792 # Variables whose values should be saved in libtool wrapper scripts and 23793 # restored at link time. 23794 variables_saved_for_relink=$lt_variables_saved_for_relink 23795 23796 # Do we need the "lib" prefix for modules? 23797 need_lib_prefix=$need_lib_prefix 23798 23799 # Do we need a version for libraries? 23800 need_version=$need_version 23801 23802 # Library versioning type. 23803 version_type=$version_type 23804 23805 # Shared library runtime path variable. 23806 runpath_var=$runpath_var 23807 23808 # Shared library path variable. 23809 shlibpath_var=$shlibpath_var 23810 23811 # Is shlibpath searched before the hard-coded library search path? 23812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23813 23814 # Format of library name prefix. 23815 libname_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 23819 library_names_spec=$lt_library_names_spec 23820 23821 # The coded name of the library, if different from the real name. 23822 soname_spec=$lt_soname_spec 23823 23824 # Permission mode override for installation of shared libraries. 23825 install_override_mode=$lt_install_override_mode 23826 23827 # Command to use after installation of a shared archive. 23828 postinstall_cmds=$lt_postinstall_cmds 23829 23830 # Command to use after uninstallation of a shared archive. 23831 postuninstall_cmds=$lt_postuninstall_cmds 23832 23833 # Commands used to finish a libtool library installation in a directory. 23834 finish_cmds=$lt_finish_cmds 23835 23836 # As "finish_cmds", except a single script fragment to be evaled but 23837 # not shown. 23838 finish_eval=$lt_finish_eval 23839 23840 # Whether we should hardcode library paths into libraries. 23841 hardcode_into_libs=$hardcode_into_libs 23842 23843 # Compile-time system search path for libraries. 23844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23845 23846 # Run-time system search path for libraries. 23847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23848 23849 # Whether dlopen is supported. 23850 dlopen_support=$enable_dlopen 23851 23852 # Whether dlopen of programs is supported. 23853 dlopen_self=$enable_dlopen_self 23854 23855 # Whether dlopen of statically linked programs is supported. 23856 dlopen_self_static=$enable_dlopen_self_static 23857 23858 # Commands to strip libraries. 23859 old_striplib=$lt_old_striplib 23860 striplib=$lt_striplib 23861 23862 23863 # The linker used to build libraries. 23864 LD=$lt_LD 23865 23866 # How to create reloadable object files. 23867 reload_flag=$lt_reload_flag 23868 reload_cmds=$lt_reload_cmds 23869 23870 # Commands used to build an old-style archive. 23871 old_archive_cmds=$lt_old_archive_cmds 23872 23873 # A language specific compiler. 23874 CC=$lt_compiler 23875 23876 # Is the compiler the GNU compiler? 23877 with_gcc=$GCC 23878 23879 # Compiler flag to turn off builtin functions. 23880 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23881 23882 # Additional compiler flags for building library objects. 23883 pic_flag=$lt_lt_prog_compiler_pic 23884 23885 # How to pass a linker flag through the compiler. 23886 wl=$lt_lt_prog_compiler_wl 23887 23888 # Compiler flag to prevent dynamic linking. 23889 link_static_flag=$lt_lt_prog_compiler_static 23890 23891 # Does compiler simultaneously support -c and -o options? 23892 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23893 23894 # Whether or not to add -lc for building shared libraries. 23895 build_libtool_need_lc=$archive_cmds_need_lc 23896 23897 # Whether or not to disallow shared libs when runtime libs are static. 23898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23899 23900 # Compiler flag to allow reflexive dlopens. 23901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23902 23903 # Compiler flag to generate shared objects directly from archives. 23904 whole_archive_flag_spec=$lt_whole_archive_flag_spec 23905 23906 # Whether the compiler copes with passing no objects directly. 23907 compiler_needs_object=$lt_compiler_needs_object 23908 23909 # Create an old-style archive from a shared archive. 23910 old_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. 23913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23914 23915 # Commands used to build a shared archive. 23916 archive_cmds=$lt_archive_cmds 23917 archive_expsym_cmds=$lt_archive_expsym_cmds 23918 23919 # Commands used to build a loadable module if different from building 23920 # a shared archive. 23921 module_cmds=$lt_module_cmds 23922 module_expsym_cmds=$lt_module_expsym_cmds 23923 23924 # Whether we are building with GNU ld or not. 23925 with_gnu_ld=$lt_with_gnu_ld 23926 23927 # Flag that allows shared libraries with undefined symbols to be built. 23928 allow_undefined_flag=$lt_allow_undefined_flag 23929 23930 # Flag that enforces no undefined symbols. 23931 no_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 23935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23936 23937 # Whether we need a single "-rpath" flag with a separated argument. 23938 hardcode_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. 23942 hardcode_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. 23948 hardcode_direct_absolute=$hardcode_direct_absolute 23949 23950 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23951 # into the resulting binary. 23952 hardcode_minus_L=$hardcode_minus_L 23953 23954 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23955 # into the resulting binary. 23956 hardcode_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. 23961 hardcode_automatic=$hardcode_automatic 23962 23963 # Set to yes if linker adds runtime paths of dependent libraries 23964 # to runtime path list. 23965 inherit_rpath=$inherit_rpath 23966 23967 # Whether libtool must link a program against all its dependency libraries. 23968 link_all_deplibs=$link_all_deplibs 23969 23970 # Set to "yes" if exported symbols are required. 23971 always_export_symbols=$always_export_symbols 23972 23973 # The commands to list exported symbols. 23974 export_symbols_cmds=$lt_export_symbols_cmds 23975 23976 # Symbols that should not be listed in the preloaded symbols. 23977 exclude_expsyms=$lt_exclude_expsyms 23978 23979 # Symbols that must always be exported. 23980 include_expsyms=$lt_include_expsyms 23981 23982 # Commands necessary for linking programs (against libraries) with templates. 23983 prelink_cmds=$lt_prelink_cmds 23984 23985 # Commands necessary for finishing linking programs. 23986 postlink_cmds=$lt_postlink_cmds 23987 23988 # Specify filename containing input files. 23989 file_list_spec=$lt_file_list_spec 23990 23991 # How to hardcode a shared library path into an executable. 23992 hardcode_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. 24004 if test "X${COLLECT_NAMES+set}" != Xset; then 24005 COLLECT_NAMES= 24006 export COLLECT_NAMES 24007 fi 24008 _LT_EOF 24009 ;; 24010 esac 24011 24012 24013 ltmain="$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\ 24025 func_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") 24034 test 0 -eq $? || _lt_function_replace_fail=: 24035 24036 24037 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 24038 func_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") 24044 test 0 -eq $? || _lt_function_replace_fail=: 24045 24046 24047 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 24048 func_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") 24058 test 0 -eq $? || _lt_function_replace_fail=: 24059 24060 24061 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 24062 func_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") 24072 test 0 -eq $? || _lt_function_replace_fail=: 24073 24074 24075 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 24076 func_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") 24083 test 0 -eq $? || _lt_function_replace_fail=: 24084 24085 24086 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 24087 func_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") 24094 test 0 -eq $? || _lt_function_replace_fail=: 24095 24096 24097 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 24098 func_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") 24107 test 0 -eq $? || _lt_function_replace_fail=: 24108 24109 24110 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 24111 func_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") 24117 test 0 -eq $? || _lt_function_replace_fail=: 24118 24119 24120 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 24121 func_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") 24127 test 0 -eq $? || _lt_function_replace_fail=: 24128 24129 24130 sed -e '/^func_len ()$/,/^} # func_len /c\ 24131 func_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") 24137 test 0 -eq $? || _lt_function_replace_fail=: 24138 24139 fi 24140 24141 if test x"$lt_shell_append" = xyes; then 24142 sed -e '/^func_append ()$/,/^} # func_append /c\ 24143 func_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") 24149 test 0 -eq $? || _lt_function_replace_fail=: 24150 24151 24152 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 24153 func_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") 24160 test 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=: 24168 else 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=: 24174 fi 24175 24176 if 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;} 24179 fi 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 24189 done # for ac_tag 24190 24191 24192 as_fn_exit 0 24193 _ACEOF 24194 ac_clean_files=$ac_clean_files_save 24195 24196 test $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. 24208 if 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 24219 fi 24220 if 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;} 24223 fi 24224 24225 24226 echo "" 24227 echo "" 24228 test -e `pwd $0`/README && cat `pwd $0`/README 24229 24230 accel_msg="" 24231 if 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 24242 fi 24243 if 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 24256 fi 24257 24258 if test "x$dri_msg" = "x"; then 24259 dri_msg=" none" 24260 fi 24261 24262 if test "x$tools_msg" = "x"; then 24263 tools_msg=" none" 24264 fi 24265 24266 echo "" 24267 echo "xf86-video-intel 2.99.917 will be compiled with:" 24268 echo " Xorg Video ABI version: $ABI_VERSION" 24269 echo " Acceleration backends:$accel_msg" 24270 echo " Additional debugging support?$debug_msg" 24271 echo " Support for Kernel Mode Setting? $KMS" 24272 echo " Support for legacy User Mode Setting (for i810)? $UMS" 24273 echo " Support for Direct Rendering Infrastructure:$dri_msg" 24274 echo " Support for Xv motion compensation (XvMC and libXvMC):$xvmc_msg" 24275 echo " Build additional tools and utilities?$tools_msg" 24276 if test -n "$xp_msg"; then 24277 echo " Experimental support:$xp_msg" 24278 fi 24279 echo "" 24280