1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for xf86-video-sis 0.12.0. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 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://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues 279 $0: about your system, including any error possibly output 280 $0: before this message. Then install a modern shell, or 281 $0: manually run the script under such a shell if you do 282 $0: have one." 283 fi 284 exit 1 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-sis' 593 PACKAGE_TARNAME='xf86-video-sis' 594 PACKAGE_VERSION='0.12.0' 595 PACKAGE_STRING='xf86-video-sis 0.12.0' 596 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues' 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_subst_vars='am__EXEEXT_FALSE 637 am__EXEEXT_TRUE 638 LTLIBOBJS 639 LIBOBJS 640 DRIVER_NAME 641 moduledir 642 XSERVER_LIBPCIACCESS_FALSE 643 XSERVER_LIBPCIACCESS_TRUE 644 PCIACCESS_LIBS 645 PCIACCESS_CFLAGS 646 XAA_FALSE 647 XAA_TRUE 648 DRI_LIBS 649 DRI_CFLAGS 650 DRI_FALSE 651 DRI_TRUE 652 HAVE_XEXTPROTO_71_FALSE 653 HAVE_XEXTPROTO_71_TRUE 654 XEXT_LIBS 655 XEXT_CFLAGS 656 XORG_LIBS 657 XORG_CFLAGS 658 LT_SYS_LIBRARY_PATH 659 OTOOL64 660 OTOOL 661 LIPO 662 NMEDIT 663 DSYMUTIL 664 MANIFEST_TOOL 665 RANLIB 666 ac_ct_AR 667 AR 668 DLLTOOL 669 OBJDUMP 670 LN_S 671 NM 672 ac_ct_DUMPBIN 673 DUMPBIN 674 LD 675 FGREP 676 LIBTOOL 677 MAN_SUBSTS 678 XORG_MAN_PAGE 679 ADMIN_MAN_DIR 680 DRIVER_MAN_DIR 681 MISC_MAN_DIR 682 FILE_MAN_DIR 683 LIB_MAN_DIR 684 APP_MAN_DIR 685 ADMIN_MAN_SUFFIX 686 DRIVER_MAN_SUFFIX 687 MISC_MAN_SUFFIX 688 FILE_MAN_SUFFIX 689 LIB_MAN_SUFFIX 690 APP_MAN_SUFFIX 691 SED 692 host_os 693 host_vendor 694 host_cpu 695 host 696 build_os 697 build_vendor 698 build_cpu 699 build 700 INSTALL_CMD 701 PKG_CONFIG_LIBDIR 702 PKG_CONFIG_PATH 703 PKG_CONFIG 704 CHANGELOG_CMD 705 STRICT_CFLAGS 706 CWARNFLAGS 707 BASE_CFLAGS 708 EGREP 709 GREP 710 CPP 711 am__fastdepCC_FALSE 712 am__fastdepCC_TRUE 713 CCDEPMODE 714 am__nodep 715 AMDEPBACKSLASH 716 AMDEP_FALSE 717 AMDEP_TRUE 718 am__quote 719 am__include 720 DEPDIR 721 OBJEXT 722 EXEEXT 723 ac_ct_CC 724 CPPFLAGS 725 LDFLAGS 726 CFLAGS 727 CC 728 AM_BACKSLASH 729 AM_DEFAULT_VERBOSITY 730 AM_DEFAULT_V 731 AM_V 732 am__untar 733 am__tar 734 AMTAR 735 am__leading_dot 736 SET_MAKE 737 AWK 738 mkdir_p 739 MKDIR_P 740 INSTALL_STRIP_PROGRAM 741 STRIP 742 install_sh 743 MAKEINFO 744 AUTOHEADER 745 AUTOMAKE 746 AUTOCONF 747 ACLOCAL 748 VERSION 749 PACKAGE 750 CYGPATH_W 751 am__isrc 752 INSTALL_DATA 753 INSTALL_SCRIPT 754 INSTALL_PROGRAM 755 target_alias 756 host_alias 757 build_alias 758 LIBS 759 ECHO_T 760 ECHO_N 761 ECHO_C 762 DEFS 763 mandir 764 localedir 765 libdir 766 psdir 767 pdfdir 768 dvidir 769 htmldir 770 infodir 771 docdir 772 oldincludedir 773 includedir 774 runstatedir 775 localstatedir 776 sharedstatedir 777 sysconfdir 778 datadir 779 datarootdir 780 libexecdir 781 sbindir 782 bindir 783 program_transform_name 784 prefix 785 exec_prefix 786 PACKAGE_URL 787 PACKAGE_BUGREPORT 788 PACKAGE_STRING 789 PACKAGE_VERSION 790 PACKAGE_TARNAME 791 PACKAGE_NAME 792 PATH_SEPARATOR 793 SHELL' 794 ac_subst_files='' 795 ac_user_opts=' 796 enable_option_checking 797 enable_silent_rules 798 enable_dependency_tracking 799 enable_selective_werror 800 enable_strict_compilation 801 enable_static 802 enable_shared 803 with_pic 804 enable_fast_install 805 with_aix_soname 806 with_gnu_ld 807 with_sysroot 808 enable_libtool_lock 809 with_xorg_module_dir 810 enable_dri 811 enable_xaa 812 ' 813 ac_precious_vars='build_alias 814 host_alias 815 target_alias 816 CC 817 CFLAGS 818 LDFLAGS 819 LIBS 820 CPPFLAGS 821 CPP 822 PKG_CONFIG 823 PKG_CONFIG_PATH 824 PKG_CONFIG_LIBDIR 825 LT_SYS_LIBRARY_PATH 826 XORG_CFLAGS 827 XORG_LIBS 828 XEXT_CFLAGS 829 XEXT_LIBS 830 DRI_CFLAGS 831 DRI_LIBS 832 PCIACCESS_CFLAGS 833 PCIACCESS_LIBS' 834 835 836 # Initialize some variables set by options. 837 ac_init_help= 838 ac_init_version=false 839 ac_unrecognized_opts= 840 ac_unrecognized_sep= 841 # The variables have the same names as the options, with 842 # dashes changed to underlines. 843 cache_file=/dev/null 844 exec_prefix=NONE 845 no_create= 846 no_recursion= 847 prefix=NONE 848 program_prefix=NONE 849 program_suffix=NONE 850 program_transform_name=s,x,x, 851 silent= 852 site= 853 srcdir= 854 verbose= 855 x_includes=NONE 856 x_libraries=NONE 857 858 # Installation directory options. 859 # These are left unexpanded so users can "make install exec_prefix=/foo" 860 # and all the variables that are supposed to be based on exec_prefix 861 # by default will actually change. 862 # Use braces instead of parens because sh, perl, etc. also accept them. 863 # (The list follows the same order as the GNU Coding Standards.) 864 bindir='${exec_prefix}/bin' 865 sbindir='${exec_prefix}/sbin' 866 libexecdir='${exec_prefix}/libexec' 867 datarootdir='${prefix}/share' 868 datadir='${datarootdir}' 869 sysconfdir='${prefix}/etc' 870 sharedstatedir='${prefix}/com' 871 localstatedir='${prefix}/var' 872 runstatedir='${localstatedir}/run' 873 includedir='${prefix}/include' 874 oldincludedir='/usr/include' 875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 876 infodir='${datarootdir}/info' 877 htmldir='${docdir}' 878 dvidir='${docdir}' 879 pdfdir='${docdir}' 880 psdir='${docdir}' 881 libdir='${exec_prefix}/lib' 882 localedir='${datarootdir}/locale' 883 mandir='${datarootdir}/man' 884 885 ac_prev= 886 ac_dashdash= 887 for ac_option 888 do 889 # If the previous option needs an argument, assign it. 890 if test -n "$ac_prev"; then 891 eval $ac_prev=\$ac_option 892 ac_prev= 893 continue 894 fi 895 896 case $ac_option in 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 898 *=) ac_optarg= ;; 899 *) ac_optarg=yes ;; 900 esac 901 902 # Accept the important Cygnus configure options, so we can diagnose typos. 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949 "enable_$ac_useropt" 950 "*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975 "enable_$ac_useropt" 976 "*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1126 | --runstate | --runstat | --runsta | --runst | --runs \ 1127 | --run | --ru | --r) 1128 ac_prev=runstatedir ;; 1129 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1130 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1131 | --run=* | --ru=* | --r=*) 1132 runstatedir=$ac_optarg ;; 1133 1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1135 ac_prev=sbindir ;; 1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1137 | --sbi=* | --sb=*) 1138 sbindir=$ac_optarg ;; 1139 1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1142 | --sharedst | --shareds | --shared | --share | --shar \ 1143 | --sha | --sh) 1144 ac_prev=sharedstatedir ;; 1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1148 | --sha=* | --sh=*) 1149 sharedstatedir=$ac_optarg ;; 1150 1151 -site | --site | --sit) 1152 ac_prev=site ;; 1153 -site=* | --site=* | --sit=*) 1154 site=$ac_optarg ;; 1155 1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1157 ac_prev=srcdir ;; 1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1159 srcdir=$ac_optarg ;; 1160 1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1162 | --syscon | --sysco | --sysc | --sys | --sy) 1163 ac_prev=sysconfdir ;; 1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1166 sysconfdir=$ac_optarg ;; 1167 1168 -target | --target | --targe | --targ | --tar | --ta | --t) 1169 ac_prev=target_alias ;; 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1171 target_alias=$ac_optarg ;; 1172 1173 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1174 verbose=yes ;; 1175 1176 -version | --version | --versio | --versi | --vers | -V) 1177 ac_init_version=: ;; 1178 1179 -with-* | --with-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: $ac_useropt" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188 "with_$ac_useropt" 1189 "*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=\$ac_optarg ;; 1194 1195 -without-* | --without-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204 "with_$ac_useropt" 1205 "*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=no ;; 1210 1211 --x) 1212 # Obsolete; use --with-x. 1213 with_x=yes ;; 1214 1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1216 | --x-incl | --x-inc | --x-in | --x-i) 1217 ac_prev=x_includes ;; 1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1220 x_includes=$ac_optarg ;; 1221 1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1224 ac_prev=x_libraries ;; 1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1227 x_libraries=$ac_optarg ;; 1228 1229 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1230 Try \`$0 --help' for more information" 1231 ;; 1232 1233 *=*) 1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1235 # Reject names that are not valid shell variable names. 1236 case $ac_envvar in #( 1237 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1239 esac 1240 eval $ac_envvar=\$ac_optarg 1241 export $ac_envvar ;; 1242 1243 *) 1244 # FIXME: should be removed in autoconf 3.0. 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1249 ;; 1250 1251 esac 1252 done 1253 1254 if test -n "$ac_prev"; then 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1256 as_fn_error $? "missing argument to $ac_option" 1257 fi 1258 1259 if test -n "$ac_unrecognized_opts"; then 1260 case $enable_option_checking in 1261 no) ;; 1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1264 esac 1265 fi 1266 1267 # Check all directory arguments for consistency. 1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1269 datadir sysconfdir sharedstatedir localstatedir includedir \ 1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1271 libdir localedir mandir runstatedir 1272 do 1273 eval ac_val=\$$ac_var 1274 # Remove trailing slashes. 1275 case $ac_val in 1276 */ ) 1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1278 eval $ac_var=\$ac_val;; 1279 esac 1280 # Be sure to have absolute directory names. 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1286 done 1287 1288 # There might be people who depend on the old broken behavior: `$host' 1289 # used to hold the argument of --host etc. 1290 # FIXME: To remove some day. 1291 build=$build_alias 1292 host=$host_alias 1293 target=$target_alias 1294 1295 # FIXME: To remove some day. 1296 if test "x$host_alias" != x; then 1297 if test "x$build_alias" = x; then 1298 cross_compiling=maybe 1299 elif test "x$build_alias" != "x$host_alias"; then 1300 cross_compiling=yes 1301 fi 1302 fi 1303 1304 ac_tool_prefix= 1305 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1306 1307 test "$silent" = yes && exec 6>/dev/null 1308 1309 1310 ac_pwd=`pwd` && test -n "$ac_pwd" && 1311 ac_ls_di=`ls -di .` && 1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1313 as_fn_error $? "working directory cannot be determined" 1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1315 as_fn_error $? "pwd does not report name of working directory" 1316 1317 1318 # Find the source files, if location was not specified. 1319 if test -z "$srcdir"; then 1320 ac_srcdir_defaulted=yes 1321 # Try the directory containing this script, then the parent directory. 1322 ac_confdir=`$as_dirname -- "$as_myself" || 1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1324 X"$as_myself" : 'X\(//\)[^/]' \| \ 1325 X"$as_myself" : 'X\(//\)$' \| \ 1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1327 $as_echo X"$as_myself" | 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)[^/].*/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\).*/{ 1341 s//\1/ 1342 q 1343 } 1344 s/.*/./; q'` 1345 srcdir=$ac_confdir 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 srcdir=.. 1348 fi 1349 else 1350 ac_srcdir_defaulted=no 1351 fi 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1355 fi 1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1357 ac_abs_confdir=`( 1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1359 pwd)` 1360 # When building in place, set srcdir=. 1361 if test "$ac_abs_confdir" = "$ac_pwd"; then 1362 srcdir=. 1363 fi 1364 # Remove unnecessary trailing slashes from srcdir. 1365 # Double slashes in file names in object file debugging info 1366 # mess up M-x gdb in Emacs. 1367 case $srcdir in 1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1369 esac 1370 for ac_var in $ac_precious_vars; do 1371 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_env_${ac_var}_value=\$${ac_var} 1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1375 done 1376 1377 # 1378 # Report the --help message. 1379 # 1380 if test "$ac_init_help" = "long"; then 1381 # Omit some internal or obsolete options to make the list less imposing. 1382 # This message is too long to be a string in the A/UX 3.1 sh. 1383 cat <<_ACEOF 1384 \`configure' configures xf86-video-sis 0.12.0 to adapt to many kinds of systems. 1385 1386 Usage: $0 [OPTION]... [VAR=VALUE]... 1387 1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1389 VAR=VALUE. See below for descriptions of some of the useful variables. 1390 1391 Defaults for the options are specified in brackets. 1392 1393 Configuration: 1394 -h, --help display this help and exit 1395 --help=short display options specific to this package 1396 --help=recursive display the short help of all the included packages 1397 -V, --version display version information and exit 1398 -q, --quiet, --silent do not print \`checking ...' messages 1399 --cache-file=FILE cache test results in FILE [disabled] 1400 -C, --config-cache alias for \`--cache-file=config.cache' 1401 -n, --no-create do not create output files 1402 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1403 1404 Installation directories: 1405 --prefix=PREFIX install architecture-independent files in PREFIX 1406 [$ac_default_prefix] 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1408 [PREFIX] 1409 1410 By default, \`make install' will install all the files in 1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1413 for instance \`--prefix=\$HOME'. 1414 1415 For better control, use the options below. 1416 1417 Fine tuning of the installation directories: 1418 --bindir=DIR user executables [EPREFIX/bin] 1419 --sbindir=DIR system admin executables [EPREFIX/sbin] 1420 --libexecdir=DIR program executables [EPREFIX/libexec] 1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1424 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1425 --libdir=DIR object code libraries [EPREFIX/lib] 1426 --includedir=DIR C header files [PREFIX/include] 1427 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1430 --infodir=DIR info documentation [DATAROOTDIR/info] 1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1432 --mandir=DIR man documentation [DATAROOTDIR/man] 1433 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-sis] 1434 --htmldir=DIR html documentation [DOCDIR] 1435 --dvidir=DIR dvi documentation [DOCDIR] 1436 --pdfdir=DIR pdf documentation [DOCDIR] 1437 --psdir=DIR ps documentation [DOCDIR] 1438 _ACEOF 1439 1440 cat <<\_ACEOF 1441 1442 Program names: 1443 --program-prefix=PREFIX prepend PREFIX to installed program names 1444 --program-suffix=SUFFIX append SUFFIX to installed program names 1445 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1446 1447 System types: 1448 --build=BUILD configure for building on BUILD [guessed] 1449 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1450 _ACEOF 1451 fi 1452 1453 if test -n "$ac_init_help"; then 1454 case $ac_init_help in 1455 short | recursive ) echo "Configuration of xf86-video-sis 0.12.0:";; 1456 esac 1457 cat <<\_ACEOF 1458 1459 Optional Features: 1460 --disable-option-checking ignore unrecognized --enable/--with options 1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1463 --enable-silent-rules less verbose build output (undo: "make V=1") 1464 --disable-silent-rules verbose build output (undo: "make V=0") 1465 --enable-dependency-tracking 1466 do not reject slow dependency extractors 1467 --disable-dependency-tracking 1468 speeds up one-time build 1469 --disable-selective-werror 1470 Turn off selective compiler errors. (default: 1471 enabled) 1472 --enable-strict-compilation 1473 Enable all warnings from compiler and make them 1474 errors (default: disabled) 1475 --enable-static[=PKGS] build static libraries [default=no] 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-fast-install[=PKGS] 1478 optimize for fast installation [default=yes] 1479 --disable-libtool-lock avoid locking (might break parallel builds) 1480 --disable-dri Disable DRI support [[default=auto]] 1481 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1482 [default=auto] 1483 1484 Optional Packages: 1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-aix-soname=aix|svr4|both 1490 shared library versioning (aka "SONAME") variant to 1491 provide on AIX, [default=aix]. 1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1494 compiler's sysroot if not specified). 1495 --with-xorg-module-dir=DIR 1496 Default xorg module directory 1497 [[default=$libdir/xorg/modules]] 1498 1499 Some influential environment variables: 1500 CC C compiler command 1501 CFLAGS C compiler flags 1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1503 nonstandard directory <lib dir> 1504 LIBS libraries to pass to the linker, e.g. -l<library> 1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1506 you have headers in a nonstandard directory <include dir> 1507 CPP C preprocessor 1508 PKG_CONFIG path to pkg-config utility 1509 PKG_CONFIG_PATH 1510 directories to add to pkg-config's search path 1511 PKG_CONFIG_LIBDIR 1512 path overriding pkg-config's built-in search path 1513 LT_SYS_LIBRARY_PATH 1514 User-defined run-time library search path. 1515 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1516 XORG_LIBS linker flags for XORG, overriding pkg-config 1517 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1518 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1519 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config 1520 DRI_LIBS linker flags for DRI, overriding pkg-config 1521 PCIACCESS_CFLAGS 1522 C compiler flags for PCIACCESS, overriding pkg-config 1523 PCIACCESS_LIBS 1524 linker flags for PCIACCESS, overriding pkg-config 1525 1526 Use these variables to override the choices made by `configure' or to help 1527 it to find libraries and programs with nonstandard names/locations. 1528 1529 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues>. 1530 _ACEOF 1531 ac_status=$? 1532 fi 1533 1534 if test "$ac_init_help" = "recursive"; then 1535 # If there are subdirs, report their specific --help. 1536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1537 test -d "$ac_dir" || 1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1539 continue 1540 ac_builddir=. 1541 1542 case "$ac_dir" in 1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1544 *) 1545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1546 # A ".." for each directory in $ac_dir_suffix. 1547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1548 case $ac_top_builddir_sub in 1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1551 esac ;; 1552 esac 1553 ac_abs_top_builddir=$ac_pwd 1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1555 # for backward compatibility: 1556 ac_top_builddir=$ac_top_build_prefix 1557 1558 case $srcdir in 1559 .) # We are building in place. 1560 ac_srcdir=. 1561 ac_top_srcdir=$ac_top_builddir_sub 1562 ac_abs_top_srcdir=$ac_pwd ;; 1563 [\\/]* | ?:[\\/]* ) # Absolute name. 1564 ac_srcdir=$srcdir$ac_dir_suffix; 1565 ac_top_srcdir=$srcdir 1566 ac_abs_top_srcdir=$srcdir ;; 1567 *) # Relative name. 1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1569 ac_top_srcdir=$ac_top_build_prefix$srcdir 1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1571 esac 1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1573 1574 cd "$ac_dir" || { ac_status=$?; continue; } 1575 # Check for guested configure. 1576 if test -f "$ac_srcdir/configure.gnu"; then 1577 echo && 1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1579 elif test -f "$ac_srcdir/configure"; then 1580 echo && 1581 $SHELL "$ac_srcdir/configure" --help=recursive 1582 else 1583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1584 fi || ac_status=$? 1585 cd "$ac_pwd" || { ac_status=$?; break; } 1586 done 1587 fi 1588 1589 test -n "$ac_init_help" && exit $ac_status 1590 if $ac_init_version; then 1591 cat <<\_ACEOF 1592 xf86-video-sis configure 0.12.0 1593 generated by GNU Autoconf 2.69 1594 1595 Copyright (C) 2012 Free Software Foundation, Inc. 1596 This configure script is free software; the Free Software Foundation 1597 gives unlimited permission to copy, distribute and modify it. 1598 _ACEOF 1599 exit 1600 fi 1601 1602 ## ------------------------ ## 1603 ## Autoconf initialization. ## 1604 ## ------------------------ ## 1605 1606 # ac_fn_c_try_compile LINENO 1607 # -------------------------- 1608 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1609 ac_fn_c_try_compile () 1610 { 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 rm -f conftest.$ac_objext 1613 if { { ac_try="$ac_compile" 1614 case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617 esac 1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619 $as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_compile") 2>conftest.err 1621 ac_status=$? 1622 if test -s conftest.err; then 1623 grep -v '^ *+' conftest.err >conftest.er1 1624 cat conftest.er1 >&5 1625 mv -f conftest.er1 conftest.err 1626 fi 1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1628 test $ac_status = 0; } && { 1629 test -z "$ac_c_werror_flag" || 1630 test ! -s conftest.err 1631 } && test -s conftest.$ac_objext; then : 1632 ac_retval=0 1633 else 1634 $as_echo "$as_me: failed program was:" >&5 1635 sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 1638 fi 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642 } # ac_fn_c_try_compile 1643 1644 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1645 # --------------------------------------------- 1646 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1647 # accordingly. 1648 ac_fn_c_check_decl () 1649 { 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 as_decl_name=`echo $2|sed 's/ *(.*//'` 1652 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1654 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1655 if eval \${$3+:} false; then : 1656 $as_echo_n "(cached) " >&6 1657 else 1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1659 /* end confdefs.h. */ 1660 $4 1661 int 1662 main () 1663 { 1664 #ifndef $as_decl_name 1665 #ifdef __cplusplus 1666 (void) $as_decl_use; 1667 #else 1668 (void) $as_decl_name; 1669 #endif 1670 #endif 1671 1672 ; 1673 return 0; 1674 } 1675 _ACEOF 1676 if ac_fn_c_try_compile "$LINENO"; then : 1677 eval "$3=yes" 1678 else 1679 eval "$3=no" 1680 fi 1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1682 fi 1683 eval ac_res=\$$3 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1685 $as_echo "$ac_res" >&6; } 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 1688 } # ac_fn_c_check_decl 1689 1690 # ac_fn_c_try_cpp LINENO 1691 # ---------------------- 1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1693 ac_fn_c_try_cpp () 1694 { 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 if { { ac_try="$ac_cpp conftest.$ac_ext" 1697 case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700 esac 1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702 $as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } > conftest.i && { 1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 }; then : 1715 ac_retval=0 1716 else 1717 $as_echo "$as_me: failed program was:" >&5 1718 sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721 fi 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725 } # ac_fn_c_try_cpp 1726 1727 # ac_fn_c_try_run LINENO 1728 # ---------------------- 1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1730 # that executables *can* be run. 1731 ac_fn_c_try_run () 1732 { 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 if { { ac_try="$ac_link" 1735 case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738 esac 1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740 $as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_link") 2>&5 1742 ac_status=$? 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1745 { { case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748 esac 1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750 $as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_try") 2>&5 1752 ac_status=$? 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; }; }; then : 1755 ac_retval=0 1756 else 1757 $as_echo "$as_me: program exited with status $ac_status" >&5 1758 $as_echo "$as_me: failed program was:" >&5 1759 sed 's/^/| /' conftest.$ac_ext >&5 1760 1761 ac_retval=$ac_status 1762 fi 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767 } # ac_fn_c_try_run 1768 1769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1770 # ------------------------------------------------------- 1771 # Tests whether HEADER exists and can be compiled using the include files in 1772 # INCLUDES, setting the cache variable VAR accordingly. 1773 ac_fn_c_check_header_compile () 1774 { 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1777 $as_echo_n "checking for $2... " >&6; } 1778 if eval \${$3+:} false; then : 1779 $as_echo_n "(cached) " >&6 1780 else 1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1782 /* end confdefs.h. */ 1783 $4 1784 #include <$2> 1785 _ACEOF 1786 if ac_fn_c_try_compile "$LINENO"; then : 1787 eval "$3=yes" 1788 else 1789 eval "$3=no" 1790 fi 1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1792 fi 1793 eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795 $as_echo "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798 } # ac_fn_c_check_header_compile 1799 1800 # ac_fn_c_try_link LINENO 1801 # ----------------------- 1802 # Try to link conftest.$ac_ext, and return whether this succeeded. 1803 ac_fn_c_try_link () 1804 { 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 rm -f conftest.$ac_objext conftest$ac_exeext 1807 if { { ac_try="$ac_link" 1808 case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811 esac 1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813 $as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_link") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { 1823 test -z "$ac_c_werror_flag" || 1824 test ! -s conftest.err 1825 } && test -s conftest$ac_exeext && { 1826 test "$cross_compiling" = yes || 1827 test -x conftest$ac_exeext 1828 }; then : 1829 ac_retval=0 1830 else 1831 $as_echo "$as_me: failed program was:" >&5 1832 sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 ac_retval=1 1835 fi 1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1838 # interfere with the next link command; also delete a directory that is 1839 # left behind by Apple's compiler. We do this before executing the actions. 1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 as_fn_set_status $ac_retval 1843 1844 } # ac_fn_c_try_link 1845 1846 # ac_fn_c_check_func LINENO FUNC VAR 1847 # ---------------------------------- 1848 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1849 ac_fn_c_check_func () 1850 { 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1853 $as_echo_n "checking for $2... " >&6; } 1854 if eval \${$3+:} false; then : 1855 $as_echo_n "(cached) " >&6 1856 else 1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1858 /* end confdefs.h. */ 1859 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1860 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1861 #define $2 innocuous_$2 1862 1863 /* System header to define __stub macros and hopefully few prototypes, 1864 which can conflict with char $2 (); below. 1865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1866 <limits.h> exists even on freestanding compilers. */ 1867 1868 #ifdef __STDC__ 1869 # include <limits.h> 1870 #else 1871 # include <assert.h> 1872 #endif 1873 1874 #undef $2 1875 1876 /* Override any GCC internal prototype to avoid an error. 1877 Use char because int might match the return type of a GCC 1878 builtin and then its argument prototype would still apply. */ 1879 #ifdef __cplusplus 1880 extern "C" 1881 #endif 1882 char $2 (); 1883 /* The GNU C library defines this for functions which it implements 1884 to always fail with ENOSYS. Some functions are actually named 1885 something starting with __ and the normal name is an alias. */ 1886 #if defined __stub_$2 || defined __stub___$2 1887 choke me 1888 #endif 1889 1890 int 1891 main () 1892 { 1893 return $2 (); 1894 ; 1895 return 0; 1896 } 1897 _ACEOF 1898 if ac_fn_c_try_link "$LINENO"; then : 1899 eval "$3=yes" 1900 else 1901 eval "$3=no" 1902 fi 1903 rm -f core conftest.err conftest.$ac_objext \ 1904 conftest$ac_exeext conftest.$ac_ext 1905 fi 1906 eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908 $as_echo "$ac_res" >&6; } 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 1911 } # ac_fn_c_check_func 1912 1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1914 # ------------------------------------------------------- 1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1916 # the include files in INCLUDES and setting the cache variable VAR 1917 # accordingly. 1918 ac_fn_c_check_header_mongrel () 1919 { 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 if eval \${$3+:} false; then : 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1923 $as_echo_n "checking for $2... " >&6; } 1924 if eval \${$3+:} false; then : 1925 $as_echo_n "(cached) " >&6 1926 fi 1927 eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929 $as_echo "$ac_res" >&6; } 1930 else 1931 # Is the header compilable? 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1933 $as_echo_n "checking $2 usability... " >&6; } 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935 /* end confdefs.h. */ 1936 $4 1937 #include <$2> 1938 _ACEOF 1939 if ac_fn_c_try_compile "$LINENO"; then : 1940 ac_header_compiler=yes 1941 else 1942 ac_header_compiler=no 1943 fi 1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1946 $as_echo "$ac_header_compiler" >&6; } 1947 1948 # Is the header present? 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1950 $as_echo_n "checking $2 presence... " >&6; } 1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952 /* end confdefs.h. */ 1953 #include <$2> 1954 _ACEOF 1955 if ac_fn_c_try_cpp "$LINENO"; then : 1956 ac_header_preproc=yes 1957 else 1958 ac_header_preproc=no 1959 fi 1960 rm -f conftest.err conftest.i conftest.$ac_ext 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1962 $as_echo "$ac_header_preproc" >&6; } 1963 1964 # So? What about this header? 1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1966 yes:no: ) 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1971 ;; 1972 no:yes:* ) 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1976 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1980 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1983 ( $as_echo "## ------------------------------------------------------------------------------- ## 1984 ## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues ## 1985 ## ------------------------------------------------------------------------------- ##" 1986 ) | sed "s/^/$as_me: WARNING: /" >&2 1987 ;; 1988 esac 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1990 $as_echo_n "checking for $2... " >&6; } 1991 if eval \${$3+:} false; then : 1992 $as_echo_n "(cached) " >&6 1993 else 1994 eval "$3=\$ac_header_compiler" 1995 fi 1996 eval ac_res=\$$3 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1998 $as_echo "$ac_res" >&6; } 1999 fi 2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2001 2002 } # ac_fn_c_check_header_mongrel 2003 cat >config.log <<_ACEOF 2004 This file contains any messages produced by compilers while 2005 running configure, to aid debugging if configure makes a mistake. 2006 2007 It was created by xf86-video-sis $as_me 0.12.0, which was 2008 generated by GNU Autoconf 2.69. Invocation command line was 2009 2010 $ $0 $@ 2011 2012 _ACEOF 2013 exec 5>>config.log 2014 { 2015 cat <<_ASUNAME 2016 ## --------- ## 2017 ## Platform. ## 2018 ## --------- ## 2019 2020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2021 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2022 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2023 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2024 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2025 2026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2028 2029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2032 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2036 2037 _ASUNAME 2038 2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2040 for as_dir in $PATH 2041 do 2042 IFS=$as_save_IFS 2043 test -z "$as_dir" && as_dir=. 2044 $as_echo "PATH: $as_dir" 2045 done 2046 IFS=$as_save_IFS 2047 2048 } >&5 2049 2050 cat >&5 <<_ACEOF 2051 2052 2053 ## ----------- ## 2054 ## Core tests. ## 2055 ## ----------- ## 2056 2057 _ACEOF 2058 2059 2060 # Keep a trace of the command line. 2061 # Strip out --no-create and --no-recursion so they do not pile up. 2062 # Strip out --silent because we don't want to record it for future runs. 2063 # Also quote any args containing shell meta-characters. 2064 # Make two passes to allow for proper duplicate-argument suppression. 2065 ac_configure_args= 2066 ac_configure_args0= 2067 ac_configure_args1= 2068 ac_must_keep_next=false 2069 for ac_pass in 1 2 2070 do 2071 for ac_arg 2072 do 2073 case $ac_arg in 2074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2076 | -silent | --silent | --silen | --sile | --sil) 2077 continue ;; 2078 *\'*) 2079 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2080 esac 2081 case $ac_pass in 2082 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2083 2) 2084 as_fn_append ac_configure_args1 " '$ac_arg'" 2085 if test $ac_must_keep_next = true; then 2086 ac_must_keep_next=false # Got value, back to normal. 2087 else 2088 case $ac_arg in 2089 *=* | --config-cache | -C | -disable-* | --disable-* \ 2090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2092 | -with-* | --with-* | -without-* | --without-* | --x) 2093 case "$ac_configure_args0 " in 2094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2095 esac 2096 ;; 2097 -* ) ac_must_keep_next=true ;; 2098 esac 2099 fi 2100 as_fn_append ac_configure_args " '$ac_arg'" 2101 ;; 2102 esac 2103 done 2104 done 2105 { ac_configure_args0=; unset ac_configure_args0;} 2106 { ac_configure_args1=; unset ac_configure_args1;} 2107 2108 # When interrupted or exit'd, cleanup temporary files, and complete 2109 # config.log. We remove comments because anyway the quotes in there 2110 # would cause problems or look ugly. 2111 # WARNING: Use '\'' to represent an apostrophe within the trap. 2112 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2113 trap 'exit_status=$? 2114 # Save into config.log some information that might help in debugging. 2115 { 2116 echo 2117 2118 $as_echo "## ---------------- ## 2119 ## Cache variables. ## 2120 ## ---------------- ##" 2121 echo 2122 # The following way of writing the cache mishandles newlines in values, 2123 ( 2124 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2125 eval ac_val=\$$ac_var 2126 case $ac_val in #( 2127 *${as_nl}*) 2128 case $ac_var in #( 2129 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2130 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2131 esac 2132 case $ac_var in #( 2133 _ | IFS | as_nl) ;; #( 2134 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2135 *) { eval $ac_var=; unset $ac_var;} ;; 2136 esac ;; 2137 esac 2138 done 2139 (set) 2>&1 | 2140 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2141 *${as_nl}ac_space=\ *) 2142 sed -n \ 2143 "s/'\''/'\''\\\\'\'''\''/g; 2144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2145 ;; #( 2146 *) 2147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2148 ;; 2149 esac | 2150 sort 2151 ) 2152 echo 2153 2154 $as_echo "## ----------------- ## 2155 ## Output variables. ## 2156 ## ----------------- ##" 2157 echo 2158 for ac_var in $ac_subst_vars 2159 do 2160 eval ac_val=\$$ac_var 2161 case $ac_val in 2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2163 esac 2164 $as_echo "$ac_var='\''$ac_val'\''" 2165 done | sort 2166 echo 2167 2168 if test -n "$ac_subst_files"; then 2169 $as_echo "## ------------------- ## 2170 ## File substitutions. ## 2171 ## ------------------- ##" 2172 echo 2173 for ac_var in $ac_subst_files 2174 do 2175 eval ac_val=\$$ac_var 2176 case $ac_val in 2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2178 esac 2179 $as_echo "$ac_var='\''$ac_val'\''" 2180 done | sort 2181 echo 2182 fi 2183 2184 if test -s confdefs.h; then 2185 $as_echo "## ----------- ## 2186 ## confdefs.h. ## 2187 ## ----------- ##" 2188 echo 2189 cat confdefs.h 2190 echo 2191 fi 2192 test "$ac_signal" != 0 && 2193 $as_echo "$as_me: caught signal $ac_signal" 2194 $as_echo "$as_me: exit $exit_status" 2195 } >&5 2196 rm -f core *.core core.conftest.* && 2197 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2198 exit $exit_status 2199 ' 0 2200 for ac_signal in 1 2 13 15; do 2201 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2202 done 2203 ac_signal=0 2204 2205 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2206 rm -f -r conftest* confdefs.h 2207 2208 $as_echo "/* confdefs.h */" > confdefs.h 2209 2210 # Predefined preprocessor variables. 2211 2212 cat >>confdefs.h <<_ACEOF 2213 #define PACKAGE_NAME "$PACKAGE_NAME" 2214 _ACEOF 2215 2216 cat >>confdefs.h <<_ACEOF 2217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2218 _ACEOF 2219 2220 cat >>confdefs.h <<_ACEOF 2221 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2222 _ACEOF 2223 2224 cat >>confdefs.h <<_ACEOF 2225 #define PACKAGE_STRING "$PACKAGE_STRING" 2226 _ACEOF 2227 2228 cat >>confdefs.h <<_ACEOF 2229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2230 _ACEOF 2231 2232 cat >>confdefs.h <<_ACEOF 2233 #define PACKAGE_URL "$PACKAGE_URL" 2234 _ACEOF 2235 2236 2237 # Let the site file select an alternate cache file if it wants to. 2238 # Prefer an explicitly selected file to automatically selected ones. 2239 ac_site_file1=NONE 2240 ac_site_file2=NONE 2241 if test -n "$CONFIG_SITE"; then 2242 # We do not want a PATH search for config.site. 2243 case $CONFIG_SITE in #(( 2244 -*) ac_site_file1=./$CONFIG_SITE;; 2245 */*) ac_site_file1=$CONFIG_SITE;; 2246 *) ac_site_file1=./$CONFIG_SITE;; 2247 esac 2248 elif test "x$prefix" != xNONE; then 2249 ac_site_file1=$prefix/share/config.site 2250 ac_site_file2=$prefix/etc/config.site 2251 else 2252 ac_site_file1=$ac_default_prefix/share/config.site 2253 ac_site_file2=$ac_default_prefix/etc/config.site 2254 fi 2255 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2256 do 2257 test "x$ac_site_file" = xNONE && continue 2258 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2260 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2261 sed 's/^/| /' "$ac_site_file" >&5 2262 . "$ac_site_file" \ 2263 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2265 as_fn_error $? "failed to load site script $ac_site_file 2266 See \`config.log' for more details" "$LINENO" 5; } 2267 fi 2268 done 2269 2270 if test -r "$cache_file"; then 2271 # Some versions of bash will fail to source /dev/null (special files 2272 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2273 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2275 $as_echo "$as_me: loading cache $cache_file" >&6;} 2276 case $cache_file in 2277 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2278 *) . "./$cache_file";; 2279 esac 2280 fi 2281 else 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2283 $as_echo "$as_me: creating cache $cache_file" >&6;} 2284 >$cache_file 2285 fi 2286 2287 # Check that the precious variables saved in the cache have kept the same 2288 # value. 2289 ac_cache_corrupted=false 2290 for ac_var in $ac_precious_vars; do 2291 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2292 eval ac_new_set=\$ac_env_${ac_var}_set 2293 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2294 eval ac_new_val=\$ac_env_${ac_var}_value 2295 case $ac_old_set,$ac_new_set in 2296 set,) 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2298 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2299 ac_cache_corrupted=: ;; 2300 ,set) 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2302 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2303 ac_cache_corrupted=: ;; 2304 ,);; 2305 *) 2306 if test "x$ac_old_val" != "x$ac_new_val"; then 2307 # differences in whitespace do not lead to failure. 2308 ac_old_val_w=`echo x $ac_old_val` 2309 ac_new_val_w=`echo x $ac_new_val` 2310 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2312 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2313 ac_cache_corrupted=: 2314 else 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2316 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2317 eval $ac_var=\$ac_old_val 2318 fi 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2320 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2322 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2323 fi;; 2324 esac 2325 # Pass precious variables to config.status. 2326 if test "$ac_new_set" = set; then 2327 case $ac_new_val in 2328 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2329 *) ac_arg=$ac_var=$ac_new_val ;; 2330 esac 2331 case " $ac_configure_args " in 2332 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2333 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2334 esac 2335 fi 2336 done 2337 if $ac_cache_corrupted; then 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2341 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2342 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2343 fi 2344 ## -------------------- ## 2345 ## Main body of script. ## 2346 ## -------------------- ## 2347 2348 ac_ext=c 2349 ac_cpp='$CPP $CPPFLAGS' 2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2353 2354 2355 2356 ac_config_headers="$ac_config_headers config.h" 2357 2358 ac_aux_dir= 2359 for ac_dir in . "$srcdir"/.; do 2360 if test -f "$ac_dir/install-sh"; then 2361 ac_aux_dir=$ac_dir 2362 ac_install_sh="$ac_aux_dir/install-sh -c" 2363 break 2364 elif test -f "$ac_dir/install.sh"; then 2365 ac_aux_dir=$ac_dir 2366 ac_install_sh="$ac_aux_dir/install.sh -c" 2367 break 2368 elif test -f "$ac_dir/shtool"; then 2369 ac_aux_dir=$ac_dir 2370 ac_install_sh="$ac_aux_dir/shtool install -c" 2371 break 2372 fi 2373 done 2374 if test -z "$ac_aux_dir"; then 2375 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2376 fi 2377 2378 # These three variables are undocumented and unsupported, 2379 # and are intended to be withdrawn in a future Autoconf release. 2380 # They can cause serious problems if a builder's source tree is in a directory 2381 # whose full name contains unusual characters. 2382 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2383 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2384 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2385 2386 2387 2388 # Initialize Automake 2389 am__api_version='1.15' 2390 2391 # Find a good install program. We prefer a C program (faster), 2392 # so one script is as good as another. But avoid the broken or 2393 # incompatible versions: 2394 # SysV /etc/install, /usr/sbin/install 2395 # SunOS /usr/etc/install 2396 # IRIX /sbin/install 2397 # AIX /bin/install 2398 # AmigaOS /C/install, which installs bootblocks on floppy discs 2399 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2402 # OS/2's system install, which has a completely different semantic 2403 # ./install, which can be erroneously created by make from ./install.sh. 2404 # Reject install programs that cannot install multiple files. 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2406 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2407 if test -z "$INSTALL"; then 2408 if ${ac_cv_path_install+:} false; then : 2409 $as_echo_n "(cached) " >&6 2410 else 2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412 for as_dir in $PATH 2413 do 2414 IFS=$as_save_IFS 2415 test -z "$as_dir" && as_dir=. 2416 # Account for people who put trailing slashes in PATH elements. 2417 case $as_dir/ in #(( 2418 ./ | .// | /[cC]/* | \ 2419 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2420 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2421 /usr/ucb/* ) ;; 2422 *) 2423 # OSF1 and SCO ODT 3.0 have their own names for install. 2424 # Don't use installbsd from OSF since it installs stuff as root 2425 # by default. 2426 for ac_prog in ginstall scoinst install; do 2427 for ac_exec_ext in '' $ac_executable_extensions; do 2428 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2429 if test $ac_prog = install && 2430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2431 # AIX install. It has an incompatible calling convention. 2432 : 2433 elif test $ac_prog = install && 2434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2435 # program-specific install script used by HP pwplus--don't use. 2436 : 2437 else 2438 rm -rf conftest.one conftest.two conftest.dir 2439 echo one > conftest.one 2440 echo two > conftest.two 2441 mkdir conftest.dir 2442 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2443 test -s conftest.one && test -s conftest.two && 2444 test -s conftest.dir/conftest.one && 2445 test -s conftest.dir/conftest.two 2446 then 2447 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2448 break 3 2449 fi 2450 fi 2451 fi 2452 done 2453 done 2454 ;; 2455 esac 2456 2457 done 2458 IFS=$as_save_IFS 2459 2460 rm -rf conftest.one conftest.two conftest.dir 2461 2462 fi 2463 if test "${ac_cv_path_install+set}" = set; then 2464 INSTALL=$ac_cv_path_install 2465 else 2466 # As a last resort, use the slow shell script. Don't cache a 2467 # value for INSTALL within a source directory, because that will 2468 # break other packages using the cache if that directory is 2469 # removed, or if the value is a relative name. 2470 INSTALL=$ac_install_sh 2471 fi 2472 fi 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2474 $as_echo "$INSTALL" >&6; } 2475 2476 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2477 # It thinks the first close brace ends the variable substitution. 2478 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2479 2480 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2481 2482 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2483 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2485 $as_echo_n "checking whether build environment is sane... " >&6; } 2486 # Reject unsafe characters in $srcdir or the absolute working directory 2487 # name. Accept space and tab only in the latter. 2488 am_lf=' 2489 ' 2490 case `pwd` in 2491 *[\\\"\#\$\&\'\`$am_lf]*) 2492 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2493 esac 2494 case $srcdir in 2495 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2496 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2497 esac 2498 2499 # Do 'set' in a subshell so we don't clobber the current shell's 2500 # arguments. Must try -L first in case configure is actually a 2501 # symlink; some systems play weird games with the mod time of symlinks 2502 # (eg FreeBSD returns the mod time of the symlink's containing 2503 # directory). 2504 if ( 2505 am_has_slept=no 2506 for am_try in 1 2; do 2507 echo "timestamp, slept: $am_has_slept" > conftest.file 2508 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2509 if test "$*" = "X"; then 2510 # -L didn't work. 2511 set X `ls -t "$srcdir/configure" conftest.file` 2512 fi 2513 if test "$*" != "X $srcdir/configure conftest.file" \ 2514 && test "$*" != "X conftest.file $srcdir/configure"; then 2515 2516 # If neither matched, then we have a broken ls. This can happen 2517 # if, for instance, CONFIG_SHELL is bash and it inherits a 2518 # broken ls alias from the environment. This has actually 2519 # happened. Such a system could not be considered "sane". 2520 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2521 alias in your environment" "$LINENO" 5 2522 fi 2523 if test "$2" = conftest.file || test $am_try -eq 2; then 2524 break 2525 fi 2526 # Just in case. 2527 sleep 1 2528 am_has_slept=yes 2529 done 2530 test "$2" = conftest.file 2531 ) 2532 then 2533 # Ok. 2534 : 2535 else 2536 as_fn_error $? "newly created file is older than distributed files! 2537 Check your system clock" "$LINENO" 5 2538 fi 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2540 $as_echo "yes" >&6; } 2541 # If we didn't sleep, we still need to ensure time stamps of config.status and 2542 # generated files are strictly newer. 2543 am_sleep_pid= 2544 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2545 ( sleep 1 ) & 2546 am_sleep_pid=$! 2547 fi 2548 2549 rm -f conftest.file 2550 2551 test "$program_prefix" != NONE && 2552 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2553 # Use a double $ so make ignores it. 2554 test "$program_suffix" != NONE && 2555 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2556 # Double any \ or $. 2557 # By default was `s,x,x', remove it if useless. 2558 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2559 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2560 2561 # Expand $ac_aux_dir to an absolute path. 2562 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2563 2564 if test x"${MISSING+set}" != xset; then 2565 case $am_aux_dir in 2566 *\ * | *\ *) 2567 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2568 *) 2569 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2570 esac 2571 fi 2572 # Use eval to expand $SHELL 2573 if eval "$MISSING --is-lightweight"; then 2574 am_missing_run="$MISSING " 2575 else 2576 am_missing_run= 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2578 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2579 fi 2580 2581 if test x"${install_sh+set}" != xset; then 2582 case $am_aux_dir in 2583 *\ * | *\ *) 2584 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2585 *) 2586 install_sh="\${SHELL} $am_aux_dir/install-sh" 2587 esac 2588 fi 2589 2590 # Installed binaries are usually stripped using 'strip' when the user 2591 # run "make install-strip". However 'strip' might not be the right 2592 # tool to use in cross-compilation environments, therefore Automake 2593 # will honor the 'STRIP' environment variable to overrule this program. 2594 if test "$cross_compiling" != no; then 2595 if test -n "$ac_tool_prefix"; then 2596 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2597 set dummy ${ac_tool_prefix}strip; ac_word=$2 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599 $as_echo_n "checking for $ac_word... " >&6; } 2600 if ${ac_cv_prog_STRIP+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602 else 2603 if test -n "$STRIP"; then 2604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2605 else 2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607 for as_dir in $PATH 2608 do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2613 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617 done 2618 done 2619 IFS=$as_save_IFS 2620 2621 fi 2622 fi 2623 STRIP=$ac_cv_prog_STRIP 2624 if test -n "$STRIP"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2626 $as_echo "$STRIP" >&6; } 2627 else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629 $as_echo "no" >&6; } 2630 fi 2631 2632 2633 fi 2634 if test -z "$ac_cv_prog_STRIP"; then 2635 ac_ct_STRIP=$STRIP 2636 # Extract the first word of "strip", so it can be a program name with args. 2637 set dummy strip; ac_word=$2 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639 $as_echo_n "checking for $ac_word... " >&6; } 2640 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642 else 2643 if test -n "$ac_ct_STRIP"; then 2644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2645 else 2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647 for as_dir in $PATH 2648 do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2653 ac_cv_prog_ac_ct_STRIP="strip" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657 done 2658 done 2659 IFS=$as_save_IFS 2660 2661 fi 2662 fi 2663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2664 if test -n "$ac_ct_STRIP"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2666 $as_echo "$ac_ct_STRIP" >&6; } 2667 else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669 $as_echo "no" >&6; } 2670 fi 2671 2672 if test "x$ac_ct_STRIP" = x; then 2673 STRIP=":" 2674 else 2675 case $cross_compiling:$ac_tool_warned in 2676 yes:) 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2679 ac_tool_warned=yes ;; 2680 esac 2681 STRIP=$ac_ct_STRIP 2682 fi 2683 else 2684 STRIP="$ac_cv_prog_STRIP" 2685 fi 2686 2687 fi 2688 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2689 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2691 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2692 if test -z "$MKDIR_P"; then 2693 if ${ac_cv_path_mkdir+:} false; then : 2694 $as_echo_n "(cached) " >&6 2695 else 2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2698 do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_prog in mkdir gmkdir; do 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2704 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2705 'mkdir (GNU coreutils) '* | \ 2706 'mkdir (coreutils) '* | \ 2707 'mkdir (fileutils) '4.1*) 2708 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2709 break 3;; 2710 esac 2711 done 2712 done 2713 done 2714 IFS=$as_save_IFS 2715 2716 fi 2717 2718 test -d ./--version && rmdir ./--version 2719 if test "${ac_cv_path_mkdir+set}" = set; then 2720 MKDIR_P="$ac_cv_path_mkdir -p" 2721 else 2722 # As a last resort, use the slow shell script. Don't cache a 2723 # value for MKDIR_P within a source directory, because that will 2724 # break other packages using the cache if that directory is 2725 # removed, or if the value is a relative name. 2726 MKDIR_P="$ac_install_sh -d" 2727 fi 2728 fi 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2730 $as_echo "$MKDIR_P" >&6; } 2731 2732 for ac_prog in gawk mawk nawk awk 2733 do 2734 # Extract the first word of "$ac_prog", so it can be a program name with args. 2735 set dummy $ac_prog; ac_word=$2 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2737 $as_echo_n "checking for $ac_word... " >&6; } 2738 if ${ac_cv_prog_AWK+:} false; then : 2739 $as_echo_n "(cached) " >&6 2740 else 2741 if test -n "$AWK"; then 2742 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2743 else 2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2745 for as_dir in $PATH 2746 do 2747 IFS=$as_save_IFS 2748 test -z "$as_dir" && as_dir=. 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2751 ac_cv_prog_AWK="$ac_prog" 2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755 done 2756 done 2757 IFS=$as_save_IFS 2758 2759 fi 2760 fi 2761 AWK=$ac_cv_prog_AWK 2762 if test -n "$AWK"; then 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2764 $as_echo "$AWK" >&6; } 2765 else 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767 $as_echo "no" >&6; } 2768 fi 2769 2770 2771 test -n "$AWK" && break 2772 done 2773 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2775 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2776 set x ${MAKE-make} 2777 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2778 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780 else 2781 cat >conftest.make <<\_ACEOF 2782 SHELL = /bin/sh 2783 all: 2784 @echo '@@@%%%=$(MAKE)=@@@%%%' 2785 _ACEOF 2786 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2787 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2788 *@@@%%%=?*=@@@%%%*) 2789 eval ac_cv_prog_make_${ac_make}_set=yes;; 2790 *) 2791 eval ac_cv_prog_make_${ac_make}_set=no;; 2792 esac 2793 rm -f conftest.make 2794 fi 2795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2797 $as_echo "yes" >&6; } 2798 SET_MAKE= 2799 else 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2801 $as_echo "no" >&6; } 2802 SET_MAKE="MAKE=${MAKE-make}" 2803 fi 2804 2805 rm -rf .tst 2>/dev/null 2806 mkdir .tst 2>/dev/null 2807 if test -d .tst; then 2808 am__leading_dot=. 2809 else 2810 am__leading_dot=_ 2811 fi 2812 rmdir .tst 2>/dev/null 2813 2814 # Check whether --enable-silent-rules was given. 2815 if test "${enable_silent_rules+set}" = set; then : 2816 enableval=$enable_silent_rules; 2817 fi 2818 2819 case $enable_silent_rules in # ((( 2820 yes) AM_DEFAULT_VERBOSITY=0;; 2821 no) AM_DEFAULT_VERBOSITY=1;; 2822 *) AM_DEFAULT_VERBOSITY=1;; 2823 esac 2824 am_make=${MAKE-make} 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2826 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2827 if ${am_cv_make_support_nested_variables+:} false; then : 2828 $as_echo_n "(cached) " >&6 2829 else 2830 if $as_echo 'TRUE=$(BAR$(V)) 2831 BAR0=false 2832 BAR1=true 2833 V=1 2834 am__doit: 2835 @$(TRUE) 2836 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2837 am_cv_make_support_nested_variables=yes 2838 else 2839 am_cv_make_support_nested_variables=no 2840 fi 2841 fi 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2843 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2844 if test $am_cv_make_support_nested_variables = yes; then 2845 AM_V='$(V)' 2846 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2847 else 2848 AM_V=$AM_DEFAULT_VERBOSITY 2849 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2850 fi 2851 AM_BACKSLASH='\' 2852 2853 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2854 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2855 # is not polluted with repeated "-I." 2856 am__isrc=' -I$(srcdir)' 2857 # test to see if srcdir already configured 2858 if test -f $srcdir/config.status; then 2859 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2860 fi 2861 fi 2862 2863 # test whether we have cygpath 2864 if test -z "$CYGPATH_W"; then 2865 if (cygpath --version) >/dev/null 2>/dev/null; then 2866 CYGPATH_W='cygpath -w' 2867 else 2868 CYGPATH_W=echo 2869 fi 2870 fi 2871 2872 2873 # Define the identity of the package. 2874 PACKAGE='xf86-video-sis' 2875 VERSION='0.12.0' 2876 2877 2878 cat >>confdefs.h <<_ACEOF 2879 #define PACKAGE "$PACKAGE" 2880 _ACEOF 2881 2882 2883 cat >>confdefs.h <<_ACEOF 2884 #define VERSION "$VERSION" 2885 _ACEOF 2886 2887 # Some tools Automake needs. 2888 2889 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2890 2891 2892 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2893 2894 2895 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2896 2897 2898 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2899 2900 2901 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2902 2903 # For better backward compatibility. To be removed once Automake 1.9.x 2904 # dies out for good. For more background, see: 2905 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2906 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2907 mkdir_p='$(MKDIR_P)' 2908 2909 # We need awk for the "check" target (and possibly the TAP driver). The 2910 # system "awk" is bad on some platforms. 2911 # Always define AMTAR for backward compatibility. Yes, it's still used 2912 # in the wild :-( We should find a proper way to deprecate it ... 2913 AMTAR='$${TAR-tar}' 2914 2915 2916 # We'll loop over all known methods to create a tar archive until one works. 2917 _am_tools='gnutar pax cpio none' 2918 2919 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2920 2921 2922 2923 2924 2925 2926 # POSIX will say in a future version that running "rm -f" with no argument 2927 # is OK; and we want to be able to make that assumption in our Makefile 2928 # recipes. So use an aggressive probe to check that the usage we want is 2929 # actually supported "in the wild" to an acceptable degree. 2930 # See automake bug#10828. 2931 # To make any issue more visible, cause the running configure to be aborted 2932 # by default if the 'rm' program in use doesn't match our expectations; the 2933 # user can still override this though. 2934 if rm -f && rm -fr && rm -rf; then : OK; else 2935 cat >&2 <<'END' 2936 Oops! 2937 2938 Your 'rm' program seems unable to run without file operands specified 2939 on the command line, even when the '-f' option is present. This is contrary 2940 to the behaviour of most rm programs out there, and not conforming with 2941 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2942 2943 Please tell bug-automake@gnu.org about your system, including the value 2944 of your $PATH and any error possibly output before this message. This 2945 can help us improve future automake versions. 2946 2947 END 2948 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2949 echo 'Configuration will proceed anyway, since you have set the' >&2 2950 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2951 echo >&2 2952 else 2953 cat >&2 <<'END' 2954 Aborting the configuration process, to ensure you take notice of the issue. 2955 2956 You can download and install GNU coreutils to get an 'rm' implementation 2957 that behaves properly: <http://www.gnu.org/software/coreutils/>. 2958 2959 If you want to complete the configuration process using your problematic 2960 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2961 to "yes", and re-run configure. 2962 2963 END 2964 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2965 fi 2966 fi 2967 2968 2969 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 DEPDIR="${am__leading_dot}deps" 2982 2983 ac_config_commands="$ac_config_commands depfiles" 2984 2985 2986 am_make=${MAKE-make} 2987 cat > confinc << 'END' 2988 am__doit: 2989 @echo this is the am__doit target 2990 .PHONY: am__doit 2991 END 2992 # If we don't find an include directive, just comment out the code. 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2994 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2995 am__include="#" 2996 am__quote= 2997 _am_result=none 2998 # First try GNU make style include. 2999 echo "include confinc" > confmf 3000 # Ignore all kinds of additional output from 'make'. 3001 case `$am_make -s -f confmf 2> /dev/null` in #( 3002 *the\ am__doit\ target*) 3003 am__include=include 3004 am__quote= 3005 _am_result=GNU 3006 ;; 3007 esac 3008 # Now try BSD make style include. 3009 if test "$am__include" = "#"; then 3010 echo '.include "confinc"' > confmf 3011 case `$am_make -s -f confmf 2> /dev/null` in #( 3012 *the\ am__doit\ target*) 3013 am__include=.include 3014 am__quote="\"" 3015 _am_result=BSD 3016 ;; 3017 esac 3018 fi 3019 3020 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3022 $as_echo "$_am_result" >&6; } 3023 rm -f confinc confmf 3024 3025 # Check whether --enable-dependency-tracking was given. 3026 if test "${enable_dependency_tracking+set}" = set; then : 3027 enableval=$enable_dependency_tracking; 3028 fi 3029 3030 if test "x$enable_dependency_tracking" != xno; then 3031 am_depcomp="$ac_aux_dir/depcomp" 3032 AMDEPBACKSLASH='\' 3033 am__nodep='_no' 3034 fi 3035 if test "x$enable_dependency_tracking" != xno; then 3036 AMDEP_TRUE= 3037 AMDEP_FALSE='#' 3038 else 3039 AMDEP_TRUE='#' 3040 AMDEP_FALSE= 3041 fi 3042 3043 3044 ac_ext=c 3045 ac_cpp='$CPP $CPPFLAGS' 3046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3048 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3049 if test -n "$ac_tool_prefix"; then 3050 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3051 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3053 $as_echo_n "checking for $ac_word... " >&6; } 3054 if ${ac_cv_prog_CC+:} false; then : 3055 $as_echo_n "(cached) " >&6 3056 else 3057 if test -n "$CC"; then 3058 ac_cv_prog_CC="$CC" # Let the user override the test. 3059 else 3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061 for as_dir in $PATH 3062 do 3063 IFS=$as_save_IFS 3064 test -z "$as_dir" && as_dir=. 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3067 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3069 break 2 3070 fi 3071 done 3072 done 3073 IFS=$as_save_IFS 3074 3075 fi 3076 fi 3077 CC=$ac_cv_prog_CC 3078 if test -n "$CC"; then 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3080 $as_echo "$CC" >&6; } 3081 else 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3083 $as_echo "no" >&6; } 3084 fi 3085 3086 3087 fi 3088 if test -z "$ac_cv_prog_CC"; then 3089 ac_ct_CC=$CC 3090 # Extract the first word of "gcc", so it can be a program name with args. 3091 set dummy gcc; ac_word=$2 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3093 $as_echo_n "checking for $ac_word... " >&6; } 3094 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096 else 3097 if test -n "$ac_ct_CC"; then 3098 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3099 else 3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3101 for as_dir in $PATH 3102 do 3103 IFS=$as_save_IFS 3104 test -z "$as_dir" && as_dir=. 3105 for ac_exec_ext in '' $ac_executable_extensions; do 3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3107 ac_cv_prog_ac_ct_CC="gcc" 3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3109 break 2 3110 fi 3111 done 3112 done 3113 IFS=$as_save_IFS 3114 3115 fi 3116 fi 3117 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3118 if test -n "$ac_ct_CC"; then 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3120 $as_echo "$ac_ct_CC" >&6; } 3121 else 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3123 $as_echo "no" >&6; } 3124 fi 3125 3126 if test "x$ac_ct_CC" = x; then 3127 CC="" 3128 else 3129 case $cross_compiling:$ac_tool_warned in 3130 yes:) 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3133 ac_tool_warned=yes ;; 3134 esac 3135 CC=$ac_ct_CC 3136 fi 3137 else 3138 CC="$ac_cv_prog_CC" 3139 fi 3140 3141 if test -z "$CC"; then 3142 if test -n "$ac_tool_prefix"; then 3143 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3144 set dummy ${ac_tool_prefix}cc; ac_word=$2 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3146 $as_echo_n "checking for $ac_word... " >&6; } 3147 if ${ac_cv_prog_CC+:} false; then : 3148 $as_echo_n "(cached) " >&6 3149 else 3150 if test -n "$CC"; then 3151 ac_cv_prog_CC="$CC" # Let the user override the test. 3152 else 3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3154 for as_dir in $PATH 3155 do 3156 IFS=$as_save_IFS 3157 test -z "$as_dir" && as_dir=. 3158 for ac_exec_ext in '' $ac_executable_extensions; do 3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3160 ac_cv_prog_CC="${ac_tool_prefix}cc" 3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3162 break 2 3163 fi 3164 done 3165 done 3166 IFS=$as_save_IFS 3167 3168 fi 3169 fi 3170 CC=$ac_cv_prog_CC 3171 if test -n "$CC"; then 3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3173 $as_echo "$CC" >&6; } 3174 else 3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3176 $as_echo "no" >&6; } 3177 fi 3178 3179 3180 fi 3181 fi 3182 if test -z "$CC"; then 3183 # Extract the first word of "cc", so it can be a program name with args. 3184 set dummy cc; ac_word=$2 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3186 $as_echo_n "checking for $ac_word... " >&6; } 3187 if ${ac_cv_prog_CC+:} false; then : 3188 $as_echo_n "(cached) " >&6 3189 else 3190 if test -n "$CC"; then 3191 ac_cv_prog_CC="$CC" # Let the user override the test. 3192 else 3193 ac_prog_rejected=no 3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195 for as_dir in $PATH 3196 do 3197 IFS=$as_save_IFS 3198 test -z "$as_dir" && as_dir=. 3199 for ac_exec_ext in '' $ac_executable_extensions; do 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3202 ac_prog_rejected=yes 3203 continue 3204 fi 3205 ac_cv_prog_CC="cc" 3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3207 break 2 3208 fi 3209 done 3210 done 3211 IFS=$as_save_IFS 3212 3213 if test $ac_prog_rejected = yes; then 3214 # We found a bogon in the path, so make sure we never use it. 3215 set dummy $ac_cv_prog_CC 3216 shift 3217 if test $# != 0; then 3218 # We chose a different compiler from the bogus one. 3219 # However, it has the same basename, so the bogon will be chosen 3220 # first if we set CC to just the basename; use the full file name. 3221 shift 3222 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3223 fi 3224 fi 3225 fi 3226 fi 3227 CC=$ac_cv_prog_CC 3228 if test -n "$CC"; then 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3230 $as_echo "$CC" >&6; } 3231 else 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233 $as_echo "no" >&6; } 3234 fi 3235 3236 3237 fi 3238 if test -z "$CC"; then 3239 if test -n "$ac_tool_prefix"; then 3240 for ac_prog in cl.exe 3241 do 3242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3245 $as_echo_n "checking for $ac_word... " >&6; } 3246 if ${ac_cv_prog_CC+:} false; then : 3247 $as_echo_n "(cached) " >&6 3248 else 3249 if test -n "$CC"; then 3250 ac_cv_prog_CC="$CC" # Let the user override the test. 3251 else 3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253 for as_dir in $PATH 3254 do 3255 IFS=$as_save_IFS 3256 test -z "$as_dir" && as_dir=. 3257 for ac_exec_ext in '' $ac_executable_extensions; do 3258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3259 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3261 break 2 3262 fi 3263 done 3264 done 3265 IFS=$as_save_IFS 3266 3267 fi 3268 fi 3269 CC=$ac_cv_prog_CC 3270 if test -n "$CC"; then 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3272 $as_echo "$CC" >&6; } 3273 else 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3275 $as_echo "no" >&6; } 3276 fi 3277 3278 3279 test -n "$CC" && break 3280 done 3281 fi 3282 if test -z "$CC"; then 3283 ac_ct_CC=$CC 3284 for ac_prog in cl.exe 3285 do 3286 # Extract the first word of "$ac_prog", so it can be a program name with args. 3287 set dummy $ac_prog; ac_word=$2 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3289 $as_echo_n "checking for $ac_word... " >&6; } 3290 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3291 $as_echo_n "(cached) " >&6 3292 else 3293 if test -n "$ac_ct_CC"; then 3294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3295 else 3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3297 for as_dir in $PATH 3298 do 3299 IFS=$as_save_IFS 3300 test -z "$as_dir" && as_dir=. 3301 for ac_exec_ext in '' $ac_executable_extensions; do 3302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3303 ac_cv_prog_ac_ct_CC="$ac_prog" 3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3305 break 2 3306 fi 3307 done 3308 done 3309 IFS=$as_save_IFS 3310 3311 fi 3312 fi 3313 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3314 if test -n "$ac_ct_CC"; then 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3316 $as_echo "$ac_ct_CC" >&6; } 3317 else 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3319 $as_echo "no" >&6; } 3320 fi 3321 3322 3323 test -n "$ac_ct_CC" && break 3324 done 3325 3326 if test "x$ac_ct_CC" = x; then 3327 CC="" 3328 else 3329 case $cross_compiling:$ac_tool_warned in 3330 yes:) 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3333 ac_tool_warned=yes ;; 3334 esac 3335 CC=$ac_ct_CC 3336 fi 3337 fi 3338 3339 fi 3340 3341 3342 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3344 as_fn_error $? "no acceptable C compiler found in \$PATH 3345 See \`config.log' for more details" "$LINENO" 5; } 3346 3347 # Provide some information about the compiler. 3348 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3349 set X $ac_compile 3350 ac_compiler=$2 3351 for ac_option in --version -v -V -qversion; do 3352 { { ac_try="$ac_compiler $ac_option >&5" 3353 case "(($ac_try" in 3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3355 *) ac_try_echo=$ac_try;; 3356 esac 3357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3358 $as_echo "$ac_try_echo"; } >&5 3359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3360 ac_status=$? 3361 if test -s conftest.err; then 3362 sed '10a\ 3363 ... rest of stderr output deleted ... 3364 10q' conftest.err >conftest.er1 3365 cat conftest.er1 >&5 3366 fi 3367 rm -f conftest.er1 conftest.err 3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3369 test $ac_status = 0; } 3370 done 3371 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373 /* end confdefs.h. */ 3374 3375 int 3376 main () 3377 { 3378 3379 ; 3380 return 0; 3381 } 3382 _ACEOF 3383 ac_clean_files_save=$ac_clean_files 3384 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3385 # Try to create an executable without -o first, disregard a.out. 3386 # It will help us diagnose broken compilers, and finding out an intuition 3387 # of exeext. 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3389 $as_echo_n "checking whether the C compiler works... " >&6; } 3390 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3391 3392 # The possible output files: 3393 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3394 3395 ac_rmfiles= 3396 for ac_file in $ac_files 3397 do 3398 case $ac_file in 3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3400 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3401 esac 3402 done 3403 rm -f $ac_rmfiles 3404 3405 if { { ac_try="$ac_link_default" 3406 case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409 esac 3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411 $as_echo "$ac_try_echo"; } >&5 3412 (eval "$ac_link_default") 2>&5 3413 ac_status=$? 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3415 test $ac_status = 0; }; then : 3416 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3417 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3418 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3419 # so that the user can short-circuit this test for compilers unknown to 3420 # Autoconf. 3421 for ac_file in $ac_files '' 3422 do 3423 test -f "$ac_file" || continue 3424 case $ac_file in 3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3426 ;; 3427 [ab].out ) 3428 # We found the default executable, but exeext='' is most 3429 # certainly right. 3430 break;; 3431 *.* ) 3432 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3433 then :; else 3434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3435 fi 3436 # We set ac_cv_exeext here because the later test for it is not 3437 # safe: cross compilers may not add the suffix if given an `-o' 3438 # argument, so we may need to know it at that point already. 3439 # Even if this section looks crufty: it has the advantage of 3440 # actually working. 3441 break;; 3442 * ) 3443 break;; 3444 esac 3445 done 3446 test "$ac_cv_exeext" = no && ac_cv_exeext= 3447 3448 else 3449 ac_file='' 3450 fi 3451 if test -z "$ac_file"; then : 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453 $as_echo "no" >&6; } 3454 $as_echo "$as_me: failed program was:" >&5 3455 sed 's/^/| /' conftest.$ac_ext >&5 3456 3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3459 as_fn_error 77 "C compiler cannot create executables 3460 See \`config.log' for more details" "$LINENO" 5; } 3461 else 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3463 $as_echo "yes" >&6; } 3464 fi 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3466 $as_echo_n "checking for C compiler default output file name... " >&6; } 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3468 $as_echo "$ac_file" >&6; } 3469 ac_exeext=$ac_cv_exeext 3470 3471 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3472 ac_clean_files=$ac_clean_files_save 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3474 $as_echo_n "checking for suffix of executables... " >&6; } 3475 if { { ac_try="$ac_link" 3476 case "(($ac_try" in 3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3478 *) ac_try_echo=$ac_try;; 3479 esac 3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3481 $as_echo "$ac_try_echo"; } >&5 3482 (eval "$ac_link") 2>&5 3483 ac_status=$? 3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3485 test $ac_status = 0; }; then : 3486 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3487 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3488 # work properly (i.e., refer to `conftest.exe'), while it won't with 3489 # `rm'. 3490 for ac_file in conftest.exe conftest conftest.*; do 3491 test -f "$ac_file" || continue 3492 case $ac_file in 3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3495 break;; 3496 * ) break;; 3497 esac 3498 done 3499 else 3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3502 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3503 See \`config.log' for more details" "$LINENO" 5; } 3504 fi 3505 rm -f conftest conftest$ac_cv_exeext 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3507 $as_echo "$ac_cv_exeext" >&6; } 3508 3509 rm -f conftest.$ac_ext 3510 EXEEXT=$ac_cv_exeext 3511 ac_exeext=$EXEEXT 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513 /* end confdefs.h. */ 3514 #include <stdio.h> 3515 int 3516 main () 3517 { 3518 FILE *f = fopen ("conftest.out", "w"); 3519 return ferror (f) || fclose (f) != 0; 3520 3521 ; 3522 return 0; 3523 } 3524 _ACEOF 3525 ac_clean_files="$ac_clean_files conftest.out" 3526 # Check that the compiler produces executables we can run. If not, either 3527 # the compiler is broken, or we cross compile. 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3529 $as_echo_n "checking whether we are cross compiling... " >&6; } 3530 if test "$cross_compiling" != yes; then 3531 { { ac_try="$ac_link" 3532 case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535 esac 3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3537 $as_echo "$ac_try_echo"; } >&5 3538 (eval "$ac_link") 2>&5 3539 ac_status=$? 3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3541 test $ac_status = 0; } 3542 if { ac_try='./conftest$ac_cv_exeext' 3543 { { case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546 esac 3547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548 $as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_try") 2>&5 3550 ac_status=$? 3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3552 test $ac_status = 0; }; }; then 3553 cross_compiling=no 3554 else 3555 if test "$cross_compiling" = maybe; then 3556 cross_compiling=yes 3557 else 3558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3560 as_fn_error $? "cannot run C compiled programs. 3561 If you meant to cross compile, use \`--host'. 3562 See \`config.log' for more details" "$LINENO" 5; } 3563 fi 3564 fi 3565 fi 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3567 $as_echo "$cross_compiling" >&6; } 3568 3569 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3570 ac_clean_files=$ac_clean_files_save 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3572 $as_echo_n "checking for suffix of object files... " >&6; } 3573 if ${ac_cv_objext+:} false; then : 3574 $as_echo_n "(cached) " >&6 3575 else 3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577 /* end confdefs.h. */ 3578 3579 int 3580 main () 3581 { 3582 3583 ; 3584 return 0; 3585 } 3586 _ACEOF 3587 rm -f conftest.o conftest.obj 3588 if { { ac_try="$ac_compile" 3589 case "(($ac_try" in 3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3591 *) ac_try_echo=$ac_try;; 3592 esac 3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3594 $as_echo "$ac_try_echo"; } >&5 3595 (eval "$ac_compile") 2>&5 3596 ac_status=$? 3597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3598 test $ac_status = 0; }; then : 3599 for ac_file in conftest.o conftest.obj conftest.*; do 3600 test -f "$ac_file" || continue; 3601 case $ac_file in 3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3604 break;; 3605 esac 3606 done 3607 else 3608 $as_echo "$as_me: failed program was:" >&5 3609 sed 's/^/| /' conftest.$ac_ext >&5 3610 3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3613 as_fn_error $? "cannot compute suffix of object files: cannot compile 3614 See \`config.log' for more details" "$LINENO" 5; } 3615 fi 3616 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3617 fi 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3619 $as_echo "$ac_cv_objext" >&6; } 3620 OBJEXT=$ac_cv_objext 3621 ac_objext=$OBJEXT 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3624 if ${ac_cv_c_compiler_gnu+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626 else 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3628 /* end confdefs.h. */ 3629 3630 int 3631 main () 3632 { 3633 #ifndef __GNUC__ 3634 choke me 3635 #endif 3636 3637 ; 3638 return 0; 3639 } 3640 _ACEOF 3641 if ac_fn_c_try_compile "$LINENO"; then : 3642 ac_compiler_gnu=yes 3643 else 3644 ac_compiler_gnu=no 3645 fi 3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3647 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3648 3649 fi 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3651 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3652 if test $ac_compiler_gnu = yes; then 3653 GCC=yes 3654 else 3655 GCC= 3656 fi 3657 ac_test_CFLAGS=${CFLAGS+set} 3658 ac_save_CFLAGS=$CFLAGS 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3660 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3661 if ${ac_cv_prog_cc_g+:} false; then : 3662 $as_echo_n "(cached) " >&6 3663 else 3664 ac_save_c_werror_flag=$ac_c_werror_flag 3665 ac_c_werror_flag=yes 3666 ac_cv_prog_cc_g=no 3667 CFLAGS="-g" 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669 /* end confdefs.h. */ 3670 3671 int 3672 main () 3673 { 3674 3675 ; 3676 return 0; 3677 } 3678 _ACEOF 3679 if ac_fn_c_try_compile "$LINENO"; then : 3680 ac_cv_prog_cc_g=yes 3681 else 3682 CFLAGS="" 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684 /* end confdefs.h. */ 3685 3686 int 3687 main () 3688 { 3689 3690 ; 3691 return 0; 3692 } 3693 _ACEOF 3694 if ac_fn_c_try_compile "$LINENO"; then : 3695 3696 else 3697 ac_c_werror_flag=$ac_save_c_werror_flag 3698 CFLAGS="-g" 3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3700 /* end confdefs.h. */ 3701 3702 int 3703 main () 3704 { 3705 3706 ; 3707 return 0; 3708 } 3709 _ACEOF 3710 if ac_fn_c_try_compile "$LINENO"; then : 3711 ac_cv_prog_cc_g=yes 3712 fi 3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3714 fi 3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716 fi 3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718 ac_c_werror_flag=$ac_save_c_werror_flag 3719 fi 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3721 $as_echo "$ac_cv_prog_cc_g" >&6; } 3722 if test "$ac_test_CFLAGS" = set; then 3723 CFLAGS=$ac_save_CFLAGS 3724 elif test $ac_cv_prog_cc_g = yes; then 3725 if test "$GCC" = yes; then 3726 CFLAGS="-g -O2" 3727 else 3728 CFLAGS="-g" 3729 fi 3730 else 3731 if test "$GCC" = yes; then 3732 CFLAGS="-O2" 3733 else 3734 CFLAGS= 3735 fi 3736 fi 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3739 if ${ac_cv_prog_cc_c89+:} false; then : 3740 $as_echo_n "(cached) " >&6 3741 else 3742 ac_cv_prog_cc_c89=no 3743 ac_save_CC=$CC 3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745 /* end confdefs.h. */ 3746 #include <stdarg.h> 3747 #include <stdio.h> 3748 struct stat; 3749 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3750 struct buf { int x; }; 3751 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3752 static char *e (p, i) 3753 char **p; 3754 int i; 3755 { 3756 return p[i]; 3757 } 3758 static char *f (char * (*g) (char **, int), char **p, ...) 3759 { 3760 char *s; 3761 va_list v; 3762 va_start (v,p); 3763 s = g (p, va_arg (v,int)); 3764 va_end (v); 3765 return s; 3766 } 3767 3768 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3769 function prototypes and stuff, but not '\xHH' hex character constants. 3770 These don't provoke an error unfortunately, instead are silently treated 3771 as 'x'. The following induces an error, until -std is added to get 3772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3773 array size at least. It's necessary to write '\x00'==0 to get something 3774 that's true only with -std. */ 3775 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3776 3777 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3778 inside strings and character constants. */ 3779 #define FOO(x) 'x' 3780 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3781 3782 int test (int i, double x); 3783 struct s1 {int (*f) (int a);}; 3784 struct s2 {int (*f) (double a);}; 3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3786 int argc; 3787 char **argv; 3788 int 3789 main () 3790 { 3791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3792 ; 3793 return 0; 3794 } 3795 _ACEOF 3796 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3798 do 3799 CC="$ac_save_CC $ac_arg" 3800 if ac_fn_c_try_compile "$LINENO"; then : 3801 ac_cv_prog_cc_c89=$ac_arg 3802 fi 3803 rm -f core conftest.err conftest.$ac_objext 3804 test "x$ac_cv_prog_cc_c89" != "xno" && break 3805 done 3806 rm -f conftest.$ac_ext 3807 CC=$ac_save_CC 3808 3809 fi 3810 # AC_CACHE_VAL 3811 case "x$ac_cv_prog_cc_c89" in 3812 x) 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3814 $as_echo "none needed" >&6; } ;; 3815 xno) 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3817 $as_echo "unsupported" >&6; } ;; 3818 *) 3819 CC="$CC $ac_cv_prog_cc_c89" 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3821 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3822 esac 3823 if test "x$ac_cv_prog_cc_c89" != xno; then : 3824 3825 fi 3826 3827 ac_ext=c 3828 ac_cpp='$CPP $CPPFLAGS' 3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3832 3833 ac_ext=c 3834 ac_cpp='$CPP $CPPFLAGS' 3835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3837 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3839 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3840 if ${am_cv_prog_cc_c_o+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842 else 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844 /* end confdefs.h. */ 3845 3846 int 3847 main () 3848 { 3849 3850 ; 3851 return 0; 3852 } 3853 _ACEOF 3854 # Make sure it works both with $CC and with simple cc. 3855 # Following AC_PROG_CC_C_O, we do the test twice because some 3856 # compilers refuse to overwrite an existing .o file with -o, 3857 # though they will create one. 3858 am_cv_prog_cc_c_o=yes 3859 for am_i in 1 2; do 3860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3862 ac_status=$? 3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3864 (exit $ac_status); } \ 3865 && test -f conftest2.$ac_objext; then 3866 : OK 3867 else 3868 am_cv_prog_cc_c_o=no 3869 break 3870 fi 3871 done 3872 rm -f core conftest* 3873 unset am_i 3874 fi 3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3876 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3877 if test "$am_cv_prog_cc_c_o" != yes; then 3878 # Losing compiler, so override with the script. 3879 # FIXME: It is wrong to rewrite CC. 3880 # But if we don't then we get into trouble of one sort or another. 3881 # A longer-term fix would be to have automake use am__CC in this case, 3882 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3883 CC="$am_aux_dir/compile $CC" 3884 fi 3885 ac_ext=c 3886 ac_cpp='$CPP $CPPFLAGS' 3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3890 3891 3892 depcc="$CC" am_compiler_list= 3893 3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3895 $as_echo_n "checking dependency style of $depcc... " >&6; } 3896 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3897 $as_echo_n "(cached) " >&6 3898 else 3899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3900 # We make a subdir and do the tests there. Otherwise we can end up 3901 # making bogus files that we don't know about and never remove. For 3902 # instance it was reported that on HP-UX the gcc test will end up 3903 # making a dummy file named 'D' -- because '-MD' means "put the output 3904 # in D". 3905 rm -rf conftest.dir 3906 mkdir conftest.dir 3907 # Copy depcomp to subdir because otherwise we won't find it if we're 3908 # using a relative directory. 3909 cp "$am_depcomp" conftest.dir 3910 cd conftest.dir 3911 # We will build objects and dependencies in a subdirectory because 3912 # it helps to detect inapplicable dependency modes. For instance 3913 # both Tru64's cc and ICC support -MD to output dependencies as a 3914 # side effect of compilation, but ICC will put the dependencies in 3915 # the current directory while Tru64 will put them in the object 3916 # directory. 3917 mkdir sub 3918 3919 am_cv_CC_dependencies_compiler_type=none 3920 if test "$am_compiler_list" = ""; then 3921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3922 fi 3923 am__universal=false 3924 case " $depcc " in #( 3925 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3926 esac 3927 3928 for depmode in $am_compiler_list; do 3929 # Setup a source with many dependencies, because some compilers 3930 # like to wrap large dependency lists on column 80 (with \), and 3931 # we should not choose a depcomp mode which is confused by this. 3932 # 3933 # We need to recreate these files for each test, as the compiler may 3934 # overwrite some of them when testing with obscure command lines. 3935 # This happens at least with the AIX C compiler. 3936 : > sub/conftest.c 3937 for i in 1 2 3 4 5 6; do 3938 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3940 # Solaris 10 /bin/sh. 3941 echo '/* dummy */' > sub/conftst$i.h 3942 done 3943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3944 3945 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3946 # mode. It turns out that the SunPro C++ compiler does not properly 3947 # handle '-M -o', and we need to detect this. Also, some Intel 3948 # versions had trouble with output in subdirs. 3949 am__obj=sub/conftest.${OBJEXT-o} 3950 am__minus_obj="-o $am__obj" 3951 case $depmode in 3952 gcc) 3953 # This depmode causes a compiler race in universal mode. 3954 test "$am__universal" = false || continue 3955 ;; 3956 nosideeffect) 3957 # After this tag, mechanisms are not by side-effect, so they'll 3958 # only be used when explicitly requested. 3959 if test "x$enable_dependency_tracking" = xyes; then 3960 continue 3961 else 3962 break 3963 fi 3964 ;; 3965 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3966 # This compiler won't grok '-c -o', but also, the minuso test has 3967 # not run yet. These depmodes are late enough in the game, and 3968 # so weak that their functioning should not be impacted. 3969 am__obj=conftest.${OBJEXT-o} 3970 am__minus_obj= 3971 ;; 3972 none) break ;; 3973 esac 3974 if depmode=$depmode \ 3975 source=sub/conftest.c object=$am__obj \ 3976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3978 >/dev/null 2>conftest.err && 3979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3983 # icc doesn't choke on unknown options, it will just issue warnings 3984 # or remarks (even with -Werror). So we grep stderr for any message 3985 # that says an option was ignored or not supported. 3986 # When given -MP, icc 7.0 and 7.1 complain thusly: 3987 # icc: Command line warning: ignoring option '-M'; no argument required 3988 # The diagnosis changed in icc 8.0: 3989 # icc: Command line remark: option '-MP' not supported 3990 if (grep 'ignoring option' conftest.err || 3991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3992 am_cv_CC_dependencies_compiler_type=$depmode 3993 break 3994 fi 3995 fi 3996 done 3997 3998 cd .. 3999 rm -rf conftest.dir 4000 else 4001 am_cv_CC_dependencies_compiler_type=none 4002 fi 4003 4004 fi 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4006 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4007 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4008 4009 if 4010 test "x$enable_dependency_tracking" != xno \ 4011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4012 am__fastdepCC_TRUE= 4013 am__fastdepCC_FALSE='#' 4014 else 4015 am__fastdepCC_TRUE='#' 4016 am__fastdepCC_FALSE= 4017 fi 4018 4019 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4021 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4022 if ${ac_cv_prog_cc_c99+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024 else 4025 ac_cv_prog_cc_c99=no 4026 ac_save_CC=$CC 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028 /* end confdefs.h. */ 4029 #include <stdarg.h> 4030 #include <stdbool.h> 4031 #include <stdlib.h> 4032 #include <wchar.h> 4033 #include <stdio.h> 4034 4035 // Check varargs macros. These examples are taken from C99 6.10.3.5. 4036 #define debug(...) fprintf (stderr, __VA_ARGS__) 4037 #define showlist(...) puts (#__VA_ARGS__) 4038 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4039 static void 4040 test_varargs_macros (void) 4041 { 4042 int x = 1234; 4043 int y = 5678; 4044 debug ("Flag"); 4045 debug ("X = %d\n", x); 4046 showlist (The first, second, and third items.); 4047 report (x>y, "x is %d but y is %d", x, y); 4048 } 4049 4050 // Check long long types. 4051 #define BIG64 18446744073709551615ull 4052 #define BIG32 4294967295ul 4053 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4054 #if !BIG_OK 4055 your preprocessor is broken; 4056 #endif 4057 #if BIG_OK 4058 #else 4059 your preprocessor is broken; 4060 #endif 4061 static long long int bignum = -9223372036854775807LL; 4062 static unsigned long long int ubignum = BIG64; 4063 4064 struct incomplete_array 4065 { 4066 int datasize; 4067 double data[]; 4068 }; 4069 4070 struct named_init { 4071 int number; 4072 const wchar_t *name; 4073 double average; 4074 }; 4075 4076 typedef const char *ccp; 4077 4078 static inline int 4079 test_restrict (ccp restrict text) 4080 { 4081 // See if C++-style comments work. 4082 // Iterate through items via the restricted pointer. 4083 // Also check for declarations in for loops. 4084 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4085 continue; 4086 return 0; 4087 } 4088 4089 // Check varargs and va_copy. 4090 static void 4091 test_varargs (const char *format, ...) 4092 { 4093 va_list args; 4094 va_start (args, format); 4095 va_list args_copy; 4096 va_copy (args_copy, args); 4097 4098 const char *str; 4099 int number; 4100 float fnumber; 4101 4102 while (*format) 4103 { 4104 switch (*format++) 4105 { 4106 case 's': // string 4107 str = va_arg (args_copy, const char *); 4108 break; 4109 case 'd': // int 4110 number = va_arg (args_copy, int); 4111 break; 4112 case 'f': // float 4113 fnumber = va_arg (args_copy, double); 4114 break; 4115 default: 4116 break; 4117 } 4118 } 4119 va_end (args_copy); 4120 va_end (args); 4121 } 4122 4123 int 4124 main () 4125 { 4126 4127 // Check bool. 4128 _Bool success = false; 4129 4130 // Check restrict. 4131 if (test_restrict ("String literal") == 0) 4132 success = true; 4133 char *restrict newvar = "Another string"; 4134 4135 // Check varargs. 4136 test_varargs ("s, d' f .", "string", 65, 34.234); 4137 test_varargs_macros (); 4138 4139 // Check flexible array members. 4140 struct incomplete_array *ia = 4141 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4142 ia->datasize = 10; 4143 for (int i = 0; i < ia->datasize; ++i) 4144 ia->data[i] = i * 1.234; 4145 4146 // Check named initializers. 4147 struct named_init ni = { 4148 .number = 34, 4149 .name = L"Test wide string", 4150 .average = 543.34343, 4151 }; 4152 4153 ni.number = 58; 4154 4155 int dynamic_array[ni.number]; 4156 dynamic_array[ni.number - 1] = 543; 4157 4158 // work around unused variable warnings 4159 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4160 || dynamic_array[ni.number - 1] != 543); 4161 4162 ; 4163 return 0; 4164 } 4165 _ACEOF 4166 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4167 do 4168 CC="$ac_save_CC $ac_arg" 4169 if ac_fn_c_try_compile "$LINENO"; then : 4170 ac_cv_prog_cc_c99=$ac_arg 4171 fi 4172 rm -f core conftest.err conftest.$ac_objext 4173 test "x$ac_cv_prog_cc_c99" != "xno" && break 4174 done 4175 rm -f conftest.$ac_ext 4176 CC=$ac_save_CC 4177 4178 fi 4179 # AC_CACHE_VAL 4180 case "x$ac_cv_prog_cc_c99" in 4181 x) 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4183 $as_echo "none needed" >&6; } ;; 4184 xno) 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4186 $as_echo "unsupported" >&6; } ;; 4187 *) 4188 CC="$CC $ac_cv_prog_cc_c99" 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4190 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4191 esac 4192 if test "x$ac_cv_prog_cc_c99" != xno; then : 4193 4194 fi 4195 4196 4197 4198 ac_ext=c 4199 ac_cpp='$CPP $CPPFLAGS' 4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4204 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4205 # On Suns, sometimes $CPP names a directory. 4206 if test -n "$CPP" && test -d "$CPP"; then 4207 CPP= 4208 fi 4209 if test -z "$CPP"; then 4210 if ${ac_cv_prog_CPP+:} false; then : 4211 $as_echo_n "(cached) " >&6 4212 else 4213 # Double quotes because CPP needs to be expanded 4214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4215 do 4216 ac_preproc_ok=false 4217 for ac_c_preproc_warn_flag in '' yes 4218 do 4219 # Use a header file that comes with gcc, so configuring glibc 4220 # with a fresh cross-compiler works. 4221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4222 # <limits.h> exists even on freestanding compilers. 4223 # On the NeXT, cc -E runs the code through the compiler's parser, 4224 # not just through cpp. "Syntax error" is here to catch this case. 4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4226 /* end confdefs.h. */ 4227 #ifdef __STDC__ 4228 # include <limits.h> 4229 #else 4230 # include <assert.h> 4231 #endif 4232 Syntax error 4233 _ACEOF 4234 if ac_fn_c_try_cpp "$LINENO"; then : 4235 4236 else 4237 # Broken: fails on valid input. 4238 continue 4239 fi 4240 rm -f conftest.err conftest.i conftest.$ac_ext 4241 4242 # OK, works on sane cases. Now check whether nonexistent headers 4243 # can be detected and how. 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245 /* end confdefs.h. */ 4246 #include <ac_nonexistent.h> 4247 _ACEOF 4248 if ac_fn_c_try_cpp "$LINENO"; then : 4249 # Broken: success on invalid input. 4250 continue 4251 else 4252 # Passes both tests. 4253 ac_preproc_ok=: 4254 break 4255 fi 4256 rm -f conftest.err conftest.i conftest.$ac_ext 4257 4258 done 4259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4260 rm -f conftest.i conftest.err conftest.$ac_ext 4261 if $ac_preproc_ok; then : 4262 break 4263 fi 4264 4265 done 4266 ac_cv_prog_CPP=$CPP 4267 4268 fi 4269 CPP=$ac_cv_prog_CPP 4270 else 4271 ac_cv_prog_CPP=$CPP 4272 fi 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4274 $as_echo "$CPP" >&6; } 4275 ac_preproc_ok=false 4276 for ac_c_preproc_warn_flag in '' yes 4277 do 4278 # Use a header file that comes with gcc, so configuring glibc 4279 # with a fresh cross-compiler works. 4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4281 # <limits.h> exists even on freestanding compilers. 4282 # On the NeXT, cc -E runs the code through the compiler's parser, 4283 # not just through cpp. "Syntax error" is here to catch this case. 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285 /* end confdefs.h. */ 4286 #ifdef __STDC__ 4287 # include <limits.h> 4288 #else 4289 # include <assert.h> 4290 #endif 4291 Syntax error 4292 _ACEOF 4293 if ac_fn_c_try_cpp "$LINENO"; then : 4294 4295 else 4296 # Broken: fails on valid input. 4297 continue 4298 fi 4299 rm -f conftest.err conftest.i conftest.$ac_ext 4300 4301 # OK, works on sane cases. Now check whether nonexistent headers 4302 # can be detected and how. 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304 /* end confdefs.h. */ 4305 #include <ac_nonexistent.h> 4306 _ACEOF 4307 if ac_fn_c_try_cpp "$LINENO"; then : 4308 # Broken: success on invalid input. 4309 continue 4310 else 4311 # Passes both tests. 4312 ac_preproc_ok=: 4313 break 4314 fi 4315 rm -f conftest.err conftest.i conftest.$ac_ext 4316 4317 done 4318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4319 rm -f conftest.i conftest.err conftest.$ac_ext 4320 if $ac_preproc_ok; then : 4321 4322 else 4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4325 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4326 See \`config.log' for more details" "$LINENO" 5; } 4327 fi 4328 4329 ac_ext=c 4330 ac_cpp='$CPP $CPPFLAGS' 4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4334 4335 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4337 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4338 if ${ac_cv_path_GREP+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340 else 4341 if test -z "$GREP"; then 4342 ac_path_GREP_found=false 4343 # Loop through the user's path and test for each of PROGNAME-LIST 4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4346 do 4347 IFS=$as_save_IFS 4348 test -z "$as_dir" && as_dir=. 4349 for ac_prog in grep ggrep; do 4350 for ac_exec_ext in '' $ac_executable_extensions; do 4351 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4352 as_fn_executable_p "$ac_path_GREP" || continue 4353 # Check for GNU ac_path_GREP and select it if it is found. 4354 # Check for GNU $ac_path_GREP 4355 case `"$ac_path_GREP" --version 2>&1` in 4356 *GNU*) 4357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4358 *) 4359 ac_count=0 4360 $as_echo_n 0123456789 >"conftest.in" 4361 while : 4362 do 4363 cat "conftest.in" "conftest.in" >"conftest.tmp" 4364 mv "conftest.tmp" "conftest.in" 4365 cp "conftest.in" "conftest.nl" 4366 $as_echo 'GREP' >> "conftest.nl" 4367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4369 as_fn_arith $ac_count + 1 && ac_count=$as_val 4370 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4371 # Best one so far, save it but keep looking for a better one 4372 ac_cv_path_GREP="$ac_path_GREP" 4373 ac_path_GREP_max=$ac_count 4374 fi 4375 # 10*(2^10) chars as input seems more than enough 4376 test $ac_count -gt 10 && break 4377 done 4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4379 esac 4380 4381 $ac_path_GREP_found && break 3 4382 done 4383 done 4384 done 4385 IFS=$as_save_IFS 4386 if test -z "$ac_cv_path_GREP"; then 4387 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4388 fi 4389 else 4390 ac_cv_path_GREP=$GREP 4391 fi 4392 4393 fi 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4395 $as_echo "$ac_cv_path_GREP" >&6; } 4396 GREP="$ac_cv_path_GREP" 4397 4398 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4400 $as_echo_n "checking for egrep... " >&6; } 4401 if ${ac_cv_path_EGREP+:} false; then : 4402 $as_echo_n "(cached) " >&6 4403 else 4404 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4405 then ac_cv_path_EGREP="$GREP -E" 4406 else 4407 if test -z "$EGREP"; then 4408 ac_path_EGREP_found=false 4409 # Loop through the user's path and test for each of PROGNAME-LIST 4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4412 do 4413 IFS=$as_save_IFS 4414 test -z "$as_dir" && as_dir=. 4415 for ac_prog in egrep; do 4416 for ac_exec_ext in '' $ac_executable_extensions; do 4417 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4418 as_fn_executable_p "$ac_path_EGREP" || continue 4419 # Check for GNU ac_path_EGREP and select it if it is found. 4420 # Check for GNU $ac_path_EGREP 4421 case `"$ac_path_EGREP" --version 2>&1` in 4422 *GNU*) 4423 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4424 *) 4425 ac_count=0 4426 $as_echo_n 0123456789 >"conftest.in" 4427 while : 4428 do 4429 cat "conftest.in" "conftest.in" >"conftest.tmp" 4430 mv "conftest.tmp" "conftest.in" 4431 cp "conftest.in" "conftest.nl" 4432 $as_echo 'EGREP' >> "conftest.nl" 4433 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4435 as_fn_arith $ac_count + 1 && ac_count=$as_val 4436 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4437 # Best one so far, save it but keep looking for a better one 4438 ac_cv_path_EGREP="$ac_path_EGREP" 4439 ac_path_EGREP_max=$ac_count 4440 fi 4441 # 10*(2^10) chars as input seems more than enough 4442 test $ac_count -gt 10 && break 4443 done 4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4445 esac 4446 4447 $ac_path_EGREP_found && break 3 4448 done 4449 done 4450 done 4451 IFS=$as_save_IFS 4452 if test -z "$ac_cv_path_EGREP"; then 4453 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4454 fi 4455 else 4456 ac_cv_path_EGREP=$EGREP 4457 fi 4458 4459 fi 4460 fi 4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4462 $as_echo "$ac_cv_path_EGREP" >&6; } 4463 EGREP="$ac_cv_path_EGREP" 4464 4465 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4467 $as_echo_n "checking for ANSI C header files... " >&6; } 4468 if ${ac_cv_header_stdc+:} false; then : 4469 $as_echo_n "(cached) " >&6 4470 else 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472 /* end confdefs.h. */ 4473 #include <stdlib.h> 4474 #include <stdarg.h> 4475 #include <string.h> 4476 #include <float.h> 4477 4478 int 4479 main () 4480 { 4481 4482 ; 4483 return 0; 4484 } 4485 _ACEOF 4486 if ac_fn_c_try_compile "$LINENO"; then : 4487 ac_cv_header_stdc=yes 4488 else 4489 ac_cv_header_stdc=no 4490 fi 4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4492 4493 if test $ac_cv_header_stdc = yes; then 4494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496 /* end confdefs.h. */ 4497 #include <string.h> 4498 4499 _ACEOF 4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4501 $EGREP "memchr" >/dev/null 2>&1; then : 4502 4503 else 4504 ac_cv_header_stdc=no 4505 fi 4506 rm -f conftest* 4507 4508 fi 4509 4510 if test $ac_cv_header_stdc = yes; then 4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4513 /* end confdefs.h. */ 4514 #include <stdlib.h> 4515 4516 _ACEOF 4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4518 $EGREP "free" >/dev/null 2>&1; then : 4519 4520 else 4521 ac_cv_header_stdc=no 4522 fi 4523 rm -f conftest* 4524 4525 fi 4526 4527 if test $ac_cv_header_stdc = yes; then 4528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4529 if test "$cross_compiling" = yes; then : 4530 : 4531 else 4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4533 /* end confdefs.h. */ 4534 #include <ctype.h> 4535 #include <stdlib.h> 4536 #if ((' ' & 0x0FF) == 0x020) 4537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4539 #else 4540 # define ISLOWER(c) \ 4541 (('a' <= (c) && (c) <= 'i') \ 4542 || ('j' <= (c) && (c) <= 'r') \ 4543 || ('s' <= (c) && (c) <= 'z')) 4544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4545 #endif 4546 4547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4548 int 4549 main () 4550 { 4551 int i; 4552 for (i = 0; i < 256; i++) 4553 if (XOR (islower (i), ISLOWER (i)) 4554 || toupper (i) != TOUPPER (i)) 4555 return 2; 4556 return 0; 4557 } 4558 _ACEOF 4559 if ac_fn_c_try_run "$LINENO"; then : 4560 4561 else 4562 ac_cv_header_stdc=no 4563 fi 4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4565 conftest.$ac_objext conftest.beam conftest.$ac_ext 4566 fi 4567 4568 fi 4569 fi 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4571 $as_echo "$ac_cv_header_stdc" >&6; } 4572 if test $ac_cv_header_stdc = yes; then 4573 4574 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4575 4576 fi 4577 4578 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4579 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4580 inttypes.h stdint.h unistd.h 4581 do : 4582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4583 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4584 " 4585 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4586 cat >>confdefs.h <<_ACEOF 4587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4588 _ACEOF 4589 4590 fi 4591 4592 done 4593 4594 4595 4596 4597 4598 4599 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4600 if test "x$ac_cv_have_decl___clang__" = xyes; then : 4601 CLANGCC="yes" 4602 else 4603 CLANGCC="no" 4604 fi 4605 4606 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4607 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4608 INTELCC="yes" 4609 else 4610 INTELCC="no" 4611 fi 4612 4613 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4614 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4615 SUNCC="yes" 4616 else 4617 SUNCC="no" 4618 fi 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4629 if test -n "$ac_tool_prefix"; then 4630 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4631 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633 $as_echo_n "checking for $ac_word... " >&6; } 4634 if ${ac_cv_path_PKG_CONFIG+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636 else 4637 case $PKG_CONFIG in 4638 [\\/]* | ?:[\\/]*) 4639 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4640 ;; 4641 *) 4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643 for as_dir in $PATH 4644 do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4649 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653 done 4654 done 4655 IFS=$as_save_IFS 4656 4657 ;; 4658 esac 4659 fi 4660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4661 if test -n "$PKG_CONFIG"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4663 $as_echo "$PKG_CONFIG" >&6; } 4664 else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4666 $as_echo "no" >&6; } 4667 fi 4668 4669 4670 fi 4671 if test -z "$ac_cv_path_PKG_CONFIG"; then 4672 ac_pt_PKG_CONFIG=$PKG_CONFIG 4673 # Extract the first word of "pkg-config", so it can be a program name with args. 4674 set dummy pkg-config; ac_word=$2 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4676 $as_echo_n "checking for $ac_word... " >&6; } 4677 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4678 $as_echo_n "(cached) " >&6 4679 else 4680 case $ac_pt_PKG_CONFIG in 4681 [\\/]* | ?:[\\/]*) 4682 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4683 ;; 4684 *) 4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4686 for as_dir in $PATH 4687 do 4688 IFS=$as_save_IFS 4689 test -z "$as_dir" && as_dir=. 4690 for ac_exec_ext in '' $ac_executable_extensions; do 4691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4692 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4694 break 2 4695 fi 4696 done 4697 done 4698 IFS=$as_save_IFS 4699 4700 ;; 4701 esac 4702 fi 4703 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4704 if test -n "$ac_pt_PKG_CONFIG"; then 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4706 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4707 else 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4709 $as_echo "no" >&6; } 4710 fi 4711 4712 if test "x$ac_pt_PKG_CONFIG" = x; then 4713 PKG_CONFIG="" 4714 else 4715 case $cross_compiling:$ac_tool_warned in 4716 yes:) 4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4719 ac_tool_warned=yes ;; 4720 esac 4721 PKG_CONFIG=$ac_pt_PKG_CONFIG 4722 fi 4723 else 4724 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4725 fi 4726 4727 fi 4728 if test -n "$PKG_CONFIG"; then 4729 _pkg_min_version=0.9.0 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4731 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4732 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4734 $as_echo "yes" >&6; } 4735 else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737 $as_echo "no" >&6; } 4738 PKG_CONFIG="" 4739 fi 4740 fi 4741 # Make sure we can run config.sub. 4742 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4743 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4744 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4746 $as_echo_n "checking build system type... " >&6; } 4747 if ${ac_cv_build+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749 else 4750 ac_build_alias=$build_alias 4751 test "x$ac_build_alias" = x && 4752 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4753 test "x$ac_build_alias" = x && 4754 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4755 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4757 4758 fi 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4760 $as_echo "$ac_cv_build" >&6; } 4761 case $ac_cv_build in 4762 *-*-*) ;; 4763 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4764 esac 4765 build=$ac_cv_build 4766 ac_save_IFS=$IFS; IFS='-' 4767 set x $ac_cv_build 4768 shift 4769 build_cpu=$1 4770 build_vendor=$2 4771 shift; shift 4772 # Remember, the first character of IFS is used to create $*, 4773 # except with old shells: 4774 build_os=$* 4775 IFS=$ac_save_IFS 4776 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4777 4778 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4780 $as_echo_n "checking host system type... " >&6; } 4781 if ${ac_cv_host+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783 else 4784 if test "x$host_alias" = x; then 4785 ac_cv_host=$ac_cv_build 4786 else 4787 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4789 fi 4790 4791 fi 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4793 $as_echo "$ac_cv_host" >&6; } 4794 case $ac_cv_host in 4795 *-*-*) ;; 4796 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4797 esac 4798 host=$ac_cv_host 4799 ac_save_IFS=$IFS; IFS='-' 4800 set x $ac_cv_host 4801 shift 4802 host_cpu=$1 4803 host_vendor=$2 4804 shift; shift 4805 # Remember, the first character of IFS is used to create $*, 4806 # except with old shells: 4807 host_os=$* 4808 IFS=$ac_save_IFS 4809 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4810 4811 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4813 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4814 if ${ac_cv_path_SED+:} false; then : 4815 $as_echo_n "(cached) " >&6 4816 else 4817 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4818 for ac_i in 1 2 3 4 5 6 7; do 4819 ac_script="$ac_script$as_nl$ac_script" 4820 done 4821 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4822 { ac_script=; unset ac_script;} 4823 if test -z "$SED"; then 4824 ac_path_SED_found=false 4825 # Loop through the user's path and test for each of PROGNAME-LIST 4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4827 for as_dir in $PATH 4828 do 4829 IFS=$as_save_IFS 4830 test -z "$as_dir" && as_dir=. 4831 for ac_prog in sed gsed; do 4832 for ac_exec_ext in '' $ac_executable_extensions; do 4833 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4834 as_fn_executable_p "$ac_path_SED" || continue 4835 # Check for GNU ac_path_SED and select it if it is found. 4836 # Check for GNU $ac_path_SED 4837 case `"$ac_path_SED" --version 2>&1` in 4838 *GNU*) 4839 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4840 *) 4841 ac_count=0 4842 $as_echo_n 0123456789 >"conftest.in" 4843 while : 4844 do 4845 cat "conftest.in" "conftest.in" >"conftest.tmp" 4846 mv "conftest.tmp" "conftest.in" 4847 cp "conftest.in" "conftest.nl" 4848 $as_echo '' >> "conftest.nl" 4849 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4851 as_fn_arith $ac_count + 1 && ac_count=$as_val 4852 if test $ac_count -gt ${ac_path_SED_max-0}; then 4853 # Best one so far, save it but keep looking for a better one 4854 ac_cv_path_SED="$ac_path_SED" 4855 ac_path_SED_max=$ac_count 4856 fi 4857 # 10*(2^10) chars as input seems more than enough 4858 test $ac_count -gt 10 && break 4859 done 4860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4861 esac 4862 4863 $ac_path_SED_found && break 3 4864 done 4865 done 4866 done 4867 IFS=$as_save_IFS 4868 if test -z "$ac_cv_path_SED"; then 4869 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4870 fi 4871 else 4872 ac_cv_path_SED=$SED 4873 fi 4874 4875 fi 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4877 $as_echo "$ac_cv_path_SED" >&6; } 4878 SED="$ac_cv_path_SED" 4879 rm -f conftest.sed 4880 4881 4882 4883 4884 4885 4886 # Check whether --enable-selective-werror was given. 4887 if test "${enable_selective_werror+set}" = set; then : 4888 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4889 else 4890 SELECTIVE_WERROR=yes 4891 fi 4892 4893 4894 4895 4896 4897 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4898 if test "x$SUNCC" = "xyes"; then 4899 BASE_CFLAGS="-v" 4900 else 4901 BASE_CFLAGS="" 4902 fi 4903 4904 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 xorg_testset_save_CFLAGS="$CFLAGS" 4919 4920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926 else 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928 /* end confdefs.h. */ 4929 int i; 4930 _ACEOF 4931 if ac_fn_c_try_compile "$LINENO"; then : 4932 xorg_cv_cc_flag_unknown_warning_option=yes 4933 else 4934 xorg_cv_cc_flag_unknown_warning_option=no 4935 fi 4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937 fi 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4941 CFLAGS="$xorg_testset_save_CFLAGS" 4942 fi 4943 4944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4947 fi 4948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953 else 4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4955 /* end confdefs.h. */ 4956 int i; 4957 _ACEOF 4958 if ac_fn_c_try_compile "$LINENO"; then : 4959 xorg_cv_cc_flag_unused_command_line_argument=yes 4960 else 4961 xorg_cv_cc_flag_unused_command_line_argument=no 4962 fi 4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4964 fi 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4968 CFLAGS="$xorg_testset_save_CFLAGS" 4969 fi 4970 4971 found="no" 4972 4973 if test $found = "no" ; then 4974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4976 fi 4977 4978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4980 fi 4981 4982 CFLAGS="$CFLAGS -Wall" 4983 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4985 $as_echo_n "checking if $CC supports -Wall... " >&6; } 4986 cacheid=xorg_cv_cc_flag__Wall 4987 if eval \${$cacheid+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989 else 4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4991 /* end confdefs.h. */ 4992 int i; 4993 int 4994 main () 4995 { 4996 4997 ; 4998 return 0; 4999 } 5000 _ACEOF 5001 if ac_fn_c_try_link "$LINENO"; then : 5002 eval $cacheid=yes 5003 else 5004 eval $cacheid=no 5005 fi 5006 rm -f core conftest.err conftest.$ac_objext \ 5007 conftest$ac_exeext conftest.$ac_ext 5008 fi 5009 5010 5011 CFLAGS="$xorg_testset_save_CFLAGS" 5012 5013 eval supported=\$$cacheid 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5015 $as_echo "$supported" >&6; } 5016 if test "$supported" = "yes" ; then 5017 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5018 found="yes" 5019 fi 5020 fi 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 xorg_testset_save_CFLAGS="$CFLAGS" 5037 5038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5041 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5042 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5043 $as_echo_n "(cached) " >&6 5044 else 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046 /* end confdefs.h. */ 5047 int i; 5048 _ACEOF 5049 if ac_fn_c_try_compile "$LINENO"; then : 5050 xorg_cv_cc_flag_unknown_warning_option=yes 5051 else 5052 xorg_cv_cc_flag_unknown_warning_option=no 5053 fi 5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5055 fi 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5057 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5059 CFLAGS="$xorg_testset_save_CFLAGS" 5060 fi 5061 5062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 fi 5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5068 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5069 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071 else 5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073 /* end confdefs.h. */ 5074 int i; 5075 _ACEOF 5076 if ac_fn_c_try_compile "$LINENO"; then : 5077 xorg_cv_cc_flag_unused_command_line_argument=yes 5078 else 5079 xorg_cv_cc_flag_unused_command_line_argument=no 5080 fi 5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5082 fi 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5084 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5085 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5086 CFLAGS="$xorg_testset_save_CFLAGS" 5087 fi 5088 5089 found="no" 5090 5091 if test $found = "no" ; then 5092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5094 fi 5095 5096 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5098 fi 5099 5100 CFLAGS="$CFLAGS -Wpointer-arith" 5101 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5103 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5104 cacheid=xorg_cv_cc_flag__Wpointer_arith 5105 if eval \${$cacheid+:} false; then : 5106 $as_echo_n "(cached) " >&6 5107 else 5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109 /* end confdefs.h. */ 5110 int i; 5111 int 5112 main () 5113 { 5114 5115 ; 5116 return 0; 5117 } 5118 _ACEOF 5119 if ac_fn_c_try_link "$LINENO"; then : 5120 eval $cacheid=yes 5121 else 5122 eval $cacheid=no 5123 fi 5124 rm -f core conftest.err conftest.$ac_objext \ 5125 conftest$ac_exeext conftest.$ac_ext 5126 fi 5127 5128 5129 CFLAGS="$xorg_testset_save_CFLAGS" 5130 5131 eval supported=\$$cacheid 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5133 $as_echo "$supported" >&6; } 5134 if test "$supported" = "yes" ; then 5135 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5136 found="yes" 5137 fi 5138 fi 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 xorg_testset_save_CFLAGS="$CFLAGS" 5155 5156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5159 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5160 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162 else 5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164 /* end confdefs.h. */ 5165 int i; 5166 _ACEOF 5167 if ac_fn_c_try_compile "$LINENO"; then : 5168 xorg_cv_cc_flag_unknown_warning_option=yes 5169 else 5170 xorg_cv_cc_flag_unknown_warning_option=no 5171 fi 5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5173 fi 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5175 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5176 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5177 CFLAGS="$xorg_testset_save_CFLAGS" 5178 fi 5179 5180 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 fi 5184 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5186 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5187 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189 else 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5191 /* end confdefs.h. */ 5192 int i; 5193 _ACEOF 5194 if ac_fn_c_try_compile "$LINENO"; then : 5195 xorg_cv_cc_flag_unused_command_line_argument=yes 5196 else 5197 xorg_cv_cc_flag_unused_command_line_argument=no 5198 fi 5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5200 fi 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5202 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5204 CFLAGS="$xorg_testset_save_CFLAGS" 5205 fi 5206 5207 found="no" 5208 5209 if test $found = "no" ; then 5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 fi 5213 5214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5216 fi 5217 5218 CFLAGS="$CFLAGS -Wmissing-declarations" 5219 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5221 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5222 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5223 if eval \${$cacheid+:} false; then : 5224 $as_echo_n "(cached) " >&6 5225 else 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227 /* end confdefs.h. */ 5228 int i; 5229 int 5230 main () 5231 { 5232 5233 ; 5234 return 0; 5235 } 5236 _ACEOF 5237 if ac_fn_c_try_link "$LINENO"; then : 5238 eval $cacheid=yes 5239 else 5240 eval $cacheid=no 5241 fi 5242 rm -f core conftest.err conftest.$ac_objext \ 5243 conftest$ac_exeext conftest.$ac_ext 5244 fi 5245 5246 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248 5249 eval supported=\$$cacheid 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5251 $as_echo "$supported" >&6; } 5252 if test "$supported" = "yes" ; then 5253 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5254 found="yes" 5255 fi 5256 fi 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 xorg_testset_save_CFLAGS="$CFLAGS" 5273 5274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5277 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5278 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280 else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282 /* end confdefs.h. */ 5283 int i; 5284 _ACEOF 5285 if ac_fn_c_try_compile "$LINENO"; then : 5286 xorg_cv_cc_flag_unknown_warning_option=yes 5287 else 5288 xorg_cv_cc_flag_unknown_warning_option=no 5289 fi 5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5291 fi 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5293 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5295 CFLAGS="$xorg_testset_save_CFLAGS" 5296 fi 5297 5298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5301 fi 5302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5304 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5305 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307 else 5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5309 /* end confdefs.h. */ 5310 int i; 5311 _ACEOF 5312 if ac_fn_c_try_compile "$LINENO"; then : 5313 xorg_cv_cc_flag_unused_command_line_argument=yes 5314 else 5315 xorg_cv_cc_flag_unused_command_line_argument=no 5316 fi 5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5318 fi 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5320 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5322 CFLAGS="$xorg_testset_save_CFLAGS" 5323 fi 5324 5325 found="no" 5326 5327 if test $found = "no" ; then 5328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5330 fi 5331 5332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5334 fi 5335 5336 CFLAGS="$CFLAGS -Wformat=2" 5337 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5339 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5340 cacheid=xorg_cv_cc_flag__Wformat_2 5341 if eval \${$cacheid+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343 else 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345 /* end confdefs.h. */ 5346 int i; 5347 int 5348 main () 5349 { 5350 5351 ; 5352 return 0; 5353 } 5354 _ACEOF 5355 if ac_fn_c_try_link "$LINENO"; then : 5356 eval $cacheid=yes 5357 else 5358 eval $cacheid=no 5359 fi 5360 rm -f core conftest.err conftest.$ac_objext \ 5361 conftest$ac_exeext conftest.$ac_ext 5362 fi 5363 5364 5365 CFLAGS="$xorg_testset_save_CFLAGS" 5366 5367 eval supported=\$$cacheid 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5369 $as_echo "$supported" >&6; } 5370 if test "$supported" = "yes" ; then 5371 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5372 found="yes" 5373 fi 5374 fi 5375 5376 if test $found = "no" ; then 5377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5379 fi 5380 5381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5383 fi 5384 5385 CFLAGS="$CFLAGS -Wformat" 5386 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5388 $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5389 cacheid=xorg_cv_cc_flag__Wformat 5390 if eval \${$cacheid+:} false; then : 5391 $as_echo_n "(cached) " >&6 5392 else 5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5394 /* end confdefs.h. */ 5395 int i; 5396 int 5397 main () 5398 { 5399 5400 ; 5401 return 0; 5402 } 5403 _ACEOF 5404 if ac_fn_c_try_link "$LINENO"; then : 5405 eval $cacheid=yes 5406 else 5407 eval $cacheid=no 5408 fi 5409 rm -f core conftest.err conftest.$ac_objext \ 5410 conftest$ac_exeext conftest.$ac_ext 5411 fi 5412 5413 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415 5416 eval supported=\$$cacheid 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5418 $as_echo "$supported" >&6; } 5419 if test "$supported" = "yes" ; then 5420 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5421 found="yes" 5422 fi 5423 fi 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 xorg_testset_save_CFLAGS="$CFLAGS" 5442 5443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449 else 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451 /* end confdefs.h. */ 5452 int i; 5453 _ACEOF 5454 if ac_fn_c_try_compile "$LINENO"; then : 5455 xorg_cv_cc_flag_unknown_warning_option=yes 5456 else 5457 xorg_cv_cc_flag_unknown_warning_option=no 5458 fi 5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460 fi 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5464 CFLAGS="$xorg_testset_save_CFLAGS" 5465 fi 5466 5467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5470 fi 5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476 else 5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478 /* end confdefs.h. */ 5479 int i; 5480 _ACEOF 5481 if ac_fn_c_try_compile "$LINENO"; then : 5482 xorg_cv_cc_flag_unused_command_line_argument=yes 5483 else 5484 xorg_cv_cc_flag_unused_command_line_argument=no 5485 fi 5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5487 fi 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5491 CFLAGS="$xorg_testset_save_CFLAGS" 5492 fi 5493 5494 found="no" 5495 5496 if test $found = "no" ; then 5497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5499 fi 5500 5501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5503 fi 5504 5505 CFLAGS="$CFLAGS -Wstrict-prototypes" 5506 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5508 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5509 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5510 if eval \${$cacheid+:} false; then : 5511 $as_echo_n "(cached) " >&6 5512 else 5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5514 /* end confdefs.h. */ 5515 int i; 5516 int 5517 main () 5518 { 5519 5520 ; 5521 return 0; 5522 } 5523 _ACEOF 5524 if ac_fn_c_try_link "$LINENO"; then : 5525 eval $cacheid=yes 5526 else 5527 eval $cacheid=no 5528 fi 5529 rm -f core conftest.err conftest.$ac_objext \ 5530 conftest$ac_exeext conftest.$ac_ext 5531 fi 5532 5533 5534 CFLAGS="$xorg_testset_save_CFLAGS" 5535 5536 eval supported=\$$cacheid 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5538 $as_echo "$supported" >&6; } 5539 if test "$supported" = "yes" ; then 5540 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5541 found="yes" 5542 fi 5543 fi 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 xorg_testset_save_CFLAGS="$CFLAGS" 5560 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5566 $as_echo_n "(cached) " >&6 5567 else 5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5569 /* end confdefs.h. */ 5570 int i; 5571 _ACEOF 5572 if ac_fn_c_try_compile "$LINENO"; then : 5573 xorg_cv_cc_flag_unknown_warning_option=yes 5574 else 5575 xorg_cv_cc_flag_unknown_warning_option=no 5576 fi 5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578 fi 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5582 CFLAGS="$xorg_testset_save_CFLAGS" 5583 fi 5584 5585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5588 fi 5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5593 $as_echo_n "(cached) " >&6 5594 else 5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5596 /* end confdefs.h. */ 5597 int i; 5598 _ACEOF 5599 if ac_fn_c_try_compile "$LINENO"; then : 5600 xorg_cv_cc_flag_unused_command_line_argument=yes 5601 else 5602 xorg_cv_cc_flag_unused_command_line_argument=no 5603 fi 5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5605 fi 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5609 CFLAGS="$xorg_testset_save_CFLAGS" 5610 fi 5611 5612 found="no" 5613 5614 if test $found = "no" ; then 5615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5617 fi 5618 5619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5621 fi 5622 5623 CFLAGS="$CFLAGS -Wmissing-prototypes" 5624 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5626 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5627 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5628 if eval \${$cacheid+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630 else 5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632 /* end confdefs.h. */ 5633 int i; 5634 int 5635 main () 5636 { 5637 5638 ; 5639 return 0; 5640 } 5641 _ACEOF 5642 if ac_fn_c_try_link "$LINENO"; then : 5643 eval $cacheid=yes 5644 else 5645 eval $cacheid=no 5646 fi 5647 rm -f core conftest.err conftest.$ac_objext \ 5648 conftest$ac_exeext conftest.$ac_ext 5649 fi 5650 5651 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653 5654 eval supported=\$$cacheid 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5656 $as_echo "$supported" >&6; } 5657 if test "$supported" = "yes" ; then 5658 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5659 found="yes" 5660 fi 5661 fi 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 xorg_testset_save_CFLAGS="$CFLAGS" 5678 5679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5684 $as_echo_n "(cached) " >&6 5685 else 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687 /* end confdefs.h. */ 5688 int i; 5689 _ACEOF 5690 if ac_fn_c_try_compile "$LINENO"; then : 5691 xorg_cv_cc_flag_unknown_warning_option=yes 5692 else 5693 xorg_cv_cc_flag_unknown_warning_option=no 5694 fi 5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5696 fi 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5700 CFLAGS="$xorg_testset_save_CFLAGS" 5701 fi 5702 5703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 fi 5707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5711 $as_echo_n "(cached) " >&6 5712 else 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714 /* end confdefs.h. */ 5715 int i; 5716 _ACEOF 5717 if ac_fn_c_try_compile "$LINENO"; then : 5718 xorg_cv_cc_flag_unused_command_line_argument=yes 5719 else 5720 xorg_cv_cc_flag_unused_command_line_argument=no 5721 fi 5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5723 fi 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5727 CFLAGS="$xorg_testset_save_CFLAGS" 5728 fi 5729 5730 found="no" 5731 5732 if test $found = "no" ; then 5733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5735 fi 5736 5737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5739 fi 5740 5741 CFLAGS="$CFLAGS -Wnested-externs" 5742 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5744 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5745 cacheid=xorg_cv_cc_flag__Wnested_externs 5746 if eval \${$cacheid+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748 else 5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750 /* end confdefs.h. */ 5751 int i; 5752 int 5753 main () 5754 { 5755 5756 ; 5757 return 0; 5758 } 5759 _ACEOF 5760 if ac_fn_c_try_link "$LINENO"; then : 5761 eval $cacheid=yes 5762 else 5763 eval $cacheid=no 5764 fi 5765 rm -f core conftest.err conftest.$ac_objext \ 5766 conftest$ac_exeext conftest.$ac_ext 5767 fi 5768 5769 5770 CFLAGS="$xorg_testset_save_CFLAGS" 5771 5772 eval supported=\$$cacheid 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5774 $as_echo "$supported" >&6; } 5775 if test "$supported" = "yes" ; then 5776 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5777 found="yes" 5778 fi 5779 fi 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 xorg_testset_save_CFLAGS="$CFLAGS" 5796 5797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5802 $as_echo_n "(cached) " >&6 5803 else 5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5805 /* end confdefs.h. */ 5806 int i; 5807 _ACEOF 5808 if ac_fn_c_try_compile "$LINENO"; then : 5809 xorg_cv_cc_flag_unknown_warning_option=yes 5810 else 5811 xorg_cv_cc_flag_unknown_warning_option=no 5812 fi 5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5814 fi 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819 fi 5820 5821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 fi 5825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5829 $as_echo_n "(cached) " >&6 5830 else 5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832 /* end confdefs.h. */ 5833 int i; 5834 _ACEOF 5835 if ac_fn_c_try_compile "$LINENO"; then : 5836 xorg_cv_cc_flag_unused_command_line_argument=yes 5837 else 5838 xorg_cv_cc_flag_unused_command_line_argument=no 5839 fi 5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5841 fi 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5845 CFLAGS="$xorg_testset_save_CFLAGS" 5846 fi 5847 5848 found="no" 5849 5850 if test $found = "no" ; then 5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5853 fi 5854 5855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5857 fi 5858 5859 CFLAGS="$CFLAGS -Wbad-function-cast" 5860 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5862 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5863 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5864 if eval \${$cacheid+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866 else 5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868 /* end confdefs.h. */ 5869 int i; 5870 int 5871 main () 5872 { 5873 5874 ; 5875 return 0; 5876 } 5877 _ACEOF 5878 if ac_fn_c_try_link "$LINENO"; then : 5879 eval $cacheid=yes 5880 else 5881 eval $cacheid=no 5882 fi 5883 rm -f core conftest.err conftest.$ac_objext \ 5884 conftest$ac_exeext conftest.$ac_ext 5885 fi 5886 5887 5888 CFLAGS="$xorg_testset_save_CFLAGS" 5889 5890 eval supported=\$$cacheid 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5892 $as_echo "$supported" >&6; } 5893 if test "$supported" = "yes" ; then 5894 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5895 found="yes" 5896 fi 5897 fi 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 xorg_testset_save_CFLAGS="$CFLAGS" 5914 5915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921 else 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923 /* end confdefs.h. */ 5924 int i; 5925 _ACEOF 5926 if ac_fn_c_try_compile "$LINENO"; then : 5927 xorg_cv_cc_flag_unknown_warning_option=yes 5928 else 5929 xorg_cv_cc_flag_unknown_warning_option=no 5930 fi 5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5932 fi 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5936 CFLAGS="$xorg_testset_save_CFLAGS" 5937 fi 5938 5939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 fi 5943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5947 $as_echo_n "(cached) " >&6 5948 else 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950 /* end confdefs.h. */ 5951 int i; 5952 _ACEOF 5953 if ac_fn_c_try_compile "$LINENO"; then : 5954 xorg_cv_cc_flag_unused_command_line_argument=yes 5955 else 5956 xorg_cv_cc_flag_unused_command_line_argument=no 5957 fi 5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5959 fi 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964 fi 5965 5966 found="no" 5967 5968 if test $found = "no" ; then 5969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5971 fi 5972 5973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5975 fi 5976 5977 CFLAGS="$CFLAGS -Wold-style-definition" 5978 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5980 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5981 cacheid=xorg_cv_cc_flag__Wold_style_definition 5982 if eval \${$cacheid+:} false; then : 5983 $as_echo_n "(cached) " >&6 5984 else 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986 /* end confdefs.h. */ 5987 int i; 5988 int 5989 main () 5990 { 5991 5992 ; 5993 return 0; 5994 } 5995 _ACEOF 5996 if ac_fn_c_try_link "$LINENO"; then : 5997 eval $cacheid=yes 5998 else 5999 eval $cacheid=no 6000 fi 6001 rm -f core conftest.err conftest.$ac_objext \ 6002 conftest$ac_exeext conftest.$ac_ext 6003 fi 6004 6005 6006 CFLAGS="$xorg_testset_save_CFLAGS" 6007 6008 eval supported=\$$cacheid 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6010 $as_echo "$supported" >&6; } 6011 if test "$supported" = "yes" ; then 6012 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6013 found="yes" 6014 fi 6015 fi 6016 6017 if test $found = "no" ; then 6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6020 fi 6021 6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6024 fi 6025 6026 CFLAGS="$CFLAGS -fd" 6027 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6029 $as_echo_n "checking if $CC supports -fd... " >&6; } 6030 cacheid=xorg_cv_cc_flag__fd 6031 if eval \${$cacheid+:} false; then : 6032 $as_echo_n "(cached) " >&6 6033 else 6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6035 /* end confdefs.h. */ 6036 int i; 6037 int 6038 main () 6039 { 6040 6041 ; 6042 return 0; 6043 } 6044 _ACEOF 6045 if ac_fn_c_try_link "$LINENO"; then : 6046 eval $cacheid=yes 6047 else 6048 eval $cacheid=no 6049 fi 6050 rm -f core conftest.err conftest.$ac_objext \ 6051 conftest$ac_exeext conftest.$ac_ext 6052 fi 6053 6054 6055 CFLAGS="$xorg_testset_save_CFLAGS" 6056 6057 eval supported=\$$cacheid 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6059 $as_echo "$supported" >&6; } 6060 if test "$supported" = "yes" ; then 6061 BASE_CFLAGS="$BASE_CFLAGS -fd" 6062 found="yes" 6063 fi 6064 fi 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 xorg_testset_save_CFLAGS="$CFLAGS" 6081 6082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088 else 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090 /* end confdefs.h. */ 6091 int i; 6092 _ACEOF 6093 if ac_fn_c_try_compile "$LINENO"; then : 6094 xorg_cv_cc_flag_unknown_warning_option=yes 6095 else 6096 xorg_cv_cc_flag_unknown_warning_option=no 6097 fi 6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6099 fi 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104 fi 6105 6106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6109 fi 6110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6114 $as_echo_n "(cached) " >&6 6115 else 6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6117 /* end confdefs.h. */ 6118 int i; 6119 _ACEOF 6120 if ac_fn_c_try_compile "$LINENO"; then : 6121 xorg_cv_cc_flag_unused_command_line_argument=yes 6122 else 6123 xorg_cv_cc_flag_unused_command_line_argument=no 6124 fi 6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6126 fi 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6130 CFLAGS="$xorg_testset_save_CFLAGS" 6131 fi 6132 6133 found="no" 6134 6135 if test $found = "no" ; then 6136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6138 fi 6139 6140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6142 fi 6143 6144 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6145 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6147 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6148 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6149 if eval \${$cacheid+:} false; then : 6150 $as_echo_n "(cached) " >&6 6151 else 6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153 /* end confdefs.h. */ 6154 int i; 6155 int 6156 main () 6157 { 6158 6159 ; 6160 return 0; 6161 } 6162 _ACEOF 6163 if ac_fn_c_try_link "$LINENO"; then : 6164 eval $cacheid=yes 6165 else 6166 eval $cacheid=no 6167 fi 6168 rm -f core conftest.err conftest.$ac_objext \ 6169 conftest$ac_exeext conftest.$ac_ext 6170 fi 6171 6172 6173 CFLAGS="$xorg_testset_save_CFLAGS" 6174 6175 eval supported=\$$cacheid 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6177 $as_echo "$supported" >&6; } 6178 if test "$supported" = "yes" ; then 6179 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6180 found="yes" 6181 fi 6182 fi 6183 6184 6185 6186 6187 6188 # This chunk adds additional warnings that could catch undesired effects. 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 xorg_testset_save_CFLAGS="$CFLAGS" 6203 6204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6209 $as_echo_n "(cached) " >&6 6210 else 6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6212 /* end confdefs.h. */ 6213 int i; 6214 _ACEOF 6215 if ac_fn_c_try_compile "$LINENO"; then : 6216 xorg_cv_cc_flag_unknown_warning_option=yes 6217 else 6218 xorg_cv_cc_flag_unknown_warning_option=no 6219 fi 6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6221 fi 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6225 CFLAGS="$xorg_testset_save_CFLAGS" 6226 fi 6227 6228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6231 fi 6232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6236 $as_echo_n "(cached) " >&6 6237 else 6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239 /* end confdefs.h. */ 6240 int i; 6241 _ACEOF 6242 if ac_fn_c_try_compile "$LINENO"; then : 6243 xorg_cv_cc_flag_unused_command_line_argument=yes 6244 else 6245 xorg_cv_cc_flag_unused_command_line_argument=no 6246 fi 6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6248 fi 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6252 CFLAGS="$xorg_testset_save_CFLAGS" 6253 fi 6254 6255 found="no" 6256 6257 if test $found = "no" ; then 6258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6260 fi 6261 6262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6264 fi 6265 6266 CFLAGS="$CFLAGS -Wunused" 6267 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6269 $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6270 cacheid=xorg_cv_cc_flag__Wunused 6271 if eval \${$cacheid+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273 else 6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6275 /* end confdefs.h. */ 6276 int i; 6277 int 6278 main () 6279 { 6280 6281 ; 6282 return 0; 6283 } 6284 _ACEOF 6285 if ac_fn_c_try_link "$LINENO"; then : 6286 eval $cacheid=yes 6287 else 6288 eval $cacheid=no 6289 fi 6290 rm -f core conftest.err conftest.$ac_objext \ 6291 conftest$ac_exeext conftest.$ac_ext 6292 fi 6293 6294 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296 6297 eval supported=\$$cacheid 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6299 $as_echo "$supported" >&6; } 6300 if test "$supported" = "yes" ; then 6301 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6302 found="yes" 6303 fi 6304 fi 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 xorg_testset_save_CFLAGS="$CFLAGS" 6321 6322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6327 $as_echo_n "(cached) " >&6 6328 else 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330 /* end confdefs.h. */ 6331 int i; 6332 _ACEOF 6333 if ac_fn_c_try_compile "$LINENO"; then : 6334 xorg_cv_cc_flag_unknown_warning_option=yes 6335 else 6336 xorg_cv_cc_flag_unknown_warning_option=no 6337 fi 6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6339 fi 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6343 CFLAGS="$xorg_testset_save_CFLAGS" 6344 fi 6345 6346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6349 fi 6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355 else 6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6357 /* end confdefs.h. */ 6358 int i; 6359 _ACEOF 6360 if ac_fn_c_try_compile "$LINENO"; then : 6361 xorg_cv_cc_flag_unused_command_line_argument=yes 6362 else 6363 xorg_cv_cc_flag_unused_command_line_argument=no 6364 fi 6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6366 fi 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6370 CFLAGS="$xorg_testset_save_CFLAGS" 6371 fi 6372 6373 found="no" 6374 6375 if test $found = "no" ; then 6376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6378 fi 6379 6380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6382 fi 6383 6384 CFLAGS="$CFLAGS -Wuninitialized" 6385 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6387 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6388 cacheid=xorg_cv_cc_flag__Wuninitialized 6389 if eval \${$cacheid+:} false; then : 6390 $as_echo_n "(cached) " >&6 6391 else 6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393 /* end confdefs.h. */ 6394 int i; 6395 int 6396 main () 6397 { 6398 6399 ; 6400 return 0; 6401 } 6402 _ACEOF 6403 if ac_fn_c_try_link "$LINENO"; then : 6404 eval $cacheid=yes 6405 else 6406 eval $cacheid=no 6407 fi 6408 rm -f core conftest.err conftest.$ac_objext \ 6409 conftest$ac_exeext conftest.$ac_ext 6410 fi 6411 6412 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414 6415 eval supported=\$$cacheid 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6417 $as_echo "$supported" >&6; } 6418 if test "$supported" = "yes" ; then 6419 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6420 found="yes" 6421 fi 6422 fi 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 xorg_testset_save_CFLAGS="$CFLAGS" 6439 6440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446 else 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448 /* end confdefs.h. */ 6449 int i; 6450 _ACEOF 6451 if ac_fn_c_try_compile "$LINENO"; then : 6452 xorg_cv_cc_flag_unknown_warning_option=yes 6453 else 6454 xorg_cv_cc_flag_unknown_warning_option=no 6455 fi 6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6457 fi 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6461 CFLAGS="$xorg_testset_save_CFLAGS" 6462 fi 6463 6464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6467 fi 6468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473 else 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475 /* end confdefs.h. */ 6476 int i; 6477 _ACEOF 6478 if ac_fn_c_try_compile "$LINENO"; then : 6479 xorg_cv_cc_flag_unused_command_line_argument=yes 6480 else 6481 xorg_cv_cc_flag_unused_command_line_argument=no 6482 fi 6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6484 fi 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489 fi 6490 6491 found="no" 6492 6493 if test $found = "no" ; then 6494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6496 fi 6497 6498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6500 fi 6501 6502 CFLAGS="$CFLAGS -Wshadow" 6503 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6505 $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6506 cacheid=xorg_cv_cc_flag__Wshadow 6507 if eval \${$cacheid+:} false; then : 6508 $as_echo_n "(cached) " >&6 6509 else 6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6511 /* end confdefs.h. */ 6512 int i; 6513 int 6514 main () 6515 { 6516 6517 ; 6518 return 0; 6519 } 6520 _ACEOF 6521 if ac_fn_c_try_link "$LINENO"; then : 6522 eval $cacheid=yes 6523 else 6524 eval $cacheid=no 6525 fi 6526 rm -f core conftest.err conftest.$ac_objext \ 6527 conftest$ac_exeext conftest.$ac_ext 6528 fi 6529 6530 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6532 6533 eval supported=\$$cacheid 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6535 $as_echo "$supported" >&6; } 6536 if test "$supported" = "yes" ; then 6537 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6538 found="yes" 6539 fi 6540 fi 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 xorg_testset_save_CFLAGS="$CFLAGS" 6557 6558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564 else 6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6566 /* end confdefs.h. */ 6567 int i; 6568 _ACEOF 6569 if ac_fn_c_try_compile "$LINENO"; then : 6570 xorg_cv_cc_flag_unknown_warning_option=yes 6571 else 6572 xorg_cv_cc_flag_unknown_warning_option=no 6573 fi 6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6575 fi 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6579 CFLAGS="$xorg_testset_save_CFLAGS" 6580 fi 6581 6582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6585 fi 6586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6590 $as_echo_n "(cached) " >&6 6591 else 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593 /* end confdefs.h. */ 6594 int i; 6595 _ACEOF 6596 if ac_fn_c_try_compile "$LINENO"; then : 6597 xorg_cv_cc_flag_unused_command_line_argument=yes 6598 else 6599 xorg_cv_cc_flag_unused_command_line_argument=no 6600 fi 6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6602 fi 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6606 CFLAGS="$xorg_testset_save_CFLAGS" 6607 fi 6608 6609 found="no" 6610 6611 if test $found = "no" ; then 6612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6614 fi 6615 6616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6618 fi 6619 6620 CFLAGS="$CFLAGS -Wmissing-noreturn" 6621 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6623 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6624 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6625 if eval \${$cacheid+:} false; then : 6626 $as_echo_n "(cached) " >&6 6627 else 6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6629 /* end confdefs.h. */ 6630 int i; 6631 int 6632 main () 6633 { 6634 6635 ; 6636 return 0; 6637 } 6638 _ACEOF 6639 if ac_fn_c_try_link "$LINENO"; then : 6640 eval $cacheid=yes 6641 else 6642 eval $cacheid=no 6643 fi 6644 rm -f core conftest.err conftest.$ac_objext \ 6645 conftest$ac_exeext conftest.$ac_ext 6646 fi 6647 6648 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650 6651 eval supported=\$$cacheid 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6653 $as_echo "$supported" >&6; } 6654 if test "$supported" = "yes" ; then 6655 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6656 found="yes" 6657 fi 6658 fi 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 xorg_testset_save_CFLAGS="$CFLAGS" 6675 6676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6679 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6680 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6681 $as_echo_n "(cached) " >&6 6682 else 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684 /* end confdefs.h. */ 6685 int i; 6686 _ACEOF 6687 if ac_fn_c_try_compile "$LINENO"; then : 6688 xorg_cv_cc_flag_unknown_warning_option=yes 6689 else 6690 xorg_cv_cc_flag_unknown_warning_option=no 6691 fi 6692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6693 fi 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6695 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698 fi 6699 6700 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 fi 6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6706 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6707 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6708 $as_echo_n "(cached) " >&6 6709 else 6710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6711 /* end confdefs.h. */ 6712 int i; 6713 _ACEOF 6714 if ac_fn_c_try_compile "$LINENO"; then : 6715 xorg_cv_cc_flag_unused_command_line_argument=yes 6716 else 6717 xorg_cv_cc_flag_unused_command_line_argument=no 6718 fi 6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6720 fi 6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6722 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6724 CFLAGS="$xorg_testset_save_CFLAGS" 6725 fi 6726 6727 found="no" 6728 6729 if test $found = "no" ; then 6730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6732 fi 6733 6734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6736 fi 6737 6738 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6739 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6741 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6742 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6743 if eval \${$cacheid+:} false; then : 6744 $as_echo_n "(cached) " >&6 6745 else 6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6747 /* end confdefs.h. */ 6748 int i; 6749 int 6750 main () 6751 { 6752 6753 ; 6754 return 0; 6755 } 6756 _ACEOF 6757 if ac_fn_c_try_link "$LINENO"; then : 6758 eval $cacheid=yes 6759 else 6760 eval $cacheid=no 6761 fi 6762 rm -f core conftest.err conftest.$ac_objext \ 6763 conftest$ac_exeext conftest.$ac_ext 6764 fi 6765 6766 6767 CFLAGS="$xorg_testset_save_CFLAGS" 6768 6769 eval supported=\$$cacheid 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6771 $as_echo "$supported" >&6; } 6772 if test "$supported" = "yes" ; then 6773 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6774 found="yes" 6775 fi 6776 fi 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 xorg_testset_save_CFLAGS="$CFLAGS" 6793 6794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6797 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6798 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6799 $as_echo_n "(cached) " >&6 6800 else 6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6802 /* end confdefs.h. */ 6803 int i; 6804 _ACEOF 6805 if ac_fn_c_try_compile "$LINENO"; then : 6806 xorg_cv_cc_flag_unknown_warning_option=yes 6807 else 6808 xorg_cv_cc_flag_unknown_warning_option=no 6809 fi 6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6811 fi 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6813 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816 fi 6817 6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821 fi 6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6824 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6825 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6826 $as_echo_n "(cached) " >&6 6827 else 6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6829 /* end confdefs.h. */ 6830 int i; 6831 _ACEOF 6832 if ac_fn_c_try_compile "$LINENO"; then : 6833 xorg_cv_cc_flag_unused_command_line_argument=yes 6834 else 6835 xorg_cv_cc_flag_unused_command_line_argument=no 6836 fi 6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6838 fi 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6840 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6842 CFLAGS="$xorg_testset_save_CFLAGS" 6843 fi 6844 6845 found="no" 6846 6847 if test $found = "no" ; then 6848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6850 fi 6851 6852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6854 fi 6855 6856 CFLAGS="$CFLAGS -Wredundant-decls" 6857 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6859 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6860 cacheid=xorg_cv_cc_flag__Wredundant_decls 6861 if eval \${$cacheid+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863 else 6864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6865 /* end confdefs.h. */ 6866 int i; 6867 int 6868 main () 6869 { 6870 6871 ; 6872 return 0; 6873 } 6874 _ACEOF 6875 if ac_fn_c_try_link "$LINENO"; then : 6876 eval $cacheid=yes 6877 else 6878 eval $cacheid=no 6879 fi 6880 rm -f core conftest.err conftest.$ac_objext \ 6881 conftest$ac_exeext conftest.$ac_ext 6882 fi 6883 6884 6885 CFLAGS="$xorg_testset_save_CFLAGS" 6886 6887 eval supported=\$$cacheid 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6889 $as_echo "$supported" >&6; } 6890 if test "$supported" = "yes" ; then 6891 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6892 found="yes" 6893 fi 6894 fi 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 xorg_testset_save_CFLAGS="$CFLAGS" 6911 6912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6915 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6916 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918 else 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6920 /* end confdefs.h. */ 6921 int i; 6922 _ACEOF 6923 if ac_fn_c_try_compile "$LINENO"; then : 6924 xorg_cv_cc_flag_unknown_warning_option=yes 6925 else 6926 xorg_cv_cc_flag_unknown_warning_option=no 6927 fi 6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6929 fi 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6931 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6933 CFLAGS="$xorg_testset_save_CFLAGS" 6934 fi 6935 6936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 fi 6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6942 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6943 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945 else 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947 /* end confdefs.h. */ 6948 int i; 6949 _ACEOF 6950 if ac_fn_c_try_compile "$LINENO"; then : 6951 xorg_cv_cc_flag_unused_command_line_argument=yes 6952 else 6953 xorg_cv_cc_flag_unused_command_line_argument=no 6954 fi 6955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6956 fi 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6958 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961 fi 6962 6963 found="no" 6964 6965 if test $found = "no" ; then 6966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6968 fi 6969 6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6972 fi 6973 6974 CFLAGS="$CFLAGS -Wlogical-op" 6975 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6977 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6978 cacheid=xorg_cv_cc_flag__Wlogical_op 6979 if eval \${$cacheid+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981 else 6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6983 /* end confdefs.h. */ 6984 int i; 6985 int 6986 main () 6987 { 6988 6989 ; 6990 return 0; 6991 } 6992 _ACEOF 6993 if ac_fn_c_try_link "$LINENO"; then : 6994 eval $cacheid=yes 6995 else 6996 eval $cacheid=no 6997 fi 6998 rm -f core conftest.err conftest.$ac_objext \ 6999 conftest$ac_exeext conftest.$ac_ext 7000 fi 7001 7002 7003 CFLAGS="$xorg_testset_save_CFLAGS" 7004 7005 eval supported=\$$cacheid 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7007 $as_echo "$supported" >&6; } 7008 if test "$supported" = "yes" ; then 7009 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7010 found="yes" 7011 fi 7012 fi 7013 7014 7015 7016 # These are currently disabled because they are noisy. They will be enabled 7017 # in the future once the codebase is sufficiently modernized to silence 7018 # them. For now, I don't want them to drown out the other warnings. 7019 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7020 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7021 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7022 7023 # Turn some warnings into errors, so we don't accidently get successful builds 7024 # when there are problems that should be fixed. 7025 7026 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 xorg_testset_save_CFLAGS="$CFLAGS" 7041 7042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048 else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050 /* end confdefs.h. */ 7051 int i; 7052 _ACEOF 7053 if ac_fn_c_try_compile "$LINENO"; then : 7054 xorg_cv_cc_flag_unknown_warning_option=yes 7055 else 7056 xorg_cv_cc_flag_unknown_warning_option=no 7057 fi 7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7059 fi 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064 fi 7065 7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075 else 7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7077 /* end confdefs.h. */ 7078 int i; 7079 _ACEOF 7080 if ac_fn_c_try_compile "$LINENO"; then : 7081 xorg_cv_cc_flag_unused_command_line_argument=yes 7082 else 7083 xorg_cv_cc_flag_unused_command_line_argument=no 7084 fi 7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7086 fi 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7090 CFLAGS="$xorg_testset_save_CFLAGS" 7091 fi 7092 7093 found="no" 7094 7095 if test $found = "no" ; then 7096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 fi 7099 7100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7102 fi 7103 7104 CFLAGS="$CFLAGS -Werror=implicit" 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7107 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7108 cacheid=xorg_cv_cc_flag__Werror_implicit 7109 if eval \${$cacheid+:} false; then : 7110 $as_echo_n "(cached) " >&6 7111 else 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7113 /* end confdefs.h. */ 7114 int i; 7115 int 7116 main () 7117 { 7118 7119 ; 7120 return 0; 7121 } 7122 _ACEOF 7123 if ac_fn_c_try_link "$LINENO"; then : 7124 eval $cacheid=yes 7125 else 7126 eval $cacheid=no 7127 fi 7128 rm -f core conftest.err conftest.$ac_objext \ 7129 conftest$ac_exeext conftest.$ac_ext 7130 fi 7131 7132 7133 CFLAGS="$xorg_testset_save_CFLAGS" 7134 7135 eval supported=\$$cacheid 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7137 $as_echo "$supported" >&6; } 7138 if test "$supported" = "yes" ; then 7139 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7140 found="yes" 7141 fi 7142 fi 7143 7144 if test $found = "no" ; then 7145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7147 fi 7148 7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7151 fi 7152 7153 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7154 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7156 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7157 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7158 if eval \${$cacheid+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160 else 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162 /* end confdefs.h. */ 7163 int i; 7164 int 7165 main () 7166 { 7167 7168 ; 7169 return 0; 7170 } 7171 _ACEOF 7172 if ac_fn_c_try_link "$LINENO"; then : 7173 eval $cacheid=yes 7174 else 7175 eval $cacheid=no 7176 fi 7177 rm -f core conftest.err conftest.$ac_objext \ 7178 conftest$ac_exeext conftest.$ac_ext 7179 fi 7180 7181 7182 CFLAGS="$xorg_testset_save_CFLAGS" 7183 7184 eval supported=\$$cacheid 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7186 $as_echo "$supported" >&6; } 7187 if test "$supported" = "yes" ; then 7188 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7189 found="yes" 7190 fi 7191 fi 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 xorg_testset_save_CFLAGS="$CFLAGS" 7208 7209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7212 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7213 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215 else 7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7217 /* end confdefs.h. */ 7218 int i; 7219 _ACEOF 7220 if ac_fn_c_try_compile "$LINENO"; then : 7221 xorg_cv_cc_flag_unknown_warning_option=yes 7222 else 7223 xorg_cv_cc_flag_unknown_warning_option=no 7224 fi 7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7226 fi 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7228 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7230 CFLAGS="$xorg_testset_save_CFLAGS" 7231 fi 7232 7233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7236 fi 7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7239 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7240 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242 else 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244 /* end confdefs.h. */ 7245 int i; 7246 _ACEOF 7247 if ac_fn_c_try_compile "$LINENO"; then : 7248 xorg_cv_cc_flag_unused_command_line_argument=yes 7249 else 7250 xorg_cv_cc_flag_unused_command_line_argument=no 7251 fi 7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7253 fi 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7255 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7257 CFLAGS="$xorg_testset_save_CFLAGS" 7258 fi 7259 7260 found="no" 7261 7262 if test $found = "no" ; then 7263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7265 fi 7266 7267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7269 fi 7270 7271 CFLAGS="$CFLAGS -Werror=nonnull" 7272 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7274 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7275 cacheid=xorg_cv_cc_flag__Werror_nonnull 7276 if eval \${$cacheid+:} false; then : 7277 $as_echo_n "(cached) " >&6 7278 else 7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280 /* end confdefs.h. */ 7281 int i; 7282 int 7283 main () 7284 { 7285 7286 ; 7287 return 0; 7288 } 7289 _ACEOF 7290 if ac_fn_c_try_link "$LINENO"; then : 7291 eval $cacheid=yes 7292 else 7293 eval $cacheid=no 7294 fi 7295 rm -f core conftest.err conftest.$ac_objext \ 7296 conftest$ac_exeext conftest.$ac_ext 7297 fi 7298 7299 7300 CFLAGS="$xorg_testset_save_CFLAGS" 7301 7302 eval supported=\$$cacheid 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7304 $as_echo "$supported" >&6; } 7305 if test "$supported" = "yes" ; then 7306 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7307 found="yes" 7308 fi 7309 fi 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 xorg_testset_save_CFLAGS="$CFLAGS" 7326 7327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7330 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7331 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7332 $as_echo_n "(cached) " >&6 7333 else 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335 /* end confdefs.h. */ 7336 int i; 7337 _ACEOF 7338 if ac_fn_c_try_compile "$LINENO"; then : 7339 xorg_cv_cc_flag_unknown_warning_option=yes 7340 else 7341 xorg_cv_cc_flag_unknown_warning_option=no 7342 fi 7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7344 fi 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7346 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7348 CFLAGS="$xorg_testset_save_CFLAGS" 7349 fi 7350 7351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7354 fi 7355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7357 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7358 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360 else 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362 /* end confdefs.h. */ 7363 int i; 7364 _ACEOF 7365 if ac_fn_c_try_compile "$LINENO"; then : 7366 xorg_cv_cc_flag_unused_command_line_argument=yes 7367 else 7368 xorg_cv_cc_flag_unused_command_line_argument=no 7369 fi 7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7371 fi 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7373 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7375 CFLAGS="$xorg_testset_save_CFLAGS" 7376 fi 7377 7378 found="no" 7379 7380 if test $found = "no" ; then 7381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7383 fi 7384 7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7387 fi 7388 7389 CFLAGS="$CFLAGS -Werror=init-self" 7390 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7392 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7393 cacheid=xorg_cv_cc_flag__Werror_init_self 7394 if eval \${$cacheid+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396 else 7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7398 /* end confdefs.h. */ 7399 int i; 7400 int 7401 main () 7402 { 7403 7404 ; 7405 return 0; 7406 } 7407 _ACEOF 7408 if ac_fn_c_try_link "$LINENO"; then : 7409 eval $cacheid=yes 7410 else 7411 eval $cacheid=no 7412 fi 7413 rm -f core conftest.err conftest.$ac_objext \ 7414 conftest$ac_exeext conftest.$ac_ext 7415 fi 7416 7417 7418 CFLAGS="$xorg_testset_save_CFLAGS" 7419 7420 eval supported=\$$cacheid 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7422 $as_echo "$supported" >&6; } 7423 if test "$supported" = "yes" ; then 7424 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7425 found="yes" 7426 fi 7427 fi 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 xorg_testset_save_CFLAGS="$CFLAGS" 7444 7445 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7448 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7449 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7450 $as_echo_n "(cached) " >&6 7451 else 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453 /* end confdefs.h. */ 7454 int i; 7455 _ACEOF 7456 if ac_fn_c_try_compile "$LINENO"; then : 7457 xorg_cv_cc_flag_unknown_warning_option=yes 7458 else 7459 xorg_cv_cc_flag_unknown_warning_option=no 7460 fi 7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7462 fi 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7464 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7466 CFLAGS="$xorg_testset_save_CFLAGS" 7467 fi 7468 7469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7472 fi 7473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7475 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7476 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7477 $as_echo_n "(cached) " >&6 7478 else 7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480 /* end confdefs.h. */ 7481 int i; 7482 _ACEOF 7483 if ac_fn_c_try_compile "$LINENO"; then : 7484 xorg_cv_cc_flag_unused_command_line_argument=yes 7485 else 7486 xorg_cv_cc_flag_unused_command_line_argument=no 7487 fi 7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7489 fi 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7491 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7493 CFLAGS="$xorg_testset_save_CFLAGS" 7494 fi 7495 7496 found="no" 7497 7498 if test $found = "no" ; then 7499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 fi 7502 7503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7505 fi 7506 7507 CFLAGS="$CFLAGS -Werror=main" 7508 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7510 $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7511 cacheid=xorg_cv_cc_flag__Werror_main 7512 if eval \${$cacheid+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514 else 7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7516 /* end confdefs.h. */ 7517 int i; 7518 int 7519 main () 7520 { 7521 7522 ; 7523 return 0; 7524 } 7525 _ACEOF 7526 if ac_fn_c_try_link "$LINENO"; then : 7527 eval $cacheid=yes 7528 else 7529 eval $cacheid=no 7530 fi 7531 rm -f core conftest.err conftest.$ac_objext \ 7532 conftest$ac_exeext conftest.$ac_ext 7533 fi 7534 7535 7536 CFLAGS="$xorg_testset_save_CFLAGS" 7537 7538 eval supported=\$$cacheid 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7540 $as_echo "$supported" >&6; } 7541 if test "$supported" = "yes" ; then 7542 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7543 found="yes" 7544 fi 7545 fi 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 xorg_testset_save_CFLAGS="$CFLAGS" 7562 7563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569 else 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571 /* end confdefs.h. */ 7572 int i; 7573 _ACEOF 7574 if ac_fn_c_try_compile "$LINENO"; then : 7575 xorg_cv_cc_flag_unknown_warning_option=yes 7576 else 7577 xorg_cv_cc_flag_unknown_warning_option=no 7578 fi 7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7580 fi 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7584 CFLAGS="$xorg_testset_save_CFLAGS" 7585 fi 7586 7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7590 fi 7591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596 else 7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7598 /* end confdefs.h. */ 7599 int i; 7600 _ACEOF 7601 if ac_fn_c_try_compile "$LINENO"; then : 7602 xorg_cv_cc_flag_unused_command_line_argument=yes 7603 else 7604 xorg_cv_cc_flag_unused_command_line_argument=no 7605 fi 7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7607 fi 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7611 CFLAGS="$xorg_testset_save_CFLAGS" 7612 fi 7613 7614 found="no" 7615 7616 if test $found = "no" ; then 7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7619 fi 7620 7621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7623 fi 7624 7625 CFLAGS="$CFLAGS -Werror=missing-braces" 7626 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7628 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7629 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7630 if eval \${$cacheid+:} false; then : 7631 $as_echo_n "(cached) " >&6 7632 else 7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634 /* end confdefs.h. */ 7635 int i; 7636 int 7637 main () 7638 { 7639 7640 ; 7641 return 0; 7642 } 7643 _ACEOF 7644 if ac_fn_c_try_link "$LINENO"; then : 7645 eval $cacheid=yes 7646 else 7647 eval $cacheid=no 7648 fi 7649 rm -f core conftest.err conftest.$ac_objext \ 7650 conftest$ac_exeext conftest.$ac_ext 7651 fi 7652 7653 7654 CFLAGS="$xorg_testset_save_CFLAGS" 7655 7656 eval supported=\$$cacheid 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7658 $as_echo "$supported" >&6; } 7659 if test "$supported" = "yes" ; then 7660 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7661 found="yes" 7662 fi 7663 fi 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 xorg_testset_save_CFLAGS="$CFLAGS" 7680 7681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7686 $as_echo_n "(cached) " >&6 7687 else 7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7689 /* end confdefs.h. */ 7690 int i; 7691 _ACEOF 7692 if ac_fn_c_try_compile "$LINENO"; then : 7693 xorg_cv_cc_flag_unknown_warning_option=yes 7694 else 7695 xorg_cv_cc_flag_unknown_warning_option=no 7696 fi 7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7698 fi 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703 fi 7704 7705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7708 fi 7709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7713 $as_echo_n "(cached) " >&6 7714 else 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716 /* end confdefs.h. */ 7717 int i; 7718 _ACEOF 7719 if ac_fn_c_try_compile "$LINENO"; then : 7720 xorg_cv_cc_flag_unused_command_line_argument=yes 7721 else 7722 xorg_cv_cc_flag_unused_command_line_argument=no 7723 fi 7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7725 fi 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7729 CFLAGS="$xorg_testset_save_CFLAGS" 7730 fi 7731 7732 found="no" 7733 7734 if test $found = "no" ; then 7735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7737 fi 7738 7739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7741 fi 7742 7743 CFLAGS="$CFLAGS -Werror=sequence-point" 7744 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7746 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7747 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7748 if eval \${$cacheid+:} false; then : 7749 $as_echo_n "(cached) " >&6 7750 else 7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752 /* end confdefs.h. */ 7753 int i; 7754 int 7755 main () 7756 { 7757 7758 ; 7759 return 0; 7760 } 7761 _ACEOF 7762 if ac_fn_c_try_link "$LINENO"; then : 7763 eval $cacheid=yes 7764 else 7765 eval $cacheid=no 7766 fi 7767 rm -f core conftest.err conftest.$ac_objext \ 7768 conftest$ac_exeext conftest.$ac_ext 7769 fi 7770 7771 7772 CFLAGS="$xorg_testset_save_CFLAGS" 7773 7774 eval supported=\$$cacheid 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7776 $as_echo "$supported" >&6; } 7777 if test "$supported" = "yes" ; then 7778 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7779 found="yes" 7780 fi 7781 fi 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 xorg_testset_save_CFLAGS="$CFLAGS" 7798 7799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805 else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807 /* end confdefs.h. */ 7808 int i; 7809 _ACEOF 7810 if ac_fn_c_try_compile "$LINENO"; then : 7811 xorg_cv_cc_flag_unknown_warning_option=yes 7812 else 7813 xorg_cv_cc_flag_unknown_warning_option=no 7814 fi 7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7816 fi 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7820 CFLAGS="$xorg_testset_save_CFLAGS" 7821 fi 7822 7823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7826 fi 7827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832 else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834 /* end confdefs.h. */ 7835 int i; 7836 _ACEOF 7837 if ac_fn_c_try_compile "$LINENO"; then : 7838 xorg_cv_cc_flag_unused_command_line_argument=yes 7839 else 7840 xorg_cv_cc_flag_unused_command_line_argument=no 7841 fi 7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7843 fi 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7847 CFLAGS="$xorg_testset_save_CFLAGS" 7848 fi 7849 7850 found="no" 7851 7852 if test $found = "no" ; then 7853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 fi 7856 7857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7859 fi 7860 7861 CFLAGS="$CFLAGS -Werror=return-type" 7862 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7864 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7865 cacheid=xorg_cv_cc_flag__Werror_return_type 7866 if eval \${$cacheid+:} false; then : 7867 $as_echo_n "(cached) " >&6 7868 else 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870 /* end confdefs.h. */ 7871 int i; 7872 int 7873 main () 7874 { 7875 7876 ; 7877 return 0; 7878 } 7879 _ACEOF 7880 if ac_fn_c_try_link "$LINENO"; then : 7881 eval $cacheid=yes 7882 else 7883 eval $cacheid=no 7884 fi 7885 rm -f core conftest.err conftest.$ac_objext \ 7886 conftest$ac_exeext conftest.$ac_ext 7887 fi 7888 7889 7890 CFLAGS="$xorg_testset_save_CFLAGS" 7891 7892 eval supported=\$$cacheid 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7894 $as_echo "$supported" >&6; } 7895 if test "$supported" = "yes" ; then 7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7897 found="yes" 7898 fi 7899 fi 7900 7901 if test $found = "no" ; then 7902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7904 fi 7905 7906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7908 fi 7909 7910 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7911 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7913 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7914 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7915 if eval \${$cacheid+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917 else 7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7919 /* end confdefs.h. */ 7920 int i; 7921 int 7922 main () 7923 { 7924 7925 ; 7926 return 0; 7927 } 7928 _ACEOF 7929 if ac_fn_c_try_link "$LINENO"; then : 7930 eval $cacheid=yes 7931 else 7932 eval $cacheid=no 7933 fi 7934 rm -f core conftest.err conftest.$ac_objext \ 7935 conftest$ac_exeext conftest.$ac_ext 7936 fi 7937 7938 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7940 7941 eval supported=\$$cacheid 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7943 $as_echo "$supported" >&6; } 7944 if test "$supported" = "yes" ; then 7945 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7946 found="yes" 7947 fi 7948 fi 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 xorg_testset_save_CFLAGS="$CFLAGS" 7965 7966 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7969 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7970 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972 else 7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7974 /* end confdefs.h. */ 7975 int i; 7976 _ACEOF 7977 if ac_fn_c_try_compile "$LINENO"; then : 7978 xorg_cv_cc_flag_unknown_warning_option=yes 7979 else 7980 xorg_cv_cc_flag_unknown_warning_option=no 7981 fi 7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7983 fi 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7985 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7987 CFLAGS="$xorg_testset_save_CFLAGS" 7988 fi 7989 7990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 fi 7994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7996 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7997 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7998 $as_echo_n "(cached) " >&6 7999 else 8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8001 /* end confdefs.h. */ 8002 int i; 8003 _ACEOF 8004 if ac_fn_c_try_compile "$LINENO"; then : 8005 xorg_cv_cc_flag_unused_command_line_argument=yes 8006 else 8007 xorg_cv_cc_flag_unused_command_line_argument=no 8008 fi 8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8010 fi 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8012 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015 fi 8016 8017 found="no" 8018 8019 if test $found = "no" ; then 8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 fi 8023 8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8026 fi 8027 8028 CFLAGS="$CFLAGS -Werror=trigraphs" 8029 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8031 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8032 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8033 if eval \${$cacheid+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035 else 8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037 /* end confdefs.h. */ 8038 int i; 8039 int 8040 main () 8041 { 8042 8043 ; 8044 return 0; 8045 } 8046 _ACEOF 8047 if ac_fn_c_try_link "$LINENO"; then : 8048 eval $cacheid=yes 8049 else 8050 eval $cacheid=no 8051 fi 8052 rm -f core conftest.err conftest.$ac_objext \ 8053 conftest$ac_exeext conftest.$ac_ext 8054 fi 8055 8056 8057 CFLAGS="$xorg_testset_save_CFLAGS" 8058 8059 eval supported=\$$cacheid 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8061 $as_echo "$supported" >&6; } 8062 if test "$supported" = "yes" ; then 8063 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8064 found="yes" 8065 fi 8066 fi 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 xorg_testset_save_CFLAGS="$CFLAGS" 8083 8084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8089 $as_echo_n "(cached) " >&6 8090 else 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092 /* end confdefs.h. */ 8093 int i; 8094 _ACEOF 8095 if ac_fn_c_try_compile "$LINENO"; then : 8096 xorg_cv_cc_flag_unknown_warning_option=yes 8097 else 8098 xorg_cv_cc_flag_unknown_warning_option=no 8099 fi 8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8101 fi 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106 fi 8107 8108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8111 fi 8112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8116 $as_echo_n "(cached) " >&6 8117 else 8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8119 /* end confdefs.h. */ 8120 int i; 8121 _ACEOF 8122 if ac_fn_c_try_compile "$LINENO"; then : 8123 xorg_cv_cc_flag_unused_command_line_argument=yes 8124 else 8125 xorg_cv_cc_flag_unused_command_line_argument=no 8126 fi 8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8128 fi 8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8132 CFLAGS="$xorg_testset_save_CFLAGS" 8133 fi 8134 8135 found="no" 8136 8137 if test $found = "no" ; then 8138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8140 fi 8141 8142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8144 fi 8145 8146 CFLAGS="$CFLAGS -Werror=array-bounds" 8147 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8149 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8150 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8151 if eval \${$cacheid+:} false; then : 8152 $as_echo_n "(cached) " >&6 8153 else 8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155 /* end confdefs.h. */ 8156 int i; 8157 int 8158 main () 8159 { 8160 8161 ; 8162 return 0; 8163 } 8164 _ACEOF 8165 if ac_fn_c_try_link "$LINENO"; then : 8166 eval $cacheid=yes 8167 else 8168 eval $cacheid=no 8169 fi 8170 rm -f core conftest.err conftest.$ac_objext \ 8171 conftest$ac_exeext conftest.$ac_ext 8172 fi 8173 8174 8175 CFLAGS="$xorg_testset_save_CFLAGS" 8176 8177 eval supported=\$$cacheid 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8179 $as_echo "$supported" >&6; } 8180 if test "$supported" = "yes" ; then 8181 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8182 found="yes" 8183 fi 8184 fi 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 xorg_testset_save_CFLAGS="$CFLAGS" 8201 8202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8207 $as_echo_n "(cached) " >&6 8208 else 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210 /* end confdefs.h. */ 8211 int i; 8212 _ACEOF 8213 if ac_fn_c_try_compile "$LINENO"; then : 8214 xorg_cv_cc_flag_unknown_warning_option=yes 8215 else 8216 xorg_cv_cc_flag_unknown_warning_option=no 8217 fi 8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8219 fi 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224 fi 8225 8226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8229 fi 8230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235 else 8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8237 /* end confdefs.h. */ 8238 int i; 8239 _ACEOF 8240 if ac_fn_c_try_compile "$LINENO"; then : 8241 xorg_cv_cc_flag_unused_command_line_argument=yes 8242 else 8243 xorg_cv_cc_flag_unused_command_line_argument=no 8244 fi 8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8246 fi 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8250 CFLAGS="$xorg_testset_save_CFLAGS" 8251 fi 8252 8253 found="no" 8254 8255 if test $found = "no" ; then 8256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8258 fi 8259 8260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8262 fi 8263 8264 CFLAGS="$CFLAGS -Werror=write-strings" 8265 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8267 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8268 cacheid=xorg_cv_cc_flag__Werror_write_strings 8269 if eval \${$cacheid+:} false; then : 8270 $as_echo_n "(cached) " >&6 8271 else 8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273 /* end confdefs.h. */ 8274 int i; 8275 int 8276 main () 8277 { 8278 8279 ; 8280 return 0; 8281 } 8282 _ACEOF 8283 if ac_fn_c_try_link "$LINENO"; then : 8284 eval $cacheid=yes 8285 else 8286 eval $cacheid=no 8287 fi 8288 rm -f core conftest.err conftest.$ac_objext \ 8289 conftest$ac_exeext conftest.$ac_ext 8290 fi 8291 8292 8293 CFLAGS="$xorg_testset_save_CFLAGS" 8294 8295 eval supported=\$$cacheid 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8297 $as_echo "$supported" >&6; } 8298 if test "$supported" = "yes" ; then 8299 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8300 found="yes" 8301 fi 8302 fi 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 xorg_testset_save_CFLAGS="$CFLAGS" 8319 8320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8325 $as_echo_n "(cached) " >&6 8326 else 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328 /* end confdefs.h. */ 8329 int i; 8330 _ACEOF 8331 if ac_fn_c_try_compile "$LINENO"; then : 8332 xorg_cv_cc_flag_unknown_warning_option=yes 8333 else 8334 xorg_cv_cc_flag_unknown_warning_option=no 8335 fi 8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8337 fi 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342 fi 8343 8344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 fi 8348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353 else 8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8355 /* end confdefs.h. */ 8356 int i; 8357 _ACEOF 8358 if ac_fn_c_try_compile "$LINENO"; then : 8359 xorg_cv_cc_flag_unused_command_line_argument=yes 8360 else 8361 xorg_cv_cc_flag_unused_command_line_argument=no 8362 fi 8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8364 fi 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8368 CFLAGS="$xorg_testset_save_CFLAGS" 8369 fi 8370 8371 found="no" 8372 8373 if test $found = "no" ; then 8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8376 fi 8377 8378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8380 fi 8381 8382 CFLAGS="$CFLAGS -Werror=address" 8383 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8385 $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8386 cacheid=xorg_cv_cc_flag__Werror_address 8387 if eval \${$cacheid+:} false; then : 8388 $as_echo_n "(cached) " >&6 8389 else 8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391 /* end confdefs.h. */ 8392 int i; 8393 int 8394 main () 8395 { 8396 8397 ; 8398 return 0; 8399 } 8400 _ACEOF 8401 if ac_fn_c_try_link "$LINENO"; then : 8402 eval $cacheid=yes 8403 else 8404 eval $cacheid=no 8405 fi 8406 rm -f core conftest.err conftest.$ac_objext \ 8407 conftest$ac_exeext conftest.$ac_ext 8408 fi 8409 8410 8411 CFLAGS="$xorg_testset_save_CFLAGS" 8412 8413 eval supported=\$$cacheid 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8415 $as_echo "$supported" >&6; } 8416 if test "$supported" = "yes" ; then 8417 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8418 found="yes" 8419 fi 8420 fi 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 xorg_testset_save_CFLAGS="$CFLAGS" 8437 8438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444 else 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446 /* end confdefs.h. */ 8447 int i; 8448 _ACEOF 8449 if ac_fn_c_try_compile "$LINENO"; then : 8450 xorg_cv_cc_flag_unknown_warning_option=yes 8451 else 8452 xorg_cv_cc_flag_unknown_warning_option=no 8453 fi 8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8455 fi 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8459 CFLAGS="$xorg_testset_save_CFLAGS" 8460 fi 8461 8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471 else 8472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8473 /* end confdefs.h. */ 8474 int i; 8475 _ACEOF 8476 if ac_fn_c_try_compile "$LINENO"; then : 8477 xorg_cv_cc_flag_unused_command_line_argument=yes 8478 else 8479 xorg_cv_cc_flag_unused_command_line_argument=no 8480 fi 8481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8482 fi 8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8486 CFLAGS="$xorg_testset_save_CFLAGS" 8487 fi 8488 8489 found="no" 8490 8491 if test $found = "no" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8498 fi 8499 8500 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8501 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8503 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8504 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8505 if eval \${$cacheid+:} false; then : 8506 $as_echo_n "(cached) " >&6 8507 else 8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509 /* end confdefs.h. */ 8510 int i; 8511 int 8512 main () 8513 { 8514 8515 ; 8516 return 0; 8517 } 8518 _ACEOF 8519 if ac_fn_c_try_link "$LINENO"; then : 8520 eval $cacheid=yes 8521 else 8522 eval $cacheid=no 8523 fi 8524 rm -f core conftest.err conftest.$ac_objext \ 8525 conftest$ac_exeext conftest.$ac_ext 8526 fi 8527 8528 8529 CFLAGS="$xorg_testset_save_CFLAGS" 8530 8531 eval supported=\$$cacheid 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8533 $as_echo "$supported" >&6; } 8534 if test "$supported" = "yes" ; then 8535 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8536 found="yes" 8537 fi 8538 fi 8539 8540 if test $found = "no" ; then 8541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8543 fi 8544 8545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8547 fi 8548 8549 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8550 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8552 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8553 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8554 if eval \${$cacheid+:} false; then : 8555 $as_echo_n "(cached) " >&6 8556 else 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558 /* end confdefs.h. */ 8559 int i; 8560 int 8561 main () 8562 { 8563 8564 ; 8565 return 0; 8566 } 8567 _ACEOF 8568 if ac_fn_c_try_link "$LINENO"; then : 8569 eval $cacheid=yes 8570 else 8571 eval $cacheid=no 8572 fi 8573 rm -f core conftest.err conftest.$ac_objext \ 8574 conftest$ac_exeext conftest.$ac_ext 8575 fi 8576 8577 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579 8580 eval supported=\$$cacheid 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8582 $as_echo "$supported" >&6; } 8583 if test "$supported" = "yes" ; then 8584 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8585 found="yes" 8586 fi 8587 fi 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 xorg_testset_save_CFLAGS="$CFLAGS" 8604 8605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8608 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8609 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611 else 8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8613 /* end confdefs.h. */ 8614 int i; 8615 _ACEOF 8616 if ac_fn_c_try_compile "$LINENO"; then : 8617 xorg_cv_cc_flag_unknown_warning_option=yes 8618 else 8619 xorg_cv_cc_flag_unknown_warning_option=no 8620 fi 8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8622 fi 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8624 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8626 CFLAGS="$xorg_testset_save_CFLAGS" 8627 fi 8628 8629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8632 fi 8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8635 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8636 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638 else 8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640 /* end confdefs.h. */ 8641 int i; 8642 _ACEOF 8643 if ac_fn_c_try_compile "$LINENO"; then : 8644 xorg_cv_cc_flag_unused_command_line_argument=yes 8645 else 8646 xorg_cv_cc_flag_unused_command_line_argument=no 8647 fi 8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8649 fi 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8651 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8653 CFLAGS="$xorg_testset_save_CFLAGS" 8654 fi 8655 8656 found="no" 8657 8658 if test $found = "no" ; then 8659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 fi 8662 8663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8665 fi 8666 8667 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8668 8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8670 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8671 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8672 if eval \${$cacheid+:} false; then : 8673 $as_echo_n "(cached) " >&6 8674 else 8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8676 /* end confdefs.h. */ 8677 int i; 8678 int 8679 main () 8680 { 8681 8682 ; 8683 return 0; 8684 } 8685 _ACEOF 8686 if ac_fn_c_try_link "$LINENO"; then : 8687 eval $cacheid=yes 8688 else 8689 eval $cacheid=no 8690 fi 8691 rm -f core conftest.err conftest.$ac_objext \ 8692 conftest$ac_exeext conftest.$ac_ext 8693 fi 8694 8695 8696 CFLAGS="$xorg_testset_save_CFLAGS" 8697 8698 eval supported=\$$cacheid 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8700 $as_echo "$supported" >&6; } 8701 if test "$supported" = "yes" ; then 8702 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8703 found="yes" 8704 fi 8705 fi 8706 8707 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8708 else 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8710 $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 xorg_testset_save_CFLAGS="$CFLAGS" 8725 8726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732 else 8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734 /* end confdefs.h. */ 8735 int i; 8736 _ACEOF 8737 if ac_fn_c_try_compile "$LINENO"; then : 8738 xorg_cv_cc_flag_unknown_warning_option=yes 8739 else 8740 xorg_cv_cc_flag_unknown_warning_option=no 8741 fi 8742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8743 fi 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748 fi 8749 8750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8753 fi 8754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8758 $as_echo_n "(cached) " >&6 8759 else 8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8761 /* end confdefs.h. */ 8762 int i; 8763 _ACEOF 8764 if ac_fn_c_try_compile "$LINENO"; then : 8765 xorg_cv_cc_flag_unused_command_line_argument=yes 8766 else 8767 xorg_cv_cc_flag_unused_command_line_argument=no 8768 fi 8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8770 fi 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8774 CFLAGS="$xorg_testset_save_CFLAGS" 8775 fi 8776 8777 found="no" 8778 8779 if test $found = "no" ; then 8780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8782 fi 8783 8784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8786 fi 8787 8788 CFLAGS="$CFLAGS -Wimplicit" 8789 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8791 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8792 cacheid=xorg_cv_cc_flag__Wimplicit 8793 if eval \${$cacheid+:} false; then : 8794 $as_echo_n "(cached) " >&6 8795 else 8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8797 /* end confdefs.h. */ 8798 int i; 8799 int 8800 main () 8801 { 8802 8803 ; 8804 return 0; 8805 } 8806 _ACEOF 8807 if ac_fn_c_try_link "$LINENO"; then : 8808 eval $cacheid=yes 8809 else 8810 eval $cacheid=no 8811 fi 8812 rm -f core conftest.err conftest.$ac_objext \ 8813 conftest$ac_exeext conftest.$ac_ext 8814 fi 8815 8816 8817 CFLAGS="$xorg_testset_save_CFLAGS" 8818 8819 eval supported=\$$cacheid 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8821 $as_echo "$supported" >&6; } 8822 if test "$supported" = "yes" ; then 8823 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8824 found="yes" 8825 fi 8826 fi 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 xorg_testset_save_CFLAGS="$CFLAGS" 8843 8844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8849 $as_echo_n "(cached) " >&6 8850 else 8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8852 /* end confdefs.h. */ 8853 int i; 8854 _ACEOF 8855 if ac_fn_c_try_compile "$LINENO"; then : 8856 xorg_cv_cc_flag_unknown_warning_option=yes 8857 else 8858 xorg_cv_cc_flag_unknown_warning_option=no 8859 fi 8860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8861 fi 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8865 CFLAGS="$xorg_testset_save_CFLAGS" 8866 fi 8867 8868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8871 fi 8872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877 else 8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8879 /* end confdefs.h. */ 8880 int i; 8881 _ACEOF 8882 if ac_fn_c_try_compile "$LINENO"; then : 8883 xorg_cv_cc_flag_unused_command_line_argument=yes 8884 else 8885 xorg_cv_cc_flag_unused_command_line_argument=no 8886 fi 8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8888 fi 8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8892 CFLAGS="$xorg_testset_save_CFLAGS" 8893 fi 8894 8895 found="no" 8896 8897 if test $found = "no" ; then 8898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8900 fi 8901 8902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8904 fi 8905 8906 CFLAGS="$CFLAGS -Wnonnull" 8907 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8909 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8910 cacheid=xorg_cv_cc_flag__Wnonnull 8911 if eval \${$cacheid+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913 else 8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8915 /* end confdefs.h. */ 8916 int i; 8917 int 8918 main () 8919 { 8920 8921 ; 8922 return 0; 8923 } 8924 _ACEOF 8925 if ac_fn_c_try_link "$LINENO"; then : 8926 eval $cacheid=yes 8927 else 8928 eval $cacheid=no 8929 fi 8930 rm -f core conftest.err conftest.$ac_objext \ 8931 conftest$ac_exeext conftest.$ac_ext 8932 fi 8933 8934 8935 CFLAGS="$xorg_testset_save_CFLAGS" 8936 8937 eval supported=\$$cacheid 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8939 $as_echo "$supported" >&6; } 8940 if test "$supported" = "yes" ; then 8941 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8942 found="yes" 8943 fi 8944 fi 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 xorg_testset_save_CFLAGS="$CFLAGS" 8961 8962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968 else 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970 /* end confdefs.h. */ 8971 int i; 8972 _ACEOF 8973 if ac_fn_c_try_compile "$LINENO"; then : 8974 xorg_cv_cc_flag_unknown_warning_option=yes 8975 else 8976 xorg_cv_cc_flag_unknown_warning_option=no 8977 fi 8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8979 fi 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8983 CFLAGS="$xorg_testset_save_CFLAGS" 8984 fi 8985 8986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8989 fi 8990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995 else 8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8997 /* end confdefs.h. */ 8998 int i; 8999 _ACEOF 9000 if ac_fn_c_try_compile "$LINENO"; then : 9001 xorg_cv_cc_flag_unused_command_line_argument=yes 9002 else 9003 xorg_cv_cc_flag_unused_command_line_argument=no 9004 fi 9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9006 fi 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9010 CFLAGS="$xorg_testset_save_CFLAGS" 9011 fi 9012 9013 found="no" 9014 9015 if test $found = "no" ; then 9016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9018 fi 9019 9020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9022 fi 9023 9024 CFLAGS="$CFLAGS -Winit-self" 9025 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9027 $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9028 cacheid=xorg_cv_cc_flag__Winit_self 9029 if eval \${$cacheid+:} false; then : 9030 $as_echo_n "(cached) " >&6 9031 else 9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9033 /* end confdefs.h. */ 9034 int i; 9035 int 9036 main () 9037 { 9038 9039 ; 9040 return 0; 9041 } 9042 _ACEOF 9043 if ac_fn_c_try_link "$LINENO"; then : 9044 eval $cacheid=yes 9045 else 9046 eval $cacheid=no 9047 fi 9048 rm -f core conftest.err conftest.$ac_objext \ 9049 conftest$ac_exeext conftest.$ac_ext 9050 fi 9051 9052 9053 CFLAGS="$xorg_testset_save_CFLAGS" 9054 9055 eval supported=\$$cacheid 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9057 $as_echo "$supported" >&6; } 9058 if test "$supported" = "yes" ; then 9059 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9060 found="yes" 9061 fi 9062 fi 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 xorg_testset_save_CFLAGS="$CFLAGS" 9079 9080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9085 $as_echo_n "(cached) " >&6 9086 else 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088 /* end confdefs.h. */ 9089 int i; 9090 _ACEOF 9091 if ac_fn_c_try_compile "$LINENO"; then : 9092 xorg_cv_cc_flag_unknown_warning_option=yes 9093 else 9094 xorg_cv_cc_flag_unknown_warning_option=no 9095 fi 9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9097 fi 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9101 CFLAGS="$xorg_testset_save_CFLAGS" 9102 fi 9103 9104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9107 fi 9108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9112 $as_echo_n "(cached) " >&6 9113 else 9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9115 /* end confdefs.h. */ 9116 int i; 9117 _ACEOF 9118 if ac_fn_c_try_compile "$LINENO"; then : 9119 xorg_cv_cc_flag_unused_command_line_argument=yes 9120 else 9121 xorg_cv_cc_flag_unused_command_line_argument=no 9122 fi 9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9124 fi 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9128 CFLAGS="$xorg_testset_save_CFLAGS" 9129 fi 9130 9131 found="no" 9132 9133 if test $found = "no" ; then 9134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9136 fi 9137 9138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9140 fi 9141 9142 CFLAGS="$CFLAGS -Wmain" 9143 9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9145 $as_echo_n "checking if $CC supports -Wmain... " >&6; } 9146 cacheid=xorg_cv_cc_flag__Wmain 9147 if eval \${$cacheid+:} false; then : 9148 $as_echo_n "(cached) " >&6 9149 else 9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9151 /* end confdefs.h. */ 9152 int i; 9153 int 9154 main () 9155 { 9156 9157 ; 9158 return 0; 9159 } 9160 _ACEOF 9161 if ac_fn_c_try_link "$LINENO"; then : 9162 eval $cacheid=yes 9163 else 9164 eval $cacheid=no 9165 fi 9166 rm -f core conftest.err conftest.$ac_objext \ 9167 conftest$ac_exeext conftest.$ac_ext 9168 fi 9169 9170 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172 9173 eval supported=\$$cacheid 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9175 $as_echo "$supported" >&6; } 9176 if test "$supported" = "yes" ; then 9177 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9178 found="yes" 9179 fi 9180 fi 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 xorg_testset_save_CFLAGS="$CFLAGS" 9197 9198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204 else 9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9206 /* end confdefs.h. */ 9207 int i; 9208 _ACEOF 9209 if ac_fn_c_try_compile "$LINENO"; then : 9210 xorg_cv_cc_flag_unknown_warning_option=yes 9211 else 9212 xorg_cv_cc_flag_unknown_warning_option=no 9213 fi 9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9215 fi 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9219 CFLAGS="$xorg_testset_save_CFLAGS" 9220 fi 9221 9222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9225 fi 9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231 else 9232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9233 /* end confdefs.h. */ 9234 int i; 9235 _ACEOF 9236 if ac_fn_c_try_compile "$LINENO"; then : 9237 xorg_cv_cc_flag_unused_command_line_argument=yes 9238 else 9239 xorg_cv_cc_flag_unused_command_line_argument=no 9240 fi 9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9242 fi 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9246 CFLAGS="$xorg_testset_save_CFLAGS" 9247 fi 9248 9249 found="no" 9250 9251 if test $found = "no" ; then 9252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9254 fi 9255 9256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9258 fi 9259 9260 CFLAGS="$CFLAGS -Wmissing-braces" 9261 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9263 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9264 cacheid=xorg_cv_cc_flag__Wmissing_braces 9265 if eval \${$cacheid+:} false; then : 9266 $as_echo_n "(cached) " >&6 9267 else 9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9269 /* end confdefs.h. */ 9270 int i; 9271 int 9272 main () 9273 { 9274 9275 ; 9276 return 0; 9277 } 9278 _ACEOF 9279 if ac_fn_c_try_link "$LINENO"; then : 9280 eval $cacheid=yes 9281 else 9282 eval $cacheid=no 9283 fi 9284 rm -f core conftest.err conftest.$ac_objext \ 9285 conftest$ac_exeext conftest.$ac_ext 9286 fi 9287 9288 9289 CFLAGS="$xorg_testset_save_CFLAGS" 9290 9291 eval supported=\$$cacheid 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9293 $as_echo "$supported" >&6; } 9294 if test "$supported" = "yes" ; then 9295 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9296 found="yes" 9297 fi 9298 fi 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 xorg_testset_save_CFLAGS="$CFLAGS" 9315 9316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322 else 9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9324 /* end confdefs.h. */ 9325 int i; 9326 _ACEOF 9327 if ac_fn_c_try_compile "$LINENO"; then : 9328 xorg_cv_cc_flag_unknown_warning_option=yes 9329 else 9330 xorg_cv_cc_flag_unknown_warning_option=no 9331 fi 9332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9333 fi 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9337 CFLAGS="$xorg_testset_save_CFLAGS" 9338 fi 9339 9340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9343 fi 9344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9348 $as_echo_n "(cached) " >&6 9349 else 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351 /* end confdefs.h. */ 9352 int i; 9353 _ACEOF 9354 if ac_fn_c_try_compile "$LINENO"; then : 9355 xorg_cv_cc_flag_unused_command_line_argument=yes 9356 else 9357 xorg_cv_cc_flag_unused_command_line_argument=no 9358 fi 9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9360 fi 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365 fi 9366 9367 found="no" 9368 9369 if test $found = "no" ; then 9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9372 fi 9373 9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9376 fi 9377 9378 CFLAGS="$CFLAGS -Wsequence-point" 9379 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9381 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9382 cacheid=xorg_cv_cc_flag__Wsequence_point 9383 if eval \${$cacheid+:} false; then : 9384 $as_echo_n "(cached) " >&6 9385 else 9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387 /* end confdefs.h. */ 9388 int i; 9389 int 9390 main () 9391 { 9392 9393 ; 9394 return 0; 9395 } 9396 _ACEOF 9397 if ac_fn_c_try_link "$LINENO"; then : 9398 eval $cacheid=yes 9399 else 9400 eval $cacheid=no 9401 fi 9402 rm -f core conftest.err conftest.$ac_objext \ 9403 conftest$ac_exeext conftest.$ac_ext 9404 fi 9405 9406 9407 CFLAGS="$xorg_testset_save_CFLAGS" 9408 9409 eval supported=\$$cacheid 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9411 $as_echo "$supported" >&6; } 9412 if test "$supported" = "yes" ; then 9413 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9414 found="yes" 9415 fi 9416 fi 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 xorg_testset_save_CFLAGS="$CFLAGS" 9433 9434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9439 $as_echo_n "(cached) " >&6 9440 else 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442 /* end confdefs.h. */ 9443 int i; 9444 _ACEOF 9445 if ac_fn_c_try_compile "$LINENO"; then : 9446 xorg_cv_cc_flag_unknown_warning_option=yes 9447 else 9448 xorg_cv_cc_flag_unknown_warning_option=no 9449 fi 9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9451 fi 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9455 CFLAGS="$xorg_testset_save_CFLAGS" 9456 fi 9457 9458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9461 fi 9462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467 else 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469 /* end confdefs.h. */ 9470 int i; 9471 _ACEOF 9472 if ac_fn_c_try_compile "$LINENO"; then : 9473 xorg_cv_cc_flag_unused_command_line_argument=yes 9474 else 9475 xorg_cv_cc_flag_unused_command_line_argument=no 9476 fi 9477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9478 fi 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9482 CFLAGS="$xorg_testset_save_CFLAGS" 9483 fi 9484 9485 found="no" 9486 9487 if test $found = "no" ; then 9488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9490 fi 9491 9492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9494 fi 9495 9496 CFLAGS="$CFLAGS -Wreturn-type" 9497 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9499 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9500 cacheid=xorg_cv_cc_flag__Wreturn_type 9501 if eval \${$cacheid+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503 else 9504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9505 /* end confdefs.h. */ 9506 int i; 9507 int 9508 main () 9509 { 9510 9511 ; 9512 return 0; 9513 } 9514 _ACEOF 9515 if ac_fn_c_try_link "$LINENO"; then : 9516 eval $cacheid=yes 9517 else 9518 eval $cacheid=no 9519 fi 9520 rm -f core conftest.err conftest.$ac_objext \ 9521 conftest$ac_exeext conftest.$ac_ext 9522 fi 9523 9524 9525 CFLAGS="$xorg_testset_save_CFLAGS" 9526 9527 eval supported=\$$cacheid 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9529 $as_echo "$supported" >&6; } 9530 if test "$supported" = "yes" ; then 9531 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9532 found="yes" 9533 fi 9534 fi 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 xorg_testset_save_CFLAGS="$CFLAGS" 9551 9552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558 else 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560 /* end confdefs.h. */ 9561 int i; 9562 _ACEOF 9563 if ac_fn_c_try_compile "$LINENO"; then : 9564 xorg_cv_cc_flag_unknown_warning_option=yes 9565 else 9566 xorg_cv_cc_flag_unknown_warning_option=no 9567 fi 9568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569 fi 9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9573 CFLAGS="$xorg_testset_save_CFLAGS" 9574 fi 9575 9576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585 else 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587 /* end confdefs.h. */ 9588 int i; 9589 _ACEOF 9590 if ac_fn_c_try_compile "$LINENO"; then : 9591 xorg_cv_cc_flag_unused_command_line_argument=yes 9592 else 9593 xorg_cv_cc_flag_unused_command_line_argument=no 9594 fi 9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9596 fi 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9600 CFLAGS="$xorg_testset_save_CFLAGS" 9601 fi 9602 9603 found="no" 9604 9605 if test $found = "no" ; then 9606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9608 fi 9609 9610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9612 fi 9613 9614 CFLAGS="$CFLAGS -Wtrigraphs" 9615 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9617 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9618 cacheid=xorg_cv_cc_flag__Wtrigraphs 9619 if eval \${$cacheid+:} false; then : 9620 $as_echo_n "(cached) " >&6 9621 else 9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623 /* end confdefs.h. */ 9624 int i; 9625 int 9626 main () 9627 { 9628 9629 ; 9630 return 0; 9631 } 9632 _ACEOF 9633 if ac_fn_c_try_link "$LINENO"; then : 9634 eval $cacheid=yes 9635 else 9636 eval $cacheid=no 9637 fi 9638 rm -f core conftest.err conftest.$ac_objext \ 9639 conftest$ac_exeext conftest.$ac_ext 9640 fi 9641 9642 9643 CFLAGS="$xorg_testset_save_CFLAGS" 9644 9645 eval supported=\$$cacheid 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9647 $as_echo "$supported" >&6; } 9648 if test "$supported" = "yes" ; then 9649 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9650 found="yes" 9651 fi 9652 fi 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 xorg_testset_save_CFLAGS="$CFLAGS" 9669 9670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676 else 9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9678 /* end confdefs.h. */ 9679 int i; 9680 _ACEOF 9681 if ac_fn_c_try_compile "$LINENO"; then : 9682 xorg_cv_cc_flag_unknown_warning_option=yes 9683 else 9684 xorg_cv_cc_flag_unknown_warning_option=no 9685 fi 9686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9687 fi 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9691 CFLAGS="$xorg_testset_save_CFLAGS" 9692 fi 9693 9694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9697 fi 9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9702 $as_echo_n "(cached) " >&6 9703 else 9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9705 /* end confdefs.h. */ 9706 int i; 9707 _ACEOF 9708 if ac_fn_c_try_compile "$LINENO"; then : 9709 xorg_cv_cc_flag_unused_command_line_argument=yes 9710 else 9711 xorg_cv_cc_flag_unused_command_line_argument=no 9712 fi 9713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9714 fi 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9718 CFLAGS="$xorg_testset_save_CFLAGS" 9719 fi 9720 9721 found="no" 9722 9723 if test $found = "no" ; then 9724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9726 fi 9727 9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9730 fi 9731 9732 CFLAGS="$CFLAGS -Warray-bounds" 9733 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9735 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9736 cacheid=xorg_cv_cc_flag__Warray_bounds 9737 if eval \${$cacheid+:} false; then : 9738 $as_echo_n "(cached) " >&6 9739 else 9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9741 /* end confdefs.h. */ 9742 int i; 9743 int 9744 main () 9745 { 9746 9747 ; 9748 return 0; 9749 } 9750 _ACEOF 9751 if ac_fn_c_try_link "$LINENO"; then : 9752 eval $cacheid=yes 9753 else 9754 eval $cacheid=no 9755 fi 9756 rm -f core conftest.err conftest.$ac_objext \ 9757 conftest$ac_exeext conftest.$ac_ext 9758 fi 9759 9760 9761 CFLAGS="$xorg_testset_save_CFLAGS" 9762 9763 eval supported=\$$cacheid 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9765 $as_echo "$supported" >&6; } 9766 if test "$supported" = "yes" ; then 9767 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9768 found="yes" 9769 fi 9770 fi 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 xorg_testset_save_CFLAGS="$CFLAGS" 9787 9788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9791 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9792 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9793 $as_echo_n "(cached) " >&6 9794 else 9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9796 /* end confdefs.h. */ 9797 int i; 9798 _ACEOF 9799 if ac_fn_c_try_compile "$LINENO"; then : 9800 xorg_cv_cc_flag_unknown_warning_option=yes 9801 else 9802 xorg_cv_cc_flag_unknown_warning_option=no 9803 fi 9804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9805 fi 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9807 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9809 CFLAGS="$xorg_testset_save_CFLAGS" 9810 fi 9811 9812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9815 fi 9816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9818 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9819 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9820 $as_echo_n "(cached) " >&6 9821 else 9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823 /* end confdefs.h. */ 9824 int i; 9825 _ACEOF 9826 if ac_fn_c_try_compile "$LINENO"; then : 9827 xorg_cv_cc_flag_unused_command_line_argument=yes 9828 else 9829 xorg_cv_cc_flag_unused_command_line_argument=no 9830 fi 9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9832 fi 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9834 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9836 CFLAGS="$xorg_testset_save_CFLAGS" 9837 fi 9838 9839 found="no" 9840 9841 if test $found = "no" ; then 9842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9844 fi 9845 9846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9848 fi 9849 9850 CFLAGS="$CFLAGS -Wwrite-strings" 9851 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9853 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9854 cacheid=xorg_cv_cc_flag__Wwrite_strings 9855 if eval \${$cacheid+:} false; then : 9856 $as_echo_n "(cached) " >&6 9857 else 9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9859 /* end confdefs.h. */ 9860 int i; 9861 int 9862 main () 9863 { 9864 9865 ; 9866 return 0; 9867 } 9868 _ACEOF 9869 if ac_fn_c_try_link "$LINENO"; then : 9870 eval $cacheid=yes 9871 else 9872 eval $cacheid=no 9873 fi 9874 rm -f core conftest.err conftest.$ac_objext \ 9875 conftest$ac_exeext conftest.$ac_ext 9876 fi 9877 9878 9879 CFLAGS="$xorg_testset_save_CFLAGS" 9880 9881 eval supported=\$$cacheid 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9883 $as_echo "$supported" >&6; } 9884 if test "$supported" = "yes" ; then 9885 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9886 found="yes" 9887 fi 9888 fi 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 xorg_testset_save_CFLAGS="$CFLAGS" 9905 9906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912 else 9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914 /* end confdefs.h. */ 9915 int i; 9916 _ACEOF 9917 if ac_fn_c_try_compile "$LINENO"; then : 9918 xorg_cv_cc_flag_unknown_warning_option=yes 9919 else 9920 xorg_cv_cc_flag_unknown_warning_option=no 9921 fi 9922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9923 fi 9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9928 fi 9929 9930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9933 fi 9934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9938 $as_echo_n "(cached) " >&6 9939 else 9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9941 /* end confdefs.h. */ 9942 int i; 9943 _ACEOF 9944 if ac_fn_c_try_compile "$LINENO"; then : 9945 xorg_cv_cc_flag_unused_command_line_argument=yes 9946 else 9947 xorg_cv_cc_flag_unused_command_line_argument=no 9948 fi 9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9950 fi 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9954 CFLAGS="$xorg_testset_save_CFLAGS" 9955 fi 9956 9957 found="no" 9958 9959 if test $found = "no" ; then 9960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9962 fi 9963 9964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9966 fi 9967 9968 CFLAGS="$CFLAGS -Waddress" 9969 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9971 $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9972 cacheid=xorg_cv_cc_flag__Waddress 9973 if eval \${$cacheid+:} false; then : 9974 $as_echo_n "(cached) " >&6 9975 else 9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9977 /* end confdefs.h. */ 9978 int i; 9979 int 9980 main () 9981 { 9982 9983 ; 9984 return 0; 9985 } 9986 _ACEOF 9987 if ac_fn_c_try_link "$LINENO"; then : 9988 eval $cacheid=yes 9989 else 9990 eval $cacheid=no 9991 fi 9992 rm -f core conftest.err conftest.$ac_objext \ 9993 conftest$ac_exeext conftest.$ac_ext 9994 fi 9995 9996 9997 CFLAGS="$xorg_testset_save_CFLAGS" 9998 9999 eval supported=\$$cacheid 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10001 $as_echo "$supported" >&6; } 10002 if test "$supported" = "yes" ; then 10003 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10004 found="yes" 10005 fi 10006 fi 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 xorg_testset_save_CFLAGS="$CFLAGS" 10023 10024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10029 $as_echo_n "(cached) " >&6 10030 else 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032 /* end confdefs.h. */ 10033 int i; 10034 _ACEOF 10035 if ac_fn_c_try_compile "$LINENO"; then : 10036 xorg_cv_cc_flag_unknown_warning_option=yes 10037 else 10038 xorg_cv_cc_flag_unknown_warning_option=no 10039 fi 10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10041 fi 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10045 CFLAGS="$xorg_testset_save_CFLAGS" 10046 fi 10047 10048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10051 fi 10052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057 else 10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10059 /* end confdefs.h. */ 10060 int i; 10061 _ACEOF 10062 if ac_fn_c_try_compile "$LINENO"; then : 10063 xorg_cv_cc_flag_unused_command_line_argument=yes 10064 else 10065 xorg_cv_cc_flag_unused_command_line_argument=no 10066 fi 10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10068 fi 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10072 CFLAGS="$xorg_testset_save_CFLAGS" 10073 fi 10074 10075 found="no" 10076 10077 if test $found = "no" ; then 10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10080 fi 10081 10082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10084 fi 10085 10086 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10087 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10089 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10090 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10091 if eval \${$cacheid+:} false; then : 10092 $as_echo_n "(cached) " >&6 10093 else 10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10095 /* end confdefs.h. */ 10096 int i; 10097 int 10098 main () 10099 { 10100 10101 ; 10102 return 0; 10103 } 10104 _ACEOF 10105 if ac_fn_c_try_link "$LINENO"; then : 10106 eval $cacheid=yes 10107 else 10108 eval $cacheid=no 10109 fi 10110 rm -f core conftest.err conftest.$ac_objext \ 10111 conftest$ac_exeext conftest.$ac_ext 10112 fi 10113 10114 10115 CFLAGS="$xorg_testset_save_CFLAGS" 10116 10117 eval supported=\$$cacheid 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10119 $as_echo "$supported" >&6; } 10120 if test "$supported" = "yes" ; then 10121 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10122 found="yes" 10123 fi 10124 fi 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 xorg_testset_save_CFLAGS="$CFLAGS" 10141 10142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10145 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10146 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148 else 10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10150 /* end confdefs.h. */ 10151 int i; 10152 _ACEOF 10153 if ac_fn_c_try_compile "$LINENO"; then : 10154 xorg_cv_cc_flag_unknown_warning_option=yes 10155 else 10156 xorg_cv_cc_flag_unknown_warning_option=no 10157 fi 10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10159 fi 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10161 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164 fi 10165 10166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10169 fi 10170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10172 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10173 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10174 $as_echo_n "(cached) " >&6 10175 else 10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10177 /* end confdefs.h. */ 10178 int i; 10179 _ACEOF 10180 if ac_fn_c_try_compile "$LINENO"; then : 10181 xorg_cv_cc_flag_unused_command_line_argument=yes 10182 else 10183 xorg_cv_cc_flag_unused_command_line_argument=no 10184 fi 10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10186 fi 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10188 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10190 CFLAGS="$xorg_testset_save_CFLAGS" 10191 fi 10192 10193 found="no" 10194 10195 if test $found = "no" ; then 10196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10198 fi 10199 10200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10202 fi 10203 10204 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10205 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10207 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10208 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10209 if eval \${$cacheid+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211 else 10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213 /* end confdefs.h. */ 10214 int i; 10215 int 10216 main () 10217 { 10218 10219 ; 10220 return 0; 10221 } 10222 _ACEOF 10223 if ac_fn_c_try_link "$LINENO"; then : 10224 eval $cacheid=yes 10225 else 10226 eval $cacheid=no 10227 fi 10228 rm -f core conftest.err conftest.$ac_objext \ 10229 conftest$ac_exeext conftest.$ac_ext 10230 fi 10231 10232 10233 CFLAGS="$xorg_testset_save_CFLAGS" 10234 10235 eval supported=\$$cacheid 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10237 $as_echo "$supported" >&6; } 10238 if test "$supported" = "yes" ; then 10239 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10240 found="yes" 10241 fi 10242 fi 10243 10244 10245 fi 10246 10247 10248 10249 10250 10251 10252 10253 CWARNFLAGS="$BASE_CFLAGS" 10254 if test "x$GCC" = xyes ; then 10255 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10256 fi 10257 10258 10259 10260 10261 10262 10263 10264 10265 # Check whether --enable-strict-compilation was given. 10266 if test "${enable_strict_compilation+set}" = set; then : 10267 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10268 else 10269 STRICT_COMPILE=no 10270 fi 10271 10272 10273 10274 10275 10276 10277 STRICT_CFLAGS="" 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 xorg_testset_save_CFLAGS="$CFLAGS" 10292 10293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10296 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10297 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10298 $as_echo_n "(cached) " >&6 10299 else 10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301 /* end confdefs.h. */ 10302 int i; 10303 _ACEOF 10304 if ac_fn_c_try_compile "$LINENO"; then : 10305 xorg_cv_cc_flag_unknown_warning_option=yes 10306 else 10307 xorg_cv_cc_flag_unknown_warning_option=no 10308 fi 10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10310 fi 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10312 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10314 CFLAGS="$xorg_testset_save_CFLAGS" 10315 fi 10316 10317 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10320 fi 10321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10323 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10324 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326 else 10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10328 /* end confdefs.h. */ 10329 int i; 10330 _ACEOF 10331 if ac_fn_c_try_compile "$LINENO"; then : 10332 xorg_cv_cc_flag_unused_command_line_argument=yes 10333 else 10334 xorg_cv_cc_flag_unused_command_line_argument=no 10335 fi 10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10337 fi 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10339 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10341 CFLAGS="$xorg_testset_save_CFLAGS" 10342 fi 10343 10344 found="no" 10345 10346 if test $found = "no" ; then 10347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10349 fi 10350 10351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10353 fi 10354 10355 CFLAGS="$CFLAGS -pedantic" 10356 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10358 $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10359 cacheid=xorg_cv_cc_flag__pedantic 10360 if eval \${$cacheid+:} false; then : 10361 $as_echo_n "(cached) " >&6 10362 else 10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10364 /* end confdefs.h. */ 10365 int i; 10366 int 10367 main () 10368 { 10369 10370 ; 10371 return 0; 10372 } 10373 _ACEOF 10374 if ac_fn_c_try_link "$LINENO"; then : 10375 eval $cacheid=yes 10376 else 10377 eval $cacheid=no 10378 fi 10379 rm -f core conftest.err conftest.$ac_objext \ 10380 conftest$ac_exeext conftest.$ac_ext 10381 fi 10382 10383 10384 CFLAGS="$xorg_testset_save_CFLAGS" 10385 10386 eval supported=\$$cacheid 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10388 $as_echo "$supported" >&6; } 10389 if test "$supported" = "yes" ; then 10390 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10391 found="yes" 10392 fi 10393 fi 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 xorg_testset_save_CFLAGS="$CFLAGS" 10410 10411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10414 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10415 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10416 $as_echo_n "(cached) " >&6 10417 else 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419 /* end confdefs.h. */ 10420 int i; 10421 _ACEOF 10422 if ac_fn_c_try_compile "$LINENO"; then : 10423 xorg_cv_cc_flag_unknown_warning_option=yes 10424 else 10425 xorg_cv_cc_flag_unknown_warning_option=no 10426 fi 10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10428 fi 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10430 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433 fi 10434 10435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10438 fi 10439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10441 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10442 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10443 $as_echo_n "(cached) " >&6 10444 else 10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10446 /* end confdefs.h. */ 10447 int i; 10448 _ACEOF 10449 if ac_fn_c_try_compile "$LINENO"; then : 10450 xorg_cv_cc_flag_unused_command_line_argument=yes 10451 else 10452 xorg_cv_cc_flag_unused_command_line_argument=no 10453 fi 10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10455 fi 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10457 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10459 CFLAGS="$xorg_testset_save_CFLAGS" 10460 fi 10461 10462 found="no" 10463 10464 if test $found = "no" ; then 10465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10467 fi 10468 10469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10471 fi 10472 10473 CFLAGS="$CFLAGS -Werror" 10474 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10476 $as_echo_n "checking if $CC supports -Werror... " >&6; } 10477 cacheid=xorg_cv_cc_flag__Werror 10478 if eval \${$cacheid+:} false; then : 10479 $as_echo_n "(cached) " >&6 10480 else 10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10482 /* end confdefs.h. */ 10483 int i; 10484 int 10485 main () 10486 { 10487 10488 ; 10489 return 0; 10490 } 10491 _ACEOF 10492 if ac_fn_c_try_link "$LINENO"; then : 10493 eval $cacheid=yes 10494 else 10495 eval $cacheid=no 10496 fi 10497 rm -f core conftest.err conftest.$ac_objext \ 10498 conftest$ac_exeext conftest.$ac_ext 10499 fi 10500 10501 10502 CFLAGS="$xorg_testset_save_CFLAGS" 10503 10504 eval supported=\$$cacheid 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10506 $as_echo "$supported" >&6; } 10507 if test "$supported" = "yes" ; then 10508 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10509 found="yes" 10510 fi 10511 fi 10512 10513 if test $found = "no" ; then 10514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10516 fi 10517 10518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10520 fi 10521 10522 CFLAGS="$CFLAGS -errwarn" 10523 10524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10525 $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10526 cacheid=xorg_cv_cc_flag__errwarn 10527 if eval \${$cacheid+:} false; then : 10528 $as_echo_n "(cached) " >&6 10529 else 10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10531 /* end confdefs.h. */ 10532 int i; 10533 int 10534 main () 10535 { 10536 10537 ; 10538 return 0; 10539 } 10540 _ACEOF 10541 if ac_fn_c_try_link "$LINENO"; then : 10542 eval $cacheid=yes 10543 else 10544 eval $cacheid=no 10545 fi 10546 rm -f core conftest.err conftest.$ac_objext \ 10547 conftest$ac_exeext conftest.$ac_ext 10548 fi 10549 10550 10551 CFLAGS="$xorg_testset_save_CFLAGS" 10552 10553 eval supported=\$$cacheid 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10555 $as_echo "$supported" >&6; } 10556 if test "$supported" = "yes" ; then 10557 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10558 found="yes" 10559 fi 10560 fi 10561 10562 10563 10564 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10565 # activate it with -Werror, so we add it here explicitly. 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 xorg_testset_save_CFLAGS="$CFLAGS" 10580 10581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10584 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10585 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10586 $as_echo_n "(cached) " >&6 10587 else 10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10589 /* end confdefs.h. */ 10590 int i; 10591 _ACEOF 10592 if ac_fn_c_try_compile "$LINENO"; then : 10593 xorg_cv_cc_flag_unknown_warning_option=yes 10594 else 10595 xorg_cv_cc_flag_unknown_warning_option=no 10596 fi 10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10598 fi 10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10600 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10602 CFLAGS="$xorg_testset_save_CFLAGS" 10603 fi 10604 10605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10608 fi 10609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10611 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10612 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10613 $as_echo_n "(cached) " >&6 10614 else 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616 /* end confdefs.h. */ 10617 int i; 10618 _ACEOF 10619 if ac_fn_c_try_compile "$LINENO"; then : 10620 xorg_cv_cc_flag_unused_command_line_argument=yes 10621 else 10622 xorg_cv_cc_flag_unused_command_line_argument=no 10623 fi 10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10625 fi 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10627 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10629 CFLAGS="$xorg_testset_save_CFLAGS" 10630 fi 10631 10632 found="no" 10633 10634 if test $found = "no" ; then 10635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10637 fi 10638 10639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10641 fi 10642 10643 CFLAGS="$CFLAGS -Werror=attributes" 10644 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10646 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10647 cacheid=xorg_cv_cc_flag__Werror_attributes 10648 if eval \${$cacheid+:} false; then : 10649 $as_echo_n "(cached) " >&6 10650 else 10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10652 /* end confdefs.h. */ 10653 int i; 10654 int 10655 main () 10656 { 10657 10658 ; 10659 return 0; 10660 } 10661 _ACEOF 10662 if ac_fn_c_try_link "$LINENO"; then : 10663 eval $cacheid=yes 10664 else 10665 eval $cacheid=no 10666 fi 10667 rm -f core conftest.err conftest.$ac_objext \ 10668 conftest$ac_exeext conftest.$ac_ext 10669 fi 10670 10671 10672 CFLAGS="$xorg_testset_save_CFLAGS" 10673 10674 eval supported=\$$cacheid 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10676 $as_echo "$supported" >&6; } 10677 if test "$supported" = "yes" ; then 10678 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10679 found="yes" 10680 fi 10681 fi 10682 10683 10684 10685 if test "x$STRICT_COMPILE" = "xyes"; then 10686 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10687 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10688 fi 10689 10690 10691 10692 10693 10694 10695 cat >>confdefs.h <<_ACEOF 10696 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10697 _ACEOF 10698 10699 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10700 if test "x$PVM" = "x"; then 10701 PVM="0" 10702 fi 10703 10704 cat >>confdefs.h <<_ACEOF 10705 #define PACKAGE_VERSION_MINOR $PVM 10706 _ACEOF 10707 10708 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10709 if test "x$PVP" = "x"; then 10710 PVP="0" 10711 fi 10712 10713 cat >>confdefs.h <<_ACEOF 10714 #define PACKAGE_VERSION_PATCHLEVEL $PVP 10715 _ACEOF 10716 10717 10718 10719 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10720 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10721 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10722 echo 'git directory not found: installing possibly empty changelog.' >&2)" 10723 10724 10725 10726 10727 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10728 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10729 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10730 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10731 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10732 10733 10734 10735 10736 10737 10738 if test x$APP_MAN_SUFFIX = x ; then 10739 APP_MAN_SUFFIX=1 10740 fi 10741 if test x$APP_MAN_DIR = x ; then 10742 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10743 fi 10744 10745 if test x$LIB_MAN_SUFFIX = x ; then 10746 LIB_MAN_SUFFIX=3 10747 fi 10748 if test x$LIB_MAN_DIR = x ; then 10749 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10750 fi 10751 10752 if test x$FILE_MAN_SUFFIX = x ; then 10753 case $host_os in 10754 solaris*) FILE_MAN_SUFFIX=4 ;; 10755 *) FILE_MAN_SUFFIX=5 ;; 10756 esac 10757 fi 10758 if test x$FILE_MAN_DIR = x ; then 10759 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10760 fi 10761 10762 if test x$MISC_MAN_SUFFIX = x ; then 10763 case $host_os in 10764 solaris*) MISC_MAN_SUFFIX=5 ;; 10765 *) MISC_MAN_SUFFIX=7 ;; 10766 esac 10767 fi 10768 if test x$MISC_MAN_DIR = x ; then 10769 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10770 fi 10771 10772 if test x$DRIVER_MAN_SUFFIX = x ; then 10773 case $host_os in 10774 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10775 *) DRIVER_MAN_SUFFIX=4 ;; 10776 esac 10777 fi 10778 if test x$DRIVER_MAN_DIR = x ; then 10779 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10780 fi 10781 10782 if test x$ADMIN_MAN_SUFFIX = x ; then 10783 case $host_os in 10784 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10785 *) ADMIN_MAN_SUFFIX=8 ;; 10786 esac 10787 fi 10788 if test x$ADMIN_MAN_DIR = x ; then 10789 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10790 fi 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 XORG_MAN_PAGE="X Version 11" 10807 10808 MAN_SUBSTS="\ 10809 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10810 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10811 -e 's|__xservername__|Xorg|g' \ 10812 -e 's|__xconfigfile__|xorg.conf|g' \ 10813 -e 's|__projectroot__|\$(prefix)|g' \ 10814 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10815 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10816 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10817 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10818 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10819 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10820 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10821 10822 10823 10824 # Check whether --enable-silent-rules was given. 10825 if test "${enable_silent_rules+set}" = set; then : 10826 enableval=$enable_silent_rules; 10827 fi 10828 10829 case $enable_silent_rules in # ((( 10830 yes) AM_DEFAULT_VERBOSITY=0;; 10831 no) AM_DEFAULT_VERBOSITY=1;; 10832 *) AM_DEFAULT_VERBOSITY=0;; 10833 esac 10834 am_make=${MAKE-make} 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10836 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10837 if ${am_cv_make_support_nested_variables+:} false; then : 10838 $as_echo_n "(cached) " >&6 10839 else 10840 if $as_echo 'TRUE=$(BAR$(V)) 10841 BAR0=false 10842 BAR1=true 10843 V=1 10844 am__doit: 10845 @$(TRUE) 10846 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10847 am_cv_make_support_nested_variables=yes 10848 else 10849 am_cv_make_support_nested_variables=no 10850 fi 10851 fi 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10853 $as_echo "$am_cv_make_support_nested_variables" >&6; } 10854 if test $am_cv_make_support_nested_variables = yes; then 10855 AM_V='$(V)' 10856 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10857 else 10858 AM_V=$AM_DEFAULT_VERBOSITY 10859 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10860 fi 10861 AM_BACKSLASH='\' 10862 10863 10864 10865 # Initialize libtool 10866 # Check whether --enable-static was given. 10867 if test "${enable_static+set}" = set; then : 10868 enableval=$enable_static; p=${PACKAGE-default} 10869 case $enableval in 10870 yes) enable_static=yes ;; 10871 no) enable_static=no ;; 10872 *) 10873 enable_static=no 10874 # Look at the argument we got. We use all the common list separators. 10875 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10876 for pkg in $enableval; do 10877 IFS=$lt_save_ifs 10878 if test "X$pkg" = "X$p"; then 10879 enable_static=yes 10880 fi 10881 done 10882 IFS=$lt_save_ifs 10883 ;; 10884 esac 10885 else 10886 enable_static=no 10887 fi 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 case `pwd` in 10898 *\ * | *\ *) 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10900 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10901 esac 10902 10903 10904 10905 macro_version='2.4.6' 10906 macro_revision='2.4.6' 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 ltmain=$ac_aux_dir/ltmain.sh 10921 10922 # Backslashify metacharacters that are still active within 10923 # double-quoted strings. 10924 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10925 10926 # Same as above, but do not quote variable references. 10927 double_quote_subst='s/\(["`\\]\)/\\\1/g' 10928 10929 # Sed substitution to delay expansion of an escaped shell variable in a 10930 # double_quote_subst'ed string. 10931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10932 10933 # Sed substitution to delay expansion of an escaped single quote. 10934 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10935 10936 # Sed substitution to avoid accidental globbing in evaled expressions 10937 no_glob_subst='s/\*/\\\*/g' 10938 10939 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10942 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10944 $as_echo_n "checking how to print strings... " >&6; } 10945 # Test print first, because it will be a builtin if present. 10946 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10948 ECHO='print -r --' 10949 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10950 ECHO='printf %s\n' 10951 else 10952 # Use this function as a fallback that always works. 10953 func_fallback_echo () 10954 { 10955 eval 'cat <<_LTECHO_EOF 10956 $1 10957 _LTECHO_EOF' 10958 } 10959 ECHO='func_fallback_echo' 10960 fi 10961 10962 # func_echo_all arg... 10963 # Invoke $ECHO with all args, space-separated. 10964 func_echo_all () 10965 { 10966 $ECHO "" 10967 } 10968 10969 case $ECHO in 10970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10971 $as_echo "printf" >&6; } ;; 10972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10973 $as_echo "print -r" >&6; } ;; 10974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10975 $as_echo "cat" >&6; } ;; 10976 esac 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10992 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 10993 if ${ac_cv_path_SED+:} false; then : 10994 $as_echo_n "(cached) " >&6 10995 else 10996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10997 for ac_i in 1 2 3 4 5 6 7; do 10998 ac_script="$ac_script$as_nl$ac_script" 10999 done 11000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11001 { ac_script=; unset ac_script;} 11002 if test -z "$SED"; then 11003 ac_path_SED_found=false 11004 # Loop through the user's path and test for each of PROGNAME-LIST 11005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11006 for as_dir in $PATH 11007 do 11008 IFS=$as_save_IFS 11009 test -z "$as_dir" && as_dir=. 11010 for ac_prog in sed gsed; do 11011 for ac_exec_ext in '' $ac_executable_extensions; do 11012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11013 as_fn_executable_p "$ac_path_SED" || continue 11014 # Check for GNU ac_path_SED and select it if it is found. 11015 # Check for GNU $ac_path_SED 11016 case `"$ac_path_SED" --version 2>&1` in 11017 *GNU*) 11018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11019 *) 11020 ac_count=0 11021 $as_echo_n 0123456789 >"conftest.in" 11022 while : 11023 do 11024 cat "conftest.in" "conftest.in" >"conftest.tmp" 11025 mv "conftest.tmp" "conftest.in" 11026 cp "conftest.in" "conftest.nl" 11027 $as_echo '' >> "conftest.nl" 11028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11030 as_fn_arith $ac_count + 1 && ac_count=$as_val 11031 if test $ac_count -gt ${ac_path_SED_max-0}; then 11032 # Best one so far, save it but keep looking for a better one 11033 ac_cv_path_SED="$ac_path_SED" 11034 ac_path_SED_max=$ac_count 11035 fi 11036 # 10*(2^10) chars as input seems more than enough 11037 test $ac_count -gt 10 && break 11038 done 11039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11040 esac 11041 11042 $ac_path_SED_found && break 3 11043 done 11044 done 11045 done 11046 IFS=$as_save_IFS 11047 if test -z "$ac_cv_path_SED"; then 11048 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11049 fi 11050 else 11051 ac_cv_path_SED=$SED 11052 fi 11053 11054 fi 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11056 $as_echo "$ac_cv_path_SED" >&6; } 11057 SED="$ac_cv_path_SED" 11058 rm -f conftest.sed 11059 11060 test -z "$SED" && SED=sed 11061 Xsed="$SED -e 1s/^X//" 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11074 $as_echo_n "checking for fgrep... " >&6; } 11075 if ${ac_cv_path_FGREP+:} false; then : 11076 $as_echo_n "(cached) " >&6 11077 else 11078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11079 then ac_cv_path_FGREP="$GREP -F" 11080 else 11081 if test -z "$FGREP"; then 11082 ac_path_FGREP_found=false 11083 # Loop through the user's path and test for each of PROGNAME-LIST 11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11086 do 11087 IFS=$as_save_IFS 11088 test -z "$as_dir" && as_dir=. 11089 for ac_prog in fgrep; do 11090 for ac_exec_ext in '' $ac_executable_extensions; do 11091 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11092 as_fn_executable_p "$ac_path_FGREP" || continue 11093 # Check for GNU ac_path_FGREP and select it if it is found. 11094 # Check for GNU $ac_path_FGREP 11095 case `"$ac_path_FGREP" --version 2>&1` in 11096 *GNU*) 11097 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11098 *) 11099 ac_count=0 11100 $as_echo_n 0123456789 >"conftest.in" 11101 while : 11102 do 11103 cat "conftest.in" "conftest.in" >"conftest.tmp" 11104 mv "conftest.tmp" "conftest.in" 11105 cp "conftest.in" "conftest.nl" 11106 $as_echo 'FGREP' >> "conftest.nl" 11107 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11109 as_fn_arith $ac_count + 1 && ac_count=$as_val 11110 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11111 # Best one so far, save it but keep looking for a better one 11112 ac_cv_path_FGREP="$ac_path_FGREP" 11113 ac_path_FGREP_max=$ac_count 11114 fi 11115 # 10*(2^10) chars as input seems more than enough 11116 test $ac_count -gt 10 && break 11117 done 11118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11119 esac 11120 11121 $ac_path_FGREP_found && break 3 11122 done 11123 done 11124 done 11125 IFS=$as_save_IFS 11126 if test -z "$ac_cv_path_FGREP"; then 11127 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11128 fi 11129 else 11130 ac_cv_path_FGREP=$FGREP 11131 fi 11132 11133 fi 11134 fi 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11136 $as_echo "$ac_cv_path_FGREP" >&6; } 11137 FGREP="$ac_cv_path_FGREP" 11138 11139 11140 test -z "$GREP" && GREP=grep 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 # Check whether --with-gnu-ld was given. 11161 if test "${with_gnu_ld+set}" = set; then : 11162 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11163 else 11164 with_gnu_ld=no 11165 fi 11166 11167 ac_prog=ld 11168 if test yes = "$GCC"; then 11169 # Check if gcc -print-prog-name=ld gives a path. 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11171 $as_echo_n "checking for ld used by $CC... " >&6; } 11172 case $host in 11173 *-*-mingw*) 11174 # gcc leaves a trailing carriage return, which upsets mingw 11175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11176 *) 11177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11178 esac 11179 case $ac_prog in 11180 # Accept absolute paths. 11181 [\\/]* | ?:[\\/]*) 11182 re_direlt='/[^/][^/]*/\.\./' 11183 # Canonicalize the pathname of ld 11184 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11185 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11186 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11187 done 11188 test -z "$LD" && LD=$ac_prog 11189 ;; 11190 "") 11191 # If it fails, then pretend we aren't using GCC. 11192 ac_prog=ld 11193 ;; 11194 *) 11195 # If it is relative, then search for the first ld in PATH. 11196 with_gnu_ld=unknown 11197 ;; 11198 esac 11199 elif test yes = "$with_gnu_ld"; then 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11201 $as_echo_n "checking for GNU ld... " >&6; } 11202 else 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11204 $as_echo_n "checking for non-GNU ld... " >&6; } 11205 fi 11206 if ${lt_cv_path_LD+:} false; then : 11207 $as_echo_n "(cached) " >&6 11208 else 11209 if test -z "$LD"; then 11210 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11211 for ac_dir in $PATH; do 11212 IFS=$lt_save_ifs 11213 test -z "$ac_dir" && ac_dir=. 11214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11215 lt_cv_path_LD=$ac_dir/$ac_prog 11216 # Check to see if the program is GNU ld. I'd rather use --version, 11217 # but apparently some variants of GNU ld only accept -v. 11218 # Break only if it was the GNU/non-GNU ld that we prefer. 11219 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11220 *GNU* | *'with BFD'*) 11221 test no != "$with_gnu_ld" && break 11222 ;; 11223 *) 11224 test yes != "$with_gnu_ld" && break 11225 ;; 11226 esac 11227 fi 11228 done 11229 IFS=$lt_save_ifs 11230 else 11231 lt_cv_path_LD=$LD # Let the user override the test with a path. 11232 fi 11233 fi 11234 11235 LD=$lt_cv_path_LD 11236 if test -n "$LD"; then 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11238 $as_echo "$LD" >&6; } 11239 else 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11241 $as_echo "no" >&6; } 11242 fi 11243 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11245 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11246 if ${lt_cv_prog_gnu_ld+:} false; then : 11247 $as_echo_n "(cached) " >&6 11248 else 11249 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11250 case `$LD -v 2>&1 </dev/null` in 11251 *GNU* | *'with BFD'*) 11252 lt_cv_prog_gnu_ld=yes 11253 ;; 11254 *) 11255 lt_cv_prog_gnu_ld=no 11256 ;; 11257 esac 11258 fi 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11260 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11261 with_gnu_ld=$lt_cv_prog_gnu_ld 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11272 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11273 if ${lt_cv_path_NM+:} false; then : 11274 $as_echo_n "(cached) " >&6 11275 else 11276 if test -n "$NM"; then 11277 # Let the user override the test. 11278 lt_cv_path_NM=$NM 11279 else 11280 lt_nm_to_check=${ac_tool_prefix}nm 11281 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11282 lt_nm_to_check="$lt_nm_to_check nm" 11283 fi 11284 for lt_tmp_nm in $lt_nm_to_check; do 11285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11286 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11287 IFS=$lt_save_ifs 11288 test -z "$ac_dir" && ac_dir=. 11289 tmp_nm=$ac_dir/$lt_tmp_nm 11290 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11291 # Check to see if the nm accepts a BSD-compat flag. 11292 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11293 # nm: unknown option "B" ignored 11294 # Tru64's nm complains that /dev/null is an invalid object file 11295 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11296 case $build_os in 11297 mingw*) lt_bad_file=conftest.nm/nofile ;; 11298 *) lt_bad_file=/dev/null ;; 11299 esac 11300 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11301 *$lt_bad_file* | *'Invalid file or object type'*) 11302 lt_cv_path_NM="$tmp_nm -B" 11303 break 2 11304 ;; 11305 *) 11306 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11307 */dev/null*) 11308 lt_cv_path_NM="$tmp_nm -p" 11309 break 2 11310 ;; 11311 *) 11312 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11313 continue # so that we can try to find one that supports BSD flags 11314 ;; 11315 esac 11316 ;; 11317 esac 11318 fi 11319 done 11320 IFS=$lt_save_ifs 11321 done 11322 : ${lt_cv_path_NM=no} 11323 fi 11324 fi 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11326 $as_echo "$lt_cv_path_NM" >&6; } 11327 if test no != "$lt_cv_path_NM"; then 11328 NM=$lt_cv_path_NM 11329 else 11330 # Didn't find any BSD compatible name lister, look for dumpbin. 11331 if test -n "$DUMPBIN"; then : 11332 # Let the user override the test. 11333 else 11334 if test -n "$ac_tool_prefix"; then 11335 for ac_prog in dumpbin "link -dump" 11336 do 11337 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11338 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11340 $as_echo_n "checking for $ac_word... " >&6; } 11341 if ${ac_cv_prog_DUMPBIN+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343 else 11344 if test -n "$DUMPBIN"; then 11345 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11346 else 11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11348 for as_dir in $PATH 11349 do 11350 IFS=$as_save_IFS 11351 test -z "$as_dir" && as_dir=. 11352 for ac_exec_ext in '' $ac_executable_extensions; do 11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11354 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11356 break 2 11357 fi 11358 done 11359 done 11360 IFS=$as_save_IFS 11361 11362 fi 11363 fi 11364 DUMPBIN=$ac_cv_prog_DUMPBIN 11365 if test -n "$DUMPBIN"; then 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11367 $as_echo "$DUMPBIN" >&6; } 11368 else 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11370 $as_echo "no" >&6; } 11371 fi 11372 11373 11374 test -n "$DUMPBIN" && break 11375 done 11376 fi 11377 if test -z "$DUMPBIN"; then 11378 ac_ct_DUMPBIN=$DUMPBIN 11379 for ac_prog in dumpbin "link -dump" 11380 do 11381 # Extract the first word of "$ac_prog", so it can be a program name with args. 11382 set dummy $ac_prog; ac_word=$2 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11384 $as_echo_n "checking for $ac_word... " >&6; } 11385 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11386 $as_echo_n "(cached) " >&6 11387 else 11388 if test -n "$ac_ct_DUMPBIN"; then 11389 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11390 else 11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11392 for as_dir in $PATH 11393 do 11394 IFS=$as_save_IFS 11395 test -z "$as_dir" && as_dir=. 11396 for ac_exec_ext in '' $ac_executable_extensions; do 11397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11398 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11400 break 2 11401 fi 11402 done 11403 done 11404 IFS=$as_save_IFS 11405 11406 fi 11407 fi 11408 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11409 if test -n "$ac_ct_DUMPBIN"; then 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11411 $as_echo "$ac_ct_DUMPBIN" >&6; } 11412 else 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11414 $as_echo "no" >&6; } 11415 fi 11416 11417 11418 test -n "$ac_ct_DUMPBIN" && break 11419 done 11420 11421 if test "x$ac_ct_DUMPBIN" = x; then 11422 DUMPBIN=":" 11423 else 11424 case $cross_compiling:$ac_tool_warned in 11425 yes:) 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11428 ac_tool_warned=yes ;; 11429 esac 11430 DUMPBIN=$ac_ct_DUMPBIN 11431 fi 11432 fi 11433 11434 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11435 *COFF*) 11436 DUMPBIN="$DUMPBIN -symbols -headers" 11437 ;; 11438 *) 11439 DUMPBIN=: 11440 ;; 11441 esac 11442 fi 11443 11444 if test : != "$DUMPBIN"; then 11445 NM=$DUMPBIN 11446 fi 11447 fi 11448 test -z "$NM" && NM=nm 11449 11450 11451 11452 11453 11454 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11456 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 11457 if ${lt_cv_nm_interface+:} false; then : 11458 $as_echo_n "(cached) " >&6 11459 else 11460 lt_cv_nm_interface="BSD nm" 11461 echo "int some_variable = 0;" > conftest.$ac_ext 11462 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11463 (eval "$ac_compile" 2>conftest.err) 11464 cat conftest.err >&5 11465 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11466 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11467 cat conftest.err >&5 11468 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11469 cat conftest.out >&5 11470 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11471 lt_cv_nm_interface="MS dumpbin" 11472 fi 11473 rm -f conftest* 11474 fi 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11476 $as_echo "$lt_cv_nm_interface" >&6; } 11477 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11479 $as_echo_n "checking whether ln -s works... " >&6; } 11480 LN_S=$as_ln_s 11481 if test "$LN_S" = "ln -s"; then 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11483 $as_echo "yes" >&6; } 11484 else 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11486 $as_echo "no, using $LN_S" >&6; } 11487 fi 11488 11489 # find the maximum length of command line arguments 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11491 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 11492 if ${lt_cv_sys_max_cmd_len+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494 else 11495 i=0 11496 teststring=ABCD 11497 11498 case $build_os in 11499 msdosdjgpp*) 11500 # On DJGPP, this test can blow up pretty badly due to problems in libc 11501 # (any single argument exceeding 2000 bytes causes a buffer overrun 11502 # during glob expansion). Even if it were fixed, the result of this 11503 # check would be larger than it should be. 11504 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11505 ;; 11506 11507 gnu*) 11508 # Under GNU Hurd, this test is not required because there is 11509 # no limit to the length of command line arguments. 11510 # Libtool will interpret -1 as no limit whatsoever 11511 lt_cv_sys_max_cmd_len=-1; 11512 ;; 11513 11514 cygwin* | mingw* | cegcc*) 11515 # On Win9x/ME, this test blows up -- it succeeds, but takes 11516 # about 5 minutes as the teststring grows exponentially. 11517 # Worse, since 9x/ME are not pre-emptively multitasking, 11518 # you end up with a "frozen" computer, even though with patience 11519 # the test eventually succeeds (with a max line length of 256k). 11520 # Instead, let's just punt: use the minimum linelength reported by 11521 # all of the supported platforms: 8192 (on NT/2K/XP). 11522 lt_cv_sys_max_cmd_len=8192; 11523 ;; 11524 11525 mint*) 11526 # On MiNT this can take a long time and run out of memory. 11527 lt_cv_sys_max_cmd_len=8192; 11528 ;; 11529 11530 amigaos*) 11531 # On AmigaOS with pdksh, this test takes hours, literally. 11532 # So we just punt and use a minimum line length of 8192. 11533 lt_cv_sys_max_cmd_len=8192; 11534 ;; 11535 11536 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11537 # This has been around since 386BSD, at least. Likely further. 11538 if test -x /sbin/sysctl; then 11539 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11540 elif test -x /usr/sbin/sysctl; then 11541 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11542 else 11543 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11544 fi 11545 # And add a safety zone 11546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11548 ;; 11549 11550 interix*) 11551 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11552 lt_cv_sys_max_cmd_len=196608 11553 ;; 11554 11555 os2*) 11556 # The test takes a long time on OS/2. 11557 lt_cv_sys_max_cmd_len=8192 11558 ;; 11559 11560 osf*) 11561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11563 # nice to cause kernel panics so lets avoid the loop below. 11564 # First set a reasonable default. 11565 lt_cv_sys_max_cmd_len=16384 11566 # 11567 if test -x /sbin/sysconfig; then 11568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11569 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11570 esac 11571 fi 11572 ;; 11573 sco3.2v5*) 11574 lt_cv_sys_max_cmd_len=102400 11575 ;; 11576 sysv5* | sco5v6* | sysv4.2uw2*) 11577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11578 if test -n "$kargmax"; then 11579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11580 else 11581 lt_cv_sys_max_cmd_len=32768 11582 fi 11583 ;; 11584 *) 11585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11586 if test -n "$lt_cv_sys_max_cmd_len" && \ 11587 test undefined != "$lt_cv_sys_max_cmd_len"; then 11588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11590 else 11591 # Make teststring a little bigger before we do anything with it. 11592 # a 1K string should be a reasonable start. 11593 for i in 1 2 3 4 5 6 7 8; do 11594 teststring=$teststring$teststring 11595 done 11596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11597 # If test is not a shell built-in, we'll probably end up computing a 11598 # maximum length that is only half of the actual maximum length, but 11599 # we can't tell. 11600 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11601 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11602 test 17 != "$i" # 1/2 MB should be enough 11603 do 11604 i=`expr $i + 1` 11605 teststring=$teststring$teststring 11606 done 11607 # Only check the string length outside the loop. 11608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11609 teststring= 11610 # Add a significant safety factor because C++ compilers can tack on 11611 # massive amounts of additional arguments before passing them to the 11612 # linker. It appears as though 1/2 is a usable value. 11613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11614 fi 11615 ;; 11616 esac 11617 11618 fi 11619 11620 if test -n "$lt_cv_sys_max_cmd_len"; then 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11622 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11623 else 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11625 $as_echo "none" >&6; } 11626 fi 11627 max_cmd_len=$lt_cv_sys_max_cmd_len 11628 11629 11630 11631 11632 11633 11634 : ${CP="cp -f"} 11635 : ${MV="mv -f"} 11636 : ${RM="rm -f"} 11637 11638 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11639 lt_unset=unset 11640 else 11641 lt_unset=false 11642 fi 11643 11644 11645 11646 11647 11648 # test EBCDIC or ASCII 11649 case `echo X|tr X '\101'` in 11650 A) # ASCII based system 11651 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11652 lt_SP2NL='tr \040 \012' 11653 lt_NL2SP='tr \015\012 \040\040' 11654 ;; 11655 *) # EBCDIC based system 11656 lt_SP2NL='tr \100 \n' 11657 lt_NL2SP='tr \r\n \100\100' 11658 ;; 11659 esac 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11670 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11671 if ${lt_cv_to_host_file_cmd+:} false; then : 11672 $as_echo_n "(cached) " >&6 11673 else 11674 case $host in 11675 *-*-mingw* ) 11676 case $build in 11677 *-*-mingw* ) # actually msys 11678 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11679 ;; 11680 *-*-cygwin* ) 11681 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11682 ;; 11683 * ) # otherwise, assume *nix 11684 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11685 ;; 11686 esac 11687 ;; 11688 *-*-cygwin* ) 11689 case $build in 11690 *-*-mingw* ) # actually msys 11691 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11692 ;; 11693 *-*-cygwin* ) 11694 lt_cv_to_host_file_cmd=func_convert_file_noop 11695 ;; 11696 * ) # otherwise, assume *nix 11697 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11698 ;; 11699 esac 11700 ;; 11701 * ) # unhandled hosts (and "normal" native builds) 11702 lt_cv_to_host_file_cmd=func_convert_file_noop 11703 ;; 11704 esac 11705 11706 fi 11707 11708 to_host_file_cmd=$lt_cv_to_host_file_cmd 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11710 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 11711 11712 11713 11714 11715 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11717 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11718 if ${lt_cv_to_tool_file_cmd+:} false; then : 11719 $as_echo_n "(cached) " >&6 11720 else 11721 #assume ordinary cross tools, or native build. 11722 lt_cv_to_tool_file_cmd=func_convert_file_noop 11723 case $host in 11724 *-*-mingw* ) 11725 case $build in 11726 *-*-mingw* ) # actually msys 11727 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11728 ;; 11729 esac 11730 ;; 11731 esac 11732 11733 fi 11734 11735 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11737 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11738 11739 11740 11741 11742 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11744 $as_echo_n "checking for $LD option to reload object files... " >&6; } 11745 if ${lt_cv_ld_reload_flag+:} false; then : 11746 $as_echo_n "(cached) " >&6 11747 else 11748 lt_cv_ld_reload_flag='-r' 11749 fi 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11751 $as_echo "$lt_cv_ld_reload_flag" >&6; } 11752 reload_flag=$lt_cv_ld_reload_flag 11753 case $reload_flag in 11754 "" | " "*) ;; 11755 *) reload_flag=" $reload_flag" ;; 11756 esac 11757 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11758 case $host_os in 11759 cygwin* | mingw* | pw32* | cegcc*) 11760 if test yes != "$GCC"; then 11761 reload_cmds=false 11762 fi 11763 ;; 11764 darwin*) 11765 if test yes = "$GCC"; then 11766 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11767 else 11768 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11769 fi 11770 ;; 11771 esac 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 if test -n "$ac_tool_prefix"; then 11782 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11783 set dummy ${ac_tool_prefix}objdump; ac_word=$2 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785 $as_echo_n "checking for $ac_word... " >&6; } 11786 if ${ac_cv_prog_OBJDUMP+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788 else 11789 if test -n "$OBJDUMP"; then 11790 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11791 else 11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11793 for as_dir in $PATH 11794 do 11795 IFS=$as_save_IFS 11796 test -z "$as_dir" && as_dir=. 11797 for ac_exec_ext in '' $ac_executable_extensions; do 11798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11799 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11801 break 2 11802 fi 11803 done 11804 done 11805 IFS=$as_save_IFS 11806 11807 fi 11808 fi 11809 OBJDUMP=$ac_cv_prog_OBJDUMP 11810 if test -n "$OBJDUMP"; then 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11812 $as_echo "$OBJDUMP" >&6; } 11813 else 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11815 $as_echo "no" >&6; } 11816 fi 11817 11818 11819 fi 11820 if test -z "$ac_cv_prog_OBJDUMP"; then 11821 ac_ct_OBJDUMP=$OBJDUMP 11822 # Extract the first word of "objdump", so it can be a program name with args. 11823 set dummy objdump; ac_word=$2 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11825 $as_echo_n "checking for $ac_word... " >&6; } 11826 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11827 $as_echo_n "(cached) " >&6 11828 else 11829 if test -n "$ac_ct_OBJDUMP"; then 11830 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11831 else 11832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11833 for as_dir in $PATH 11834 do 11835 IFS=$as_save_IFS 11836 test -z "$as_dir" && as_dir=. 11837 for ac_exec_ext in '' $ac_executable_extensions; do 11838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11839 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11841 break 2 11842 fi 11843 done 11844 done 11845 IFS=$as_save_IFS 11846 11847 fi 11848 fi 11849 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11850 if test -n "$ac_ct_OBJDUMP"; then 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11852 $as_echo "$ac_ct_OBJDUMP" >&6; } 11853 else 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11855 $as_echo "no" >&6; } 11856 fi 11857 11858 if test "x$ac_ct_OBJDUMP" = x; then 11859 OBJDUMP="false" 11860 else 11861 case $cross_compiling:$ac_tool_warned in 11862 yes:) 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11865 ac_tool_warned=yes ;; 11866 esac 11867 OBJDUMP=$ac_ct_OBJDUMP 11868 fi 11869 else 11870 OBJDUMP="$ac_cv_prog_OBJDUMP" 11871 fi 11872 11873 test -z "$OBJDUMP" && OBJDUMP=objdump 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11884 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 11885 if ${lt_cv_deplibs_check_method+:} false; then : 11886 $as_echo_n "(cached) " >&6 11887 else 11888 lt_cv_file_magic_cmd='$MAGIC_CMD' 11889 lt_cv_file_magic_test_file= 11890 lt_cv_deplibs_check_method='unknown' 11891 # Need to set the preceding variable on all platforms that support 11892 # interlibrary dependencies. 11893 # 'none' -- dependencies not supported. 11894 # 'unknown' -- same as none, but documents that we really don't know. 11895 # 'pass_all' -- all dependencies passed with no checks. 11896 # 'test_compile' -- check by making test program. 11897 # 'file_magic [[regex]]' -- check by looking for files in library path 11898 # that responds to the $file_magic_cmd with a given extended regex. 11899 # If you have 'file' or equivalent on your system and you're not sure 11900 # whether 'pass_all' will *always* work, you probably want this one. 11901 11902 case $host_os in 11903 aix[4-9]*) 11904 lt_cv_deplibs_check_method=pass_all 11905 ;; 11906 11907 beos*) 11908 lt_cv_deplibs_check_method=pass_all 11909 ;; 11910 11911 bsdi[45]*) 11912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11913 lt_cv_file_magic_cmd='/usr/bin/file -L' 11914 lt_cv_file_magic_test_file=/shlib/libc.so 11915 ;; 11916 11917 cygwin*) 11918 # func_win32_libid is a shell function defined in ltmain.sh 11919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11920 lt_cv_file_magic_cmd='func_win32_libid' 11921 ;; 11922 11923 mingw* | pw32*) 11924 # Base MSYS/MinGW do not provide the 'file' command needed by 11925 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11926 # unless we find 'file', for example because we are cross-compiling. 11927 if ( file / ) >/dev/null 2>&1; then 11928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11929 lt_cv_file_magic_cmd='func_win32_libid' 11930 else 11931 # Keep this pattern in sync with the one in func_win32_libid. 11932 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11933 lt_cv_file_magic_cmd='$OBJDUMP -f' 11934 fi 11935 ;; 11936 11937 cegcc*) 11938 # use the weaker test based on 'objdump'. See mingw*. 11939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11940 lt_cv_file_magic_cmd='$OBJDUMP -f' 11941 ;; 11942 11943 darwin* | rhapsody*) 11944 lt_cv_deplibs_check_method=pass_all 11945 ;; 11946 11947 freebsd* | dragonfly*) 11948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11949 case $host_cpu in 11950 i*86 ) 11951 # Not sure whether the presence of OpenBSD here was a mistake. 11952 # Let's accept both of them until this is cleared up. 11953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11954 lt_cv_file_magic_cmd=/usr/bin/file 11955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11956 ;; 11957 esac 11958 else 11959 lt_cv_deplibs_check_method=pass_all 11960 fi 11961 ;; 11962 11963 haiku*) 11964 lt_cv_deplibs_check_method=pass_all 11965 ;; 11966 11967 hpux10.20* | hpux11*) 11968 lt_cv_file_magic_cmd=/usr/bin/file 11969 case $host_cpu in 11970 ia64*) 11971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11972 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11973 ;; 11974 hppa*64*) 11975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 11976 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11977 ;; 11978 *) 11979 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11980 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11981 ;; 11982 esac 11983 ;; 11984 11985 interix[3-9]*) 11986 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11987 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11988 ;; 11989 11990 irix5* | irix6* | nonstopux*) 11991 case $LD in 11992 *-32|*"-32 ") libmagic=32-bit;; 11993 *-n32|*"-n32 ") libmagic=N32;; 11994 *-64|*"-64 ") libmagic=64-bit;; 11995 *) libmagic=never-match;; 11996 esac 11997 lt_cv_deplibs_check_method=pass_all 11998 ;; 11999 12000 # This must be glibc/ELF. 12001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12002 lt_cv_deplibs_check_method=pass_all 12003 ;; 12004 12005 netbsd* | netbsdelf*-gnu) 12006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12007 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12008 else 12009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12010 fi 12011 ;; 12012 12013 newos6*) 12014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12015 lt_cv_file_magic_cmd=/usr/bin/file 12016 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12017 ;; 12018 12019 *nto* | *qnx*) 12020 lt_cv_deplibs_check_method=pass_all 12021 ;; 12022 12023 openbsd* | bitrig*) 12024 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12026 else 12027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12028 fi 12029 ;; 12030 12031 osf3* | osf4* | osf5*) 12032 lt_cv_deplibs_check_method=pass_all 12033 ;; 12034 12035 rdos*) 12036 lt_cv_deplibs_check_method=pass_all 12037 ;; 12038 12039 solaris*) 12040 lt_cv_deplibs_check_method=pass_all 12041 ;; 12042 12043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12044 lt_cv_deplibs_check_method=pass_all 12045 ;; 12046 12047 sysv4 | sysv4.3*) 12048 case $host_vendor in 12049 motorola) 12050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 12051 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12052 ;; 12053 ncr) 12054 lt_cv_deplibs_check_method=pass_all 12055 ;; 12056 sequent) 12057 lt_cv_file_magic_cmd='/bin/file' 12058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12059 ;; 12060 sni) 12061 lt_cv_file_magic_cmd='/bin/file' 12062 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12063 lt_cv_file_magic_test_file=/lib/libc.so 12064 ;; 12065 siemens) 12066 lt_cv_deplibs_check_method=pass_all 12067 ;; 12068 pc) 12069 lt_cv_deplibs_check_method=pass_all 12070 ;; 12071 esac 12072 ;; 12073 12074 tpf*) 12075 lt_cv_deplibs_check_method=pass_all 12076 ;; 12077 os2*) 12078 lt_cv_deplibs_check_method=pass_all 12079 ;; 12080 esac 12081 12082 fi 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12084 $as_echo "$lt_cv_deplibs_check_method" >&6; } 12085 12086 file_magic_glob= 12087 want_nocaseglob=no 12088 if test "$build" = "$host"; then 12089 case $host_os in 12090 mingw* | pw32*) 12091 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12092 want_nocaseglob=yes 12093 else 12094 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12095 fi 12096 ;; 12097 esac 12098 fi 12099 12100 file_magic_cmd=$lt_cv_file_magic_cmd 12101 deplibs_check_method=$lt_cv_deplibs_check_method 12102 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 if test -n "$ac_tool_prefix"; then 12126 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12127 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12129 $as_echo_n "checking for $ac_word... " >&6; } 12130 if ${ac_cv_prog_DLLTOOL+:} false; then : 12131 $as_echo_n "(cached) " >&6 12132 else 12133 if test -n "$DLLTOOL"; then 12134 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12135 else 12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12137 for as_dir in $PATH 12138 do 12139 IFS=$as_save_IFS 12140 test -z "$as_dir" && as_dir=. 12141 for ac_exec_ext in '' $ac_executable_extensions; do 12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12143 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12145 break 2 12146 fi 12147 done 12148 done 12149 IFS=$as_save_IFS 12150 12151 fi 12152 fi 12153 DLLTOOL=$ac_cv_prog_DLLTOOL 12154 if test -n "$DLLTOOL"; then 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12156 $as_echo "$DLLTOOL" >&6; } 12157 else 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12159 $as_echo "no" >&6; } 12160 fi 12161 12162 12163 fi 12164 if test -z "$ac_cv_prog_DLLTOOL"; then 12165 ac_ct_DLLTOOL=$DLLTOOL 12166 # Extract the first word of "dlltool", so it can be a program name with args. 12167 set dummy dlltool; ac_word=$2 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12169 $as_echo_n "checking for $ac_word... " >&6; } 12170 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12171 $as_echo_n "(cached) " >&6 12172 else 12173 if test -n "$ac_ct_DLLTOOL"; then 12174 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12175 else 12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12177 for as_dir in $PATH 12178 do 12179 IFS=$as_save_IFS 12180 test -z "$as_dir" && as_dir=. 12181 for ac_exec_ext in '' $ac_executable_extensions; do 12182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12183 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12185 break 2 12186 fi 12187 done 12188 done 12189 IFS=$as_save_IFS 12190 12191 fi 12192 fi 12193 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12194 if test -n "$ac_ct_DLLTOOL"; then 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12196 $as_echo "$ac_ct_DLLTOOL" >&6; } 12197 else 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12199 $as_echo "no" >&6; } 12200 fi 12201 12202 if test "x$ac_ct_DLLTOOL" = x; then 12203 DLLTOOL="false" 12204 else 12205 case $cross_compiling:$ac_tool_warned in 12206 yes:) 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12209 ac_tool_warned=yes ;; 12210 esac 12211 DLLTOOL=$ac_ct_DLLTOOL 12212 fi 12213 else 12214 DLLTOOL="$ac_cv_prog_DLLTOOL" 12215 fi 12216 12217 test -z "$DLLTOOL" && DLLTOOL=dlltool 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12229 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12230 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12231 $as_echo_n "(cached) " >&6 12232 else 12233 lt_cv_sharedlib_from_linklib_cmd='unknown' 12234 12235 case $host_os in 12236 cygwin* | mingw* | pw32* | cegcc*) 12237 # two different shell functions defined in ltmain.sh; 12238 # decide which one to use based on capabilities of $DLLTOOL 12239 case `$DLLTOOL --help 2>&1` in 12240 *--identify-strict*) 12241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12242 ;; 12243 *) 12244 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12245 ;; 12246 esac 12247 ;; 12248 *) 12249 # fallback: assume linklib IS sharedlib 12250 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12251 ;; 12252 esac 12253 12254 fi 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12256 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12257 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12258 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12259 12260 12261 12262 12263 12264 12265 12266 if test -n "$ac_tool_prefix"; then 12267 for ac_prog in ar 12268 do 12269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12272 $as_echo_n "checking for $ac_word... " >&6; } 12273 if ${ac_cv_prog_AR+:} false; then : 12274 $as_echo_n "(cached) " >&6 12275 else 12276 if test -n "$AR"; then 12277 ac_cv_prog_AR="$AR" # Let the user override the test. 12278 else 12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12280 for as_dir in $PATH 12281 do 12282 IFS=$as_save_IFS 12283 test -z "$as_dir" && as_dir=. 12284 for ac_exec_ext in '' $ac_executable_extensions; do 12285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12288 break 2 12289 fi 12290 done 12291 done 12292 IFS=$as_save_IFS 12293 12294 fi 12295 fi 12296 AR=$ac_cv_prog_AR 12297 if test -n "$AR"; then 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12299 $as_echo "$AR" >&6; } 12300 else 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12302 $as_echo "no" >&6; } 12303 fi 12304 12305 12306 test -n "$AR" && break 12307 done 12308 fi 12309 if test -z "$AR"; then 12310 ac_ct_AR=$AR 12311 for ac_prog in ar 12312 do 12313 # Extract the first word of "$ac_prog", so it can be a program name with args. 12314 set dummy $ac_prog; ac_word=$2 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12316 $as_echo_n "checking for $ac_word... " >&6; } 12317 if ${ac_cv_prog_ac_ct_AR+:} false; then : 12318 $as_echo_n "(cached) " >&6 12319 else 12320 if test -n "$ac_ct_AR"; then 12321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12322 else 12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12324 for as_dir in $PATH 12325 do 12326 IFS=$as_save_IFS 12327 test -z "$as_dir" && as_dir=. 12328 for ac_exec_ext in '' $ac_executable_extensions; do 12329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12330 ac_cv_prog_ac_ct_AR="$ac_prog" 12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12332 break 2 12333 fi 12334 done 12335 done 12336 IFS=$as_save_IFS 12337 12338 fi 12339 fi 12340 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12341 if test -n "$ac_ct_AR"; then 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12343 $as_echo "$ac_ct_AR" >&6; } 12344 else 12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12346 $as_echo "no" >&6; } 12347 fi 12348 12349 12350 test -n "$ac_ct_AR" && break 12351 done 12352 12353 if test "x$ac_ct_AR" = x; then 12354 AR="false" 12355 else 12356 case $cross_compiling:$ac_tool_warned in 12357 yes:) 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12360 ac_tool_warned=yes ;; 12361 esac 12362 AR=$ac_ct_AR 12363 fi 12364 fi 12365 12366 : ${AR=ar} 12367 : ${AR_FLAGS=cru} 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12380 $as_echo_n "checking for archiver @FILE support... " >&6; } 12381 if ${lt_cv_ar_at_file+:} false; then : 12382 $as_echo_n "(cached) " >&6 12383 else 12384 lt_cv_ar_at_file=no 12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12386 /* end confdefs.h. */ 12387 12388 int 12389 main () 12390 { 12391 12392 ; 12393 return 0; 12394 } 12395 _ACEOF 12396 if ac_fn_c_try_compile "$LINENO"; then : 12397 echo conftest.$ac_objext > conftest.lst 12398 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12400 (eval $lt_ar_try) 2>&5 12401 ac_status=$? 12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12403 test $ac_status = 0; } 12404 if test 0 -eq "$ac_status"; then 12405 # Ensure the archiver fails upon bogus file names. 12406 rm -f conftest.$ac_objext libconftest.a 12407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12408 (eval $lt_ar_try) 2>&5 12409 ac_status=$? 12410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12411 test $ac_status = 0; } 12412 if test 0 -ne "$ac_status"; then 12413 lt_cv_ar_at_file=@ 12414 fi 12415 fi 12416 rm -f conftest.* libconftest.a 12417 12418 fi 12419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12420 12421 fi 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12423 $as_echo "$lt_cv_ar_at_file" >&6; } 12424 12425 if test no = "$lt_cv_ar_at_file"; then 12426 archiver_list_spec= 12427 else 12428 archiver_list_spec=$lt_cv_ar_at_file 12429 fi 12430 12431 12432 12433 12434 12435 12436 12437 if test -n "$ac_tool_prefix"; then 12438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12439 set dummy ${ac_tool_prefix}strip; ac_word=$2 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12441 $as_echo_n "checking for $ac_word... " >&6; } 12442 if ${ac_cv_prog_STRIP+:} false; then : 12443 $as_echo_n "(cached) " >&6 12444 else 12445 if test -n "$STRIP"; then 12446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12447 else 12448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12449 for as_dir in $PATH 12450 do 12451 IFS=$as_save_IFS 12452 test -z "$as_dir" && as_dir=. 12453 for ac_exec_ext in '' $ac_executable_extensions; do 12454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12457 break 2 12458 fi 12459 done 12460 done 12461 IFS=$as_save_IFS 12462 12463 fi 12464 fi 12465 STRIP=$ac_cv_prog_STRIP 12466 if test -n "$STRIP"; then 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12468 $as_echo "$STRIP" >&6; } 12469 else 12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12471 $as_echo "no" >&6; } 12472 fi 12473 12474 12475 fi 12476 if test -z "$ac_cv_prog_STRIP"; then 12477 ac_ct_STRIP=$STRIP 12478 # Extract the first word of "strip", so it can be a program name with args. 12479 set dummy strip; ac_word=$2 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12481 $as_echo_n "checking for $ac_word... " >&6; } 12482 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12483 $as_echo_n "(cached) " >&6 12484 else 12485 if test -n "$ac_ct_STRIP"; then 12486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12487 else 12488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12489 for as_dir in $PATH 12490 do 12491 IFS=$as_save_IFS 12492 test -z "$as_dir" && as_dir=. 12493 for ac_exec_ext in '' $ac_executable_extensions; do 12494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12495 ac_cv_prog_ac_ct_STRIP="strip" 12496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12497 break 2 12498 fi 12499 done 12500 done 12501 IFS=$as_save_IFS 12502 12503 fi 12504 fi 12505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12506 if test -n "$ac_ct_STRIP"; then 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12508 $as_echo "$ac_ct_STRIP" >&6; } 12509 else 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12511 $as_echo "no" >&6; } 12512 fi 12513 12514 if test "x$ac_ct_STRIP" = x; then 12515 STRIP=":" 12516 else 12517 case $cross_compiling:$ac_tool_warned in 12518 yes:) 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12521 ac_tool_warned=yes ;; 12522 esac 12523 STRIP=$ac_ct_STRIP 12524 fi 12525 else 12526 STRIP="$ac_cv_prog_STRIP" 12527 fi 12528 12529 test -z "$STRIP" && STRIP=: 12530 12531 12532 12533 12534 12535 12536 if test -n "$ac_tool_prefix"; then 12537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12540 $as_echo_n "checking for $ac_word... " >&6; } 12541 if ${ac_cv_prog_RANLIB+:} false; then : 12542 $as_echo_n "(cached) " >&6 12543 else 12544 if test -n "$RANLIB"; then 12545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12546 else 12547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12548 for as_dir in $PATH 12549 do 12550 IFS=$as_save_IFS 12551 test -z "$as_dir" && as_dir=. 12552 for ac_exec_ext in '' $ac_executable_extensions; do 12553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12556 break 2 12557 fi 12558 done 12559 done 12560 IFS=$as_save_IFS 12561 12562 fi 12563 fi 12564 RANLIB=$ac_cv_prog_RANLIB 12565 if test -n "$RANLIB"; then 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12567 $as_echo "$RANLIB" >&6; } 12568 else 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12570 $as_echo "no" >&6; } 12571 fi 12572 12573 12574 fi 12575 if test -z "$ac_cv_prog_RANLIB"; then 12576 ac_ct_RANLIB=$RANLIB 12577 # Extract the first word of "ranlib", so it can be a program name with args. 12578 set dummy ranlib; ac_word=$2 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12580 $as_echo_n "checking for $ac_word... " >&6; } 12581 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12582 $as_echo_n "(cached) " >&6 12583 else 12584 if test -n "$ac_ct_RANLIB"; then 12585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12586 else 12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12588 for as_dir in $PATH 12589 do 12590 IFS=$as_save_IFS 12591 test -z "$as_dir" && as_dir=. 12592 for ac_exec_ext in '' $ac_executable_extensions; do 12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12594 ac_cv_prog_ac_ct_RANLIB="ranlib" 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12596 break 2 12597 fi 12598 done 12599 done 12600 IFS=$as_save_IFS 12601 12602 fi 12603 fi 12604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12605 if test -n "$ac_ct_RANLIB"; then 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12607 $as_echo "$ac_ct_RANLIB" >&6; } 12608 else 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12610 $as_echo "no" >&6; } 12611 fi 12612 12613 if test "x$ac_ct_RANLIB" = x; then 12614 RANLIB=":" 12615 else 12616 case $cross_compiling:$ac_tool_warned in 12617 yes:) 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12620 ac_tool_warned=yes ;; 12621 esac 12622 RANLIB=$ac_ct_RANLIB 12623 fi 12624 else 12625 RANLIB="$ac_cv_prog_RANLIB" 12626 fi 12627 12628 test -z "$RANLIB" && RANLIB=: 12629 12630 12631 12632 12633 12634 12635 # Determine commands to create old-style static archives. 12636 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12637 old_postinstall_cmds='chmod 644 $oldlib' 12638 old_postuninstall_cmds= 12639 12640 if test -n "$RANLIB"; then 12641 case $host_os in 12642 bitrig* | openbsd*) 12643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12644 ;; 12645 *) 12646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12647 ;; 12648 esac 12649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12650 fi 12651 12652 case $host_os in 12653 darwin*) 12654 lock_old_archive_extraction=yes ;; 12655 *) 12656 lock_old_archive_extraction=no ;; 12657 esac 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 # If no C compiler was specified, use CC. 12698 LTCC=${LTCC-"$CC"} 12699 12700 # If no C compiler flags were specified, use CFLAGS. 12701 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12702 12703 # Allow CC to be a program name with arguments. 12704 compiler=$CC 12705 12706 12707 # Check for command to grab the raw symbol name followed by C symbol from nm. 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12709 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12710 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12711 $as_echo_n "(cached) " >&6 12712 else 12713 12714 # These are sane defaults that work on at least a few old systems. 12715 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 12716 12717 # Character class describing NM global symbol codes. 12718 symcode='[BCDEGRST]' 12719 12720 # Regexp to match symbols that can be accessed directly from C. 12721 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12722 12723 # Define system-specific variables. 12724 case $host_os in 12725 aix*) 12726 symcode='[BCDT]' 12727 ;; 12728 cygwin* | mingw* | pw32* | cegcc*) 12729 symcode='[ABCDGISTW]' 12730 ;; 12731 hpux*) 12732 if test ia64 = "$host_cpu"; then 12733 symcode='[ABCDEGRST]' 12734 fi 12735 ;; 12736 irix* | nonstopux*) 12737 symcode='[BCDEGRST]' 12738 ;; 12739 osf*) 12740 symcode='[BCDEGQRST]' 12741 ;; 12742 solaris*) 12743 symcode='[BDRT]' 12744 ;; 12745 sco3.2v5*) 12746 symcode='[DT]' 12747 ;; 12748 sysv4.2uw2*) 12749 symcode='[DT]' 12750 ;; 12751 sysv5* | sco5v6* | unixware* | OpenUNIX*) 12752 symcode='[ABDT]' 12753 ;; 12754 sysv4) 12755 symcode='[DFNSTU]' 12756 ;; 12757 esac 12758 12759 # If we're using GNU nm, then use its standard symbol codes. 12760 case `$NM -V 2>&1` in 12761 *GNU* | *'with BFD'*) 12762 symcode='[ABCDGIRSTW]' ;; 12763 esac 12764 12765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12766 # Gets list of data symbols to import. 12767 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12768 # Adjust the below global symbol transforms to fixup imported variables. 12769 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12770 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12771 lt_c_name_lib_hook="\ 12772 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12773 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12774 else 12775 # Disable hooks by default. 12776 lt_cv_sys_global_symbol_to_import= 12777 lt_cdecl_hook= 12778 lt_c_name_hook= 12779 lt_c_name_lib_hook= 12780 fi 12781 12782 # Transform an extracted symbol line into a proper C declaration. 12783 # Some systems (esp. on ia64) link data and code symbols differently, 12784 # so use this general approach. 12785 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12786 $lt_cdecl_hook\ 12787 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12788 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12789 12790 # Transform an extracted symbol line into symbol name and symbol address 12791 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12792 $lt_c_name_hook\ 12793 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12794 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12795 12796 # Transform an extracted symbol line into symbol name with lib prefix and 12797 # symbol address. 12798 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12799 $lt_c_name_lib_hook\ 12800 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12801 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12802 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12803 12804 # Handle CRLF in mingw tool chain 12805 opt_cr= 12806 case $build_os in 12807 mingw*) 12808 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12809 ;; 12810 esac 12811 12812 # Try without a prefix underscore, then with it. 12813 for ac_symprfx in "" "_"; do 12814 12815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12816 symxfrm="\\1 $ac_symprfx\\2 \\2" 12817 12818 # Write the raw and C identifiers. 12819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12820 # Fake it for dumpbin and say T for any non-static function, 12821 # D for any global variable and I for any imported variable. 12822 # Also find C++ and __fastcall symbols from MSVC++, 12823 # which start with @ or ?. 12824 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12825 " {last_section=section; section=\$ 3};"\ 12826 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12827 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12828 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12829 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12830 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12831 " \$ 0!~/External *\|/{next};"\ 12832 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12833 " {if(hide[section]) next};"\ 12834 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12835 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12836 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12837 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12838 " ' prfx=^$ac_symprfx" 12839 else 12840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12841 fi 12842 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12843 12844 # Check to see that the pipe works correctly. 12845 pipe_works=no 12846 12847 rm -f conftest* 12848 cat > conftest.$ac_ext <<_LT_EOF 12849 #ifdef __cplusplus 12850 extern "C" { 12851 #endif 12852 char nm_test_var; 12853 void nm_test_func(void); 12854 void nm_test_func(void){} 12855 #ifdef __cplusplus 12856 } 12857 #endif 12858 int main(){nm_test_var='a';nm_test_func();return(0);} 12859 _LT_EOF 12860 12861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12862 (eval $ac_compile) 2>&5 12863 ac_status=$? 12864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12865 test $ac_status = 0; }; then 12866 # Now try to grab the symbols. 12867 nlist=conftest.nm 12868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12870 ac_status=$? 12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12872 test $ac_status = 0; } && test -s "$nlist"; then 12873 # Try sorting and uniquifying the output. 12874 if sort "$nlist" | uniq > "$nlist"T; then 12875 mv -f "$nlist"T "$nlist" 12876 else 12877 rm -f "$nlist"T 12878 fi 12879 12880 # Make sure that we snagged all the symbols we need. 12881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12883 cat <<_LT_EOF > conftest.$ac_ext 12884 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12885 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12886 /* DATA imports from DLLs on WIN32 can't be const, because runtime 12887 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12888 # define LT_DLSYM_CONST 12889 #elif defined __osf__ 12890 /* This system does not cope well with relocations in const data. */ 12891 # define LT_DLSYM_CONST 12892 #else 12893 # define LT_DLSYM_CONST const 12894 #endif 12895 12896 #ifdef __cplusplus 12897 extern "C" { 12898 #endif 12899 12900 _LT_EOF 12901 # Now generate the symbol file. 12902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12903 12904 cat <<_LT_EOF >> conftest.$ac_ext 12905 12906 /* The mapping between symbol names and symbols. */ 12907 LT_DLSYM_CONST struct { 12908 const char *name; 12909 void *address; 12910 } 12911 lt__PROGRAM__LTX_preloaded_symbols[] = 12912 { 12913 { "@PROGRAM@", (void *) 0 }, 12914 _LT_EOF 12915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12916 cat <<\_LT_EOF >> conftest.$ac_ext 12917 {0, (void *) 0} 12918 }; 12919 12920 /* This works around a problem in FreeBSD linker */ 12921 #ifdef FREEBSD_WORKAROUND 12922 static const void *lt_preloaded_setup() { 12923 return lt__PROGRAM__LTX_preloaded_symbols; 12924 } 12925 #endif 12926 12927 #ifdef __cplusplus 12928 } 12929 #endif 12930 _LT_EOF 12931 # Now try linking the two files. 12932 mv conftest.$ac_objext conftstm.$ac_objext 12933 lt_globsym_save_LIBS=$LIBS 12934 lt_globsym_save_CFLAGS=$CFLAGS 12935 LIBS=conftstm.$ac_objext 12936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12938 (eval $ac_link) 2>&5 12939 ac_status=$? 12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12941 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12942 pipe_works=yes 12943 fi 12944 LIBS=$lt_globsym_save_LIBS 12945 CFLAGS=$lt_globsym_save_CFLAGS 12946 else 12947 echo "cannot find nm_test_func in $nlist" >&5 12948 fi 12949 else 12950 echo "cannot find nm_test_var in $nlist" >&5 12951 fi 12952 else 12953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12954 fi 12955 else 12956 echo "$progname: failed program was:" >&5 12957 cat conftest.$ac_ext >&5 12958 fi 12959 rm -rf conftest* conftst* 12960 12961 # Do not use the global_symbol_pipe unless it works. 12962 if test yes = "$pipe_works"; then 12963 break 12964 else 12965 lt_cv_sys_global_symbol_pipe= 12966 fi 12967 done 12968 12969 fi 12970 12971 if test -z "$lt_cv_sys_global_symbol_pipe"; then 12972 lt_cv_sys_global_symbol_to_cdecl= 12973 fi 12974 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12976 $as_echo "failed" >&6; } 12977 else 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12979 $as_echo "ok" >&6; } 12980 fi 12981 12982 # Response file support. 12983 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12984 nm_file_list_spec='@' 12985 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12986 nm_file_list_spec='@' 12987 fi 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13026 $as_echo_n "checking for sysroot... " >&6; } 13027 13028 # Check whether --with-sysroot was given. 13029 if test "${with_sysroot+set}" = set; then : 13030 withval=$with_sysroot; 13031 else 13032 with_sysroot=no 13033 fi 13034 13035 13036 lt_sysroot= 13037 case $with_sysroot in #( 13038 yes) 13039 if test yes = "$GCC"; then 13040 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13041 fi 13042 ;; #( 13043 /*) 13044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13045 ;; #( 13046 no|'') 13047 ;; #( 13048 *) 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13050 $as_echo "$with_sysroot" >&6; } 13051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13052 ;; 13053 esac 13054 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13056 $as_echo "${lt_sysroot:-no}" >&6; } 13057 13058 13059 13060 13061 13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13063 $as_echo_n "checking for a working dd... " >&6; } 13064 if ${ac_cv_path_lt_DD+:} false; then : 13065 $as_echo_n "(cached) " >&6 13066 else 13067 printf 0123456789abcdef0123456789abcdef >conftest.i 13068 cat conftest.i conftest.i >conftest2.i 13069 : ${lt_DD:=$DD} 13070 if test -z "$lt_DD"; then 13071 ac_path_lt_DD_found=false 13072 # Loop through the user's path and test for each of PROGNAME-LIST 13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13074 for as_dir in $PATH 13075 do 13076 IFS=$as_save_IFS 13077 test -z "$as_dir" && as_dir=. 13078 for ac_prog in dd; do 13079 for ac_exec_ext in '' $ac_executable_extensions; do 13080 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 13081 as_fn_executable_p "$ac_path_lt_DD" || continue 13082 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13083 cmp -s conftest.i conftest.out \ 13084 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13085 fi 13086 $ac_path_lt_DD_found && break 3 13087 done 13088 done 13089 done 13090 IFS=$as_save_IFS 13091 if test -z "$ac_cv_path_lt_DD"; then 13092 : 13093 fi 13094 else 13095 ac_cv_path_lt_DD=$lt_DD 13096 fi 13097 13098 rm -f conftest.i conftest2.i conftest.out 13099 fi 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13101 $as_echo "$ac_cv_path_lt_DD" >&6; } 13102 13103 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13105 $as_echo_n "checking how to truncate binary pipes... " >&6; } 13106 if ${lt_cv_truncate_bin+:} false; then : 13107 $as_echo_n "(cached) " >&6 13108 else 13109 printf 0123456789abcdef0123456789abcdef >conftest.i 13110 cat conftest.i conftest.i >conftest2.i 13111 lt_cv_truncate_bin= 13112 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13113 cmp -s conftest.i conftest.out \ 13114 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13115 fi 13116 rm -f conftest.i conftest2.i conftest.out 13117 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13118 fi 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13120 $as_echo "$lt_cv_truncate_bin" >&6; } 13121 13122 13123 13124 13125 13126 13127 13128 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13129 func_cc_basename () 13130 { 13131 for cc_temp in $*""; do 13132 case $cc_temp in 13133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13135 \-*) ;; 13136 *) break;; 13137 esac 13138 done 13139 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13140 } 13141 13142 # Check whether --enable-libtool-lock was given. 13143 if test "${enable_libtool_lock+set}" = set; then : 13144 enableval=$enable_libtool_lock; 13145 fi 13146 13147 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13148 13149 # Some flags need to be propagated to the compiler or linker for good 13150 # libtool support. 13151 case $host in 13152 ia64-*-hpux*) 13153 # Find out what ABI is being produced by ac_compile, and set mode 13154 # options accordingly. 13155 echo 'int i;' > conftest.$ac_ext 13156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13157 (eval $ac_compile) 2>&5 13158 ac_status=$? 13159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13160 test $ac_status = 0; }; then 13161 case `/usr/bin/file conftest.$ac_objext` in 13162 *ELF-32*) 13163 HPUX_IA64_MODE=32 13164 ;; 13165 *ELF-64*) 13166 HPUX_IA64_MODE=64 13167 ;; 13168 esac 13169 fi 13170 rm -rf conftest* 13171 ;; 13172 *-*-irix6*) 13173 # Find out what ABI is being produced by ac_compile, and set linker 13174 # options accordingly. 13175 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13177 (eval $ac_compile) 2>&5 13178 ac_status=$? 13179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13180 test $ac_status = 0; }; then 13181 if test yes = "$lt_cv_prog_gnu_ld"; then 13182 case `/usr/bin/file conftest.$ac_objext` in 13183 *32-bit*) 13184 LD="${LD-ld} -melf32bsmip" 13185 ;; 13186 *N32*) 13187 LD="${LD-ld} -melf32bmipn32" 13188 ;; 13189 *64-bit*) 13190 LD="${LD-ld} -melf64bmip" 13191 ;; 13192 esac 13193 else 13194 case `/usr/bin/file conftest.$ac_objext` in 13195 *32-bit*) 13196 LD="${LD-ld} -32" 13197 ;; 13198 *N32*) 13199 LD="${LD-ld} -n32" 13200 ;; 13201 *64-bit*) 13202 LD="${LD-ld} -64" 13203 ;; 13204 esac 13205 fi 13206 fi 13207 rm -rf conftest* 13208 ;; 13209 13210 mips64*-*linux*) 13211 # Find out what ABI is being produced by ac_compile, and set linker 13212 # options accordingly. 13213 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13215 (eval $ac_compile) 2>&5 13216 ac_status=$? 13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13218 test $ac_status = 0; }; then 13219 emul=elf 13220 case `/usr/bin/file conftest.$ac_objext` in 13221 *32-bit*) 13222 emul="${emul}32" 13223 ;; 13224 *64-bit*) 13225 emul="${emul}64" 13226 ;; 13227 esac 13228 case `/usr/bin/file conftest.$ac_objext` in 13229 *MSB*) 13230 emul="${emul}btsmip" 13231 ;; 13232 *LSB*) 13233 emul="${emul}ltsmip" 13234 ;; 13235 esac 13236 case `/usr/bin/file conftest.$ac_objext` in 13237 *N32*) 13238 emul="${emul}n32" 13239 ;; 13240 esac 13241 LD="${LD-ld} -m $emul" 13242 fi 13243 rm -rf conftest* 13244 ;; 13245 13246 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13247 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13248 # Find out what ABI is being produced by ac_compile, and set linker 13249 # options accordingly. Note that the listed cases only cover the 13250 # situations where additional linker options are needed (such as when 13251 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13252 # vice versa); the common cases where no linker options are needed do 13253 # not appear in the list. 13254 echo 'int i;' > conftest.$ac_ext 13255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13256 (eval $ac_compile) 2>&5 13257 ac_status=$? 13258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13259 test $ac_status = 0; }; then 13260 case `/usr/bin/file conftest.o` in 13261 *32-bit*) 13262 case $host in 13263 x86_64-*kfreebsd*-gnu) 13264 LD="${LD-ld} -m elf_i386_fbsd" 13265 ;; 13266 x86_64-*linux*) 13267 case `/usr/bin/file conftest.o` in 13268 *x86-64*) 13269 LD="${LD-ld} -m elf32_x86_64" 13270 ;; 13271 *) 13272 LD="${LD-ld} -m elf_i386" 13273 ;; 13274 esac 13275 ;; 13276 powerpc64le-*linux*) 13277 LD="${LD-ld} -m elf32lppclinux" 13278 ;; 13279 powerpc64-*linux*) 13280 LD="${LD-ld} -m elf32ppclinux" 13281 ;; 13282 s390x-*linux*) 13283 LD="${LD-ld} -m elf_s390" 13284 ;; 13285 sparc64-*linux*) 13286 LD="${LD-ld} -m elf32_sparc" 13287 ;; 13288 esac 13289 ;; 13290 *64-bit*) 13291 case $host in 13292 x86_64-*kfreebsd*-gnu) 13293 LD="${LD-ld} -m elf_x86_64_fbsd" 13294 ;; 13295 x86_64-*linux*) 13296 LD="${LD-ld} -m elf_x86_64" 13297 ;; 13298 powerpcle-*linux*) 13299 LD="${LD-ld} -m elf64lppc" 13300 ;; 13301 powerpc-*linux*) 13302 LD="${LD-ld} -m elf64ppc" 13303 ;; 13304 s390*-*linux*|s390*-*tpf*) 13305 LD="${LD-ld} -m elf64_s390" 13306 ;; 13307 sparc*-*linux*) 13308 LD="${LD-ld} -m elf64_sparc" 13309 ;; 13310 esac 13311 ;; 13312 esac 13313 fi 13314 rm -rf conftest* 13315 ;; 13316 13317 *-*-sco3.2v5*) 13318 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13319 SAVE_CFLAGS=$CFLAGS 13320 CFLAGS="$CFLAGS -belf" 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13322 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13323 if ${lt_cv_cc_needs_belf+:} false; then : 13324 $as_echo_n "(cached) " >&6 13325 else 13326 ac_ext=c 13327 ac_cpp='$CPP $CPPFLAGS' 13328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13331 13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13333 /* end confdefs.h. */ 13334 13335 int 13336 main () 13337 { 13338 13339 ; 13340 return 0; 13341 } 13342 _ACEOF 13343 if ac_fn_c_try_link "$LINENO"; then : 13344 lt_cv_cc_needs_belf=yes 13345 else 13346 lt_cv_cc_needs_belf=no 13347 fi 13348 rm -f core conftest.err conftest.$ac_objext \ 13349 conftest$ac_exeext conftest.$ac_ext 13350 ac_ext=c 13351 ac_cpp='$CPP $CPPFLAGS' 13352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13354 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13355 13356 fi 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13358 $as_echo "$lt_cv_cc_needs_belf" >&6; } 13359 if test yes != "$lt_cv_cc_needs_belf"; then 13360 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13361 CFLAGS=$SAVE_CFLAGS 13362 fi 13363 ;; 13364 *-*solaris*) 13365 # Find out what ABI is being produced by ac_compile, and set linker 13366 # options accordingly. 13367 echo 'int i;' > conftest.$ac_ext 13368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13369 (eval $ac_compile) 2>&5 13370 ac_status=$? 13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13372 test $ac_status = 0; }; then 13373 case `/usr/bin/file conftest.o` in 13374 *64-bit*) 13375 case $lt_cv_prog_gnu_ld in 13376 yes*) 13377 case $host in 13378 i?86-*-solaris*|x86_64-*-solaris*) 13379 LD="${LD-ld} -m elf_x86_64" 13380 ;; 13381 sparc*-*-solaris*) 13382 LD="${LD-ld} -m elf64_sparc" 13383 ;; 13384 esac 13385 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13386 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13387 LD=${LD-ld}_sol2 13388 fi 13389 ;; 13390 *) 13391 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13392 LD="${LD-ld} -64" 13393 fi 13394 ;; 13395 esac 13396 ;; 13397 esac 13398 fi 13399 rm -rf conftest* 13400 ;; 13401 esac 13402 13403 need_locks=$enable_libtool_lock 13404 13405 if test -n "$ac_tool_prefix"; then 13406 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13407 set dummy ${ac_tool_prefix}mt; ac_word=$2 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13409 $as_echo_n "checking for $ac_word... " >&6; } 13410 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412 else 13413 if test -n "$MANIFEST_TOOL"; then 13414 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13415 else 13416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13417 for as_dir in $PATH 13418 do 13419 IFS=$as_save_IFS 13420 test -z "$as_dir" && as_dir=. 13421 for ac_exec_ext in '' $ac_executable_extensions; do 13422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13423 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13425 break 2 13426 fi 13427 done 13428 done 13429 IFS=$as_save_IFS 13430 13431 fi 13432 fi 13433 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13434 if test -n "$MANIFEST_TOOL"; then 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13436 $as_echo "$MANIFEST_TOOL" >&6; } 13437 else 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13439 $as_echo "no" >&6; } 13440 fi 13441 13442 13443 fi 13444 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13445 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13446 # Extract the first word of "mt", so it can be a program name with args. 13447 set dummy mt; ac_word=$2 13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13449 $as_echo_n "checking for $ac_word... " >&6; } 13450 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13451 $as_echo_n "(cached) " >&6 13452 else 13453 if test -n "$ac_ct_MANIFEST_TOOL"; then 13454 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13455 else 13456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13457 for as_dir in $PATH 13458 do 13459 IFS=$as_save_IFS 13460 test -z "$as_dir" && as_dir=. 13461 for ac_exec_ext in '' $ac_executable_extensions; do 13462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13463 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13465 break 2 13466 fi 13467 done 13468 done 13469 IFS=$as_save_IFS 13470 13471 fi 13472 fi 13473 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13474 if test -n "$ac_ct_MANIFEST_TOOL"; then 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13476 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13477 else 13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13479 $as_echo "no" >&6; } 13480 fi 13481 13482 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13483 MANIFEST_TOOL=":" 13484 else 13485 case $cross_compiling:$ac_tool_warned in 13486 yes:) 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13489 ac_tool_warned=yes ;; 13490 esac 13491 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13492 fi 13493 else 13494 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13495 fi 13496 13497 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13499 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13500 if ${lt_cv_path_mainfest_tool+:} false; then : 13501 $as_echo_n "(cached) " >&6 13502 else 13503 lt_cv_path_mainfest_tool=no 13504 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13505 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13506 cat conftest.err >&5 13507 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13508 lt_cv_path_mainfest_tool=yes 13509 fi 13510 rm -f conftest* 13511 fi 13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13513 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 13514 if test yes != "$lt_cv_path_mainfest_tool"; then 13515 MANIFEST_TOOL=: 13516 fi 13517 13518 13519 13520 13521 13522 13523 case $host_os in 13524 rhapsody* | darwin*) 13525 if test -n "$ac_tool_prefix"; then 13526 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13527 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13529 $as_echo_n "checking for $ac_word... " >&6; } 13530 if ${ac_cv_prog_DSYMUTIL+:} false; then : 13531 $as_echo_n "(cached) " >&6 13532 else 13533 if test -n "$DSYMUTIL"; then 13534 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13535 else 13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13537 for as_dir in $PATH 13538 do 13539 IFS=$as_save_IFS 13540 test -z "$as_dir" && as_dir=. 13541 for ac_exec_ext in '' $ac_executable_extensions; do 13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13543 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13545 break 2 13546 fi 13547 done 13548 done 13549 IFS=$as_save_IFS 13550 13551 fi 13552 fi 13553 DSYMUTIL=$ac_cv_prog_DSYMUTIL 13554 if test -n "$DSYMUTIL"; then 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13556 $as_echo "$DSYMUTIL" >&6; } 13557 else 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13559 $as_echo "no" >&6; } 13560 fi 13561 13562 13563 fi 13564 if test -z "$ac_cv_prog_DSYMUTIL"; then 13565 ac_ct_DSYMUTIL=$DSYMUTIL 13566 # Extract the first word of "dsymutil", so it can be a program name with args. 13567 set dummy dsymutil; ac_word=$2 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13569 $as_echo_n "checking for $ac_word... " >&6; } 13570 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13571 $as_echo_n "(cached) " >&6 13572 else 13573 if test -n "$ac_ct_DSYMUTIL"; then 13574 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13575 else 13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13577 for as_dir in $PATH 13578 do 13579 IFS=$as_save_IFS 13580 test -z "$as_dir" && as_dir=. 13581 for ac_exec_ext in '' $ac_executable_extensions; do 13582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13583 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13585 break 2 13586 fi 13587 done 13588 done 13589 IFS=$as_save_IFS 13590 13591 fi 13592 fi 13593 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13594 if test -n "$ac_ct_DSYMUTIL"; then 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13596 $as_echo "$ac_ct_DSYMUTIL" >&6; } 13597 else 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13599 $as_echo "no" >&6; } 13600 fi 13601 13602 if test "x$ac_ct_DSYMUTIL" = x; then 13603 DSYMUTIL=":" 13604 else 13605 case $cross_compiling:$ac_tool_warned in 13606 yes:) 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13609 ac_tool_warned=yes ;; 13610 esac 13611 DSYMUTIL=$ac_ct_DSYMUTIL 13612 fi 13613 else 13614 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13615 fi 13616 13617 if test -n "$ac_tool_prefix"; then 13618 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13619 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13621 $as_echo_n "checking for $ac_word... " >&6; } 13622 if ${ac_cv_prog_NMEDIT+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624 else 13625 if test -n "$NMEDIT"; then 13626 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13627 else 13628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13629 for as_dir in $PATH 13630 do 13631 IFS=$as_save_IFS 13632 test -z "$as_dir" && as_dir=. 13633 for ac_exec_ext in '' $ac_executable_extensions; do 13634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13635 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13637 break 2 13638 fi 13639 done 13640 done 13641 IFS=$as_save_IFS 13642 13643 fi 13644 fi 13645 NMEDIT=$ac_cv_prog_NMEDIT 13646 if test -n "$NMEDIT"; then 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13648 $as_echo "$NMEDIT" >&6; } 13649 else 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13651 $as_echo "no" >&6; } 13652 fi 13653 13654 13655 fi 13656 if test -z "$ac_cv_prog_NMEDIT"; then 13657 ac_ct_NMEDIT=$NMEDIT 13658 # Extract the first word of "nmedit", so it can be a program name with args. 13659 set dummy nmedit; ac_word=$2 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13661 $as_echo_n "checking for $ac_word... " >&6; } 13662 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13663 $as_echo_n "(cached) " >&6 13664 else 13665 if test -n "$ac_ct_NMEDIT"; then 13666 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13667 else 13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13669 for as_dir in $PATH 13670 do 13671 IFS=$as_save_IFS 13672 test -z "$as_dir" && as_dir=. 13673 for ac_exec_ext in '' $ac_executable_extensions; do 13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13675 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13677 break 2 13678 fi 13679 done 13680 done 13681 IFS=$as_save_IFS 13682 13683 fi 13684 fi 13685 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13686 if test -n "$ac_ct_NMEDIT"; then 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13688 $as_echo "$ac_ct_NMEDIT" >&6; } 13689 else 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13691 $as_echo "no" >&6; } 13692 fi 13693 13694 if test "x$ac_ct_NMEDIT" = x; then 13695 NMEDIT=":" 13696 else 13697 case $cross_compiling:$ac_tool_warned in 13698 yes:) 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13701 ac_tool_warned=yes ;; 13702 esac 13703 NMEDIT=$ac_ct_NMEDIT 13704 fi 13705 else 13706 NMEDIT="$ac_cv_prog_NMEDIT" 13707 fi 13708 13709 if test -n "$ac_tool_prefix"; then 13710 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13711 set dummy ${ac_tool_prefix}lipo; ac_word=$2 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13713 $as_echo_n "checking for $ac_word... " >&6; } 13714 if ${ac_cv_prog_LIPO+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716 else 13717 if test -n "$LIPO"; then 13718 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13719 else 13720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13721 for as_dir in $PATH 13722 do 13723 IFS=$as_save_IFS 13724 test -z "$as_dir" && as_dir=. 13725 for ac_exec_ext in '' $ac_executable_extensions; do 13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13727 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13729 break 2 13730 fi 13731 done 13732 done 13733 IFS=$as_save_IFS 13734 13735 fi 13736 fi 13737 LIPO=$ac_cv_prog_LIPO 13738 if test -n "$LIPO"; then 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13740 $as_echo "$LIPO" >&6; } 13741 else 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13743 $as_echo "no" >&6; } 13744 fi 13745 13746 13747 fi 13748 if test -z "$ac_cv_prog_LIPO"; then 13749 ac_ct_LIPO=$LIPO 13750 # Extract the first word of "lipo", so it can be a program name with args. 13751 set dummy lipo; ac_word=$2 13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13753 $as_echo_n "checking for $ac_word... " >&6; } 13754 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13755 $as_echo_n "(cached) " >&6 13756 else 13757 if test -n "$ac_ct_LIPO"; then 13758 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13759 else 13760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13761 for as_dir in $PATH 13762 do 13763 IFS=$as_save_IFS 13764 test -z "$as_dir" && as_dir=. 13765 for ac_exec_ext in '' $ac_executable_extensions; do 13766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13767 ac_cv_prog_ac_ct_LIPO="lipo" 13768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13769 break 2 13770 fi 13771 done 13772 done 13773 IFS=$as_save_IFS 13774 13775 fi 13776 fi 13777 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13778 if test -n "$ac_ct_LIPO"; then 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13780 $as_echo "$ac_ct_LIPO" >&6; } 13781 else 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13783 $as_echo "no" >&6; } 13784 fi 13785 13786 if test "x$ac_ct_LIPO" = x; then 13787 LIPO=":" 13788 else 13789 case $cross_compiling:$ac_tool_warned in 13790 yes:) 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13793 ac_tool_warned=yes ;; 13794 esac 13795 LIPO=$ac_ct_LIPO 13796 fi 13797 else 13798 LIPO="$ac_cv_prog_LIPO" 13799 fi 13800 13801 if test -n "$ac_tool_prefix"; then 13802 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13803 set dummy ${ac_tool_prefix}otool; ac_word=$2 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13805 $as_echo_n "checking for $ac_word... " >&6; } 13806 if ${ac_cv_prog_OTOOL+:} false; then : 13807 $as_echo_n "(cached) " >&6 13808 else 13809 if test -n "$OTOOL"; then 13810 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13811 else 13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13813 for as_dir in $PATH 13814 do 13815 IFS=$as_save_IFS 13816 test -z "$as_dir" && as_dir=. 13817 for ac_exec_ext in '' $ac_executable_extensions; do 13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13819 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13821 break 2 13822 fi 13823 done 13824 done 13825 IFS=$as_save_IFS 13826 13827 fi 13828 fi 13829 OTOOL=$ac_cv_prog_OTOOL 13830 if test -n "$OTOOL"; then 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13832 $as_echo "$OTOOL" >&6; } 13833 else 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835 $as_echo "no" >&6; } 13836 fi 13837 13838 13839 fi 13840 if test -z "$ac_cv_prog_OTOOL"; then 13841 ac_ct_OTOOL=$OTOOL 13842 # Extract the first word of "otool", so it can be a program name with args. 13843 set dummy otool; ac_word=$2 13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13845 $as_echo_n "checking for $ac_word... " >&6; } 13846 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13847 $as_echo_n "(cached) " >&6 13848 else 13849 if test -n "$ac_ct_OTOOL"; then 13850 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13851 else 13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13853 for as_dir in $PATH 13854 do 13855 IFS=$as_save_IFS 13856 test -z "$as_dir" && as_dir=. 13857 for ac_exec_ext in '' $ac_executable_extensions; do 13858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13859 ac_cv_prog_ac_ct_OTOOL="otool" 13860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13861 break 2 13862 fi 13863 done 13864 done 13865 IFS=$as_save_IFS 13866 13867 fi 13868 fi 13869 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13870 if test -n "$ac_ct_OTOOL"; then 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13872 $as_echo "$ac_ct_OTOOL" >&6; } 13873 else 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13875 $as_echo "no" >&6; } 13876 fi 13877 13878 if test "x$ac_ct_OTOOL" = x; then 13879 OTOOL=":" 13880 else 13881 case $cross_compiling:$ac_tool_warned in 13882 yes:) 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13885 ac_tool_warned=yes ;; 13886 esac 13887 OTOOL=$ac_ct_OTOOL 13888 fi 13889 else 13890 OTOOL="$ac_cv_prog_OTOOL" 13891 fi 13892 13893 if test -n "$ac_tool_prefix"; then 13894 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13895 set dummy ${ac_tool_prefix}otool64; ac_word=$2 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13897 $as_echo_n "checking for $ac_word... " >&6; } 13898 if ${ac_cv_prog_OTOOL64+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900 else 13901 if test -n "$OTOOL64"; then 13902 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13903 else 13904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13905 for as_dir in $PATH 13906 do 13907 IFS=$as_save_IFS 13908 test -z "$as_dir" && as_dir=. 13909 for ac_exec_ext in '' $ac_executable_extensions; do 13910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13911 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13913 break 2 13914 fi 13915 done 13916 done 13917 IFS=$as_save_IFS 13918 13919 fi 13920 fi 13921 OTOOL64=$ac_cv_prog_OTOOL64 13922 if test -n "$OTOOL64"; then 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13924 $as_echo "$OTOOL64" >&6; } 13925 else 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13927 $as_echo "no" >&6; } 13928 fi 13929 13930 13931 fi 13932 if test -z "$ac_cv_prog_OTOOL64"; then 13933 ac_ct_OTOOL64=$OTOOL64 13934 # Extract the first word of "otool64", so it can be a program name with args. 13935 set dummy otool64; ac_word=$2 13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13937 $as_echo_n "checking for $ac_word... " >&6; } 13938 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13939 $as_echo_n "(cached) " >&6 13940 else 13941 if test -n "$ac_ct_OTOOL64"; then 13942 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13943 else 13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13945 for as_dir in $PATH 13946 do 13947 IFS=$as_save_IFS 13948 test -z "$as_dir" && as_dir=. 13949 for ac_exec_ext in '' $ac_executable_extensions; do 13950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13951 ac_cv_prog_ac_ct_OTOOL64="otool64" 13952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13953 break 2 13954 fi 13955 done 13956 done 13957 IFS=$as_save_IFS 13958 13959 fi 13960 fi 13961 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13962 if test -n "$ac_ct_OTOOL64"; then 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13964 $as_echo "$ac_ct_OTOOL64" >&6; } 13965 else 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13967 $as_echo "no" >&6; } 13968 fi 13969 13970 if test "x$ac_ct_OTOOL64" = x; then 13971 OTOOL64=":" 13972 else 13973 case $cross_compiling:$ac_tool_warned in 13974 yes:) 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13977 ac_tool_warned=yes ;; 13978 esac 13979 OTOOL64=$ac_ct_OTOOL64 13980 fi 13981 else 13982 OTOOL64="$ac_cv_prog_OTOOL64" 13983 fi 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14012 $as_echo_n "checking for -single_module linker flag... " >&6; } 14013 if ${lt_cv_apple_cc_single_mod+:} false; then : 14014 $as_echo_n "(cached) " >&6 14015 else 14016 lt_cv_apple_cc_single_mod=no 14017 if test -z "$LT_MULTI_MODULE"; then 14018 # By default we will add the -single_module flag. You can override 14019 # by either setting the environment variable LT_MULTI_MODULE 14020 # non-empty at configure time, or by adding -multi_module to the 14021 # link flags. 14022 rm -rf libconftest.dylib* 14023 echo "int foo(void){return 1;}" > conftest.c 14024 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14025 -dynamiclib -Wl,-single_module conftest.c" >&5 14026 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14027 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14028 _lt_result=$? 14029 # If there is a non-empty error log, and "single_module" 14030 # appears in it, assume the flag caused a linker warning 14031 if test -s conftest.err && $GREP single_module conftest.err; then 14032 cat conftest.err >&5 14033 # Otherwise, if the output was created with a 0 exit code from 14034 # the compiler, it worked. 14035 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14036 lt_cv_apple_cc_single_mod=yes 14037 else 14038 cat conftest.err >&5 14039 fi 14040 rm -rf libconftest.dylib* 14041 rm -f conftest.* 14042 fi 14043 fi 14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14045 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14046 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14048 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14049 if ${lt_cv_ld_exported_symbols_list+:} false; then : 14050 $as_echo_n "(cached) " >&6 14051 else 14052 lt_cv_ld_exported_symbols_list=no 14053 save_LDFLAGS=$LDFLAGS 14054 echo "_main" > conftest.sym 14055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14057 /* end confdefs.h. */ 14058 14059 int 14060 main () 14061 { 14062 14063 ; 14064 return 0; 14065 } 14066 _ACEOF 14067 if ac_fn_c_try_link "$LINENO"; then : 14068 lt_cv_ld_exported_symbols_list=yes 14069 else 14070 lt_cv_ld_exported_symbols_list=no 14071 fi 14072 rm -f core conftest.err conftest.$ac_objext \ 14073 conftest$ac_exeext conftest.$ac_ext 14074 LDFLAGS=$save_LDFLAGS 14075 14076 fi 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14078 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14079 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14081 $as_echo_n "checking for -force_load linker flag... " >&6; } 14082 if ${lt_cv_ld_force_load+:} false; then : 14083 $as_echo_n "(cached) " >&6 14084 else 14085 lt_cv_ld_force_load=no 14086 cat > conftest.c << _LT_EOF 14087 int forced_loaded() { return 2;} 14088 _LT_EOF 14089 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14090 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14091 echo "$AR cru libconftest.a conftest.o" >&5 14092 $AR cru libconftest.a conftest.o 2>&5 14093 echo "$RANLIB libconftest.a" >&5 14094 $RANLIB libconftest.a 2>&5 14095 cat > conftest.c << _LT_EOF 14096 int main() { return 0;} 14097 _LT_EOF 14098 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14099 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14100 _lt_result=$? 14101 if test -s conftest.err && $GREP force_load conftest.err; then 14102 cat conftest.err >&5 14103 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14104 lt_cv_ld_force_load=yes 14105 else 14106 cat conftest.err >&5 14107 fi 14108 rm -f conftest.err libconftest.a conftest conftest.c 14109 rm -rf conftest.dSYM 14110 14111 fi 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14113 $as_echo "$lt_cv_ld_force_load" >&6; } 14114 case $host_os in 14115 rhapsody* | darwin1.[012]) 14116 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14117 darwin1.*) 14118 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14119 darwin*) # darwin 5.x on 14120 # if running on 10.5 or later, the deployment target defaults 14121 # to the OS version, if on x86, and 10.4, the deployment 14122 # target defaults to 10.4. Don't you love it? 14123 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14124 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14125 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14126 10.[012][,.]*) 14127 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14128 10.*) 14129 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14130 esac 14131 ;; 14132 esac 14133 if test yes = "$lt_cv_apple_cc_single_mod"; then 14134 _lt_dar_single_mod='$single_module' 14135 fi 14136 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14137 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14138 else 14139 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14140 fi 14141 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14142 _lt_dsymutil='~$DSYMUTIL $lib || :' 14143 else 14144 _lt_dsymutil= 14145 fi 14146 ;; 14147 esac 14148 14149 # func_munge_path_list VARIABLE PATH 14150 # ----------------------------------- 14151 # VARIABLE is name of variable containing _space_ separated list of 14152 # directories to be munged by the contents of PATH, which is string 14153 # having a format: 14154 # "DIR[:DIR]:" 14155 # string "DIR[ DIR]" will be prepended to VARIABLE 14156 # ":DIR[:DIR]" 14157 # string "DIR[ DIR]" will be appended to VARIABLE 14158 # "DIRP[:DIRP]::[DIRA:]DIRA" 14159 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14160 # "DIRA[ DIRA]" will be appended to VARIABLE 14161 # "DIR[:DIR]" 14162 # VARIABLE will be replaced by "DIR[ DIR]" 14163 func_munge_path_list () 14164 { 14165 case x$2 in 14166 x) 14167 ;; 14168 *:) 14169 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14170 ;; 14171 x:*) 14172 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14173 ;; 14174 *::*) 14175 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14176 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14177 ;; 14178 *) 14179 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14180 ;; 14181 esac 14182 } 14183 14184 for ac_header in dlfcn.h 14185 do : 14186 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14187 " 14188 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 14189 cat >>confdefs.h <<_ACEOF 14190 #define HAVE_DLFCN_H 1 14191 _ACEOF 14192 14193 fi 14194 14195 done 14196 14197 14198 14199 14200 14201 # Set options 14202 14203 14204 14205 enable_dlopen=no 14206 14207 14208 enable_win32_dll=no 14209 14210 14211 # Check whether --enable-shared was given. 14212 if test "${enable_shared+set}" = set; then : 14213 enableval=$enable_shared; p=${PACKAGE-default} 14214 case $enableval in 14215 yes) enable_shared=yes ;; 14216 no) enable_shared=no ;; 14217 *) 14218 enable_shared=no 14219 # Look at the argument we got. We use all the common list separators. 14220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14221 for pkg in $enableval; do 14222 IFS=$lt_save_ifs 14223 if test "X$pkg" = "X$p"; then 14224 enable_shared=yes 14225 fi 14226 done 14227 IFS=$lt_save_ifs 14228 ;; 14229 esac 14230 else 14231 enable_shared=yes 14232 fi 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 # Check whether --with-pic was given. 14245 if test "${with_pic+set}" = set; then : 14246 withval=$with_pic; lt_p=${PACKAGE-default} 14247 case $withval in 14248 yes|no) pic_mode=$withval ;; 14249 *) 14250 pic_mode=default 14251 # Look at the argument we got. We use all the common list separators. 14252 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14253 for lt_pkg in $withval; do 14254 IFS=$lt_save_ifs 14255 if test "X$lt_pkg" = "X$lt_p"; then 14256 pic_mode=yes 14257 fi 14258 done 14259 IFS=$lt_save_ifs 14260 ;; 14261 esac 14262 else 14263 pic_mode=default 14264 fi 14265 14266 14267 14268 14269 14270 14271 14272 14273 # Check whether --enable-fast-install was given. 14274 if test "${enable_fast_install+set}" = set; then : 14275 enableval=$enable_fast_install; p=${PACKAGE-default} 14276 case $enableval in 14277 yes) enable_fast_install=yes ;; 14278 no) enable_fast_install=no ;; 14279 *) 14280 enable_fast_install=no 14281 # Look at the argument we got. We use all the common list separators. 14282 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14283 for pkg in $enableval; do 14284 IFS=$lt_save_ifs 14285 if test "X$pkg" = "X$p"; then 14286 enable_fast_install=yes 14287 fi 14288 done 14289 IFS=$lt_save_ifs 14290 ;; 14291 esac 14292 else 14293 enable_fast_install=yes 14294 fi 14295 14296 14297 14298 14299 14300 14301 14302 14303 shared_archive_member_spec= 14304 case $host,$enable_shared in 14305 power*-*-aix[5-9]*,yes) 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14307 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14308 14309 # Check whether --with-aix-soname was given. 14310 if test "${with_aix_soname+set}" = set; then : 14311 withval=$with_aix_soname; case $withval in 14312 aix|svr4|both) 14313 ;; 14314 *) 14315 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14316 ;; 14317 esac 14318 lt_cv_with_aix_soname=$with_aix_soname 14319 else 14320 if ${lt_cv_with_aix_soname+:} false; then : 14321 $as_echo_n "(cached) " >&6 14322 else 14323 lt_cv_with_aix_soname=aix 14324 fi 14325 14326 with_aix_soname=$lt_cv_with_aix_soname 14327 fi 14328 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14330 $as_echo "$with_aix_soname" >&6; } 14331 if test aix != "$with_aix_soname"; then 14332 # For the AIX way of multilib, we name the shared archive member 14333 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14334 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14335 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14336 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14337 if test 64 = "${OBJECT_MODE-32}"; then 14338 shared_archive_member_spec=shr_64 14339 else 14340 shared_archive_member_spec=shr 14341 fi 14342 fi 14343 ;; 14344 *) 14345 with_aix_soname=aix 14346 ;; 14347 esac 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 # This can be used to rebuild libtool when needed 14359 LIBTOOL_DEPS=$ltmain 14360 14361 # Always use our own libtool. 14362 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 test -z "$LN_S" && LN_S="ln -s" 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 if test -n "${ZSH_VERSION+set}"; then 14409 setopt NO_GLOB_SUBST 14410 fi 14411 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14413 $as_echo_n "checking for objdir... " >&6; } 14414 if ${lt_cv_objdir+:} false; then : 14415 $as_echo_n "(cached) " >&6 14416 else 14417 rm -f .libs 2>/dev/null 14418 mkdir .libs 2>/dev/null 14419 if test -d .libs; then 14420 lt_cv_objdir=.libs 14421 else 14422 # MS-DOS does not allow filenames that begin with a dot. 14423 lt_cv_objdir=_libs 14424 fi 14425 rmdir .libs 2>/dev/null 14426 fi 14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14428 $as_echo "$lt_cv_objdir" >&6; } 14429 objdir=$lt_cv_objdir 14430 14431 14432 14433 14434 14435 cat >>confdefs.h <<_ACEOF 14436 #define LT_OBJDIR "$lt_cv_objdir/" 14437 _ACEOF 14438 14439 14440 14441 14442 case $host_os in 14443 aix3*) 14444 # AIX sometimes has problems with the GCC collect2 program. For some 14445 # reason, if we set the COLLECT_NAMES environment variable, the problems 14446 # vanish in a puff of smoke. 14447 if test set != "${COLLECT_NAMES+set}"; then 14448 COLLECT_NAMES= 14449 export COLLECT_NAMES 14450 fi 14451 ;; 14452 esac 14453 14454 # Global variables: 14455 ofile=libtool 14456 can_build_shared=yes 14457 14458 # All known linkers require a '.a' archive for static linking (except MSVC, 14459 # which needs '.lib'). 14460 libext=a 14461 14462 with_gnu_ld=$lt_cv_prog_gnu_ld 14463 14464 old_CC=$CC 14465 old_CFLAGS=$CFLAGS 14466 14467 # Set sane defaults for various variables 14468 test -z "$CC" && CC=cc 14469 test -z "$LTCC" && LTCC=$CC 14470 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14471 test -z "$LD" && LD=ld 14472 test -z "$ac_objext" && ac_objext=o 14473 14474 func_cc_basename $compiler 14475 cc_basename=$func_cc_basename_result 14476 14477 14478 # Only perform the check for file, if the check method requires it 14479 test -z "$MAGIC_CMD" && MAGIC_CMD=file 14480 case $deplibs_check_method in 14481 file_magic*) 14482 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14484 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14485 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14486 $as_echo_n "(cached) " >&6 14487 else 14488 case $MAGIC_CMD in 14489 [\\/*] | ?:[\\/]*) 14490 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14491 ;; 14492 *) 14493 lt_save_MAGIC_CMD=$MAGIC_CMD 14494 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14495 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14496 for ac_dir in $ac_dummy; do 14497 IFS=$lt_save_ifs 14498 test -z "$ac_dir" && ac_dir=. 14499 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14500 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14501 if test -n "$file_magic_test_file"; then 14502 case $deplibs_check_method in 14503 "file_magic "*) 14504 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14507 $EGREP "$file_magic_regex" > /dev/null; then 14508 : 14509 else 14510 cat <<_LT_EOF 1>&2 14511 14512 *** Warning: the command libtool uses to detect shared libraries, 14513 *** $file_magic_cmd, produces output that libtool cannot recognize. 14514 *** The result is that libtool may fail to recognize shared libraries 14515 *** as such. This will affect the creation of libtool libraries that 14516 *** depend on shared libraries, but programs linked with such libtool 14517 *** libraries will work regardless of this problem. Nevertheless, you 14518 *** may want to report the problem to your system manager and/or to 14519 *** bug-libtool (at] gnu.org 14520 14521 _LT_EOF 14522 fi ;; 14523 esac 14524 fi 14525 break 14526 fi 14527 done 14528 IFS=$lt_save_ifs 14529 MAGIC_CMD=$lt_save_MAGIC_CMD 14530 ;; 14531 esac 14532 fi 14533 14534 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14535 if test -n "$MAGIC_CMD"; then 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14537 $as_echo "$MAGIC_CMD" >&6; } 14538 else 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14540 $as_echo "no" >&6; } 14541 fi 14542 14543 14544 14545 14546 14547 if test -z "$lt_cv_path_MAGIC_CMD"; then 14548 if test -n "$ac_tool_prefix"; then 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14550 $as_echo_n "checking for file... " >&6; } 14551 if ${lt_cv_path_MAGIC_CMD+:} false; then : 14552 $as_echo_n "(cached) " >&6 14553 else 14554 case $MAGIC_CMD in 14555 [\\/*] | ?:[\\/]*) 14556 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14557 ;; 14558 *) 14559 lt_save_MAGIC_CMD=$MAGIC_CMD 14560 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14561 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14562 for ac_dir in $ac_dummy; do 14563 IFS=$lt_save_ifs 14564 test -z "$ac_dir" && ac_dir=. 14565 if test -f "$ac_dir/file"; then 14566 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14567 if test -n "$file_magic_test_file"; then 14568 case $deplibs_check_method in 14569 "file_magic "*) 14570 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14571 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14572 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14573 $EGREP "$file_magic_regex" > /dev/null; then 14574 : 14575 else 14576 cat <<_LT_EOF 1>&2 14577 14578 *** Warning: the command libtool uses to detect shared libraries, 14579 *** $file_magic_cmd, produces output that libtool cannot recognize. 14580 *** The result is that libtool may fail to recognize shared libraries 14581 *** as such. This will affect the creation of libtool libraries that 14582 *** depend on shared libraries, but programs linked with such libtool 14583 *** libraries will work regardless of this problem. Nevertheless, you 14584 *** may want to report the problem to your system manager and/or to 14585 *** bug-libtool (at] gnu.org 14586 14587 _LT_EOF 14588 fi ;; 14589 esac 14590 fi 14591 break 14592 fi 14593 done 14594 IFS=$lt_save_ifs 14595 MAGIC_CMD=$lt_save_MAGIC_CMD 14596 ;; 14597 esac 14598 fi 14599 14600 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14601 if test -n "$MAGIC_CMD"; then 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14603 $as_echo "$MAGIC_CMD" >&6; } 14604 else 14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14606 $as_echo "no" >&6; } 14607 fi 14608 14609 14610 else 14611 MAGIC_CMD=: 14612 fi 14613 fi 14614 14615 fi 14616 ;; 14617 esac 14618 14619 # Use C for the default configuration in the libtool script 14620 14621 lt_save_CC=$CC 14622 ac_ext=c 14623 ac_cpp='$CPP $CPPFLAGS' 14624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14626 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14627 14628 14629 # Source file extension for C test sources. 14630 ac_ext=c 14631 14632 # Object file extension for compiled C test sources. 14633 objext=o 14634 objext=$objext 14635 14636 # Code to be used in simple compile tests 14637 lt_simple_compile_test_code="int some_variable = 0;" 14638 14639 # Code to be used in simple link tests 14640 lt_simple_link_test_code='int main(){return(0);}' 14641 14642 14643 14644 14645 14646 14647 14648 # If no C compiler was specified, use CC. 14649 LTCC=${LTCC-"$CC"} 14650 14651 # If no C compiler flags were specified, use CFLAGS. 14652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14653 14654 # Allow CC to be a program name with arguments. 14655 compiler=$CC 14656 14657 # Save the default compiler, since it gets overwritten when the other 14658 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14659 compiler_DEFAULT=$CC 14660 14661 # save warnings/boilerplate of simple test code 14662 ac_outfile=conftest.$ac_objext 14663 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14664 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14665 _lt_compiler_boilerplate=`cat conftest.err` 14666 $RM conftest* 14667 14668 ac_outfile=conftest.$ac_objext 14669 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14670 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14671 _lt_linker_boilerplate=`cat conftest.err` 14672 $RM -r conftest* 14673 14674 14675 if test -n "$compiler"; then 14676 14677 lt_prog_compiler_no_builtin_flag= 14678 14679 if test yes = "$GCC"; then 14680 case $cc_basename in 14681 nvcc*) 14682 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14683 *) 14684 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14685 esac 14686 14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14688 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14689 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14690 $as_echo_n "(cached) " >&6 14691 else 14692 lt_cv_prog_compiler_rtti_exceptions=no 14693 ac_outfile=conftest.$ac_objext 14694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14695 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14696 # Insert the option either (1) after the last *FLAGS variable, or 14697 # (2) before a word containing "conftest.", or (3) at the end. 14698 # Note that $ac_compile itself does not contain backslashes and begins 14699 # with a dollar sign (not a hyphen), so the echo should work correctly. 14700 # The option is referenced via a variable to avoid confusing sed. 14701 lt_compile=`echo "$ac_compile" | $SED \ 14702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14704 -e 's:$: $lt_compiler_flag:'` 14705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14706 (eval "$lt_compile" 2>conftest.err) 14707 ac_status=$? 14708 cat conftest.err >&5 14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14710 if (exit $ac_status) && test -s "$ac_outfile"; then 14711 # The compiler can only warn and ignore the option if not recognized 14712 # So say no if there are warnings other than the usual output. 14713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14716 lt_cv_prog_compiler_rtti_exceptions=yes 14717 fi 14718 fi 14719 $RM conftest* 14720 14721 fi 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14723 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14724 14725 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14726 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14727 else 14728 : 14729 fi 14730 14731 fi 14732 14733 14734 14735 14736 14737 14738 lt_prog_compiler_wl= 14739 lt_prog_compiler_pic= 14740 lt_prog_compiler_static= 14741 14742 14743 if test yes = "$GCC"; then 14744 lt_prog_compiler_wl='-Wl,' 14745 lt_prog_compiler_static='-static' 14746 14747 case $host_os in 14748 aix*) 14749 # All AIX code is PIC. 14750 if test ia64 = "$host_cpu"; then 14751 # AIX 5 now supports IA64 processor 14752 lt_prog_compiler_static='-Bstatic' 14753 fi 14754 lt_prog_compiler_pic='-fPIC' 14755 ;; 14756 14757 amigaos*) 14758 case $host_cpu in 14759 powerpc) 14760 # see comment about AmigaOS4 .so support 14761 lt_prog_compiler_pic='-fPIC' 14762 ;; 14763 m68k) 14764 # FIXME: we need at least 68020 code to build shared libraries, but 14765 # adding the '-m68020' flag to GCC prevents building anything better, 14766 # like '-m68040'. 14767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14768 ;; 14769 esac 14770 ;; 14771 14772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14773 # PIC is the default for these OSes. 14774 ;; 14775 14776 mingw* | cygwin* | pw32* | os2* | cegcc*) 14777 # This hack is so that the source file can tell whether it is being 14778 # built for inclusion in a dll (and should export symbols for example). 14779 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14780 # (--disable-auto-import) libraries 14781 lt_prog_compiler_pic='-DDLL_EXPORT' 14782 case $host_os in 14783 os2*) 14784 lt_prog_compiler_static='$wl-static' 14785 ;; 14786 esac 14787 ;; 14788 14789 darwin* | rhapsody*) 14790 # PIC is the default on this platform 14791 # Common symbols not allowed in MH_DYLIB files 14792 lt_prog_compiler_pic='-fno-common' 14793 ;; 14794 14795 haiku*) 14796 # PIC is the default for Haiku. 14797 # The "-static" flag exists, but is broken. 14798 lt_prog_compiler_static= 14799 ;; 14800 14801 hpux*) 14802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14804 # sets the default TLS model and affects inlining. 14805 case $host_cpu in 14806 hppa*64*) 14807 # +Z the default 14808 ;; 14809 *) 14810 lt_prog_compiler_pic='-fPIC' 14811 ;; 14812 esac 14813 ;; 14814 14815 interix[3-9]*) 14816 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14817 # Instead, we relocate shared libraries at runtime. 14818 ;; 14819 14820 msdosdjgpp*) 14821 # Just because we use GCC doesn't mean we suddenly get shared libraries 14822 # on systems that don't support them. 14823 lt_prog_compiler_can_build_shared=no 14824 enable_shared=no 14825 ;; 14826 14827 *nto* | *qnx*) 14828 # QNX uses GNU C++, but need to define -shared option too, otherwise 14829 # it will coredump. 14830 lt_prog_compiler_pic='-fPIC -shared' 14831 ;; 14832 14833 sysv4*MP*) 14834 if test -d /usr/nec; then 14835 lt_prog_compiler_pic=-Kconform_pic 14836 fi 14837 ;; 14838 14839 *) 14840 lt_prog_compiler_pic='-fPIC' 14841 ;; 14842 esac 14843 14844 case $cc_basename in 14845 nvcc*) # Cuda Compiler Driver 2.2 14846 lt_prog_compiler_wl='-Xlinker ' 14847 if test -n "$lt_prog_compiler_pic"; then 14848 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14849 fi 14850 ;; 14851 esac 14852 else 14853 # PORTME Check for flag to pass linker flags through the system compiler. 14854 case $host_os in 14855 aix*) 14856 lt_prog_compiler_wl='-Wl,' 14857 if test ia64 = "$host_cpu"; then 14858 # AIX 5 now supports IA64 processor 14859 lt_prog_compiler_static='-Bstatic' 14860 else 14861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14862 fi 14863 ;; 14864 14865 darwin* | rhapsody*) 14866 # PIC is the default on this platform 14867 # Common symbols not allowed in MH_DYLIB files 14868 lt_prog_compiler_pic='-fno-common' 14869 case $cc_basename in 14870 nagfor*) 14871 # NAG Fortran compiler 14872 lt_prog_compiler_wl='-Wl,-Wl,,' 14873 lt_prog_compiler_pic='-PIC' 14874 lt_prog_compiler_static='-Bstatic' 14875 ;; 14876 esac 14877 ;; 14878 14879 mingw* | cygwin* | pw32* | os2* | cegcc*) 14880 # This hack is so that the source file can tell whether it is being 14881 # built for inclusion in a dll (and should export symbols for example). 14882 lt_prog_compiler_pic='-DDLL_EXPORT' 14883 case $host_os in 14884 os2*) 14885 lt_prog_compiler_static='$wl-static' 14886 ;; 14887 esac 14888 ;; 14889 14890 hpux9* | hpux10* | hpux11*) 14891 lt_prog_compiler_wl='-Wl,' 14892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14893 # not for PA HP-UX. 14894 case $host_cpu in 14895 hppa*64*|ia64*) 14896 # +Z the default 14897 ;; 14898 *) 14899 lt_prog_compiler_pic='+Z' 14900 ;; 14901 esac 14902 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14903 lt_prog_compiler_static='$wl-a ${wl}archive' 14904 ;; 14905 14906 irix5* | irix6* | nonstopux*) 14907 lt_prog_compiler_wl='-Wl,' 14908 # PIC (with -KPIC) is the default. 14909 lt_prog_compiler_static='-non_shared' 14910 ;; 14911 14912 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14913 case $cc_basename in 14914 # old Intel for x86_64, which still supported -KPIC. 14915 ecc*) 14916 lt_prog_compiler_wl='-Wl,' 14917 lt_prog_compiler_pic='-KPIC' 14918 lt_prog_compiler_static='-static' 14919 ;; 14920 # icc used to be incompatible with GCC. 14921 # ICC 10 doesn't accept -KPIC any more. 14922 icc* | ifort*) 14923 lt_prog_compiler_wl='-Wl,' 14924 lt_prog_compiler_pic='-fPIC' 14925 lt_prog_compiler_static='-static' 14926 ;; 14927 # Lahey Fortran 8.1. 14928 lf95*) 14929 lt_prog_compiler_wl='-Wl,' 14930 lt_prog_compiler_pic='--shared' 14931 lt_prog_compiler_static='--static' 14932 ;; 14933 nagfor*) 14934 # NAG Fortran compiler 14935 lt_prog_compiler_wl='-Wl,-Wl,,' 14936 lt_prog_compiler_pic='-PIC' 14937 lt_prog_compiler_static='-Bstatic' 14938 ;; 14939 tcc*) 14940 # Fabrice Bellard et al's Tiny C Compiler 14941 lt_prog_compiler_wl='-Wl,' 14942 lt_prog_compiler_pic='-fPIC' 14943 lt_prog_compiler_static='-static' 14944 ;; 14945 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14946 # Portland Group compilers (*not* the Pentium gcc compiler, 14947 # which looks to be a dead project) 14948 lt_prog_compiler_wl='-Wl,' 14949 lt_prog_compiler_pic='-fpic' 14950 lt_prog_compiler_static='-Bstatic' 14951 ;; 14952 ccc*) 14953 lt_prog_compiler_wl='-Wl,' 14954 # All Alpha code is PIC. 14955 lt_prog_compiler_static='-non_shared' 14956 ;; 14957 xl* | bgxl* | bgf* | mpixl*) 14958 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14959 lt_prog_compiler_wl='-Wl,' 14960 lt_prog_compiler_pic='-qpic' 14961 lt_prog_compiler_static='-qstaticlink' 14962 ;; 14963 *) 14964 case `$CC -V 2>&1 | sed 5q` in 14965 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14966 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14967 lt_prog_compiler_pic='-KPIC' 14968 lt_prog_compiler_static='-Bstatic' 14969 lt_prog_compiler_wl='' 14970 ;; 14971 *Sun\ F* | *Sun*Fortran*) 14972 lt_prog_compiler_pic='-KPIC' 14973 lt_prog_compiler_static='-Bstatic' 14974 lt_prog_compiler_wl='-Qoption ld ' 14975 ;; 14976 *Sun\ C*) 14977 # Sun C 5.9 14978 lt_prog_compiler_pic='-KPIC' 14979 lt_prog_compiler_static='-Bstatic' 14980 lt_prog_compiler_wl='-Wl,' 14981 ;; 14982 *Intel*\ [CF]*Compiler*) 14983 lt_prog_compiler_wl='-Wl,' 14984 lt_prog_compiler_pic='-fPIC' 14985 lt_prog_compiler_static='-static' 14986 ;; 14987 *Portland\ Group*) 14988 lt_prog_compiler_wl='-Wl,' 14989 lt_prog_compiler_pic='-fpic' 14990 lt_prog_compiler_static='-Bstatic' 14991 ;; 14992 esac 14993 ;; 14994 esac 14995 ;; 14996 14997 newsos6) 14998 lt_prog_compiler_pic='-KPIC' 14999 lt_prog_compiler_static='-Bstatic' 15000 ;; 15001 15002 *nto* | *qnx*) 15003 # QNX uses GNU C++, but need to define -shared option too, otherwise 15004 # it will coredump. 15005 lt_prog_compiler_pic='-fPIC -shared' 15006 ;; 15007 15008 osf3* | osf4* | osf5*) 15009 lt_prog_compiler_wl='-Wl,' 15010 # All OSF/1 code is PIC. 15011 lt_prog_compiler_static='-non_shared' 15012 ;; 15013 15014 rdos*) 15015 lt_prog_compiler_static='-non_shared' 15016 ;; 15017 15018 solaris*) 15019 lt_prog_compiler_pic='-KPIC' 15020 lt_prog_compiler_static='-Bstatic' 15021 case $cc_basename in 15022 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15023 lt_prog_compiler_wl='-Qoption ld ';; 15024 *) 15025 lt_prog_compiler_wl='-Wl,';; 15026 esac 15027 ;; 15028 15029 sunos4*) 15030 lt_prog_compiler_wl='-Qoption ld ' 15031 lt_prog_compiler_pic='-PIC' 15032 lt_prog_compiler_static='-Bstatic' 15033 ;; 15034 15035 sysv4 | sysv4.2uw2* | sysv4.3*) 15036 lt_prog_compiler_wl='-Wl,' 15037 lt_prog_compiler_pic='-KPIC' 15038 lt_prog_compiler_static='-Bstatic' 15039 ;; 15040 15041 sysv4*MP*) 15042 if test -d /usr/nec; then 15043 lt_prog_compiler_pic='-Kconform_pic' 15044 lt_prog_compiler_static='-Bstatic' 15045 fi 15046 ;; 15047 15048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15049 lt_prog_compiler_wl='-Wl,' 15050 lt_prog_compiler_pic='-KPIC' 15051 lt_prog_compiler_static='-Bstatic' 15052 ;; 15053 15054 unicos*) 15055 lt_prog_compiler_wl='-Wl,' 15056 lt_prog_compiler_can_build_shared=no 15057 ;; 15058 15059 uts4*) 15060 lt_prog_compiler_pic='-pic' 15061 lt_prog_compiler_static='-Bstatic' 15062 ;; 15063 15064 *) 15065 lt_prog_compiler_can_build_shared=no 15066 ;; 15067 esac 15068 fi 15069 15070 case $host_os in 15071 # For platforms that do not support PIC, -DPIC is meaningless: 15072 *djgpp*) 15073 lt_prog_compiler_pic= 15074 ;; 15075 *) 15076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15077 ;; 15078 esac 15079 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15081 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15082 if ${lt_cv_prog_compiler_pic+:} false; then : 15083 $as_echo_n "(cached) " >&6 15084 else 15085 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15086 fi 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15088 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 15089 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15090 15091 # 15092 # Check to make sure the PIC flag actually works. 15093 # 15094 if test -n "$lt_prog_compiler_pic"; then 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15096 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15097 if ${lt_cv_prog_compiler_pic_works+:} false; then : 15098 $as_echo_n "(cached) " >&6 15099 else 15100 lt_cv_prog_compiler_pic_works=no 15101 ac_outfile=conftest.$ac_objext 15102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15103 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15104 # Insert the option either (1) after the last *FLAGS variable, or 15105 # (2) before a word containing "conftest.", or (3) at the end. 15106 # Note that $ac_compile itself does not contain backslashes and begins 15107 # with a dollar sign (not a hyphen), so the echo should work correctly. 15108 # The option is referenced via a variable to avoid confusing sed. 15109 lt_compile=`echo "$ac_compile" | $SED \ 15110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15112 -e 's:$: $lt_compiler_flag:'` 15113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15114 (eval "$lt_compile" 2>conftest.err) 15115 ac_status=$? 15116 cat conftest.err >&5 15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15118 if (exit $ac_status) && test -s "$ac_outfile"; then 15119 # The compiler can only warn and ignore the option if not recognized 15120 # So say no if there are warnings other than the usual output. 15121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15124 lt_cv_prog_compiler_pic_works=yes 15125 fi 15126 fi 15127 $RM conftest* 15128 15129 fi 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15131 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15132 15133 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15134 case $lt_prog_compiler_pic in 15135 "" | " "*) ;; 15136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15137 esac 15138 else 15139 lt_prog_compiler_pic= 15140 lt_prog_compiler_can_build_shared=no 15141 fi 15142 15143 fi 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 # 15156 # Check to make sure the static flag actually works. 15157 # 15158 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15160 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15161 if ${lt_cv_prog_compiler_static_works+:} false; then : 15162 $as_echo_n "(cached) " >&6 15163 else 15164 lt_cv_prog_compiler_static_works=no 15165 save_LDFLAGS=$LDFLAGS 15166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15167 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15169 # The linker can only warn and ignore the option if not recognized 15170 # So say no if there are warnings 15171 if test -s conftest.err; then 15172 # Append any errors to the config.log. 15173 cat conftest.err 1>&5 15174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15176 if diff conftest.exp conftest.er2 >/dev/null; then 15177 lt_cv_prog_compiler_static_works=yes 15178 fi 15179 else 15180 lt_cv_prog_compiler_static_works=yes 15181 fi 15182 fi 15183 $RM -r conftest* 15184 LDFLAGS=$save_LDFLAGS 15185 15186 fi 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15188 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15189 15190 if test yes = "$lt_cv_prog_compiler_static_works"; then 15191 : 15192 else 15193 lt_prog_compiler_static= 15194 fi 15195 15196 15197 15198 15199 15200 15201 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15204 if ${lt_cv_prog_compiler_c_o+:} false; then : 15205 $as_echo_n "(cached) " >&6 15206 else 15207 lt_cv_prog_compiler_c_o=no 15208 $RM -r conftest 2>/dev/null 15209 mkdir conftest 15210 cd conftest 15211 mkdir out 15212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15213 15214 lt_compiler_flag="-o out/conftest2.$ac_objext" 15215 # Insert the option either (1) after the last *FLAGS variable, or 15216 # (2) before a word containing "conftest.", or (3) at the end. 15217 # Note that $ac_compile itself does not contain backslashes and begins 15218 # with a dollar sign (not a hyphen), so the echo should work correctly. 15219 lt_compile=`echo "$ac_compile" | $SED \ 15220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15222 -e 's:$: $lt_compiler_flag:'` 15223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15224 (eval "$lt_compile" 2>out/conftest.err) 15225 ac_status=$? 15226 cat out/conftest.err >&5 15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15228 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15229 then 15230 # The compiler can only warn and ignore the option if not recognized 15231 # So say no if there are warnings 15232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15235 lt_cv_prog_compiler_c_o=yes 15236 fi 15237 fi 15238 chmod u+w . 2>&5 15239 $RM conftest* 15240 # SGI C++ compiler will create directory out/ii_files/ for 15241 # template instantiation 15242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15243 $RM out/* && rmdir out 15244 cd .. 15245 $RM -r conftest 15246 $RM conftest* 15247 15248 fi 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15251 15252 15253 15254 15255 15256 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15259 if ${lt_cv_prog_compiler_c_o+:} false; then : 15260 $as_echo_n "(cached) " >&6 15261 else 15262 lt_cv_prog_compiler_c_o=no 15263 $RM -r conftest 2>/dev/null 15264 mkdir conftest 15265 cd conftest 15266 mkdir out 15267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15268 15269 lt_compiler_flag="-o out/conftest2.$ac_objext" 15270 # Insert the option either (1) after the last *FLAGS variable, or 15271 # (2) before a word containing "conftest.", or (3) at the end. 15272 # Note that $ac_compile itself does not contain backslashes and begins 15273 # with a dollar sign (not a hyphen), so the echo should work correctly. 15274 lt_compile=`echo "$ac_compile" | $SED \ 15275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15277 -e 's:$: $lt_compiler_flag:'` 15278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15279 (eval "$lt_compile" 2>out/conftest.err) 15280 ac_status=$? 15281 cat out/conftest.err >&5 15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15283 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15284 then 15285 # The compiler can only warn and ignore the option if not recognized 15286 # So say no if there are warnings 15287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15290 lt_cv_prog_compiler_c_o=yes 15291 fi 15292 fi 15293 chmod u+w . 2>&5 15294 $RM conftest* 15295 # SGI C++ compiler will create directory out/ii_files/ for 15296 # template instantiation 15297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15298 $RM out/* && rmdir out 15299 cd .. 15300 $RM -r conftest 15301 $RM conftest* 15302 15303 fi 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15306 15307 15308 15309 15310 hard_links=nottested 15311 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15312 # do not overwrite the value of need_locks provided by the user 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15314 $as_echo_n "checking if we can lock with hard links... " >&6; } 15315 hard_links=yes 15316 $RM conftest* 15317 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15318 touch conftest.a 15319 ln conftest.a conftest.b 2>&5 || hard_links=no 15320 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15322 $as_echo "$hard_links" >&6; } 15323 if test no = "$hard_links"; then 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15325 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15326 need_locks=warn 15327 fi 15328 else 15329 need_locks=no 15330 fi 15331 15332 15333 15334 15335 15336 15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15338 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15339 15340 runpath_var= 15341 allow_undefined_flag= 15342 always_export_symbols=no 15343 archive_cmds= 15344 archive_expsym_cmds= 15345 compiler_needs_object=no 15346 enable_shared_with_static_runtimes=no 15347 export_dynamic_flag_spec= 15348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15349 hardcode_automatic=no 15350 hardcode_direct=no 15351 hardcode_direct_absolute=no 15352 hardcode_libdir_flag_spec= 15353 hardcode_libdir_separator= 15354 hardcode_minus_L=no 15355 hardcode_shlibpath_var=unsupported 15356 inherit_rpath=no 15357 link_all_deplibs=unknown 15358 module_cmds= 15359 module_expsym_cmds= 15360 old_archive_from_new_cmds= 15361 old_archive_from_expsyms_cmds= 15362 thread_safe_flag_spec= 15363 whole_archive_flag_spec= 15364 # include_expsyms should be a list of space-separated symbols to be *always* 15365 # included in the symbol list 15366 include_expsyms= 15367 # exclude_expsyms can be an extended regexp of symbols to exclude 15368 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15369 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15370 # as well as any symbol that contains 'd'. 15371 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15373 # platforms (ab)use it in PIC code, but their linkers get confused if 15374 # the symbol is explicitly referenced. Since portable code cannot 15375 # rely on this symbol name, it's probably fine to never include it in 15376 # preloaded symbol tables. 15377 # Exclude shared library initialization/finalization symbols. 15378 extract_expsyms_cmds= 15379 15380 case $host_os in 15381 cygwin* | mingw* | pw32* | cegcc*) 15382 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15383 # When not using gcc, we currently assume that we are using 15384 # Microsoft Visual C++. 15385 if test yes != "$GCC"; then 15386 with_gnu_ld=no 15387 fi 15388 ;; 15389 interix*) 15390 # we just hope/assume this is gcc and not c89 (= MSVC++) 15391 with_gnu_ld=yes 15392 ;; 15393 openbsd* | bitrig*) 15394 with_gnu_ld=no 15395 ;; 15396 linux* | k*bsd*-gnu | gnu*) 15397 link_all_deplibs=no 15398 ;; 15399 esac 15400 15401 ld_shlibs=yes 15402 15403 # On some targets, GNU ld is compatible enough with the native linker 15404 # that we're better off using the native interface for both. 15405 lt_use_gnu_ld_interface=no 15406 if test yes = "$with_gnu_ld"; then 15407 case $host_os in 15408 aix*) 15409 # The AIX port of GNU ld has always aspired to compatibility 15410 # with the native linker. However, as the warning in the GNU ld 15411 # block says, versions before 2.19.5* couldn't really create working 15412 # shared libraries, regardless of the interface used. 15413 case `$LD -v 2>&1` in 15414 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15415 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15416 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15417 *) 15418 lt_use_gnu_ld_interface=yes 15419 ;; 15420 esac 15421 ;; 15422 *) 15423 lt_use_gnu_ld_interface=yes 15424 ;; 15425 esac 15426 fi 15427 15428 if test yes = "$lt_use_gnu_ld_interface"; then 15429 # If archive_cmds runs LD, not CC, wlarc should be empty 15430 wlarc='$wl' 15431 15432 # Set some defaults for GNU ld with shared library support. These 15433 # are reset later if shared libraries are not supported. Putting them 15434 # here allows them to be overridden if necessary. 15435 runpath_var=LD_RUN_PATH 15436 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15437 export_dynamic_flag_spec='$wl--export-dynamic' 15438 # ancient GNU ld didn't support --whole-archive et. al. 15439 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15440 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15441 else 15442 whole_archive_flag_spec= 15443 fi 15444 supports_anon_versioning=no 15445 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15446 *GNU\ gold*) supports_anon_versioning=yes ;; 15447 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15448 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15449 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15450 *\ 2.11.*) ;; # other 2.11 versions 15451 *) supports_anon_versioning=yes ;; 15452 esac 15453 15454 # See if GNU ld supports shared libraries. 15455 case $host_os in 15456 aix[3-9]*) 15457 # On AIX/PPC, the GNU linker is very broken 15458 if test ia64 != "$host_cpu"; then 15459 ld_shlibs=no 15460 cat <<_LT_EOF 1>&2 15461 15462 *** Warning: the GNU linker, at least up to release 2.19, is reported 15463 *** to be unable to reliably create shared libraries on AIX. 15464 *** Therefore, libtool is disabling shared libraries support. If you 15465 *** really care for shared libraries, you may want to install binutils 15466 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15467 *** You will then need to restart the configuration process. 15468 15469 _LT_EOF 15470 fi 15471 ;; 15472 15473 amigaos*) 15474 case $host_cpu in 15475 powerpc) 15476 # see comment about AmigaOS4 .so support 15477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15478 archive_expsym_cmds='' 15479 ;; 15480 m68k) 15481 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15482 hardcode_libdir_flag_spec='-L$libdir' 15483 hardcode_minus_L=yes 15484 ;; 15485 esac 15486 ;; 15487 15488 beos*) 15489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15490 allow_undefined_flag=unsupported 15491 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 15492 # support --undefined. This deserves some investigation. FIXME 15493 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15494 else 15495 ld_shlibs=no 15496 fi 15497 ;; 15498 15499 cygwin* | mingw* | pw32* | cegcc*) 15500 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15501 # as there is no search path for DLLs. 15502 hardcode_libdir_flag_spec='-L$libdir' 15503 export_dynamic_flag_spec='$wl--export-all-symbols' 15504 allow_undefined_flag=unsupported 15505 always_export_symbols=no 15506 enable_shared_with_static_runtimes=yes 15507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15508 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15509 15510 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15512 # If the export-symbols file already is a .def file, use it as 15513 # is; otherwise, prepend EXPORTS... 15514 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15515 cp $export_symbols $output_objdir/$soname.def; 15516 else 15517 echo EXPORTS > $output_objdir/$soname.def; 15518 cat $export_symbols >> $output_objdir/$soname.def; 15519 fi~ 15520 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15521 else 15522 ld_shlibs=no 15523 fi 15524 ;; 15525 15526 haiku*) 15527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15528 link_all_deplibs=yes 15529 ;; 15530 15531 os2*) 15532 hardcode_libdir_flag_spec='-L$libdir' 15533 hardcode_minus_L=yes 15534 allow_undefined_flag=unsupported 15535 shrext_cmds=.dll 15536 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15537 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15538 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15539 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15540 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15541 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15542 emximp -o $lib $output_objdir/$libname.def' 15543 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15544 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15545 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15546 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15547 prefix_cmds="$SED"~ 15548 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15549 prefix_cmds="$prefix_cmds -e 1d"; 15550 fi~ 15551 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15552 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15553 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15554 emximp -o $lib $output_objdir/$libname.def' 15555 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15556 enable_shared_with_static_runtimes=yes 15557 ;; 15558 15559 interix[3-9]*) 15560 hardcode_direct=no 15561 hardcode_shlibpath_var=no 15562 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15563 export_dynamic_flag_spec='$wl-E' 15564 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15565 # Instead, shared libraries are loaded at an image base (0x10000000 by 15566 # default) and relocated if they conflict, which is a slow very memory 15567 # consuming and fragmenting process. To avoid this, we pick a random, 15568 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15569 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15571 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15572 ;; 15573 15574 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15575 tmp_diet=no 15576 if test linux-dietlibc = "$host_os"; then 15577 case $cc_basename in 15578 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15579 esac 15580 fi 15581 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15582 && test no = "$tmp_diet" 15583 then 15584 tmp_addflag=' $pic_flag' 15585 tmp_sharedflag='-shared' 15586 case $cc_basename,$host_cpu in 15587 pgcc*) # Portland Group C compiler 15588 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15589 tmp_addflag=' $pic_flag' 15590 ;; 15591 pgf77* | pgf90* | pgf95* | pgfortran*) 15592 # Portland Group f77 and f90 compilers 15593 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15594 tmp_addflag=' $pic_flag -Mnomain' ;; 15595 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15596 tmp_addflag=' -i_dynamic' ;; 15597 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15598 tmp_addflag=' -i_dynamic -nofor_main' ;; 15599 ifc* | ifort*) # Intel Fortran compiler 15600 tmp_addflag=' -nofor_main' ;; 15601 lf95*) # Lahey Fortran 8.1 15602 whole_archive_flag_spec= 15603 tmp_sharedflag='--shared' ;; 15604 nagfor*) # NAGFOR 5.3 15605 tmp_sharedflag='-Wl,-shared' ;; 15606 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15607 tmp_sharedflag='-qmkshrobj' 15608 tmp_addflag= ;; 15609 nvcc*) # Cuda Compiler Driver 2.2 15610 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15611 compiler_needs_object=yes 15612 ;; 15613 esac 15614 case `$CC -V 2>&1 | sed 5q` in 15615 *Sun\ C*) # Sun C 5.9 15616 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15617 compiler_needs_object=yes 15618 tmp_sharedflag='-G' ;; 15619 *Sun\ F*) # Sun Fortran 8.3 15620 tmp_sharedflag='-G' ;; 15621 esac 15622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15623 15624 if test yes = "$supports_anon_versioning"; then 15625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15627 echo "local: *; };" >> $output_objdir/$libname.ver~ 15628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15629 fi 15630 15631 case $cc_basename in 15632 tcc*) 15633 export_dynamic_flag_spec='-rdynamic' 15634 ;; 15635 xlf* | bgf* | bgxlf* | mpixlf*) 15636 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15637 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15639 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15640 if test yes = "$supports_anon_versioning"; then 15641 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15642 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15643 echo "local: *; };" >> $output_objdir/$libname.ver~ 15644 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15645 fi 15646 ;; 15647 esac 15648 else 15649 ld_shlibs=no 15650 fi 15651 ;; 15652 15653 netbsd* | netbsdelf*-gnu) 15654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15655 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15656 wlarc= 15657 else 15658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15660 fi 15661 ;; 15662 15663 solaris*) 15664 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15665 ld_shlibs=no 15666 cat <<_LT_EOF 1>&2 15667 15668 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 15669 *** create shared libraries on Solaris systems. Therefore, libtool 15670 *** is disabling shared libraries support. We urge you to upgrade GNU 15671 *** binutils to release 2.9.1 or newer. Another option is to modify 15672 *** your PATH or compiler configuration so that the native linker is 15673 *** used, and then restart. 15674 15675 _LT_EOF 15676 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15678 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15679 else 15680 ld_shlibs=no 15681 fi 15682 ;; 15683 15684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15685 case `$LD -v 2>&1` in 15686 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15687 ld_shlibs=no 15688 cat <<_LT_EOF 1>&2 15689 15690 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15691 *** reliably create shared libraries on SCO systems. Therefore, libtool 15692 *** is disabling shared libraries support. We urge you to upgrade GNU 15693 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15694 *** your PATH or compiler configuration so that the native linker is 15695 *** used, and then restart. 15696 15697 _LT_EOF 15698 ;; 15699 *) 15700 # For security reasons, it is highly recommended that you always 15701 # use absolute paths for naming shared libraries, and exclude the 15702 # DT_RUNPATH tag from executables and libraries. But doing so 15703 # requires that you compile everything twice, which is a pain. 15704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15705 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15708 else 15709 ld_shlibs=no 15710 fi 15711 ;; 15712 esac 15713 ;; 15714 15715 sunos4*) 15716 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15717 wlarc= 15718 hardcode_direct=yes 15719 hardcode_shlibpath_var=no 15720 ;; 15721 15722 *) 15723 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15726 else 15727 ld_shlibs=no 15728 fi 15729 ;; 15730 esac 15731 15732 if test no = "$ld_shlibs"; then 15733 runpath_var= 15734 hardcode_libdir_flag_spec= 15735 export_dynamic_flag_spec= 15736 whole_archive_flag_spec= 15737 fi 15738 else 15739 # PORTME fill in a description of your system's linker (not GNU ld) 15740 case $host_os in 15741 aix3*) 15742 allow_undefined_flag=unsupported 15743 always_export_symbols=yes 15744 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15745 # Note: this linker hardcodes the directories in LIBPATH if there 15746 # are no directories specified by -L. 15747 hardcode_minus_L=yes 15748 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15749 # Neither direct hardcoding nor static linking is supported with a 15750 # broken collect2. 15751 hardcode_direct=unsupported 15752 fi 15753 ;; 15754 15755 aix[4-9]*) 15756 if test ia64 = "$host_cpu"; then 15757 # On IA64, the linker does run time linking by default, so we don't 15758 # have to do anything special. 15759 aix_use_runtimelinking=no 15760 exp_sym_flag='-Bexport' 15761 no_entry_flag= 15762 else 15763 # If we're using GNU nm, then we don't want the "-C" option. 15764 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15765 # Without the "-l" option, or with the "-B" option, AIX nm treats 15766 # weak defined symbols like other global defined symbols, whereas 15767 # GNU nm marks them as "W". 15768 # While the 'weak' keyword is ignored in the Export File, we need 15769 # it in the Import File for the 'aix-soname' feature, so we have 15770 # to replace the "-B" option with "-P" for AIX nm. 15771 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15772 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15773 else 15774 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15775 fi 15776 aix_use_runtimelinking=no 15777 15778 # Test if we are trying to use run time linking or normal 15779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15780 # have runtime linking enabled, and use it for executables. 15781 # For shared libraries, we enable/disable runtime linking 15782 # depending on the kind of the shared library created - 15783 # when "with_aix_soname,aix_use_runtimelinking" is: 15784 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15785 # "aix,yes" lib.so shared, rtl:yes, for executables 15786 # lib.a static archive 15787 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15788 # lib.a(lib.so.V) shared, rtl:no, for executables 15789 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15790 # lib.a(lib.so.V) shared, rtl:no 15791 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15792 # lib.a static archive 15793 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15794 for ld_flag in $LDFLAGS; do 15795 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15796 aix_use_runtimelinking=yes 15797 break 15798 fi 15799 done 15800 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15801 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15802 # so we don't have lib.a shared libs to link our executables. 15803 # We have to force runtime linking in this case. 15804 aix_use_runtimelinking=yes 15805 LDFLAGS="$LDFLAGS -Wl,-brtl" 15806 fi 15807 ;; 15808 esac 15809 15810 exp_sym_flag='-bexport' 15811 no_entry_flag='-bnoentry' 15812 fi 15813 15814 # When large executables or shared objects are built, AIX ld can 15815 # have problems creating the table of contents. If linking a library 15816 # or program results in "error TOC overflow" add -mminimal-toc to 15817 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15818 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15819 15820 archive_cmds='' 15821 hardcode_direct=yes 15822 hardcode_direct_absolute=yes 15823 hardcode_libdir_separator=':' 15824 link_all_deplibs=yes 15825 file_list_spec='$wl-f,' 15826 case $with_aix_soname,$aix_use_runtimelinking in 15827 aix,*) ;; # traditional, no import file 15828 svr4,* | *,yes) # use import file 15829 # The Import File defines what to hardcode. 15830 hardcode_direct=no 15831 hardcode_direct_absolute=no 15832 ;; 15833 esac 15834 15835 if test yes = "$GCC"; then 15836 case $host_os in aix4.[012]|aix4.[012].*) 15837 # We only want to do this on AIX 4.2 and lower, the check 15838 # below for broken collect2 doesn't work under 4.3+ 15839 collect2name=`$CC -print-prog-name=collect2` 15840 if test -f "$collect2name" && 15841 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15842 then 15843 # We have reworked collect2 15844 : 15845 else 15846 # We have old collect2 15847 hardcode_direct=unsupported 15848 # It fails to find uninstalled libraries when the uninstalled 15849 # path is not listed in the libpath. Setting hardcode_minus_L 15850 # to unsupported forces relinking 15851 hardcode_minus_L=yes 15852 hardcode_libdir_flag_spec='-L$libdir' 15853 hardcode_libdir_separator= 15854 fi 15855 ;; 15856 esac 15857 shared_flag='-shared' 15858 if test yes = "$aix_use_runtimelinking"; then 15859 shared_flag="$shared_flag "'$wl-G' 15860 fi 15861 # Need to ensure runtime linking is disabled for the traditional 15862 # shared library, or the linker may eventually find shared libraries 15863 # /with/ Import File - we do not want to mix them. 15864 shared_flag_aix='-shared' 15865 shared_flag_svr4='-shared $wl-G' 15866 else 15867 # not using gcc 15868 if test ia64 = "$host_cpu"; then 15869 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15870 # chokes on -Wl,-G. The following line is correct: 15871 shared_flag='-G' 15872 else 15873 if test yes = "$aix_use_runtimelinking"; then 15874 shared_flag='$wl-G' 15875 else 15876 shared_flag='$wl-bM:SRE' 15877 fi 15878 shared_flag_aix='$wl-bM:SRE' 15879 shared_flag_svr4='$wl-G' 15880 fi 15881 fi 15882 15883 export_dynamic_flag_spec='$wl-bexpall' 15884 # It seems that -bexpall does not export symbols beginning with 15885 # underscore (_), so it is better to generate a list of symbols to export. 15886 always_export_symbols=yes 15887 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15888 # Warning - without using the other runtime loading flags (-brtl), 15889 # -berok will link without error, but may produce a broken library. 15890 allow_undefined_flag='-berok' 15891 # Determine the default libpath from the value encoded in an 15892 # empty executable. 15893 if test set = "${lt_cv_aix_libpath+set}"; then 15894 aix_libpath=$lt_cv_aix_libpath 15895 else 15896 if ${lt_cv_aix_libpath_+:} false; then : 15897 $as_echo_n "(cached) " >&6 15898 else 15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15900 /* end confdefs.h. */ 15901 15902 int 15903 main () 15904 { 15905 15906 ; 15907 return 0; 15908 } 15909 _ACEOF 15910 if ac_fn_c_try_link "$LINENO"; then : 15911 15912 lt_aix_libpath_sed=' 15913 /Import File Strings/,/^$/ { 15914 /^0/ { 15915 s/^0 *\([^ ]*\) *$/\1/ 15916 p 15917 } 15918 }' 15919 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15920 # Check for a 64-bit object if we didn't find anything. 15921 if test -z "$lt_cv_aix_libpath_"; then 15922 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15923 fi 15924 fi 15925 rm -f core conftest.err conftest.$ac_objext \ 15926 conftest$ac_exeext conftest.$ac_ext 15927 if test -z "$lt_cv_aix_libpath_"; then 15928 lt_cv_aix_libpath_=/usr/lib:/lib 15929 fi 15930 15931 fi 15932 15933 aix_libpath=$lt_cv_aix_libpath_ 15934 fi 15935 15936 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15937 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 15938 else 15939 if test ia64 = "$host_cpu"; then 15940 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15941 allow_undefined_flag="-z nodefs" 15942 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 15943 else 15944 # Determine the default libpath from the value encoded in an 15945 # empty executable. 15946 if test set = "${lt_cv_aix_libpath+set}"; then 15947 aix_libpath=$lt_cv_aix_libpath 15948 else 15949 if ${lt_cv_aix_libpath_+:} false; then : 15950 $as_echo_n "(cached) " >&6 15951 else 15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15953 /* end confdefs.h. */ 15954 15955 int 15956 main () 15957 { 15958 15959 ; 15960 return 0; 15961 } 15962 _ACEOF 15963 if ac_fn_c_try_link "$LINENO"; then : 15964 15965 lt_aix_libpath_sed=' 15966 /Import File Strings/,/^$/ { 15967 /^0/ { 15968 s/^0 *\([^ ]*\) *$/\1/ 15969 p 15970 } 15971 }' 15972 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15973 # Check for a 64-bit object if we didn't find anything. 15974 if test -z "$lt_cv_aix_libpath_"; then 15975 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15976 fi 15977 fi 15978 rm -f core conftest.err conftest.$ac_objext \ 15979 conftest$ac_exeext conftest.$ac_ext 15980 if test -z "$lt_cv_aix_libpath_"; then 15981 lt_cv_aix_libpath_=/usr/lib:/lib 15982 fi 15983 15984 fi 15985 15986 aix_libpath=$lt_cv_aix_libpath_ 15987 fi 15988 15989 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15990 # Warning - without using the other run time loading flags, 15991 # -berok will link without error, but may produce a broken library. 15992 no_undefined_flag=' $wl-bernotok' 15993 allow_undefined_flag=' $wl-berok' 15994 if test yes = "$with_gnu_ld"; then 15995 # We only use this code for GNU lds that support --whole-archive. 15996 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15997 else 15998 # Exported symbols can be pulled into shared objects from archives 15999 whole_archive_flag_spec='$convenience' 16000 fi 16001 archive_cmds_need_lc=yes 16002 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16003 # -brtl affects multiple linker settings, -berok does not and is overridden later 16004 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16005 if test svr4 != "$with_aix_soname"; then 16006 # This is similar to how AIX traditionally builds its shared libraries. 16007 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 16008 fi 16009 if test aix != "$with_aix_soname"; then 16010 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 16011 else 16012 # used by -dlpreopen to get the symbols 16013 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16014 fi 16015 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16016 fi 16017 fi 16018 ;; 16019 16020 amigaos*) 16021 case $host_cpu in 16022 powerpc) 16023 # see comment about AmigaOS4 .so support 16024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16025 archive_expsym_cmds='' 16026 ;; 16027 m68k) 16028 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 16029 hardcode_libdir_flag_spec='-L$libdir' 16030 hardcode_minus_L=yes 16031 ;; 16032 esac 16033 ;; 16034 16035 bsdi[45]*) 16036 export_dynamic_flag_spec=-rdynamic 16037 ;; 16038 16039 cygwin* | mingw* | pw32* | cegcc*) 16040 # When not using gcc, we currently assume that we are using 16041 # Microsoft Visual C++. 16042 # hardcode_libdir_flag_spec is actually meaningless, as there is 16043 # no search path for DLLs. 16044 case $cc_basename in 16045 cl*) 16046 # Native MSVC 16047 hardcode_libdir_flag_spec=' ' 16048 allow_undefined_flag=unsupported 16049 always_export_symbols=yes 16050 file_list_spec='@' 16051 # Tell ltmain to make .lib files, not .a files. 16052 libext=lib 16053 # Tell ltmain to make .dll files, not .so files. 16054 shrext_cmds=.dll 16055 # FIXME: Setting linknames here is a bad hack. 16056 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16057 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16058 cp "$export_symbols" "$output_objdir/$soname.def"; 16059 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16060 else 16061 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16062 fi~ 16063 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16064 linknames=' 16065 # The linker will not automatically build a static lib if we build a DLL. 16066 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16067 enable_shared_with_static_runtimes=yes 16068 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16070 # Don't use ranlib 16071 old_postinstall_cmds='chmod 644 $oldlib' 16072 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16073 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16074 case $lt_outputfile in 16075 *.exe|*.EXE) ;; 16076 *) 16077 lt_outputfile=$lt_outputfile.exe 16078 lt_tool_outputfile=$lt_tool_outputfile.exe 16079 ;; 16080 esac~ 16081 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16082 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16083 $RM "$lt_outputfile.manifest"; 16084 fi' 16085 ;; 16086 *) 16087 # Assume MSVC wrapper 16088 hardcode_libdir_flag_spec=' ' 16089 allow_undefined_flag=unsupported 16090 # Tell ltmain to make .lib files, not .a files. 16091 libext=lib 16092 # Tell ltmain to make .dll files, not .so files. 16093 shrext_cmds=.dll 16094 # FIXME: Setting linknames here is a bad hack. 16095 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16096 # The linker will automatically build a .lib file if we build a DLL. 16097 old_archive_from_new_cmds='true' 16098 # FIXME: Should let the user specify the lib program. 16099 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16100 enable_shared_with_static_runtimes=yes 16101 ;; 16102 esac 16103 ;; 16104 16105 darwin* | rhapsody*) 16106 16107 16108 archive_cmds_need_lc=no 16109 hardcode_direct=no 16110 hardcode_automatic=yes 16111 hardcode_shlibpath_var=unsupported 16112 if test yes = "$lt_cv_ld_force_load"; then 16113 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 16114 16115 else 16116 whole_archive_flag_spec='' 16117 fi 16118 link_all_deplibs=yes 16119 allow_undefined_flag=$_lt_dar_allow_undefined 16120 case $cc_basename in 16121 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16122 *) _lt_dar_can_shared=$GCC ;; 16123 esac 16124 if test yes = "$_lt_dar_can_shared"; then 16125 output_verbose_link_cmd=func_echo_all 16126 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16127 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16128 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 16129 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 16130 16131 else 16132 ld_shlibs=no 16133 fi 16134 16135 ;; 16136 16137 dgux*) 16138 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16139 hardcode_libdir_flag_spec='-L$libdir' 16140 hardcode_shlibpath_var=no 16141 ;; 16142 16143 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16144 # support. Future versions do this automatically, but an explicit c++rt0.o 16145 # does not break anything, and helps significantly (at the cost of a little 16146 # extra space). 16147 freebsd2.2*) 16148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16149 hardcode_libdir_flag_spec='-R$libdir' 16150 hardcode_direct=yes 16151 hardcode_shlibpath_var=no 16152 ;; 16153 16154 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16155 freebsd2.*) 16156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16157 hardcode_direct=yes 16158 hardcode_minus_L=yes 16159 hardcode_shlibpath_var=no 16160 ;; 16161 16162 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16163 freebsd* | dragonfly*) 16164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16165 hardcode_libdir_flag_spec='-R$libdir' 16166 hardcode_direct=yes 16167 hardcode_shlibpath_var=no 16168 ;; 16169 16170 hpux9*) 16171 if test yes = "$GCC"; then 16172 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16173 else 16174 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16175 fi 16176 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16177 hardcode_libdir_separator=: 16178 hardcode_direct=yes 16179 16180 # hardcode_minus_L: Not really in the search PATH, 16181 # but as the default location of the library. 16182 hardcode_minus_L=yes 16183 export_dynamic_flag_spec='$wl-E' 16184 ;; 16185 16186 hpux10*) 16187 if test yes,no = "$GCC,$with_gnu_ld"; then 16188 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16189 else 16190 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16191 fi 16192 if test no = "$with_gnu_ld"; then 16193 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16194 hardcode_libdir_separator=: 16195 hardcode_direct=yes 16196 hardcode_direct_absolute=yes 16197 export_dynamic_flag_spec='$wl-E' 16198 # hardcode_minus_L: Not really in the search PATH, 16199 # but as the default location of the library. 16200 hardcode_minus_L=yes 16201 fi 16202 ;; 16203 16204 hpux11*) 16205 if test yes,no = "$GCC,$with_gnu_ld"; then 16206 case $host_cpu in 16207 hppa*64*) 16208 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16209 ;; 16210 ia64*) 16211 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16212 ;; 16213 *) 16214 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16215 ;; 16216 esac 16217 else 16218 case $host_cpu in 16219 hppa*64*) 16220 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16221 ;; 16222 ia64*) 16223 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16224 ;; 16225 *) 16226 16227 # Older versions of the 11.00 compiler do not understand -b yet 16228 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16230 $as_echo_n "checking if $CC understands -b... " >&6; } 16231 if ${lt_cv_prog_compiler__b+:} false; then : 16232 $as_echo_n "(cached) " >&6 16233 else 16234 lt_cv_prog_compiler__b=no 16235 save_LDFLAGS=$LDFLAGS 16236 LDFLAGS="$LDFLAGS -b" 16237 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16238 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16239 # The linker can only warn and ignore the option if not recognized 16240 # So say no if there are warnings 16241 if test -s conftest.err; then 16242 # Append any errors to the config.log. 16243 cat conftest.err 1>&5 16244 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16245 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16246 if diff conftest.exp conftest.er2 >/dev/null; then 16247 lt_cv_prog_compiler__b=yes 16248 fi 16249 else 16250 lt_cv_prog_compiler__b=yes 16251 fi 16252 fi 16253 $RM -r conftest* 16254 LDFLAGS=$save_LDFLAGS 16255 16256 fi 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16258 $as_echo "$lt_cv_prog_compiler__b" >&6; } 16259 16260 if test yes = "$lt_cv_prog_compiler__b"; then 16261 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16262 else 16263 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16264 fi 16265 16266 ;; 16267 esac 16268 fi 16269 if test no = "$with_gnu_ld"; then 16270 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16271 hardcode_libdir_separator=: 16272 16273 case $host_cpu in 16274 hppa*64*|ia64*) 16275 hardcode_direct=no 16276 hardcode_shlibpath_var=no 16277 ;; 16278 *) 16279 hardcode_direct=yes 16280 hardcode_direct_absolute=yes 16281 export_dynamic_flag_spec='$wl-E' 16282 16283 # hardcode_minus_L: Not really in the search PATH, 16284 # but as the default location of the library. 16285 hardcode_minus_L=yes 16286 ;; 16287 esac 16288 fi 16289 ;; 16290 16291 irix5* | irix6* | nonstopux*) 16292 if test yes = "$GCC"; then 16293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16294 # Try to use the -exported_symbol ld option, if it does not 16295 # work, assume that -exports_file does not work either and 16296 # implicitly export all symbols. 16297 # This should be the same for all languages, so no per-tag cache variable. 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16299 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16300 if ${lt_cv_irix_exported_symbol+:} false; then : 16301 $as_echo_n "(cached) " >&6 16302 else 16303 save_LDFLAGS=$LDFLAGS 16304 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306 /* end confdefs.h. */ 16307 int foo (void) { return 0; } 16308 _ACEOF 16309 if ac_fn_c_try_link "$LINENO"; then : 16310 lt_cv_irix_exported_symbol=yes 16311 else 16312 lt_cv_irix_exported_symbol=no 16313 fi 16314 rm -f core conftest.err conftest.$ac_objext \ 16315 conftest$ac_exeext conftest.$ac_ext 16316 LDFLAGS=$save_LDFLAGS 16317 fi 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16319 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 16320 if test yes = "$lt_cv_irix_exported_symbol"; then 16321 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 16322 fi 16323 link_all_deplibs=no 16324 else 16325 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16326 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 16327 fi 16328 archive_cmds_need_lc='no' 16329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16330 hardcode_libdir_separator=: 16331 inherit_rpath=yes 16332 link_all_deplibs=yes 16333 ;; 16334 16335 linux*) 16336 case $cc_basename in 16337 tcc*) 16338 # Fabrice Bellard et al's Tiny C Compiler 16339 ld_shlibs=yes 16340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16341 ;; 16342 esac 16343 ;; 16344 16345 netbsd* | netbsdelf*-gnu) 16346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16348 else 16349 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16350 fi 16351 hardcode_libdir_flag_spec='-R$libdir' 16352 hardcode_direct=yes 16353 hardcode_shlibpath_var=no 16354 ;; 16355 16356 newsos6) 16357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16358 hardcode_direct=yes 16359 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16360 hardcode_libdir_separator=: 16361 hardcode_shlibpath_var=no 16362 ;; 16363 16364 *nto* | *qnx*) 16365 ;; 16366 16367 openbsd* | bitrig*) 16368 if test -f /usr/libexec/ld.so; then 16369 hardcode_direct=yes 16370 hardcode_shlibpath_var=no 16371 hardcode_direct_absolute=yes 16372 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16374 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16375 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16376 export_dynamic_flag_spec='$wl-E' 16377 else 16378 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16379 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16380 fi 16381 else 16382 ld_shlibs=no 16383 fi 16384 ;; 16385 16386 os2*) 16387 hardcode_libdir_flag_spec='-L$libdir' 16388 hardcode_minus_L=yes 16389 allow_undefined_flag=unsupported 16390 shrext_cmds=.dll 16391 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16392 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16393 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16394 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16395 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16396 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16397 emximp -o $lib $output_objdir/$libname.def' 16398 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16399 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16400 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16401 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16402 prefix_cmds="$SED"~ 16403 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16404 prefix_cmds="$prefix_cmds -e 1d"; 16405 fi~ 16406 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16407 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16408 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16409 emximp -o $lib $output_objdir/$libname.def' 16410 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16411 enable_shared_with_static_runtimes=yes 16412 ;; 16413 16414 osf3*) 16415 if test yes = "$GCC"; then 16416 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16417 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16418 else 16419 allow_undefined_flag=' -expect_unresolved \*' 16420 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16421 fi 16422 archive_cmds_need_lc='no' 16423 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16424 hardcode_libdir_separator=: 16425 ;; 16426 16427 osf4* | osf5*) # as osf3* with the addition of -msym flag 16428 if test yes = "$GCC"; then 16429 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16430 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16431 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16432 else 16433 allow_undefined_flag=' -expect_unresolved \*' 16434 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16435 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 16436 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 16437 16438 # Both c and cxx compiler support -rpath directly 16439 hardcode_libdir_flag_spec='-rpath $libdir' 16440 fi 16441 archive_cmds_need_lc='no' 16442 hardcode_libdir_separator=: 16443 ;; 16444 16445 solaris*) 16446 no_undefined_flag=' -z defs' 16447 if test yes = "$GCC"; then 16448 wlarc='$wl' 16449 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16450 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16451 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16452 else 16453 case `$CC -V 2>&1` in 16454 *"Compilers 5.0"*) 16455 wlarc='' 16456 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16457 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16458 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16459 ;; 16460 *) 16461 wlarc='$wl' 16462 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16463 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16464 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16465 ;; 16466 esac 16467 fi 16468 hardcode_libdir_flag_spec='-R$libdir' 16469 hardcode_shlibpath_var=no 16470 case $host_os in 16471 solaris2.[0-5] | solaris2.[0-5].*) ;; 16472 *) 16473 # The compiler driver will combine and reorder linker options, 16474 # but understands '-z linker_flag'. GCC discards it without '$wl', 16475 # but is careful enough not to reorder. 16476 # Supported since Solaris 2.6 (maybe 2.5.1?) 16477 if test yes = "$GCC"; then 16478 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16479 else 16480 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16481 fi 16482 ;; 16483 esac 16484 link_all_deplibs=yes 16485 ;; 16486 16487 sunos4*) 16488 if test sequent = "$host_vendor"; then 16489 # Use $CC to link under sequent, because it throws in some extra .o 16490 # files that make .init and .fini sections work. 16491 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16492 else 16493 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16494 fi 16495 hardcode_libdir_flag_spec='-L$libdir' 16496 hardcode_direct=yes 16497 hardcode_minus_L=yes 16498 hardcode_shlibpath_var=no 16499 ;; 16500 16501 sysv4) 16502 case $host_vendor in 16503 sni) 16504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16505 hardcode_direct=yes # is this really true??? 16506 ;; 16507 siemens) 16508 ## LD is ld it makes a PLAMLIB 16509 ## CC just makes a GrossModule. 16510 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16511 reload_cmds='$CC -r -o $output$reload_objs' 16512 hardcode_direct=no 16513 ;; 16514 motorola) 16515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16516 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16517 ;; 16518 esac 16519 runpath_var='LD_RUN_PATH' 16520 hardcode_shlibpath_var=no 16521 ;; 16522 16523 sysv4.3*) 16524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16525 hardcode_shlibpath_var=no 16526 export_dynamic_flag_spec='-Bexport' 16527 ;; 16528 16529 sysv4*MP*) 16530 if test -d /usr/nec; then 16531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16532 hardcode_shlibpath_var=no 16533 runpath_var=LD_RUN_PATH 16534 hardcode_runpath_var=yes 16535 ld_shlibs=yes 16536 fi 16537 ;; 16538 16539 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16540 no_undefined_flag='$wl-z,text' 16541 archive_cmds_need_lc=no 16542 hardcode_shlibpath_var=no 16543 runpath_var='LD_RUN_PATH' 16544 16545 if test yes = "$GCC"; then 16546 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16547 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16548 else 16549 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16550 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16551 fi 16552 ;; 16553 16554 sysv5* | sco3.2v5* | sco5v6*) 16555 # Note: We CANNOT use -z defs as we might desire, because we do not 16556 # link with -lc, and that would cause any symbols used from libc to 16557 # always be unresolved, which means just about no library would 16558 # ever link correctly. If we're not using GNU ld we use -z text 16559 # though, which does catch some bad symbols but isn't as heavy-handed 16560 # as -z defs. 16561 no_undefined_flag='$wl-z,text' 16562 allow_undefined_flag='$wl-z,nodefs' 16563 archive_cmds_need_lc=no 16564 hardcode_shlibpath_var=no 16565 hardcode_libdir_flag_spec='$wl-R,$libdir' 16566 hardcode_libdir_separator=':' 16567 link_all_deplibs=yes 16568 export_dynamic_flag_spec='$wl-Bexport' 16569 runpath_var='LD_RUN_PATH' 16570 16571 if test yes = "$GCC"; then 16572 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16573 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16574 else 16575 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16576 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16577 fi 16578 ;; 16579 16580 uts4*) 16581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16582 hardcode_libdir_flag_spec='-L$libdir' 16583 hardcode_shlibpath_var=no 16584 ;; 16585 16586 *) 16587 ld_shlibs=no 16588 ;; 16589 esac 16590 16591 if test sni = "$host_vendor"; then 16592 case $host in 16593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16594 export_dynamic_flag_spec='$wl-Blargedynsym' 16595 ;; 16596 esac 16597 fi 16598 fi 16599 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16601 $as_echo "$ld_shlibs" >&6; } 16602 test no = "$ld_shlibs" && can_build_shared=no 16603 16604 with_gnu_ld=$with_gnu_ld 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 # 16621 # Do we need to explicitly link libc? 16622 # 16623 case "x$archive_cmds_need_lc" in 16624 x|xyes) 16625 # Assume -lc should be added 16626 archive_cmds_need_lc=yes 16627 16628 if test yes,yes = "$GCC,$enable_shared"; then 16629 case $archive_cmds in 16630 *'~'*) 16631 # FIXME: we may have to deal with multi-command sequences. 16632 ;; 16633 '$CC '*) 16634 # Test whether the compiler implicitly links with -lc since on some 16635 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16636 # to ld, don't add -lc before -lgcc. 16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16638 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16639 if ${lt_cv_archive_cmds_need_lc+:} false; then : 16640 $as_echo_n "(cached) " >&6 16641 else 16642 $RM conftest* 16643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16644 16645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16646 (eval $ac_compile) 2>&5 16647 ac_status=$? 16648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16649 test $ac_status = 0; } 2>conftest.err; then 16650 soname=conftest 16651 lib=conftest 16652 libobjs=conftest.$ac_objext 16653 deplibs= 16654 wl=$lt_prog_compiler_wl 16655 pic_flag=$lt_prog_compiler_pic 16656 compiler_flags=-v 16657 linker_flags=-v 16658 verstring= 16659 output_objdir=. 16660 libname=conftest 16661 lt_save_allow_undefined_flag=$allow_undefined_flag 16662 allow_undefined_flag= 16663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16664 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16665 ac_status=$? 16666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16667 test $ac_status = 0; } 16668 then 16669 lt_cv_archive_cmds_need_lc=no 16670 else 16671 lt_cv_archive_cmds_need_lc=yes 16672 fi 16673 allow_undefined_flag=$lt_save_allow_undefined_flag 16674 else 16675 cat conftest.err 1>&5 16676 fi 16677 $RM conftest* 16678 16679 fi 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16681 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16682 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16683 ;; 16684 esac 16685 fi 16686 ;; 16687 esac 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16841 $as_echo_n "checking dynamic linker characteristics... " >&6; } 16842 16843 if test yes = "$GCC"; then 16844 case $host_os in 16845 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16846 *) lt_awk_arg='/^libraries:/' ;; 16847 esac 16848 case $host_os in 16849 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16850 *) lt_sed_strip_eq='s|=/|/|g' ;; 16851 esac 16852 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16853 case $lt_search_path_spec in 16854 *\;*) 16855 # if the path contains ";" then we assume it to be the separator 16856 # otherwise default to the standard path separator (i.e. ":") - it is 16857 # assumed that no part of a normal pathname contains ";" but that should 16858 # okay in the real world where ";" in dirpaths is itself problematic. 16859 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16860 ;; 16861 *) 16862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16863 ;; 16864 esac 16865 # Ok, now we have the path, separated by spaces, we can step through it 16866 # and add multilib dir if necessary... 16867 lt_tmp_lt_search_path_spec= 16868 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16869 # ...but if some path component already ends with the multilib dir we assume 16870 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16871 case "$lt_multi_os_dir; $lt_search_path_spec " in 16872 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16873 lt_multi_os_dir= 16874 ;; 16875 esac 16876 for lt_sys_path in $lt_search_path_spec; do 16877 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16878 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16879 elif test -n "$lt_multi_os_dir"; then 16880 test -d "$lt_sys_path" && \ 16881 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16882 fi 16883 done 16884 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16885 BEGIN {RS = " "; FS = "/|\n";} { 16886 lt_foo = ""; 16887 lt_count = 0; 16888 for (lt_i = NF; lt_i > 0; lt_i--) { 16889 if ($lt_i != "" && $lt_i != ".") { 16890 if ($lt_i == "..") { 16891 lt_count++; 16892 } else { 16893 if (lt_count == 0) { 16894 lt_foo = "/" $lt_i lt_foo; 16895 } else { 16896 lt_count--; 16897 } 16898 } 16899 } 16900 } 16901 if (lt_foo != "") { lt_freq[lt_foo]++; } 16902 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16903 }'` 16904 # AWK program above erroneously prepends '/' to C:/dos/paths 16905 # for these hosts. 16906 case $host_os in 16907 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16908 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16909 esac 16910 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16911 else 16912 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16913 fi 16914 library_names_spec= 16915 libname_spec='lib$name' 16916 soname_spec= 16917 shrext_cmds=.so 16918 postinstall_cmds= 16919 postuninstall_cmds= 16920 finish_cmds= 16921 finish_eval= 16922 shlibpath_var= 16923 shlibpath_overrides_runpath=unknown 16924 version_type=none 16925 dynamic_linker="$host_os ld.so" 16926 sys_lib_dlsearch_path_spec="/lib /usr/lib" 16927 need_lib_prefix=unknown 16928 hardcode_into_libs=no 16929 16930 # when you set need_version to no, make sure it does not cause -set_version 16931 # flags to be left without arguments 16932 need_version=unknown 16933 16934 16935 16936 case $host_os in 16937 aix3*) 16938 version_type=linux # correct to gnu/linux during the next big refactor 16939 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16940 shlibpath_var=LIBPATH 16941 16942 # AIX 3 has no versioning support, so we append a major version to the name. 16943 soname_spec='$libname$release$shared_ext$major' 16944 ;; 16945 16946 aix[4-9]*) 16947 version_type=linux # correct to gnu/linux during the next big refactor 16948 need_lib_prefix=no 16949 need_version=no 16950 hardcode_into_libs=yes 16951 if test ia64 = "$host_cpu"; then 16952 # AIX 5 supports IA64 16953 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16954 shlibpath_var=LD_LIBRARY_PATH 16955 else 16956 # With GCC up to 2.95.x, collect2 would create an import file 16957 # for dependence libraries. The import file would start with 16958 # the line '#! .'. This would cause the generated library to 16959 # depend on '.', always an invalid library. This was fixed in 16960 # development snapshots of GCC prior to 3.0. 16961 case $host_os in 16962 aix4 | aix4.[01] | aix4.[01].*) 16963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16964 echo ' yes ' 16965 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16966 : 16967 else 16968 can_build_shared=no 16969 fi 16970 ;; 16971 esac 16972 # Using Import Files as archive members, it is possible to support 16973 # filename-based versioning of shared library archives on AIX. While 16974 # this would work for both with and without runtime linking, it will 16975 # prevent static linking of such archives. So we do filename-based 16976 # shared library versioning with .so extension only, which is used 16977 # when both runtime linking and shared linking is enabled. 16978 # Unfortunately, runtime linking may impact performance, so we do 16979 # not want this to be the default eventually. Also, we use the 16980 # versioned .so libs for executables only if there is the -brtl 16981 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16982 # To allow for filename-based versioning support, we need to create 16983 # libNAME.so.V as an archive file, containing: 16984 # *) an Import File, referring to the versioned filename of the 16985 # archive as well as the shared archive member, telling the 16986 # bitwidth (32 or 64) of that shared object, and providing the 16987 # list of exported symbols of that shared object, eventually 16988 # decorated with the 'weak' keyword 16989 # *) the shared object with the F_LOADONLY flag set, to really avoid 16990 # it being seen by the linker. 16991 # At run time we better use the real file rather than another symlink, 16992 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16993 16994 case $with_aix_soname,$aix_use_runtimelinking in 16995 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16996 # soname into executable. Probably we can add versioning support to 16997 # collect2, so additional links can be useful in future. 16998 aix,yes) # traditional libtool 16999 dynamic_linker='AIX unversionable lib.so' 17000 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17001 # instead of lib<name>.a to let people know that these are not 17002 # typical AIX shared libraries. 17003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17004 ;; 17005 aix,no) # traditional AIX only 17006 dynamic_linker='AIX lib.a(lib.so.V)' 17007 # We preserve .a as extension for shared libraries through AIX4.2 17008 # and later when we are not doing run time linking. 17009 library_names_spec='$libname$release.a $libname.a' 17010 soname_spec='$libname$release$shared_ext$major' 17011 ;; 17012 svr4,*) # full svr4 only 17013 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17014 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17015 # We do not specify a path in Import Files, so LIBPATH fires. 17016 shlibpath_overrides_runpath=yes 17017 ;; 17018 *,yes) # both, prefer svr4 17019 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17020 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17021 # unpreferred sharedlib libNAME.a needs extra handling 17022 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 17023 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 17024 # We do not specify a path in Import Files, so LIBPATH fires. 17025 shlibpath_overrides_runpath=yes 17026 ;; 17027 *,no) # both, prefer aix 17028 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17029 library_names_spec='$libname$release.a $libname.a' 17030 soname_spec='$libname$release$shared_ext$major' 17031 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17032 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 17033 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 17034 ;; 17035 esac 17036 shlibpath_var=LIBPATH 17037 fi 17038 ;; 17039 17040 amigaos*) 17041 case $host_cpu in 17042 powerpc) 17043 # Since July 2007 AmigaOS4 officially supports .so libraries. 17044 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17046 ;; 17047 m68k) 17048 library_names_spec='$libname.ixlibrary $libname.a' 17049 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17050 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17051 ;; 17052 esac 17053 ;; 17054 17055 beos*) 17056 library_names_spec='$libname$shared_ext' 17057 dynamic_linker="$host_os ld.so" 17058 shlibpath_var=LIBRARY_PATH 17059 ;; 17060 17061 bsdi[45]*) 17062 version_type=linux # correct to gnu/linux during the next big refactor 17063 need_version=no 17064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17065 soname_spec='$libname$release$shared_ext$major' 17066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17067 shlibpath_var=LD_LIBRARY_PATH 17068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17070 # the default ld.so.conf also contains /usr/contrib/lib and 17071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17072 # libtool to hard-code these into programs 17073 ;; 17074 17075 cygwin* | mingw* | pw32* | cegcc*) 17076 version_type=windows 17077 shrext_cmds=.dll 17078 need_version=no 17079 need_lib_prefix=no 17080 17081 case $GCC,$cc_basename in 17082 yes,*) 17083 # gcc 17084 library_names_spec='$libname.dll.a' 17085 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17086 postinstall_cmds='base_file=`basename \$file`~ 17087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17088 dldir=$destdir/`dirname \$dlpath`~ 17089 test -d \$dldir || mkdir -p \$dldir~ 17090 $install_prog $dir/$dlname \$dldir/$dlname~ 17091 chmod a+x \$dldir/$dlname~ 17092 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17093 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17094 fi' 17095 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17096 dlpath=$dir/\$dldll~ 17097 $RM \$dlpath' 17098 shlibpath_overrides_runpath=yes 17099 17100 case $host_os in 17101 cygwin*) 17102 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17103 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17104 17105 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17106 ;; 17107 mingw* | cegcc*) 17108 # MinGW DLLs use traditional 'lib' prefix 17109 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17110 ;; 17111 pw32*) 17112 # pw32 DLLs use 'pw' prefix rather than 'lib' 17113 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17114 ;; 17115 esac 17116 dynamic_linker='Win32 ld.exe' 17117 ;; 17118 17119 *,cl*) 17120 # Native MSVC 17121 libname_spec='$name' 17122 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17123 library_names_spec='$libname.dll.lib' 17124 17125 case $build_os in 17126 mingw*) 17127 sys_lib_search_path_spec= 17128 lt_save_ifs=$IFS 17129 IFS=';' 17130 for lt_path in $LIB 17131 do 17132 IFS=$lt_save_ifs 17133 # Let DOS variable expansion print the short 8.3 style file name. 17134 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17135 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17136 done 17137 IFS=$lt_save_ifs 17138 # Convert to MSYS style. 17139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17140 ;; 17141 cygwin*) 17142 # Convert to unix form, then to dos form, then back to unix form 17143 # but this time dos style (no spaces!) so that the unix form looks 17144 # like /cygdrive/c/PROGRA~1:/cygdr... 17145 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17146 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17147 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17148 ;; 17149 *) 17150 sys_lib_search_path_spec=$LIB 17151 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17152 # It is most probably a Windows format PATH. 17153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17154 else 17155 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17156 fi 17157 # FIXME: find the short name or the path components, as spaces are 17158 # common. (e.g. "Program Files" -> "PROGRA~1") 17159 ;; 17160 esac 17161 17162 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17163 postinstall_cmds='base_file=`basename \$file`~ 17164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17165 dldir=$destdir/`dirname \$dlpath`~ 17166 test -d \$dldir || mkdir -p \$dldir~ 17167 $install_prog $dir/$dlname \$dldir/$dlname' 17168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17169 dlpath=$dir/\$dldll~ 17170 $RM \$dlpath' 17171 shlibpath_overrides_runpath=yes 17172 dynamic_linker='Win32 link.exe' 17173 ;; 17174 17175 *) 17176 # Assume MSVC wrapper 17177 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17178 dynamic_linker='Win32 ld.exe' 17179 ;; 17180 esac 17181 # FIXME: first we should search . and the directory the executable is in 17182 shlibpath_var=PATH 17183 ;; 17184 17185 darwin* | rhapsody*) 17186 dynamic_linker="$host_os dyld" 17187 version_type=darwin 17188 need_lib_prefix=no 17189 need_version=no 17190 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17191 soname_spec='$libname$release$major$shared_ext' 17192 shlibpath_overrides_runpath=yes 17193 shlibpath_var=DYLD_LIBRARY_PATH 17194 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17195 17196 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17198 ;; 17199 17200 dgux*) 17201 version_type=linux # correct to gnu/linux during the next big refactor 17202 need_lib_prefix=no 17203 need_version=no 17204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17205 soname_spec='$libname$release$shared_ext$major' 17206 shlibpath_var=LD_LIBRARY_PATH 17207 ;; 17208 17209 freebsd* | dragonfly*) 17210 # DragonFly does not have aout. When/if they implement a new 17211 # versioning mechanism, adjust this. 17212 if test -x /usr/bin/objformat; then 17213 objformat=`/usr/bin/objformat` 17214 else 17215 case $host_os in 17216 freebsd[23].*) objformat=aout ;; 17217 *) objformat=elf ;; 17218 esac 17219 fi 17220 version_type=freebsd-$objformat 17221 case $version_type in 17222 freebsd-elf*) 17223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17224 soname_spec='$libname$release$shared_ext$major' 17225 need_version=no 17226 need_lib_prefix=no 17227 ;; 17228 freebsd-*) 17229 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17230 need_version=yes 17231 ;; 17232 esac 17233 shlibpath_var=LD_LIBRARY_PATH 17234 case $host_os in 17235 freebsd2.*) 17236 shlibpath_overrides_runpath=yes 17237 ;; 17238 freebsd3.[01]* | freebsdelf3.[01]*) 17239 shlibpath_overrides_runpath=yes 17240 hardcode_into_libs=yes 17241 ;; 17242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17244 shlibpath_overrides_runpath=no 17245 hardcode_into_libs=yes 17246 ;; 17247 *) # from 4.6 on, and DragonFly 17248 shlibpath_overrides_runpath=yes 17249 hardcode_into_libs=yes 17250 ;; 17251 esac 17252 ;; 17253 17254 haiku*) 17255 version_type=linux # correct to gnu/linux during the next big refactor 17256 need_lib_prefix=no 17257 need_version=no 17258 dynamic_linker="$host_os runtime_loader" 17259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17260 soname_spec='$libname$release$shared_ext$major' 17261 shlibpath_var=LIBRARY_PATH 17262 shlibpath_overrides_runpath=no 17263 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17264 hardcode_into_libs=yes 17265 ;; 17266 17267 hpux9* | hpux10* | hpux11*) 17268 # Give a soname corresponding to the major version so that dld.sl refuses to 17269 # link against other versions. 17270 version_type=sunos 17271 need_lib_prefix=no 17272 need_version=no 17273 case $host_cpu in 17274 ia64*) 17275 shrext_cmds='.so' 17276 hardcode_into_libs=yes 17277 dynamic_linker="$host_os dld.so" 17278 shlibpath_var=LD_LIBRARY_PATH 17279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17281 soname_spec='$libname$release$shared_ext$major' 17282 if test 32 = "$HPUX_IA64_MODE"; then 17283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17284 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17285 else 17286 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17287 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17288 fi 17289 ;; 17290 hppa*64*) 17291 shrext_cmds='.sl' 17292 hardcode_into_libs=yes 17293 dynamic_linker="$host_os dld.sl" 17294 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17297 soname_spec='$libname$release$shared_ext$major' 17298 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17299 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17300 ;; 17301 *) 17302 shrext_cmds='.sl' 17303 dynamic_linker="$host_os dld.sl" 17304 shlibpath_var=SHLIB_PATH 17305 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17307 soname_spec='$libname$release$shared_ext$major' 17308 ;; 17309 esac 17310 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17311 postinstall_cmds='chmod 555 $lib' 17312 # or fails outright, so override atomically: 17313 install_override_mode=555 17314 ;; 17315 17316 interix[3-9]*) 17317 version_type=linux # correct to gnu/linux during the next big refactor 17318 need_lib_prefix=no 17319 need_version=no 17320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17321 soname_spec='$libname$release$shared_ext$major' 17322 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17323 shlibpath_var=LD_LIBRARY_PATH 17324 shlibpath_overrides_runpath=no 17325 hardcode_into_libs=yes 17326 ;; 17327 17328 irix5* | irix6* | nonstopux*) 17329 case $host_os in 17330 nonstopux*) version_type=nonstopux ;; 17331 *) 17332 if test yes = "$lt_cv_prog_gnu_ld"; then 17333 version_type=linux # correct to gnu/linux during the next big refactor 17334 else 17335 version_type=irix 17336 fi ;; 17337 esac 17338 need_lib_prefix=no 17339 need_version=no 17340 soname_spec='$libname$release$shared_ext$major' 17341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17342 case $host_os in 17343 irix5* | nonstopux*) 17344 libsuff= shlibsuff= 17345 ;; 17346 *) 17347 case $LD in # libtool.m4 will add one of these switches to LD 17348 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17349 libsuff= shlibsuff= libmagic=32-bit;; 17350 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17351 libsuff=32 shlibsuff=N32 libmagic=N32;; 17352 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17353 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17354 *) libsuff= shlibsuff= libmagic=never-match;; 17355 esac 17356 ;; 17357 esac 17358 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17359 shlibpath_overrides_runpath=no 17360 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17361 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17362 hardcode_into_libs=yes 17363 ;; 17364 17365 # No shared lib support for Linux oldld, aout, or coff. 17366 linux*oldld* | linux*aout* | linux*coff*) 17367 dynamic_linker=no 17368 ;; 17369 17370 linux*android*) 17371 version_type=none # Android doesn't support versioned libraries. 17372 need_lib_prefix=no 17373 need_version=no 17374 library_names_spec='$libname$release$shared_ext' 17375 soname_spec='$libname$release$shared_ext' 17376 finish_cmds= 17377 shlibpath_var=LD_LIBRARY_PATH 17378 shlibpath_overrides_runpath=yes 17379 17380 # This implies no fast_install, which is unacceptable. 17381 # Some rework will be needed to allow for fast_install 17382 # before this can be enabled. 17383 hardcode_into_libs=yes 17384 17385 dynamic_linker='Android linker' 17386 # Don't embed -rpath directories since the linker doesn't support them. 17387 hardcode_libdir_flag_spec='-L$libdir' 17388 ;; 17389 17390 # This must be glibc/ELF. 17391 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17392 version_type=linux # correct to gnu/linux during the next big refactor 17393 need_lib_prefix=no 17394 need_version=no 17395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17396 soname_spec='$libname$release$shared_ext$major' 17397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17398 shlibpath_var=LD_LIBRARY_PATH 17399 shlibpath_overrides_runpath=no 17400 17401 # Some binutils ld are patched to set DT_RUNPATH 17402 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17403 $as_echo_n "(cached) " >&6 17404 else 17405 lt_cv_shlibpath_overrides_runpath=no 17406 save_LDFLAGS=$LDFLAGS 17407 save_libdir=$libdir 17408 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17409 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411 /* end confdefs.h. */ 17412 17413 int 17414 main () 17415 { 17416 17417 ; 17418 return 0; 17419 } 17420 _ACEOF 17421 if ac_fn_c_try_link "$LINENO"; then : 17422 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17423 lt_cv_shlibpath_overrides_runpath=yes 17424 fi 17425 fi 17426 rm -f core conftest.err conftest.$ac_objext \ 17427 conftest$ac_exeext conftest.$ac_ext 17428 LDFLAGS=$save_LDFLAGS 17429 libdir=$save_libdir 17430 17431 fi 17432 17433 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17434 17435 # This implies no fast_install, which is unacceptable. 17436 # Some rework will be needed to allow for fast_install 17437 # before this can be enabled. 17438 hardcode_into_libs=yes 17439 17440 # Ideally, we could use ldconfig to report *all* directores which are 17441 # searched for libraries, however this is still not possible. Aside from not 17442 # being certain /sbin/ldconfig is available, command 17443 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17444 # even though it is searched at run-time. Try to do the best guess by 17445 # appending ld.so.conf contents (and includes) to the search path. 17446 if test -f /etc/ld.so.conf; then 17447 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 17448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17449 fi 17450 17451 # We used to test for /lib/ld.so.1 and disable shared libraries on 17452 # powerpc, because MkLinux only supported shared libraries with the 17453 # GNU dynamic linker. Since this was broken with cross compilers, 17454 # most powerpc-linux boxes support dynamic linking these days and 17455 # people can always --disable-shared, the test was removed, and we 17456 # assume the GNU/Linux dynamic linker is in use. 17457 dynamic_linker='GNU/Linux ld.so' 17458 ;; 17459 17460 netbsdelf*-gnu) 17461 version_type=linux 17462 need_lib_prefix=no 17463 need_version=no 17464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17465 soname_spec='${libname}${release}${shared_ext}$major' 17466 shlibpath_var=LD_LIBRARY_PATH 17467 shlibpath_overrides_runpath=no 17468 hardcode_into_libs=yes 17469 dynamic_linker='NetBSD ld.elf_so' 17470 ;; 17471 17472 netbsd*) 17473 version_type=sunos 17474 need_lib_prefix=no 17475 need_version=no 17476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17479 dynamic_linker='NetBSD (a.out) ld.so' 17480 else 17481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17482 soname_spec='$libname$release$shared_ext$major' 17483 dynamic_linker='NetBSD ld.elf_so' 17484 fi 17485 shlibpath_var=LD_LIBRARY_PATH 17486 shlibpath_overrides_runpath=yes 17487 hardcode_into_libs=yes 17488 ;; 17489 17490 newsos6) 17491 version_type=linux # correct to gnu/linux during the next big refactor 17492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17493 shlibpath_var=LD_LIBRARY_PATH 17494 shlibpath_overrides_runpath=yes 17495 ;; 17496 17497 *nto* | *qnx*) 17498 version_type=qnx 17499 need_lib_prefix=no 17500 need_version=no 17501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17502 soname_spec='$libname$release$shared_ext$major' 17503 shlibpath_var=LD_LIBRARY_PATH 17504 shlibpath_overrides_runpath=no 17505 hardcode_into_libs=yes 17506 dynamic_linker='ldqnx.so' 17507 ;; 17508 17509 openbsd* | bitrig*) 17510 version_type=sunos 17511 sys_lib_dlsearch_path_spec=/usr/lib 17512 need_lib_prefix=no 17513 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17514 need_version=no 17515 else 17516 need_version=yes 17517 fi 17518 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17520 shlibpath_var=LD_LIBRARY_PATH 17521 shlibpath_overrides_runpath=yes 17522 ;; 17523 17524 os2*) 17525 libname_spec='$name' 17526 version_type=windows 17527 shrext_cmds=.dll 17528 need_version=no 17529 need_lib_prefix=no 17530 # OS/2 can only load a DLL with a base name of 8 characters or less. 17531 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17532 v=$($ECHO $release$versuffix | tr -d .-); 17533 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17534 $ECHO $n$v`$shared_ext' 17535 library_names_spec='${libname}_dll.$libext' 17536 dynamic_linker='OS/2 ld.exe' 17537 shlibpath_var=BEGINLIBPATH 17538 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17540 postinstall_cmds='base_file=`basename \$file`~ 17541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17542 dldir=$destdir/`dirname \$dlpath`~ 17543 test -d \$dldir || mkdir -p \$dldir~ 17544 $install_prog $dir/$dlname \$dldir/$dlname~ 17545 chmod a+x \$dldir/$dlname~ 17546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17548 fi' 17549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17550 dlpath=$dir/\$dldll~ 17551 $RM \$dlpath' 17552 ;; 17553 17554 osf3* | osf4* | osf5*) 17555 version_type=osf 17556 need_lib_prefix=no 17557 need_version=no 17558 soname_spec='$libname$release$shared_ext$major' 17559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17560 shlibpath_var=LD_LIBRARY_PATH 17561 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17563 ;; 17564 17565 rdos*) 17566 dynamic_linker=no 17567 ;; 17568 17569 solaris*) 17570 version_type=linux # correct to gnu/linux during the next big refactor 17571 need_lib_prefix=no 17572 need_version=no 17573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17574 soname_spec='$libname$release$shared_ext$major' 17575 shlibpath_var=LD_LIBRARY_PATH 17576 shlibpath_overrides_runpath=yes 17577 hardcode_into_libs=yes 17578 # ldd complains unless libraries are executable 17579 postinstall_cmds='chmod +x $lib' 17580 ;; 17581 17582 sunos4*) 17583 version_type=sunos 17584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17586 shlibpath_var=LD_LIBRARY_PATH 17587 shlibpath_overrides_runpath=yes 17588 if test yes = "$with_gnu_ld"; then 17589 need_lib_prefix=no 17590 fi 17591 need_version=yes 17592 ;; 17593 17594 sysv4 | sysv4.3*) 17595 version_type=linux # correct to gnu/linux during the next big refactor 17596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17597 soname_spec='$libname$release$shared_ext$major' 17598 shlibpath_var=LD_LIBRARY_PATH 17599 case $host_vendor in 17600 sni) 17601 shlibpath_overrides_runpath=no 17602 need_lib_prefix=no 17603 runpath_var=LD_RUN_PATH 17604 ;; 17605 siemens) 17606 need_lib_prefix=no 17607 ;; 17608 motorola) 17609 need_lib_prefix=no 17610 need_version=no 17611 shlibpath_overrides_runpath=no 17612 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17613 ;; 17614 esac 17615 ;; 17616 17617 sysv4*MP*) 17618 if test -d /usr/nec; then 17619 version_type=linux # correct to gnu/linux during the next big refactor 17620 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17621 soname_spec='$libname$shared_ext.$major' 17622 shlibpath_var=LD_LIBRARY_PATH 17623 fi 17624 ;; 17625 17626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17627 version_type=sco 17628 need_lib_prefix=no 17629 need_version=no 17630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17631 soname_spec='$libname$release$shared_ext$major' 17632 shlibpath_var=LD_LIBRARY_PATH 17633 shlibpath_overrides_runpath=yes 17634 hardcode_into_libs=yes 17635 if test yes = "$with_gnu_ld"; then 17636 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17637 else 17638 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17639 case $host_os in 17640 sco3.2v5*) 17641 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17642 ;; 17643 esac 17644 fi 17645 sys_lib_dlsearch_path_spec='/usr/lib' 17646 ;; 17647 17648 tpf*) 17649 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17650 version_type=linux # correct to gnu/linux during the next big refactor 17651 need_lib_prefix=no 17652 need_version=no 17653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17654 shlibpath_var=LD_LIBRARY_PATH 17655 shlibpath_overrides_runpath=no 17656 hardcode_into_libs=yes 17657 ;; 17658 17659 uts4*) 17660 version_type=linux # correct to gnu/linux during the next big refactor 17661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17662 soname_spec='$libname$release$shared_ext$major' 17663 shlibpath_var=LD_LIBRARY_PATH 17664 ;; 17665 17666 *) 17667 dynamic_linker=no 17668 ;; 17669 esac 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17671 $as_echo "$dynamic_linker" >&6; } 17672 test no = "$dynamic_linker" && can_build_shared=no 17673 17674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17675 if test yes = "$GCC"; then 17676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17677 fi 17678 17679 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17680 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17681 fi 17682 17683 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17684 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17685 fi 17686 17687 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17688 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17689 17690 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17691 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17692 17693 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17694 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17793 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17794 hardcode_action= 17795 if test -n "$hardcode_libdir_flag_spec" || 17796 test -n "$runpath_var" || 17797 test yes = "$hardcode_automatic"; then 17798 17799 # We can hardcode non-existent directories. 17800 if test no != "$hardcode_direct" && 17801 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17802 # have to relink, otherwise we might link with an installed library 17803 # when we should be linking with a yet-to-be-installed one 17804 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17805 test no != "$hardcode_minus_L"; then 17806 # Linking always hardcodes the temporary library directory. 17807 hardcode_action=relink 17808 else 17809 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17810 hardcode_action=immediate 17811 fi 17812 else 17813 # We cannot hardcode anything, or else we can only hardcode existing 17814 # directories. 17815 hardcode_action=unsupported 17816 fi 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17818 $as_echo "$hardcode_action" >&6; } 17819 17820 if test relink = "$hardcode_action" || 17821 test yes = "$inherit_rpath"; then 17822 # Fast installation is not supported 17823 enable_fast_install=no 17824 elif test yes = "$shlibpath_overrides_runpath" || 17825 test no = "$enable_shared"; then 17826 # Fast installation is not necessary 17827 enable_fast_install=needless 17828 fi 17829 17830 17831 17832 17833 17834 17835 if test yes != "$enable_dlopen"; then 17836 enable_dlopen=unknown 17837 enable_dlopen_self=unknown 17838 enable_dlopen_self_static=unknown 17839 else 17840 lt_cv_dlopen=no 17841 lt_cv_dlopen_libs= 17842 17843 case $host_os in 17844 beos*) 17845 lt_cv_dlopen=load_add_on 17846 lt_cv_dlopen_libs= 17847 lt_cv_dlopen_self=yes 17848 ;; 17849 17850 mingw* | pw32* | cegcc*) 17851 lt_cv_dlopen=LoadLibrary 17852 lt_cv_dlopen_libs= 17853 ;; 17854 17855 cygwin*) 17856 lt_cv_dlopen=dlopen 17857 lt_cv_dlopen_libs= 17858 ;; 17859 17860 darwin*) 17861 # if libdl is installed we need to link against it 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17863 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17864 if ${ac_cv_lib_dl_dlopen+:} false; then : 17865 $as_echo_n "(cached) " >&6 17866 else 17867 ac_check_lib_save_LIBS=$LIBS 17868 LIBS="-ldl $LIBS" 17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17870 /* end confdefs.h. */ 17871 17872 /* Override any GCC internal prototype to avoid an error. 17873 Use char because int might match the return type of a GCC 17874 builtin and then its argument prototype would still apply. */ 17875 #ifdef __cplusplus 17876 extern "C" 17877 #endif 17878 char dlopen (); 17879 int 17880 main () 17881 { 17882 return dlopen (); 17883 ; 17884 return 0; 17885 } 17886 _ACEOF 17887 if ac_fn_c_try_link "$LINENO"; then : 17888 ac_cv_lib_dl_dlopen=yes 17889 else 17890 ac_cv_lib_dl_dlopen=no 17891 fi 17892 rm -f core conftest.err conftest.$ac_objext \ 17893 conftest$ac_exeext conftest.$ac_ext 17894 LIBS=$ac_check_lib_save_LIBS 17895 fi 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17897 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17898 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17899 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17900 else 17901 17902 lt_cv_dlopen=dyld 17903 lt_cv_dlopen_libs= 17904 lt_cv_dlopen_self=yes 17905 17906 fi 17907 17908 ;; 17909 17910 tpf*) 17911 # Don't try to run any link tests for TPF. We know it's impossible 17912 # because TPF is a cross-compiler, and we know how we open DSOs. 17913 lt_cv_dlopen=dlopen 17914 lt_cv_dlopen_libs= 17915 lt_cv_dlopen_self=no 17916 ;; 17917 17918 *) 17919 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17920 if test "x$ac_cv_func_shl_load" = xyes; then : 17921 lt_cv_dlopen=shl_load 17922 else 17923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17924 $as_echo_n "checking for shl_load in -ldld... " >&6; } 17925 if ${ac_cv_lib_dld_shl_load+:} false; then : 17926 $as_echo_n "(cached) " >&6 17927 else 17928 ac_check_lib_save_LIBS=$LIBS 17929 LIBS="-ldld $LIBS" 17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17931 /* end confdefs.h. */ 17932 17933 /* Override any GCC internal prototype to avoid an error. 17934 Use char because int might match the return type of a GCC 17935 builtin and then its argument prototype would still apply. */ 17936 #ifdef __cplusplus 17937 extern "C" 17938 #endif 17939 char shl_load (); 17940 int 17941 main () 17942 { 17943 return shl_load (); 17944 ; 17945 return 0; 17946 } 17947 _ACEOF 17948 if ac_fn_c_try_link "$LINENO"; then : 17949 ac_cv_lib_dld_shl_load=yes 17950 else 17951 ac_cv_lib_dld_shl_load=no 17952 fi 17953 rm -f core conftest.err conftest.$ac_objext \ 17954 conftest$ac_exeext conftest.$ac_ext 17955 LIBS=$ac_check_lib_save_LIBS 17956 fi 17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17958 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17959 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17960 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17961 else 17962 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17963 if test "x$ac_cv_func_dlopen" = xyes; then : 17964 lt_cv_dlopen=dlopen 17965 else 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17967 $as_echo_n "checking for dlopen in -ldl... " >&6; } 17968 if ${ac_cv_lib_dl_dlopen+:} false; then : 17969 $as_echo_n "(cached) " >&6 17970 else 17971 ac_check_lib_save_LIBS=$LIBS 17972 LIBS="-ldl $LIBS" 17973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17974 /* end confdefs.h. */ 17975 17976 /* Override any GCC internal prototype to avoid an error. 17977 Use char because int might match the return type of a GCC 17978 builtin and then its argument prototype would still apply. */ 17979 #ifdef __cplusplus 17980 extern "C" 17981 #endif 17982 char dlopen (); 17983 int 17984 main () 17985 { 17986 return dlopen (); 17987 ; 17988 return 0; 17989 } 17990 _ACEOF 17991 if ac_fn_c_try_link "$LINENO"; then : 17992 ac_cv_lib_dl_dlopen=yes 17993 else 17994 ac_cv_lib_dl_dlopen=no 17995 fi 17996 rm -f core conftest.err conftest.$ac_objext \ 17997 conftest$ac_exeext conftest.$ac_ext 17998 LIBS=$ac_check_lib_save_LIBS 17999 fi 18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18001 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18002 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 18003 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18004 else 18005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18006 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 18007 if ${ac_cv_lib_svld_dlopen+:} false; then : 18008 $as_echo_n "(cached) " >&6 18009 else 18010 ac_check_lib_save_LIBS=$LIBS 18011 LIBS="-lsvld $LIBS" 18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18013 /* end confdefs.h. */ 18014 18015 /* Override any GCC internal prototype to avoid an error. 18016 Use char because int might match the return type of a GCC 18017 builtin and then its argument prototype would still apply. */ 18018 #ifdef __cplusplus 18019 extern "C" 18020 #endif 18021 char dlopen (); 18022 int 18023 main () 18024 { 18025 return dlopen (); 18026 ; 18027 return 0; 18028 } 18029 _ACEOF 18030 if ac_fn_c_try_link "$LINENO"; then : 18031 ac_cv_lib_svld_dlopen=yes 18032 else 18033 ac_cv_lib_svld_dlopen=no 18034 fi 18035 rm -f core conftest.err conftest.$ac_objext \ 18036 conftest$ac_exeext conftest.$ac_ext 18037 LIBS=$ac_check_lib_save_LIBS 18038 fi 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18040 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18041 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 18042 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18043 else 18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18045 $as_echo_n "checking for dld_link in -ldld... " >&6; } 18046 if ${ac_cv_lib_dld_dld_link+:} false; then : 18047 $as_echo_n "(cached) " >&6 18048 else 18049 ac_check_lib_save_LIBS=$LIBS 18050 LIBS="-ldld $LIBS" 18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18052 /* end confdefs.h. */ 18053 18054 /* Override any GCC internal prototype to avoid an error. 18055 Use char because int might match the return type of a GCC 18056 builtin and then its argument prototype would still apply. */ 18057 #ifdef __cplusplus 18058 extern "C" 18059 #endif 18060 char dld_link (); 18061 int 18062 main () 18063 { 18064 return dld_link (); 18065 ; 18066 return 0; 18067 } 18068 _ACEOF 18069 if ac_fn_c_try_link "$LINENO"; then : 18070 ac_cv_lib_dld_dld_link=yes 18071 else 18072 ac_cv_lib_dld_dld_link=no 18073 fi 18074 rm -f core conftest.err conftest.$ac_objext \ 18075 conftest$ac_exeext conftest.$ac_ext 18076 LIBS=$ac_check_lib_save_LIBS 18077 fi 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18079 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18080 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 18081 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18082 fi 18083 18084 18085 fi 18086 18087 18088 fi 18089 18090 18091 fi 18092 18093 18094 fi 18095 18096 18097 fi 18098 18099 ;; 18100 esac 18101 18102 if test no = "$lt_cv_dlopen"; then 18103 enable_dlopen=no 18104 else 18105 enable_dlopen=yes 18106 fi 18107 18108 case $lt_cv_dlopen in 18109 dlopen) 18110 save_CPPFLAGS=$CPPFLAGS 18111 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18112 18113 save_LDFLAGS=$LDFLAGS 18114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18115 18116 save_LIBS=$LIBS 18117 LIBS="$lt_cv_dlopen_libs $LIBS" 18118 18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18120 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 18121 if ${lt_cv_dlopen_self+:} false; then : 18122 $as_echo_n "(cached) " >&6 18123 else 18124 if test yes = "$cross_compiling"; then : 18125 lt_cv_dlopen_self=cross 18126 else 18127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18128 lt_status=$lt_dlunknown 18129 cat > conftest.$ac_ext <<_LT_EOF 18130 #line $LINENO "configure" 18131 #include "confdefs.h" 18132 18133 #if HAVE_DLFCN_H 18134 #include <dlfcn.h> 18135 #endif 18136 18137 #include <stdio.h> 18138 18139 #ifdef RTLD_GLOBAL 18140 # define LT_DLGLOBAL RTLD_GLOBAL 18141 #else 18142 # ifdef DL_GLOBAL 18143 # define LT_DLGLOBAL DL_GLOBAL 18144 # else 18145 # define LT_DLGLOBAL 0 18146 # endif 18147 #endif 18148 18149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18150 find out it does not work in some platform. */ 18151 #ifndef LT_DLLAZY_OR_NOW 18152 # ifdef RTLD_LAZY 18153 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18154 # else 18155 # ifdef DL_LAZY 18156 # define LT_DLLAZY_OR_NOW DL_LAZY 18157 # else 18158 # ifdef RTLD_NOW 18159 # define LT_DLLAZY_OR_NOW RTLD_NOW 18160 # else 18161 # ifdef DL_NOW 18162 # define LT_DLLAZY_OR_NOW DL_NOW 18163 # else 18164 # define LT_DLLAZY_OR_NOW 0 18165 # endif 18166 # endif 18167 # endif 18168 # endif 18169 #endif 18170 18171 /* When -fvisibility=hidden is used, assume the code has been annotated 18172 correspondingly for the symbols needed. */ 18173 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18174 int fnord () __attribute__((visibility("default"))); 18175 #endif 18176 18177 int fnord () { return 42; } 18178 int main () 18179 { 18180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18181 int status = $lt_dlunknown; 18182 18183 if (self) 18184 { 18185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18186 else 18187 { 18188 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18189 else puts (dlerror ()); 18190 } 18191 /* dlclose (self); */ 18192 } 18193 else 18194 puts (dlerror ()); 18195 18196 return status; 18197 } 18198 _LT_EOF 18199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18200 (eval $ac_link) 2>&5 18201 ac_status=$? 18202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18203 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18204 (./conftest; exit; ) >&5 2>/dev/null 18205 lt_status=$? 18206 case x$lt_status in 18207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18209 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18210 esac 18211 else : 18212 # compilation failed 18213 lt_cv_dlopen_self=no 18214 fi 18215 fi 18216 rm -fr conftest* 18217 18218 18219 fi 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18221 $as_echo "$lt_cv_dlopen_self" >&6; } 18222 18223 if test yes = "$lt_cv_dlopen_self"; then 18224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18226 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18227 if ${lt_cv_dlopen_self_static+:} false; then : 18228 $as_echo_n "(cached) " >&6 18229 else 18230 if test yes = "$cross_compiling"; then : 18231 lt_cv_dlopen_self_static=cross 18232 else 18233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18234 lt_status=$lt_dlunknown 18235 cat > conftest.$ac_ext <<_LT_EOF 18236 #line $LINENO "configure" 18237 #include "confdefs.h" 18238 18239 #if HAVE_DLFCN_H 18240 #include <dlfcn.h> 18241 #endif 18242 18243 #include <stdio.h> 18244 18245 #ifdef RTLD_GLOBAL 18246 # define LT_DLGLOBAL RTLD_GLOBAL 18247 #else 18248 # ifdef DL_GLOBAL 18249 # define LT_DLGLOBAL DL_GLOBAL 18250 # else 18251 # define LT_DLGLOBAL 0 18252 # endif 18253 #endif 18254 18255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18256 find out it does not work in some platform. */ 18257 #ifndef LT_DLLAZY_OR_NOW 18258 # ifdef RTLD_LAZY 18259 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18260 # else 18261 # ifdef DL_LAZY 18262 # define LT_DLLAZY_OR_NOW DL_LAZY 18263 # else 18264 # ifdef RTLD_NOW 18265 # define LT_DLLAZY_OR_NOW RTLD_NOW 18266 # else 18267 # ifdef DL_NOW 18268 # define LT_DLLAZY_OR_NOW DL_NOW 18269 # else 18270 # define LT_DLLAZY_OR_NOW 0 18271 # endif 18272 # endif 18273 # endif 18274 # endif 18275 #endif 18276 18277 /* When -fvisibility=hidden is used, assume the code has been annotated 18278 correspondingly for the symbols needed. */ 18279 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18280 int fnord () __attribute__((visibility("default"))); 18281 #endif 18282 18283 int fnord () { return 42; } 18284 int main () 18285 { 18286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18287 int status = $lt_dlunknown; 18288 18289 if (self) 18290 { 18291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18292 else 18293 { 18294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18295 else puts (dlerror ()); 18296 } 18297 /* dlclose (self); */ 18298 } 18299 else 18300 puts (dlerror ()); 18301 18302 return status; 18303 } 18304 _LT_EOF 18305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18306 (eval $ac_link) 2>&5 18307 ac_status=$? 18308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18309 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18310 (./conftest; exit; ) >&5 2>/dev/null 18311 lt_status=$? 18312 case x$lt_status in 18313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18316 esac 18317 else : 18318 # compilation failed 18319 lt_cv_dlopen_self_static=no 18320 fi 18321 fi 18322 rm -fr conftest* 18323 18324 18325 fi 18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18327 $as_echo "$lt_cv_dlopen_self_static" >&6; } 18328 fi 18329 18330 CPPFLAGS=$save_CPPFLAGS 18331 LDFLAGS=$save_LDFLAGS 18332 LIBS=$save_LIBS 18333 ;; 18334 esac 18335 18336 case $lt_cv_dlopen_self in 18337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18338 *) enable_dlopen_self=unknown ;; 18339 esac 18340 18341 case $lt_cv_dlopen_self_static in 18342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18343 *) enable_dlopen_self_static=unknown ;; 18344 esac 18345 fi 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 striplib= 18364 old_striplib= 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18366 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 18367 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18369 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18371 $as_echo "yes" >&6; } 18372 else 18373 # FIXME - insert some real tests, host_os isn't really good enough 18374 case $host_os in 18375 darwin*) 18376 if test -n "$STRIP"; then 18377 striplib="$STRIP -x" 18378 old_striplib="$STRIP -S" 18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18380 $as_echo "yes" >&6; } 18381 else 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18383 $as_echo "no" >&6; } 18384 fi 18385 ;; 18386 *) 18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18388 $as_echo "no" >&6; } 18389 ;; 18390 esac 18391 fi 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 # Report what library types will actually be built 18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18406 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18408 $as_echo "$can_build_shared" >&6; } 18409 18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18411 $as_echo_n "checking whether to build shared libraries... " >&6; } 18412 test no = "$can_build_shared" && enable_shared=no 18413 18414 # On AIX, shared libraries and static libraries use the same namespace, and 18415 # are all built from PIC. 18416 case $host_os in 18417 aix3*) 18418 test yes = "$enable_shared" && enable_static=no 18419 if test -n "$RANLIB"; then 18420 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18421 postinstall_cmds='$RANLIB $lib' 18422 fi 18423 ;; 18424 18425 aix[4-9]*) 18426 if test ia64 != "$host_cpu"; then 18427 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18428 yes,aix,yes) ;; # shared object as lib.so file only 18429 yes,svr4,*) ;; # shared object as lib.so archive member only 18430 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18431 esac 18432 fi 18433 ;; 18434 esac 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18436 $as_echo "$enable_shared" >&6; } 18437 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18439 $as_echo_n "checking whether to build static libraries... " >&6; } 18440 # Make sure either enable_shared or enable_static is yes. 18441 test yes = "$enable_shared" || enable_static=yes 18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18443 $as_echo "$enable_static" >&6; } 18444 18445 18446 18447 18448 fi 18449 ac_ext=c 18450 ac_cpp='$CPP $CPPFLAGS' 18451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18453 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18454 18455 CC=$lt_save_CC 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 ac_config_commands="$ac_config_commands libtool" 18472 18473 18474 18475 18476 # Only expand once: 18477 18478 18479 18480 18481 18482 # Define a configure option for an alternate module directory 18483 18484 # Check whether --with-xorg-module-dir was given. 18485 if test "${with_xorg_module_dir+set}" = set; then : 18486 withval=$with_xorg_module_dir; moduledir="$withval" 18487 else 18488 moduledir="$libdir/xorg/modules" 18489 fi 18490 18491 18492 # Check whether --enable-dri was given. 18493 if test "${enable_dri+set}" = set; then : 18494 enableval=$enable_dri; DRI="$enableval" 18495 else 18496 DRI=auto 18497 fi 18498 18499 18500 # Store the list of server defined optional extensions in REQUIRED_MODULES 18501 18502 18503 SAVE_CFLAGS="$CFLAGS" 18504 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506 /* end confdefs.h. */ 18507 18508 #include "xorg-server.h" 18509 #if !defined XINERAMA 18510 #error XINERAMA not defined 18511 #endif 18512 18513 int 18514 main () 18515 { 18516 18517 ; 18518 return 0; 18519 } 18520 _ACEOF 18521 if ac_fn_c_try_compile "$LINENO"; then : 18522 _EXT_CHECK=yes 18523 else 18524 _EXT_CHECK=no 18525 fi 18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18527 CFLAGS="$SAVE_CFLAGS" 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5 18529 $as_echo_n "checking if XINERAMA is defined... " >&6; } 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18531 $as_echo "$_EXT_CHECK" >&6; } 18532 if test "$_EXT_CHECK" != no; then 18533 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto" 18534 fi 18535 18536 18537 18538 SAVE_CFLAGS="$CFLAGS" 18539 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18541 /* end confdefs.h. */ 18542 18543 #include "xorg-server.h" 18544 #if !defined RANDR 18545 #error RANDR not defined 18546 #endif 18547 18548 int 18549 main () 18550 { 18551 18552 ; 18553 return 0; 18554 } 18555 _ACEOF 18556 if ac_fn_c_try_compile "$LINENO"; then : 18557 _EXT_CHECK=yes 18558 else 18559 _EXT_CHECK=no 18560 fi 18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18562 CFLAGS="$SAVE_CFLAGS" 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 18564 $as_echo_n "checking if RANDR is defined... " >&6; } 18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18566 $as_echo "$_EXT_CHECK" >&6; } 18567 if test "$_EXT_CHECK" != no; then 18568 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 18569 fi 18570 18571 18572 18573 SAVE_CFLAGS="$CFLAGS" 18574 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18576 /* end confdefs.h. */ 18577 18578 #include "xorg-server.h" 18579 #if !defined RENDER 18580 #error RENDER not defined 18581 #endif 18582 18583 int 18584 main () 18585 { 18586 18587 ; 18588 return 0; 18589 } 18590 _ACEOF 18591 if ac_fn_c_try_compile "$LINENO"; then : 18592 _EXT_CHECK=yes 18593 else 18594 _EXT_CHECK=no 18595 fi 18596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18597 CFLAGS="$SAVE_CFLAGS" 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 18599 $as_echo_n "checking if RENDER is defined... " >&6; } 18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18601 $as_echo "$_EXT_CHECK" >&6; } 18602 if test "$_EXT_CHECK" != no; then 18603 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 18604 fi 18605 18606 18607 18608 SAVE_CFLAGS="$CFLAGS" 18609 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18611 /* end confdefs.h. */ 18612 18613 #include "xorg-server.h" 18614 #if !defined XV 18615 #error XV not defined 18616 #endif 18617 18618 int 18619 main () 18620 { 18621 18622 ; 18623 return 0; 18624 } 18625 _ACEOF 18626 if ac_fn_c_try_compile "$LINENO"; then : 18627 _EXT_CHECK=yes 18628 else 18629 _EXT_CHECK=no 18630 fi 18631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18632 CFLAGS="$SAVE_CFLAGS" 18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 18634 $as_echo_n "checking if XV is defined... " >&6; } 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18636 $as_echo "$_EXT_CHECK" >&6; } 18637 if test "$_EXT_CHECK" != no; then 18638 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 18639 fi 18640 18641 18642 18643 SAVE_CFLAGS="$CFLAGS" 18644 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 18645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18646 /* end confdefs.h. */ 18647 18648 #include "xorg-server.h" 18649 #if !defined DPMSExtension 18650 #error DPMSExtension not defined 18651 #endif 18652 18653 int 18654 main () 18655 { 18656 18657 ; 18658 return 0; 18659 } 18660 _ACEOF 18661 if ac_fn_c_try_compile "$LINENO"; then : 18662 _EXT_CHECK=yes 18663 else 18664 _EXT_CHECK=no 18665 fi 18666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18667 CFLAGS="$SAVE_CFLAGS" 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 18669 $as_echo_n "checking if DPMSExtension is defined... " >&6; } 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 18671 $as_echo "$_EXT_CHECK" >&6; } 18672 if test "$_EXT_CHECK" != no; then 18673 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 18674 fi 18675 18676 18677 # Obtain compiler/linker options for the driver dependencies 18678 18679 pkg_failed=no 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18681 $as_echo_n "checking for XORG... " >&6; } 18682 18683 if test -n "$XORG_CFLAGS"; then 18684 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18685 elif test -n "$PKG_CONFIG"; then 18686 if test -n "$PKG_CONFIG" && \ 18687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 \$REQUIRED_MODULES\""; } >&5 18688 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5 18689 ac_status=$? 18690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18691 test $ac_status = 0; }; then 18692 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null` 18693 test "x$?" != "x0" && pkg_failed=yes 18694 else 18695 pkg_failed=yes 18696 fi 18697 else 18698 pkg_failed=untried 18699 fi 18700 if test -n "$XORG_LIBS"; then 18701 pkg_cv_XORG_LIBS="$XORG_LIBS" 18702 elif test -n "$PKG_CONFIG"; then 18703 if test -n "$PKG_CONFIG" && \ 18704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 \$REQUIRED_MODULES\""; } >&5 18705 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES") 2>&5 18706 ac_status=$? 18707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18708 test $ac_status = 0; }; then 18709 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>/dev/null` 18710 test "x$?" != "x0" && pkg_failed=yes 18711 else 18712 pkg_failed=yes 18713 fi 18714 else 18715 pkg_failed=untried 18716 fi 18717 18718 18719 18720 if test $pkg_failed = yes; then 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18722 $as_echo "no" >&6; } 18723 18724 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18725 _pkg_short_errors_supported=yes 18726 else 18727 _pkg_short_errors_supported=no 18728 fi 18729 if test $_pkg_short_errors_supported = yes; then 18730 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>&1` 18731 else 18732 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES" 2>&1` 18733 fi 18734 # Put the nasty error message in config.log where it belongs 18735 echo "$XORG_PKG_ERRORS" >&5 18736 18737 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto xf86dgaproto >= 2.1 $REQUIRED_MODULES) were not met: 18738 18739 $XORG_PKG_ERRORS 18740 18741 Consider adjusting the PKG_CONFIG_PATH environment variable if you 18742 installed software in a non-standard prefix. 18743 18744 Alternatively, you may set the environment variables XORG_CFLAGS 18745 and XORG_LIBS to avoid the need to call pkg-config. 18746 See the pkg-config man page for more details." "$LINENO" 5 18747 elif test $pkg_failed = untried; then 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18749 $as_echo "no" >&6; } 18750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18752 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18753 is in your PATH or set the PKG_CONFIG environment variable to the full 18754 path to pkg-config. 18755 18756 Alternatively, you may set the environment variables XORG_CFLAGS 18757 and XORG_LIBS to avoid the need to call pkg-config. 18758 See the pkg-config man page for more details. 18759 18760 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18761 See \`config.log' for more details" "$LINENO" 5; } 18762 else 18763 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18764 XORG_LIBS=$pkg_cv_XORG_LIBS 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18766 $as_echo "yes" >&6; } 18767 18768 fi 18769 18770 pkg_failed=no 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18772 $as_echo_n "checking for XEXT... " >&6; } 18773 18774 if test -n "$XEXT_CFLAGS"; then 18775 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18776 elif test -n "$PKG_CONFIG"; then 18777 if test -n "$PKG_CONFIG" && \ 18778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18779 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18780 ac_status=$? 18781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18782 test $ac_status = 0; }; then 18783 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18784 test "x$?" != "x0" && pkg_failed=yes 18785 else 18786 pkg_failed=yes 18787 fi 18788 else 18789 pkg_failed=untried 18790 fi 18791 if test -n "$XEXT_LIBS"; then 18792 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18793 elif test -n "$PKG_CONFIG"; then 18794 if test -n "$PKG_CONFIG" && \ 18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18796 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18797 ac_status=$? 18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18799 test $ac_status = 0; }; then 18800 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18801 test "x$?" != "x0" && pkg_failed=yes 18802 else 18803 pkg_failed=yes 18804 fi 18805 else 18806 pkg_failed=untried 18807 fi 18808 18809 18810 18811 if test $pkg_failed = yes; then 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813 $as_echo "no" >&6; } 18814 18815 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18816 _pkg_short_errors_supported=yes 18817 else 18818 _pkg_short_errors_supported=no 18819 fi 18820 if test $_pkg_short_errors_supported = yes; then 18821 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18822 else 18823 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18824 fi 18825 # Put the nasty error message in config.log where it belongs 18826 echo "$XEXT_PKG_ERRORS" >&5 18827 18828 HAVE_XEXTPROTO_71="no" 18829 elif test $pkg_failed = untried; then 18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18831 $as_echo "no" >&6; } 18832 HAVE_XEXTPROTO_71="no" 18833 else 18834 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18835 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18837 $as_echo "yes" >&6; } 18838 HAVE_XEXTPROTO_71="yes"; 18839 $as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18840 18841 fi 18842 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18843 HAVE_XEXTPROTO_71_TRUE= 18844 HAVE_XEXTPROTO_71_FALSE='#' 18845 else 18846 HAVE_XEXTPROTO_71_TRUE='#' 18847 HAVE_XEXTPROTO_71_FALSE= 18848 fi 18849 18850 sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18851 18852 # Checks for libraries. 18853 18854 if test "$DRI" != no; then 18855 if test "$cross_compiling" = "no" ; then 18856 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh` 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5 18858 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; } 18859 if eval \${$as_ac_File+:} false; then : 18860 $as_echo_n "(cached) " >&6 18861 else 18862 test "$cross_compiling" = yes && 18863 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18864 if test -r "${sdkdir}/dri.h"; then 18865 eval "$as_ac_File=yes" 18866 else 18867 eval "$as_ac_File=no" 18868 fi 18869 fi 18870 eval ac_res=\$$as_ac_File 18871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18872 $as_echo "$ac_res" >&6; } 18873 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18874 have_dri_h="yes" 18875 else 18876 have_dri_h="no" 18877 fi 18878 18879 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh` 18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5 18881 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; } 18882 if eval \${$as_ac_File+:} false; then : 18883 $as_echo_n "(cached) " >&6 18884 else 18885 test "$cross_compiling" = yes && 18886 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18887 if test -r "${sdkdir}/sarea.h"; then 18888 eval "$as_ac_File=yes" 18889 else 18890 eval "$as_ac_File=no" 18891 fi 18892 fi 18893 eval ac_res=\$$as_ac_File 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18895 $as_echo "$ac_res" >&6; } 18896 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18897 have_sarea_h="yes" 18898 else 18899 have_sarea_h="no" 18900 fi 18901 18902 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh` 18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5 18904 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; } 18905 if eval \${$as_ac_File+:} false; then : 18906 $as_echo_n "(cached) " >&6 18907 else 18908 test "$cross_compiling" = yes && 18909 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 18910 if test -r "${sdkdir}/dristruct.h"; then 18911 eval "$as_ac_File=yes" 18912 else 18913 eval "$as_ac_File=no" 18914 fi 18915 fi 18916 eval ac_res=\$$as_ac_File 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18918 $as_echo "$ac_res" >&6; } 18919 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 18920 have_dristruct_h="yes" 18921 else 18922 have_dristruct_h="no" 18923 fi 18924 18925 else 18926 have_dri_h="yes" 18927 have_sarea_h="yes" 18928 have_dristruct_h="yes" 18929 fi 18930 fi 18931 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5 18933 $as_echo_n "checking whether to include DRI support... " >&6; } 18934 if test x$DRI = xauto; then 18935 if test "$have_dri_h" = yes -a \ 18936 "$have_sarea_h" = yes -a \ 18937 "$have_dristruct_h" = yes; then 18938 DRI="yes" 18939 else 18940 DRI="no" 18941 fi 18942 fi 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5 18944 $as_echo "$DRI" >&6; } 18945 18946 if test x$DRI = xyes; then 18947 DRI_TRUE= 18948 DRI_FALSE='#' 18949 else 18950 DRI_TRUE='#' 18951 DRI_FALSE= 18952 fi 18953 18954 if test "$DRI" = yes; then 18955 18956 pkg_failed=no 18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5 18958 $as_echo_n "checking for DRI... " >&6; } 18959 18960 if test -n "$DRI_CFLAGS"; then 18961 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS" 18962 elif test -n "$PKG_CONFIG"; then 18963 if test -n "$PKG_CONFIG" && \ 18964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18965 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18966 ac_status=$? 18967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18968 test $ac_status = 0; }; then 18969 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18970 test "x$?" != "x0" && pkg_failed=yes 18971 else 18972 pkg_failed=yes 18973 fi 18974 else 18975 pkg_failed=untried 18976 fi 18977 if test -n "$DRI_LIBS"; then 18978 pkg_cv_DRI_LIBS="$DRI_LIBS" 18979 elif test -n "$PKG_CONFIG"; then 18980 if test -n "$PKG_CONFIG" && \ 18981 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5 18982 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5 18983 ac_status=$? 18984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18985 test $ac_status = 0; }; then 18986 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null` 18987 test "x$?" != "x0" && pkg_failed=yes 18988 else 18989 pkg_failed=yes 18990 fi 18991 else 18992 pkg_failed=untried 18993 fi 18994 18995 18996 18997 if test $pkg_failed = yes; then 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18999 $as_echo "no" >&6; } 19000 19001 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19002 _pkg_short_errors_supported=yes 19003 else 19004 _pkg_short_errors_supported=no 19005 fi 19006 if test $_pkg_short_errors_supported = yes; then 19007 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19008 else 19009 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1` 19010 fi 19011 # Put the nasty error message in config.log where it belongs 19012 echo "$DRI_PKG_ERRORS" >&5 19013 19014 as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met: 19015 19016 $DRI_PKG_ERRORS 19017 19018 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19019 installed software in a non-standard prefix. 19020 19021 Alternatively, you may set the environment variables DRI_CFLAGS 19022 and DRI_LIBS to avoid the need to call pkg-config. 19023 See the pkg-config man page for more details." "$LINENO" 5 19024 elif test $pkg_failed = untried; then 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19026 $as_echo "no" >&6; } 19027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19029 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19030 is in your PATH or set the PKG_CONFIG environment variable to the full 19031 path to pkg-config. 19032 19033 Alternatively, you may set the environment variables DRI_CFLAGS 19034 and DRI_LIBS to avoid the need to call pkg-config. 19035 See the pkg-config man page for more details. 19036 19037 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19038 See \`config.log' for more details" "$LINENO" 5; } 19039 else 19040 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS 19041 DRI_LIBS=$pkg_cv_DRI_LIBS 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19043 $as_echo "yes" >&6; } 19044 19045 fi 19046 19047 $as_echo "#define SISDRI 1" >>confdefs.h 19048 19049 19050 $as_echo "#define SISDRI_DEVEL 1" >>confdefs.h 19051 19052 fi 19053 19054 # Check whether --enable-xaa was given. 19055 if test "${enable_xaa+set}" = set; then : 19056 enableval=$enable_xaa; XAA="$enableval" 19057 else 19058 XAA=auto 19059 fi 19060 19061 if test "x$XAA" != xno; then 19062 save_CFLAGS=$CFLAGS 19063 save_CPPFLAGS=$CPPFLAGS 19064 CFLAGS=$XORG_CFLAGS 19065 CPPFLAGS="$XORG_CFLAGS" 19066 for ac_header in xaa.h 19067 do : 19068 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19069 if test "x$ac_cv_header_xaa_h" = xyes; then : 19070 cat >>confdefs.h <<_ACEOF 19071 #define HAVE_XAA_H 1 19072 _ACEOF 19073 XAA=yes 19074 else 19075 XAA=no 19076 fi 19077 19078 done 19079 19080 CFLAGS=$save_CFLAGS 19081 CPPFLAGS=$save_CPPFLAGS 19082 fi 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19084 $as_echo_n "checking whether to include XAA support... " >&6; } 19085 if test "x$XAA" = xyes; then 19086 XAA_TRUE= 19087 XAA_FALSE='#' 19088 else 19089 XAA_TRUE='#' 19090 XAA_FALSE= 19091 fi 19092 19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19094 $as_echo "$XAA" >&6; } 19095 19096 # technically this should be a configure flag. meh. 19097 19098 $as_echo "#define USE_EXA 1" >>confdefs.h 19099 19100 19101 SAVE_CPPFLAGS="$CPPFLAGS" 19102 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19103 ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19104 " 19105 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 19106 XSERVER_LIBPCIACCESS=yes 19107 else 19108 XSERVER_LIBPCIACCESS=no 19109 fi 19110 19111 CPPFLAGS="$SAVE_CPPFLAGS" 19112 19113 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19114 19115 pkg_failed=no 19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19117 $as_echo_n "checking for PCIACCESS... " >&6; } 19118 19119 if test -n "$PCIACCESS_CFLAGS"; then 19120 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19121 elif test -n "$PKG_CONFIG"; then 19122 if test -n "$PKG_CONFIG" && \ 19123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19124 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19125 ac_status=$? 19126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19127 test $ac_status = 0; }; then 19128 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null` 19129 test "x$?" != "x0" && pkg_failed=yes 19130 else 19131 pkg_failed=yes 19132 fi 19133 else 19134 pkg_failed=untried 19135 fi 19136 if test -n "$PCIACCESS_LIBS"; then 19137 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19138 elif test -n "$PKG_CONFIG"; then 19139 if test -n "$PKG_CONFIG" && \ 19140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19141 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19142 ac_status=$? 19143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19144 test $ac_status = 0; }; then 19145 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null` 19146 test "x$?" != "x0" && pkg_failed=yes 19147 else 19148 pkg_failed=yes 19149 fi 19150 else 19151 pkg_failed=untried 19152 fi 19153 19154 19155 19156 if test $pkg_failed = yes; then 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19158 $as_echo "no" >&6; } 19159 19160 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19161 _pkg_short_errors_supported=yes 19162 else 19163 _pkg_short_errors_supported=no 19164 fi 19165 if test $_pkg_short_errors_supported = yes; then 19166 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19167 else 19168 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19169 fi 19170 # Put the nasty error message in config.log where it belongs 19171 echo "$PCIACCESS_PKG_ERRORS" >&5 19172 19173 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met: 19174 19175 $PCIACCESS_PKG_ERRORS 19176 19177 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19178 installed software in a non-standard prefix. 19179 19180 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19181 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19182 See the pkg-config man page for more details." "$LINENO" 5 19183 elif test $pkg_failed = untried; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19185 $as_echo "no" >&6; } 19186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19188 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19189 is in your PATH or set the PKG_CONFIG environment variable to the full 19190 path to pkg-config. 19191 19192 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19193 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19194 See the pkg-config man page for more details. 19195 19196 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19197 See \`config.log' for more details" "$LINENO" 5; } 19198 else 19199 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19200 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19202 $as_echo "yes" >&6; } 19203 19204 fi 19205 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19206 fi 19207 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19208 XSERVER_LIBPCIACCESS_TRUE= 19209 XSERVER_LIBPCIACCESS_FALSE='#' 19210 else 19211 XSERVER_LIBPCIACCESS_TRUE='#' 19212 XSERVER_LIBPCIACCESS_FALSE= 19213 fi 19214 19215 19216 19217 19218 DRIVER_NAME=sis 19219 19220 19221 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19222 19223 cat >confcache <<\_ACEOF 19224 # This file is a shell script that caches the results of configure 19225 # tests run on this system so they can be shared between configure 19226 # scripts and configure runs, see configure's option --config-cache. 19227 # It is not useful on other systems. If it contains results you don't 19228 # want to keep, you may remove or edit it. 19229 # 19230 # config.status only pays attention to the cache file if you give it 19231 # the --recheck option to rerun configure. 19232 # 19233 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19234 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19235 # following values. 19236 19237 _ACEOF 19238 19239 # The following way of writing the cache mishandles newlines in values, 19240 # but we know of no workaround that is simple, portable, and efficient. 19241 # So, we kill variables containing newlines. 19242 # Ultrix sh set writes to stderr and can't be redirected directly, 19243 # and sets the high bit in the cache file unless we assign to the vars. 19244 ( 19245 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19246 eval ac_val=\$$ac_var 19247 case $ac_val in #( 19248 *${as_nl}*) 19249 case $ac_var in #( 19250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19252 esac 19253 case $ac_var in #( 19254 _ | IFS | as_nl) ;; #( 19255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19256 *) { eval $ac_var=; unset $ac_var;} ;; 19257 esac ;; 19258 esac 19259 done 19260 19261 (set) 2>&1 | 19262 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19263 *${as_nl}ac_space=\ *) 19264 # `set' does not quote correctly, so add quotes: double-quote 19265 # substitution turns \\\\ into \\, and sed turns \\ into \. 19266 sed -n \ 19267 "s/'/'\\\\''/g; 19268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19269 ;; #( 19270 *) 19271 # `set' quotes correctly as required by POSIX, so do not add quotes. 19272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19273 ;; 19274 esac | 19275 sort 19276 ) | 19277 sed ' 19278 /^ac_cv_env_/b end 19279 t clear 19280 :clear 19281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19282 t end 19283 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19284 :end' >>confcache 19285 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19286 if test -w "$cache_file"; then 19287 if test "x$cache_file" != "x/dev/null"; then 19288 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19289 $as_echo "$as_me: updating cache $cache_file" >&6;} 19290 if test ! -f "$cache_file" || test -h "$cache_file"; then 19291 cat confcache >"$cache_file" 19292 else 19293 case $cache_file in #( 19294 */* | ?:*) 19295 mv -f confcache "$cache_file"$$ && 19296 mv -f "$cache_file"$$ "$cache_file" ;; #( 19297 *) 19298 mv -f confcache "$cache_file" ;; 19299 esac 19300 fi 19301 fi 19302 else 19303 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19304 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19305 fi 19306 fi 19307 rm -f confcache 19308 19309 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19310 # Let make expand exec_prefix. 19311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19312 19313 DEFS=-DHAVE_CONFIG_H 19314 19315 ac_libobjs= 19316 ac_ltlibobjs= 19317 U= 19318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19319 # 1. Remove the extension, and $U if already installed. 19320 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19321 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19322 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19323 # will be set to the directory where LIBOBJS objects are built. 19324 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19325 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19326 done 19327 LIBOBJS=$ac_libobjs 19328 19329 LTLIBOBJS=$ac_ltlibobjs 19330 19331 19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19333 $as_echo_n "checking that generated files are newer than configure... " >&6; } 19334 if test -n "$am_sleep_pid"; then 19335 # Hide warnings about reused PIDs. 19336 wait $am_sleep_pid 2>/dev/null 19337 fi 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19339 $as_echo "done" >&6; } 19340 if test -n "$EXEEXT"; then 19341 am__EXEEXT_TRUE= 19342 am__EXEEXT_FALSE='#' 19343 else 19344 am__EXEEXT_TRUE='#' 19345 am__EXEEXT_FALSE= 19346 fi 19347 19348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19349 as_fn_error $? "conditional \"AMDEP\" was never defined. 19350 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19351 fi 19352 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19353 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19354 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19355 fi 19356 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19357 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19358 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19359 fi 19360 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then 19361 as_fn_error $? "conditional \"DRI\" was never defined. 19362 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19363 fi 19364 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19365 as_fn_error $? "conditional \"XAA\" was never defined. 19366 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19367 fi 19368 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19369 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19370 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19371 fi 19372 19373 : "${CONFIG_STATUS=./config.status}" 19374 ac_write_fail=0 19375 ac_clean_files_save=$ac_clean_files 19376 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19378 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19379 as_write_fail=0 19380 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19381 #! $SHELL 19382 # Generated by $as_me. 19383 # Run this file to recreate the current configuration. 19384 # Compiler output produced by configure, useful for debugging 19385 # configure, is in config.log if it exists. 19386 19387 debug=false 19388 ac_cs_recheck=false 19389 ac_cs_silent=false 19390 19391 SHELL=\${CONFIG_SHELL-$SHELL} 19392 export SHELL 19393 _ASEOF 19394 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19395 ## -------------------- ## 19396 ## M4sh Initialization. ## 19397 ## -------------------- ## 19398 19399 # Be more Bourne compatible 19400 DUALCASE=1; export DUALCASE # for MKS sh 19401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19402 emulate sh 19403 NULLCMD=: 19404 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19405 # is contrary to our usage. Disable this feature. 19406 alias -g '${1+"$@"}'='"$@"' 19407 setopt NO_GLOB_SUBST 19408 else 19409 case `(set -o) 2>/dev/null` in #( 19410 *posix*) : 19411 set -o posix ;; #( 19412 *) : 19413 ;; 19414 esac 19415 fi 19416 19417 19418 as_nl=' 19419 ' 19420 export as_nl 19421 # Printing a long string crashes Solaris 7 /usr/bin/printf. 19422 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19423 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19425 # Prefer a ksh shell builtin over an external printf program on Solaris, 19426 # but without wasting forks for bash or zsh. 19427 if test -z "$BASH_VERSION$ZSH_VERSION" \ 19428 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19429 as_echo='print -r --' 19430 as_echo_n='print -rn --' 19431 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19432 as_echo='printf %s\n' 19433 as_echo_n='printf %s' 19434 else 19435 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19436 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19437 as_echo_n='/usr/ucb/echo -n' 19438 else 19439 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19440 as_echo_n_body='eval 19441 arg=$1; 19442 case $arg in #( 19443 *"$as_nl"*) 19444 expr "X$arg" : "X\\(.*\\)$as_nl"; 19445 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19446 esac; 19447 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19448 ' 19449 export as_echo_n_body 19450 as_echo_n='sh -c $as_echo_n_body as_echo' 19451 fi 19452 export as_echo_body 19453 as_echo='sh -c $as_echo_body as_echo' 19454 fi 19455 19456 # The user is always right. 19457 if test "${PATH_SEPARATOR+set}" != set; then 19458 PATH_SEPARATOR=: 19459 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19460 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19461 PATH_SEPARATOR=';' 19462 } 19463 fi 19464 19465 19466 # IFS 19467 # We need space, tab and new line, in precisely that order. Quoting is 19468 # there to prevent editors from complaining about space-tab. 19469 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 19470 # splitting by setting IFS to empty value.) 19471 IFS=" "" $as_nl" 19472 19473 # Find who we are. Look in the path if we contain no directory separator. 19474 as_myself= 19475 case $0 in #(( 19476 *[\\/]* ) as_myself=$0 ;; 19477 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19478 for as_dir in $PATH 19479 do 19480 IFS=$as_save_IFS 19481 test -z "$as_dir" && as_dir=. 19482 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19483 done 19484 IFS=$as_save_IFS 19485 19486 ;; 19487 esac 19488 # We did not find ourselves, most probably we were run as `sh COMMAND' 19489 # in which case we are not to be found in the path. 19490 if test "x$as_myself" = x; then 19491 as_myself=$0 19492 fi 19493 if test ! -f "$as_myself"; then 19494 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19495 exit 1 19496 fi 19497 19498 # Unset variables that we do not need and which cause bugs (e.g. in 19499 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19500 # suppresses any "Segmentation fault" message there. '((' could 19501 # trigger a bug in pdksh 5.2.14. 19502 for as_var in BASH_ENV ENV MAIL MAILPATH 19503 do eval test x\${$as_var+set} = xset \ 19504 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19505 done 19506 PS1='$ ' 19507 PS2='> ' 19508 PS4='+ ' 19509 19510 # NLS nuisances. 19511 LC_ALL=C 19512 export LC_ALL 19513 LANGUAGE=C 19514 export LANGUAGE 19515 19516 # CDPATH. 19517 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19518 19519 19520 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19521 # ---------------------------------------- 19522 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19523 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19524 # script with STATUS, using 1 if that was 0. 19525 as_fn_error () 19526 { 19527 as_status=$1; test $as_status -eq 0 && as_status=1 19528 if test "$4"; then 19529 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19530 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19531 fi 19532 $as_echo "$as_me: error: $2" >&2 19533 as_fn_exit $as_status 19534 } # as_fn_error 19535 19536 19537 # as_fn_set_status STATUS 19538 # ----------------------- 19539 # Set $? to STATUS, without forking. 19540 as_fn_set_status () 19541 { 19542 return $1 19543 } # as_fn_set_status 19544 19545 # as_fn_exit STATUS 19546 # ----------------- 19547 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19548 as_fn_exit () 19549 { 19550 set +e 19551 as_fn_set_status $1 19552 exit $1 19553 } # as_fn_exit 19554 19555 # as_fn_unset VAR 19556 # --------------- 19557 # Portably unset VAR. 19558 as_fn_unset () 19559 { 19560 { eval $1=; unset $1;} 19561 } 19562 as_unset=as_fn_unset 19563 # as_fn_append VAR VALUE 19564 # ---------------------- 19565 # Append the text in VALUE to the end of the definition contained in VAR. Take 19566 # advantage of any shell optimizations that allow amortized linear growth over 19567 # repeated appends, instead of the typical quadratic growth present in naive 19568 # implementations. 19569 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19570 eval 'as_fn_append () 19571 { 19572 eval $1+=\$2 19573 }' 19574 else 19575 as_fn_append () 19576 { 19577 eval $1=\$$1\$2 19578 } 19579 fi # as_fn_append 19580 19581 # as_fn_arith ARG... 19582 # ------------------ 19583 # Perform arithmetic evaluation on the ARGs, and store the result in the 19584 # global $as_val. Take advantage of shells that can avoid forks. The arguments 19585 # must be portable across $(()) and expr. 19586 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19587 eval 'as_fn_arith () 19588 { 19589 as_val=$(( $* )) 19590 }' 19591 else 19592 as_fn_arith () 19593 { 19594 as_val=`expr "$@" || test $? -eq 1` 19595 } 19596 fi # as_fn_arith 19597 19598 19599 if expr a : '\(a\)' >/dev/null 2>&1 && 19600 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19601 as_expr=expr 19602 else 19603 as_expr=false 19604 fi 19605 19606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19607 as_basename=basename 19608 else 19609 as_basename=false 19610 fi 19611 19612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19613 as_dirname=dirname 19614 else 19615 as_dirname=false 19616 fi 19617 19618 as_me=`$as_basename -- "$0" || 19619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19620 X"$0" : 'X\(//\)$' \| \ 19621 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19622 $as_echo X/"$0" | 19623 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19624 s//\1/ 19625 q 19626 } 19627 /^X\/\(\/\/\)$/{ 19628 s//\1/ 19629 q 19630 } 19631 /^X\/\(\/\).*/{ 19632 s//\1/ 19633 q 19634 } 19635 s/.*/./; q'` 19636 19637 # Avoid depending upon Character Ranges. 19638 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19641 as_cr_digits='0123456789' 19642 as_cr_alnum=$as_cr_Letters$as_cr_digits 19643 19644 ECHO_C= ECHO_N= ECHO_T= 19645 case `echo -n x` in #((((( 19646 -n*) 19647 case `echo 'xy\c'` in 19648 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19649 xy) ECHO_C='\c';; 19650 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19651 ECHO_T=' ';; 19652 esac;; 19653 *) 19654 ECHO_N='-n';; 19655 esac 19656 19657 rm -f conf$$ conf$$.exe conf$$.file 19658 if test -d conf$$.dir; then 19659 rm -f conf$$.dir/conf$$.file 19660 else 19661 rm -f conf$$.dir 19662 mkdir conf$$.dir 2>/dev/null 19663 fi 19664 if (echo >conf$$.file) 2>/dev/null; then 19665 if ln -s conf$$.file conf$$ 2>/dev/null; then 19666 as_ln_s='ln -s' 19667 # ... but there are two gotchas: 19668 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19669 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19670 # In both cases, we have to default to `cp -pR'. 19671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19672 as_ln_s='cp -pR' 19673 elif ln conf$$.file conf$$ 2>/dev/null; then 19674 as_ln_s=ln 19675 else 19676 as_ln_s='cp -pR' 19677 fi 19678 else 19679 as_ln_s='cp -pR' 19680 fi 19681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19682 rmdir conf$$.dir 2>/dev/null 19683 19684 19685 # as_fn_mkdir_p 19686 # ------------- 19687 # Create "$as_dir" as a directory, including parents if necessary. 19688 as_fn_mkdir_p () 19689 { 19690 19691 case $as_dir in #( 19692 -*) as_dir=./$as_dir;; 19693 esac 19694 test -d "$as_dir" || eval $as_mkdir_p || { 19695 as_dirs= 19696 while :; do 19697 case $as_dir in #( 19698 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19699 *) as_qdir=$as_dir;; 19700 esac 19701 as_dirs="'$as_qdir' $as_dirs" 19702 as_dir=`$as_dirname -- "$as_dir" || 19703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19704 X"$as_dir" : 'X\(//\)[^/]' \| \ 19705 X"$as_dir" : 'X\(//\)$' \| \ 19706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19707 $as_echo X"$as_dir" | 19708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19709 s//\1/ 19710 q 19711 } 19712 /^X\(\/\/\)[^/].*/{ 19713 s//\1/ 19714 q 19715 } 19716 /^X\(\/\/\)$/{ 19717 s//\1/ 19718 q 19719 } 19720 /^X\(\/\).*/{ 19721 s//\1/ 19722 q 19723 } 19724 s/.*/./; q'` 19725 test -d "$as_dir" && break 19726 done 19727 test -z "$as_dirs" || eval "mkdir $as_dirs" 19728 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19729 19730 19731 } # as_fn_mkdir_p 19732 if mkdir -p . 2>/dev/null; then 19733 as_mkdir_p='mkdir -p "$as_dir"' 19734 else 19735 test -d ./-p && rmdir ./-p 19736 as_mkdir_p=false 19737 fi 19738 19739 19740 # as_fn_executable_p FILE 19741 # ----------------------- 19742 # Test if FILE is an executable regular file. 19743 as_fn_executable_p () 19744 { 19745 test -f "$1" && test -x "$1" 19746 } # as_fn_executable_p 19747 as_test_x='test -x' 19748 as_executable_p=as_fn_executable_p 19749 19750 # Sed expression to map a string onto a valid CPP name. 19751 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19752 19753 # Sed expression to map a string onto a valid variable name. 19754 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19755 19756 19757 exec 6>&1 19758 ## ----------------------------------- ## 19759 ## Main body of $CONFIG_STATUS script. ## 19760 ## ----------------------------------- ## 19761 _ASEOF 19762 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19763 19764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19765 # Save the log message, to keep $0 and so on meaningful, and to 19766 # report actual input values of CONFIG_FILES etc. instead of their 19767 # values after options handling. 19768 ac_log=" 19769 This file was extended by xf86-video-sis $as_me 0.12.0, which was 19770 generated by GNU Autoconf 2.69. Invocation command line was 19771 19772 CONFIG_FILES = $CONFIG_FILES 19773 CONFIG_HEADERS = $CONFIG_HEADERS 19774 CONFIG_LINKS = $CONFIG_LINKS 19775 CONFIG_COMMANDS = $CONFIG_COMMANDS 19776 $ $0 $@ 19777 19778 on `(hostname || uname -n) 2>/dev/null | sed 1q` 19779 " 19780 19781 _ACEOF 19782 19783 case $ac_config_files in *" 19784 "*) set x $ac_config_files; shift; ac_config_files=$*;; 19785 esac 19786 19787 case $ac_config_headers in *" 19788 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19789 esac 19790 19791 19792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19793 # Files that config.status was made for. 19794 config_files="$ac_config_files" 19795 config_headers="$ac_config_headers" 19796 config_commands="$ac_config_commands" 19797 19798 _ACEOF 19799 19800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19801 ac_cs_usage="\ 19802 \`$as_me' instantiates files and other configuration actions 19803 from templates according to the current configuration. Unless the files 19804 and actions are specified as TAGs, all are instantiated by default. 19805 19806 Usage: $0 [OPTION]... [TAG]... 19807 19808 -h, --help print this help, then exit 19809 -V, --version print version number and configuration settings, then exit 19810 --config print configuration, then exit 19811 -q, --quiet, --silent 19812 do not print progress messages 19813 -d, --debug don't remove temporary files 19814 --recheck update $as_me by reconfiguring in the same conditions 19815 --file=FILE[:TEMPLATE] 19816 instantiate the configuration file FILE 19817 --header=FILE[:TEMPLATE] 19818 instantiate the configuration header FILE 19819 19820 Configuration files: 19821 $config_files 19822 19823 Configuration headers: 19824 $config_headers 19825 19826 Configuration commands: 19827 $config_commands 19828 19829 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/issues>." 19830 19831 _ACEOF 19832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19833 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19834 ac_cs_version="\\ 19835 xf86-video-sis config.status 0.12.0 19836 configured by $0, generated by GNU Autoconf 2.69, 19837 with options \\"\$ac_cs_config\\" 19838 19839 Copyright (C) 2012 Free Software Foundation, Inc. 19840 This config.status script is free software; the Free Software Foundation 19841 gives unlimited permission to copy, distribute and modify it." 19842 19843 ac_pwd='$ac_pwd' 19844 srcdir='$srcdir' 19845 INSTALL='$INSTALL' 19846 MKDIR_P='$MKDIR_P' 19847 AWK='$AWK' 19848 test -n "\$AWK" || AWK=awk 19849 _ACEOF 19850 19851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19852 # The default lists apply if the user does not specify any file. 19853 ac_need_defaults=: 19854 while test $# != 0 19855 do 19856 case $1 in 19857 --*=?*) 19858 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19859 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19860 ac_shift=: 19861 ;; 19862 --*=) 19863 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19864 ac_optarg= 19865 ac_shift=: 19866 ;; 19867 *) 19868 ac_option=$1 19869 ac_optarg=$2 19870 ac_shift=shift 19871 ;; 19872 esac 19873 19874 case $ac_option in 19875 # Handling of the options. 19876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19877 ac_cs_recheck=: ;; 19878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19879 $as_echo "$ac_cs_version"; exit ;; 19880 --config | --confi | --conf | --con | --co | --c ) 19881 $as_echo "$ac_cs_config"; exit ;; 19882 --debug | --debu | --deb | --de | --d | -d ) 19883 debug=: ;; 19884 --file | --fil | --fi | --f ) 19885 $ac_shift 19886 case $ac_optarg in 19887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19888 '') as_fn_error $? "missing file argument" ;; 19889 esac 19890 as_fn_append CONFIG_FILES " '$ac_optarg'" 19891 ac_need_defaults=false;; 19892 --header | --heade | --head | --hea ) 19893 $ac_shift 19894 case $ac_optarg in 19895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19896 esac 19897 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19898 ac_need_defaults=false;; 19899 --he | --h) 19900 # Conflict between --help and --header 19901 as_fn_error $? "ambiguous option: \`$1' 19902 Try \`$0 --help' for more information.";; 19903 --help | --hel | -h ) 19904 $as_echo "$ac_cs_usage"; exit ;; 19905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19906 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19907 ac_cs_silent=: ;; 19908 19909 # This is an error. 19910 -*) as_fn_error $? "unrecognized option: \`$1' 19911 Try \`$0 --help' for more information." ;; 19912 19913 *) as_fn_append ac_config_targets " $1" 19914 ac_need_defaults=false ;; 19915 19916 esac 19917 shift 19918 done 19919 19920 ac_configure_extra_args= 19921 19922 if $ac_cs_silent; then 19923 exec 6>/dev/null 19924 ac_configure_extra_args="$ac_configure_extra_args --silent" 19925 fi 19926 19927 _ACEOF 19928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19929 if \$ac_cs_recheck; then 19930 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19931 shift 19932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19933 CONFIG_SHELL='$SHELL' 19934 export CONFIG_SHELL 19935 exec "\$@" 19936 fi 19937 19938 _ACEOF 19939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19940 exec 5>>config.log 19941 { 19942 echo 19943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19944 ## Running $as_me. ## 19945 _ASBOX 19946 $as_echo "$ac_log" 19947 } >&5 19948 19949 _ACEOF 19950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19951 # 19952 # INIT-COMMANDS 19953 # 19954 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19955 19956 19957 # The HP-UX ksh and POSIX shell print the target directory to stdout 19958 # if CDPATH is set. 19959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19960 19961 sed_quote_subst='$sed_quote_subst' 19962 double_quote_subst='$double_quote_subst' 19963 delay_variable_subst='$delay_variable_subst' 19964 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19965 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19966 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19967 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19968 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19969 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19970 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19971 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19972 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19973 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19974 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19975 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19976 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19977 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19978 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19979 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19980 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19981 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19982 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19983 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19984 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19985 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19986 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19987 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19988 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19989 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19990 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19991 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19992 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19993 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19994 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19995 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19996 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19997 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19998 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19999 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20000 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20001 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20002 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20003 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20004 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20005 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20006 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20007 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20008 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20009 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20010 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20011 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20012 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20013 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20014 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20015 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20016 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20017 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20018 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20019 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20020 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20021 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20022 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"`' 20023 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20024 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20025 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20026 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20027 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20028 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20029 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20030 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20031 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20032 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20033 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20034 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20035 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20036 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20037 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20038 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20039 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20040 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20041 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20042 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20043 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20044 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20045 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20046 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20047 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20048 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20049 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20050 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20051 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20052 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20053 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20054 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20055 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20056 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20057 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20058 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20059 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20060 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20061 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20062 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20063 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20064 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20065 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20066 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20067 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20068 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20069 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20070 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20071 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20072 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20073 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20074 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20075 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20076 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20077 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20078 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20079 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20080 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20081 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20082 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20083 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20084 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20085 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20086 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20087 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20088 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20089 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20090 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20091 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20092 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20093 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20094 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20095 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20096 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20097 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20098 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20099 20100 LTCC='$LTCC' 20101 LTCFLAGS='$LTCFLAGS' 20102 compiler='$compiler_DEFAULT' 20103 20104 # A function that is used when there is no print builtin or printf. 20105 func_fallback_echo () 20106 { 20107 eval 'cat <<_LTECHO_EOF 20108 \$1 20109 _LTECHO_EOF' 20110 } 20111 20112 # Quote evaled strings. 20113 for var in SHELL \ 20114 ECHO \ 20115 PATH_SEPARATOR \ 20116 SED \ 20117 GREP \ 20118 EGREP \ 20119 FGREP \ 20120 LD \ 20121 NM \ 20122 LN_S \ 20123 lt_SP2NL \ 20124 lt_NL2SP \ 20125 reload_flag \ 20126 OBJDUMP \ 20127 deplibs_check_method \ 20128 file_magic_cmd \ 20129 file_magic_glob \ 20130 want_nocaseglob \ 20131 DLLTOOL \ 20132 sharedlib_from_linklib_cmd \ 20133 AR \ 20134 AR_FLAGS \ 20135 archiver_list_spec \ 20136 STRIP \ 20137 RANLIB \ 20138 CC \ 20139 CFLAGS \ 20140 compiler \ 20141 lt_cv_sys_global_symbol_pipe \ 20142 lt_cv_sys_global_symbol_to_cdecl \ 20143 lt_cv_sys_global_symbol_to_import \ 20144 lt_cv_sys_global_symbol_to_c_name_address \ 20145 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20146 lt_cv_nm_interface \ 20147 nm_file_list_spec \ 20148 lt_cv_truncate_bin \ 20149 lt_prog_compiler_no_builtin_flag \ 20150 lt_prog_compiler_pic \ 20151 lt_prog_compiler_wl \ 20152 lt_prog_compiler_static \ 20153 lt_cv_prog_compiler_c_o \ 20154 need_locks \ 20155 MANIFEST_TOOL \ 20156 DSYMUTIL \ 20157 NMEDIT \ 20158 LIPO \ 20159 OTOOL \ 20160 OTOOL64 \ 20161 shrext_cmds \ 20162 export_dynamic_flag_spec \ 20163 whole_archive_flag_spec \ 20164 compiler_needs_object \ 20165 with_gnu_ld \ 20166 allow_undefined_flag \ 20167 no_undefined_flag \ 20168 hardcode_libdir_flag_spec \ 20169 hardcode_libdir_separator \ 20170 exclude_expsyms \ 20171 include_expsyms \ 20172 file_list_spec \ 20173 variables_saved_for_relink \ 20174 libname_spec \ 20175 library_names_spec \ 20176 soname_spec \ 20177 install_override_mode \ 20178 finish_eval \ 20179 old_striplib \ 20180 striplib; do 20181 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20182 *[\\\\\\\`\\"\\\$]*) 20183 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20184 ;; 20185 *) 20186 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20187 ;; 20188 esac 20189 done 20190 20191 # Double-quote double-evaled strings. 20192 for var in reload_cmds \ 20193 old_postinstall_cmds \ 20194 old_postuninstall_cmds \ 20195 old_archive_cmds \ 20196 extract_expsyms_cmds \ 20197 old_archive_from_new_cmds \ 20198 old_archive_from_expsyms_cmds \ 20199 archive_cmds \ 20200 archive_expsym_cmds \ 20201 module_cmds \ 20202 module_expsym_cmds \ 20203 export_symbols_cmds \ 20204 prelink_cmds \ 20205 postlink_cmds \ 20206 postinstall_cmds \ 20207 postuninstall_cmds \ 20208 finish_cmds \ 20209 sys_lib_search_path_spec \ 20210 configure_time_dlsearch_path \ 20211 configure_time_lt_sys_library_path; do 20212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20213 *[\\\\\\\`\\"\\\$]*) 20214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20215 ;; 20216 *) 20217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20218 ;; 20219 esac 20220 done 20221 20222 ac_aux_dir='$ac_aux_dir' 20223 20224 # See if we are running on zsh, and set the options that allow our 20225 # commands through without removal of \ escapes INIT. 20226 if test -n "\${ZSH_VERSION+set}"; then 20227 setopt NO_GLOB_SUBST 20228 fi 20229 20230 20231 PACKAGE='$PACKAGE' 20232 VERSION='$VERSION' 20233 RM='$RM' 20234 ofile='$ofile' 20235 20236 20237 20238 20239 _ACEOF 20240 20241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20242 20243 # Handling of arguments. 20244 for ac_config_target in $ac_config_targets 20245 do 20246 case $ac_config_target in 20247 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20248 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20249 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20250 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20251 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20252 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20253 20254 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20255 esac 20256 done 20257 20258 20259 # If the user did not use the arguments to specify the items to instantiate, 20260 # then the envvar interface is used. Set only those that are not. 20261 # We use the long form for the default assignment because of an extremely 20262 # bizarre bug on SunOS 4.1.3. 20263 if $ac_need_defaults; then 20264 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20265 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20266 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20267 fi 20268 20269 # Have a temporary directory for convenience. Make it in the build tree 20270 # simply because there is no reason against having it here, and in addition, 20271 # creating and moving files from /tmp can sometimes cause problems. 20272 # Hook for its removal unless debugging. 20273 # Note that there is a small window in which the directory will not be cleaned: 20274 # after its creation but before its name has been assigned to `$tmp'. 20275 $debug || 20276 { 20277 tmp= ac_tmp= 20278 trap 'exit_status=$? 20279 : "${ac_tmp:=$tmp}" 20280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20281 ' 0 20282 trap 'as_fn_exit 1' 1 2 13 15 20283 } 20284 # Create a (secure) tmp directory for tmp files. 20285 20286 { 20287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20288 test -d "$tmp" 20289 } || 20290 { 20291 tmp=./conf$$-$RANDOM 20292 (umask 077 && mkdir "$tmp") 20293 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20294 ac_tmp=$tmp 20295 20296 # Set up the scripts for CONFIG_FILES section. 20297 # No need to generate them if there are no CONFIG_FILES. 20298 # This happens for instance with `./config.status config.h'. 20299 if test -n "$CONFIG_FILES"; then 20300 20301 20302 ac_cr=`echo X | tr X '\015'` 20303 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20304 # But we know of no other shell where ac_cr would be empty at this 20305 # point, so we can use a bashism as a fallback. 20306 if test "x$ac_cr" = x; then 20307 eval ac_cr=\$\'\\r\' 20308 fi 20309 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20310 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20311 ac_cs_awk_cr='\\r' 20312 else 20313 ac_cs_awk_cr=$ac_cr 20314 fi 20315 20316 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20317 _ACEOF 20318 20319 20320 { 20321 echo "cat >conf$$subs.awk <<_ACEOF" && 20322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20323 echo "_ACEOF" 20324 } >conf$$subs.sh || 20325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20326 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20327 ac_delim='%!_!# ' 20328 for ac_last_try in false false false false false :; do 20329 . ./conf$$subs.sh || 20330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20331 20332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20333 if test $ac_delim_n = $ac_delim_num; then 20334 break 20335 elif $ac_last_try; then 20336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20337 else 20338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20339 fi 20340 done 20341 rm -f conf$$subs.sh 20342 20343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20344 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20345 _ACEOF 20346 sed -n ' 20347 h 20348 s/^/S["/; s/!.*/"]=/ 20349 p 20350 g 20351 s/^[^!]*!// 20352 :repl 20353 t repl 20354 s/'"$ac_delim"'$// 20355 t delim 20356 :nl 20357 h 20358 s/\(.\{148\}\)..*/\1/ 20359 t more1 20360 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20361 p 20362 n 20363 b repl 20364 :more1 20365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20366 p 20367 g 20368 s/.\{148\}// 20369 t nl 20370 :delim 20371 h 20372 s/\(.\{148\}\)..*/\1/ 20373 t more2 20374 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20375 p 20376 b 20377 :more2 20378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20379 p 20380 g 20381 s/.\{148\}// 20382 t delim 20383 ' <conf$$subs.awk | sed ' 20384 /^[^""]/{ 20385 N 20386 s/\n// 20387 } 20388 ' >>$CONFIG_STATUS || ac_write_fail=1 20389 rm -f conf$$subs.awk 20390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20391 _ACAWK 20392 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20393 for (key in S) S_is_set[key] = 1 20394 FS = "" 20395 20396 } 20397 { 20398 line = $ 0 20399 nfields = split(line, field, "@") 20400 substed = 0 20401 len = length(field[1]) 20402 for (i = 2; i < nfields; i++) { 20403 key = field[i] 20404 keylen = length(key) 20405 if (S_is_set[key]) { 20406 value = S[key] 20407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20408 len += length(value) + length(field[++i]) 20409 substed = 1 20410 } else 20411 len += 1 + keylen 20412 } 20413 20414 print line 20415 } 20416 20417 _ACAWK 20418 _ACEOF 20419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20420 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20422 else 20423 cat 20424 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20426 _ACEOF 20427 20428 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20429 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20430 # trailing colons and then remove the whole line if VPATH becomes empty 20431 # (actually we leave an empty line to preserve line numbers). 20432 if test "x$srcdir" = x.; then 20433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20434 h 20435 s/// 20436 s/^/:/ 20437 s/[ ]*$/:/ 20438 s/:\$(srcdir):/:/g 20439 s/:\${srcdir}:/:/g 20440 s/:@srcdir@:/:/g 20441 s/^:*// 20442 s/:*$// 20443 x 20444 s/\(=[ ]*\).*/\1/ 20445 G 20446 s/\n// 20447 s/^[^=]*=[ ]*$// 20448 }' 20449 fi 20450 20451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20452 fi # test -n "$CONFIG_FILES" 20453 20454 # Set up the scripts for CONFIG_HEADERS section. 20455 # No need to generate them if there are no CONFIG_HEADERS. 20456 # This happens for instance with `./config.status Makefile'. 20457 if test -n "$CONFIG_HEADERS"; then 20458 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20459 BEGIN { 20460 _ACEOF 20461 20462 # Transform confdefs.h into an awk script `defines.awk', embedded as 20463 # here-document in config.status, that substitutes the proper values into 20464 # config.h.in to produce config.h. 20465 20466 # Create a delimiter string that does not exist in confdefs.h, to ease 20467 # handling of long lines. 20468 ac_delim='%!_!# ' 20469 for ac_last_try in false false :; do 20470 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20471 if test -z "$ac_tt"; then 20472 break 20473 elif $ac_last_try; then 20474 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20475 else 20476 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20477 fi 20478 done 20479 20480 # For the awk script, D is an array of macro values keyed by name, 20481 # likewise P contains macro parameters if any. Preserve backslash 20482 # newline sequences. 20483 20484 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20485 sed -n ' 20486 s/.\{148\}/&'"$ac_delim"'/g 20487 t rset 20488 :rset 20489 s/^[ ]*#[ ]*define[ ][ ]*/ / 20490 t def 20491 d 20492 :def 20493 s/\\$// 20494 t bsnl 20495 s/["\\]/\\&/g 20496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20497 D["\1"]=" \3"/p 20498 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20499 d 20500 :bsnl 20501 s/["\\]/\\&/g 20502 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20503 D["\1"]=" \3\\\\\\n"\\/p 20504 t cont 20505 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20506 t cont 20507 d 20508 :cont 20509 n 20510 s/.\{148\}/&'"$ac_delim"'/g 20511 t clear 20512 :clear 20513 s/\\$// 20514 t bsnlc 20515 s/["\\]/\\&/g; s/^/"/; s/$/"/p 20516 d 20517 :bsnlc 20518 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20519 b cont 20520 ' <confdefs.h | sed ' 20521 s/'"$ac_delim"'/"\\\ 20522 "/g' >>$CONFIG_STATUS || ac_write_fail=1 20523 20524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20525 for (key in D) D_is_set[key] = 1 20526 FS = "" 20527 } 20528 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20529 line = \$ 0 20530 split(line, arg, " ") 20531 if (arg[1] == "#") { 20532 defundef = arg[2] 20533 mac1 = arg[3] 20534 } else { 20535 defundef = substr(arg[1], 2) 20536 mac1 = arg[2] 20537 } 20538 split(mac1, mac2, "(") #) 20539 macro = mac2[1] 20540 prefix = substr(line, 1, index(line, defundef) - 1) 20541 if (D_is_set[macro]) { 20542 # Preserve the white space surrounding the "#". 20543 print prefix "define", macro P[macro] D[macro] 20544 next 20545 } else { 20546 # Replace #undef with comments. This is necessary, for example, 20547 # in the case of _POSIX_SOURCE, which is predefined and required 20548 # on some systems where configure will not decide to define it. 20549 if (defundef == "undef") { 20550 print "/*", prefix defundef, macro, "*/" 20551 next 20552 } 20553 } 20554 } 20555 { print } 20556 _ACAWK 20557 _ACEOF 20558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20559 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20560 fi # test -n "$CONFIG_HEADERS" 20561 20562 20563 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20564 shift 20565 for ac_tag 20566 do 20567 case $ac_tag in 20568 :[FHLC]) ac_mode=$ac_tag; continue;; 20569 esac 20570 case $ac_mode$ac_tag in 20571 :[FHL]*:*);; 20572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20573 :[FH]-) ac_tag=-:-;; 20574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20575 esac 20576 ac_save_IFS=$IFS 20577 IFS=: 20578 set x $ac_tag 20579 IFS=$ac_save_IFS 20580 shift 20581 ac_file=$1 20582 shift 20583 20584 case $ac_mode in 20585 :L) ac_source=$1;; 20586 :[FH]) 20587 ac_file_inputs= 20588 for ac_f 20589 do 20590 case $ac_f in 20591 -) ac_f="$ac_tmp/stdin";; 20592 *) # Look for the file first in the build tree, then in the source tree 20593 # (if the path is not absolute). The absolute path cannot be DOS-style, 20594 # because $ac_f cannot contain `:'. 20595 test -f "$ac_f" || 20596 case $ac_f in 20597 [\\/$]*) false;; 20598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20599 esac || 20600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20601 esac 20602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20603 as_fn_append ac_file_inputs " '$ac_f'" 20604 done 20605 20606 # Let's still pretend it is `configure' which instantiates (i.e., don't 20607 # use $as_me), people would be surprised to read: 20608 # /* config.h. Generated by config.status. */ 20609 configure_input='Generated from '` 20610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20611 `' by configure.' 20612 if test x"$ac_file" != x-; then 20613 configure_input="$ac_file. $configure_input" 20614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20615 $as_echo "$as_me: creating $ac_file" >&6;} 20616 fi 20617 # Neutralize special characters interpreted by sed in replacement strings. 20618 case $configure_input in #( 20619 *\&* | *\|* | *\\* ) 20620 ac_sed_conf_input=`$as_echo "$configure_input" | 20621 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20622 *) ac_sed_conf_input=$configure_input;; 20623 esac 20624 20625 case $ac_tag in 20626 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20628 esac 20629 ;; 20630 esac 20631 20632 ac_dir=`$as_dirname -- "$ac_file" || 20633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20634 X"$ac_file" : 'X\(//\)[^/]' \| \ 20635 X"$ac_file" : 'X\(//\)$' \| \ 20636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20637 $as_echo X"$ac_file" | 20638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20639 s//\1/ 20640 q 20641 } 20642 /^X\(\/\/\)[^/].*/{ 20643 s//\1/ 20644 q 20645 } 20646 /^X\(\/\/\)$/{ 20647 s//\1/ 20648 q 20649 } 20650 /^X\(\/\).*/{ 20651 s//\1/ 20652 q 20653 } 20654 s/.*/./; q'` 20655 as_dir="$ac_dir"; as_fn_mkdir_p 20656 ac_builddir=. 20657 20658 case "$ac_dir" in 20659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20660 *) 20661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20662 # A ".." for each directory in $ac_dir_suffix. 20663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20664 case $ac_top_builddir_sub in 20665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20667 esac ;; 20668 esac 20669 ac_abs_top_builddir=$ac_pwd 20670 ac_abs_builddir=$ac_pwd$ac_dir_suffix 20671 # for backward compatibility: 20672 ac_top_builddir=$ac_top_build_prefix 20673 20674 case $srcdir in 20675 .) # We are building in place. 20676 ac_srcdir=. 20677 ac_top_srcdir=$ac_top_builddir_sub 20678 ac_abs_top_srcdir=$ac_pwd ;; 20679 [\\/]* | ?:[\\/]* ) # Absolute name. 20680 ac_srcdir=$srcdir$ac_dir_suffix; 20681 ac_top_srcdir=$srcdir 20682 ac_abs_top_srcdir=$srcdir ;; 20683 *) # Relative name. 20684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20685 ac_top_srcdir=$ac_top_build_prefix$srcdir 20686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20687 esac 20688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20689 20690 20691 case $ac_mode in 20692 :F) 20693 # 20694 # CONFIG_FILE 20695 # 20696 20697 case $INSTALL in 20698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20700 esac 20701 ac_MKDIR_P=$MKDIR_P 20702 case $MKDIR_P in 20703 [\\/$]* | ?:[\\/]* ) ;; 20704 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20705 esac 20706 _ACEOF 20707 20708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20709 # If the template does not know about datarootdir, expand it. 20710 # FIXME: This hack should be removed a few years after 2.60. 20711 ac_datarootdir_hack=; ac_datarootdir_seen= 20712 ac_sed_dataroot=' 20713 /datarootdir/ { 20714 p 20715 q 20716 } 20717 /@datadir@/p 20718 /@docdir@/p 20719 /@infodir@/p 20720 /@localedir@/p 20721 /@mandir@/p' 20722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20723 *datarootdir*) ac_datarootdir_seen=yes;; 20724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20727 _ACEOF 20728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20729 ac_datarootdir_hack=' 20730 s&@datadir@&$datadir&g 20731 s&@docdir@&$docdir&g 20732 s&@infodir@&$infodir&g 20733 s&@localedir@&$localedir&g 20734 s&@mandir@&$mandir&g 20735 s&\\\${datarootdir}&$datarootdir&g' ;; 20736 esac 20737 _ACEOF 20738 20739 # Neutralize VPATH when `$srcdir' = `.'. 20740 # Shell code in configure.ac might set extrasub. 20741 # FIXME: do we really want to maintain this feature? 20742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20743 ac_sed_extra="$ac_vpsub 20744 $extrasub 20745 _ACEOF 20746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20747 :t 20748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20749 s|@configure_input@|$ac_sed_conf_input|;t t 20750 s&@top_builddir@&$ac_top_builddir_sub&;t t 20751 s&@top_build_prefix@&$ac_top_build_prefix&;t t 20752 s&@srcdir@&$ac_srcdir&;t t 20753 s&@abs_srcdir@&$ac_abs_srcdir&;t t 20754 s&@top_srcdir@&$ac_top_srcdir&;t t 20755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20756 s&@builddir@&$ac_builddir&;t t 20757 s&@abs_builddir@&$ac_abs_builddir&;t t 20758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20759 s&@INSTALL@&$ac_INSTALL&;t t 20760 s&@MKDIR_P@&$ac_MKDIR_P&;t t 20761 $ac_datarootdir_hack 20762 " 20763 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20764 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20765 20766 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20767 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20769 "$ac_tmp/out"`; test -z "$ac_out"; } && 20770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20771 which seems to be undefined. Please make sure it is defined" >&5 20772 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20773 which seems to be undefined. Please make sure it is defined" >&2;} 20774 20775 rm -f "$ac_tmp/stdin" 20776 case $ac_file in 20777 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20778 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20779 esac \ 20780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20781 ;; 20782 :H) 20783 # 20784 # CONFIG_HEADER 20785 # 20786 if test x"$ac_file" != x-; then 20787 { 20788 $as_echo "/* $configure_input */" \ 20789 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20790 } >"$ac_tmp/config.h" \ 20791 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20792 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20794 $as_echo "$as_me: $ac_file is unchanged" >&6;} 20795 else 20796 rm -f "$ac_file" 20797 mv "$ac_tmp/config.h" "$ac_file" \ 20798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20799 fi 20800 else 20801 $as_echo "/* $configure_input */" \ 20802 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20803 || as_fn_error $? "could not create -" "$LINENO" 5 20804 fi 20805 # Compute "$ac_file"'s index in $config_headers. 20806 _am_arg="$ac_file" 20807 _am_stamp_count=1 20808 for _am_header in $config_headers :; do 20809 case $_am_header in 20810 $_am_arg | $_am_arg:* ) 20811 break ;; 20812 * ) 20813 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20814 esac 20815 done 20816 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20817 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20818 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20819 X"$_am_arg" : 'X\(//\)$' \| \ 20820 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20821 $as_echo X"$_am_arg" | 20822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20823 s//\1/ 20824 q 20825 } 20826 /^X\(\/\/\)[^/].*/{ 20827 s//\1/ 20828 q 20829 } 20830 /^X\(\/\/\)$/{ 20831 s//\1/ 20832 q 20833 } 20834 /^X\(\/\).*/{ 20835 s//\1/ 20836 q 20837 } 20838 s/.*/./; q'`/stamp-h$_am_stamp_count 20839 ;; 20840 20841 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20842 $as_echo "$as_me: executing $ac_file commands" >&6;} 20843 ;; 20844 esac 20845 20846 20847 case $ac_file$ac_mode in 20848 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20849 # Older Autoconf quotes --file arguments for eval, but not when files 20850 # are listed without --file. Let's play safe and only enable the eval 20851 # if we detect the quoting. 20852 case $CONFIG_FILES in 20853 *\'*) eval set x "$CONFIG_FILES" ;; 20854 *) set x $CONFIG_FILES ;; 20855 esac 20856 shift 20857 for mf 20858 do 20859 # Strip MF so we end up with the name of the file. 20860 mf=`echo "$mf" | sed -e 's/:.*$//'` 20861 # Check whether this is an Automake generated Makefile or not. 20862 # We used to match only the files named 'Makefile.in', but 20863 # some people rename them; so instead we look at the file content. 20864 # Grep'ing the first line is not enough: some people post-process 20865 # each Makefile.in and add a new line on top of each file to say so. 20866 # Grep'ing the whole file is not good either: AIX grep has a line 20867 # limit of 2048, but all sed's we know have understand at least 4000. 20868 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20869 dirpart=`$as_dirname -- "$mf" || 20870 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20871 X"$mf" : 'X\(//\)[^/]' \| \ 20872 X"$mf" : 'X\(//\)$' \| \ 20873 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20874 $as_echo X"$mf" | 20875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20876 s//\1/ 20877 q 20878 } 20879 /^X\(\/\/\)[^/].*/{ 20880 s//\1/ 20881 q 20882 } 20883 /^X\(\/\/\)$/{ 20884 s//\1/ 20885 q 20886 } 20887 /^X\(\/\).*/{ 20888 s//\1/ 20889 q 20890 } 20891 s/.*/./; q'` 20892 else 20893 continue 20894 fi 20895 # Extract the definition of DEPDIR, am__include, and am__quote 20896 # from the Makefile without running 'make'. 20897 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20898 test -z "$DEPDIR" && continue 20899 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20900 test -z "$am__include" && continue 20901 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20902 # Find all dependency output files, they are included files with 20903 # $(DEPDIR) in their names. We invoke sed twice because it is the 20904 # simplest approach to changing $(DEPDIR) to its actual value in the 20905 # expansion. 20906 for file in `sed -n " 20907 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20908 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20909 # Make sure the directory exists. 20910 test -f "$dirpart/$file" && continue 20911 fdir=`$as_dirname -- "$file" || 20912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20913 X"$file" : 'X\(//\)[^/]' \| \ 20914 X"$file" : 'X\(//\)$' \| \ 20915 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20916 $as_echo X"$file" | 20917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20918 s//\1/ 20919 q 20920 } 20921 /^X\(\/\/\)[^/].*/{ 20922 s//\1/ 20923 q 20924 } 20925 /^X\(\/\/\)$/{ 20926 s//\1/ 20927 q 20928 } 20929 /^X\(\/\).*/{ 20930 s//\1/ 20931 q 20932 } 20933 s/.*/./; q'` 20934 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20935 # echo "creating $dirpart/$file" 20936 echo '# dummy' > "$dirpart/$file" 20937 done 20938 done 20939 } 20940 ;; 20941 "libtool":C) 20942 20943 # See if we are running on zsh, and set the options that allow our 20944 # commands through without removal of \ escapes. 20945 if test -n "${ZSH_VERSION+set}"; then 20946 setopt NO_GLOB_SUBST 20947 fi 20948 20949 cfgfile=${ofile}T 20950 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20951 $RM "$cfgfile" 20952 20953 cat <<_LT_EOF >> "$cfgfile" 20954 #! $SHELL 20955 # Generated automatically by $as_me ($PACKAGE) $VERSION 20956 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 20957 20958 # Provide generalized library-building support services. 20959 # Written by Gordon Matzigkeit, 1996 20960 20961 # Copyright (C) 2014 Free Software Foundation, Inc. 20962 # This is free software; see the source for copying conditions. There is NO 20963 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20964 20965 # GNU Libtool is free software; you can redistribute it and/or modify 20966 # it under the terms of the GNU General Public License as published by 20967 # the Free Software Foundation; either version 2 of of the License, or 20968 # (at your option) any later version. 20969 # 20970 # As a special exception to the GNU General Public License, if you 20971 # distribute this file as part of a program or library that is built 20972 # using GNU Libtool, you may include this file under the same 20973 # distribution terms that you use for the rest of that program. 20974 # 20975 # GNU Libtool is distributed in the hope that it will be useful, but 20976 # WITHOUT ANY WARRANTY; without even the implied warranty of 20977 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20978 # GNU General Public License for more details. 20979 # 20980 # You should have received a copy of the GNU General Public License 20981 # along with this program. If not, see <http://www.gnu.org/licenses/>. 20982 20983 20984 # The names of the tagged configurations supported by this script. 20985 available_tags='' 20986 20987 # Configured defaults for sys_lib_dlsearch_path munging. 20988 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20989 20990 # ### BEGIN LIBTOOL CONFIG 20991 20992 # Whether or not to build static libraries. 20993 build_old_libs=$enable_static 20994 20995 # Which release of libtool.m4 was used? 20996 macro_version=$macro_version 20997 macro_revision=$macro_revision 20998 20999 # Whether or not to build shared libraries. 21000 build_libtool_libs=$enable_shared 21001 21002 # What type of objects to build. 21003 pic_mode=$pic_mode 21004 21005 # Whether or not to optimize for fast installation. 21006 fast_install=$enable_fast_install 21007 21008 # Shared archive member basename,for filename based shared library versioning on AIX. 21009 shared_archive_member_spec=$shared_archive_member_spec 21010 21011 # Shell to use when invoking shell scripts. 21012 SHELL=$lt_SHELL 21013 21014 # An echo program that protects backslashes. 21015 ECHO=$lt_ECHO 21016 21017 # The PATH separator for the build system. 21018 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21019 21020 # The host system. 21021 host_alias=$host_alias 21022 host=$host 21023 host_os=$host_os 21024 21025 # The build system. 21026 build_alias=$build_alias 21027 build=$build 21028 build_os=$build_os 21029 21030 # A sed program that does not truncate output. 21031 SED=$lt_SED 21032 21033 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21034 Xsed="\$SED -e 1s/^X//" 21035 21036 # A grep program that handles long lines. 21037 GREP=$lt_GREP 21038 21039 # An ERE matcher. 21040 EGREP=$lt_EGREP 21041 21042 # A literal string matcher. 21043 FGREP=$lt_FGREP 21044 21045 # A BSD- or MS-compatible name lister. 21046 NM=$lt_NM 21047 21048 # Whether we need soft or hard links. 21049 LN_S=$lt_LN_S 21050 21051 # What is the maximum length of a command? 21052 max_cmd_len=$max_cmd_len 21053 21054 # Object file suffix (normally "o"). 21055 objext=$ac_objext 21056 21057 # Executable file suffix (normally ""). 21058 exeext=$exeext 21059 21060 # whether the shell understands "unset". 21061 lt_unset=$lt_unset 21062 21063 # turn spaces into newlines. 21064 SP2NL=$lt_lt_SP2NL 21065 21066 # turn newlines into spaces. 21067 NL2SP=$lt_lt_NL2SP 21068 21069 # convert \$build file names to \$host format. 21070 to_host_file_cmd=$lt_cv_to_host_file_cmd 21071 21072 # convert \$build files to toolchain format. 21073 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21074 21075 # An object symbol dumper. 21076 OBJDUMP=$lt_OBJDUMP 21077 21078 # Method to check whether dependent libraries are shared objects. 21079 deplibs_check_method=$lt_deplibs_check_method 21080 21081 # Command to use when deplibs_check_method = "file_magic". 21082 file_magic_cmd=$lt_file_magic_cmd 21083 21084 # How to find potential files when deplibs_check_method = "file_magic". 21085 file_magic_glob=$lt_file_magic_glob 21086 21087 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21088 want_nocaseglob=$lt_want_nocaseglob 21089 21090 # DLL creation program. 21091 DLLTOOL=$lt_DLLTOOL 21092 21093 # Command to associate shared and link libraries. 21094 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21095 21096 # The archiver. 21097 AR=$lt_AR 21098 21099 # Flags to create an archive. 21100 AR_FLAGS=$lt_AR_FLAGS 21101 21102 # How to feed a file listing to the archiver. 21103 archiver_list_spec=$lt_archiver_list_spec 21104 21105 # A symbol stripping program. 21106 STRIP=$lt_STRIP 21107 21108 # Commands used to install an old-style archive. 21109 RANLIB=$lt_RANLIB 21110 old_postinstall_cmds=$lt_old_postinstall_cmds 21111 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21112 21113 # Whether to use a lock for old archive extraction. 21114 lock_old_archive_extraction=$lock_old_archive_extraction 21115 21116 # A C compiler. 21117 LTCC=$lt_CC 21118 21119 # LTCC compiler flags. 21120 LTCFLAGS=$lt_CFLAGS 21121 21122 # Take the output of nm and produce a listing of raw symbols and C names. 21123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21124 21125 # Transform the output of nm in a proper C declaration. 21126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21127 21128 # Transform the output of nm into a list of symbols to manually relocate. 21129 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21130 21131 # Transform the output of nm in a C name address pair. 21132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21133 21134 # Transform the output of nm in a C name address pair when lib prefix is needed. 21135 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21136 21137 # The name lister interface. 21138 nm_interface=$lt_lt_cv_nm_interface 21139 21140 # Specify filename containing input files for \$NM. 21141 nm_file_list_spec=$lt_nm_file_list_spec 21142 21143 # The root where to search for dependent libraries,and where our libraries should be installed. 21144 lt_sysroot=$lt_sysroot 21145 21146 # Command to truncate a binary pipe. 21147 lt_truncate_bin=$lt_lt_cv_truncate_bin 21148 21149 # The name of the directory that contains temporary libtool files. 21150 objdir=$objdir 21151 21152 # Used to examine libraries when file_magic_cmd begins with "file". 21153 MAGIC_CMD=$MAGIC_CMD 21154 21155 # Must we lock files when doing compilation? 21156 need_locks=$lt_need_locks 21157 21158 # Manifest tool. 21159 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21160 21161 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21162 DSYMUTIL=$lt_DSYMUTIL 21163 21164 # Tool to change global to local symbols on Mac OS X. 21165 NMEDIT=$lt_NMEDIT 21166 21167 # Tool to manipulate fat objects and archives on Mac OS X. 21168 LIPO=$lt_LIPO 21169 21170 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21171 OTOOL=$lt_OTOOL 21172 21173 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21174 OTOOL64=$lt_OTOOL64 21175 21176 # Old archive suffix (normally "a"). 21177 libext=$libext 21178 21179 # Shared library suffix (normally ".so"). 21180 shrext_cmds=$lt_shrext_cmds 21181 21182 # The commands to extract the exported symbol list from a shared archive. 21183 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21184 21185 # Variables whose values should be saved in libtool wrapper scripts and 21186 # restored at link time. 21187 variables_saved_for_relink=$lt_variables_saved_for_relink 21188 21189 # Do we need the "lib" prefix for modules? 21190 need_lib_prefix=$need_lib_prefix 21191 21192 # Do we need a version for libraries? 21193 need_version=$need_version 21194 21195 # Library versioning type. 21196 version_type=$version_type 21197 21198 # Shared library runtime path variable. 21199 runpath_var=$runpath_var 21200 21201 # Shared library path variable. 21202 shlibpath_var=$shlibpath_var 21203 21204 # Is shlibpath searched before the hard-coded library search path? 21205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21206 21207 # Format of library name prefix. 21208 libname_spec=$lt_libname_spec 21209 21210 # List of archive names. First name is the real one, the rest are links. 21211 # The last name is the one that the linker finds with -lNAME 21212 library_names_spec=$lt_library_names_spec 21213 21214 # The coded name of the library, if different from the real name. 21215 soname_spec=$lt_soname_spec 21216 21217 # Permission mode override for installation of shared libraries. 21218 install_override_mode=$lt_install_override_mode 21219 21220 # Command to use after installation of a shared archive. 21221 postinstall_cmds=$lt_postinstall_cmds 21222 21223 # Command to use after uninstallation of a shared archive. 21224 postuninstall_cmds=$lt_postuninstall_cmds 21225 21226 # Commands used to finish a libtool library installation in a directory. 21227 finish_cmds=$lt_finish_cmds 21228 21229 # As "finish_cmds", except a single script fragment to be evaled but 21230 # not shown. 21231 finish_eval=$lt_finish_eval 21232 21233 # Whether we should hardcode library paths into libraries. 21234 hardcode_into_libs=$hardcode_into_libs 21235 21236 # Compile-time system search path for libraries. 21237 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21238 21239 # Detected run-time system search path for libraries. 21240 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21241 21242 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21243 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21244 21245 # Whether dlopen is supported. 21246 dlopen_support=$enable_dlopen 21247 21248 # Whether dlopen of programs is supported. 21249 dlopen_self=$enable_dlopen_self 21250 21251 # Whether dlopen of statically linked programs is supported. 21252 dlopen_self_static=$enable_dlopen_self_static 21253 21254 # Commands to strip libraries. 21255 old_striplib=$lt_old_striplib 21256 striplib=$lt_striplib 21257 21258 21259 # The linker used to build libraries. 21260 LD=$lt_LD 21261 21262 # How to create reloadable object files. 21263 reload_flag=$lt_reload_flag 21264 reload_cmds=$lt_reload_cmds 21265 21266 # Commands used to build an old-style archive. 21267 old_archive_cmds=$lt_old_archive_cmds 21268 21269 # A language specific compiler. 21270 CC=$lt_compiler 21271 21272 # Is the compiler the GNU compiler? 21273 with_gcc=$GCC 21274 21275 # Compiler flag to turn off builtin functions. 21276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21277 21278 # Additional compiler flags for building library objects. 21279 pic_flag=$lt_lt_prog_compiler_pic 21280 21281 # How to pass a linker flag through the compiler. 21282 wl=$lt_lt_prog_compiler_wl 21283 21284 # Compiler flag to prevent dynamic linking. 21285 link_static_flag=$lt_lt_prog_compiler_static 21286 21287 # Does compiler simultaneously support -c and -o options? 21288 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21289 21290 # Whether or not to add -lc for building shared libraries. 21291 build_libtool_need_lc=$archive_cmds_need_lc 21292 21293 # Whether or not to disallow shared libs when runtime libs are static. 21294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21295 21296 # Compiler flag to allow reflexive dlopens. 21297 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21298 21299 # Compiler flag to generate shared objects directly from archives. 21300 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21301 21302 # Whether the compiler copes with passing no objects directly. 21303 compiler_needs_object=$lt_compiler_needs_object 21304 21305 # Create an old-style archive from a shared archive. 21306 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21307 21308 # Create a temporary old-style archive to link instead of a shared archive. 21309 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21310 21311 # Commands used to build a shared archive. 21312 archive_cmds=$lt_archive_cmds 21313 archive_expsym_cmds=$lt_archive_expsym_cmds 21314 21315 # Commands used to build a loadable module if different from building 21316 # a shared archive. 21317 module_cmds=$lt_module_cmds 21318 module_expsym_cmds=$lt_module_expsym_cmds 21319 21320 # Whether we are building with GNU ld or not. 21321 with_gnu_ld=$lt_with_gnu_ld 21322 21323 # Flag that allows shared libraries with undefined symbols to be built. 21324 allow_undefined_flag=$lt_allow_undefined_flag 21325 21326 # Flag that enforces no undefined symbols. 21327 no_undefined_flag=$lt_no_undefined_flag 21328 21329 # Flag to hardcode \$libdir into a binary during linking. 21330 # This must work even if \$libdir does not exist 21331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21332 21333 # Whether we need a single "-rpath" flag with a separated argument. 21334 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21335 21336 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21337 # DIR into the resulting binary. 21338 hardcode_direct=$hardcode_direct 21339 21340 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21341 # DIR into the resulting binary and the resulting library dependency is 21342 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21343 # library is relocated. 21344 hardcode_direct_absolute=$hardcode_direct_absolute 21345 21346 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21347 # into the resulting binary. 21348 hardcode_minus_L=$hardcode_minus_L 21349 21350 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21351 # into the resulting binary. 21352 hardcode_shlibpath_var=$hardcode_shlibpath_var 21353 21354 # Set to "yes" if building a shared library automatically hardcodes DIR 21355 # into the library and all subsequent libraries and executables linked 21356 # against it. 21357 hardcode_automatic=$hardcode_automatic 21358 21359 # Set to yes if linker adds runtime paths of dependent libraries 21360 # to runtime path list. 21361 inherit_rpath=$inherit_rpath 21362 21363 # Whether libtool must link a program against all its dependency libraries. 21364 link_all_deplibs=$link_all_deplibs 21365 21366 # Set to "yes" if exported symbols are required. 21367 always_export_symbols=$always_export_symbols 21368 21369 # The commands to list exported symbols. 21370 export_symbols_cmds=$lt_export_symbols_cmds 21371 21372 # Symbols that should not be listed in the preloaded symbols. 21373 exclude_expsyms=$lt_exclude_expsyms 21374 21375 # Symbols that must always be exported. 21376 include_expsyms=$lt_include_expsyms 21377 21378 # Commands necessary for linking programs (against libraries) with templates. 21379 prelink_cmds=$lt_prelink_cmds 21380 21381 # Commands necessary for finishing linking programs. 21382 postlink_cmds=$lt_postlink_cmds 21383 21384 # Specify filename containing input files. 21385 file_list_spec=$lt_file_list_spec 21386 21387 # How to hardcode a shared library path into an executable. 21388 hardcode_action=$hardcode_action 21389 21390 # ### END LIBTOOL CONFIG 21391 21392 _LT_EOF 21393 21394 cat <<'_LT_EOF' >> "$cfgfile" 21395 21396 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21397 21398 # func_munge_path_list VARIABLE PATH 21399 # ----------------------------------- 21400 # VARIABLE is name of variable containing _space_ separated list of 21401 # directories to be munged by the contents of PATH, which is string 21402 # having a format: 21403 # "DIR[:DIR]:" 21404 # string "DIR[ DIR]" will be prepended to VARIABLE 21405 # ":DIR[:DIR]" 21406 # string "DIR[ DIR]" will be appended to VARIABLE 21407 # "DIRP[:DIRP]::[DIRA:]DIRA" 21408 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21409 # "DIRA[ DIRA]" will be appended to VARIABLE 21410 # "DIR[:DIR]" 21411 # VARIABLE will be replaced by "DIR[ DIR]" 21412 func_munge_path_list () 21413 { 21414 case x$2 in 21415 x) 21416 ;; 21417 *:) 21418 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21419 ;; 21420 x:*) 21421 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21422 ;; 21423 *::*) 21424 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21425 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21426 ;; 21427 *) 21428 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21429 ;; 21430 esac 21431 } 21432 21433 21434 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21435 func_cc_basename () 21436 { 21437 for cc_temp in $*""; do 21438 case $cc_temp in 21439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21441 \-*) ;; 21442 *) break;; 21443 esac 21444 done 21445 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21446 } 21447 21448 21449 # ### END FUNCTIONS SHARED WITH CONFIGURE 21450 21451 _LT_EOF 21452 21453 case $host_os in 21454 aix3*) 21455 cat <<\_LT_EOF >> "$cfgfile" 21456 # AIX sometimes has problems with the GCC collect2 program. For some 21457 # reason, if we set the COLLECT_NAMES environment variable, the problems 21458 # vanish in a puff of smoke. 21459 if test set != "${COLLECT_NAMES+set}"; then 21460 COLLECT_NAMES= 21461 export COLLECT_NAMES 21462 fi 21463 _LT_EOF 21464 ;; 21465 esac 21466 21467 21468 ltmain=$ac_aux_dir/ltmain.sh 21469 21470 21471 # We use sed instead of cat because bash on DJGPP gets confused if 21472 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21473 # text mode, it properly converts lines to CR/LF. This bash problem 21474 # is reportedly fixed, but why not run on old versions too? 21475 sed '$q' "$ltmain" >> "$cfgfile" \ 21476 || (rm -f "$cfgfile"; exit 1) 21477 21478 mv -f "$cfgfile" "$ofile" || 21479 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21480 chmod +x "$ofile" 21481 21482 ;; 21483 21484 esac 21485 done # for ac_tag 21486 21487 21488 as_fn_exit 0 21489 _ACEOF 21490 ac_clean_files=$ac_clean_files_save 21491 21492 test $ac_write_fail = 0 || 21493 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21494 21495 21496 # configure is writing to config.log, and then calls config.status. 21497 # config.status does its own redirection, appending to config.log. 21498 # Unfortunately, on DOS this fails, as config.log is still kept open 21499 # by configure, so config.status won't be able to write to it; its 21500 # output is simply discarded. So we exec the FD to /dev/null, 21501 # effectively closing config.log, so it can be properly (re)opened and 21502 # appended to by config.status. When coming back to configure, we 21503 # need to make the FD available again. 21504 if test "$no_create" != yes; then 21505 ac_cs_success=: 21506 ac_config_status_args= 21507 test "$silent" = yes && 21508 ac_config_status_args="$ac_config_status_args --quiet" 21509 exec 5>/dev/null 21510 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21511 exec 5>>config.log 21512 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21513 # would make configure fail if this is the last instruction. 21514 $ac_cs_success || as_fn_exit 1 21515 fi 21516 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21518 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21519 fi 21520 21521