1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xf86-video-s3virge 1.11.1. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 195 if (eval "$as_required") 2>/dev/null 196 then : 197 as_have_required=yes 198 else $as_nop 199 as_have_required=no 200 fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202 then : 203 204 else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206 as_found=false 207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208 do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223 then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226 then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 IFS=$as_save_IFS 235 if $as_found 236 then : 237 238 else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241 then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243 fi 244 fi 245 246 247 if test "x$CONFIG_SHELL" != x 248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno 271 then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/-/issues 280 $0: about your system, including any error possibly output 281 $0: before this message. Then install a modern shell, or 282 $0: manually run the script under such a shell if you do 283 $0: have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='xf86-video-s3virge' 624 PACKAGE_TARNAME='xf86-video-s3virge' 625 PACKAGE_VERSION='1.11.1' 626 PACKAGE_STRING='xf86-video-s3virge 1.11.1' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/-/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="Makefile.am" 631 # Factoring default headers for most tests. 632 ac_includes_default="\ 633 #include <stddef.h> 634 #ifdef HAVE_STDIO_H 635 # include <stdio.h> 636 #endif 637 #ifdef HAVE_STDLIB_H 638 # include <stdlib.h> 639 #endif 640 #ifdef HAVE_STRING_H 641 # include <string.h> 642 #endif 643 #ifdef HAVE_INTTYPES_H 644 # include <inttypes.h> 645 #endif 646 #ifdef HAVE_STDINT_H 647 # include <stdint.h> 648 #endif 649 #ifdef HAVE_STRINGS_H 650 # include <strings.h> 651 #endif 652 #ifdef HAVE_SYS_TYPES_H 653 # include <sys/types.h> 654 #endif 655 #ifdef HAVE_SYS_STAT_H 656 # include <sys/stat.h> 657 #endif 658 #ifdef HAVE_UNISTD_H 659 # include <unistd.h> 660 #endif" 661 662 ac_header_c_list= 663 ac_subst_vars='am__EXEEXT_FALSE 664 am__EXEEXT_TRUE 665 LTLIBOBJS 666 LIBOBJS 667 DRIVER_NAME 668 moduledir 669 XAA_FALSE 670 XAA_TRUE 671 XSERVER_LIBPCIACCESS_FALSE 672 XSERVER_LIBPCIACCESS_TRUE 673 PCIACCESS_LIBS 674 PCIACCESS_CFLAGS 675 HAVE_XEXTPROTO_71_FALSE 676 HAVE_XEXTPROTO_71_TRUE 677 XEXT_LIBS 678 XEXT_CFLAGS 679 XORG_LIBS 680 XORG_CFLAGS 681 LT_SYS_LIBRARY_PATH 682 OTOOL64 683 OTOOL 684 LIPO 685 NMEDIT 686 DSYMUTIL 687 MANIFEST_TOOL 688 RANLIB 689 ac_ct_AR 690 AR 691 DLLTOOL 692 OBJDUMP 693 FILECMD 694 LN_S 695 NM 696 ac_ct_DUMPBIN 697 DUMPBIN 698 LD 699 FGREP 700 EGREP 701 GREP 702 LIBTOOL 703 MAN_SUBSTS 704 XORG_MAN_PAGE 705 ADMIN_MAN_DIR 706 DRIVER_MAN_DIR 707 MISC_MAN_DIR 708 FILE_MAN_DIR 709 LIB_MAN_DIR 710 APP_MAN_DIR 711 ADMIN_MAN_SUFFIX 712 DRIVER_MAN_SUFFIX 713 MISC_MAN_SUFFIX 714 FILE_MAN_SUFFIX 715 LIB_MAN_SUFFIX 716 APP_MAN_SUFFIX 717 SED 718 host_os 719 host_vendor 720 host_cpu 721 host 722 build_os 723 build_vendor 724 build_cpu 725 build 726 INSTALL_CMD 727 PKG_CONFIG_LIBDIR 728 PKG_CONFIG_PATH 729 PKG_CONFIG 730 CHANGELOG_CMD 731 STRICT_CFLAGS 732 CWARNFLAGS 733 BASE_CFLAGS 734 am__fastdepCC_FALSE 735 am__fastdepCC_TRUE 736 CCDEPMODE 737 am__nodep 738 AMDEPBACKSLASH 739 AMDEP_FALSE 740 AMDEP_TRUE 741 am__include 742 DEPDIR 743 OBJEXT 744 EXEEXT 745 ac_ct_CC 746 CPPFLAGS 747 LDFLAGS 748 CFLAGS 749 CC 750 AM_BACKSLASH 751 AM_DEFAULT_VERBOSITY 752 AM_DEFAULT_V 753 AM_V 754 CSCOPE 755 ETAGS 756 CTAGS 757 am__untar 758 am__tar 759 AMTAR 760 am__leading_dot 761 SET_MAKE 762 AWK 763 mkdir_p 764 MKDIR_P 765 INSTALL_STRIP_PROGRAM 766 STRIP 767 install_sh 768 MAKEINFO 769 AUTOHEADER 770 AUTOMAKE 771 AUTOCONF 772 ACLOCAL 773 VERSION 774 PACKAGE 775 CYGPATH_W 776 am__isrc 777 INSTALL_DATA 778 INSTALL_SCRIPT 779 INSTALL_PROGRAM 780 target_alias 781 host_alias 782 build_alias 783 LIBS 784 ECHO_T 785 ECHO_N 786 ECHO_C 787 DEFS 788 mandir 789 localedir 790 libdir 791 psdir 792 pdfdir 793 dvidir 794 htmldir 795 infodir 796 docdir 797 oldincludedir 798 includedir 799 runstatedir 800 localstatedir 801 sharedstatedir 802 sysconfdir 803 datadir 804 datarootdir 805 libexecdir 806 sbindir 807 bindir 808 program_transform_name 809 prefix 810 exec_prefix 811 PACKAGE_URL 812 PACKAGE_BUGREPORT 813 PACKAGE_STRING 814 PACKAGE_VERSION 815 PACKAGE_TARNAME 816 PACKAGE_NAME 817 PATH_SEPARATOR 818 SHELL 819 am__quote' 820 ac_subst_files='' 821 ac_user_opts=' 822 enable_option_checking 823 enable_silent_rules 824 enable_dependency_tracking 825 enable_selective_werror 826 enable_strict_compilation 827 enable_static 828 enable_shared 829 with_pic 830 enable_fast_install 831 with_aix_soname 832 with_gnu_ld 833 with_sysroot 834 enable_libtool_lock 835 with_xorg_module_dir 836 enable_xaa 837 ' 838 ac_precious_vars='build_alias 839 host_alias 840 target_alias 841 CC 842 CFLAGS 843 LDFLAGS 844 LIBS 845 CPPFLAGS 846 PKG_CONFIG 847 PKG_CONFIG_PATH 848 PKG_CONFIG_LIBDIR 849 LT_SYS_LIBRARY_PATH 850 XORG_CFLAGS 851 XORG_LIBS 852 XEXT_CFLAGS 853 XEXT_LIBS 854 PCIACCESS_CFLAGS 855 PCIACCESS_LIBS' 856 857 858 # Initialize some variables set by options. 859 ac_init_help= 860 ac_init_version=false 861 ac_unrecognized_opts= 862 ac_unrecognized_sep= 863 # The variables have the same names as the options, with 864 # dashes changed to underlines. 865 cache_file=/dev/null 866 exec_prefix=NONE 867 no_create= 868 no_recursion= 869 prefix=NONE 870 program_prefix=NONE 871 program_suffix=NONE 872 program_transform_name=s,x,x, 873 silent= 874 site= 875 srcdir= 876 verbose= 877 x_includes=NONE 878 x_libraries=NONE 879 880 # Installation directory options. 881 # These are left unexpanded so users can "make install exec_prefix=/foo" 882 # and all the variables that are supposed to be based on exec_prefix 883 # by default will actually change. 884 # Use braces instead of parens because sh, perl, etc. also accept them. 885 # (The list follows the same order as the GNU Coding Standards.) 886 bindir='${exec_prefix}/bin' 887 sbindir='${exec_prefix}/sbin' 888 libexecdir='${exec_prefix}/libexec' 889 datarootdir='${prefix}/share' 890 datadir='${datarootdir}' 891 sysconfdir='${prefix}/etc' 892 sharedstatedir='${prefix}/com' 893 localstatedir='${prefix}/var' 894 runstatedir='${localstatedir}/run' 895 includedir='${prefix}/include' 896 oldincludedir='/usr/include' 897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 898 infodir='${datarootdir}/info' 899 htmldir='${docdir}' 900 dvidir='${docdir}' 901 pdfdir='${docdir}' 902 psdir='${docdir}' 903 libdir='${exec_prefix}/lib' 904 localedir='${datarootdir}/locale' 905 mandir='${datarootdir}/man' 906 907 ac_prev= 908 ac_dashdash= 909 for ac_option 910 do 911 # If the previous option needs an argument, assign it. 912 if test -n "$ac_prev"; then 913 eval $ac_prev=\$ac_option 914 ac_prev= 915 continue 916 fi 917 918 case $ac_option in 919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 920 *=) ac_optarg= ;; 921 *) ac_optarg=yes ;; 922 esac 923 924 case $ac_dashdash$ac_option in 925 --) 926 ac_dashdash=yes ;; 927 928 -bindir | --bindir | --bindi | --bind | --bin | --bi) 929 ac_prev=bindir ;; 930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 931 bindir=$ac_optarg ;; 932 933 -build | --build | --buil | --bui | --bu) 934 ac_prev=build_alias ;; 935 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 936 build_alias=$ac_optarg ;; 937 938 -cache-file | --cache-file | --cache-fil | --cache-fi \ 939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 940 ac_prev=cache_file ;; 941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 943 cache_file=$ac_optarg ;; 944 945 --config-cache | -C) 946 cache_file=config.cache ;; 947 948 -datadir | --datadir | --datadi | --datad) 949 ac_prev=datadir ;; 950 -datadir=* | --datadir=* | --datadi=* | --datad=*) 951 datadir=$ac_optarg ;; 952 953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 954 | --dataroo | --dataro | --datar) 955 ac_prev=datarootdir ;; 956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 958 datarootdir=$ac_optarg ;; 959 960 -disable-* | --disable-*) 961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 962 # Reject names that are not valid shell variable names. 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 964 as_fn_error $? "invalid feature name: \`$ac_useropt'" 965 ac_useropt_orig=$ac_useropt 966 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 967 case $ac_user_opts in 968 *" 969 "enable_$ac_useropt" 970 "*) ;; 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 972 ac_unrecognized_sep=', ';; 973 esac 974 eval enable_$ac_useropt=no ;; 975 976 -docdir | --docdir | --docdi | --doc | --do) 977 ac_prev=docdir ;; 978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 979 docdir=$ac_optarg ;; 980 981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 982 ac_prev=dvidir ;; 983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 984 dvidir=$ac_optarg ;; 985 986 -enable-* | --enable-*) 987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 988 # Reject names that are not valid shell variable names. 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 990 as_fn_error $? "invalid feature name: \`$ac_useropt'" 991 ac_useropt_orig=$ac_useropt 992 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 993 case $ac_user_opts in 994 *" 995 "enable_$ac_useropt" 996 "*) ;; 997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 998 ac_unrecognized_sep=', ';; 999 esac 1000 eval enable_$ac_useropt=\$ac_optarg ;; 1001 1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1004 | --exec | --exe | --ex) 1005 ac_prev=exec_prefix ;; 1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1008 | --exec=* | --exe=* | --ex=*) 1009 exec_prefix=$ac_optarg ;; 1010 1011 -gas | --gas | --ga | --g) 1012 # Obsolete; use --with-gas. 1013 with_gas=yes ;; 1014 1015 -help | --help | --hel | --he | -h) 1016 ac_init_help=long ;; 1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1018 ac_init_help=recursive ;; 1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1020 ac_init_help=short ;; 1021 1022 -host | --host | --hos | --ho) 1023 ac_prev=host_alias ;; 1024 -host=* | --host=* | --hos=* | --ho=*) 1025 host_alias=$ac_optarg ;; 1026 1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1028 ac_prev=htmldir ;; 1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1030 | --ht=*) 1031 htmldir=$ac_optarg ;; 1032 1033 -includedir | --includedir | --includedi | --included | --include \ 1034 | --includ | --inclu | --incl | --inc) 1035 ac_prev=includedir ;; 1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1037 | --includ=* | --inclu=* | --incl=* | --inc=*) 1038 includedir=$ac_optarg ;; 1039 1040 -infodir | --infodir | --infodi | --infod | --info | --inf) 1041 ac_prev=infodir ;; 1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1043 infodir=$ac_optarg ;; 1044 1045 -libdir | --libdir | --libdi | --libd) 1046 ac_prev=libdir ;; 1047 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1048 libdir=$ac_optarg ;; 1049 1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1051 | --libexe | --libex | --libe) 1052 ac_prev=libexecdir ;; 1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1054 | --libexe=* | --libex=* | --libe=*) 1055 libexecdir=$ac_optarg ;; 1056 1057 -localedir | --localedir | --localedi | --localed | --locale) 1058 ac_prev=localedir ;; 1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1060 localedir=$ac_optarg ;; 1061 1062 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1063 | --localstate | --localstat | --localsta | --localst | --locals) 1064 ac_prev=localstatedir ;; 1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1067 localstatedir=$ac_optarg ;; 1068 1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1070 ac_prev=mandir ;; 1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1072 mandir=$ac_optarg ;; 1073 1074 -nfp | --nfp | --nf) 1075 # Obsolete; use --without-fp. 1076 with_fp=no ;; 1077 1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1079 | --no-cr | --no-c | -n) 1080 no_create=yes ;; 1081 1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1084 no_recursion=yes ;; 1085 1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1088 | --oldin | --oldi | --old | --ol | --o) 1089 ac_prev=oldincludedir ;; 1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1093 oldincludedir=$ac_optarg ;; 1094 1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1096 ac_prev=prefix ;; 1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1098 prefix=$ac_optarg ;; 1099 1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1101 | --program-pre | --program-pr | --program-p) 1102 ac_prev=program_prefix ;; 1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1105 program_prefix=$ac_optarg ;; 1106 1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1108 | --program-suf | --program-su | --program-s) 1109 ac_prev=program_suffix ;; 1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1112 program_suffix=$ac_optarg ;; 1113 1114 -program-transform-name | --program-transform-name \ 1115 | --program-transform-nam | --program-transform-na \ 1116 | --program-transform-n | --program-transform- \ 1117 | --program-transform | --program-transfor \ 1118 | --program-transfo | --program-transf \ 1119 | --program-trans | --program-tran \ 1120 | --progr-tra | --program-tr | --program-t) 1121 ac_prev=program_transform_name ;; 1122 -program-transform-name=* | --program-transform-name=* \ 1123 | --program-transform-nam=* | --program-transform-na=* \ 1124 | --program-transform-n=* | --program-transform-=* \ 1125 | --program-transform=* | --program-transfor=* \ 1126 | --program-transfo=* | --program-transf=* \ 1127 | --program-trans=* | --program-tran=* \ 1128 | --progr-tra=* | --program-tr=* | --program-t=*) 1129 program_transform_name=$ac_optarg ;; 1130 1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1132 ac_prev=pdfdir ;; 1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1134 pdfdir=$ac_optarg ;; 1135 1136 -psdir | --psdir | --psdi | --psd | --ps) 1137 ac_prev=psdir ;; 1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1139 psdir=$ac_optarg ;; 1140 1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1142 | -silent | --silent | --silen | --sile | --sil) 1143 silent=yes ;; 1144 1145 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1146 | --runstate | --runstat | --runsta | --runst | --runs \ 1147 | --run | --ru | --r) 1148 ac_prev=runstatedir ;; 1149 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1150 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1151 | --run=* | --ru=* | --r=*) 1152 runstatedir=$ac_optarg ;; 1153 1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1155 ac_prev=sbindir ;; 1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1157 | --sbi=* | --sb=*) 1158 sbindir=$ac_optarg ;; 1159 1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1162 | --sharedst | --shareds | --shared | --share | --shar \ 1163 | --sha | --sh) 1164 ac_prev=sharedstatedir ;; 1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1168 | --sha=* | --sh=*) 1169 sharedstatedir=$ac_optarg ;; 1170 1171 -site | --site | --sit) 1172 ac_prev=site ;; 1173 -site=* | --site=* | --sit=*) 1174 site=$ac_optarg ;; 1175 1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1177 ac_prev=srcdir ;; 1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1179 srcdir=$ac_optarg ;; 1180 1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1182 | --syscon | --sysco | --sysc | --sys | --sy) 1183 ac_prev=sysconfdir ;; 1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1186 sysconfdir=$ac_optarg ;; 1187 1188 -target | --target | --targe | --targ | --tar | --ta | --t) 1189 ac_prev=target_alias ;; 1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1191 target_alias=$ac_optarg ;; 1192 1193 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1194 verbose=yes ;; 1195 1196 -version | --version | --versio | --versi | --vers | -V) 1197 ac_init_version=: ;; 1198 1199 -with-* | --with-*) 1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1201 # Reject names that are not valid shell variable names. 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1203 as_fn_error $? "invalid package name: \`$ac_useropt'" 1204 ac_useropt_orig=$ac_useropt 1205 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1206 case $ac_user_opts in 1207 *" 1208 "with_$ac_useropt" 1209 "*) ;; 1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1211 ac_unrecognized_sep=', ';; 1212 esac 1213 eval with_$ac_useropt=\$ac_optarg ;; 1214 1215 -without-* | --without-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: \`$ac_useropt'" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224 "with_$ac_useropt" 1225 "*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1250 Try \`$0 --help' for more information" 1251 ;; 1252 1253 *=*) 1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1255 # Reject names that are not valid shell variable names. 1256 case $ac_envvar in #( 1257 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1259 esac 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1269 ;; 1270 1271 esac 1272 done 1273 1274 if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 as_fn_error $? "missing argument to $ac_option" 1277 fi 1278 1279 if test -n "$ac_unrecognized_opts"; then 1280 case $enable_option_checking in 1281 no) ;; 1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1283 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1284 esac 1285 fi 1286 1287 # Check all directory arguments for consistency. 1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1289 datadir sysconfdir sharedstatedir localstatedir includedir \ 1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1291 libdir localedir mandir runstatedir 1292 do 1293 eval ac_val=\$$ac_var 1294 # Remove trailing slashes. 1295 case $ac_val in 1296 */ ) 1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1298 eval $ac_var=\$ac_val;; 1299 esac 1300 # Be sure to have absolute directory names. 1301 case $ac_val in 1302 [\\/$]* | ?:[\\/]* ) continue;; 1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1304 esac 1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1306 done 1307 1308 # There might be people who depend on the old broken behavior: `$host' 1309 # used to hold the argument of --host etc. 1310 # FIXME: To remove some day. 1311 build=$build_alias 1312 host=$host_alias 1313 target=$target_alias 1314 1315 # FIXME: To remove some day. 1316 if test "x$host_alias" != x; then 1317 if test "x$build_alias" = x; then 1318 cross_compiling=maybe 1319 elif test "x$build_alias" != "x$host_alias"; then 1320 cross_compiling=yes 1321 fi 1322 fi 1323 1324 ac_tool_prefix= 1325 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1326 1327 test "$silent" = yes && exec 6>/dev/null 1328 1329 1330 ac_pwd=`pwd` && test -n "$ac_pwd" && 1331 ac_ls_di=`ls -di .` && 1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1333 as_fn_error $? "working directory cannot be determined" 1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1335 as_fn_error $? "pwd does not report name of working directory" 1336 1337 1338 # Find the source files, if location was not specified. 1339 if test -z "$srcdir"; then 1340 ac_srcdir_defaulted=yes 1341 # Try the directory containing this script, then the parent directory. 1342 ac_confdir=`$as_dirname -- "$as_myself" || 1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1344 X"$as_myself" : 'X\(//\)[^/]' \| \ 1345 X"$as_myself" : 'X\(//\)$' \| \ 1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1347 printf "%s\n" X"$as_myself" | 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)[^/].*/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\).*/{ 1361 s//\1/ 1362 q 1363 } 1364 s/.*/./; q'` 1365 srcdir=$ac_confdir 1366 if test ! -r "$srcdir/$ac_unique_file"; then 1367 srcdir=.. 1368 fi 1369 else 1370 ac_srcdir_defaulted=no 1371 fi 1372 if test ! -r "$srcdir/$ac_unique_file"; then 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1375 fi 1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1377 ac_abs_confdir=`( 1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1379 pwd)` 1380 # When building in place, set srcdir=. 1381 if test "$ac_abs_confdir" = "$ac_pwd"; then 1382 srcdir=. 1383 fi 1384 # Remove unnecessary trailing slashes from srcdir. 1385 # Double slashes in file names in object file debugging info 1386 # mess up M-x gdb in Emacs. 1387 case $srcdir in 1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1389 esac 1390 for ac_var in $ac_precious_vars; do 1391 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_env_${ac_var}_value=\$${ac_var} 1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1395 done 1396 1397 # 1398 # Report the --help message. 1399 # 1400 if test "$ac_init_help" = "long"; then 1401 # Omit some internal or obsolete options to make the list less imposing. 1402 # This message is too long to be a string in the A/UX 3.1 sh. 1403 cat <<_ACEOF 1404 \`configure' configures xf86-video-s3virge 1.11.1 to adapt to many kinds of systems. 1405 1406 Usage: $0 [OPTION]... [VAR=VALUE]... 1407 1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1409 VAR=VALUE. See below for descriptions of some of the useful variables. 1410 1411 Defaults for the options are specified in brackets. 1412 1413 Configuration: 1414 -h, --help display this help and exit 1415 --help=short display options specific to this package 1416 --help=recursive display the short help of all the included packages 1417 -V, --version display version information and exit 1418 -q, --quiet, --silent do not print \`checking ...' messages 1419 --cache-file=FILE cache test results in FILE [disabled] 1420 -C, --config-cache alias for \`--cache-file=config.cache' 1421 -n, --no-create do not create output files 1422 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1423 1424 Installation directories: 1425 --prefix=PREFIX install architecture-independent files in PREFIX 1426 [$ac_default_prefix] 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1428 [PREFIX] 1429 1430 By default, \`make install' will install all the files in 1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1433 for instance \`--prefix=\$HOME'. 1434 1435 For better control, use the options below. 1436 1437 Fine tuning of the installation directories: 1438 --bindir=DIR user executables [EPREFIX/bin] 1439 --sbindir=DIR system admin executables [EPREFIX/sbin] 1440 --libexecdir=DIR program executables [EPREFIX/libexec] 1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1444 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1445 --libdir=DIR object code libraries [EPREFIX/lib] 1446 --includedir=DIR C header files [PREFIX/include] 1447 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1450 --infodir=DIR info documentation [DATAROOTDIR/info] 1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1452 --mandir=DIR man documentation [DATAROOTDIR/man] 1453 --docdir=DIR documentation root 1454 [DATAROOTDIR/doc/xf86-video-s3virge] 1455 --htmldir=DIR html documentation [DOCDIR] 1456 --dvidir=DIR dvi documentation [DOCDIR] 1457 --pdfdir=DIR pdf documentation [DOCDIR] 1458 --psdir=DIR ps documentation [DOCDIR] 1459 _ACEOF 1460 1461 cat <<\_ACEOF 1462 1463 Program names: 1464 --program-prefix=PREFIX prepend PREFIX to installed program names 1465 --program-suffix=SUFFIX append SUFFIX to installed program names 1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1467 1468 System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471 _ACEOF 1472 fi 1473 1474 if test -n "$ac_init_help"; then 1475 case $ac_init_help in 1476 short | recursive ) echo "Configuration of xf86-video-s3virge 1.11.1:";; 1477 esac 1478 cat <<\_ACEOF 1479 1480 Optional Features: 1481 --disable-option-checking ignore unrecognized --enable/--with options 1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1484 --enable-silent-rules less verbose build output (undo: "make V=1") 1485 --disable-silent-rules verbose build output (undo: "make V=0") 1486 --enable-dependency-tracking 1487 do not reject slow dependency extractors 1488 --disable-dependency-tracking 1489 speeds up one-time build 1490 --disable-selective-werror 1491 Turn off selective compiler errors. (default: 1492 enabled) 1493 --enable-strict-compilation 1494 Enable all warnings from compiler and make them 1495 errors (default: disabled) 1496 --enable-static[=PKGS] build static libraries [default=no] 1497 --enable-shared[=PKGS] build shared libraries [default=yes] 1498 --enable-fast-install[=PKGS] 1499 optimize for fast installation [default=yes] 1500 --disable-libtool-lock avoid locking (might break parallel builds) 1501 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1502 [default=auto] 1503 1504 Optional Packages: 1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1507 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1508 both] 1509 --with-aix-soname=aix|svr4|both 1510 shared library versioning (aka "SONAME") variant to 1511 provide on AIX, [default=aix]. 1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1513 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1514 compiler's sysroot if not specified). 1515 --with-xorg-module-dir=DIR 1516 Default xorg module directory 1517 [[default=$libdir/xorg/modules]] 1518 1519 Some influential environment variables: 1520 CC C compiler command 1521 CFLAGS C compiler flags 1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 nonstandard directory <lib dir> 1524 LIBS libraries to pass to the linker, e.g. -l<library> 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 you have headers in a nonstandard directory <include dir> 1527 PKG_CONFIG path to pkg-config utility 1528 PKG_CONFIG_PATH 1529 directories to add to pkg-config's search path 1530 PKG_CONFIG_LIBDIR 1531 path overriding pkg-config's built-in search path 1532 LT_SYS_LIBRARY_PATH 1533 User-defined run-time library search path. 1534 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1535 XORG_LIBS linker flags for XORG, overriding pkg-config 1536 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1537 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1538 PCIACCESS_CFLAGS 1539 C compiler flags for PCIACCESS, overriding pkg-config 1540 PCIACCESS_LIBS 1541 linker flags for PCIACCESS, overriding pkg-config 1542 1543 Use these variables to override the choices made by `configure' or to help 1544 it to find libraries and programs with nonstandard names/locations. 1545 1546 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/-/issues>. 1547 _ACEOF 1548 ac_status=$? 1549 fi 1550 1551 if test "$ac_init_help" = "recursive"; then 1552 # If there are subdirs, report their specific --help. 1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1554 test -d "$ac_dir" || 1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1556 continue 1557 ac_builddir=. 1558 1559 case "$ac_dir" in 1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561 *) 1562 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1563 # A ".." for each directory in $ac_dir_suffix. 1564 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1565 case $ac_top_builddir_sub in 1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1568 esac ;; 1569 esac 1570 ac_abs_top_builddir=$ac_pwd 1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1572 # for backward compatibility: 1573 ac_top_builddir=$ac_top_build_prefix 1574 1575 case $srcdir in 1576 .) # We are building in place. 1577 ac_srcdir=. 1578 ac_top_srcdir=$ac_top_builddir_sub 1579 ac_abs_top_srcdir=$ac_pwd ;; 1580 [\\/]* | ?:[\\/]* ) # Absolute name. 1581 ac_srcdir=$srcdir$ac_dir_suffix; 1582 ac_top_srcdir=$srcdir 1583 ac_abs_top_srcdir=$srcdir ;; 1584 *) # Relative name. 1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1586 ac_top_srcdir=$ac_top_build_prefix$srcdir 1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1588 esac 1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1590 1591 cd "$ac_dir" || { ac_status=$?; continue; } 1592 # Check for configure.gnu first; this name is used for a wrapper for 1593 # Metaconfig's "Configure" on case-insensitive file systems. 1594 if test -f "$ac_srcdir/configure.gnu"; then 1595 echo && 1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1597 elif test -f "$ac_srcdir/configure"; then 1598 echo && 1599 $SHELL "$ac_srcdir/configure" --help=recursive 1600 else 1601 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1602 fi || ac_status=$? 1603 cd "$ac_pwd" || { ac_status=$?; break; } 1604 done 1605 fi 1606 1607 test -n "$ac_init_help" && exit $ac_status 1608 if $ac_init_version; then 1609 cat <<\_ACEOF 1610 xf86-video-s3virge configure 1.11.1 1611 generated by GNU Autoconf 2.71 1612 1613 Copyright (C) 2021 Free Software Foundation, Inc. 1614 This configure script is free software; the Free Software Foundation 1615 gives unlimited permission to copy, distribute and modify it. 1616 _ACEOF 1617 exit 1618 fi 1619 1620 ## ------------------------ ## 1621 ## Autoconf initialization. ## 1622 ## ------------------------ ## 1623 1624 # ac_fn_c_try_compile LINENO 1625 # -------------------------- 1626 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1627 ac_fn_c_try_compile () 1628 { 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 rm -f conftest.$ac_objext conftest.beam 1631 if { { ac_try="$ac_compile" 1632 case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635 esac 1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637 printf "%s\n" "$ac_try_echo"; } >&5 1638 (eval "$ac_compile") 2>conftest.err 1639 ac_status=$? 1640 if test -s conftest.err; then 1641 grep -v '^ *+' conftest.err >conftest.er1 1642 cat conftest.er1 >&5 1643 mv -f conftest.er1 conftest.err 1644 fi 1645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } && { 1647 test -z "$ac_c_werror_flag" || 1648 test ! -s conftest.err 1649 } && test -s conftest.$ac_objext 1650 then : 1651 ac_retval=0 1652 else $as_nop 1653 printf "%s\n" "$as_me: failed program was:" >&5 1654 sed 's/^/| /' conftest.$ac_ext >&5 1655 1656 ac_retval=1 1657 fi 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661 } # ac_fn_c_try_compile 1662 1663 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1664 # ------------------------------------------------------------------ 1665 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1666 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1667 ac_fn_check_decl () 1668 { 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 as_decl_name=`echo $2|sed 's/ *(.*//'` 1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1672 printf %s "checking whether $as_decl_name is declared... " >&6; } 1673 if eval test \${$3+y} 1674 then : 1675 printf %s "(cached) " >&6 1676 else $as_nop 1677 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1678 eval ac_save_FLAGS=\$$6 1679 as_fn_append $6 " $5" 1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1681 /* end confdefs.h. */ 1682 $4 1683 int 1684 main (void) 1685 { 1686 #ifndef $as_decl_name 1687 #ifdef __cplusplus 1688 (void) $as_decl_use; 1689 #else 1690 (void) $as_decl_name; 1691 #endif 1692 #endif 1693 1694 ; 1695 return 0; 1696 } 1697 _ACEOF 1698 if ac_fn_c_try_compile "$LINENO" 1699 then : 1700 eval "$3=yes" 1701 else $as_nop 1702 eval "$3=no" 1703 fi 1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1705 eval $6=\$ac_save_FLAGS 1706 1707 fi 1708 eval ac_res=\$$3 1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1710 printf "%s\n" "$ac_res" >&6; } 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 1713 } # ac_fn_check_decl 1714 1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1716 # ------------------------------------------------------- 1717 # Tests whether HEADER exists and can be compiled using the include files in 1718 # INCLUDES, setting the cache variable VAR accordingly. 1719 ac_fn_c_check_header_compile () 1720 { 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1723 printf %s "checking for $2... " >&6; } 1724 if eval test \${$3+y} 1725 then : 1726 printf %s "(cached) " >&6 1727 else $as_nop 1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1729 /* end confdefs.h. */ 1730 $4 1731 #include <$2> 1732 _ACEOF 1733 if ac_fn_c_try_compile "$LINENO" 1734 then : 1735 eval "$3=yes" 1736 else $as_nop 1737 eval "$3=no" 1738 fi 1739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1740 fi 1741 eval ac_res=\$$3 1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743 printf "%s\n" "$ac_res" >&6; } 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 1746 } # ac_fn_c_check_header_compile 1747 1748 # ac_fn_c_try_link LINENO 1749 # ----------------------- 1750 # Try to link conftest.$ac_ext, and return whether this succeeded. 1751 ac_fn_c_try_link () 1752 { 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1755 if { { ac_try="$ac_link" 1756 case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759 esac 1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761 printf "%s\n" "$ac_try_echo"; } >&5 1762 (eval "$ac_link") 2>conftest.err 1763 ac_status=$? 1764 if test -s conftest.err; then 1765 grep -v '^ *+' conftest.err >conftest.er1 1766 cat conftest.er1 >&5 1767 mv -f conftest.er1 conftest.err 1768 fi 1769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; } && { 1771 test -z "$ac_c_werror_flag" || 1772 test ! -s conftest.err 1773 } && test -s conftest$ac_exeext && { 1774 test "$cross_compiling" = yes || 1775 test -x conftest$ac_exeext 1776 } 1777 then : 1778 ac_retval=0 1779 else $as_nop 1780 printf "%s\n" "$as_me: failed program was:" >&5 1781 sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=1 1784 fi 1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1787 # interfere with the next link command; also delete a directory that is 1788 # left behind by Apple's compiler. We do this before executing the actions. 1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 as_fn_set_status $ac_retval 1792 1793 } # ac_fn_c_try_link 1794 1795 # ac_fn_c_check_func LINENO FUNC VAR 1796 # ---------------------------------- 1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1798 ac_fn_c_check_func () 1799 { 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802 printf %s "checking for $2... " >&6; } 1803 if eval test \${$3+y} 1804 then : 1805 printf %s "(cached) " >&6 1806 else $as_nop 1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1808 /* end confdefs.h. */ 1809 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1811 #define $2 innocuous_$2 1812 1813 /* System header to define __stub macros and hopefully few prototypes, 1814 which can conflict with char $2 (); below. */ 1815 1816 #include <limits.h> 1817 #undef $2 1818 1819 /* Override any GCC internal prototype to avoid an error. 1820 Use char because int might match the return type of a GCC 1821 builtin and then its argument prototype would still apply. */ 1822 #ifdef __cplusplus 1823 extern "C" 1824 #endif 1825 char $2 (); 1826 /* The GNU C library defines this for functions which it implements 1827 to always fail with ENOSYS. Some functions are actually named 1828 something starting with __ and the normal name is an alias. */ 1829 #if defined __stub_$2 || defined __stub___$2 1830 choke me 1831 #endif 1832 1833 int 1834 main (void) 1835 { 1836 return $2 (); 1837 ; 1838 return 0; 1839 } 1840 _ACEOF 1841 if ac_fn_c_try_link "$LINENO" 1842 then : 1843 eval "$3=yes" 1844 else $as_nop 1845 eval "$3=no" 1846 fi 1847 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1848 conftest$ac_exeext conftest.$ac_ext 1849 fi 1850 eval ac_res=\$$3 1851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1852 printf "%s\n" "$ac_res" >&6; } 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 1855 } # ac_fn_c_check_func 1856 ac_configure_args_raw= 1857 for ac_arg 1858 do 1859 case $ac_arg in 1860 *\'*) 1861 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1862 esac 1863 as_fn_append ac_configure_args_raw " '$ac_arg'" 1864 done 1865 1866 case $ac_configure_args_raw in 1867 *$as_nl*) 1868 ac_safe_unquote= ;; 1869 *) 1870 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1871 ac_unsafe_a="$ac_unsafe_z#~" 1872 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1873 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1874 esac 1875 1876 cat >config.log <<_ACEOF 1877 This file contains any messages produced by compilers while 1878 running configure, to aid debugging if configure makes a mistake. 1879 1880 It was created by xf86-video-s3virge $as_me 1.11.1, which was 1881 generated by GNU Autoconf 2.71. Invocation command line was 1882 1883 $ $0$ac_configure_args_raw 1884 1885 _ACEOF 1886 exec 5>>config.log 1887 { 1888 cat <<_ASUNAME 1889 ## --------- ## 1890 ## Platform. ## 1891 ## --------- ## 1892 1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1894 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1895 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1896 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1897 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1898 1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1901 1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1909 1910 _ASUNAME 1911 1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1913 for as_dir in $PATH 1914 do 1915 IFS=$as_save_IFS 1916 case $as_dir in #((( 1917 '') as_dir=./ ;; 1918 */) ;; 1919 *) as_dir=$as_dir/ ;; 1920 esac 1921 printf "%s\n" "PATH: $as_dir" 1922 done 1923 IFS=$as_save_IFS 1924 1925 } >&5 1926 1927 cat >&5 <<_ACEOF 1928 1929 1930 ## ----------- ## 1931 ## Core tests. ## 1932 ## ----------- ## 1933 1934 _ACEOF 1935 1936 1937 # Keep a trace of the command line. 1938 # Strip out --no-create and --no-recursion so they do not pile up. 1939 # Strip out --silent because we don't want to record it for future runs. 1940 # Also quote any args containing shell meta-characters. 1941 # Make two passes to allow for proper duplicate-argument suppression. 1942 ac_configure_args= 1943 ac_configure_args0= 1944 ac_configure_args1= 1945 ac_must_keep_next=false 1946 for ac_pass in 1 2 1947 do 1948 for ac_arg 1949 do 1950 case $ac_arg in 1951 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1953 | -silent | --silent | --silen | --sile | --sil) 1954 continue ;; 1955 *\'*) 1956 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1957 esac 1958 case $ac_pass in 1959 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1960 2) 1961 as_fn_append ac_configure_args1 " '$ac_arg'" 1962 if test $ac_must_keep_next = true; then 1963 ac_must_keep_next=false # Got value, back to normal. 1964 else 1965 case $ac_arg in 1966 *=* | --config-cache | -C | -disable-* | --disable-* \ 1967 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1968 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1969 | -with-* | --with-* | -without-* | --without-* | --x) 1970 case "$ac_configure_args0 " in 1971 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1972 esac 1973 ;; 1974 -* ) ac_must_keep_next=true ;; 1975 esac 1976 fi 1977 as_fn_append ac_configure_args " '$ac_arg'" 1978 ;; 1979 esac 1980 done 1981 done 1982 { ac_configure_args0=; unset ac_configure_args0;} 1983 { ac_configure_args1=; unset ac_configure_args1;} 1984 1985 # When interrupted or exit'd, cleanup temporary files, and complete 1986 # config.log. We remove comments because anyway the quotes in there 1987 # would cause problems or look ugly. 1988 # WARNING: Use '\'' to represent an apostrophe within the trap. 1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1990 trap 'exit_status=$? 1991 # Sanitize IFS. 1992 IFS=" "" $as_nl" 1993 # Save into config.log some information that might help in debugging. 1994 { 1995 echo 1996 1997 printf "%s\n" "## ---------------- ## 1998 ## Cache variables. ## 1999 ## ---------------- ##" 2000 echo 2001 # The following way of writing the cache mishandles newlines in values, 2002 ( 2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2004 eval ac_val=\$$ac_var 2005 case $ac_val in #( 2006 *${as_nl}*) 2007 case $ac_var in #( 2008 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2009 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2010 esac 2011 case $ac_var in #( 2012 _ | IFS | as_nl) ;; #( 2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2014 *) { eval $ac_var=; unset $ac_var;} ;; 2015 esac ;; 2016 esac 2017 done 2018 (set) 2>&1 | 2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2020 *${as_nl}ac_space=\ *) 2021 sed -n \ 2022 "s/'\''/'\''\\\\'\'''\''/g; 2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2024 ;; #( 2025 *) 2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2027 ;; 2028 esac | 2029 sort 2030 ) 2031 echo 2032 2033 printf "%s\n" "## ----------------- ## 2034 ## Output variables. ## 2035 ## ----------------- ##" 2036 echo 2037 for ac_var in $ac_subst_vars 2038 do 2039 eval ac_val=\$$ac_var 2040 case $ac_val in 2041 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2042 esac 2043 printf "%s\n" "$ac_var='\''$ac_val'\''" 2044 done | sort 2045 echo 2046 2047 if test -n "$ac_subst_files"; then 2048 printf "%s\n" "## ------------------- ## 2049 ## File substitutions. ## 2050 ## ------------------- ##" 2051 echo 2052 for ac_var in $ac_subst_files 2053 do 2054 eval ac_val=\$$ac_var 2055 case $ac_val in 2056 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2057 esac 2058 printf "%s\n" "$ac_var='\''$ac_val'\''" 2059 done | sort 2060 echo 2061 fi 2062 2063 if test -s confdefs.h; then 2064 printf "%s\n" "## ----------- ## 2065 ## confdefs.h. ## 2066 ## ----------- ##" 2067 echo 2068 cat confdefs.h 2069 echo 2070 fi 2071 test "$ac_signal" != 0 && 2072 printf "%s\n" "$as_me: caught signal $ac_signal" 2073 printf "%s\n" "$as_me: exit $exit_status" 2074 } >&5 2075 rm -f core *.core core.conftest.* && 2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2077 exit $exit_status 2078 ' 0 2079 for ac_signal in 1 2 13 15; do 2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2081 done 2082 ac_signal=0 2083 2084 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2085 rm -f -r conftest* confdefs.h 2086 2087 printf "%s\n" "/* confdefs.h */" > confdefs.h 2088 2089 # Predefined preprocessor variables. 2090 2091 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2092 2093 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2094 2095 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2096 2097 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2098 2099 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2100 2101 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2102 2103 2104 # Let the site file select an alternate cache file if it wants to. 2105 # Prefer an explicitly selected file to automatically selected ones. 2106 if test -n "$CONFIG_SITE"; then 2107 ac_site_files="$CONFIG_SITE" 2108 elif test "x$prefix" != xNONE; then 2109 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2110 else 2111 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2112 fi 2113 2114 for ac_site_file in $ac_site_files 2115 do 2116 case $ac_site_file in #( 2117 */*) : 2118 ;; #( 2119 *) : 2120 ac_site_file=./$ac_site_file ;; 2121 esac 2122 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2124 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2125 sed 's/^/| /' "$ac_site_file" >&5 2126 . "$ac_site_file" \ 2127 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2129 as_fn_error $? "failed to load site script $ac_site_file 2130 See \`config.log' for more details" "$LINENO" 5; } 2131 fi 2132 done 2133 2134 if test -r "$cache_file"; then 2135 # Some versions of bash will fail to source /dev/null (special files 2136 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2137 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2139 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2140 case $cache_file in 2141 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2142 *) . "./$cache_file";; 2143 esac 2144 fi 2145 else 2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2147 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2148 >$cache_file 2149 fi 2150 2151 # Test code for whether the C compiler supports C89 (global declarations) 2152 ac_c_conftest_c89_globals=' 2153 /* Does the compiler advertise C89 conformance? 2154 Do not test the value of __STDC__, because some compilers set it to 0 2155 while being otherwise adequately conformant. */ 2156 #if !defined __STDC__ 2157 # error "Compiler does not advertise C89 conformance" 2158 #endif 2159 2160 #include <stddef.h> 2161 #include <stdarg.h> 2162 struct stat; 2163 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2164 struct buf { int x; }; 2165 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2166 static char *e (p, i) 2167 char **p; 2168 int i; 2169 { 2170 return p[i]; 2171 } 2172 static char *f (char * (*g) (char **, int), char **p, ...) 2173 { 2174 char *s; 2175 va_list v; 2176 va_start (v,p); 2177 s = g (p, va_arg (v,int)); 2178 va_end (v); 2179 return s; 2180 } 2181 2182 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2183 function prototypes and stuff, but not \xHH hex character constants. 2184 These do not provoke an error unfortunately, instead are silently treated 2185 as an "x". The following induces an error, until -std is added to get 2186 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2187 array size at least. It is necessary to write \x00 == 0 to get something 2188 that is true only with -std. */ 2189 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2190 2191 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2192 inside strings and character constants. */ 2193 #define FOO(x) '\''x'\'' 2194 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2195 2196 int test (int i, double x); 2197 struct s1 {int (*f) (int a);}; 2198 struct s2 {int (*f) (double a);}; 2199 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2200 int, int);' 2201 2202 # Test code for whether the C compiler supports C89 (body of main). 2203 ac_c_conftest_c89_main=' 2204 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2205 ' 2206 2207 # Test code for whether the C compiler supports C99 (global declarations) 2208 ac_c_conftest_c99_globals=' 2209 // Does the compiler advertise C99 conformance? 2210 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2211 # error "Compiler does not advertise C99 conformance" 2212 #endif 2213 2214 #include <stdbool.h> 2215 extern int puts (const char *); 2216 extern int printf (const char *, ...); 2217 extern int dprintf (int, const char *, ...); 2218 extern void *malloc (size_t); 2219 2220 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2221 // dprintf is used instead of fprintf to avoid needing to declare 2222 // FILE and stderr. 2223 #define debug(...) dprintf (2, __VA_ARGS__) 2224 #define showlist(...) puts (#__VA_ARGS__) 2225 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2226 static void 2227 test_varargs_macros (void) 2228 { 2229 int x = 1234; 2230 int y = 5678; 2231 debug ("Flag"); 2232 debug ("X = %d\n", x); 2233 showlist (The first, second, and third items.); 2234 report (x>y, "x is %d but y is %d", x, y); 2235 } 2236 2237 // Check long long types. 2238 #define BIG64 18446744073709551615ull 2239 #define BIG32 4294967295ul 2240 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2241 #if !BIG_OK 2242 #error "your preprocessor is broken" 2243 #endif 2244 #if BIG_OK 2245 #else 2246 #error "your preprocessor is broken" 2247 #endif 2248 static long long int bignum = -9223372036854775807LL; 2249 static unsigned long long int ubignum = BIG64; 2250 2251 struct incomplete_array 2252 { 2253 int datasize; 2254 double data[]; 2255 }; 2256 2257 struct named_init { 2258 int number; 2259 const wchar_t *name; 2260 double average; 2261 }; 2262 2263 typedef const char *ccp; 2264 2265 static inline int 2266 test_restrict (ccp restrict text) 2267 { 2268 // See if C++-style comments work. 2269 // Iterate through items via the restricted pointer. 2270 // Also check for declarations in for loops. 2271 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2272 continue; 2273 return 0; 2274 } 2275 2276 // Check varargs and va_copy. 2277 static bool 2278 test_varargs (const char *format, ...) 2279 { 2280 va_list args; 2281 va_start (args, format); 2282 va_list args_copy; 2283 va_copy (args_copy, args); 2284 2285 const char *str = ""; 2286 int number = 0; 2287 float fnumber = 0; 2288 2289 while (*format) 2290 { 2291 switch (*format++) 2292 { 2293 case '\''s'\'': // string 2294 str = va_arg (args_copy, const char *); 2295 break; 2296 case '\''d'\'': // int 2297 number = va_arg (args_copy, int); 2298 break; 2299 case '\''f'\'': // float 2300 fnumber = va_arg (args_copy, double); 2301 break; 2302 default: 2303 break; 2304 } 2305 } 2306 va_end (args_copy); 2307 va_end (args); 2308 2309 return *str && number && fnumber; 2310 } 2311 ' 2312 2313 # Test code for whether the C compiler supports C99 (body of main). 2314 ac_c_conftest_c99_main=' 2315 // Check bool. 2316 _Bool success = false; 2317 success |= (argc != 0); 2318 2319 // Check restrict. 2320 if (test_restrict ("String literal") == 0) 2321 success = true; 2322 char *restrict newvar = "Another string"; 2323 2324 // Check varargs. 2325 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2326 test_varargs_macros (); 2327 2328 // Check flexible array members. 2329 struct incomplete_array *ia = 2330 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2331 ia->datasize = 10; 2332 for (int i = 0; i < ia->datasize; ++i) 2333 ia->data[i] = i * 1.234; 2334 2335 // Check named initializers. 2336 struct named_init ni = { 2337 .number = 34, 2338 .name = L"Test wide string", 2339 .average = 543.34343, 2340 }; 2341 2342 ni.number = 58; 2343 2344 int dynamic_array[ni.number]; 2345 dynamic_array[0] = argv[0][0]; 2346 dynamic_array[ni.number - 1] = 543; 2347 2348 // work around unused variable warnings 2349 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2350 || dynamic_array[ni.number - 1] != 543); 2351 ' 2352 2353 # Test code for whether the C compiler supports C11 (global declarations) 2354 ac_c_conftest_c11_globals=' 2355 // Does the compiler advertise C11 conformance? 2356 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2357 # error "Compiler does not advertise C11 conformance" 2358 #endif 2359 2360 // Check _Alignas. 2361 char _Alignas (double) aligned_as_double; 2362 char _Alignas (0) no_special_alignment; 2363 extern char aligned_as_int; 2364 char _Alignas (0) _Alignas (int) aligned_as_int; 2365 2366 // Check _Alignof. 2367 enum 2368 { 2369 int_alignment = _Alignof (int), 2370 int_array_alignment = _Alignof (int[100]), 2371 char_alignment = _Alignof (char) 2372 }; 2373 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2374 2375 // Check _Noreturn. 2376 int _Noreturn does_not_return (void) { for (;;) continue; } 2377 2378 // Check _Static_assert. 2379 struct test_static_assert 2380 { 2381 int x; 2382 _Static_assert (sizeof (int) <= sizeof (long int), 2383 "_Static_assert does not work in struct"); 2384 long int y; 2385 }; 2386 2387 // Check UTF-8 literals. 2388 #define u8 syntax error! 2389 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2390 2391 // Check duplicate typedefs. 2392 typedef long *long_ptr; 2393 typedef long int *long_ptr; 2394 typedef long_ptr long_ptr; 2395 2396 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2397 struct anonymous 2398 { 2399 union { 2400 struct { int i; int j; }; 2401 struct { int k; long int l; } w; 2402 }; 2403 int m; 2404 } v1; 2405 ' 2406 2407 # Test code for whether the C compiler supports C11 (body of main). 2408 ac_c_conftest_c11_main=' 2409 _Static_assert ((offsetof (struct anonymous, i) 2410 == offsetof (struct anonymous, w.k)), 2411 "Anonymous union alignment botch"); 2412 v1.i = 2; 2413 v1.w.k = 5; 2414 ok |= v1.i != 5; 2415 ' 2416 2417 # Test code for whether the C compiler supports C11 (complete). 2418 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2419 ${ac_c_conftest_c99_globals} 2420 ${ac_c_conftest_c11_globals} 2421 2422 int 2423 main (int argc, char **argv) 2424 { 2425 int ok = 0; 2426 ${ac_c_conftest_c89_main} 2427 ${ac_c_conftest_c99_main} 2428 ${ac_c_conftest_c11_main} 2429 return ok; 2430 } 2431 " 2432 2433 # Test code for whether the C compiler supports C99 (complete). 2434 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2435 ${ac_c_conftest_c99_globals} 2436 2437 int 2438 main (int argc, char **argv) 2439 { 2440 int ok = 0; 2441 ${ac_c_conftest_c89_main} 2442 ${ac_c_conftest_c99_main} 2443 return ok; 2444 } 2445 " 2446 2447 # Test code for whether the C compiler supports C89 (complete). 2448 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2449 2450 int 2451 main (int argc, char **argv) 2452 { 2453 int ok = 0; 2454 ${ac_c_conftest_c89_main} 2455 return ok; 2456 } 2457 " 2458 2459 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2460 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2461 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2462 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2463 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2464 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2465 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2466 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2467 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2468 2469 # Auxiliary files required by this configure script. 2470 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2471 2472 # Locations in which to look for auxiliary files. 2473 ac_aux_dir_candidates="${srcdir}/." 2474 2475 # Search for a directory containing all of the required auxiliary files, 2476 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2477 # If we don't find one directory that contains all the files we need, 2478 # we report the set of missing files from the *first* directory in 2479 # $ac_aux_dir_candidates and give up. 2480 ac_missing_aux_files="" 2481 ac_first_candidate=: 2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484 as_found=false 2485 for as_dir in $ac_aux_dir_candidates 2486 do 2487 IFS=$as_save_IFS 2488 case $as_dir in #((( 2489 '') as_dir=./ ;; 2490 */) ;; 2491 *) as_dir=$as_dir/ ;; 2492 esac 2493 as_found=: 2494 2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2496 ac_aux_dir_found=yes 2497 ac_install_sh= 2498 for ac_aux in $ac_aux_files 2499 do 2500 # As a special case, if "install-sh" is required, that requirement 2501 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2502 # and $ac_install_sh is set appropriately for whichever one is found. 2503 if test x"$ac_aux" = x"install-sh" 2504 then 2505 if test -f "${as_dir}install-sh"; then 2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2507 ac_install_sh="${as_dir}install-sh -c" 2508 elif test -f "${as_dir}install.sh"; then 2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2510 ac_install_sh="${as_dir}install.sh -c" 2511 elif test -f "${as_dir}shtool"; then 2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2513 ac_install_sh="${as_dir}shtool install -c" 2514 else 2515 ac_aux_dir_found=no 2516 if $ac_first_candidate; then 2517 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2518 else 2519 break 2520 fi 2521 fi 2522 else 2523 if test -f "${as_dir}${ac_aux}"; then 2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2525 else 2526 ac_aux_dir_found=no 2527 if $ac_first_candidate; then 2528 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2529 else 2530 break 2531 fi 2532 fi 2533 fi 2534 done 2535 if test "$ac_aux_dir_found" = yes; then 2536 ac_aux_dir="$as_dir" 2537 break 2538 fi 2539 ac_first_candidate=false 2540 2541 as_found=false 2542 done 2543 IFS=$as_save_IFS 2544 if $as_found 2545 then : 2546 2547 else $as_nop 2548 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2549 fi 2550 2551 2552 # These three variables are undocumented and unsupported, 2553 # and are intended to be withdrawn in a future Autoconf release. 2554 # They can cause serious problems if a builder's source tree is in a directory 2555 # whose full name contains unusual characters. 2556 if test -f "${ac_aux_dir}config.guess"; then 2557 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2558 fi 2559 if test -f "${ac_aux_dir}config.sub"; then 2560 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2561 fi 2562 if test -f "$ac_aux_dir/configure"; then 2563 ac_configure="$SHELL ${ac_aux_dir}configure" 2564 fi 2565 2566 # Check that the precious variables saved in the cache have kept the same 2567 # value. 2568 ac_cache_corrupted=false 2569 for ac_var in $ac_precious_vars; do 2570 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2571 eval ac_new_set=\$ac_env_${ac_var}_set 2572 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2573 eval ac_new_val=\$ac_env_${ac_var}_value 2574 case $ac_old_set,$ac_new_set in 2575 set,) 2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2577 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2578 ac_cache_corrupted=: ;; 2579 ,set) 2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2581 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2582 ac_cache_corrupted=: ;; 2583 ,);; 2584 *) 2585 if test "x$ac_old_val" != "x$ac_new_val"; then 2586 # differences in whitespace do not lead to failure. 2587 ac_old_val_w=`echo x $ac_old_val` 2588 ac_new_val_w=`echo x $ac_new_val` 2589 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2591 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2592 ac_cache_corrupted=: 2593 else 2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2595 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2596 eval $ac_var=\$ac_old_val 2597 fi 2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2599 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2601 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2602 fi;; 2603 esac 2604 # Pass precious variables to config.status. 2605 if test "$ac_new_set" = set; then 2606 case $ac_new_val in 2607 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2608 *) ac_arg=$ac_var=$ac_new_val ;; 2609 esac 2610 case " $ac_configure_args " in 2611 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2612 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2613 esac 2614 fi 2615 done 2616 if $ac_cache_corrupted; then 2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2618 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2620 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2621 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2622 and start over" "$LINENO" 5 2623 fi 2624 ## -------------------- ## 2625 ## Main body of script. ## 2626 ## -------------------- ## 2627 2628 ac_ext=c 2629 ac_cpp='$CPP $CPPFLAGS' 2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2633 2634 2635 2636 ac_config_headers="$ac_config_headers config.h" 2637 2638 2639 2640 # Initialize Automake 2641 am__api_version='1.16' 2642 2643 2644 2645 # Find a good install program. We prefer a C program (faster), 2646 # so one script is as good as another. But avoid the broken or 2647 # incompatible versions: 2648 # SysV /etc/install, /usr/sbin/install 2649 # SunOS /usr/etc/install 2650 # IRIX /sbin/install 2651 # AIX /bin/install 2652 # AmigaOS /C/install, which installs bootblocks on floppy discs 2653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2656 # OS/2's system install, which has a completely different semantic 2657 # ./install, which can be erroneously created by make from ./install.sh. 2658 # Reject install programs that cannot install multiple files. 2659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2660 printf %s "checking for a BSD-compatible install... " >&6; } 2661 if test -z "$INSTALL"; then 2662 if test ${ac_cv_path_install+y} 2663 then : 2664 printf %s "(cached) " >&6 2665 else $as_nop 2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667 for as_dir in $PATH 2668 do 2669 IFS=$as_save_IFS 2670 case $as_dir in #((( 2671 '') as_dir=./ ;; 2672 */) ;; 2673 *) as_dir=$as_dir/ ;; 2674 esac 2675 # Account for fact that we put trailing slashes in our PATH walk. 2676 case $as_dir in #(( 2677 ./ | /[cC]/* | \ 2678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2679 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2680 /usr/ucb/* ) ;; 2681 *) 2682 # OSF1 and SCO ODT 3.0 have their own names for install. 2683 # Don't use installbsd from OSF since it installs stuff as root 2684 # by default. 2685 for ac_prog in ginstall scoinst install; do 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2688 if test $ac_prog = install && 2689 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2690 # AIX install. It has an incompatible calling convention. 2691 : 2692 elif test $ac_prog = install && 2693 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2694 # program-specific install script used by HP pwplus--don't use. 2695 : 2696 else 2697 rm -rf conftest.one conftest.two conftest.dir 2698 echo one > conftest.one 2699 echo two > conftest.two 2700 mkdir conftest.dir 2701 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2702 test -s conftest.one && test -s conftest.two && 2703 test -s conftest.dir/conftest.one && 2704 test -s conftest.dir/conftest.two 2705 then 2706 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2707 break 3 2708 fi 2709 fi 2710 fi 2711 done 2712 done 2713 ;; 2714 esac 2715 2716 done 2717 IFS=$as_save_IFS 2718 2719 rm -rf conftest.one conftest.two conftest.dir 2720 2721 fi 2722 if test ${ac_cv_path_install+y}; then 2723 INSTALL=$ac_cv_path_install 2724 else 2725 # As a last resort, use the slow shell script. Don't cache a 2726 # value for INSTALL within a source directory, because that will 2727 # break other packages using the cache if that directory is 2728 # removed, or if the value is a relative name. 2729 INSTALL=$ac_install_sh 2730 fi 2731 fi 2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2733 printf "%s\n" "$INSTALL" >&6; } 2734 2735 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2736 # It thinks the first close brace ends the variable substitution. 2737 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2738 2739 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2740 2741 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2742 2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2744 printf %s "checking whether build environment is sane... " >&6; } 2745 # Reject unsafe characters in $srcdir or the absolute working directory 2746 # name. Accept space and tab only in the latter. 2747 am_lf=' 2748 ' 2749 case `pwd` in 2750 *[\\\"\#\$\&\'\`$am_lf]*) 2751 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2752 esac 2753 case $srcdir in 2754 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2755 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2756 esac 2757 2758 # Do 'set' in a subshell so we don't clobber the current shell's 2759 # arguments. Must try -L first in case configure is actually a 2760 # symlink; some systems play weird games with the mod time of symlinks 2761 # (eg FreeBSD returns the mod time of the symlink's containing 2762 # directory). 2763 if ( 2764 am_has_slept=no 2765 for am_try in 1 2; do 2766 echo "timestamp, slept: $am_has_slept" > conftest.file 2767 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2768 if test "$*" = "X"; then 2769 # -L didn't work. 2770 set X `ls -t "$srcdir/configure" conftest.file` 2771 fi 2772 if test "$*" != "X $srcdir/configure conftest.file" \ 2773 && test "$*" != "X conftest.file $srcdir/configure"; then 2774 2775 # If neither matched, then we have a broken ls. This can happen 2776 # if, for instance, CONFIG_SHELL is bash and it inherits a 2777 # broken ls alias from the environment. This has actually 2778 # happened. Such a system could not be considered "sane". 2779 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2780 alias in your environment" "$LINENO" 5 2781 fi 2782 if test "$2" = conftest.file || test $am_try -eq 2; then 2783 break 2784 fi 2785 # Just in case. 2786 sleep 1 2787 am_has_slept=yes 2788 done 2789 test "$2" = conftest.file 2790 ) 2791 then 2792 # Ok. 2793 : 2794 else 2795 as_fn_error $? "newly created file is older than distributed files! 2796 Check your system clock" "$LINENO" 5 2797 fi 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2799 printf "%s\n" "yes" >&6; } 2800 # If we didn't sleep, we still need to ensure time stamps of config.status and 2801 # generated files are strictly newer. 2802 am_sleep_pid= 2803 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2804 ( sleep 1 ) & 2805 am_sleep_pid=$! 2806 fi 2807 2808 rm -f conftest.file 2809 2810 test "$program_prefix" != NONE && 2811 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2812 # Use a double $ so make ignores it. 2813 test "$program_suffix" != NONE && 2814 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2815 # Double any \ or $. 2816 # By default was `s,x,x', remove it if useless. 2817 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2818 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2819 2820 2821 # Expand $ac_aux_dir to an absolute path. 2822 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2823 2824 2825 if test x"${MISSING+set}" != xset; then 2826 MISSING="\${SHELL} '$am_aux_dir/missing'" 2827 fi 2828 # Use eval to expand $SHELL 2829 if eval "$MISSING --is-lightweight"; then 2830 am_missing_run="$MISSING " 2831 else 2832 am_missing_run= 2833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2834 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2835 fi 2836 2837 if test x"${install_sh+set}" != xset; then 2838 case $am_aux_dir in 2839 *\ * | *\ *) 2840 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2841 *) 2842 install_sh="\${SHELL} $am_aux_dir/install-sh" 2843 esac 2844 fi 2845 2846 # Installed binaries are usually stripped using 'strip' when the user 2847 # run "make install-strip". However 'strip' might not be the right 2848 # tool to use in cross-compilation environments, therefore Automake 2849 # will honor the 'STRIP' environment variable to overrule this program. 2850 if test "$cross_compiling" != no; then 2851 if test -n "$ac_tool_prefix"; then 2852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2853 set dummy ${ac_tool_prefix}strip; ac_word=$2 2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855 printf %s "checking for $ac_word... " >&6; } 2856 if test ${ac_cv_prog_STRIP+y} 2857 then : 2858 printf %s "(cached) " >&6 2859 else $as_nop 2860 if test -n "$STRIP"; then 2861 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2862 else 2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864 for as_dir in $PATH 2865 do 2866 IFS=$as_save_IFS 2867 case $as_dir in #((( 2868 '') as_dir=./ ;; 2869 */) ;; 2870 *) as_dir=$as_dir/ ;; 2871 esac 2872 for ac_exec_ext in '' $ac_executable_extensions; do 2873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2874 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2876 break 2 2877 fi 2878 done 2879 done 2880 IFS=$as_save_IFS 2881 2882 fi 2883 fi 2884 STRIP=$ac_cv_prog_STRIP 2885 if test -n "$STRIP"; then 2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2887 printf "%s\n" "$STRIP" >&6; } 2888 else 2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2890 printf "%s\n" "no" >&6; } 2891 fi 2892 2893 2894 fi 2895 if test -z "$ac_cv_prog_STRIP"; then 2896 ac_ct_STRIP=$STRIP 2897 # Extract the first word of "strip", so it can be a program name with args. 2898 set dummy strip; ac_word=$2 2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2900 printf %s "checking for $ac_word... " >&6; } 2901 if test ${ac_cv_prog_ac_ct_STRIP+y} 2902 then : 2903 printf %s "(cached) " >&6 2904 else $as_nop 2905 if test -n "$ac_ct_STRIP"; then 2906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2907 else 2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909 for as_dir in $PATH 2910 do 2911 IFS=$as_save_IFS 2912 case $as_dir in #((( 2913 '') as_dir=./ ;; 2914 */) ;; 2915 *) as_dir=$as_dir/ ;; 2916 esac 2917 for ac_exec_ext in '' $ac_executable_extensions; do 2918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2919 ac_cv_prog_ac_ct_STRIP="strip" 2920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2921 break 2 2922 fi 2923 done 2924 done 2925 IFS=$as_save_IFS 2926 2927 fi 2928 fi 2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2930 if test -n "$ac_ct_STRIP"; then 2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2932 printf "%s\n" "$ac_ct_STRIP" >&6; } 2933 else 2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2935 printf "%s\n" "no" >&6; } 2936 fi 2937 2938 if test "x$ac_ct_STRIP" = x; then 2939 STRIP=":" 2940 else 2941 case $cross_compiling:$ac_tool_warned in 2942 yes:) 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2945 ac_tool_warned=yes ;; 2946 esac 2947 STRIP=$ac_ct_STRIP 2948 fi 2949 else 2950 STRIP="$ac_cv_prog_STRIP" 2951 fi 2952 2953 fi 2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2955 2956 2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2958 printf %s "checking for a race-free mkdir -p... " >&6; } 2959 if test -z "$MKDIR_P"; then 2960 if test ${ac_cv_path_mkdir+y} 2961 then : 2962 printf %s "(cached) " >&6 2963 else $as_nop 2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2966 do 2967 IFS=$as_save_IFS 2968 case $as_dir in #((( 2969 '') as_dir=./ ;; 2970 */) ;; 2971 *) as_dir=$as_dir/ ;; 2972 esac 2973 for ac_prog in mkdir gmkdir; do 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2976 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2977 'mkdir ('*'coreutils) '* | \ 2978 'BusyBox '* | \ 2979 'mkdir (fileutils) '4.1*) 2980 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2981 break 3;; 2982 esac 2983 done 2984 done 2985 done 2986 IFS=$as_save_IFS 2987 2988 fi 2989 2990 test -d ./--version && rmdir ./--version 2991 if test ${ac_cv_path_mkdir+y}; then 2992 MKDIR_P="$ac_cv_path_mkdir -p" 2993 else 2994 # As a last resort, use the slow shell script. Don't cache a 2995 # value for MKDIR_P within a source directory, because that will 2996 # break other packages using the cache if that directory is 2997 # removed, or if the value is a relative name. 2998 MKDIR_P="$ac_install_sh -d" 2999 fi 3000 fi 3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3002 printf "%s\n" "$MKDIR_P" >&6; } 3003 3004 for ac_prog in gawk mawk nawk awk 3005 do 3006 # Extract the first word of "$ac_prog", so it can be a program name with args. 3007 set dummy $ac_prog; ac_word=$2 3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3009 printf %s "checking for $ac_word... " >&6; } 3010 if test ${ac_cv_prog_AWK+y} 3011 then : 3012 printf %s "(cached) " >&6 3013 else $as_nop 3014 if test -n "$AWK"; then 3015 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3016 else 3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3018 for as_dir in $PATH 3019 do 3020 IFS=$as_save_IFS 3021 case $as_dir in #((( 3022 '') as_dir=./ ;; 3023 */) ;; 3024 *) as_dir=$as_dir/ ;; 3025 esac 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3028 ac_cv_prog_AWK="$ac_prog" 3029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032 done 3033 done 3034 IFS=$as_save_IFS 3035 3036 fi 3037 fi 3038 AWK=$ac_cv_prog_AWK 3039 if test -n "$AWK"; then 3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3041 printf "%s\n" "$AWK" >&6; } 3042 else 3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044 printf "%s\n" "no" >&6; } 3045 fi 3046 3047 3048 test -n "$AWK" && break 3049 done 3050 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3052 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3053 set x ${MAKE-make} 3054 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3055 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3056 then : 3057 printf %s "(cached) " >&6 3058 else $as_nop 3059 cat >conftest.make <<\_ACEOF 3060 SHELL = /bin/sh 3061 all: 3062 @echo '@@@%%%=$(MAKE)=@@@%%%' 3063 _ACEOF 3064 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3065 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3066 *@@@%%%=?*=@@@%%%*) 3067 eval ac_cv_prog_make_${ac_make}_set=yes;; 3068 *) 3069 eval ac_cv_prog_make_${ac_make}_set=no;; 3070 esac 3071 rm -f conftest.make 3072 fi 3073 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3075 printf "%s\n" "yes" >&6; } 3076 SET_MAKE= 3077 else 3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3079 printf "%s\n" "no" >&6; } 3080 SET_MAKE="MAKE=${MAKE-make}" 3081 fi 3082 3083 rm -rf .tst 2>/dev/null 3084 mkdir .tst 2>/dev/null 3085 if test -d .tst; then 3086 am__leading_dot=. 3087 else 3088 am__leading_dot=_ 3089 fi 3090 rmdir .tst 2>/dev/null 3091 3092 # Check whether --enable-silent-rules was given. 3093 if test ${enable_silent_rules+y} 3094 then : 3095 enableval=$enable_silent_rules; 3096 fi 3097 3098 case $enable_silent_rules in # ((( 3099 yes) AM_DEFAULT_VERBOSITY=0;; 3100 no) AM_DEFAULT_VERBOSITY=1;; 3101 *) AM_DEFAULT_VERBOSITY=1;; 3102 esac 3103 am_make=${MAKE-make} 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3105 printf %s "checking whether $am_make supports nested variables... " >&6; } 3106 if test ${am_cv_make_support_nested_variables+y} 3107 then : 3108 printf %s "(cached) " >&6 3109 else $as_nop 3110 if printf "%s\n" 'TRUE=$(BAR$(V)) 3111 BAR0=false 3112 BAR1=true 3113 V=1 3114 am__doit: 3115 @$(TRUE) 3116 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3117 am_cv_make_support_nested_variables=yes 3118 else 3119 am_cv_make_support_nested_variables=no 3120 fi 3121 fi 3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3123 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3124 if test $am_cv_make_support_nested_variables = yes; then 3125 AM_V='$(V)' 3126 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3127 else 3128 AM_V=$AM_DEFAULT_VERBOSITY 3129 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3130 fi 3131 AM_BACKSLASH='\' 3132 3133 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3134 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3135 # is not polluted with repeated "-I." 3136 am__isrc=' -I$(srcdir)' 3137 # test to see if srcdir already configured 3138 if test -f $srcdir/config.status; then 3139 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3140 fi 3141 fi 3142 3143 # test whether we have cygpath 3144 if test -z "$CYGPATH_W"; then 3145 if (cygpath --version) >/dev/null 2>/dev/null; then 3146 CYGPATH_W='cygpath -w' 3147 else 3148 CYGPATH_W=echo 3149 fi 3150 fi 3151 3152 3153 # Define the identity of the package. 3154 PACKAGE='xf86-video-s3virge' 3155 VERSION='1.11.1' 3156 3157 3158 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3159 3160 3161 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3162 3163 # Some tools Automake needs. 3164 3165 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3166 3167 3168 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3169 3170 3171 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3172 3173 3174 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3175 3176 3177 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3178 3179 # For better backward compatibility. To be removed once Automake 1.9.x 3180 # dies out for good. For more background, see: 3181 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3182 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3183 mkdir_p='$(MKDIR_P)' 3184 3185 # We need awk for the "check" target (and possibly the TAP driver). The 3186 # system "awk" is bad on some platforms. 3187 # Always define AMTAR for backward compatibility. Yes, it's still used 3188 # in the wild :-( We should find a proper way to deprecate it ... 3189 AMTAR='$${TAR-tar}' 3190 3191 3192 # We'll loop over all known methods to create a tar archive until one works. 3193 _am_tools='gnutar pax cpio none' 3194 3195 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3196 3197 3198 3199 3200 3201 # Variables for tags utilities; see am/tags.am 3202 if test -z "$CTAGS"; then 3203 CTAGS=ctags 3204 fi 3205 3206 if test -z "$ETAGS"; then 3207 ETAGS=etags 3208 fi 3209 3210 if test -z "$CSCOPE"; then 3211 CSCOPE=cscope 3212 fi 3213 3214 3215 3216 # POSIX will say in a future version that running "rm -f" with no argument 3217 # is OK; and we want to be able to make that assumption in our Makefile 3218 # recipes. So use an aggressive probe to check that the usage we want is 3219 # actually supported "in the wild" to an acceptable degree. 3220 # See automake bug#10828. 3221 # To make any issue more visible, cause the running configure to be aborted 3222 # by default if the 'rm' program in use doesn't match our expectations; the 3223 # user can still override this though. 3224 if rm -f && rm -fr && rm -rf; then : OK; else 3225 cat >&2 <<'END' 3226 Oops! 3227 3228 Your 'rm' program seems unable to run without file operands specified 3229 on the command line, even when the '-f' option is present. This is contrary 3230 to the behaviour of most rm programs out there, and not conforming with 3231 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3232 3233 Please tell bug-automake@gnu.org about your system, including the value 3234 of your $PATH and any error possibly output before this message. This 3235 can help us improve future automake versions. 3236 3237 END 3238 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3239 echo 'Configuration will proceed anyway, since you have set the' >&2 3240 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3241 echo >&2 3242 else 3243 cat >&2 <<'END' 3244 Aborting the configuration process, to ensure you take notice of the issue. 3245 3246 You can download and install GNU coreutils to get an 'rm' implementation 3247 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3248 3249 If you want to complete the configuration process using your problematic 3250 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3251 to "yes", and re-run configure. 3252 3253 END 3254 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3255 fi 3256 fi 3257 3258 3259 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 DEPDIR="${am__leading_dot}deps" 3281 3282 ac_config_commands="$ac_config_commands depfiles" 3283 3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3285 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3286 cat > confinc.mk << 'END' 3287 am__doit: 3288 @echo this is the am__doit target >confinc.out 3289 .PHONY: am__doit 3290 END 3291 am__include="#" 3292 am__quote= 3293 # BSD make does it like this. 3294 echo '.include "confinc.mk" # ignored' > confmf.BSD 3295 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3296 echo 'include confinc.mk # ignored' > confmf.GNU 3297 _am_result=no 3298 for s in GNU BSD; do 3299 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3300 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3301 ac_status=$? 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } 3304 case $?:`cat confinc.out 2>/dev/null` in #( 3305 '0:this is the am__doit target') : 3306 case $s in #( 3307 BSD) : 3308 am__include='.include' am__quote='"' ;; #( 3309 *) : 3310 am__include='include' am__quote='' ;; 3311 esac ;; #( 3312 *) : 3313 ;; 3314 esac 3315 if test "$am__include" != "#"; then 3316 _am_result="yes ($s style)" 3317 break 3318 fi 3319 done 3320 rm -f confinc.* confmf.* 3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3322 printf "%s\n" "${_am_result}" >&6; } 3323 3324 # Check whether --enable-dependency-tracking was given. 3325 if test ${enable_dependency_tracking+y} 3326 then : 3327 enableval=$enable_dependency_tracking; 3328 fi 3329 3330 if test "x$enable_dependency_tracking" != xno; then 3331 am_depcomp="$ac_aux_dir/depcomp" 3332 AMDEPBACKSLASH='\' 3333 am__nodep='_no' 3334 fi 3335 if test "x$enable_dependency_tracking" != xno; then 3336 AMDEP_TRUE= 3337 AMDEP_FALSE='#' 3338 else 3339 AMDEP_TRUE='#' 3340 AMDEP_FALSE= 3341 fi 3342 3343 3344 ac_ext=c 3345 ac_cpp='$CPP $CPPFLAGS' 3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3349 if test -n "$ac_tool_prefix"; then 3350 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3351 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3353 printf %s "checking for $ac_word... " >&6; } 3354 if test ${ac_cv_prog_CC+y} 3355 then : 3356 printf %s "(cached) " >&6 3357 else $as_nop 3358 if test -n "$CC"; then 3359 ac_cv_prog_CC="$CC" # Let the user override the test. 3360 else 3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3362 for as_dir in $PATH 3363 do 3364 IFS=$as_save_IFS 3365 case $as_dir in #((( 3366 '') as_dir=./ ;; 3367 */) ;; 3368 *) as_dir=$as_dir/ ;; 3369 esac 3370 for ac_exec_ext in '' $ac_executable_extensions; do 3371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3372 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3374 break 2 3375 fi 3376 done 3377 done 3378 IFS=$as_save_IFS 3379 3380 fi 3381 fi 3382 CC=$ac_cv_prog_CC 3383 if test -n "$CC"; then 3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3385 printf "%s\n" "$CC" >&6; } 3386 else 3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3388 printf "%s\n" "no" >&6; } 3389 fi 3390 3391 3392 fi 3393 if test -z "$ac_cv_prog_CC"; then 3394 ac_ct_CC=$CC 3395 # Extract the first word of "gcc", so it can be a program name with args. 3396 set dummy gcc; ac_word=$2 3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3398 printf %s "checking for $ac_word... " >&6; } 3399 if test ${ac_cv_prog_ac_ct_CC+y} 3400 then : 3401 printf %s "(cached) " >&6 3402 else $as_nop 3403 if test -n "$ac_ct_CC"; then 3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3405 else 3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407 for as_dir in $PATH 3408 do 3409 IFS=$as_save_IFS 3410 case $as_dir in #((( 3411 '') as_dir=./ ;; 3412 */) ;; 3413 *) as_dir=$as_dir/ ;; 3414 esac 3415 for ac_exec_ext in '' $ac_executable_extensions; do 3416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3417 ac_cv_prog_ac_ct_CC="gcc" 3418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3419 break 2 3420 fi 3421 done 3422 done 3423 IFS=$as_save_IFS 3424 3425 fi 3426 fi 3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3428 if test -n "$ac_ct_CC"; then 3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3430 printf "%s\n" "$ac_ct_CC" >&6; } 3431 else 3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3433 printf "%s\n" "no" >&6; } 3434 fi 3435 3436 if test "x$ac_ct_CC" = x; then 3437 CC="" 3438 else 3439 case $cross_compiling:$ac_tool_warned in 3440 yes:) 3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3442 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3443 ac_tool_warned=yes ;; 3444 esac 3445 CC=$ac_ct_CC 3446 fi 3447 else 3448 CC="$ac_cv_prog_CC" 3449 fi 3450 3451 if test -z "$CC"; then 3452 if test -n "$ac_tool_prefix"; then 3453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3454 set dummy ${ac_tool_prefix}cc; ac_word=$2 3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3456 printf %s "checking for $ac_word... " >&6; } 3457 if test ${ac_cv_prog_CC+y} 3458 then : 3459 printf %s "(cached) " >&6 3460 else $as_nop 3461 if test -n "$CC"; then 3462 ac_cv_prog_CC="$CC" # Let the user override the test. 3463 else 3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465 for as_dir in $PATH 3466 do 3467 IFS=$as_save_IFS 3468 case $as_dir in #((( 3469 '') as_dir=./ ;; 3470 */) ;; 3471 *) as_dir=$as_dir/ ;; 3472 esac 3473 for ac_exec_ext in '' $ac_executable_extensions; do 3474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3475 ac_cv_prog_CC="${ac_tool_prefix}cc" 3476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3477 break 2 3478 fi 3479 done 3480 done 3481 IFS=$as_save_IFS 3482 3483 fi 3484 fi 3485 CC=$ac_cv_prog_CC 3486 if test -n "$CC"; then 3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3488 printf "%s\n" "$CC" >&6; } 3489 else 3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3491 printf "%s\n" "no" >&6; } 3492 fi 3493 3494 3495 fi 3496 fi 3497 if test -z "$CC"; then 3498 # Extract the first word of "cc", so it can be a program name with args. 3499 set dummy cc; ac_word=$2 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501 printf %s "checking for $ac_word... " >&6; } 3502 if test ${ac_cv_prog_CC+y} 3503 then : 3504 printf %s "(cached) " >&6 3505 else $as_nop 3506 if test -n "$CC"; then 3507 ac_cv_prog_CC="$CC" # Let the user override the test. 3508 else 3509 ac_prog_rejected=no 3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511 for as_dir in $PATH 3512 do 3513 IFS=$as_save_IFS 3514 case $as_dir in #((( 3515 '') as_dir=./ ;; 3516 */) ;; 3517 *) as_dir=$as_dir/ ;; 3518 esac 3519 for ac_exec_ext in '' $ac_executable_extensions; do 3520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3521 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3522 ac_prog_rejected=yes 3523 continue 3524 fi 3525 ac_cv_prog_CC="cc" 3526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3527 break 2 3528 fi 3529 done 3530 done 3531 IFS=$as_save_IFS 3532 3533 if test $ac_prog_rejected = yes; then 3534 # We found a bogon in the path, so make sure we never use it. 3535 set dummy $ac_cv_prog_CC 3536 shift 3537 if test $# != 0; then 3538 # We chose a different compiler from the bogus one. 3539 # However, it has the same basename, so the bogon will be chosen 3540 # first if we set CC to just the basename; use the full file name. 3541 shift 3542 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3543 fi 3544 fi 3545 fi 3546 fi 3547 CC=$ac_cv_prog_CC 3548 if test -n "$CC"; then 3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3550 printf "%s\n" "$CC" >&6; } 3551 else 3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553 printf "%s\n" "no" >&6; } 3554 fi 3555 3556 3557 fi 3558 if test -z "$CC"; then 3559 if test -n "$ac_tool_prefix"; then 3560 for ac_prog in cl.exe 3561 do 3562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3565 printf %s "checking for $ac_word... " >&6; } 3566 if test ${ac_cv_prog_CC+y} 3567 then : 3568 printf %s "(cached) " >&6 3569 else $as_nop 3570 if test -n "$CC"; then 3571 ac_cv_prog_CC="$CC" # Let the user override the test. 3572 else 3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3574 for as_dir in $PATH 3575 do 3576 IFS=$as_save_IFS 3577 case $as_dir in #((( 3578 '') as_dir=./ ;; 3579 */) ;; 3580 *) as_dir=$as_dir/ ;; 3581 esac 3582 for ac_exec_ext in '' $ac_executable_extensions; do 3583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3586 break 2 3587 fi 3588 done 3589 done 3590 IFS=$as_save_IFS 3591 3592 fi 3593 fi 3594 CC=$ac_cv_prog_CC 3595 if test -n "$CC"; then 3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3597 printf "%s\n" "$CC" >&6; } 3598 else 3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3600 printf "%s\n" "no" >&6; } 3601 fi 3602 3603 3604 test -n "$CC" && break 3605 done 3606 fi 3607 if test -z "$CC"; then 3608 ac_ct_CC=$CC 3609 for ac_prog in cl.exe 3610 do 3611 # Extract the first word of "$ac_prog", so it can be a program name with args. 3612 set dummy $ac_prog; ac_word=$2 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3614 printf %s "checking for $ac_word... " >&6; } 3615 if test ${ac_cv_prog_ac_ct_CC+y} 3616 then : 3617 printf %s "(cached) " >&6 3618 else $as_nop 3619 if test -n "$ac_ct_CC"; then 3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3621 else 3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623 for as_dir in $PATH 3624 do 3625 IFS=$as_save_IFS 3626 case $as_dir in #((( 3627 '') as_dir=./ ;; 3628 */) ;; 3629 *) as_dir=$as_dir/ ;; 3630 esac 3631 for ac_exec_ext in '' $ac_executable_extensions; do 3632 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3633 ac_cv_prog_ac_ct_CC="$ac_prog" 3634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3635 break 2 3636 fi 3637 done 3638 done 3639 IFS=$as_save_IFS 3640 3641 fi 3642 fi 3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3644 if test -n "$ac_ct_CC"; then 3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3646 printf "%s\n" "$ac_ct_CC" >&6; } 3647 else 3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3649 printf "%s\n" "no" >&6; } 3650 fi 3651 3652 3653 test -n "$ac_ct_CC" && break 3654 done 3655 3656 if test "x$ac_ct_CC" = x; then 3657 CC="" 3658 else 3659 case $cross_compiling:$ac_tool_warned in 3660 yes:) 3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3663 ac_tool_warned=yes ;; 3664 esac 3665 CC=$ac_ct_CC 3666 fi 3667 fi 3668 3669 fi 3670 if test -z "$CC"; then 3671 if test -n "$ac_tool_prefix"; then 3672 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3673 set dummy ${ac_tool_prefix}clang; ac_word=$2 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3675 printf %s "checking for $ac_word... " >&6; } 3676 if test ${ac_cv_prog_CC+y} 3677 then : 3678 printf %s "(cached) " >&6 3679 else $as_nop 3680 if test -n "$CC"; then 3681 ac_cv_prog_CC="$CC" # Let the user override the test. 3682 else 3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684 for as_dir in $PATH 3685 do 3686 IFS=$as_save_IFS 3687 case $as_dir in #((( 3688 '') as_dir=./ ;; 3689 */) ;; 3690 *) as_dir=$as_dir/ ;; 3691 esac 3692 for ac_exec_ext in '' $ac_executable_extensions; do 3693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3694 ac_cv_prog_CC="${ac_tool_prefix}clang" 3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3696 break 2 3697 fi 3698 done 3699 done 3700 IFS=$as_save_IFS 3701 3702 fi 3703 fi 3704 CC=$ac_cv_prog_CC 3705 if test -n "$CC"; then 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3707 printf "%s\n" "$CC" >&6; } 3708 else 3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3710 printf "%s\n" "no" >&6; } 3711 fi 3712 3713 3714 fi 3715 if test -z "$ac_cv_prog_CC"; then 3716 ac_ct_CC=$CC 3717 # Extract the first word of "clang", so it can be a program name with args. 3718 set dummy clang; ac_word=$2 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3720 printf %s "checking for $ac_word... " >&6; } 3721 if test ${ac_cv_prog_ac_ct_CC+y} 3722 then : 3723 printf %s "(cached) " >&6 3724 else $as_nop 3725 if test -n "$ac_ct_CC"; then 3726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3727 else 3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729 for as_dir in $PATH 3730 do 3731 IFS=$as_save_IFS 3732 case $as_dir in #((( 3733 '') as_dir=./ ;; 3734 */) ;; 3735 *) as_dir=$as_dir/ ;; 3736 esac 3737 for ac_exec_ext in '' $ac_executable_extensions; do 3738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3739 ac_cv_prog_ac_ct_CC="clang" 3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3741 break 2 3742 fi 3743 done 3744 done 3745 IFS=$as_save_IFS 3746 3747 fi 3748 fi 3749 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3750 if test -n "$ac_ct_CC"; then 3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3752 printf "%s\n" "$ac_ct_CC" >&6; } 3753 else 3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3755 printf "%s\n" "no" >&6; } 3756 fi 3757 3758 if test "x$ac_ct_CC" = x; then 3759 CC="" 3760 else 3761 case $cross_compiling:$ac_tool_warned in 3762 yes:) 3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3764 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3765 ac_tool_warned=yes ;; 3766 esac 3767 CC=$ac_ct_CC 3768 fi 3769 else 3770 CC="$ac_cv_prog_CC" 3771 fi 3772 3773 fi 3774 3775 3776 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3777 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3778 as_fn_error $? "no acceptable C compiler found in \$PATH 3779 See \`config.log' for more details" "$LINENO" 5; } 3780 3781 # Provide some information about the compiler. 3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3783 set X $ac_compile 3784 ac_compiler=$2 3785 for ac_option in --version -v -V -qversion -version; do 3786 { { ac_try="$ac_compiler $ac_option >&5" 3787 case "(($ac_try" in 3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3789 *) ac_try_echo=$ac_try;; 3790 esac 3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3792 printf "%s\n" "$ac_try_echo"; } >&5 3793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3794 ac_status=$? 3795 if test -s conftest.err; then 3796 sed '10a\ 3797 ... rest of stderr output deleted ... 3798 10q' conftest.err >conftest.er1 3799 cat conftest.er1 >&5 3800 fi 3801 rm -f conftest.er1 conftest.err 3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3803 test $ac_status = 0; } 3804 done 3805 3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807 /* end confdefs.h. */ 3808 3809 int 3810 main (void) 3811 { 3812 3813 ; 3814 return 0; 3815 } 3816 _ACEOF 3817 ac_clean_files_save=$ac_clean_files 3818 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3819 # Try to create an executable without -o first, disregard a.out. 3820 # It will help us diagnose broken compilers, and finding out an intuition 3821 # of exeext. 3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3823 printf %s "checking whether the C compiler works... " >&6; } 3824 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3825 3826 # The possible output files: 3827 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3828 3829 ac_rmfiles= 3830 for ac_file in $ac_files 3831 do 3832 case $ac_file in 3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3834 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3835 esac 3836 done 3837 rm -f $ac_rmfiles 3838 3839 if { { ac_try="$ac_link_default" 3840 case "(($ac_try" in 3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3842 *) ac_try_echo=$ac_try;; 3843 esac 3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3845 printf "%s\n" "$ac_try_echo"; } >&5 3846 (eval "$ac_link_default") 2>&5 3847 ac_status=$? 3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3849 test $ac_status = 0; } 3850 then : 3851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3852 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3853 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3854 # so that the user can short-circuit this test for compilers unknown to 3855 # Autoconf. 3856 for ac_file in $ac_files '' 3857 do 3858 test -f "$ac_file" || continue 3859 case $ac_file in 3860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3861 ;; 3862 [ab].out ) 3863 # We found the default executable, but exeext='' is most 3864 # certainly right. 3865 break;; 3866 *.* ) 3867 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3868 then :; else 3869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3870 fi 3871 # We set ac_cv_exeext here because the later test for it is not 3872 # safe: cross compilers may not add the suffix if given an `-o' 3873 # argument, so we may need to know it at that point already. 3874 # Even if this section looks crufty: it has the advantage of 3875 # actually working. 3876 break;; 3877 * ) 3878 break;; 3879 esac 3880 done 3881 test "$ac_cv_exeext" = no && ac_cv_exeext= 3882 3883 else $as_nop 3884 ac_file='' 3885 fi 3886 if test -z "$ac_file" 3887 then : 3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3889 printf "%s\n" "no" >&6; } 3890 printf "%s\n" "$as_me: failed program was:" >&5 3891 sed 's/^/| /' conftest.$ac_ext >&5 3892 3893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3895 as_fn_error 77 "C compiler cannot create executables 3896 See \`config.log' for more details" "$LINENO" 5; } 3897 else $as_nop 3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3899 printf "%s\n" "yes" >&6; } 3900 fi 3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3902 printf %s "checking for C compiler default output file name... " >&6; } 3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3904 printf "%s\n" "$ac_file" >&6; } 3905 ac_exeext=$ac_cv_exeext 3906 3907 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3908 ac_clean_files=$ac_clean_files_save 3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3910 printf %s "checking for suffix of executables... " >&6; } 3911 if { { ac_try="$ac_link" 3912 case "(($ac_try" in 3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3914 *) ac_try_echo=$ac_try;; 3915 esac 3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3917 printf "%s\n" "$ac_try_echo"; } >&5 3918 (eval "$ac_link") 2>&5 3919 ac_status=$? 3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3921 test $ac_status = 0; } 3922 then : 3923 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3924 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3925 # work properly (i.e., refer to `conftest.exe'), while it won't with 3926 # `rm'. 3927 for ac_file in conftest.exe conftest conftest.*; do 3928 test -f "$ac_file" || continue 3929 case $ac_file in 3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3931 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3932 break;; 3933 * ) break;; 3934 esac 3935 done 3936 else $as_nop 3937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3938 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3939 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3940 See \`config.log' for more details" "$LINENO" 5; } 3941 fi 3942 rm -f conftest conftest$ac_cv_exeext 3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3944 printf "%s\n" "$ac_cv_exeext" >&6; } 3945 3946 rm -f conftest.$ac_ext 3947 EXEEXT=$ac_cv_exeext 3948 ac_exeext=$EXEEXT 3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3950 /* end confdefs.h. */ 3951 #include <stdio.h> 3952 int 3953 main (void) 3954 { 3955 FILE *f = fopen ("conftest.out", "w"); 3956 return ferror (f) || fclose (f) != 0; 3957 3958 ; 3959 return 0; 3960 } 3961 _ACEOF 3962 ac_clean_files="$ac_clean_files conftest.out" 3963 # Check that the compiler produces executables we can run. If not, either 3964 # the compiler is broken, or we cross compile. 3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3966 printf %s "checking whether we are cross compiling... " >&6; } 3967 if test "$cross_compiling" != yes; then 3968 { { ac_try="$ac_link" 3969 case "(($ac_try" in 3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3971 *) ac_try_echo=$ac_try;; 3972 esac 3973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3974 printf "%s\n" "$ac_try_echo"; } >&5 3975 (eval "$ac_link") 2>&5 3976 ac_status=$? 3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3978 test $ac_status = 0; } 3979 if { ac_try='./conftest$ac_cv_exeext' 3980 { { case "(($ac_try" in 3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3982 *) ac_try_echo=$ac_try;; 3983 esac 3984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3985 printf "%s\n" "$ac_try_echo"; } >&5 3986 (eval "$ac_try") 2>&5 3987 ac_status=$? 3988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3989 test $ac_status = 0; }; }; then 3990 cross_compiling=no 3991 else 3992 if test "$cross_compiling" = maybe; then 3993 cross_compiling=yes 3994 else 3995 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3996 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3997 as_fn_error 77 "cannot run C compiled programs. 3998 If you meant to cross compile, use \`--host'. 3999 See \`config.log' for more details" "$LINENO" 5; } 4000 fi 4001 fi 4002 fi 4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4004 printf "%s\n" "$cross_compiling" >&6; } 4005 4006 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4007 ac_clean_files=$ac_clean_files_save 4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4009 printf %s "checking for suffix of object files... " >&6; } 4010 if test ${ac_cv_objext+y} 4011 then : 4012 printf %s "(cached) " >&6 4013 else $as_nop 4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4015 /* end confdefs.h. */ 4016 4017 int 4018 main (void) 4019 { 4020 4021 ; 4022 return 0; 4023 } 4024 _ACEOF 4025 rm -f conftest.o conftest.obj 4026 if { { ac_try="$ac_compile" 4027 case "(($ac_try" in 4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4029 *) ac_try_echo=$ac_try;; 4030 esac 4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4032 printf "%s\n" "$ac_try_echo"; } >&5 4033 (eval "$ac_compile") 2>&5 4034 ac_status=$? 4035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4036 test $ac_status = 0; } 4037 then : 4038 for ac_file in conftest.o conftest.obj conftest.*; do 4039 test -f "$ac_file" || continue; 4040 case $ac_file in 4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4042 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4043 break;; 4044 esac 4045 done 4046 else $as_nop 4047 printf "%s\n" "$as_me: failed program was:" >&5 4048 sed 's/^/| /' conftest.$ac_ext >&5 4049 4050 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4051 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4052 as_fn_error $? "cannot compute suffix of object files: cannot compile 4053 See \`config.log' for more details" "$LINENO" 5; } 4054 fi 4055 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4056 fi 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4058 printf "%s\n" "$ac_cv_objext" >&6; } 4059 OBJEXT=$ac_cv_objext 4060 ac_objext=$OBJEXT 4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4062 printf %s "checking whether the compiler supports GNU C... " >&6; } 4063 if test ${ac_cv_c_compiler_gnu+y} 4064 then : 4065 printf %s "(cached) " >&6 4066 else $as_nop 4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4068 /* end confdefs.h. */ 4069 4070 int 4071 main (void) 4072 { 4073 #ifndef __GNUC__ 4074 choke me 4075 #endif 4076 4077 ; 4078 return 0; 4079 } 4080 _ACEOF 4081 if ac_fn_c_try_compile "$LINENO" 4082 then : 4083 ac_compiler_gnu=yes 4084 else $as_nop 4085 ac_compiler_gnu=no 4086 fi 4087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4088 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4089 4090 fi 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4092 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4094 4095 if test $ac_compiler_gnu = yes; then 4096 GCC=yes 4097 else 4098 GCC= 4099 fi 4100 ac_test_CFLAGS=${CFLAGS+y} 4101 ac_save_CFLAGS=$CFLAGS 4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4103 printf %s "checking whether $CC accepts -g... " >&6; } 4104 if test ${ac_cv_prog_cc_g+y} 4105 then : 4106 printf %s "(cached) " >&6 4107 else $as_nop 4108 ac_save_c_werror_flag=$ac_c_werror_flag 4109 ac_c_werror_flag=yes 4110 ac_cv_prog_cc_g=no 4111 CFLAGS="-g" 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113 /* end confdefs.h. */ 4114 4115 int 4116 main (void) 4117 { 4118 4119 ; 4120 return 0; 4121 } 4122 _ACEOF 4123 if ac_fn_c_try_compile "$LINENO" 4124 then : 4125 ac_cv_prog_cc_g=yes 4126 else $as_nop 4127 CFLAGS="" 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129 /* end confdefs.h. */ 4130 4131 int 4132 main (void) 4133 { 4134 4135 ; 4136 return 0; 4137 } 4138 _ACEOF 4139 if ac_fn_c_try_compile "$LINENO" 4140 then : 4141 4142 else $as_nop 4143 ac_c_werror_flag=$ac_save_c_werror_flag 4144 CFLAGS="-g" 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146 /* end confdefs.h. */ 4147 4148 int 4149 main (void) 4150 { 4151 4152 ; 4153 return 0; 4154 } 4155 _ACEOF 4156 if ac_fn_c_try_compile "$LINENO" 4157 then : 4158 ac_cv_prog_cc_g=yes 4159 fi 4160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4161 fi 4162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4163 fi 4164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4165 ac_c_werror_flag=$ac_save_c_werror_flag 4166 fi 4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4168 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4169 if test $ac_test_CFLAGS; then 4170 CFLAGS=$ac_save_CFLAGS 4171 elif test $ac_cv_prog_cc_g = yes; then 4172 if test "$GCC" = yes; then 4173 CFLAGS="-g -O2" 4174 else 4175 CFLAGS="-g" 4176 fi 4177 else 4178 if test "$GCC" = yes; then 4179 CFLAGS="-O2" 4180 else 4181 CFLAGS= 4182 fi 4183 fi 4184 ac_prog_cc_stdc=no 4185 if test x$ac_prog_cc_stdc = xno 4186 then : 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4188 printf %s "checking for $CC option to enable C11 features... " >&6; } 4189 if test ${ac_cv_prog_cc_c11+y} 4190 then : 4191 printf %s "(cached) " >&6 4192 else $as_nop 4193 ac_cv_prog_cc_c11=no 4194 ac_save_CC=$CC 4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4196 /* end confdefs.h. */ 4197 $ac_c_conftest_c11_program 4198 _ACEOF 4199 for ac_arg in '' -std=gnu11 4200 do 4201 CC="$ac_save_CC $ac_arg" 4202 if ac_fn_c_try_compile "$LINENO" 4203 then : 4204 ac_cv_prog_cc_c11=$ac_arg 4205 fi 4206 rm -f core conftest.err conftest.$ac_objext conftest.beam 4207 test "x$ac_cv_prog_cc_c11" != "xno" && break 4208 done 4209 rm -f conftest.$ac_ext 4210 CC=$ac_save_CC 4211 fi 4212 4213 if test "x$ac_cv_prog_cc_c11" = xno 4214 then : 4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4216 printf "%s\n" "unsupported" >&6; } 4217 else $as_nop 4218 if test "x$ac_cv_prog_cc_c11" = x 4219 then : 4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4221 printf "%s\n" "none needed" >&6; } 4222 else $as_nop 4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4224 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4225 CC="$CC $ac_cv_prog_cc_c11" 4226 fi 4227 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4228 ac_prog_cc_stdc=c11 4229 fi 4230 fi 4231 if test x$ac_prog_cc_stdc = xno 4232 then : 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4234 printf %s "checking for $CC option to enable C99 features... " >&6; } 4235 if test ${ac_cv_prog_cc_c99+y} 4236 then : 4237 printf %s "(cached) " >&6 4238 else $as_nop 4239 ac_cv_prog_cc_c99=no 4240 ac_save_CC=$CC 4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242 /* end confdefs.h. */ 4243 $ac_c_conftest_c99_program 4244 _ACEOF 4245 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4246 do 4247 CC="$ac_save_CC $ac_arg" 4248 if ac_fn_c_try_compile "$LINENO" 4249 then : 4250 ac_cv_prog_cc_c99=$ac_arg 4251 fi 4252 rm -f core conftest.err conftest.$ac_objext conftest.beam 4253 test "x$ac_cv_prog_cc_c99" != "xno" && break 4254 done 4255 rm -f conftest.$ac_ext 4256 CC=$ac_save_CC 4257 fi 4258 4259 if test "x$ac_cv_prog_cc_c99" = xno 4260 then : 4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4262 printf "%s\n" "unsupported" >&6; } 4263 else $as_nop 4264 if test "x$ac_cv_prog_cc_c99" = x 4265 then : 4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4267 printf "%s\n" "none needed" >&6; } 4268 else $as_nop 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4270 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4271 CC="$CC $ac_cv_prog_cc_c99" 4272 fi 4273 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4274 ac_prog_cc_stdc=c99 4275 fi 4276 fi 4277 if test x$ac_prog_cc_stdc = xno 4278 then : 4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4280 printf %s "checking for $CC option to enable C89 features... " >&6; } 4281 if test ${ac_cv_prog_cc_c89+y} 4282 then : 4283 printf %s "(cached) " >&6 4284 else $as_nop 4285 ac_cv_prog_cc_c89=no 4286 ac_save_CC=$CC 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288 /* end confdefs.h. */ 4289 $ac_c_conftest_c89_program 4290 _ACEOF 4291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4292 do 4293 CC="$ac_save_CC $ac_arg" 4294 if ac_fn_c_try_compile "$LINENO" 4295 then : 4296 ac_cv_prog_cc_c89=$ac_arg 4297 fi 4298 rm -f core conftest.err conftest.$ac_objext conftest.beam 4299 test "x$ac_cv_prog_cc_c89" != "xno" && break 4300 done 4301 rm -f conftest.$ac_ext 4302 CC=$ac_save_CC 4303 fi 4304 4305 if test "x$ac_cv_prog_cc_c89" = xno 4306 then : 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4308 printf "%s\n" "unsupported" >&6; } 4309 else $as_nop 4310 if test "x$ac_cv_prog_cc_c89" = x 4311 then : 4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4313 printf "%s\n" "none needed" >&6; } 4314 else $as_nop 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4316 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4317 CC="$CC $ac_cv_prog_cc_c89" 4318 fi 4319 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4320 ac_prog_cc_stdc=c89 4321 fi 4322 fi 4323 4324 ac_ext=c 4325 ac_cpp='$CPP $CPPFLAGS' 4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4329 4330 4331 ac_ext=c 4332 ac_cpp='$CPP $CPPFLAGS' 4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4337 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4338 if test ${am_cv_prog_cc_c_o+y} 4339 then : 4340 printf %s "(cached) " >&6 4341 else $as_nop 4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4343 /* end confdefs.h. */ 4344 4345 int 4346 main (void) 4347 { 4348 4349 ; 4350 return 0; 4351 } 4352 _ACEOF 4353 # Make sure it works both with $CC and with simple cc. 4354 # Following AC_PROG_CC_C_O, we do the test twice because some 4355 # compilers refuse to overwrite an existing .o file with -o, 4356 # though they will create one. 4357 am_cv_prog_cc_c_o=yes 4358 for am_i in 1 2; do 4359 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4360 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4361 ac_status=$? 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4363 (exit $ac_status); } \ 4364 && test -f conftest2.$ac_objext; then 4365 : OK 4366 else 4367 am_cv_prog_cc_c_o=no 4368 break 4369 fi 4370 done 4371 rm -f core conftest* 4372 unset am_i 4373 fi 4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4375 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4376 if test "$am_cv_prog_cc_c_o" != yes; then 4377 # Losing compiler, so override with the script. 4378 # FIXME: It is wrong to rewrite CC. 4379 # But if we don't then we get into trouble of one sort or another. 4380 # A longer-term fix would be to have automake use am__CC in this case, 4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4382 CC="$am_aux_dir/compile $CC" 4383 fi 4384 ac_ext=c 4385 ac_cpp='$CPP $CPPFLAGS' 4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4389 4390 4391 depcc="$CC" am_compiler_list= 4392 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4394 printf %s "checking dependency style of $depcc... " >&6; } 4395 if test ${am_cv_CC_dependencies_compiler_type+y} 4396 then : 4397 printf %s "(cached) " >&6 4398 else $as_nop 4399 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4400 # We make a subdir and do the tests there. Otherwise we can end up 4401 # making bogus files that we don't know about and never remove. For 4402 # instance it was reported that on HP-UX the gcc test will end up 4403 # making a dummy file named 'D' -- because '-MD' means "put the output 4404 # in D". 4405 rm -rf conftest.dir 4406 mkdir conftest.dir 4407 # Copy depcomp to subdir because otherwise we won't find it if we're 4408 # using a relative directory. 4409 cp "$am_depcomp" conftest.dir 4410 cd conftest.dir 4411 # We will build objects and dependencies in a subdirectory because 4412 # it helps to detect inapplicable dependency modes. For instance 4413 # both Tru64's cc and ICC support -MD to output dependencies as a 4414 # side effect of compilation, but ICC will put the dependencies in 4415 # the current directory while Tru64 will put them in the object 4416 # directory. 4417 mkdir sub 4418 4419 am_cv_CC_dependencies_compiler_type=none 4420 if test "$am_compiler_list" = ""; then 4421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4422 fi 4423 am__universal=false 4424 case " $depcc " in #( 4425 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4426 esac 4427 4428 for depmode in $am_compiler_list; do 4429 # Setup a source with many dependencies, because some compilers 4430 # like to wrap large dependency lists on column 80 (with \), and 4431 # we should not choose a depcomp mode which is confused by this. 4432 # 4433 # We need to recreate these files for each test, as the compiler may 4434 # overwrite some of them when testing with obscure command lines. 4435 # This happens at least with the AIX C compiler. 4436 : > sub/conftest.c 4437 for i in 1 2 3 4 5 6; do 4438 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4439 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4440 # Solaris 10 /bin/sh. 4441 echo '/* dummy */' > sub/conftst$i.h 4442 done 4443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4444 4445 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4446 # mode. It turns out that the SunPro C++ compiler does not properly 4447 # handle '-M -o', and we need to detect this. Also, some Intel 4448 # versions had trouble with output in subdirs. 4449 am__obj=sub/conftest.${OBJEXT-o} 4450 am__minus_obj="-o $am__obj" 4451 case $depmode in 4452 gcc) 4453 # This depmode causes a compiler race in universal mode. 4454 test "$am__universal" = false || continue 4455 ;; 4456 nosideeffect) 4457 # After this tag, mechanisms are not by side-effect, so they'll 4458 # only be used when explicitly requested. 4459 if test "x$enable_dependency_tracking" = xyes; then 4460 continue 4461 else 4462 break 4463 fi 4464 ;; 4465 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4466 # This compiler won't grok '-c -o', but also, the minuso test has 4467 # not run yet. These depmodes are late enough in the game, and 4468 # so weak that their functioning should not be impacted. 4469 am__obj=conftest.${OBJEXT-o} 4470 am__minus_obj= 4471 ;; 4472 none) break ;; 4473 esac 4474 if depmode=$depmode \ 4475 source=sub/conftest.c object=$am__obj \ 4476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4478 >/dev/null 2>conftest.err && 4479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4483 # icc doesn't choke on unknown options, it will just issue warnings 4484 # or remarks (even with -Werror). So we grep stderr for any message 4485 # that says an option was ignored or not supported. 4486 # When given -MP, icc 7.0 and 7.1 complain thusly: 4487 # icc: Command line warning: ignoring option '-M'; no argument required 4488 # The diagnosis changed in icc 8.0: 4489 # icc: Command line remark: option '-MP' not supported 4490 if (grep 'ignoring option' conftest.err || 4491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4492 am_cv_CC_dependencies_compiler_type=$depmode 4493 break 4494 fi 4495 fi 4496 done 4497 4498 cd .. 4499 rm -rf conftest.dir 4500 else 4501 am_cv_CC_dependencies_compiler_type=none 4502 fi 4503 4504 fi 4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4506 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4508 4509 if 4510 test "x$enable_dependency_tracking" != xno \ 4511 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4512 am__fastdepCC_TRUE= 4513 am__fastdepCC_FALSE='#' 4514 else 4515 am__fastdepCC_TRUE='#' 4516 am__fastdepCC_FALSE= 4517 fi 4518 4519 4520 4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4522 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4523 if test ${ac_cv_c_undeclared_builtin_options+y} 4524 then : 4525 printf %s "(cached) " >&6 4526 else $as_nop 4527 ac_save_CFLAGS=$CFLAGS 4528 ac_cv_c_undeclared_builtin_options='cannot detect' 4529 for ac_arg in '' -fno-builtin; do 4530 CFLAGS="$ac_save_CFLAGS $ac_arg" 4531 # This test program should *not* compile successfully. 4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4533 /* end confdefs.h. */ 4534 4535 int 4536 main (void) 4537 { 4538 (void) strchr; 4539 ; 4540 return 0; 4541 } 4542 _ACEOF 4543 if ac_fn_c_try_compile "$LINENO" 4544 then : 4545 4546 else $as_nop 4547 # This test program should compile successfully. 4548 # No library function is consistently available on 4549 # freestanding implementations, so test against a dummy 4550 # declaration. Include always-available headers on the 4551 # off chance that they somehow elicit warnings. 4552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4553 /* end confdefs.h. */ 4554 #include <float.h> 4555 #include <limits.h> 4556 #include <stdarg.h> 4557 #include <stddef.h> 4558 extern void ac_decl (int, char *); 4559 4560 int 4561 main (void) 4562 { 4563 (void) ac_decl (0, (char *) 0); 4564 (void) ac_decl; 4565 4566 ; 4567 return 0; 4568 } 4569 _ACEOF 4570 if ac_fn_c_try_compile "$LINENO" 4571 then : 4572 if test x"$ac_arg" = x 4573 then : 4574 ac_cv_c_undeclared_builtin_options='none needed' 4575 else $as_nop 4576 ac_cv_c_undeclared_builtin_options=$ac_arg 4577 fi 4578 break 4579 fi 4580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4581 fi 4582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4583 done 4584 CFLAGS=$ac_save_CFLAGS 4585 4586 fi 4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4588 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4589 case $ac_cv_c_undeclared_builtin_options in #( 4590 'cannot detect') : 4591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4592 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4593 as_fn_error $? "cannot make $CC report undeclared builtins 4594 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4595 'none needed') : 4596 ac_c_undeclared_builtin_options='' ;; #( 4597 *) : 4598 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4599 esac 4600 4601 ac_header= ac_cache= 4602 for ac_item in $ac_header_c_list 4603 do 4604 if test $ac_cache; then 4605 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4606 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4607 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4608 fi 4609 ac_header= ac_cache= 4610 elif test $ac_header; then 4611 ac_cache=$ac_item 4612 else 4613 ac_header=$ac_item 4614 fi 4615 done 4616 4617 4618 4619 4620 4621 4622 4623 4624 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4625 then : 4626 4627 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4628 4629 fi 4630 4631 4632 4633 4634 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4635 if test "x$ac_cv_have_decl___clang__" = xyes 4636 then : 4637 CLANGCC="yes" 4638 else $as_nop 4639 CLANGCC="no" 4640 fi 4641 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4642 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4643 then : 4644 INTELCC="yes" 4645 else $as_nop 4646 INTELCC="no" 4647 fi 4648 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4649 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4650 then : 4651 SUNCC="yes" 4652 else $as_nop 4653 SUNCC="no" 4654 fi 4655 4656 4657 4658 4659 4660 4661 4662 4663 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4664 if test -n "$ac_tool_prefix"; then 4665 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4666 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4668 printf %s "checking for $ac_word... " >&6; } 4669 if test ${ac_cv_path_PKG_CONFIG+y} 4670 then : 4671 printf %s "(cached) " >&6 4672 else $as_nop 4673 case $PKG_CONFIG in 4674 [\\/]* | ?:[\\/]*) 4675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4676 ;; 4677 *) 4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4679 for as_dir in $PATH 4680 do 4681 IFS=$as_save_IFS 4682 case $as_dir in #((( 4683 '') as_dir=./ ;; 4684 */) ;; 4685 *) as_dir=$as_dir/ ;; 4686 esac 4687 for ac_exec_ext in '' $ac_executable_extensions; do 4688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4689 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4691 break 2 4692 fi 4693 done 4694 done 4695 IFS=$as_save_IFS 4696 4697 ;; 4698 esac 4699 fi 4700 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4701 if test -n "$PKG_CONFIG"; then 4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4703 printf "%s\n" "$PKG_CONFIG" >&6; } 4704 else 4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4706 printf "%s\n" "no" >&6; } 4707 fi 4708 4709 4710 fi 4711 if test -z "$ac_cv_path_PKG_CONFIG"; then 4712 ac_pt_PKG_CONFIG=$PKG_CONFIG 4713 # Extract the first word of "pkg-config", so it can be a program name with args. 4714 set dummy pkg-config; ac_word=$2 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4716 printf %s "checking for $ac_word... " >&6; } 4717 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4718 then : 4719 printf %s "(cached) " >&6 4720 else $as_nop 4721 case $ac_pt_PKG_CONFIG in 4722 [\\/]* | ?:[\\/]*) 4723 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4724 ;; 4725 *) 4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4727 for as_dir in $PATH 4728 do 4729 IFS=$as_save_IFS 4730 case $as_dir in #((( 4731 '') as_dir=./ ;; 4732 */) ;; 4733 *) as_dir=$as_dir/ ;; 4734 esac 4735 for ac_exec_ext in '' $ac_executable_extensions; do 4736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4737 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4739 break 2 4740 fi 4741 done 4742 done 4743 IFS=$as_save_IFS 4744 4745 ;; 4746 esac 4747 fi 4748 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4749 if test -n "$ac_pt_PKG_CONFIG"; then 4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4751 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4752 else 4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4754 printf "%s\n" "no" >&6; } 4755 fi 4756 4757 if test "x$ac_pt_PKG_CONFIG" = x; then 4758 PKG_CONFIG="" 4759 else 4760 case $cross_compiling:$ac_tool_warned in 4761 yes:) 4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4763 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4764 ac_tool_warned=yes ;; 4765 esac 4766 PKG_CONFIG=$ac_pt_PKG_CONFIG 4767 fi 4768 else 4769 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4770 fi 4771 4772 fi 4773 if test -n "$PKG_CONFIG"; then 4774 _pkg_min_version=0.9.0 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4776 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4777 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4779 printf "%s\n" "yes" >&6; } 4780 else 4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4782 printf "%s\n" "no" >&6; } 4783 PKG_CONFIG="" 4784 fi 4785 fi 4786 4787 4788 # Make sure we can run config.sub. 4789 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4790 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4791 4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4793 printf %s "checking build system type... " >&6; } 4794 if test ${ac_cv_build+y} 4795 then : 4796 printf %s "(cached) " >&6 4797 else $as_nop 4798 ac_build_alias=$build_alias 4799 test "x$ac_build_alias" = x && 4800 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4801 test "x$ac_build_alias" = x && 4802 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4803 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4804 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4805 4806 fi 4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4808 printf "%s\n" "$ac_cv_build" >&6; } 4809 case $ac_cv_build in 4810 *-*-*) ;; 4811 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4812 esac 4813 build=$ac_cv_build 4814 ac_save_IFS=$IFS; IFS='-' 4815 set x $ac_cv_build 4816 shift 4817 build_cpu=$1 4818 build_vendor=$2 4819 shift; shift 4820 # Remember, the first character of IFS is used to create $*, 4821 # except with old shells: 4822 build_os=$* 4823 IFS=$ac_save_IFS 4824 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4825 4826 4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4828 printf %s "checking host system type... " >&6; } 4829 if test ${ac_cv_host+y} 4830 then : 4831 printf %s "(cached) " >&6 4832 else $as_nop 4833 if test "x$host_alias" = x; then 4834 ac_cv_host=$ac_cv_build 4835 else 4836 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4837 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4838 fi 4839 4840 fi 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4842 printf "%s\n" "$ac_cv_host" >&6; } 4843 case $ac_cv_host in 4844 *-*-*) ;; 4845 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4846 esac 4847 host=$ac_cv_host 4848 ac_save_IFS=$IFS; IFS='-' 4849 set x $ac_cv_host 4850 shift 4851 host_cpu=$1 4852 host_vendor=$2 4853 shift; shift 4854 # Remember, the first character of IFS is used to create $*, 4855 # except with old shells: 4856 host_os=$* 4857 IFS=$ac_save_IFS 4858 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4859 4860 4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4862 printf %s "checking for a sed that does not truncate output... " >&6; } 4863 if test ${ac_cv_path_SED+y} 4864 then : 4865 printf %s "(cached) " >&6 4866 else $as_nop 4867 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4868 for ac_i in 1 2 3 4 5 6 7; do 4869 ac_script="$ac_script$as_nl$ac_script" 4870 done 4871 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4872 { ac_script=; unset ac_script;} 4873 if test -z "$SED"; then 4874 ac_path_SED_found=false 4875 # Loop through the user's path and test for each of PROGNAME-LIST 4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4877 for as_dir in $PATH 4878 do 4879 IFS=$as_save_IFS 4880 case $as_dir in #((( 4881 '') as_dir=./ ;; 4882 */) ;; 4883 *) as_dir=$as_dir/ ;; 4884 esac 4885 for ac_prog in sed gsed 4886 do 4887 for ac_exec_ext in '' $ac_executable_extensions; do 4888 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4889 as_fn_executable_p "$ac_path_SED" || continue 4890 # Check for GNU ac_path_SED and select it if it is found. 4891 # Check for GNU $ac_path_SED 4892 case `"$ac_path_SED" --version 2>&1` in 4893 *GNU*) 4894 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4895 *) 4896 ac_count=0 4897 printf %s 0123456789 >"conftest.in" 4898 while : 4899 do 4900 cat "conftest.in" "conftest.in" >"conftest.tmp" 4901 mv "conftest.tmp" "conftest.in" 4902 cp "conftest.in" "conftest.nl" 4903 printf "%s\n" '' >> "conftest.nl" 4904 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4906 as_fn_arith $ac_count + 1 && ac_count=$as_val 4907 if test $ac_count -gt ${ac_path_SED_max-0}; then 4908 # Best one so far, save it but keep looking for a better one 4909 ac_cv_path_SED="$ac_path_SED" 4910 ac_path_SED_max=$ac_count 4911 fi 4912 # 10*(2^10) chars as input seems more than enough 4913 test $ac_count -gt 10 && break 4914 done 4915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4916 esac 4917 4918 $ac_path_SED_found && break 3 4919 done 4920 done 4921 done 4922 IFS=$as_save_IFS 4923 if test -z "$ac_cv_path_SED"; then 4924 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4925 fi 4926 else 4927 ac_cv_path_SED=$SED 4928 fi 4929 4930 fi 4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4932 printf "%s\n" "$ac_cv_path_SED" >&6; } 4933 SED="$ac_cv_path_SED" 4934 rm -f conftest.sed 4935 4936 4937 4938 4939 4940 4941 # Check whether --enable-selective-werror was given. 4942 if test ${enable_selective_werror+y} 4943 then : 4944 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4945 else $as_nop 4946 SELECTIVE_WERROR=yes 4947 fi 4948 4949 4950 4951 4952 4953 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4954 if test "x$SUNCC" = "xyes"; then 4955 BASE_CFLAGS="-v" 4956 else 4957 BASE_CFLAGS="" 4958 fi 4959 4960 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 xorg_testset_save_CFLAGS="$CFLAGS" 4975 4976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4979 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4980 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4981 then : 4982 printf %s "(cached) " >&6 4983 else $as_nop 4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4985 /* end confdefs.h. */ 4986 int i; 4987 _ACEOF 4988 if ac_fn_c_try_compile "$LINENO" 4989 then : 4990 xorg_cv_cc_flag_unknown_warning_option=yes 4991 else $as_nop 4992 xorg_cv_cc_flag_unknown_warning_option=no 4993 fi 4994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4995 fi 4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4999 CFLAGS="$xorg_testset_save_CFLAGS" 5000 fi 5001 5002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5005 fi 5006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5010 then : 5011 printf %s "(cached) " >&6 5012 else $as_nop 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014 /* end confdefs.h. */ 5015 int i; 5016 _ACEOF 5017 if ac_fn_c_try_compile "$LINENO" 5018 then : 5019 xorg_cv_cc_flag_unused_command_line_argument=yes 5020 else $as_nop 5021 xorg_cv_cc_flag_unused_command_line_argument=no 5022 fi 5023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5024 fi 5025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5026 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5028 CFLAGS="$xorg_testset_save_CFLAGS" 5029 fi 5030 5031 found="no" 5032 5033 if test $found = "no" ; then 5034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5036 fi 5037 5038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5040 fi 5041 5042 CFLAGS="$CFLAGS -Wall" 5043 5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5045 printf %s "checking if $CC supports -Wall... " >&6; } 5046 cacheid=xorg_cv_cc_flag__Wall 5047 if eval test \${$cacheid+y} 5048 then : 5049 printf %s "(cached) " >&6 5050 else $as_nop 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052 /* end confdefs.h. */ 5053 int i; 5054 int 5055 main (void) 5056 { 5057 5058 ; 5059 return 0; 5060 } 5061 _ACEOF 5062 if ac_fn_c_try_link "$LINENO" 5063 then : 5064 eval $cacheid=yes 5065 else $as_nop 5066 eval $cacheid=no 5067 fi 5068 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5069 conftest$ac_exeext conftest.$ac_ext 5070 fi 5071 5072 5073 CFLAGS="$xorg_testset_save_CFLAGS" 5074 5075 eval supported=\$$cacheid 5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5077 printf "%s\n" "$supported" >&6; } 5078 if test "$supported" = "yes" ; then 5079 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5080 found="yes" 5081 fi 5082 fi 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 xorg_testset_save_CFLAGS="$CFLAGS" 5099 5100 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5103 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5104 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5105 then : 5106 printf %s "(cached) " >&6 5107 else $as_nop 5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109 /* end confdefs.h. */ 5110 int i; 5111 _ACEOF 5112 if ac_fn_c_try_compile "$LINENO" 5113 then : 5114 xorg_cv_cc_flag_unknown_warning_option=yes 5115 else $as_nop 5116 xorg_cv_cc_flag_unknown_warning_option=no 5117 fi 5118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5119 fi 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5123 CFLAGS="$xorg_testset_save_CFLAGS" 5124 fi 5125 5126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5129 fi 5130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5134 then : 5135 printf %s "(cached) " >&6 5136 else $as_nop 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5138 /* end confdefs.h. */ 5139 int i; 5140 _ACEOF 5141 if ac_fn_c_try_compile "$LINENO" 5142 then : 5143 xorg_cv_cc_flag_unused_command_line_argument=yes 5144 else $as_nop 5145 xorg_cv_cc_flag_unused_command_line_argument=no 5146 fi 5147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5148 fi 5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5150 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5151 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5152 CFLAGS="$xorg_testset_save_CFLAGS" 5153 fi 5154 5155 found="no" 5156 5157 if test $found = "no" ; then 5158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5160 fi 5161 5162 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5164 fi 5165 5166 CFLAGS="$CFLAGS -Wpointer-arith" 5167 5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5169 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5170 cacheid=xorg_cv_cc_flag__Wpointer_arith 5171 if eval test \${$cacheid+y} 5172 then : 5173 printf %s "(cached) " >&6 5174 else $as_nop 5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5176 /* end confdefs.h. */ 5177 int i; 5178 int 5179 main (void) 5180 { 5181 5182 ; 5183 return 0; 5184 } 5185 _ACEOF 5186 if ac_fn_c_try_link "$LINENO" 5187 then : 5188 eval $cacheid=yes 5189 else $as_nop 5190 eval $cacheid=no 5191 fi 5192 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5193 conftest$ac_exeext conftest.$ac_ext 5194 fi 5195 5196 5197 CFLAGS="$xorg_testset_save_CFLAGS" 5198 5199 eval supported=\$$cacheid 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5201 printf "%s\n" "$supported" >&6; } 5202 if test "$supported" = "yes" ; then 5203 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5204 found="yes" 5205 fi 5206 fi 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 xorg_testset_save_CFLAGS="$CFLAGS" 5223 5224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5228 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5229 then : 5230 printf %s "(cached) " >&6 5231 else $as_nop 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5233 /* end confdefs.h. */ 5234 int i; 5235 _ACEOF 5236 if ac_fn_c_try_compile "$LINENO" 5237 then : 5238 xorg_cv_cc_flag_unknown_warning_option=yes 5239 else $as_nop 5240 xorg_cv_cc_flag_unknown_warning_option=no 5241 fi 5242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5243 fi 5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5247 CFLAGS="$xorg_testset_save_CFLAGS" 5248 fi 5249 5250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5253 fi 5254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5258 then : 5259 printf %s "(cached) " >&6 5260 else $as_nop 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262 /* end confdefs.h. */ 5263 int i; 5264 _ACEOF 5265 if ac_fn_c_try_compile "$LINENO" 5266 then : 5267 xorg_cv_cc_flag_unused_command_line_argument=yes 5268 else $as_nop 5269 xorg_cv_cc_flag_unused_command_line_argument=no 5270 fi 5271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5272 fi 5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5274 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5275 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5276 CFLAGS="$xorg_testset_save_CFLAGS" 5277 fi 5278 5279 found="no" 5280 5281 if test $found = "no" ; then 5282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5284 fi 5285 5286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5288 fi 5289 5290 CFLAGS="$CFLAGS -Wmissing-declarations" 5291 5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5293 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5294 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5295 if eval test \${$cacheid+y} 5296 then : 5297 printf %s "(cached) " >&6 5298 else $as_nop 5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5300 /* end confdefs.h. */ 5301 int i; 5302 int 5303 main (void) 5304 { 5305 5306 ; 5307 return 0; 5308 } 5309 _ACEOF 5310 if ac_fn_c_try_link "$LINENO" 5311 then : 5312 eval $cacheid=yes 5313 else $as_nop 5314 eval $cacheid=no 5315 fi 5316 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5317 conftest$ac_exeext conftest.$ac_ext 5318 fi 5319 5320 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322 5323 eval supported=\$$cacheid 5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5325 printf "%s\n" "$supported" >&6; } 5326 if test "$supported" = "yes" ; then 5327 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5328 found="yes" 5329 fi 5330 fi 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 xorg_testset_save_CFLAGS="$CFLAGS" 5347 5348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5352 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5353 then : 5354 printf %s "(cached) " >&6 5355 else $as_nop 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357 /* end confdefs.h. */ 5358 int i; 5359 _ACEOF 5360 if ac_fn_c_try_compile "$LINENO" 5361 then : 5362 xorg_cv_cc_flag_unknown_warning_option=yes 5363 else $as_nop 5364 xorg_cv_cc_flag_unknown_warning_option=no 5365 fi 5366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5367 fi 5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5371 CFLAGS="$xorg_testset_save_CFLAGS" 5372 fi 5373 5374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5377 fi 5378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5382 then : 5383 printf %s "(cached) " >&6 5384 else $as_nop 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386 /* end confdefs.h. */ 5387 int i; 5388 _ACEOF 5389 if ac_fn_c_try_compile "$LINENO" 5390 then : 5391 xorg_cv_cc_flag_unused_command_line_argument=yes 5392 else $as_nop 5393 xorg_cv_cc_flag_unused_command_line_argument=no 5394 fi 5395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5396 fi 5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5400 CFLAGS="$xorg_testset_save_CFLAGS" 5401 fi 5402 5403 found="no" 5404 5405 if test $found = "no" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 5410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5412 fi 5413 5414 CFLAGS="$CFLAGS -Wformat=2" 5415 5416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5417 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5418 cacheid=xorg_cv_cc_flag__Wformat_2 5419 if eval test \${$cacheid+y} 5420 then : 5421 printf %s "(cached) " >&6 5422 else $as_nop 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424 /* end confdefs.h. */ 5425 int i; 5426 int 5427 main (void) 5428 { 5429 5430 ; 5431 return 0; 5432 } 5433 _ACEOF 5434 if ac_fn_c_try_link "$LINENO" 5435 then : 5436 eval $cacheid=yes 5437 else $as_nop 5438 eval $cacheid=no 5439 fi 5440 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5441 conftest$ac_exeext conftest.$ac_ext 5442 fi 5443 5444 5445 CFLAGS="$xorg_testset_save_CFLAGS" 5446 5447 eval supported=\$$cacheid 5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5449 printf "%s\n" "$supported" >&6; } 5450 if test "$supported" = "yes" ; then 5451 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5452 found="yes" 5453 fi 5454 fi 5455 5456 if test $found = "no" ; then 5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459 fi 5460 5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5463 fi 5464 5465 CFLAGS="$CFLAGS -Wformat" 5466 5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5468 printf %s "checking if $CC supports -Wformat... " >&6; } 5469 cacheid=xorg_cv_cc_flag__Wformat 5470 if eval test \${$cacheid+y} 5471 then : 5472 printf %s "(cached) " >&6 5473 else $as_nop 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475 /* end confdefs.h. */ 5476 int i; 5477 int 5478 main (void) 5479 { 5480 5481 ; 5482 return 0; 5483 } 5484 _ACEOF 5485 if ac_fn_c_try_link "$LINENO" 5486 then : 5487 eval $cacheid=yes 5488 else $as_nop 5489 eval $cacheid=no 5490 fi 5491 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5492 conftest$ac_exeext conftest.$ac_ext 5493 fi 5494 5495 5496 CFLAGS="$xorg_testset_save_CFLAGS" 5497 5498 eval supported=\$$cacheid 5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5500 printf "%s\n" "$supported" >&6; } 5501 if test "$supported" = "yes" ; then 5502 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5503 found="yes" 5504 fi 5505 fi 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 xorg_testset_save_CFLAGS="$CFLAGS" 5524 5525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5528 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5529 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5530 then : 5531 printf %s "(cached) " >&6 5532 else $as_nop 5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5534 /* end confdefs.h. */ 5535 int i; 5536 _ACEOF 5537 if ac_fn_c_try_compile "$LINENO" 5538 then : 5539 xorg_cv_cc_flag_unknown_warning_option=yes 5540 else $as_nop 5541 xorg_cv_cc_flag_unknown_warning_option=no 5542 fi 5543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5544 fi 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5546 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5548 CFLAGS="$xorg_testset_save_CFLAGS" 5549 fi 5550 5551 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5554 fi 5555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5557 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5558 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5559 then : 5560 printf %s "(cached) " >&6 5561 else $as_nop 5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563 /* end confdefs.h. */ 5564 int i; 5565 _ACEOF 5566 if ac_fn_c_try_compile "$LINENO" 5567 then : 5568 xorg_cv_cc_flag_unused_command_line_argument=yes 5569 else $as_nop 5570 xorg_cv_cc_flag_unused_command_line_argument=no 5571 fi 5572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5573 fi 5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5575 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5577 CFLAGS="$xorg_testset_save_CFLAGS" 5578 fi 5579 5580 found="no" 5581 5582 if test $found = "no" ; then 5583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5585 fi 5586 5587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5589 fi 5590 5591 CFLAGS="$CFLAGS -Wstrict-prototypes" 5592 5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5594 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5595 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5596 if eval test \${$cacheid+y} 5597 then : 5598 printf %s "(cached) " >&6 5599 else $as_nop 5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5601 /* end confdefs.h. */ 5602 int i; 5603 int 5604 main (void) 5605 { 5606 5607 ; 5608 return 0; 5609 } 5610 _ACEOF 5611 if ac_fn_c_try_link "$LINENO" 5612 then : 5613 eval $cacheid=yes 5614 else $as_nop 5615 eval $cacheid=no 5616 fi 5617 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5618 conftest$ac_exeext conftest.$ac_ext 5619 fi 5620 5621 5622 CFLAGS="$xorg_testset_save_CFLAGS" 5623 5624 eval supported=\$$cacheid 5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5626 printf "%s\n" "$supported" >&6; } 5627 if test "$supported" = "yes" ; then 5628 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5629 found="yes" 5630 fi 5631 fi 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 xorg_testset_save_CFLAGS="$CFLAGS" 5648 5649 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5652 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5653 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5654 then : 5655 printf %s "(cached) " >&6 5656 else $as_nop 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658 /* end confdefs.h. */ 5659 int i; 5660 _ACEOF 5661 if ac_fn_c_try_compile "$LINENO" 5662 then : 5663 xorg_cv_cc_flag_unknown_warning_option=yes 5664 else $as_nop 5665 xorg_cv_cc_flag_unknown_warning_option=no 5666 fi 5667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5668 fi 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5670 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5672 CFLAGS="$xorg_testset_save_CFLAGS" 5673 fi 5674 5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5678 fi 5679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5681 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5682 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5683 then : 5684 printf %s "(cached) " >&6 5685 else $as_nop 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" 5691 then : 5692 xorg_cv_cc_flag_unused_command_line_argument=yes 5693 else $as_nop 5694 xorg_cv_cc_flag_unused_command_line_argument=no 5695 fi 5696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5697 fi 5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5699 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5701 CFLAGS="$xorg_testset_save_CFLAGS" 5702 fi 5703 5704 found="no" 5705 5706 if test $found = "no" ; then 5707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5709 fi 5710 5711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5713 fi 5714 5715 CFLAGS="$CFLAGS -Wmissing-prototypes" 5716 5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5718 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5719 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5720 if eval test \${$cacheid+y} 5721 then : 5722 printf %s "(cached) " >&6 5723 else $as_nop 5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725 /* end confdefs.h. */ 5726 int i; 5727 int 5728 main (void) 5729 { 5730 5731 ; 5732 return 0; 5733 } 5734 _ACEOF 5735 if ac_fn_c_try_link "$LINENO" 5736 then : 5737 eval $cacheid=yes 5738 else $as_nop 5739 eval $cacheid=no 5740 fi 5741 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5742 conftest$ac_exeext conftest.$ac_ext 5743 fi 5744 5745 5746 CFLAGS="$xorg_testset_save_CFLAGS" 5747 5748 eval supported=\$$cacheid 5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5750 printf "%s\n" "$supported" >&6; } 5751 if test "$supported" = "yes" ; then 5752 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5753 found="yes" 5754 fi 5755 fi 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 xorg_testset_save_CFLAGS="$CFLAGS" 5772 5773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5776 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5777 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5778 then : 5779 printf %s "(cached) " >&6 5780 else $as_nop 5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5782 /* end confdefs.h. */ 5783 int i; 5784 _ACEOF 5785 if ac_fn_c_try_compile "$LINENO" 5786 then : 5787 xorg_cv_cc_flag_unknown_warning_option=yes 5788 else $as_nop 5789 xorg_cv_cc_flag_unknown_warning_option=no 5790 fi 5791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5792 fi 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5794 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5796 CFLAGS="$xorg_testset_save_CFLAGS" 5797 fi 5798 5799 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5802 fi 5803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5805 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5806 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5807 then : 5808 printf %s "(cached) " >&6 5809 else $as_nop 5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5811 /* end confdefs.h. */ 5812 int i; 5813 _ACEOF 5814 if ac_fn_c_try_compile "$LINENO" 5815 then : 5816 xorg_cv_cc_flag_unused_command_line_argument=yes 5817 else $as_nop 5818 xorg_cv_cc_flag_unused_command_line_argument=no 5819 fi 5820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5821 fi 5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5823 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5825 CFLAGS="$xorg_testset_save_CFLAGS" 5826 fi 5827 5828 found="no" 5829 5830 if test $found = "no" ; then 5831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5833 fi 5834 5835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5837 fi 5838 5839 CFLAGS="$CFLAGS -Wnested-externs" 5840 5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5842 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5843 cacheid=xorg_cv_cc_flag__Wnested_externs 5844 if eval test \${$cacheid+y} 5845 then : 5846 printf %s "(cached) " >&6 5847 else $as_nop 5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5849 /* end confdefs.h. */ 5850 int i; 5851 int 5852 main (void) 5853 { 5854 5855 ; 5856 return 0; 5857 } 5858 _ACEOF 5859 if ac_fn_c_try_link "$LINENO" 5860 then : 5861 eval $cacheid=yes 5862 else $as_nop 5863 eval $cacheid=no 5864 fi 5865 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5866 conftest$ac_exeext conftest.$ac_ext 5867 fi 5868 5869 5870 CFLAGS="$xorg_testset_save_CFLAGS" 5871 5872 eval supported=\$$cacheid 5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5874 printf "%s\n" "$supported" >&6; } 5875 if test "$supported" = "yes" ; then 5876 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5877 found="yes" 5878 fi 5879 fi 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 xorg_testset_save_CFLAGS="$CFLAGS" 5896 5897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5900 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5901 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5902 then : 5903 printf %s "(cached) " >&6 5904 else $as_nop 5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5906 /* end confdefs.h. */ 5907 int i; 5908 _ACEOF 5909 if ac_fn_c_try_compile "$LINENO" 5910 then : 5911 xorg_cv_cc_flag_unknown_warning_option=yes 5912 else $as_nop 5913 xorg_cv_cc_flag_unknown_warning_option=no 5914 fi 5915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5916 fi 5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5918 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5920 CFLAGS="$xorg_testset_save_CFLAGS" 5921 fi 5922 5923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5926 fi 5927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5929 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5930 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5931 then : 5932 printf %s "(cached) " >&6 5933 else $as_nop 5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5935 /* end confdefs.h. */ 5936 int i; 5937 _ACEOF 5938 if ac_fn_c_try_compile "$LINENO" 5939 then : 5940 xorg_cv_cc_flag_unused_command_line_argument=yes 5941 else $as_nop 5942 xorg_cv_cc_flag_unused_command_line_argument=no 5943 fi 5944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5945 fi 5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5947 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5949 CFLAGS="$xorg_testset_save_CFLAGS" 5950 fi 5951 5952 found="no" 5953 5954 if test $found = "no" ; then 5955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5957 fi 5958 5959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5961 fi 5962 5963 CFLAGS="$CFLAGS -Wbad-function-cast" 5964 5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5966 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5967 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5968 if eval test \${$cacheid+y} 5969 then : 5970 printf %s "(cached) " >&6 5971 else $as_nop 5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5973 /* end confdefs.h. */ 5974 int i; 5975 int 5976 main (void) 5977 { 5978 5979 ; 5980 return 0; 5981 } 5982 _ACEOF 5983 if ac_fn_c_try_link "$LINENO" 5984 then : 5985 eval $cacheid=yes 5986 else $as_nop 5987 eval $cacheid=no 5988 fi 5989 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5990 conftest$ac_exeext conftest.$ac_ext 5991 fi 5992 5993 5994 CFLAGS="$xorg_testset_save_CFLAGS" 5995 5996 eval supported=\$$cacheid 5997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5998 printf "%s\n" "$supported" >&6; } 5999 if test "$supported" = "yes" ; then 6000 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6001 found="yes" 6002 fi 6003 fi 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 xorg_testset_save_CFLAGS="$CFLAGS" 6020 6021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6024 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6025 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6026 then : 6027 printf %s "(cached) " >&6 6028 else $as_nop 6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6030 /* end confdefs.h. */ 6031 int i; 6032 _ACEOF 6033 if ac_fn_c_try_compile "$LINENO" 6034 then : 6035 xorg_cv_cc_flag_unknown_warning_option=yes 6036 else $as_nop 6037 xorg_cv_cc_flag_unknown_warning_option=no 6038 fi 6039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6040 fi 6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6042 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6044 CFLAGS="$xorg_testset_save_CFLAGS" 6045 fi 6046 6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6050 fi 6051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6053 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6054 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6055 then : 6056 printf %s "(cached) " >&6 6057 else $as_nop 6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059 /* end confdefs.h. */ 6060 int i; 6061 _ACEOF 6062 if ac_fn_c_try_compile "$LINENO" 6063 then : 6064 xorg_cv_cc_flag_unused_command_line_argument=yes 6065 else $as_nop 6066 xorg_cv_cc_flag_unused_command_line_argument=no 6067 fi 6068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6069 fi 6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6071 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074 fi 6075 6076 found="no" 6077 6078 if test $found = "no" ; then 6079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6081 fi 6082 6083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6085 fi 6086 6087 CFLAGS="$CFLAGS -Wold-style-definition" 6088 6089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6090 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6091 cacheid=xorg_cv_cc_flag__Wold_style_definition 6092 if eval test \${$cacheid+y} 6093 then : 6094 printf %s "(cached) " >&6 6095 else $as_nop 6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097 /* end confdefs.h. */ 6098 int i; 6099 int 6100 main (void) 6101 { 6102 6103 ; 6104 return 0; 6105 } 6106 _ACEOF 6107 if ac_fn_c_try_link "$LINENO" 6108 then : 6109 eval $cacheid=yes 6110 else $as_nop 6111 eval $cacheid=no 6112 fi 6113 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6114 conftest$ac_exeext conftest.$ac_ext 6115 fi 6116 6117 6118 CFLAGS="$xorg_testset_save_CFLAGS" 6119 6120 eval supported=\$$cacheid 6121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6122 printf "%s\n" "$supported" >&6; } 6123 if test "$supported" = "yes" ; then 6124 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6125 found="yes" 6126 fi 6127 fi 6128 6129 if test $found = "no" ; then 6130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6132 fi 6133 6134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6136 fi 6137 6138 CFLAGS="$CFLAGS -fd" 6139 6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6141 printf %s "checking if $CC supports -fd... " >&6; } 6142 cacheid=xorg_cv_cc_flag__fd 6143 if eval test \${$cacheid+y} 6144 then : 6145 printf %s "(cached) " >&6 6146 else $as_nop 6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148 /* end confdefs.h. */ 6149 int i; 6150 int 6151 main (void) 6152 { 6153 6154 ; 6155 return 0; 6156 } 6157 _ACEOF 6158 if ac_fn_c_try_link "$LINENO" 6159 then : 6160 eval $cacheid=yes 6161 else $as_nop 6162 eval $cacheid=no 6163 fi 6164 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6165 conftest$ac_exeext conftest.$ac_ext 6166 fi 6167 6168 6169 CFLAGS="$xorg_testset_save_CFLAGS" 6170 6171 eval supported=\$$cacheid 6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6173 printf "%s\n" "$supported" >&6; } 6174 if test "$supported" = "yes" ; then 6175 BASE_CFLAGS="$BASE_CFLAGS -fd" 6176 found="yes" 6177 fi 6178 fi 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 xorg_testset_save_CFLAGS="$CFLAGS" 6195 6196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6199 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6200 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6201 then : 6202 printf %s "(cached) " >&6 6203 else $as_nop 6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6205 /* end confdefs.h. */ 6206 int i; 6207 _ACEOF 6208 if ac_fn_c_try_compile "$LINENO" 6209 then : 6210 xorg_cv_cc_flag_unknown_warning_option=yes 6211 else $as_nop 6212 xorg_cv_cc_flag_unknown_warning_option=no 6213 fi 6214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6215 fi 6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6217 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6219 CFLAGS="$xorg_testset_save_CFLAGS" 6220 fi 6221 6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6225 fi 6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6228 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6229 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6230 then : 6231 printf %s "(cached) " >&6 6232 else $as_nop 6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6234 /* end confdefs.h. */ 6235 int i; 6236 _ACEOF 6237 if ac_fn_c_try_compile "$LINENO" 6238 then : 6239 xorg_cv_cc_flag_unused_command_line_argument=yes 6240 else $as_nop 6241 xorg_cv_cc_flag_unused_command_line_argument=no 6242 fi 6243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6244 fi 6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6246 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6248 CFLAGS="$xorg_testset_save_CFLAGS" 6249 fi 6250 6251 found="no" 6252 6253 if test $found = "no" ; then 6254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6256 fi 6257 6258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6260 fi 6261 6262 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6263 6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6265 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6266 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6267 if eval test \${$cacheid+y} 6268 then : 6269 printf %s "(cached) " >&6 6270 else $as_nop 6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272 /* end confdefs.h. */ 6273 int i; 6274 int 6275 main (void) 6276 { 6277 6278 ; 6279 return 0; 6280 } 6281 _ACEOF 6282 if ac_fn_c_try_link "$LINENO" 6283 then : 6284 eval $cacheid=yes 6285 else $as_nop 6286 eval $cacheid=no 6287 fi 6288 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6289 conftest$ac_exeext conftest.$ac_ext 6290 fi 6291 6292 6293 CFLAGS="$xorg_testset_save_CFLAGS" 6294 6295 eval supported=\$$cacheid 6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6297 printf "%s\n" "$supported" >&6; } 6298 if test "$supported" = "yes" ; then 6299 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6300 found="yes" 6301 fi 6302 fi 6303 6304 6305 6306 6307 6308 # This chunk adds additional warnings that could catch undesired effects. 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 xorg_testset_save_CFLAGS="$CFLAGS" 6323 6324 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6327 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6328 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6329 then : 6330 printf %s "(cached) " >&6 6331 else $as_nop 6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6333 /* end confdefs.h. */ 6334 int i; 6335 _ACEOF 6336 if ac_fn_c_try_compile "$LINENO" 6337 then : 6338 xorg_cv_cc_flag_unknown_warning_option=yes 6339 else $as_nop 6340 xorg_cv_cc_flag_unknown_warning_option=no 6341 fi 6342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6343 fi 6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6345 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6347 CFLAGS="$xorg_testset_save_CFLAGS" 6348 fi 6349 6350 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6353 fi 6354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6356 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6357 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6358 then : 6359 printf %s "(cached) " >&6 6360 else $as_nop 6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6362 /* end confdefs.h. */ 6363 int i; 6364 _ACEOF 6365 if ac_fn_c_try_compile "$LINENO" 6366 then : 6367 xorg_cv_cc_flag_unused_command_line_argument=yes 6368 else $as_nop 6369 xorg_cv_cc_flag_unused_command_line_argument=no 6370 fi 6371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6372 fi 6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6376 CFLAGS="$xorg_testset_save_CFLAGS" 6377 fi 6378 6379 found="no" 6380 6381 if test $found = "no" ; then 6382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6384 fi 6385 6386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6388 fi 6389 6390 CFLAGS="$CFLAGS -Wunused" 6391 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6393 printf %s "checking if $CC supports -Wunused... " >&6; } 6394 cacheid=xorg_cv_cc_flag__Wunused 6395 if eval test \${$cacheid+y} 6396 then : 6397 printf %s "(cached) " >&6 6398 else $as_nop 6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400 /* end confdefs.h. */ 6401 int i; 6402 int 6403 main (void) 6404 { 6405 6406 ; 6407 return 0; 6408 } 6409 _ACEOF 6410 if ac_fn_c_try_link "$LINENO" 6411 then : 6412 eval $cacheid=yes 6413 else $as_nop 6414 eval $cacheid=no 6415 fi 6416 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6417 conftest$ac_exeext conftest.$ac_ext 6418 fi 6419 6420 6421 CFLAGS="$xorg_testset_save_CFLAGS" 6422 6423 eval supported=\$$cacheid 6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6425 printf "%s\n" "$supported" >&6; } 6426 if test "$supported" = "yes" ; then 6427 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6428 found="yes" 6429 fi 6430 fi 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 xorg_testset_save_CFLAGS="$CFLAGS" 6447 6448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6451 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6452 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6453 then : 6454 printf %s "(cached) " >&6 6455 else $as_nop 6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6457 /* end confdefs.h. */ 6458 int i; 6459 _ACEOF 6460 if ac_fn_c_try_compile "$LINENO" 6461 then : 6462 xorg_cv_cc_flag_unknown_warning_option=yes 6463 else $as_nop 6464 xorg_cv_cc_flag_unknown_warning_option=no 6465 fi 6466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6467 fi 6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6469 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6470 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6471 CFLAGS="$xorg_testset_save_CFLAGS" 6472 fi 6473 6474 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6477 fi 6478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6480 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6481 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6482 then : 6483 printf %s "(cached) " >&6 6484 else $as_nop 6485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6486 /* end confdefs.h. */ 6487 int i; 6488 _ACEOF 6489 if ac_fn_c_try_compile "$LINENO" 6490 then : 6491 xorg_cv_cc_flag_unused_command_line_argument=yes 6492 else $as_nop 6493 xorg_cv_cc_flag_unused_command_line_argument=no 6494 fi 6495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6496 fi 6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6498 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6500 CFLAGS="$xorg_testset_save_CFLAGS" 6501 fi 6502 6503 found="no" 6504 6505 if test $found = "no" ; then 6506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6508 fi 6509 6510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6512 fi 6513 6514 CFLAGS="$CFLAGS -Wuninitialized" 6515 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6517 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6518 cacheid=xorg_cv_cc_flag__Wuninitialized 6519 if eval test \${$cacheid+y} 6520 then : 6521 printf %s "(cached) " >&6 6522 else $as_nop 6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6524 /* end confdefs.h. */ 6525 int i; 6526 int 6527 main (void) 6528 { 6529 6530 ; 6531 return 0; 6532 } 6533 _ACEOF 6534 if ac_fn_c_try_link "$LINENO" 6535 then : 6536 eval $cacheid=yes 6537 else $as_nop 6538 eval $cacheid=no 6539 fi 6540 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6541 conftest$ac_exeext conftest.$ac_ext 6542 fi 6543 6544 6545 CFLAGS="$xorg_testset_save_CFLAGS" 6546 6547 eval supported=\$$cacheid 6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6549 printf "%s\n" "$supported" >&6; } 6550 if test "$supported" = "yes" ; then 6551 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6552 found="yes" 6553 fi 6554 fi 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 xorg_testset_save_CFLAGS="$CFLAGS" 6571 6572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6576 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6577 then : 6578 printf %s "(cached) " >&6 6579 else $as_nop 6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6581 /* end confdefs.h. */ 6582 int i; 6583 _ACEOF 6584 if ac_fn_c_try_compile "$LINENO" 6585 then : 6586 xorg_cv_cc_flag_unknown_warning_option=yes 6587 else $as_nop 6588 xorg_cv_cc_flag_unknown_warning_option=no 6589 fi 6590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6591 fi 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6593 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6595 CFLAGS="$xorg_testset_save_CFLAGS" 6596 fi 6597 6598 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6601 fi 6602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6604 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6605 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6606 then : 6607 printf %s "(cached) " >&6 6608 else $as_nop 6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610 /* end confdefs.h. */ 6611 int i; 6612 _ACEOF 6613 if ac_fn_c_try_compile "$LINENO" 6614 then : 6615 xorg_cv_cc_flag_unused_command_line_argument=yes 6616 else $as_nop 6617 xorg_cv_cc_flag_unused_command_line_argument=no 6618 fi 6619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6620 fi 6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6622 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6624 CFLAGS="$xorg_testset_save_CFLAGS" 6625 fi 6626 6627 found="no" 6628 6629 if test $found = "no" ; then 6630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6632 fi 6633 6634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6636 fi 6637 6638 CFLAGS="$CFLAGS -Wshadow" 6639 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6641 printf %s "checking if $CC supports -Wshadow... " >&6; } 6642 cacheid=xorg_cv_cc_flag__Wshadow 6643 if eval test \${$cacheid+y} 6644 then : 6645 printf %s "(cached) " >&6 6646 else $as_nop 6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648 /* end confdefs.h. */ 6649 int i; 6650 int 6651 main (void) 6652 { 6653 6654 ; 6655 return 0; 6656 } 6657 _ACEOF 6658 if ac_fn_c_try_link "$LINENO" 6659 then : 6660 eval $cacheid=yes 6661 else $as_nop 6662 eval $cacheid=no 6663 fi 6664 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6665 conftest$ac_exeext conftest.$ac_ext 6666 fi 6667 6668 6669 CFLAGS="$xorg_testset_save_CFLAGS" 6670 6671 eval supported=\$$cacheid 6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6673 printf "%s\n" "$supported" >&6; } 6674 if test "$supported" = "yes" ; then 6675 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6676 found="yes" 6677 fi 6678 fi 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 xorg_testset_save_CFLAGS="$CFLAGS" 6695 6696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6700 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6701 then : 6702 printf %s "(cached) " >&6 6703 else $as_nop 6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6705 /* end confdefs.h. */ 6706 int i; 6707 _ACEOF 6708 if ac_fn_c_try_compile "$LINENO" 6709 then : 6710 xorg_cv_cc_flag_unknown_warning_option=yes 6711 else $as_nop 6712 xorg_cv_cc_flag_unknown_warning_option=no 6713 fi 6714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6715 fi 6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6717 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6719 CFLAGS="$xorg_testset_save_CFLAGS" 6720 fi 6721 6722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6725 fi 6726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6730 then : 6731 printf %s "(cached) " >&6 6732 else $as_nop 6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6734 /* end confdefs.h. */ 6735 int i; 6736 _ACEOF 6737 if ac_fn_c_try_compile "$LINENO" 6738 then : 6739 xorg_cv_cc_flag_unused_command_line_argument=yes 6740 else $as_nop 6741 xorg_cv_cc_flag_unused_command_line_argument=no 6742 fi 6743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6744 fi 6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6746 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6748 CFLAGS="$xorg_testset_save_CFLAGS" 6749 fi 6750 6751 found="no" 6752 6753 if test $found = "no" ; then 6754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6756 fi 6757 6758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6760 fi 6761 6762 CFLAGS="$CFLAGS -Wmissing-noreturn" 6763 6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6765 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6766 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6767 if eval test \${$cacheid+y} 6768 then : 6769 printf %s "(cached) " >&6 6770 else $as_nop 6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6772 /* end confdefs.h. */ 6773 int i; 6774 int 6775 main (void) 6776 { 6777 6778 ; 6779 return 0; 6780 } 6781 _ACEOF 6782 if ac_fn_c_try_link "$LINENO" 6783 then : 6784 eval $cacheid=yes 6785 else $as_nop 6786 eval $cacheid=no 6787 fi 6788 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6789 conftest$ac_exeext conftest.$ac_ext 6790 fi 6791 6792 6793 CFLAGS="$xorg_testset_save_CFLAGS" 6794 6795 eval supported=\$$cacheid 6796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6797 printf "%s\n" "$supported" >&6; } 6798 if test "$supported" = "yes" ; then 6799 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6800 found="yes" 6801 fi 6802 fi 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 xorg_testset_save_CFLAGS="$CFLAGS" 6819 6820 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6823 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6824 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6825 then : 6826 printf %s "(cached) " >&6 6827 else $as_nop 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" 6833 then : 6834 xorg_cv_cc_flag_unknown_warning_option=yes 6835 else $as_nop 6836 xorg_cv_cc_flag_unknown_warning_option=no 6837 fi 6838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6839 fi 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6841 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6843 CFLAGS="$xorg_testset_save_CFLAGS" 6844 fi 6845 6846 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6849 fi 6850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6852 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6853 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6854 then : 6855 printf %s "(cached) " >&6 6856 else $as_nop 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858 /* end confdefs.h. */ 6859 int i; 6860 _ACEOF 6861 if ac_fn_c_try_compile "$LINENO" 6862 then : 6863 xorg_cv_cc_flag_unused_command_line_argument=yes 6864 else $as_nop 6865 xorg_cv_cc_flag_unused_command_line_argument=no 6866 fi 6867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6868 fi 6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6870 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6872 CFLAGS="$xorg_testset_save_CFLAGS" 6873 fi 6874 6875 found="no" 6876 6877 if test $found = "no" ; then 6878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6880 fi 6881 6882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6884 fi 6885 6886 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6887 6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6889 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6890 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6891 if eval test \${$cacheid+y} 6892 then : 6893 printf %s "(cached) " >&6 6894 else $as_nop 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896 /* end confdefs.h. */ 6897 int i; 6898 int 6899 main (void) 6900 { 6901 6902 ; 6903 return 0; 6904 } 6905 _ACEOF 6906 if ac_fn_c_try_link "$LINENO" 6907 then : 6908 eval $cacheid=yes 6909 else $as_nop 6910 eval $cacheid=no 6911 fi 6912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6913 conftest$ac_exeext conftest.$ac_ext 6914 fi 6915 6916 6917 CFLAGS="$xorg_testset_save_CFLAGS" 6918 6919 eval supported=\$$cacheid 6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6921 printf "%s\n" "$supported" >&6; } 6922 if test "$supported" = "yes" ; then 6923 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6924 found="yes" 6925 fi 6926 fi 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 xorg_testset_save_CFLAGS="$CFLAGS" 6943 6944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6948 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6949 then : 6950 printf %s "(cached) " >&6 6951 else $as_nop 6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6953 /* end confdefs.h. */ 6954 int i; 6955 _ACEOF 6956 if ac_fn_c_try_compile "$LINENO" 6957 then : 6958 xorg_cv_cc_flag_unknown_warning_option=yes 6959 else $as_nop 6960 xorg_cv_cc_flag_unknown_warning_option=no 6961 fi 6962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6963 fi 6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6965 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6967 CFLAGS="$xorg_testset_save_CFLAGS" 6968 fi 6969 6970 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6973 fi 6974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6976 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6977 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6978 then : 6979 printf %s "(cached) " >&6 6980 else $as_nop 6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982 /* end confdefs.h. */ 6983 int i; 6984 _ACEOF 6985 if ac_fn_c_try_compile "$LINENO" 6986 then : 6987 xorg_cv_cc_flag_unused_command_line_argument=yes 6988 else $as_nop 6989 xorg_cv_cc_flag_unused_command_line_argument=no 6990 fi 6991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6992 fi 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6994 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6996 CFLAGS="$xorg_testset_save_CFLAGS" 6997 fi 6998 6999 found="no" 7000 7001 if test $found = "no" ; then 7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7004 fi 7005 7006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7008 fi 7009 7010 CFLAGS="$CFLAGS -Wredundant-decls" 7011 7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7013 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7014 cacheid=xorg_cv_cc_flag__Wredundant_decls 7015 if eval test \${$cacheid+y} 7016 then : 7017 printf %s "(cached) " >&6 7018 else $as_nop 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020 /* end confdefs.h. */ 7021 int i; 7022 int 7023 main (void) 7024 { 7025 7026 ; 7027 return 0; 7028 } 7029 _ACEOF 7030 if ac_fn_c_try_link "$LINENO" 7031 then : 7032 eval $cacheid=yes 7033 else $as_nop 7034 eval $cacheid=no 7035 fi 7036 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7037 conftest$ac_exeext conftest.$ac_ext 7038 fi 7039 7040 7041 CFLAGS="$xorg_testset_save_CFLAGS" 7042 7043 eval supported=\$$cacheid 7044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7045 printf "%s\n" "$supported" >&6; } 7046 if test "$supported" = "yes" ; then 7047 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7048 found="yes" 7049 fi 7050 fi 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 xorg_testset_save_CFLAGS="$CFLAGS" 7067 7068 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7071 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7072 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7073 then : 7074 printf %s "(cached) " >&6 7075 else $as_nop 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" 7081 then : 7082 xorg_cv_cc_flag_unknown_warning_option=yes 7083 else $as_nop 7084 xorg_cv_cc_flag_unknown_warning_option=no 7085 fi 7086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7087 fi 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7089 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7090 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7091 CFLAGS="$xorg_testset_save_CFLAGS" 7092 fi 7093 7094 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7097 fi 7098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7100 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7101 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7102 then : 7103 printf %s "(cached) " >&6 7104 else $as_nop 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106 /* end confdefs.h. */ 7107 int i; 7108 _ACEOF 7109 if ac_fn_c_try_compile "$LINENO" 7110 then : 7111 xorg_cv_cc_flag_unused_command_line_argument=yes 7112 else $as_nop 7113 xorg_cv_cc_flag_unused_command_line_argument=no 7114 fi 7115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7116 fi 7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7118 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7120 CFLAGS="$xorg_testset_save_CFLAGS" 7121 fi 7122 7123 found="no" 7124 7125 if test $found = "no" ; then 7126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7128 fi 7129 7130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7132 fi 7133 7134 CFLAGS="$CFLAGS -Wlogical-op" 7135 7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7137 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7138 cacheid=xorg_cv_cc_flag__Wlogical_op 7139 if eval test \${$cacheid+y} 7140 then : 7141 printf %s "(cached) " >&6 7142 else $as_nop 7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7144 /* end confdefs.h. */ 7145 int i; 7146 int 7147 main (void) 7148 { 7149 7150 ; 7151 return 0; 7152 } 7153 _ACEOF 7154 if ac_fn_c_try_link "$LINENO" 7155 then : 7156 eval $cacheid=yes 7157 else $as_nop 7158 eval $cacheid=no 7159 fi 7160 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7161 conftest$ac_exeext conftest.$ac_ext 7162 fi 7163 7164 7165 CFLAGS="$xorg_testset_save_CFLAGS" 7166 7167 eval supported=\$$cacheid 7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7169 printf "%s\n" "$supported" >&6; } 7170 if test "$supported" = "yes" ; then 7171 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7172 found="yes" 7173 fi 7174 fi 7175 7176 7177 7178 # These are currently disabled because they are noisy. They will be enabled 7179 # in the future once the codebase is sufficiently modernized to silence 7180 # them. For now, I don't want them to drown out the other warnings. 7181 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7182 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7183 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7184 7185 # Turn some warnings into errors, so we don't accidentally get successful builds 7186 # when there are problems that should be fixed. 7187 7188 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 xorg_testset_save_CFLAGS="$CFLAGS" 7203 7204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7207 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7208 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7209 then : 7210 printf %s "(cached) " >&6 7211 else $as_nop 7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7213 /* end confdefs.h. */ 7214 int i; 7215 _ACEOF 7216 if ac_fn_c_try_compile "$LINENO" 7217 then : 7218 xorg_cv_cc_flag_unknown_warning_option=yes 7219 else $as_nop 7220 xorg_cv_cc_flag_unknown_warning_option=no 7221 fi 7222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7223 fi 7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7225 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7227 CFLAGS="$xorg_testset_save_CFLAGS" 7228 fi 7229 7230 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7233 fi 7234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7236 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7237 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7238 then : 7239 printf %s "(cached) " >&6 7240 else $as_nop 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242 /* end confdefs.h. */ 7243 int i; 7244 _ACEOF 7245 if ac_fn_c_try_compile "$LINENO" 7246 then : 7247 xorg_cv_cc_flag_unused_command_line_argument=yes 7248 else $as_nop 7249 xorg_cv_cc_flag_unused_command_line_argument=no 7250 fi 7251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7252 fi 7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7256 CFLAGS="$xorg_testset_save_CFLAGS" 7257 fi 7258 7259 found="no" 7260 7261 if test $found = "no" ; then 7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 7266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7268 fi 7269 7270 CFLAGS="$CFLAGS -Werror=implicit" 7271 7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7273 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7274 cacheid=xorg_cv_cc_flag__Werror_implicit 7275 if eval test \${$cacheid+y} 7276 then : 7277 printf %s "(cached) " >&6 7278 else $as_nop 7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280 /* end confdefs.h. */ 7281 int i; 7282 int 7283 main (void) 7284 { 7285 7286 ; 7287 return 0; 7288 } 7289 _ACEOF 7290 if ac_fn_c_try_link "$LINENO" 7291 then : 7292 eval $cacheid=yes 7293 else $as_nop 7294 eval $cacheid=no 7295 fi 7296 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7297 conftest$ac_exeext conftest.$ac_ext 7298 fi 7299 7300 7301 CFLAGS="$xorg_testset_save_CFLAGS" 7302 7303 eval supported=\$$cacheid 7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7305 printf "%s\n" "$supported" >&6; } 7306 if test "$supported" = "yes" ; then 7307 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7308 found="yes" 7309 fi 7310 fi 7311 7312 if test $found = "no" ; then 7313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7315 fi 7316 7317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7319 fi 7320 7321 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7322 7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7324 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7325 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7326 if eval test \${$cacheid+y} 7327 then : 7328 printf %s "(cached) " >&6 7329 else $as_nop 7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7331 /* end confdefs.h. */ 7332 int i; 7333 int 7334 main (void) 7335 { 7336 7337 ; 7338 return 0; 7339 } 7340 _ACEOF 7341 if ac_fn_c_try_link "$LINENO" 7342 then : 7343 eval $cacheid=yes 7344 else $as_nop 7345 eval $cacheid=no 7346 fi 7347 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7348 conftest$ac_exeext conftest.$ac_ext 7349 fi 7350 7351 7352 CFLAGS="$xorg_testset_save_CFLAGS" 7353 7354 eval supported=\$$cacheid 7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7356 printf "%s\n" "$supported" >&6; } 7357 if test "$supported" = "yes" ; then 7358 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7359 found="yes" 7360 fi 7361 fi 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 xorg_testset_save_CFLAGS="$CFLAGS" 7378 7379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7383 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7384 then : 7385 printf %s "(cached) " >&6 7386 else $as_nop 7387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388 /* end confdefs.h. */ 7389 int i; 7390 _ACEOF 7391 if ac_fn_c_try_compile "$LINENO" 7392 then : 7393 xorg_cv_cc_flag_unknown_warning_option=yes 7394 else $as_nop 7395 xorg_cv_cc_flag_unknown_warning_option=no 7396 fi 7397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7398 fi 7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7402 CFLAGS="$xorg_testset_save_CFLAGS" 7403 fi 7404 7405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7408 fi 7409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7413 then : 7414 printf %s "(cached) " >&6 7415 else $as_nop 7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417 /* end confdefs.h. */ 7418 int i; 7419 _ACEOF 7420 if ac_fn_c_try_compile "$LINENO" 7421 then : 7422 xorg_cv_cc_flag_unused_command_line_argument=yes 7423 else $as_nop 7424 xorg_cv_cc_flag_unused_command_line_argument=no 7425 fi 7426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7427 fi 7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7431 CFLAGS="$xorg_testset_save_CFLAGS" 7432 fi 7433 7434 found="no" 7435 7436 if test $found = "no" ; then 7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 fi 7440 7441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7443 fi 7444 7445 CFLAGS="$CFLAGS -Werror=nonnull" 7446 7447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7448 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7449 cacheid=xorg_cv_cc_flag__Werror_nonnull 7450 if eval test \${$cacheid+y} 7451 then : 7452 printf %s "(cached) " >&6 7453 else $as_nop 7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7455 /* end confdefs.h. */ 7456 int i; 7457 int 7458 main (void) 7459 { 7460 7461 ; 7462 return 0; 7463 } 7464 _ACEOF 7465 if ac_fn_c_try_link "$LINENO" 7466 then : 7467 eval $cacheid=yes 7468 else $as_nop 7469 eval $cacheid=no 7470 fi 7471 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7472 conftest$ac_exeext conftest.$ac_ext 7473 fi 7474 7475 7476 CFLAGS="$xorg_testset_save_CFLAGS" 7477 7478 eval supported=\$$cacheid 7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7480 printf "%s\n" "$supported" >&6; } 7481 if test "$supported" = "yes" ; then 7482 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7483 found="yes" 7484 fi 7485 fi 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 xorg_testset_save_CFLAGS="$CFLAGS" 7502 7503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7507 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7508 then : 7509 printf %s "(cached) " >&6 7510 else $as_nop 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7512 /* end confdefs.h. */ 7513 int i; 7514 _ACEOF 7515 if ac_fn_c_try_compile "$LINENO" 7516 then : 7517 xorg_cv_cc_flag_unknown_warning_option=yes 7518 else $as_nop 7519 xorg_cv_cc_flag_unknown_warning_option=no 7520 fi 7521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7522 fi 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7526 CFLAGS="$xorg_testset_save_CFLAGS" 7527 fi 7528 7529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7532 fi 7533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7537 then : 7538 printf %s "(cached) " >&6 7539 else $as_nop 7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7541 /* end confdefs.h. */ 7542 int i; 7543 _ACEOF 7544 if ac_fn_c_try_compile "$LINENO" 7545 then : 7546 xorg_cv_cc_flag_unused_command_line_argument=yes 7547 else $as_nop 7548 xorg_cv_cc_flag_unused_command_line_argument=no 7549 fi 7550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7551 fi 7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7555 CFLAGS="$xorg_testset_save_CFLAGS" 7556 fi 7557 7558 found="no" 7559 7560 if test $found = "no" ; then 7561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7563 fi 7564 7565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7567 fi 7568 7569 CFLAGS="$CFLAGS -Werror=init-self" 7570 7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7572 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7573 cacheid=xorg_cv_cc_flag__Werror_init_self 7574 if eval test \${$cacheid+y} 7575 then : 7576 printf %s "(cached) " >&6 7577 else $as_nop 7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7579 /* end confdefs.h. */ 7580 int i; 7581 int 7582 main (void) 7583 { 7584 7585 ; 7586 return 0; 7587 } 7588 _ACEOF 7589 if ac_fn_c_try_link "$LINENO" 7590 then : 7591 eval $cacheid=yes 7592 else $as_nop 7593 eval $cacheid=no 7594 fi 7595 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7596 conftest$ac_exeext conftest.$ac_ext 7597 fi 7598 7599 7600 CFLAGS="$xorg_testset_save_CFLAGS" 7601 7602 eval supported=\$$cacheid 7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7604 printf "%s\n" "$supported" >&6; } 7605 if test "$supported" = "yes" ; then 7606 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7607 found="yes" 7608 fi 7609 fi 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 xorg_testset_save_CFLAGS="$CFLAGS" 7626 7627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7631 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7632 then : 7633 printf %s "(cached) " >&6 7634 else $as_nop 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636 /* end confdefs.h. */ 7637 int i; 7638 _ACEOF 7639 if ac_fn_c_try_compile "$LINENO" 7640 then : 7641 xorg_cv_cc_flag_unknown_warning_option=yes 7642 else $as_nop 7643 xorg_cv_cc_flag_unknown_warning_option=no 7644 fi 7645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7646 fi 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7650 CFLAGS="$xorg_testset_save_CFLAGS" 7651 fi 7652 7653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7656 fi 7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7661 then : 7662 printf %s "(cached) " >&6 7663 else $as_nop 7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665 /* end confdefs.h. */ 7666 int i; 7667 _ACEOF 7668 if ac_fn_c_try_compile "$LINENO" 7669 then : 7670 xorg_cv_cc_flag_unused_command_line_argument=yes 7671 else $as_nop 7672 xorg_cv_cc_flag_unused_command_line_argument=no 7673 fi 7674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7675 fi 7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7679 CFLAGS="$xorg_testset_save_CFLAGS" 7680 fi 7681 7682 found="no" 7683 7684 if test $found = "no" ; then 7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 fi 7688 7689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7691 fi 7692 7693 CFLAGS="$CFLAGS -Werror=main" 7694 7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7696 printf %s "checking if $CC supports -Werror=main... " >&6; } 7697 cacheid=xorg_cv_cc_flag__Werror_main 7698 if eval test \${$cacheid+y} 7699 then : 7700 printf %s "(cached) " >&6 7701 else $as_nop 7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7703 /* end confdefs.h. */ 7704 int i; 7705 int 7706 main (void) 7707 { 7708 7709 ; 7710 return 0; 7711 } 7712 _ACEOF 7713 if ac_fn_c_try_link "$LINENO" 7714 then : 7715 eval $cacheid=yes 7716 else $as_nop 7717 eval $cacheid=no 7718 fi 7719 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7720 conftest$ac_exeext conftest.$ac_ext 7721 fi 7722 7723 7724 CFLAGS="$xorg_testset_save_CFLAGS" 7725 7726 eval supported=\$$cacheid 7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7728 printf "%s\n" "$supported" >&6; } 7729 if test "$supported" = "yes" ; then 7730 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7731 found="yes" 7732 fi 7733 fi 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 xorg_testset_save_CFLAGS="$CFLAGS" 7750 7751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7755 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7756 then : 7757 printf %s "(cached) " >&6 7758 else $as_nop 7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760 /* end confdefs.h. */ 7761 int i; 7762 _ACEOF 7763 if ac_fn_c_try_compile "$LINENO" 7764 then : 7765 xorg_cv_cc_flag_unknown_warning_option=yes 7766 else $as_nop 7767 xorg_cv_cc_flag_unknown_warning_option=no 7768 fi 7769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7770 fi 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7774 CFLAGS="$xorg_testset_save_CFLAGS" 7775 fi 7776 7777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7780 fi 7781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7785 then : 7786 printf %s "(cached) " >&6 7787 else $as_nop 7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7789 /* end confdefs.h. */ 7790 int i; 7791 _ACEOF 7792 if ac_fn_c_try_compile "$LINENO" 7793 then : 7794 xorg_cv_cc_flag_unused_command_line_argument=yes 7795 else $as_nop 7796 xorg_cv_cc_flag_unused_command_line_argument=no 7797 fi 7798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7799 fi 7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7803 CFLAGS="$xorg_testset_save_CFLAGS" 7804 fi 7805 7806 found="no" 7807 7808 if test $found = "no" ; then 7809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7811 fi 7812 7813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7815 fi 7816 7817 CFLAGS="$CFLAGS -Werror=missing-braces" 7818 7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7820 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7821 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7822 if eval test \${$cacheid+y} 7823 then : 7824 printf %s "(cached) " >&6 7825 else $as_nop 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827 /* end confdefs.h. */ 7828 int i; 7829 int 7830 main (void) 7831 { 7832 7833 ; 7834 return 0; 7835 } 7836 _ACEOF 7837 if ac_fn_c_try_link "$LINENO" 7838 then : 7839 eval $cacheid=yes 7840 else $as_nop 7841 eval $cacheid=no 7842 fi 7843 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7844 conftest$ac_exeext conftest.$ac_ext 7845 fi 7846 7847 7848 CFLAGS="$xorg_testset_save_CFLAGS" 7849 7850 eval supported=\$$cacheid 7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7852 printf "%s\n" "$supported" >&6; } 7853 if test "$supported" = "yes" ; then 7854 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7855 found="yes" 7856 fi 7857 fi 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 xorg_testset_save_CFLAGS="$CFLAGS" 7874 7875 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7878 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7879 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7880 then : 7881 printf %s "(cached) " >&6 7882 else $as_nop 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7884 /* end confdefs.h. */ 7885 int i; 7886 _ACEOF 7887 if ac_fn_c_try_compile "$LINENO" 7888 then : 7889 xorg_cv_cc_flag_unknown_warning_option=yes 7890 else $as_nop 7891 xorg_cv_cc_flag_unknown_warning_option=no 7892 fi 7893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7894 fi 7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7898 CFLAGS="$xorg_testset_save_CFLAGS" 7899 fi 7900 7901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7904 fi 7905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7909 then : 7910 printf %s "(cached) " >&6 7911 else $as_nop 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913 /* end confdefs.h. */ 7914 int i; 7915 _ACEOF 7916 if ac_fn_c_try_compile "$LINENO" 7917 then : 7918 xorg_cv_cc_flag_unused_command_line_argument=yes 7919 else $as_nop 7920 xorg_cv_cc_flag_unused_command_line_argument=no 7921 fi 7922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7923 fi 7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7925 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7927 CFLAGS="$xorg_testset_save_CFLAGS" 7928 fi 7929 7930 found="no" 7931 7932 if test $found = "no" ; then 7933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7935 fi 7936 7937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7939 fi 7940 7941 CFLAGS="$CFLAGS -Werror=sequence-point" 7942 7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7944 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7945 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7946 if eval test \${$cacheid+y} 7947 then : 7948 printf %s "(cached) " >&6 7949 else $as_nop 7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7951 /* end confdefs.h. */ 7952 int i; 7953 int 7954 main (void) 7955 { 7956 7957 ; 7958 return 0; 7959 } 7960 _ACEOF 7961 if ac_fn_c_try_link "$LINENO" 7962 then : 7963 eval $cacheid=yes 7964 else $as_nop 7965 eval $cacheid=no 7966 fi 7967 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7968 conftest$ac_exeext conftest.$ac_ext 7969 fi 7970 7971 7972 CFLAGS="$xorg_testset_save_CFLAGS" 7973 7974 eval supported=\$$cacheid 7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7976 printf "%s\n" "$supported" >&6; } 7977 if test "$supported" = "yes" ; then 7978 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7979 found="yes" 7980 fi 7981 fi 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 xorg_testset_save_CFLAGS="$CFLAGS" 7998 7999 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8002 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8003 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8004 then : 8005 printf %s "(cached) " >&6 8006 else $as_nop 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008 /* end confdefs.h. */ 8009 int i; 8010 _ACEOF 8011 if ac_fn_c_try_compile "$LINENO" 8012 then : 8013 xorg_cv_cc_flag_unknown_warning_option=yes 8014 else $as_nop 8015 xorg_cv_cc_flag_unknown_warning_option=no 8016 fi 8017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8018 fi 8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8020 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8022 CFLAGS="$xorg_testset_save_CFLAGS" 8023 fi 8024 8025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8028 fi 8029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8031 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8032 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8033 then : 8034 printf %s "(cached) " >&6 8035 else $as_nop 8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037 /* end confdefs.h. */ 8038 int i; 8039 _ACEOF 8040 if ac_fn_c_try_compile "$LINENO" 8041 then : 8042 xorg_cv_cc_flag_unused_command_line_argument=yes 8043 else $as_nop 8044 xorg_cv_cc_flag_unused_command_line_argument=no 8045 fi 8046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8047 fi 8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8049 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8050 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8051 CFLAGS="$xorg_testset_save_CFLAGS" 8052 fi 8053 8054 found="no" 8055 8056 if test $found = "no" ; then 8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8059 fi 8060 8061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8063 fi 8064 8065 CFLAGS="$CFLAGS -Werror=return-type" 8066 8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8068 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8069 cacheid=xorg_cv_cc_flag__Werror_return_type 8070 if eval test \${$cacheid+y} 8071 then : 8072 printf %s "(cached) " >&6 8073 else $as_nop 8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8075 /* end confdefs.h. */ 8076 int i; 8077 int 8078 main (void) 8079 { 8080 8081 ; 8082 return 0; 8083 } 8084 _ACEOF 8085 if ac_fn_c_try_link "$LINENO" 8086 then : 8087 eval $cacheid=yes 8088 else $as_nop 8089 eval $cacheid=no 8090 fi 8091 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8092 conftest$ac_exeext conftest.$ac_ext 8093 fi 8094 8095 8096 CFLAGS="$xorg_testset_save_CFLAGS" 8097 8098 eval supported=\$$cacheid 8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8100 printf "%s\n" "$supported" >&6; } 8101 if test "$supported" = "yes" ; then 8102 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8103 found="yes" 8104 fi 8105 fi 8106 8107 if test $found = "no" ; then 8108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8110 fi 8111 8112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8114 fi 8115 8116 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8117 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8119 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8120 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8121 if eval test \${$cacheid+y} 8122 then : 8123 printf %s "(cached) " >&6 8124 else $as_nop 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126 /* end confdefs.h. */ 8127 int i; 8128 int 8129 main (void) 8130 { 8131 8132 ; 8133 return 0; 8134 } 8135 _ACEOF 8136 if ac_fn_c_try_link "$LINENO" 8137 then : 8138 eval $cacheid=yes 8139 else $as_nop 8140 eval $cacheid=no 8141 fi 8142 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8143 conftest$ac_exeext conftest.$ac_ext 8144 fi 8145 8146 8147 CFLAGS="$xorg_testset_save_CFLAGS" 8148 8149 eval supported=\$$cacheid 8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8151 printf "%s\n" "$supported" >&6; } 8152 if test "$supported" = "yes" ; then 8153 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8154 found="yes" 8155 fi 8156 fi 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 xorg_testset_save_CFLAGS="$CFLAGS" 8173 8174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8178 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8179 then : 8180 printf %s "(cached) " >&6 8181 else $as_nop 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183 /* end confdefs.h. */ 8184 int i; 8185 _ACEOF 8186 if ac_fn_c_try_compile "$LINENO" 8187 then : 8188 xorg_cv_cc_flag_unknown_warning_option=yes 8189 else $as_nop 8190 xorg_cv_cc_flag_unknown_warning_option=no 8191 fi 8192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8193 fi 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8197 CFLAGS="$xorg_testset_save_CFLAGS" 8198 fi 8199 8200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8203 fi 8204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8208 then : 8209 printf %s "(cached) " >&6 8210 else $as_nop 8211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8212 /* end confdefs.h. */ 8213 int i; 8214 _ACEOF 8215 if ac_fn_c_try_compile "$LINENO" 8216 then : 8217 xorg_cv_cc_flag_unused_command_line_argument=yes 8218 else $as_nop 8219 xorg_cv_cc_flag_unused_command_line_argument=no 8220 fi 8221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8222 fi 8223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8226 CFLAGS="$xorg_testset_save_CFLAGS" 8227 fi 8228 8229 found="no" 8230 8231 if test $found = "no" ; then 8232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8234 fi 8235 8236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8238 fi 8239 8240 CFLAGS="$CFLAGS -Werror=trigraphs" 8241 8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8243 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8244 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8245 if eval test \${$cacheid+y} 8246 then : 8247 printf %s "(cached) " >&6 8248 else $as_nop 8249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8250 /* end confdefs.h. */ 8251 int i; 8252 int 8253 main (void) 8254 { 8255 8256 ; 8257 return 0; 8258 } 8259 _ACEOF 8260 if ac_fn_c_try_link "$LINENO" 8261 then : 8262 eval $cacheid=yes 8263 else $as_nop 8264 eval $cacheid=no 8265 fi 8266 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8267 conftest$ac_exeext conftest.$ac_ext 8268 fi 8269 8270 8271 CFLAGS="$xorg_testset_save_CFLAGS" 8272 8273 eval supported=\$$cacheid 8274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8275 printf "%s\n" "$supported" >&6; } 8276 if test "$supported" = "yes" ; then 8277 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8278 found="yes" 8279 fi 8280 fi 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 xorg_testset_save_CFLAGS="$CFLAGS" 8297 8298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8302 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8303 then : 8304 printf %s "(cached) " >&6 8305 else $as_nop 8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8307 /* end confdefs.h. */ 8308 int i; 8309 _ACEOF 8310 if ac_fn_c_try_compile "$LINENO" 8311 then : 8312 xorg_cv_cc_flag_unknown_warning_option=yes 8313 else $as_nop 8314 xorg_cv_cc_flag_unknown_warning_option=no 8315 fi 8316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8317 fi 8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8321 CFLAGS="$xorg_testset_save_CFLAGS" 8322 fi 8323 8324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8327 fi 8328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8331 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8332 then : 8333 printf %s "(cached) " >&6 8334 else $as_nop 8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8336 /* end confdefs.h. */ 8337 int i; 8338 _ACEOF 8339 if ac_fn_c_try_compile "$LINENO" 8340 then : 8341 xorg_cv_cc_flag_unused_command_line_argument=yes 8342 else $as_nop 8343 xorg_cv_cc_flag_unused_command_line_argument=no 8344 fi 8345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8346 fi 8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8350 CFLAGS="$xorg_testset_save_CFLAGS" 8351 fi 8352 8353 found="no" 8354 8355 if test $found = "no" ; then 8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8358 fi 8359 8360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8362 fi 8363 8364 CFLAGS="$CFLAGS -Werror=array-bounds" 8365 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8367 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8368 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8369 if eval test \${$cacheid+y} 8370 then : 8371 printf %s "(cached) " >&6 8372 else $as_nop 8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8374 /* end confdefs.h. */ 8375 int i; 8376 int 8377 main (void) 8378 { 8379 8380 ; 8381 return 0; 8382 } 8383 _ACEOF 8384 if ac_fn_c_try_link "$LINENO" 8385 then : 8386 eval $cacheid=yes 8387 else $as_nop 8388 eval $cacheid=no 8389 fi 8390 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8391 conftest$ac_exeext conftest.$ac_ext 8392 fi 8393 8394 8395 CFLAGS="$xorg_testset_save_CFLAGS" 8396 8397 eval supported=\$$cacheid 8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8399 printf "%s\n" "$supported" >&6; } 8400 if test "$supported" = "yes" ; then 8401 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8402 found="yes" 8403 fi 8404 fi 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 xorg_testset_save_CFLAGS="$CFLAGS" 8421 8422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8426 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8427 then : 8428 printf %s "(cached) " >&6 8429 else $as_nop 8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431 /* end confdefs.h. */ 8432 int i; 8433 _ACEOF 8434 if ac_fn_c_try_compile "$LINENO" 8435 then : 8436 xorg_cv_cc_flag_unknown_warning_option=yes 8437 else $as_nop 8438 xorg_cv_cc_flag_unknown_warning_option=no 8439 fi 8440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8441 fi 8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8445 CFLAGS="$xorg_testset_save_CFLAGS" 8446 fi 8447 8448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8451 fi 8452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8456 then : 8457 printf %s "(cached) " >&6 8458 else $as_nop 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460 /* end confdefs.h. */ 8461 int i; 8462 _ACEOF 8463 if ac_fn_c_try_compile "$LINENO" 8464 then : 8465 xorg_cv_cc_flag_unused_command_line_argument=yes 8466 else $as_nop 8467 xorg_cv_cc_flag_unused_command_line_argument=no 8468 fi 8469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8470 fi 8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8474 CFLAGS="$xorg_testset_save_CFLAGS" 8475 fi 8476 8477 found="no" 8478 8479 if test $found = "no" ; then 8480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8482 fi 8483 8484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8486 fi 8487 8488 CFLAGS="$CFLAGS -Werror=write-strings" 8489 8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8491 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8492 cacheid=xorg_cv_cc_flag__Werror_write_strings 8493 if eval test \${$cacheid+y} 8494 then : 8495 printf %s "(cached) " >&6 8496 else $as_nop 8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8498 /* end confdefs.h. */ 8499 int i; 8500 int 8501 main (void) 8502 { 8503 8504 ; 8505 return 0; 8506 } 8507 _ACEOF 8508 if ac_fn_c_try_link "$LINENO" 8509 then : 8510 eval $cacheid=yes 8511 else $as_nop 8512 eval $cacheid=no 8513 fi 8514 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8515 conftest$ac_exeext conftest.$ac_ext 8516 fi 8517 8518 8519 CFLAGS="$xorg_testset_save_CFLAGS" 8520 8521 eval supported=\$$cacheid 8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8523 printf "%s\n" "$supported" >&6; } 8524 if test "$supported" = "yes" ; then 8525 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8526 found="yes" 8527 fi 8528 fi 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 xorg_testset_save_CFLAGS="$CFLAGS" 8545 8546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8549 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8550 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8551 then : 8552 printf %s "(cached) " >&6 8553 else $as_nop 8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8555 /* end confdefs.h. */ 8556 int i; 8557 _ACEOF 8558 if ac_fn_c_try_compile "$LINENO" 8559 then : 8560 xorg_cv_cc_flag_unknown_warning_option=yes 8561 else $as_nop 8562 xorg_cv_cc_flag_unknown_warning_option=no 8563 fi 8564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8565 fi 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8567 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8569 CFLAGS="$xorg_testset_save_CFLAGS" 8570 fi 8571 8572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8575 fi 8576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8578 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8579 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8580 then : 8581 printf %s "(cached) " >&6 8582 else $as_nop 8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8584 /* end confdefs.h. */ 8585 int i; 8586 _ACEOF 8587 if ac_fn_c_try_compile "$LINENO" 8588 then : 8589 xorg_cv_cc_flag_unused_command_line_argument=yes 8590 else $as_nop 8591 xorg_cv_cc_flag_unused_command_line_argument=no 8592 fi 8593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8594 fi 8595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8596 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8598 CFLAGS="$xorg_testset_save_CFLAGS" 8599 fi 8600 8601 found="no" 8602 8603 if test $found = "no" ; then 8604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8606 fi 8607 8608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8610 fi 8611 8612 CFLAGS="$CFLAGS -Werror=address" 8613 8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8615 printf %s "checking if $CC supports -Werror=address... " >&6; } 8616 cacheid=xorg_cv_cc_flag__Werror_address 8617 if eval test \${$cacheid+y} 8618 then : 8619 printf %s "(cached) " >&6 8620 else $as_nop 8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8622 /* end confdefs.h. */ 8623 int i; 8624 int 8625 main (void) 8626 { 8627 8628 ; 8629 return 0; 8630 } 8631 _ACEOF 8632 if ac_fn_c_try_link "$LINENO" 8633 then : 8634 eval $cacheid=yes 8635 else $as_nop 8636 eval $cacheid=no 8637 fi 8638 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8639 conftest$ac_exeext conftest.$ac_ext 8640 fi 8641 8642 8643 CFLAGS="$xorg_testset_save_CFLAGS" 8644 8645 eval supported=\$$cacheid 8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8647 printf "%s\n" "$supported" >&6; } 8648 if test "$supported" = "yes" ; then 8649 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8650 found="yes" 8651 fi 8652 fi 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 xorg_testset_save_CFLAGS="$CFLAGS" 8669 8670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8674 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8675 then : 8676 printf %s "(cached) " >&6 8677 else $as_nop 8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8679 /* end confdefs.h. */ 8680 int i; 8681 _ACEOF 8682 if ac_fn_c_try_compile "$LINENO" 8683 then : 8684 xorg_cv_cc_flag_unknown_warning_option=yes 8685 else $as_nop 8686 xorg_cv_cc_flag_unknown_warning_option=no 8687 fi 8688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8689 fi 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8693 CFLAGS="$xorg_testset_save_CFLAGS" 8694 fi 8695 8696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8699 fi 8700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8703 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8704 then : 8705 printf %s "(cached) " >&6 8706 else $as_nop 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708 /* end confdefs.h. */ 8709 int i; 8710 _ACEOF 8711 if ac_fn_c_try_compile "$LINENO" 8712 then : 8713 xorg_cv_cc_flag_unused_command_line_argument=yes 8714 else $as_nop 8715 xorg_cv_cc_flag_unused_command_line_argument=no 8716 fi 8717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8718 fi 8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8722 CFLAGS="$xorg_testset_save_CFLAGS" 8723 fi 8724 8725 found="no" 8726 8727 if test $found = "no" ; then 8728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8730 fi 8731 8732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8734 fi 8735 8736 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8737 8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8739 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8740 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8741 if eval test \${$cacheid+y} 8742 then : 8743 printf %s "(cached) " >&6 8744 else $as_nop 8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8746 /* end confdefs.h. */ 8747 int i; 8748 int 8749 main (void) 8750 { 8751 8752 ; 8753 return 0; 8754 } 8755 _ACEOF 8756 if ac_fn_c_try_link "$LINENO" 8757 then : 8758 eval $cacheid=yes 8759 else $as_nop 8760 eval $cacheid=no 8761 fi 8762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8763 conftest$ac_exeext conftest.$ac_ext 8764 fi 8765 8766 8767 CFLAGS="$xorg_testset_save_CFLAGS" 8768 8769 eval supported=\$$cacheid 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8771 printf "%s\n" "$supported" >&6; } 8772 if test "$supported" = "yes" ; then 8773 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8774 found="yes" 8775 fi 8776 fi 8777 8778 if test $found = "no" ; then 8779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8781 fi 8782 8783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8785 fi 8786 8787 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8788 8789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8790 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8791 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8792 if eval test \${$cacheid+y} 8793 then : 8794 printf %s "(cached) " >&6 8795 else $as_nop 8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8797 /* end confdefs.h. */ 8798 int i; 8799 int 8800 main (void) 8801 { 8802 8803 ; 8804 return 0; 8805 } 8806 _ACEOF 8807 if ac_fn_c_try_link "$LINENO" 8808 then : 8809 eval $cacheid=yes 8810 else $as_nop 8811 eval $cacheid=no 8812 fi 8813 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8814 conftest$ac_exeext conftest.$ac_ext 8815 fi 8816 8817 8818 CFLAGS="$xorg_testset_save_CFLAGS" 8819 8820 eval supported=\$$cacheid 8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8822 printf "%s\n" "$supported" >&6; } 8823 if test "$supported" = "yes" ; then 8824 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8825 found="yes" 8826 fi 8827 fi 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 xorg_testset_save_CFLAGS="$CFLAGS" 8844 8845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8849 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8850 then : 8851 printf %s "(cached) " >&6 8852 else $as_nop 8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8854 /* end confdefs.h. */ 8855 int i; 8856 _ACEOF 8857 if ac_fn_c_try_compile "$LINENO" 8858 then : 8859 xorg_cv_cc_flag_unknown_warning_option=yes 8860 else $as_nop 8861 xorg_cv_cc_flag_unknown_warning_option=no 8862 fi 8863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8864 fi 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8866 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869 fi 8870 8871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8874 fi 8875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8877 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8878 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8879 then : 8880 printf %s "(cached) " >&6 8881 else $as_nop 8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883 /* end confdefs.h. */ 8884 int i; 8885 _ACEOF 8886 if ac_fn_c_try_compile "$LINENO" 8887 then : 8888 xorg_cv_cc_flag_unused_command_line_argument=yes 8889 else $as_nop 8890 xorg_cv_cc_flag_unused_command_line_argument=no 8891 fi 8892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8893 fi 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8895 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8897 CFLAGS="$xorg_testset_save_CFLAGS" 8898 fi 8899 8900 found="no" 8901 8902 if test $found = "no" ; then 8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 fi 8906 8907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8909 fi 8910 8911 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8912 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8914 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8915 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8916 if eval test \${$cacheid+y} 8917 then : 8918 printf %s "(cached) " >&6 8919 else $as_nop 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921 /* end confdefs.h. */ 8922 int i; 8923 int 8924 main (void) 8925 { 8926 8927 ; 8928 return 0; 8929 } 8930 _ACEOF 8931 if ac_fn_c_try_link "$LINENO" 8932 then : 8933 eval $cacheid=yes 8934 else $as_nop 8935 eval $cacheid=no 8936 fi 8937 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8938 conftest$ac_exeext conftest.$ac_ext 8939 fi 8940 8941 8942 CFLAGS="$xorg_testset_save_CFLAGS" 8943 8944 eval supported=\$$cacheid 8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8946 printf "%s\n" "$supported" >&6; } 8947 if test "$supported" = "yes" ; then 8948 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8949 found="yes" 8950 fi 8951 fi 8952 8953 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8954 else 8955 { printf "%s\n" "$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 8956 printf "%s\n" "$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;} 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 xorg_testset_save_CFLAGS="$CFLAGS" 8971 8972 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8975 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8976 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8977 then : 8978 printf %s "(cached) " >&6 8979 else $as_nop 8980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8981 /* end confdefs.h. */ 8982 int i; 8983 _ACEOF 8984 if ac_fn_c_try_compile "$LINENO" 8985 then : 8986 xorg_cv_cc_flag_unknown_warning_option=yes 8987 else $as_nop 8988 xorg_cv_cc_flag_unknown_warning_option=no 8989 fi 8990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8991 fi 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8993 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8995 CFLAGS="$xorg_testset_save_CFLAGS" 8996 fi 8997 8998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9001 fi 9002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9005 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9006 then : 9007 printf %s "(cached) " >&6 9008 else $as_nop 9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010 /* end confdefs.h. */ 9011 int i; 9012 _ACEOF 9013 if ac_fn_c_try_compile "$LINENO" 9014 then : 9015 xorg_cv_cc_flag_unused_command_line_argument=yes 9016 else $as_nop 9017 xorg_cv_cc_flag_unused_command_line_argument=no 9018 fi 9019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9020 fi 9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9022 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9024 CFLAGS="$xorg_testset_save_CFLAGS" 9025 fi 9026 9027 found="no" 9028 9029 if test $found = "no" ; then 9030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9032 fi 9033 9034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9036 fi 9037 9038 CFLAGS="$CFLAGS -Wimplicit" 9039 9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9041 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9042 cacheid=xorg_cv_cc_flag__Wimplicit 9043 if eval test \${$cacheid+y} 9044 then : 9045 printf %s "(cached) " >&6 9046 else $as_nop 9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9048 /* end confdefs.h. */ 9049 int i; 9050 int 9051 main (void) 9052 { 9053 9054 ; 9055 return 0; 9056 } 9057 _ACEOF 9058 if ac_fn_c_try_link "$LINENO" 9059 then : 9060 eval $cacheid=yes 9061 else $as_nop 9062 eval $cacheid=no 9063 fi 9064 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9065 conftest$ac_exeext conftest.$ac_ext 9066 fi 9067 9068 9069 CFLAGS="$xorg_testset_save_CFLAGS" 9070 9071 eval supported=\$$cacheid 9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9073 printf "%s\n" "$supported" >&6; } 9074 if test "$supported" = "yes" ; then 9075 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9076 found="yes" 9077 fi 9078 fi 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 xorg_testset_save_CFLAGS="$CFLAGS" 9095 9096 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9099 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9100 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9101 then : 9102 printf %s "(cached) " >&6 9103 else $as_nop 9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105 /* end confdefs.h. */ 9106 int i; 9107 _ACEOF 9108 if ac_fn_c_try_compile "$LINENO" 9109 then : 9110 xorg_cv_cc_flag_unknown_warning_option=yes 9111 else $as_nop 9112 xorg_cv_cc_flag_unknown_warning_option=no 9113 fi 9114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9115 fi 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9117 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9119 CFLAGS="$xorg_testset_save_CFLAGS" 9120 fi 9121 9122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9125 fi 9126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9128 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9129 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9130 then : 9131 printf %s "(cached) " >&6 9132 else $as_nop 9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9134 /* end confdefs.h. */ 9135 int i; 9136 _ACEOF 9137 if ac_fn_c_try_compile "$LINENO" 9138 then : 9139 xorg_cv_cc_flag_unused_command_line_argument=yes 9140 else $as_nop 9141 xorg_cv_cc_flag_unused_command_line_argument=no 9142 fi 9143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9144 fi 9145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9148 CFLAGS="$xorg_testset_save_CFLAGS" 9149 fi 9150 9151 found="no" 9152 9153 if test $found = "no" ; then 9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9156 fi 9157 9158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9160 fi 9161 9162 CFLAGS="$CFLAGS -Wnonnull" 9163 9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9165 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9166 cacheid=xorg_cv_cc_flag__Wnonnull 9167 if eval test \${$cacheid+y} 9168 then : 9169 printf %s "(cached) " >&6 9170 else $as_nop 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172 /* end confdefs.h. */ 9173 int i; 9174 int 9175 main (void) 9176 { 9177 9178 ; 9179 return 0; 9180 } 9181 _ACEOF 9182 if ac_fn_c_try_link "$LINENO" 9183 then : 9184 eval $cacheid=yes 9185 else $as_nop 9186 eval $cacheid=no 9187 fi 9188 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9189 conftest$ac_exeext conftest.$ac_ext 9190 fi 9191 9192 9193 CFLAGS="$xorg_testset_save_CFLAGS" 9194 9195 eval supported=\$$cacheid 9196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9197 printf "%s\n" "$supported" >&6; } 9198 if test "$supported" = "yes" ; then 9199 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9200 found="yes" 9201 fi 9202 fi 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 xorg_testset_save_CFLAGS="$CFLAGS" 9219 9220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9224 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9225 then : 9226 printf %s "(cached) " >&6 9227 else $as_nop 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9229 /* end confdefs.h. */ 9230 int i; 9231 _ACEOF 9232 if ac_fn_c_try_compile "$LINENO" 9233 then : 9234 xorg_cv_cc_flag_unknown_warning_option=yes 9235 else $as_nop 9236 xorg_cv_cc_flag_unknown_warning_option=no 9237 fi 9238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9239 fi 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9243 CFLAGS="$xorg_testset_save_CFLAGS" 9244 fi 9245 9246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9249 fi 9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9254 then : 9255 printf %s "(cached) " >&6 9256 else $as_nop 9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9258 /* end confdefs.h. */ 9259 int i; 9260 _ACEOF 9261 if ac_fn_c_try_compile "$LINENO" 9262 then : 9263 xorg_cv_cc_flag_unused_command_line_argument=yes 9264 else $as_nop 9265 xorg_cv_cc_flag_unused_command_line_argument=no 9266 fi 9267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9268 fi 9269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9272 CFLAGS="$xorg_testset_save_CFLAGS" 9273 fi 9274 9275 found="no" 9276 9277 if test $found = "no" ; then 9278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9280 fi 9281 9282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9284 fi 9285 9286 CFLAGS="$CFLAGS -Winit-self" 9287 9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9289 printf %s "checking if $CC supports -Winit-self... " >&6; } 9290 cacheid=xorg_cv_cc_flag__Winit_self 9291 if eval test \${$cacheid+y} 9292 then : 9293 printf %s "(cached) " >&6 9294 else $as_nop 9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9296 /* end confdefs.h. */ 9297 int i; 9298 int 9299 main (void) 9300 { 9301 9302 ; 9303 return 0; 9304 } 9305 _ACEOF 9306 if ac_fn_c_try_link "$LINENO" 9307 then : 9308 eval $cacheid=yes 9309 else $as_nop 9310 eval $cacheid=no 9311 fi 9312 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9313 conftest$ac_exeext conftest.$ac_ext 9314 fi 9315 9316 9317 CFLAGS="$xorg_testset_save_CFLAGS" 9318 9319 eval supported=\$$cacheid 9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9321 printf "%s\n" "$supported" >&6; } 9322 if test "$supported" = "yes" ; then 9323 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9324 found="yes" 9325 fi 9326 fi 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 xorg_testset_save_CFLAGS="$CFLAGS" 9343 9344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9348 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9349 then : 9350 printf %s "(cached) " >&6 9351 else $as_nop 9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9353 /* end confdefs.h. */ 9354 int i; 9355 _ACEOF 9356 if ac_fn_c_try_compile "$LINENO" 9357 then : 9358 xorg_cv_cc_flag_unknown_warning_option=yes 9359 else $as_nop 9360 xorg_cv_cc_flag_unknown_warning_option=no 9361 fi 9362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9363 fi 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9367 CFLAGS="$xorg_testset_save_CFLAGS" 9368 fi 9369 9370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9373 fi 9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9378 then : 9379 printf %s "(cached) " >&6 9380 else $as_nop 9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382 /* end confdefs.h. */ 9383 int i; 9384 _ACEOF 9385 if ac_fn_c_try_compile "$LINENO" 9386 then : 9387 xorg_cv_cc_flag_unused_command_line_argument=yes 9388 else $as_nop 9389 xorg_cv_cc_flag_unused_command_line_argument=no 9390 fi 9391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9392 fi 9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9394 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9396 CFLAGS="$xorg_testset_save_CFLAGS" 9397 fi 9398 9399 found="no" 9400 9401 if test $found = "no" ; then 9402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9404 fi 9405 9406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9408 fi 9409 9410 CFLAGS="$CFLAGS -Wmain" 9411 9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9413 printf %s "checking if $CC supports -Wmain... " >&6; } 9414 cacheid=xorg_cv_cc_flag__Wmain 9415 if eval test \${$cacheid+y} 9416 then : 9417 printf %s "(cached) " >&6 9418 else $as_nop 9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9420 /* end confdefs.h. */ 9421 int i; 9422 int 9423 main (void) 9424 { 9425 9426 ; 9427 return 0; 9428 } 9429 _ACEOF 9430 if ac_fn_c_try_link "$LINENO" 9431 then : 9432 eval $cacheid=yes 9433 else $as_nop 9434 eval $cacheid=no 9435 fi 9436 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9437 conftest$ac_exeext conftest.$ac_ext 9438 fi 9439 9440 9441 CFLAGS="$xorg_testset_save_CFLAGS" 9442 9443 eval supported=\$$cacheid 9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9445 printf "%s\n" "$supported" >&6; } 9446 if test "$supported" = "yes" ; then 9447 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9448 found="yes" 9449 fi 9450 fi 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 xorg_testset_save_CFLAGS="$CFLAGS" 9467 9468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9472 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9473 then : 9474 printf %s "(cached) " >&6 9475 else $as_nop 9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9477 /* end confdefs.h. */ 9478 int i; 9479 _ACEOF 9480 if ac_fn_c_try_compile "$LINENO" 9481 then : 9482 xorg_cv_cc_flag_unknown_warning_option=yes 9483 else $as_nop 9484 xorg_cv_cc_flag_unknown_warning_option=no 9485 fi 9486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9487 fi 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9491 CFLAGS="$xorg_testset_save_CFLAGS" 9492 fi 9493 9494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9497 fi 9498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9502 then : 9503 printf %s "(cached) " >&6 9504 else $as_nop 9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506 /* end confdefs.h. */ 9507 int i; 9508 _ACEOF 9509 if ac_fn_c_try_compile "$LINENO" 9510 then : 9511 xorg_cv_cc_flag_unused_command_line_argument=yes 9512 else $as_nop 9513 xorg_cv_cc_flag_unused_command_line_argument=no 9514 fi 9515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9516 fi 9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9518 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9520 CFLAGS="$xorg_testset_save_CFLAGS" 9521 fi 9522 9523 found="no" 9524 9525 if test $found = "no" ; then 9526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9528 fi 9529 9530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9532 fi 9533 9534 CFLAGS="$CFLAGS -Wmissing-braces" 9535 9536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9537 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9538 cacheid=xorg_cv_cc_flag__Wmissing_braces 9539 if eval test \${$cacheid+y} 9540 then : 9541 printf %s "(cached) " >&6 9542 else $as_nop 9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9544 /* end confdefs.h. */ 9545 int i; 9546 int 9547 main (void) 9548 { 9549 9550 ; 9551 return 0; 9552 } 9553 _ACEOF 9554 if ac_fn_c_try_link "$LINENO" 9555 then : 9556 eval $cacheid=yes 9557 else $as_nop 9558 eval $cacheid=no 9559 fi 9560 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9561 conftest$ac_exeext conftest.$ac_ext 9562 fi 9563 9564 9565 CFLAGS="$xorg_testset_save_CFLAGS" 9566 9567 eval supported=\$$cacheid 9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9569 printf "%s\n" "$supported" >&6; } 9570 if test "$supported" = "yes" ; then 9571 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9572 found="yes" 9573 fi 9574 fi 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 xorg_testset_save_CFLAGS="$CFLAGS" 9591 9592 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9595 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9596 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9597 then : 9598 printf %s "(cached) " >&6 9599 else $as_nop 9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9601 /* end confdefs.h. */ 9602 int i; 9603 _ACEOF 9604 if ac_fn_c_try_compile "$LINENO" 9605 then : 9606 xorg_cv_cc_flag_unknown_warning_option=yes 9607 else $as_nop 9608 xorg_cv_cc_flag_unknown_warning_option=no 9609 fi 9610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9611 fi 9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9615 CFLAGS="$xorg_testset_save_CFLAGS" 9616 fi 9617 9618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9621 fi 9622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9626 then : 9627 printf %s "(cached) " >&6 9628 else $as_nop 9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630 /* end confdefs.h. */ 9631 int i; 9632 _ACEOF 9633 if ac_fn_c_try_compile "$LINENO" 9634 then : 9635 xorg_cv_cc_flag_unused_command_line_argument=yes 9636 else $as_nop 9637 xorg_cv_cc_flag_unused_command_line_argument=no 9638 fi 9639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9640 fi 9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9644 CFLAGS="$xorg_testset_save_CFLAGS" 9645 fi 9646 9647 found="no" 9648 9649 if test $found = "no" ; then 9650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9652 fi 9653 9654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9656 fi 9657 9658 CFLAGS="$CFLAGS -Wsequence-point" 9659 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9661 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9662 cacheid=xorg_cv_cc_flag__Wsequence_point 9663 if eval test \${$cacheid+y} 9664 then : 9665 printf %s "(cached) " >&6 9666 else $as_nop 9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9668 /* end confdefs.h. */ 9669 int i; 9670 int 9671 main (void) 9672 { 9673 9674 ; 9675 return 0; 9676 } 9677 _ACEOF 9678 if ac_fn_c_try_link "$LINENO" 9679 then : 9680 eval $cacheid=yes 9681 else $as_nop 9682 eval $cacheid=no 9683 fi 9684 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9685 conftest$ac_exeext conftest.$ac_ext 9686 fi 9687 9688 9689 CFLAGS="$xorg_testset_save_CFLAGS" 9690 9691 eval supported=\$$cacheid 9692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9693 printf "%s\n" "$supported" >&6; } 9694 if test "$supported" = "yes" ; then 9695 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9696 found="yes" 9697 fi 9698 fi 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 xorg_testset_save_CFLAGS="$CFLAGS" 9715 9716 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9719 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9720 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9721 then : 9722 printf %s "(cached) " >&6 9723 else $as_nop 9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9725 /* end confdefs.h. */ 9726 int i; 9727 _ACEOF 9728 if ac_fn_c_try_compile "$LINENO" 9729 then : 9730 xorg_cv_cc_flag_unknown_warning_option=yes 9731 else $as_nop 9732 xorg_cv_cc_flag_unknown_warning_option=no 9733 fi 9734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9735 fi 9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9739 CFLAGS="$xorg_testset_save_CFLAGS" 9740 fi 9741 9742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9745 fi 9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9750 then : 9751 printf %s "(cached) " >&6 9752 else $as_nop 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754 /* end confdefs.h. */ 9755 int i; 9756 _ACEOF 9757 if ac_fn_c_try_compile "$LINENO" 9758 then : 9759 xorg_cv_cc_flag_unused_command_line_argument=yes 9760 else $as_nop 9761 xorg_cv_cc_flag_unused_command_line_argument=no 9762 fi 9763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9764 fi 9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9766 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9768 CFLAGS="$xorg_testset_save_CFLAGS" 9769 fi 9770 9771 found="no" 9772 9773 if test $found = "no" ; then 9774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9776 fi 9777 9778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9780 fi 9781 9782 CFLAGS="$CFLAGS -Wreturn-type" 9783 9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9785 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9786 cacheid=xorg_cv_cc_flag__Wreturn_type 9787 if eval test \${$cacheid+y} 9788 then : 9789 printf %s "(cached) " >&6 9790 else $as_nop 9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9792 /* end confdefs.h. */ 9793 int i; 9794 int 9795 main (void) 9796 { 9797 9798 ; 9799 return 0; 9800 } 9801 _ACEOF 9802 if ac_fn_c_try_link "$LINENO" 9803 then : 9804 eval $cacheid=yes 9805 else $as_nop 9806 eval $cacheid=no 9807 fi 9808 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9809 conftest$ac_exeext conftest.$ac_ext 9810 fi 9811 9812 9813 CFLAGS="$xorg_testset_save_CFLAGS" 9814 9815 eval supported=\$$cacheid 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9817 printf "%s\n" "$supported" >&6; } 9818 if test "$supported" = "yes" ; then 9819 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9820 found="yes" 9821 fi 9822 fi 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 xorg_testset_save_CFLAGS="$CFLAGS" 9839 9840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9844 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9845 then : 9846 printf %s "(cached) " >&6 9847 else $as_nop 9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9849 /* end confdefs.h. */ 9850 int i; 9851 _ACEOF 9852 if ac_fn_c_try_compile "$LINENO" 9853 then : 9854 xorg_cv_cc_flag_unknown_warning_option=yes 9855 else $as_nop 9856 xorg_cv_cc_flag_unknown_warning_option=no 9857 fi 9858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9859 fi 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9863 CFLAGS="$xorg_testset_save_CFLAGS" 9864 fi 9865 9866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9869 fi 9870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9874 then : 9875 printf %s "(cached) " >&6 9876 else $as_nop 9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9878 /* end confdefs.h. */ 9879 int i; 9880 _ACEOF 9881 if ac_fn_c_try_compile "$LINENO" 9882 then : 9883 xorg_cv_cc_flag_unused_command_line_argument=yes 9884 else $as_nop 9885 xorg_cv_cc_flag_unused_command_line_argument=no 9886 fi 9887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9888 fi 9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9890 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9892 CFLAGS="$xorg_testset_save_CFLAGS" 9893 fi 9894 9895 found="no" 9896 9897 if test $found = "no" ; then 9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 fi 9901 9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9904 fi 9905 9906 CFLAGS="$CFLAGS -Wtrigraphs" 9907 9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9909 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9910 cacheid=xorg_cv_cc_flag__Wtrigraphs 9911 if eval test \${$cacheid+y} 9912 then : 9913 printf %s "(cached) " >&6 9914 else $as_nop 9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916 /* end confdefs.h. */ 9917 int i; 9918 int 9919 main (void) 9920 { 9921 9922 ; 9923 return 0; 9924 } 9925 _ACEOF 9926 if ac_fn_c_try_link "$LINENO" 9927 then : 9928 eval $cacheid=yes 9929 else $as_nop 9930 eval $cacheid=no 9931 fi 9932 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9933 conftest$ac_exeext conftest.$ac_ext 9934 fi 9935 9936 9937 CFLAGS="$xorg_testset_save_CFLAGS" 9938 9939 eval supported=\$$cacheid 9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9941 printf "%s\n" "$supported" >&6; } 9942 if test "$supported" = "yes" ; then 9943 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9944 found="yes" 9945 fi 9946 fi 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 xorg_testset_save_CFLAGS="$CFLAGS" 9963 9964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9968 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9969 then : 9970 printf %s "(cached) " >&6 9971 else $as_nop 9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9973 /* end confdefs.h. */ 9974 int i; 9975 _ACEOF 9976 if ac_fn_c_try_compile "$LINENO" 9977 then : 9978 xorg_cv_cc_flag_unknown_warning_option=yes 9979 else $as_nop 9980 xorg_cv_cc_flag_unknown_warning_option=no 9981 fi 9982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9983 fi 9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9985 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9987 CFLAGS="$xorg_testset_save_CFLAGS" 9988 fi 9989 9990 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9993 fi 9994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9996 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9997 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9998 then : 9999 printf %s "(cached) " >&6 10000 else $as_nop 10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10002 /* end confdefs.h. */ 10003 int i; 10004 _ACEOF 10005 if ac_fn_c_try_compile "$LINENO" 10006 then : 10007 xorg_cv_cc_flag_unused_command_line_argument=yes 10008 else $as_nop 10009 xorg_cv_cc_flag_unused_command_line_argument=no 10010 fi 10011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10012 fi 10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10014 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10016 CFLAGS="$xorg_testset_save_CFLAGS" 10017 fi 10018 10019 found="no" 10020 10021 if test $found = "no" ; then 10022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10024 fi 10025 10026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10028 fi 10029 10030 CFLAGS="$CFLAGS -Warray-bounds" 10031 10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10033 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10034 cacheid=xorg_cv_cc_flag__Warray_bounds 10035 if eval test \${$cacheid+y} 10036 then : 10037 printf %s "(cached) " >&6 10038 else $as_nop 10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10040 /* end confdefs.h. */ 10041 int i; 10042 int 10043 main (void) 10044 { 10045 10046 ; 10047 return 0; 10048 } 10049 _ACEOF 10050 if ac_fn_c_try_link "$LINENO" 10051 then : 10052 eval $cacheid=yes 10053 else $as_nop 10054 eval $cacheid=no 10055 fi 10056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10057 conftest$ac_exeext conftest.$ac_ext 10058 fi 10059 10060 10061 CFLAGS="$xorg_testset_save_CFLAGS" 10062 10063 eval supported=\$$cacheid 10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10065 printf "%s\n" "$supported" >&6; } 10066 if test "$supported" = "yes" ; then 10067 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10068 found="yes" 10069 fi 10070 fi 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 xorg_testset_save_CFLAGS="$CFLAGS" 10087 10088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10092 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10093 then : 10094 printf %s "(cached) " >&6 10095 else $as_nop 10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097 /* end confdefs.h. */ 10098 int i; 10099 _ACEOF 10100 if ac_fn_c_try_compile "$LINENO" 10101 then : 10102 xorg_cv_cc_flag_unknown_warning_option=yes 10103 else $as_nop 10104 xorg_cv_cc_flag_unknown_warning_option=no 10105 fi 10106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10107 fi 10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10111 CFLAGS="$xorg_testset_save_CFLAGS" 10112 fi 10113 10114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10117 fi 10118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10122 then : 10123 printf %s "(cached) " >&6 10124 else $as_nop 10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10126 /* end confdefs.h. */ 10127 int i; 10128 _ACEOF 10129 if ac_fn_c_try_compile "$LINENO" 10130 then : 10131 xorg_cv_cc_flag_unused_command_line_argument=yes 10132 else $as_nop 10133 xorg_cv_cc_flag_unused_command_line_argument=no 10134 fi 10135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10136 fi 10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 fi 10142 10143 found="no" 10144 10145 if test $found = "no" ; then 10146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10148 fi 10149 10150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10152 fi 10153 10154 CFLAGS="$CFLAGS -Wwrite-strings" 10155 10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10157 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10158 cacheid=xorg_cv_cc_flag__Wwrite_strings 10159 if eval test \${$cacheid+y} 10160 then : 10161 printf %s "(cached) " >&6 10162 else $as_nop 10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10164 /* end confdefs.h. */ 10165 int i; 10166 int 10167 main (void) 10168 { 10169 10170 ; 10171 return 0; 10172 } 10173 _ACEOF 10174 if ac_fn_c_try_link "$LINENO" 10175 then : 10176 eval $cacheid=yes 10177 else $as_nop 10178 eval $cacheid=no 10179 fi 10180 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10181 conftest$ac_exeext conftest.$ac_ext 10182 fi 10183 10184 10185 CFLAGS="$xorg_testset_save_CFLAGS" 10186 10187 eval supported=\$$cacheid 10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10189 printf "%s\n" "$supported" >&6; } 10190 if test "$supported" = "yes" ; then 10191 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10192 found="yes" 10193 fi 10194 fi 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 xorg_testset_save_CFLAGS="$CFLAGS" 10211 10212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10216 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10217 then : 10218 printf %s "(cached) " >&6 10219 else $as_nop 10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10221 /* end confdefs.h. */ 10222 int i; 10223 _ACEOF 10224 if ac_fn_c_try_compile "$LINENO" 10225 then : 10226 xorg_cv_cc_flag_unknown_warning_option=yes 10227 else $as_nop 10228 xorg_cv_cc_flag_unknown_warning_option=no 10229 fi 10230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10231 fi 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10233 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10235 CFLAGS="$xorg_testset_save_CFLAGS" 10236 fi 10237 10238 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10241 fi 10242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10244 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10245 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10246 then : 10247 printf %s "(cached) " >&6 10248 else $as_nop 10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10250 /* end confdefs.h. */ 10251 int i; 10252 _ACEOF 10253 if ac_fn_c_try_compile "$LINENO" 10254 then : 10255 xorg_cv_cc_flag_unused_command_line_argument=yes 10256 else $as_nop 10257 xorg_cv_cc_flag_unused_command_line_argument=no 10258 fi 10259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10260 fi 10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10262 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10264 CFLAGS="$xorg_testset_save_CFLAGS" 10265 fi 10266 10267 found="no" 10268 10269 if test $found = "no" ; then 10270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10272 fi 10273 10274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10276 fi 10277 10278 CFLAGS="$CFLAGS -Waddress" 10279 10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10281 printf %s "checking if $CC supports -Waddress... " >&6; } 10282 cacheid=xorg_cv_cc_flag__Waddress 10283 if eval test \${$cacheid+y} 10284 then : 10285 printf %s "(cached) " >&6 10286 else $as_nop 10287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10288 /* end confdefs.h. */ 10289 int i; 10290 int 10291 main (void) 10292 { 10293 10294 ; 10295 return 0; 10296 } 10297 _ACEOF 10298 if ac_fn_c_try_link "$LINENO" 10299 then : 10300 eval $cacheid=yes 10301 else $as_nop 10302 eval $cacheid=no 10303 fi 10304 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10305 conftest$ac_exeext conftest.$ac_ext 10306 fi 10307 10308 10309 CFLAGS="$xorg_testset_save_CFLAGS" 10310 10311 eval supported=\$$cacheid 10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10313 printf "%s\n" "$supported" >&6; } 10314 if test "$supported" = "yes" ; then 10315 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10316 found="yes" 10317 fi 10318 fi 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 xorg_testset_save_CFLAGS="$CFLAGS" 10335 10336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10340 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10341 then : 10342 printf %s "(cached) " >&6 10343 else $as_nop 10344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10345 /* end confdefs.h. */ 10346 int i; 10347 _ACEOF 10348 if ac_fn_c_try_compile "$LINENO" 10349 then : 10350 xorg_cv_cc_flag_unknown_warning_option=yes 10351 else $as_nop 10352 xorg_cv_cc_flag_unknown_warning_option=no 10353 fi 10354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10355 fi 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10357 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10359 CFLAGS="$xorg_testset_save_CFLAGS" 10360 fi 10361 10362 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10365 fi 10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10368 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10369 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10370 then : 10371 printf %s "(cached) " >&6 10372 else $as_nop 10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10374 /* end confdefs.h. */ 10375 int i; 10376 _ACEOF 10377 if ac_fn_c_try_compile "$LINENO" 10378 then : 10379 xorg_cv_cc_flag_unused_command_line_argument=yes 10380 else $as_nop 10381 xorg_cv_cc_flag_unused_command_line_argument=no 10382 fi 10383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10384 fi 10385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10386 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10388 CFLAGS="$xorg_testset_save_CFLAGS" 10389 fi 10390 10391 found="no" 10392 10393 if test $found = "no" ; then 10394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10396 fi 10397 10398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10400 fi 10401 10402 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10403 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10405 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10406 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10407 if eval test \${$cacheid+y} 10408 then : 10409 printf %s "(cached) " >&6 10410 else $as_nop 10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10412 /* end confdefs.h. */ 10413 int i; 10414 int 10415 main (void) 10416 { 10417 10418 ; 10419 return 0; 10420 } 10421 _ACEOF 10422 if ac_fn_c_try_link "$LINENO" 10423 then : 10424 eval $cacheid=yes 10425 else $as_nop 10426 eval $cacheid=no 10427 fi 10428 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10429 conftest$ac_exeext conftest.$ac_ext 10430 fi 10431 10432 10433 CFLAGS="$xorg_testset_save_CFLAGS" 10434 10435 eval supported=\$$cacheid 10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10437 printf "%s\n" "$supported" >&6; } 10438 if test "$supported" = "yes" ; then 10439 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10440 found="yes" 10441 fi 10442 fi 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 xorg_testset_save_CFLAGS="$CFLAGS" 10459 10460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10464 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10465 then : 10466 printf %s "(cached) " >&6 10467 else $as_nop 10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469 /* end confdefs.h. */ 10470 int i; 10471 _ACEOF 10472 if ac_fn_c_try_compile "$LINENO" 10473 then : 10474 xorg_cv_cc_flag_unknown_warning_option=yes 10475 else $as_nop 10476 xorg_cv_cc_flag_unknown_warning_option=no 10477 fi 10478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10479 fi 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10481 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10483 CFLAGS="$xorg_testset_save_CFLAGS" 10484 fi 10485 10486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10489 fi 10490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10492 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10493 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10494 then : 10495 printf %s "(cached) " >&6 10496 else $as_nop 10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10498 /* end confdefs.h. */ 10499 int i; 10500 _ACEOF 10501 if ac_fn_c_try_compile "$LINENO" 10502 then : 10503 xorg_cv_cc_flag_unused_command_line_argument=yes 10504 else $as_nop 10505 xorg_cv_cc_flag_unused_command_line_argument=no 10506 fi 10507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10508 fi 10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10510 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10512 CFLAGS="$xorg_testset_save_CFLAGS" 10513 fi 10514 10515 found="no" 10516 10517 if test $found = "no" ; then 10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10520 fi 10521 10522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10524 fi 10525 10526 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10527 10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10529 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10530 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10531 if eval test \${$cacheid+y} 10532 then : 10533 printf %s "(cached) " >&6 10534 else $as_nop 10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10536 /* end confdefs.h. */ 10537 int i; 10538 int 10539 main (void) 10540 { 10541 10542 ; 10543 return 0; 10544 } 10545 _ACEOF 10546 if ac_fn_c_try_link "$LINENO" 10547 then : 10548 eval $cacheid=yes 10549 else $as_nop 10550 eval $cacheid=no 10551 fi 10552 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10553 conftest$ac_exeext conftest.$ac_ext 10554 fi 10555 10556 10557 CFLAGS="$xorg_testset_save_CFLAGS" 10558 10559 eval supported=\$$cacheid 10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10561 printf "%s\n" "$supported" >&6; } 10562 if test "$supported" = "yes" ; then 10563 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10564 found="yes" 10565 fi 10566 fi 10567 10568 10569 fi 10570 10571 10572 10573 10574 10575 10576 10577 CWARNFLAGS="$BASE_CFLAGS" 10578 if test "x$GCC" = xyes ; then 10579 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10580 fi 10581 10582 10583 10584 10585 10586 10587 10588 10589 # Check whether --enable-strict-compilation was given. 10590 if test ${enable_strict_compilation+y} 10591 then : 10592 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10593 else $as_nop 10594 STRICT_COMPILE=no 10595 fi 10596 10597 10598 10599 10600 10601 10602 STRICT_CFLAGS="" 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 xorg_testset_save_CFLAGS="$CFLAGS" 10617 10618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10622 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10623 then : 10624 printf %s "(cached) " >&6 10625 else $as_nop 10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627 /* end confdefs.h. */ 10628 int i; 10629 _ACEOF 10630 if ac_fn_c_try_compile "$LINENO" 10631 then : 10632 xorg_cv_cc_flag_unknown_warning_option=yes 10633 else $as_nop 10634 xorg_cv_cc_flag_unknown_warning_option=no 10635 fi 10636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10637 fi 10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10641 CFLAGS="$xorg_testset_save_CFLAGS" 10642 fi 10643 10644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10647 fi 10648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10651 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10652 then : 10653 printf %s "(cached) " >&6 10654 else $as_nop 10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10656 /* end confdefs.h. */ 10657 int i; 10658 _ACEOF 10659 if ac_fn_c_try_compile "$LINENO" 10660 then : 10661 xorg_cv_cc_flag_unused_command_line_argument=yes 10662 else $as_nop 10663 xorg_cv_cc_flag_unused_command_line_argument=no 10664 fi 10665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10666 fi 10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10670 CFLAGS="$xorg_testset_save_CFLAGS" 10671 fi 10672 10673 found="no" 10674 10675 if test $found = "no" ; then 10676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10678 fi 10679 10680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10682 fi 10683 10684 CFLAGS="$CFLAGS -pedantic" 10685 10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10687 printf %s "checking if $CC supports -pedantic... " >&6; } 10688 cacheid=xorg_cv_cc_flag__pedantic 10689 if eval test \${$cacheid+y} 10690 then : 10691 printf %s "(cached) " >&6 10692 else $as_nop 10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10694 /* end confdefs.h. */ 10695 int i; 10696 int 10697 main (void) 10698 { 10699 10700 ; 10701 return 0; 10702 } 10703 _ACEOF 10704 if ac_fn_c_try_link "$LINENO" 10705 then : 10706 eval $cacheid=yes 10707 else $as_nop 10708 eval $cacheid=no 10709 fi 10710 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10711 conftest$ac_exeext conftest.$ac_ext 10712 fi 10713 10714 10715 CFLAGS="$xorg_testset_save_CFLAGS" 10716 10717 eval supported=\$$cacheid 10718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10719 printf "%s\n" "$supported" >&6; } 10720 if test "$supported" = "yes" ; then 10721 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10722 found="yes" 10723 fi 10724 fi 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 xorg_testset_save_CFLAGS="$CFLAGS" 10741 10742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10746 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10747 then : 10748 printf %s "(cached) " >&6 10749 else $as_nop 10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10751 /* end confdefs.h. */ 10752 int i; 10753 _ACEOF 10754 if ac_fn_c_try_compile "$LINENO" 10755 then : 10756 xorg_cv_cc_flag_unknown_warning_option=yes 10757 else $as_nop 10758 xorg_cv_cc_flag_unknown_warning_option=no 10759 fi 10760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10761 fi 10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10765 CFLAGS="$xorg_testset_save_CFLAGS" 10766 fi 10767 10768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10771 fi 10772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10776 then : 10777 printf %s "(cached) " >&6 10778 else $as_nop 10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10780 /* end confdefs.h. */ 10781 int i; 10782 _ACEOF 10783 if ac_fn_c_try_compile "$LINENO" 10784 then : 10785 xorg_cv_cc_flag_unused_command_line_argument=yes 10786 else $as_nop 10787 xorg_cv_cc_flag_unused_command_line_argument=no 10788 fi 10789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10790 fi 10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10794 CFLAGS="$xorg_testset_save_CFLAGS" 10795 fi 10796 10797 found="no" 10798 10799 if test $found = "no" ; then 10800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10802 fi 10803 10804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10806 fi 10807 10808 CFLAGS="$CFLAGS -Werror" 10809 10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10811 printf %s "checking if $CC supports -Werror... " >&6; } 10812 cacheid=xorg_cv_cc_flag__Werror 10813 if eval test \${$cacheid+y} 10814 then : 10815 printf %s "(cached) " >&6 10816 else $as_nop 10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818 /* end confdefs.h. */ 10819 int i; 10820 int 10821 main (void) 10822 { 10823 10824 ; 10825 return 0; 10826 } 10827 _ACEOF 10828 if ac_fn_c_try_link "$LINENO" 10829 then : 10830 eval $cacheid=yes 10831 else $as_nop 10832 eval $cacheid=no 10833 fi 10834 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10835 conftest$ac_exeext conftest.$ac_ext 10836 fi 10837 10838 10839 CFLAGS="$xorg_testset_save_CFLAGS" 10840 10841 eval supported=\$$cacheid 10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10843 printf "%s\n" "$supported" >&6; } 10844 if test "$supported" = "yes" ; then 10845 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10846 found="yes" 10847 fi 10848 fi 10849 10850 if test $found = "no" ; then 10851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10853 fi 10854 10855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10857 fi 10858 10859 CFLAGS="$CFLAGS -errwarn" 10860 10861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10862 printf %s "checking if $CC supports -errwarn... " >&6; } 10863 cacheid=xorg_cv_cc_flag__errwarn 10864 if eval test \${$cacheid+y} 10865 then : 10866 printf %s "(cached) " >&6 10867 else $as_nop 10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869 /* end confdefs.h. */ 10870 int i; 10871 int 10872 main (void) 10873 { 10874 10875 ; 10876 return 0; 10877 } 10878 _ACEOF 10879 if ac_fn_c_try_link "$LINENO" 10880 then : 10881 eval $cacheid=yes 10882 else $as_nop 10883 eval $cacheid=no 10884 fi 10885 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10886 conftest$ac_exeext conftest.$ac_ext 10887 fi 10888 10889 10890 CFLAGS="$xorg_testset_save_CFLAGS" 10891 10892 eval supported=\$$cacheid 10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10894 printf "%s\n" "$supported" >&6; } 10895 if test "$supported" = "yes" ; then 10896 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10897 found="yes" 10898 fi 10899 fi 10900 10901 10902 10903 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10904 # activate it with -Werror, so we add it here explicitly. 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 xorg_testset_save_CFLAGS="$CFLAGS" 10919 10920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10924 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10925 then : 10926 printf %s "(cached) " >&6 10927 else $as_nop 10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929 /* end confdefs.h. */ 10930 int i; 10931 _ACEOF 10932 if ac_fn_c_try_compile "$LINENO" 10933 then : 10934 xorg_cv_cc_flag_unknown_warning_option=yes 10935 else $as_nop 10936 xorg_cv_cc_flag_unknown_warning_option=no 10937 fi 10938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10939 fi 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10943 CFLAGS="$xorg_testset_save_CFLAGS" 10944 fi 10945 10946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10949 fi 10950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10953 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10954 then : 10955 printf %s "(cached) " >&6 10956 else $as_nop 10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10958 /* end confdefs.h. */ 10959 int i; 10960 _ACEOF 10961 if ac_fn_c_try_compile "$LINENO" 10962 then : 10963 xorg_cv_cc_flag_unused_command_line_argument=yes 10964 else $as_nop 10965 xorg_cv_cc_flag_unused_command_line_argument=no 10966 fi 10967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10968 fi 10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10970 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10972 CFLAGS="$xorg_testset_save_CFLAGS" 10973 fi 10974 10975 found="no" 10976 10977 if test $found = "no" ; then 10978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10980 fi 10981 10982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10984 fi 10985 10986 CFLAGS="$CFLAGS -Werror=attributes" 10987 10988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10989 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10990 cacheid=xorg_cv_cc_flag__Werror_attributes 10991 if eval test \${$cacheid+y} 10992 then : 10993 printf %s "(cached) " >&6 10994 else $as_nop 10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10996 /* end confdefs.h. */ 10997 int i; 10998 int 10999 main (void) 11000 { 11001 11002 ; 11003 return 0; 11004 } 11005 _ACEOF 11006 if ac_fn_c_try_link "$LINENO" 11007 then : 11008 eval $cacheid=yes 11009 else $as_nop 11010 eval $cacheid=no 11011 fi 11012 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11013 conftest$ac_exeext conftest.$ac_ext 11014 fi 11015 11016 11017 CFLAGS="$xorg_testset_save_CFLAGS" 11018 11019 eval supported=\$$cacheid 11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11021 printf "%s\n" "$supported" >&6; } 11022 if test "$supported" = "yes" ; then 11023 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11024 found="yes" 11025 fi 11026 fi 11027 11028 11029 11030 if test "x$STRICT_COMPILE" = "xyes"; then 11031 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11032 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11033 fi 11034 11035 11036 11037 11038 11039 11040 11041 11042 cat >>confdefs.h <<_ACEOF 11043 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11044 _ACEOF 11045 11046 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11047 if test "x$PVM" = "x"; then 11048 PVM="0" 11049 fi 11050 11051 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11052 11053 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11054 if test "x$PVP" = "x"; then 11055 PVP="0" 11056 fi 11057 11058 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11059 11060 11061 11062 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11063 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11064 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11065 touch \$(top_srcdir)/ChangeLog; \ 11066 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11067 11068 11069 11070 11071 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11072 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11073 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11074 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11075 touch \$(top_srcdir)/INSTALL; \ 11076 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11077 11078 11079 11080 11081 11082 11083 case $host_os in 11084 solaris*) 11085 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11086 # check for a man page file found in later versions that use 11087 # traditional section numbers instead 11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11089 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11090 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11091 then : 11092 printf %s "(cached) " >&6 11093 else $as_nop 11094 test "$cross_compiling" = yes && 11095 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11096 if test -r "/usr/share/man/man7/attributes.7"; then 11097 ac_cv_file__usr_share_man_man7_attributes_7=yes 11098 else 11099 ac_cv_file__usr_share_man_man7_attributes_7=no 11100 fi 11101 fi 11102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11103 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11104 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11105 then : 11106 SYSV_MAN_SECTIONS=false 11107 else $as_nop 11108 SYSV_MAN_SECTIONS=true 11109 fi 11110 11111 ;; 11112 *) SYSV_MAN_SECTIONS=false ;; 11113 esac 11114 11115 if test x$APP_MAN_SUFFIX = x ; then 11116 APP_MAN_SUFFIX=1 11117 fi 11118 if test x$APP_MAN_DIR = x ; then 11119 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11120 fi 11121 11122 if test x$LIB_MAN_SUFFIX = x ; then 11123 LIB_MAN_SUFFIX=3 11124 fi 11125 if test x$LIB_MAN_DIR = x ; then 11126 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11127 fi 11128 11129 if test x$FILE_MAN_SUFFIX = x ; then 11130 case $SYSV_MAN_SECTIONS in 11131 true) FILE_MAN_SUFFIX=4 ;; 11132 *) FILE_MAN_SUFFIX=5 ;; 11133 esac 11134 fi 11135 if test x$FILE_MAN_DIR = x ; then 11136 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11137 fi 11138 11139 if test x$MISC_MAN_SUFFIX = x ; then 11140 case $SYSV_MAN_SECTIONS in 11141 true) MISC_MAN_SUFFIX=5 ;; 11142 *) MISC_MAN_SUFFIX=7 ;; 11143 esac 11144 fi 11145 if test x$MISC_MAN_DIR = x ; then 11146 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11147 fi 11148 11149 if test x$DRIVER_MAN_SUFFIX = x ; then 11150 case $SYSV_MAN_SECTIONS in 11151 true) DRIVER_MAN_SUFFIX=7 ;; 11152 *) DRIVER_MAN_SUFFIX=4 ;; 11153 esac 11154 fi 11155 if test x$DRIVER_MAN_DIR = x ; then 11156 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11157 fi 11158 11159 if test x$ADMIN_MAN_SUFFIX = x ; then 11160 case $SYSV_MAN_SECTIONS in 11161 true) ADMIN_MAN_SUFFIX=1m ;; 11162 *) ADMIN_MAN_SUFFIX=8 ;; 11163 esac 11164 fi 11165 if test x$ADMIN_MAN_DIR = x ; then 11166 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11167 fi 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 XORG_MAN_PAGE="X Version 11" 11184 11185 MAN_SUBSTS="\ 11186 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11187 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11188 -e 's|__xservername__|Xorg|g' \ 11189 -e 's|__xconfigfile__|xorg.conf|g' \ 11190 -e 's|__projectroot__|\$(prefix)|g' \ 11191 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11192 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11193 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11194 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11195 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11196 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11197 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11198 11199 11200 11201 # Check whether --enable-silent-rules was given. 11202 if test ${enable_silent_rules+y} 11203 then : 11204 enableval=$enable_silent_rules; 11205 fi 11206 11207 case $enable_silent_rules in # ((( 11208 yes) AM_DEFAULT_VERBOSITY=0;; 11209 no) AM_DEFAULT_VERBOSITY=1;; 11210 *) AM_DEFAULT_VERBOSITY=0;; 11211 esac 11212 am_make=${MAKE-make} 11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11214 printf %s "checking whether $am_make supports nested variables... " >&6; } 11215 if test ${am_cv_make_support_nested_variables+y} 11216 then : 11217 printf %s "(cached) " >&6 11218 else $as_nop 11219 if printf "%s\n" 'TRUE=$(BAR$(V)) 11220 BAR0=false 11221 BAR1=true 11222 V=1 11223 am__doit: 11224 @$(TRUE) 11225 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11226 am_cv_make_support_nested_variables=yes 11227 else 11228 am_cv_make_support_nested_variables=no 11229 fi 11230 fi 11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11232 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11233 if test $am_cv_make_support_nested_variables = yes; then 11234 AM_V='$(V)' 11235 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11236 else 11237 AM_V=$AM_DEFAULT_VERBOSITY 11238 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11239 fi 11240 AM_BACKSLASH='\' 11241 11242 11243 11244 11245 # Initialize libtool 11246 # Check whether --enable-static was given. 11247 if test ${enable_static+y} 11248 then : 11249 enableval=$enable_static; p=${PACKAGE-default} 11250 case $enableval in 11251 yes) enable_static=yes ;; 11252 no) enable_static=no ;; 11253 *) 11254 enable_static=no 11255 # Look at the argument we got. We use all the common list separators. 11256 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11257 for pkg in $enableval; do 11258 IFS=$lt_save_ifs 11259 if test "X$pkg" = "X$p"; then 11260 enable_static=yes 11261 fi 11262 done 11263 IFS=$lt_save_ifs 11264 ;; 11265 esac 11266 else $as_nop 11267 enable_static=no 11268 fi 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 case `pwd` in 11279 *\ * | *\ *) 11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11281 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11282 esac 11283 11284 11285 11286 macro_version='2.4.7' 11287 macro_revision='2.4.7' 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 ltmain=$ac_aux_dir/ltmain.sh 11303 11304 # Backslashify metacharacters that are still active within 11305 # double-quoted strings. 11306 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11307 11308 # Same as above, but do not quote variable references. 11309 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11310 11311 # Sed substitution to delay expansion of an escaped shell variable in a 11312 # double_quote_subst'ed string. 11313 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11314 11315 # Sed substitution to delay expansion of an escaped single quote. 11316 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11317 11318 # Sed substitution to avoid accidental globbing in evaled expressions 11319 no_glob_subst='s/\*/\\\*/g' 11320 11321 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11322 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11323 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11324 11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11326 printf %s "checking how to print strings... " >&6; } 11327 # Test print first, because it will be a builtin if present. 11328 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11329 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11330 ECHO='print -r --' 11331 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11332 ECHO='printf %s\n' 11333 else 11334 # Use this function as a fallback that always works. 11335 func_fallback_echo () 11336 { 11337 eval 'cat <<_LTECHO_EOF 11338 $1 11339 _LTECHO_EOF' 11340 } 11341 ECHO='func_fallback_echo' 11342 fi 11343 11344 # func_echo_all arg... 11345 # Invoke $ECHO with all args, space-separated. 11346 func_echo_all () 11347 { 11348 $ECHO "" 11349 } 11350 11351 case $ECHO in 11352 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11353 printf "%s\n" "printf" >&6; } ;; 11354 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11355 printf "%s\n" "print -r" >&6; } ;; 11356 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11357 printf "%s\n" "cat" >&6; } ;; 11358 esac 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11374 printf %s "checking for a sed that does not truncate output... " >&6; } 11375 if test ${ac_cv_path_SED+y} 11376 then : 11377 printf %s "(cached) " >&6 11378 else $as_nop 11379 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11380 for ac_i in 1 2 3 4 5 6 7; do 11381 ac_script="$ac_script$as_nl$ac_script" 11382 done 11383 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11384 { ac_script=; unset ac_script;} 11385 if test -z "$SED"; then 11386 ac_path_SED_found=false 11387 # Loop through the user's path and test for each of PROGNAME-LIST 11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11389 for as_dir in $PATH 11390 do 11391 IFS=$as_save_IFS 11392 case $as_dir in #((( 11393 '') as_dir=./ ;; 11394 */) ;; 11395 *) as_dir=$as_dir/ ;; 11396 esac 11397 for ac_prog in sed gsed 11398 do 11399 for ac_exec_ext in '' $ac_executable_extensions; do 11400 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11401 as_fn_executable_p "$ac_path_SED" || continue 11402 # Check for GNU ac_path_SED and select it if it is found. 11403 # Check for GNU $ac_path_SED 11404 case `"$ac_path_SED" --version 2>&1` in 11405 *GNU*) 11406 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11407 *) 11408 ac_count=0 11409 printf %s 0123456789 >"conftest.in" 11410 while : 11411 do 11412 cat "conftest.in" "conftest.in" >"conftest.tmp" 11413 mv "conftest.tmp" "conftest.in" 11414 cp "conftest.in" "conftest.nl" 11415 printf "%s\n" '' >> "conftest.nl" 11416 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11418 as_fn_arith $ac_count + 1 && ac_count=$as_val 11419 if test $ac_count -gt ${ac_path_SED_max-0}; then 11420 # Best one so far, save it but keep looking for a better one 11421 ac_cv_path_SED="$ac_path_SED" 11422 ac_path_SED_max=$ac_count 11423 fi 11424 # 10*(2^10) chars as input seems more than enough 11425 test $ac_count -gt 10 && break 11426 done 11427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11428 esac 11429 11430 $ac_path_SED_found && break 3 11431 done 11432 done 11433 done 11434 IFS=$as_save_IFS 11435 if test -z "$ac_cv_path_SED"; then 11436 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11437 fi 11438 else 11439 ac_cv_path_SED=$SED 11440 fi 11441 11442 fi 11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11444 printf "%s\n" "$ac_cv_path_SED" >&6; } 11445 SED="$ac_cv_path_SED" 11446 rm -f conftest.sed 11447 11448 test -z "$SED" && SED=sed 11449 Xsed="$SED -e 1s/^X//" 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11462 printf %s "checking for grep that handles long lines and -e... " >&6; } 11463 if test ${ac_cv_path_GREP+y} 11464 then : 11465 printf %s "(cached) " >&6 11466 else $as_nop 11467 if test -z "$GREP"; then 11468 ac_path_GREP_found=false 11469 # Loop through the user's path and test for each of PROGNAME-LIST 11470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11472 do 11473 IFS=$as_save_IFS 11474 case $as_dir in #((( 11475 '') as_dir=./ ;; 11476 */) ;; 11477 *) as_dir=$as_dir/ ;; 11478 esac 11479 for ac_prog in grep ggrep 11480 do 11481 for ac_exec_ext in '' $ac_executable_extensions; do 11482 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11483 as_fn_executable_p "$ac_path_GREP" || continue 11484 # Check for GNU ac_path_GREP and select it if it is found. 11485 # Check for GNU $ac_path_GREP 11486 case `"$ac_path_GREP" --version 2>&1` in 11487 *GNU*) 11488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11489 *) 11490 ac_count=0 11491 printf %s 0123456789 >"conftest.in" 11492 while : 11493 do 11494 cat "conftest.in" "conftest.in" >"conftest.tmp" 11495 mv "conftest.tmp" "conftest.in" 11496 cp "conftest.in" "conftest.nl" 11497 printf "%s\n" 'GREP' >> "conftest.nl" 11498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11500 as_fn_arith $ac_count + 1 && ac_count=$as_val 11501 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11502 # Best one so far, save it but keep looking for a better one 11503 ac_cv_path_GREP="$ac_path_GREP" 11504 ac_path_GREP_max=$ac_count 11505 fi 11506 # 10*(2^10) chars as input seems more than enough 11507 test $ac_count -gt 10 && break 11508 done 11509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11510 esac 11511 11512 $ac_path_GREP_found && break 3 11513 done 11514 done 11515 done 11516 IFS=$as_save_IFS 11517 if test -z "$ac_cv_path_GREP"; then 11518 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11519 fi 11520 else 11521 ac_cv_path_GREP=$GREP 11522 fi 11523 11524 fi 11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11526 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11527 GREP="$ac_cv_path_GREP" 11528 11529 11530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11531 printf %s "checking for egrep... " >&6; } 11532 if test ${ac_cv_path_EGREP+y} 11533 then : 11534 printf %s "(cached) " >&6 11535 else $as_nop 11536 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11537 then ac_cv_path_EGREP="$GREP -E" 11538 else 11539 if test -z "$EGREP"; then 11540 ac_path_EGREP_found=false 11541 # Loop through the user's path and test for each of PROGNAME-LIST 11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11544 do 11545 IFS=$as_save_IFS 11546 case $as_dir in #((( 11547 '') as_dir=./ ;; 11548 */) ;; 11549 *) as_dir=$as_dir/ ;; 11550 esac 11551 for ac_prog in egrep 11552 do 11553 for ac_exec_ext in '' $ac_executable_extensions; do 11554 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11555 as_fn_executable_p "$ac_path_EGREP" || continue 11556 # Check for GNU ac_path_EGREP and select it if it is found. 11557 # Check for GNU $ac_path_EGREP 11558 case `"$ac_path_EGREP" --version 2>&1` in 11559 *GNU*) 11560 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11561 *) 11562 ac_count=0 11563 printf %s 0123456789 >"conftest.in" 11564 while : 11565 do 11566 cat "conftest.in" "conftest.in" >"conftest.tmp" 11567 mv "conftest.tmp" "conftest.in" 11568 cp "conftest.in" "conftest.nl" 11569 printf "%s\n" 'EGREP' >> "conftest.nl" 11570 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11571 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11572 as_fn_arith $ac_count + 1 && ac_count=$as_val 11573 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11574 # Best one so far, save it but keep looking for a better one 11575 ac_cv_path_EGREP="$ac_path_EGREP" 11576 ac_path_EGREP_max=$ac_count 11577 fi 11578 # 10*(2^10) chars as input seems more than enough 11579 test $ac_count -gt 10 && break 11580 done 11581 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11582 esac 11583 11584 $ac_path_EGREP_found && break 3 11585 done 11586 done 11587 done 11588 IFS=$as_save_IFS 11589 if test -z "$ac_cv_path_EGREP"; then 11590 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11591 fi 11592 else 11593 ac_cv_path_EGREP=$EGREP 11594 fi 11595 11596 fi 11597 fi 11598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11599 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11600 EGREP="$ac_cv_path_EGREP" 11601 11602 11603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11604 printf %s "checking for fgrep... " >&6; } 11605 if test ${ac_cv_path_FGREP+y} 11606 then : 11607 printf %s "(cached) " >&6 11608 else $as_nop 11609 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11610 then ac_cv_path_FGREP="$GREP -F" 11611 else 11612 if test -z "$FGREP"; then 11613 ac_path_FGREP_found=false 11614 # Loop through the user's path and test for each of PROGNAME-LIST 11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11617 do 11618 IFS=$as_save_IFS 11619 case $as_dir in #((( 11620 '') as_dir=./ ;; 11621 */) ;; 11622 *) as_dir=$as_dir/ ;; 11623 esac 11624 for ac_prog in fgrep 11625 do 11626 for ac_exec_ext in '' $ac_executable_extensions; do 11627 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11628 as_fn_executable_p "$ac_path_FGREP" || continue 11629 # Check for GNU ac_path_FGREP and select it if it is found. 11630 # Check for GNU $ac_path_FGREP 11631 case `"$ac_path_FGREP" --version 2>&1` in 11632 *GNU*) 11633 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11634 *) 11635 ac_count=0 11636 printf %s 0123456789 >"conftest.in" 11637 while : 11638 do 11639 cat "conftest.in" "conftest.in" >"conftest.tmp" 11640 mv "conftest.tmp" "conftest.in" 11641 cp "conftest.in" "conftest.nl" 11642 printf "%s\n" 'FGREP' >> "conftest.nl" 11643 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11645 as_fn_arith $ac_count + 1 && ac_count=$as_val 11646 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11647 # Best one so far, save it but keep looking for a better one 11648 ac_cv_path_FGREP="$ac_path_FGREP" 11649 ac_path_FGREP_max=$ac_count 11650 fi 11651 # 10*(2^10) chars as input seems more than enough 11652 test $ac_count -gt 10 && break 11653 done 11654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11655 esac 11656 11657 $ac_path_FGREP_found && break 3 11658 done 11659 done 11660 done 11661 IFS=$as_save_IFS 11662 if test -z "$ac_cv_path_FGREP"; then 11663 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11664 fi 11665 else 11666 ac_cv_path_FGREP=$FGREP 11667 fi 11668 11669 fi 11670 fi 11671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11672 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11673 FGREP="$ac_cv_path_FGREP" 11674 11675 11676 test -z "$GREP" && GREP=grep 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 # Check whether --with-gnu-ld was given. 11697 if test ${with_gnu_ld+y} 11698 then : 11699 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11700 else $as_nop 11701 with_gnu_ld=no 11702 fi 11703 11704 ac_prog=ld 11705 if test yes = "$GCC"; then 11706 # Check if gcc -print-prog-name=ld gives a path. 11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11708 printf %s "checking for ld used by $CC... " >&6; } 11709 case $host in 11710 *-*-mingw*) 11711 # gcc leaves a trailing carriage return, which upsets mingw 11712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11713 *) 11714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11715 esac 11716 case $ac_prog in 11717 # Accept absolute paths. 11718 [\\/]* | ?:[\\/]*) 11719 re_direlt='/[^/][^/]*/\.\./' 11720 # Canonicalize the pathname of ld 11721 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11722 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11723 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11724 done 11725 test -z "$LD" && LD=$ac_prog 11726 ;; 11727 "") 11728 # If it fails, then pretend we aren't using GCC. 11729 ac_prog=ld 11730 ;; 11731 *) 11732 # If it is relative, then search for the first ld in PATH. 11733 with_gnu_ld=unknown 11734 ;; 11735 esac 11736 elif test yes = "$with_gnu_ld"; then 11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11738 printf %s "checking for GNU ld... " >&6; } 11739 else 11740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11741 printf %s "checking for non-GNU ld... " >&6; } 11742 fi 11743 if test ${lt_cv_path_LD+y} 11744 then : 11745 printf %s "(cached) " >&6 11746 else $as_nop 11747 if test -z "$LD"; then 11748 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11749 for ac_dir in $PATH; do 11750 IFS=$lt_save_ifs 11751 test -z "$ac_dir" && ac_dir=. 11752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11753 lt_cv_path_LD=$ac_dir/$ac_prog 11754 # Check to see if the program is GNU ld. I'd rather use --version, 11755 # but apparently some variants of GNU ld only accept -v. 11756 # Break only if it was the GNU/non-GNU ld that we prefer. 11757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11758 *GNU* | *'with BFD'*) 11759 test no != "$with_gnu_ld" && break 11760 ;; 11761 *) 11762 test yes != "$with_gnu_ld" && break 11763 ;; 11764 esac 11765 fi 11766 done 11767 IFS=$lt_save_ifs 11768 else 11769 lt_cv_path_LD=$LD # Let the user override the test with a path. 11770 fi 11771 fi 11772 11773 LD=$lt_cv_path_LD 11774 if test -n "$LD"; then 11775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11776 printf "%s\n" "$LD" >&6; } 11777 else 11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11779 printf "%s\n" "no" >&6; } 11780 fi 11781 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11783 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11784 if test ${lt_cv_prog_gnu_ld+y} 11785 then : 11786 printf %s "(cached) " >&6 11787 else $as_nop 11788 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11789 case `$LD -v 2>&1 </dev/null` in 11790 *GNU* | *'with BFD'*) 11791 lt_cv_prog_gnu_ld=yes 11792 ;; 11793 *) 11794 lt_cv_prog_gnu_ld=no 11795 ;; 11796 esac 11797 fi 11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11799 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11800 with_gnu_ld=$lt_cv_prog_gnu_ld 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11811 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11812 if test ${lt_cv_path_NM+y} 11813 then : 11814 printf %s "(cached) " >&6 11815 else $as_nop 11816 if test -n "$NM"; then 11817 # Let the user override the test. 11818 lt_cv_path_NM=$NM 11819 else 11820 lt_nm_to_check=${ac_tool_prefix}nm 11821 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11822 lt_nm_to_check="$lt_nm_to_check nm" 11823 fi 11824 for lt_tmp_nm in $lt_nm_to_check; do 11825 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11826 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11827 IFS=$lt_save_ifs 11828 test -z "$ac_dir" && ac_dir=. 11829 tmp_nm=$ac_dir/$lt_tmp_nm 11830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11831 # Check to see if the nm accepts a BSD-compat flag. 11832 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11833 # nm: unknown option "B" ignored 11834 # Tru64's nm complains that /dev/null is an invalid object file 11835 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11836 case $build_os in 11837 mingw*) lt_bad_file=conftest.nm/nofile ;; 11838 *) lt_bad_file=/dev/null ;; 11839 esac 11840 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11841 *$lt_bad_file* | *'Invalid file or object type'*) 11842 lt_cv_path_NM="$tmp_nm -B" 11843 break 2 11844 ;; 11845 *) 11846 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11847 */dev/null*) 11848 lt_cv_path_NM="$tmp_nm -p" 11849 break 2 11850 ;; 11851 *) 11852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11853 continue # so that we can try to find one that supports BSD flags 11854 ;; 11855 esac 11856 ;; 11857 esac 11858 fi 11859 done 11860 IFS=$lt_save_ifs 11861 done 11862 : ${lt_cv_path_NM=no} 11863 fi 11864 fi 11865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11866 printf "%s\n" "$lt_cv_path_NM" >&6; } 11867 if test no != "$lt_cv_path_NM"; then 11868 NM=$lt_cv_path_NM 11869 else 11870 # Didn't find any BSD compatible name lister, look for dumpbin. 11871 if test -n "$DUMPBIN"; then : 11872 # Let the user override the test. 11873 else 11874 if test -n "$ac_tool_prefix"; then 11875 for ac_prog in dumpbin "link -dump" 11876 do 11877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11880 printf %s "checking for $ac_word... " >&6; } 11881 if test ${ac_cv_prog_DUMPBIN+y} 11882 then : 11883 printf %s "(cached) " >&6 11884 else $as_nop 11885 if test -n "$DUMPBIN"; then 11886 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11887 else 11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11889 for as_dir in $PATH 11890 do 11891 IFS=$as_save_IFS 11892 case $as_dir in #((( 11893 '') as_dir=./ ;; 11894 */) ;; 11895 *) as_dir=$as_dir/ ;; 11896 esac 11897 for ac_exec_ext in '' $ac_executable_extensions; do 11898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11899 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11901 break 2 11902 fi 11903 done 11904 done 11905 IFS=$as_save_IFS 11906 11907 fi 11908 fi 11909 DUMPBIN=$ac_cv_prog_DUMPBIN 11910 if test -n "$DUMPBIN"; then 11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11912 printf "%s\n" "$DUMPBIN" >&6; } 11913 else 11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11915 printf "%s\n" "no" >&6; } 11916 fi 11917 11918 11919 test -n "$DUMPBIN" && break 11920 done 11921 fi 11922 if test -z "$DUMPBIN"; then 11923 ac_ct_DUMPBIN=$DUMPBIN 11924 for ac_prog in dumpbin "link -dump" 11925 do 11926 # Extract the first word of "$ac_prog", so it can be a program name with args. 11927 set dummy $ac_prog; ac_word=$2 11928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11929 printf %s "checking for $ac_word... " >&6; } 11930 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11931 then : 11932 printf %s "(cached) " >&6 11933 else $as_nop 11934 if test -n "$ac_ct_DUMPBIN"; then 11935 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11936 else 11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11938 for as_dir in $PATH 11939 do 11940 IFS=$as_save_IFS 11941 case $as_dir in #((( 11942 '') as_dir=./ ;; 11943 */) ;; 11944 *) as_dir=$as_dir/ ;; 11945 esac 11946 for ac_exec_ext in '' $ac_executable_extensions; do 11947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11948 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11950 break 2 11951 fi 11952 done 11953 done 11954 IFS=$as_save_IFS 11955 11956 fi 11957 fi 11958 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11959 if test -n "$ac_ct_DUMPBIN"; then 11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11961 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11962 else 11963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11964 printf "%s\n" "no" >&6; } 11965 fi 11966 11967 11968 test -n "$ac_ct_DUMPBIN" && break 11969 done 11970 11971 if test "x$ac_ct_DUMPBIN" = x; then 11972 DUMPBIN=":" 11973 else 11974 case $cross_compiling:$ac_tool_warned in 11975 yes:) 11976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11977 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11978 ac_tool_warned=yes ;; 11979 esac 11980 DUMPBIN=$ac_ct_DUMPBIN 11981 fi 11982 fi 11983 11984 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11985 *COFF*) 11986 DUMPBIN="$DUMPBIN -symbols -headers" 11987 ;; 11988 *) 11989 DUMPBIN=: 11990 ;; 11991 esac 11992 fi 11993 11994 if test : != "$DUMPBIN"; then 11995 NM=$DUMPBIN 11996 fi 11997 fi 11998 test -z "$NM" && NM=nm 11999 12000 12001 12002 12003 12004 12005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12006 printf %s "checking the name lister ($NM) interface... " >&6; } 12007 if test ${lt_cv_nm_interface+y} 12008 then : 12009 printf %s "(cached) " >&6 12010 else $as_nop 12011 lt_cv_nm_interface="BSD nm" 12012 echo "int some_variable = 0;" > conftest.$ac_ext 12013 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12014 (eval "$ac_compile" 2>conftest.err) 12015 cat conftest.err >&5 12016 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12017 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12018 cat conftest.err >&5 12019 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12020 cat conftest.out >&5 12021 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12022 lt_cv_nm_interface="MS dumpbin" 12023 fi 12024 rm -f conftest* 12025 fi 12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12027 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12028 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12030 printf %s "checking whether ln -s works... " >&6; } 12031 LN_S=$as_ln_s 12032 if test "$LN_S" = "ln -s"; then 12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12034 printf "%s\n" "yes" >&6; } 12035 else 12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12037 printf "%s\n" "no, using $LN_S" >&6; } 12038 fi 12039 12040 # find the maximum length of command line arguments 12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12042 printf %s "checking the maximum length of command line arguments... " >&6; } 12043 if test ${lt_cv_sys_max_cmd_len+y} 12044 then : 12045 printf %s "(cached) " >&6 12046 else $as_nop 12047 i=0 12048 teststring=ABCD 12049 12050 case $build_os in 12051 msdosdjgpp*) 12052 # On DJGPP, this test can blow up pretty badly due to problems in libc 12053 # (any single argument exceeding 2000 bytes causes a buffer overrun 12054 # during glob expansion). Even if it were fixed, the result of this 12055 # check would be larger than it should be. 12056 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12057 ;; 12058 12059 gnu*) 12060 # Under GNU Hurd, this test is not required because there is 12061 # no limit to the length of command line arguments. 12062 # Libtool will interpret -1 as no limit whatsoever 12063 lt_cv_sys_max_cmd_len=-1; 12064 ;; 12065 12066 cygwin* | mingw* | cegcc*) 12067 # On Win9x/ME, this test blows up -- it succeeds, but takes 12068 # about 5 minutes as the teststring grows exponentially. 12069 # Worse, since 9x/ME are not pre-emptively multitasking, 12070 # you end up with a "frozen" computer, even though with patience 12071 # the test eventually succeeds (with a max line length of 256k). 12072 # Instead, let's just punt: use the minimum linelength reported by 12073 # all of the supported platforms: 8192 (on NT/2K/XP). 12074 lt_cv_sys_max_cmd_len=8192; 12075 ;; 12076 12077 mint*) 12078 # On MiNT this can take a long time and run out of memory. 12079 lt_cv_sys_max_cmd_len=8192; 12080 ;; 12081 12082 amigaos*) 12083 # On AmigaOS with pdksh, this test takes hours, literally. 12084 # So we just punt and use a minimum line length of 8192. 12085 lt_cv_sys_max_cmd_len=8192; 12086 ;; 12087 12088 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12089 # This has been around since 386BSD, at least. Likely further. 12090 if test -x /sbin/sysctl; then 12091 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12092 elif test -x /usr/sbin/sysctl; then 12093 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12094 else 12095 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12096 fi 12097 # And add a safety zone 12098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12100 ;; 12101 12102 interix*) 12103 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12104 lt_cv_sys_max_cmd_len=196608 12105 ;; 12106 12107 os2*) 12108 # The test takes a long time on OS/2. 12109 lt_cv_sys_max_cmd_len=8192 12110 ;; 12111 12112 osf*) 12113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12115 # nice to cause kernel panics so lets avoid the loop below. 12116 # First set a reasonable default. 12117 lt_cv_sys_max_cmd_len=16384 12118 # 12119 if test -x /sbin/sysconfig; then 12120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12121 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12122 esac 12123 fi 12124 ;; 12125 sco3.2v5*) 12126 lt_cv_sys_max_cmd_len=102400 12127 ;; 12128 sysv5* | sco5v6* | sysv4.2uw2*) 12129 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12130 if test -n "$kargmax"; then 12131 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12132 else 12133 lt_cv_sys_max_cmd_len=32768 12134 fi 12135 ;; 12136 *) 12137 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12138 if test -n "$lt_cv_sys_max_cmd_len" && \ 12139 test undefined != "$lt_cv_sys_max_cmd_len"; then 12140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12142 else 12143 # Make teststring a little bigger before we do anything with it. 12144 # a 1K string should be a reasonable start. 12145 for i in 1 2 3 4 5 6 7 8; do 12146 teststring=$teststring$teststring 12147 done 12148 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12149 # If test is not a shell built-in, we'll probably end up computing a 12150 # maximum length that is only half of the actual maximum length, but 12151 # we can't tell. 12152 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12153 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12154 test 17 != "$i" # 1/2 MB should be enough 12155 do 12156 i=`expr $i + 1` 12157 teststring=$teststring$teststring 12158 done 12159 # Only check the string length outside the loop. 12160 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12161 teststring= 12162 # Add a significant safety factor because C++ compilers can tack on 12163 # massive amounts of additional arguments before passing them to the 12164 # linker. It appears as though 1/2 is a usable value. 12165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12166 fi 12167 ;; 12168 esac 12169 12170 fi 12171 12172 if test -n "$lt_cv_sys_max_cmd_len"; then 12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12174 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12175 else 12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12177 printf "%s\n" "none" >&6; } 12178 fi 12179 max_cmd_len=$lt_cv_sys_max_cmd_len 12180 12181 12182 12183 12184 12185 12186 : ${CP="cp -f"} 12187 : ${MV="mv -f"} 12188 : ${RM="rm -f"} 12189 12190 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12191 lt_unset=unset 12192 else 12193 lt_unset=false 12194 fi 12195 12196 12197 12198 12199 12200 # test EBCDIC or ASCII 12201 case `echo X|tr X '\101'` in 12202 A) # ASCII based system 12203 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12204 lt_SP2NL='tr \040 \012' 12205 lt_NL2SP='tr \015\012 \040\040' 12206 ;; 12207 *) # EBCDIC based system 12208 lt_SP2NL='tr \100 \n' 12209 lt_NL2SP='tr \r\n \100\100' 12210 ;; 12211 esac 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12222 printf %s "checking how to convert $build file names to $host format... " >&6; } 12223 if test ${lt_cv_to_host_file_cmd+y} 12224 then : 12225 printf %s "(cached) " >&6 12226 else $as_nop 12227 case $host in 12228 *-*-mingw* ) 12229 case $build in 12230 *-*-mingw* ) # actually msys 12231 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12232 ;; 12233 *-*-cygwin* ) 12234 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12235 ;; 12236 * ) # otherwise, assume *nix 12237 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12238 ;; 12239 esac 12240 ;; 12241 *-*-cygwin* ) 12242 case $build in 12243 *-*-mingw* ) # actually msys 12244 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12245 ;; 12246 *-*-cygwin* ) 12247 lt_cv_to_host_file_cmd=func_convert_file_noop 12248 ;; 12249 * ) # otherwise, assume *nix 12250 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12251 ;; 12252 esac 12253 ;; 12254 * ) # unhandled hosts (and "normal" native builds) 12255 lt_cv_to_host_file_cmd=func_convert_file_noop 12256 ;; 12257 esac 12258 12259 fi 12260 12261 to_host_file_cmd=$lt_cv_to_host_file_cmd 12262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12263 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12264 12265 12266 12267 12268 12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12270 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12271 if test ${lt_cv_to_tool_file_cmd+y} 12272 then : 12273 printf %s "(cached) " >&6 12274 else $as_nop 12275 #assume ordinary cross tools, or native build. 12276 lt_cv_to_tool_file_cmd=func_convert_file_noop 12277 case $host in 12278 *-*-mingw* ) 12279 case $build in 12280 *-*-mingw* ) # actually msys 12281 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12282 ;; 12283 esac 12284 ;; 12285 esac 12286 12287 fi 12288 12289 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12291 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12292 12293 12294 12295 12296 12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12298 printf %s "checking for $LD option to reload object files... " >&6; } 12299 if test ${lt_cv_ld_reload_flag+y} 12300 then : 12301 printf %s "(cached) " >&6 12302 else $as_nop 12303 lt_cv_ld_reload_flag='-r' 12304 fi 12305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12306 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12307 reload_flag=$lt_cv_ld_reload_flag 12308 case $reload_flag in 12309 "" | " "*) ;; 12310 *) reload_flag=" $reload_flag" ;; 12311 esac 12312 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12313 case $host_os in 12314 cygwin* | mingw* | pw32* | cegcc*) 12315 if test yes != "$GCC"; then 12316 reload_cmds=false 12317 fi 12318 ;; 12319 darwin*) 12320 if test yes = "$GCC"; then 12321 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12322 else 12323 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12324 fi 12325 ;; 12326 esac 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 if test -n "$ac_tool_prefix"; then 12337 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12338 set dummy ${ac_tool_prefix}file; ac_word=$2 12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12340 printf %s "checking for $ac_word... " >&6; } 12341 if test ${ac_cv_prog_FILECMD+y} 12342 then : 12343 printf %s "(cached) " >&6 12344 else $as_nop 12345 if test -n "$FILECMD"; then 12346 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12347 else 12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12349 for as_dir in $PATH 12350 do 12351 IFS=$as_save_IFS 12352 case $as_dir in #((( 12353 '') as_dir=./ ;; 12354 */) ;; 12355 *) as_dir=$as_dir/ ;; 12356 esac 12357 for ac_exec_ext in '' $ac_executable_extensions; do 12358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12359 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12361 break 2 12362 fi 12363 done 12364 done 12365 IFS=$as_save_IFS 12366 12367 fi 12368 fi 12369 FILECMD=$ac_cv_prog_FILECMD 12370 if test -n "$FILECMD"; then 12371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12372 printf "%s\n" "$FILECMD" >&6; } 12373 else 12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12375 printf "%s\n" "no" >&6; } 12376 fi 12377 12378 12379 fi 12380 if test -z "$ac_cv_prog_FILECMD"; then 12381 ac_ct_FILECMD=$FILECMD 12382 # Extract the first word of "file", so it can be a program name with args. 12383 set dummy file; ac_word=$2 12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12385 printf %s "checking for $ac_word... " >&6; } 12386 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12387 then : 12388 printf %s "(cached) " >&6 12389 else $as_nop 12390 if test -n "$ac_ct_FILECMD"; then 12391 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12392 else 12393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12394 for as_dir in $PATH 12395 do 12396 IFS=$as_save_IFS 12397 case $as_dir in #((( 12398 '') as_dir=./ ;; 12399 */) ;; 12400 *) as_dir=$as_dir/ ;; 12401 esac 12402 for ac_exec_ext in '' $ac_executable_extensions; do 12403 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12404 ac_cv_prog_ac_ct_FILECMD="file" 12405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12406 break 2 12407 fi 12408 done 12409 done 12410 IFS=$as_save_IFS 12411 12412 fi 12413 fi 12414 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12415 if test -n "$ac_ct_FILECMD"; then 12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12417 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12418 else 12419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12420 printf "%s\n" "no" >&6; } 12421 fi 12422 12423 if test "x$ac_ct_FILECMD" = x; then 12424 FILECMD=":" 12425 else 12426 case $cross_compiling:$ac_tool_warned in 12427 yes:) 12428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12430 ac_tool_warned=yes ;; 12431 esac 12432 FILECMD=$ac_ct_FILECMD 12433 fi 12434 else 12435 FILECMD="$ac_cv_prog_FILECMD" 12436 fi 12437 12438 12439 12440 12441 12442 12443 12444 if test -n "$ac_tool_prefix"; then 12445 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12446 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12448 printf %s "checking for $ac_word... " >&6; } 12449 if test ${ac_cv_prog_OBJDUMP+y} 12450 then : 12451 printf %s "(cached) " >&6 12452 else $as_nop 12453 if test -n "$OBJDUMP"; then 12454 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12455 else 12456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12457 for as_dir in $PATH 12458 do 12459 IFS=$as_save_IFS 12460 case $as_dir in #((( 12461 '') as_dir=./ ;; 12462 */) ;; 12463 *) as_dir=$as_dir/ ;; 12464 esac 12465 for ac_exec_ext in '' $ac_executable_extensions; do 12466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12467 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12469 break 2 12470 fi 12471 done 12472 done 12473 IFS=$as_save_IFS 12474 12475 fi 12476 fi 12477 OBJDUMP=$ac_cv_prog_OBJDUMP 12478 if test -n "$OBJDUMP"; then 12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12480 printf "%s\n" "$OBJDUMP" >&6; } 12481 else 12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12483 printf "%s\n" "no" >&6; } 12484 fi 12485 12486 12487 fi 12488 if test -z "$ac_cv_prog_OBJDUMP"; then 12489 ac_ct_OBJDUMP=$OBJDUMP 12490 # Extract the first word of "objdump", so it can be a program name with args. 12491 set dummy objdump; ac_word=$2 12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12493 printf %s "checking for $ac_word... " >&6; } 12494 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12495 then : 12496 printf %s "(cached) " >&6 12497 else $as_nop 12498 if test -n "$ac_ct_OBJDUMP"; then 12499 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12500 else 12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12502 for as_dir in $PATH 12503 do 12504 IFS=$as_save_IFS 12505 case $as_dir in #((( 12506 '') as_dir=./ ;; 12507 */) ;; 12508 *) as_dir=$as_dir/ ;; 12509 esac 12510 for ac_exec_ext in '' $ac_executable_extensions; do 12511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12512 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12514 break 2 12515 fi 12516 done 12517 done 12518 IFS=$as_save_IFS 12519 12520 fi 12521 fi 12522 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12523 if test -n "$ac_ct_OBJDUMP"; then 12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12525 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12526 else 12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12528 printf "%s\n" "no" >&6; } 12529 fi 12530 12531 if test "x$ac_ct_OBJDUMP" = x; then 12532 OBJDUMP="false" 12533 else 12534 case $cross_compiling:$ac_tool_warned in 12535 yes:) 12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12537 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12538 ac_tool_warned=yes ;; 12539 esac 12540 OBJDUMP=$ac_ct_OBJDUMP 12541 fi 12542 else 12543 OBJDUMP="$ac_cv_prog_OBJDUMP" 12544 fi 12545 12546 test -z "$OBJDUMP" && OBJDUMP=objdump 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12557 printf %s "checking how to recognize dependent libraries... " >&6; } 12558 if test ${lt_cv_deplibs_check_method+y} 12559 then : 12560 printf %s "(cached) " >&6 12561 else $as_nop 12562 lt_cv_file_magic_cmd='$MAGIC_CMD' 12563 lt_cv_file_magic_test_file= 12564 lt_cv_deplibs_check_method='unknown' 12565 # Need to set the preceding variable on all platforms that support 12566 # interlibrary dependencies. 12567 # 'none' -- dependencies not supported. 12568 # 'unknown' -- same as none, but documents that we really don't know. 12569 # 'pass_all' -- all dependencies passed with no checks. 12570 # 'test_compile' -- check by making test program. 12571 # 'file_magic [[regex]]' -- check by looking for files in library path 12572 # that responds to the $file_magic_cmd with a given extended regex. 12573 # If you have 'file' or equivalent on your system and you're not sure 12574 # whether 'pass_all' will *always* work, you probably want this one. 12575 12576 case $host_os in 12577 aix[4-9]*) 12578 lt_cv_deplibs_check_method=pass_all 12579 ;; 12580 12581 beos*) 12582 lt_cv_deplibs_check_method=pass_all 12583 ;; 12584 12585 bsdi[45]*) 12586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12587 lt_cv_file_magic_cmd='$FILECMD -L' 12588 lt_cv_file_magic_test_file=/shlib/libc.so 12589 ;; 12590 12591 cygwin*) 12592 # func_win32_libid is a shell function defined in ltmain.sh 12593 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12594 lt_cv_file_magic_cmd='func_win32_libid' 12595 ;; 12596 12597 mingw* | pw32*) 12598 # Base MSYS/MinGW do not provide the 'file' command needed by 12599 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12600 # unless we find 'file', for example because we are cross-compiling. 12601 if ( file / ) >/dev/null 2>&1; then 12602 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12603 lt_cv_file_magic_cmd='func_win32_libid' 12604 else 12605 # Keep this pattern in sync with the one in func_win32_libid. 12606 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12607 lt_cv_file_magic_cmd='$OBJDUMP -f' 12608 fi 12609 ;; 12610 12611 cegcc*) 12612 # use the weaker test based on 'objdump'. See mingw*. 12613 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12614 lt_cv_file_magic_cmd='$OBJDUMP -f' 12615 ;; 12616 12617 darwin* | rhapsody*) 12618 lt_cv_deplibs_check_method=pass_all 12619 ;; 12620 12621 freebsd* | dragonfly* | midnightbsd*) 12622 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12623 case $host_cpu in 12624 i*86 ) 12625 # Not sure whether the presence of OpenBSD here was a mistake. 12626 # Let's accept both of them until this is cleared up. 12627 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12628 lt_cv_file_magic_cmd=$FILECMD 12629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12630 ;; 12631 esac 12632 else 12633 lt_cv_deplibs_check_method=pass_all 12634 fi 12635 ;; 12636 12637 haiku*) 12638 lt_cv_deplibs_check_method=pass_all 12639 ;; 12640 12641 hpux10.20* | hpux11*) 12642 lt_cv_file_magic_cmd=$FILECMD 12643 case $host_cpu in 12644 ia64*) 12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12646 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12647 ;; 12648 hppa*64*) 12649 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]' 12650 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12651 ;; 12652 *) 12653 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12654 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12655 ;; 12656 esac 12657 ;; 12658 12659 interix[3-9]*) 12660 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12662 ;; 12663 12664 irix5* | irix6* | nonstopux*) 12665 case $LD in 12666 *-32|*"-32 ") libmagic=32-bit;; 12667 *-n32|*"-n32 ") libmagic=N32;; 12668 *-64|*"-64 ") libmagic=64-bit;; 12669 *) libmagic=never-match;; 12670 esac 12671 lt_cv_deplibs_check_method=pass_all 12672 ;; 12673 12674 # This must be glibc/ELF. 12675 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12676 lt_cv_deplibs_check_method=pass_all 12677 ;; 12678 12679 netbsd*) 12680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12682 else 12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12684 fi 12685 ;; 12686 12687 newos6*) 12688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12689 lt_cv_file_magic_cmd=$FILECMD 12690 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12691 ;; 12692 12693 *nto* | *qnx*) 12694 lt_cv_deplibs_check_method=pass_all 12695 ;; 12696 12697 openbsd* | bitrig*) 12698 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12700 else 12701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12702 fi 12703 ;; 12704 12705 osf3* | osf4* | osf5*) 12706 lt_cv_deplibs_check_method=pass_all 12707 ;; 12708 12709 rdos*) 12710 lt_cv_deplibs_check_method=pass_all 12711 ;; 12712 12713 solaris*) 12714 lt_cv_deplibs_check_method=pass_all 12715 ;; 12716 12717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12718 lt_cv_deplibs_check_method=pass_all 12719 ;; 12720 12721 sysv4 | sysv4.3*) 12722 case $host_vendor in 12723 motorola) 12724 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]' 12725 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12726 ;; 12727 ncr) 12728 lt_cv_deplibs_check_method=pass_all 12729 ;; 12730 sequent) 12731 lt_cv_file_magic_cmd='/bin/file' 12732 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12733 ;; 12734 sni) 12735 lt_cv_file_magic_cmd='/bin/file' 12736 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12737 lt_cv_file_magic_test_file=/lib/libc.so 12738 ;; 12739 siemens) 12740 lt_cv_deplibs_check_method=pass_all 12741 ;; 12742 pc) 12743 lt_cv_deplibs_check_method=pass_all 12744 ;; 12745 esac 12746 ;; 12747 12748 tpf*) 12749 lt_cv_deplibs_check_method=pass_all 12750 ;; 12751 os2*) 12752 lt_cv_deplibs_check_method=pass_all 12753 ;; 12754 esac 12755 12756 fi 12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12758 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12759 12760 file_magic_glob= 12761 want_nocaseglob=no 12762 if test "$build" = "$host"; then 12763 case $host_os in 12764 mingw* | pw32*) 12765 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12766 want_nocaseglob=yes 12767 else 12768 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12769 fi 12770 ;; 12771 esac 12772 fi 12773 12774 file_magic_cmd=$lt_cv_file_magic_cmd 12775 deplibs_check_method=$lt_cv_deplibs_check_method 12776 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 if test -n "$ac_tool_prefix"; then 12800 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12801 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12803 printf %s "checking for $ac_word... " >&6; } 12804 if test ${ac_cv_prog_DLLTOOL+y} 12805 then : 12806 printf %s "(cached) " >&6 12807 else $as_nop 12808 if test -n "$DLLTOOL"; then 12809 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12810 else 12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12812 for as_dir in $PATH 12813 do 12814 IFS=$as_save_IFS 12815 case $as_dir in #((( 12816 '') as_dir=./ ;; 12817 */) ;; 12818 *) as_dir=$as_dir/ ;; 12819 esac 12820 for ac_exec_ext in '' $ac_executable_extensions; do 12821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12822 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12824 break 2 12825 fi 12826 done 12827 done 12828 IFS=$as_save_IFS 12829 12830 fi 12831 fi 12832 DLLTOOL=$ac_cv_prog_DLLTOOL 12833 if test -n "$DLLTOOL"; then 12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12835 printf "%s\n" "$DLLTOOL" >&6; } 12836 else 12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12838 printf "%s\n" "no" >&6; } 12839 fi 12840 12841 12842 fi 12843 if test -z "$ac_cv_prog_DLLTOOL"; then 12844 ac_ct_DLLTOOL=$DLLTOOL 12845 # Extract the first word of "dlltool", so it can be a program name with args. 12846 set dummy dlltool; ac_word=$2 12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12848 printf %s "checking for $ac_word... " >&6; } 12849 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12850 then : 12851 printf %s "(cached) " >&6 12852 else $as_nop 12853 if test -n "$ac_ct_DLLTOOL"; then 12854 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12855 else 12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12857 for as_dir in $PATH 12858 do 12859 IFS=$as_save_IFS 12860 case $as_dir in #((( 12861 '') as_dir=./ ;; 12862 */) ;; 12863 *) as_dir=$as_dir/ ;; 12864 esac 12865 for ac_exec_ext in '' $ac_executable_extensions; do 12866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12867 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12869 break 2 12870 fi 12871 done 12872 done 12873 IFS=$as_save_IFS 12874 12875 fi 12876 fi 12877 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12878 if test -n "$ac_ct_DLLTOOL"; then 12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12880 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12881 else 12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12883 printf "%s\n" "no" >&6; } 12884 fi 12885 12886 if test "x$ac_ct_DLLTOOL" = x; then 12887 DLLTOOL="false" 12888 else 12889 case $cross_compiling:$ac_tool_warned in 12890 yes:) 12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12893 ac_tool_warned=yes ;; 12894 esac 12895 DLLTOOL=$ac_ct_DLLTOOL 12896 fi 12897 else 12898 DLLTOOL="$ac_cv_prog_DLLTOOL" 12899 fi 12900 12901 test -z "$DLLTOOL" && DLLTOOL=dlltool 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12913 printf %s "checking how to associate runtime and link libraries... " >&6; } 12914 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12915 then : 12916 printf %s "(cached) " >&6 12917 else $as_nop 12918 lt_cv_sharedlib_from_linklib_cmd='unknown' 12919 12920 case $host_os in 12921 cygwin* | mingw* | pw32* | cegcc*) 12922 # two different shell functions defined in ltmain.sh; 12923 # decide which one to use based on capabilities of $DLLTOOL 12924 case `$DLLTOOL --help 2>&1` in 12925 *--identify-strict*) 12926 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12927 ;; 12928 *) 12929 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12930 ;; 12931 esac 12932 ;; 12933 *) 12934 # fallback: assume linklib IS sharedlib 12935 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12936 ;; 12937 esac 12938 12939 fi 12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12941 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12942 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12943 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12944 12945 12946 12947 12948 12949 12950 12951 if test -n "$ac_tool_prefix"; then 12952 for ac_prog in ar 12953 do 12954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12957 printf %s "checking for $ac_word... " >&6; } 12958 if test ${ac_cv_prog_AR+y} 12959 then : 12960 printf %s "(cached) " >&6 12961 else $as_nop 12962 if test -n "$AR"; then 12963 ac_cv_prog_AR="$AR" # Let the user override the test. 12964 else 12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12966 for as_dir in $PATH 12967 do 12968 IFS=$as_save_IFS 12969 case $as_dir in #((( 12970 '') as_dir=./ ;; 12971 */) ;; 12972 *) as_dir=$as_dir/ ;; 12973 esac 12974 for ac_exec_ext in '' $ac_executable_extensions; do 12975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12976 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12978 break 2 12979 fi 12980 done 12981 done 12982 IFS=$as_save_IFS 12983 12984 fi 12985 fi 12986 AR=$ac_cv_prog_AR 12987 if test -n "$AR"; then 12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12989 printf "%s\n" "$AR" >&6; } 12990 else 12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12992 printf "%s\n" "no" >&6; } 12993 fi 12994 12995 12996 test -n "$AR" && break 12997 done 12998 fi 12999 if test -z "$AR"; then 13000 ac_ct_AR=$AR 13001 for ac_prog in ar 13002 do 13003 # Extract the first word of "$ac_prog", so it can be a program name with args. 13004 set dummy $ac_prog; ac_word=$2 13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13006 printf %s "checking for $ac_word... " >&6; } 13007 if test ${ac_cv_prog_ac_ct_AR+y} 13008 then : 13009 printf %s "(cached) " >&6 13010 else $as_nop 13011 if test -n "$ac_ct_AR"; then 13012 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13013 else 13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13015 for as_dir in $PATH 13016 do 13017 IFS=$as_save_IFS 13018 case $as_dir in #((( 13019 '') as_dir=./ ;; 13020 */) ;; 13021 *) as_dir=$as_dir/ ;; 13022 esac 13023 for ac_exec_ext in '' $ac_executable_extensions; do 13024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13025 ac_cv_prog_ac_ct_AR="$ac_prog" 13026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13027 break 2 13028 fi 13029 done 13030 done 13031 IFS=$as_save_IFS 13032 13033 fi 13034 fi 13035 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13036 if test -n "$ac_ct_AR"; then 13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13038 printf "%s\n" "$ac_ct_AR" >&6; } 13039 else 13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13041 printf "%s\n" "no" >&6; } 13042 fi 13043 13044 13045 test -n "$ac_ct_AR" && break 13046 done 13047 13048 if test "x$ac_ct_AR" = x; then 13049 AR="false" 13050 else 13051 case $cross_compiling:$ac_tool_warned in 13052 yes:) 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13055 ac_tool_warned=yes ;; 13056 esac 13057 AR=$ac_ct_AR 13058 fi 13059 fi 13060 13061 : ${AR=ar} 13062 13063 13064 13065 13066 13067 13068 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13069 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13070 # higher priority because thats what people were doing historically (setting 13071 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13072 # variable obsoleted/removed. 13073 13074 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13075 lt_ar_flags=$AR_FLAGS 13076 13077 13078 13079 13080 13081 13082 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13083 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13084 13085 13086 13087 13088 13089 13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13091 printf %s "checking for archiver @FILE support... " >&6; } 13092 if test ${lt_cv_ar_at_file+y} 13093 then : 13094 printf %s "(cached) " >&6 13095 else $as_nop 13096 lt_cv_ar_at_file=no 13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13098 /* end confdefs.h. */ 13099 13100 int 13101 main (void) 13102 { 13103 13104 ; 13105 return 0; 13106 } 13107 _ACEOF 13108 if ac_fn_c_try_compile "$LINENO" 13109 then : 13110 echo conftest.$ac_objext > conftest.lst 13111 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13113 (eval $lt_ar_try) 2>&5 13114 ac_status=$? 13115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13116 test $ac_status = 0; } 13117 if test 0 -eq "$ac_status"; then 13118 # Ensure the archiver fails upon bogus file names. 13119 rm -f conftest.$ac_objext libconftest.a 13120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13121 (eval $lt_ar_try) 2>&5 13122 ac_status=$? 13123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13124 test $ac_status = 0; } 13125 if test 0 -ne "$ac_status"; then 13126 lt_cv_ar_at_file=@ 13127 fi 13128 fi 13129 rm -f conftest.* libconftest.a 13130 13131 fi 13132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13133 13134 fi 13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13136 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13137 13138 if test no = "$lt_cv_ar_at_file"; then 13139 archiver_list_spec= 13140 else 13141 archiver_list_spec=$lt_cv_ar_at_file 13142 fi 13143 13144 13145 13146 13147 13148 13149 13150 if test -n "$ac_tool_prefix"; then 13151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13152 set dummy ${ac_tool_prefix}strip; ac_word=$2 13153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13154 printf %s "checking for $ac_word... " >&6; } 13155 if test ${ac_cv_prog_STRIP+y} 13156 then : 13157 printf %s "(cached) " >&6 13158 else $as_nop 13159 if test -n "$STRIP"; then 13160 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13161 else 13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13163 for as_dir in $PATH 13164 do 13165 IFS=$as_save_IFS 13166 case $as_dir in #((( 13167 '') as_dir=./ ;; 13168 */) ;; 13169 *) as_dir=$as_dir/ ;; 13170 esac 13171 for ac_exec_ext in '' $ac_executable_extensions; do 13172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13173 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13175 break 2 13176 fi 13177 done 13178 done 13179 IFS=$as_save_IFS 13180 13181 fi 13182 fi 13183 STRIP=$ac_cv_prog_STRIP 13184 if test -n "$STRIP"; then 13185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13186 printf "%s\n" "$STRIP" >&6; } 13187 else 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13189 printf "%s\n" "no" >&6; } 13190 fi 13191 13192 13193 fi 13194 if test -z "$ac_cv_prog_STRIP"; then 13195 ac_ct_STRIP=$STRIP 13196 # Extract the first word of "strip", so it can be a program name with args. 13197 set dummy strip; ac_word=$2 13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13199 printf %s "checking for $ac_word... " >&6; } 13200 if test ${ac_cv_prog_ac_ct_STRIP+y} 13201 then : 13202 printf %s "(cached) " >&6 13203 else $as_nop 13204 if test -n "$ac_ct_STRIP"; then 13205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13206 else 13207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13208 for as_dir in $PATH 13209 do 13210 IFS=$as_save_IFS 13211 case $as_dir in #((( 13212 '') as_dir=./ ;; 13213 */) ;; 13214 *) as_dir=$as_dir/ ;; 13215 esac 13216 for ac_exec_ext in '' $ac_executable_extensions; do 13217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13218 ac_cv_prog_ac_ct_STRIP="strip" 13219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13220 break 2 13221 fi 13222 done 13223 done 13224 IFS=$as_save_IFS 13225 13226 fi 13227 fi 13228 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13229 if test -n "$ac_ct_STRIP"; then 13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13231 printf "%s\n" "$ac_ct_STRIP" >&6; } 13232 else 13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13234 printf "%s\n" "no" >&6; } 13235 fi 13236 13237 if test "x$ac_ct_STRIP" = x; then 13238 STRIP=":" 13239 else 13240 case $cross_compiling:$ac_tool_warned in 13241 yes:) 13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13244 ac_tool_warned=yes ;; 13245 esac 13246 STRIP=$ac_ct_STRIP 13247 fi 13248 else 13249 STRIP="$ac_cv_prog_STRIP" 13250 fi 13251 13252 test -z "$STRIP" && STRIP=: 13253 13254 13255 13256 13257 13258 13259 if test -n "$ac_tool_prefix"; then 13260 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13263 printf %s "checking for $ac_word... " >&6; } 13264 if test ${ac_cv_prog_RANLIB+y} 13265 then : 13266 printf %s "(cached) " >&6 13267 else $as_nop 13268 if test -n "$RANLIB"; then 13269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13270 else 13271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13272 for as_dir in $PATH 13273 do 13274 IFS=$as_save_IFS 13275 case $as_dir in #((( 13276 '') as_dir=./ ;; 13277 */) ;; 13278 *) as_dir=$as_dir/ ;; 13279 esac 13280 for ac_exec_ext in '' $ac_executable_extensions; do 13281 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13284 break 2 13285 fi 13286 done 13287 done 13288 IFS=$as_save_IFS 13289 13290 fi 13291 fi 13292 RANLIB=$ac_cv_prog_RANLIB 13293 if test -n "$RANLIB"; then 13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13295 printf "%s\n" "$RANLIB" >&6; } 13296 else 13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13298 printf "%s\n" "no" >&6; } 13299 fi 13300 13301 13302 fi 13303 if test -z "$ac_cv_prog_RANLIB"; then 13304 ac_ct_RANLIB=$RANLIB 13305 # Extract the first word of "ranlib", so it can be a program name with args. 13306 set dummy ranlib; ac_word=$2 13307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13308 printf %s "checking for $ac_word... " >&6; } 13309 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13310 then : 13311 printf %s "(cached) " >&6 13312 else $as_nop 13313 if test -n "$ac_ct_RANLIB"; then 13314 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13315 else 13316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13317 for as_dir in $PATH 13318 do 13319 IFS=$as_save_IFS 13320 case $as_dir in #((( 13321 '') as_dir=./ ;; 13322 */) ;; 13323 *) as_dir=$as_dir/ ;; 13324 esac 13325 for ac_exec_ext in '' $ac_executable_extensions; do 13326 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13327 ac_cv_prog_ac_ct_RANLIB="ranlib" 13328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13329 break 2 13330 fi 13331 done 13332 done 13333 IFS=$as_save_IFS 13334 13335 fi 13336 fi 13337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13338 if test -n "$ac_ct_RANLIB"; then 13339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13340 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13341 else 13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13343 printf "%s\n" "no" >&6; } 13344 fi 13345 13346 if test "x$ac_ct_RANLIB" = x; then 13347 RANLIB=":" 13348 else 13349 case $cross_compiling:$ac_tool_warned in 13350 yes:) 13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13352 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13353 ac_tool_warned=yes ;; 13354 esac 13355 RANLIB=$ac_ct_RANLIB 13356 fi 13357 else 13358 RANLIB="$ac_cv_prog_RANLIB" 13359 fi 13360 13361 test -z "$RANLIB" && RANLIB=: 13362 13363 13364 13365 13366 13367 13368 # Determine commands to create old-style static archives. 13369 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13370 old_postinstall_cmds='chmod 644 $oldlib' 13371 old_postuninstall_cmds= 13372 13373 if test -n "$RANLIB"; then 13374 case $host_os in 13375 bitrig* | openbsd*) 13376 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13377 ;; 13378 *) 13379 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13380 ;; 13381 esac 13382 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13383 fi 13384 13385 case $host_os in 13386 darwin*) 13387 lock_old_archive_extraction=yes ;; 13388 *) 13389 lock_old_archive_extraction=no ;; 13390 esac 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 # If no C compiler was specified, use CC. 13431 LTCC=${LTCC-"$CC"} 13432 13433 # If no C compiler flags were specified, use CFLAGS. 13434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13435 13436 # Allow CC to be a program name with arguments. 13437 compiler=$CC 13438 13439 13440 # Check for command to grab the raw symbol name followed by C symbol from nm. 13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13442 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13443 if test ${lt_cv_sys_global_symbol_pipe+y} 13444 then : 13445 printf %s "(cached) " >&6 13446 else $as_nop 13447 13448 # These are sane defaults that work on at least a few old systems. 13449 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13450 13451 # Character class describing NM global symbol codes. 13452 symcode='[BCDEGRST]' 13453 13454 # Regexp to match symbols that can be accessed directly from C. 13455 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13456 13457 # Define system-specific variables. 13458 case $host_os in 13459 aix*) 13460 symcode='[BCDT]' 13461 ;; 13462 cygwin* | mingw* | pw32* | cegcc*) 13463 symcode='[ABCDGISTW]' 13464 ;; 13465 hpux*) 13466 if test ia64 = "$host_cpu"; then 13467 symcode='[ABCDEGRST]' 13468 fi 13469 ;; 13470 irix* | nonstopux*) 13471 symcode='[BCDEGRST]' 13472 ;; 13473 osf*) 13474 symcode='[BCDEGQRST]' 13475 ;; 13476 solaris*) 13477 symcode='[BDRT]' 13478 ;; 13479 sco3.2v5*) 13480 symcode='[DT]' 13481 ;; 13482 sysv4.2uw2*) 13483 symcode='[DT]' 13484 ;; 13485 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13486 symcode='[ABDT]' 13487 ;; 13488 sysv4) 13489 symcode='[DFNSTU]' 13490 ;; 13491 esac 13492 13493 # If we're using GNU nm, then use its standard symbol codes. 13494 case `$NM -V 2>&1` in 13495 *GNU* | *'with BFD'*) 13496 symcode='[ABCDGIRSTW]' ;; 13497 esac 13498 13499 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13500 # Gets list of data symbols to import. 13501 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13502 # Adjust the below global symbol transforms to fixup imported variables. 13503 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13504 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13505 lt_c_name_lib_hook="\ 13506 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13507 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13508 else 13509 # Disable hooks by default. 13510 lt_cv_sys_global_symbol_to_import= 13511 lt_cdecl_hook= 13512 lt_c_name_hook= 13513 lt_c_name_lib_hook= 13514 fi 13515 13516 # Transform an extracted symbol line into a proper C declaration. 13517 # Some systems (esp. on ia64) link data and code symbols differently, 13518 # so use this general approach. 13519 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13520 $lt_cdecl_hook\ 13521 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13522 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13523 13524 # Transform an extracted symbol line into symbol name and symbol address 13525 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13526 $lt_c_name_hook\ 13527 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13528 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13529 13530 # Transform an extracted symbol line into symbol name with lib prefix and 13531 # symbol address. 13532 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13533 $lt_c_name_lib_hook\ 13534 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13535 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13536 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13537 13538 # Handle CRLF in mingw tool chain 13539 opt_cr= 13540 case $build_os in 13541 mingw*) 13542 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13543 ;; 13544 esac 13545 13546 # Try without a prefix underscore, then with it. 13547 for ac_symprfx in "" "_"; do 13548 13549 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13550 symxfrm="\\1 $ac_symprfx\\2 \\2" 13551 13552 # Write the raw and C identifiers. 13553 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13554 # Fake it for dumpbin and say T for any non-static function, 13555 # D for any global variable and I for any imported variable. 13556 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13557 # which start with @ or ?. 13558 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13559 " {last_section=section; section=\$ 3};"\ 13560 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13561 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13562 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13563 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13564 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13565 " \$ 0!~/External *\|/{next};"\ 13566 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13567 " {if(hide[section]) next};"\ 13568 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13569 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13570 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13571 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13572 " ' prfx=^$ac_symprfx" 13573 else 13574 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13575 fi 13576 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13577 13578 # Check to see that the pipe works correctly. 13579 pipe_works=no 13580 13581 rm -f conftest* 13582 cat > conftest.$ac_ext <<_LT_EOF 13583 #ifdef __cplusplus 13584 extern "C" { 13585 #endif 13586 char nm_test_var; 13587 void nm_test_func(void); 13588 void nm_test_func(void){} 13589 #ifdef __cplusplus 13590 } 13591 #endif 13592 int main(){nm_test_var='a';nm_test_func();return(0);} 13593 _LT_EOF 13594 13595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13596 (eval $ac_compile) 2>&5 13597 ac_status=$? 13598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13599 test $ac_status = 0; }; then 13600 # Now try to grab the symbols. 13601 nlist=conftest.nm 13602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13603 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13604 ac_status=$? 13605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13606 test $ac_status = 0; } && test -s "$nlist"; then 13607 # Try sorting and uniquifying the output. 13608 if sort "$nlist" | uniq > "$nlist"T; then 13609 mv -f "$nlist"T "$nlist" 13610 else 13611 rm -f "$nlist"T 13612 fi 13613 13614 # Make sure that we snagged all the symbols we need. 13615 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13616 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13617 cat <<_LT_EOF > conftest.$ac_ext 13618 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13619 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13620 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13621 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13622 # define LT_DLSYM_CONST 13623 #elif defined __osf__ 13624 /* This system does not cope well with relocations in const data. */ 13625 # define LT_DLSYM_CONST 13626 #else 13627 # define LT_DLSYM_CONST const 13628 #endif 13629 13630 #ifdef __cplusplus 13631 extern "C" { 13632 #endif 13633 13634 _LT_EOF 13635 # Now generate the symbol file. 13636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13637 13638 cat <<_LT_EOF >> conftest.$ac_ext 13639 13640 /* The mapping between symbol names and symbols. */ 13641 LT_DLSYM_CONST struct { 13642 const char *name; 13643 void *address; 13644 } 13645 lt__PROGRAM__LTX_preloaded_symbols[] = 13646 { 13647 { "@PROGRAM@", (void *) 0 }, 13648 _LT_EOF 13649 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13650 cat <<\_LT_EOF >> conftest.$ac_ext 13651 {0, (void *) 0} 13652 }; 13653 13654 /* This works around a problem in FreeBSD linker */ 13655 #ifdef FREEBSD_WORKAROUND 13656 static const void *lt_preloaded_setup() { 13657 return lt__PROGRAM__LTX_preloaded_symbols; 13658 } 13659 #endif 13660 13661 #ifdef __cplusplus 13662 } 13663 #endif 13664 _LT_EOF 13665 # Now try linking the two files. 13666 mv conftest.$ac_objext conftstm.$ac_objext 13667 lt_globsym_save_LIBS=$LIBS 13668 lt_globsym_save_CFLAGS=$CFLAGS 13669 LIBS=conftstm.$ac_objext 13670 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13672 (eval $ac_link) 2>&5 13673 ac_status=$? 13674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13675 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13676 pipe_works=yes 13677 fi 13678 LIBS=$lt_globsym_save_LIBS 13679 CFLAGS=$lt_globsym_save_CFLAGS 13680 else 13681 echo "cannot find nm_test_func in $nlist" >&5 13682 fi 13683 else 13684 echo "cannot find nm_test_var in $nlist" >&5 13685 fi 13686 else 13687 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13688 fi 13689 else 13690 echo "$progname: failed program was:" >&5 13691 cat conftest.$ac_ext >&5 13692 fi 13693 rm -rf conftest* conftst* 13694 13695 # Do not use the global_symbol_pipe unless it works. 13696 if test yes = "$pipe_works"; then 13697 break 13698 else 13699 lt_cv_sys_global_symbol_pipe= 13700 fi 13701 done 13702 13703 fi 13704 13705 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13706 lt_cv_sys_global_symbol_to_cdecl= 13707 fi 13708 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13710 printf "%s\n" "failed" >&6; } 13711 else 13712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13713 printf "%s\n" "ok" >&6; } 13714 fi 13715 13716 # Response file support. 13717 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13718 nm_file_list_spec='@' 13719 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13720 nm_file_list_spec='@' 13721 fi 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13760 printf %s "checking for sysroot... " >&6; } 13761 13762 # Check whether --with-sysroot was given. 13763 if test ${with_sysroot+y} 13764 then : 13765 withval=$with_sysroot; 13766 else $as_nop 13767 with_sysroot=no 13768 fi 13769 13770 13771 lt_sysroot= 13772 case $with_sysroot in #( 13773 yes) 13774 if test yes = "$GCC"; then 13775 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13776 fi 13777 ;; #( 13778 /*) 13779 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13780 ;; #( 13781 no|'') 13782 ;; #( 13783 *) 13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13785 printf "%s\n" "$with_sysroot" >&6; } 13786 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13787 ;; 13788 esac 13789 13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13791 printf "%s\n" "${lt_sysroot:-no}" >&6; } 13792 13793 13794 13795 13796 13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13798 printf %s "checking for a working dd... " >&6; } 13799 if test ${ac_cv_path_lt_DD+y} 13800 then : 13801 printf %s "(cached) " >&6 13802 else $as_nop 13803 printf 0123456789abcdef0123456789abcdef >conftest.i 13804 cat conftest.i conftest.i >conftest2.i 13805 : ${lt_DD:=$DD} 13806 if test -z "$lt_DD"; then 13807 ac_path_lt_DD_found=false 13808 # Loop through the user's path and test for each of PROGNAME-LIST 13809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13810 for as_dir in $PATH 13811 do 13812 IFS=$as_save_IFS 13813 case $as_dir in #((( 13814 '') as_dir=./ ;; 13815 */) ;; 13816 *) as_dir=$as_dir/ ;; 13817 esac 13818 for ac_prog in dd 13819 do 13820 for ac_exec_ext in '' $ac_executable_extensions; do 13821 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13822 as_fn_executable_p "$ac_path_lt_DD" || continue 13823 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13824 cmp -s conftest.i conftest.out \ 13825 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13826 fi 13827 $ac_path_lt_DD_found && break 3 13828 done 13829 done 13830 done 13831 IFS=$as_save_IFS 13832 if test -z "$ac_cv_path_lt_DD"; then 13833 : 13834 fi 13835 else 13836 ac_cv_path_lt_DD=$lt_DD 13837 fi 13838 13839 rm -f conftest.i conftest2.i conftest.out 13840 fi 13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13842 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13843 13844 13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13846 printf %s "checking how to truncate binary pipes... " >&6; } 13847 if test ${lt_cv_truncate_bin+y} 13848 then : 13849 printf %s "(cached) " >&6 13850 else $as_nop 13851 printf 0123456789abcdef0123456789abcdef >conftest.i 13852 cat conftest.i conftest.i >conftest2.i 13853 lt_cv_truncate_bin= 13854 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13855 cmp -s conftest.i conftest.out \ 13856 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13857 fi 13858 rm -f conftest.i conftest2.i conftest.out 13859 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13860 fi 13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13862 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13863 13864 13865 13866 13867 13868 13869 13870 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13871 func_cc_basename () 13872 { 13873 for cc_temp in $*""; do 13874 case $cc_temp in 13875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13877 \-*) ;; 13878 *) break;; 13879 esac 13880 done 13881 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13882 } 13883 13884 # Check whether --enable-libtool-lock was given. 13885 if test ${enable_libtool_lock+y} 13886 then : 13887 enableval=$enable_libtool_lock; 13888 fi 13889 13890 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13891 13892 # Some flags need to be propagated to the compiler or linker for good 13893 # libtool support. 13894 case $host in 13895 ia64-*-hpux*) 13896 # Find out what ABI is being produced by ac_compile, and set mode 13897 # options accordingly. 13898 echo 'int i;' > conftest.$ac_ext 13899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13900 (eval $ac_compile) 2>&5 13901 ac_status=$? 13902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13903 test $ac_status = 0; }; then 13904 case `$FILECMD conftest.$ac_objext` in 13905 *ELF-32*) 13906 HPUX_IA64_MODE=32 13907 ;; 13908 *ELF-64*) 13909 HPUX_IA64_MODE=64 13910 ;; 13911 esac 13912 fi 13913 rm -rf conftest* 13914 ;; 13915 *-*-irix6*) 13916 # Find out what ABI is being produced by ac_compile, and set linker 13917 # options accordingly. 13918 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13920 (eval $ac_compile) 2>&5 13921 ac_status=$? 13922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13923 test $ac_status = 0; }; then 13924 if test yes = "$lt_cv_prog_gnu_ld"; then 13925 case `$FILECMD conftest.$ac_objext` in 13926 *32-bit*) 13927 LD="${LD-ld} -melf32bsmip" 13928 ;; 13929 *N32*) 13930 LD="${LD-ld} -melf32bmipn32" 13931 ;; 13932 *64-bit*) 13933 LD="${LD-ld} -melf64bmip" 13934 ;; 13935 esac 13936 else 13937 case `$FILECMD conftest.$ac_objext` in 13938 *32-bit*) 13939 LD="${LD-ld} -32" 13940 ;; 13941 *N32*) 13942 LD="${LD-ld} -n32" 13943 ;; 13944 *64-bit*) 13945 LD="${LD-ld} -64" 13946 ;; 13947 esac 13948 fi 13949 fi 13950 rm -rf conftest* 13951 ;; 13952 13953 mips64*-*linux*) 13954 # Find out what ABI is being produced by ac_compile, and set linker 13955 # options accordingly. 13956 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13958 (eval $ac_compile) 2>&5 13959 ac_status=$? 13960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13961 test $ac_status = 0; }; then 13962 emul=elf 13963 case `$FILECMD conftest.$ac_objext` in 13964 *32-bit*) 13965 emul="${emul}32" 13966 ;; 13967 *64-bit*) 13968 emul="${emul}64" 13969 ;; 13970 esac 13971 case `$FILECMD conftest.$ac_objext` in 13972 *MSB*) 13973 emul="${emul}btsmip" 13974 ;; 13975 *LSB*) 13976 emul="${emul}ltsmip" 13977 ;; 13978 esac 13979 case `$FILECMD conftest.$ac_objext` in 13980 *N32*) 13981 emul="${emul}n32" 13982 ;; 13983 esac 13984 LD="${LD-ld} -m $emul" 13985 fi 13986 rm -rf conftest* 13987 ;; 13988 13989 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13990 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13991 # Find out what ABI is being produced by ac_compile, and set linker 13992 # options accordingly. Note that the listed cases only cover the 13993 # situations where additional linker options are needed (such as when 13994 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13995 # vice versa); the common cases where no linker options are needed do 13996 # not appear in the list. 13997 echo 'int i;' > conftest.$ac_ext 13998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13999 (eval $ac_compile) 2>&5 14000 ac_status=$? 14001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14002 test $ac_status = 0; }; then 14003 case `$FILECMD conftest.o` in 14004 *32-bit*) 14005 case $host in 14006 x86_64-*kfreebsd*-gnu) 14007 LD="${LD-ld} -m elf_i386_fbsd" 14008 ;; 14009 x86_64-*linux*) 14010 case `$FILECMD conftest.o` in 14011 *x86-64*) 14012 LD="${LD-ld} -m elf32_x86_64" 14013 ;; 14014 *) 14015 LD="${LD-ld} -m elf_i386" 14016 ;; 14017 esac 14018 ;; 14019 powerpc64le-*linux*) 14020 LD="${LD-ld} -m elf32lppclinux" 14021 ;; 14022 powerpc64-*linux*) 14023 LD="${LD-ld} -m elf32ppclinux" 14024 ;; 14025 s390x-*linux*) 14026 LD="${LD-ld} -m elf_s390" 14027 ;; 14028 sparc64-*linux*) 14029 LD="${LD-ld} -m elf32_sparc" 14030 ;; 14031 esac 14032 ;; 14033 *64-bit*) 14034 case $host in 14035 x86_64-*kfreebsd*-gnu) 14036 LD="${LD-ld} -m elf_x86_64_fbsd" 14037 ;; 14038 x86_64-*linux*) 14039 LD="${LD-ld} -m elf_x86_64" 14040 ;; 14041 powerpcle-*linux*) 14042 LD="${LD-ld} -m elf64lppc" 14043 ;; 14044 powerpc-*linux*) 14045 LD="${LD-ld} -m elf64ppc" 14046 ;; 14047 s390*-*linux*|s390*-*tpf*) 14048 LD="${LD-ld} -m elf64_s390" 14049 ;; 14050 sparc*-*linux*) 14051 LD="${LD-ld} -m elf64_sparc" 14052 ;; 14053 esac 14054 ;; 14055 esac 14056 fi 14057 rm -rf conftest* 14058 ;; 14059 14060 *-*-sco3.2v5*) 14061 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14062 SAVE_CFLAGS=$CFLAGS 14063 CFLAGS="$CFLAGS -belf" 14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14065 printf %s "checking whether the C compiler needs -belf... " >&6; } 14066 if test ${lt_cv_cc_needs_belf+y} 14067 then : 14068 printf %s "(cached) " >&6 14069 else $as_nop 14070 ac_ext=c 14071 ac_cpp='$CPP $CPPFLAGS' 14072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14074 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14075 14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14077 /* end confdefs.h. */ 14078 14079 int 14080 main (void) 14081 { 14082 14083 ; 14084 return 0; 14085 } 14086 _ACEOF 14087 if ac_fn_c_try_link "$LINENO" 14088 then : 14089 lt_cv_cc_needs_belf=yes 14090 else $as_nop 14091 lt_cv_cc_needs_belf=no 14092 fi 14093 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14094 conftest$ac_exeext conftest.$ac_ext 14095 ac_ext=c 14096 ac_cpp='$CPP $CPPFLAGS' 14097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14099 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14100 14101 fi 14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14103 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14104 if test yes != "$lt_cv_cc_needs_belf"; then 14105 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14106 CFLAGS=$SAVE_CFLAGS 14107 fi 14108 ;; 14109 *-*solaris*) 14110 # Find out what ABI is being produced by ac_compile, and set linker 14111 # options accordingly. 14112 echo 'int i;' > conftest.$ac_ext 14113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14114 (eval $ac_compile) 2>&5 14115 ac_status=$? 14116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14117 test $ac_status = 0; }; then 14118 case `$FILECMD conftest.o` in 14119 *64-bit*) 14120 case $lt_cv_prog_gnu_ld in 14121 yes*) 14122 case $host in 14123 i?86-*-solaris*|x86_64-*-solaris*) 14124 LD="${LD-ld} -m elf_x86_64" 14125 ;; 14126 sparc*-*-solaris*) 14127 LD="${LD-ld} -m elf64_sparc" 14128 ;; 14129 esac 14130 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14131 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14132 LD=${LD-ld}_sol2 14133 fi 14134 ;; 14135 *) 14136 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14137 LD="${LD-ld} -64" 14138 fi 14139 ;; 14140 esac 14141 ;; 14142 esac 14143 fi 14144 rm -rf conftest* 14145 ;; 14146 esac 14147 14148 need_locks=$enable_libtool_lock 14149 14150 if test -n "$ac_tool_prefix"; then 14151 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14152 set dummy ${ac_tool_prefix}mt; ac_word=$2 14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14154 printf %s "checking for $ac_word... " >&6; } 14155 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14156 then : 14157 printf %s "(cached) " >&6 14158 else $as_nop 14159 if test -n "$MANIFEST_TOOL"; then 14160 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14161 else 14162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14163 for as_dir in $PATH 14164 do 14165 IFS=$as_save_IFS 14166 case $as_dir in #((( 14167 '') as_dir=./ ;; 14168 */) ;; 14169 *) as_dir=$as_dir/ ;; 14170 esac 14171 for ac_exec_ext in '' $ac_executable_extensions; do 14172 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14173 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14174 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14175 break 2 14176 fi 14177 done 14178 done 14179 IFS=$as_save_IFS 14180 14181 fi 14182 fi 14183 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14184 if test -n "$MANIFEST_TOOL"; then 14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14186 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14187 else 14188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14189 printf "%s\n" "no" >&6; } 14190 fi 14191 14192 14193 fi 14194 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14195 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14196 # Extract the first word of "mt", so it can be a program name with args. 14197 set dummy mt; ac_word=$2 14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14199 printf %s "checking for $ac_word... " >&6; } 14200 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14201 then : 14202 printf %s "(cached) " >&6 14203 else $as_nop 14204 if test -n "$ac_ct_MANIFEST_TOOL"; then 14205 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14206 else 14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14208 for as_dir in $PATH 14209 do 14210 IFS=$as_save_IFS 14211 case $as_dir in #((( 14212 '') as_dir=./ ;; 14213 */) ;; 14214 *) as_dir=$as_dir/ ;; 14215 esac 14216 for ac_exec_ext in '' $ac_executable_extensions; do 14217 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14218 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14219 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14220 break 2 14221 fi 14222 done 14223 done 14224 IFS=$as_save_IFS 14225 14226 fi 14227 fi 14228 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14229 if test -n "$ac_ct_MANIFEST_TOOL"; then 14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14231 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14232 else 14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14234 printf "%s\n" "no" >&6; } 14235 fi 14236 14237 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14238 MANIFEST_TOOL=":" 14239 else 14240 case $cross_compiling:$ac_tool_warned in 14241 yes:) 14242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14244 ac_tool_warned=yes ;; 14245 esac 14246 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14247 fi 14248 else 14249 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14250 fi 14251 14252 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14254 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14255 if test ${lt_cv_path_mainfest_tool+y} 14256 then : 14257 printf %s "(cached) " >&6 14258 else $as_nop 14259 lt_cv_path_mainfest_tool=no 14260 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14261 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14262 cat conftest.err >&5 14263 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14264 lt_cv_path_mainfest_tool=yes 14265 fi 14266 rm -f conftest* 14267 fi 14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14269 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14270 if test yes != "$lt_cv_path_mainfest_tool"; then 14271 MANIFEST_TOOL=: 14272 fi 14273 14274 14275 14276 14277 14278 14279 case $host_os in 14280 rhapsody* | darwin*) 14281 if test -n "$ac_tool_prefix"; then 14282 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14283 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14285 printf %s "checking for $ac_word... " >&6; } 14286 if test ${ac_cv_prog_DSYMUTIL+y} 14287 then : 14288 printf %s "(cached) " >&6 14289 else $as_nop 14290 if test -n "$DSYMUTIL"; then 14291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14292 else 14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14294 for as_dir in $PATH 14295 do 14296 IFS=$as_save_IFS 14297 case $as_dir in #((( 14298 '') as_dir=./ ;; 14299 */) ;; 14300 *) as_dir=$as_dir/ ;; 14301 esac 14302 for ac_exec_ext in '' $ac_executable_extensions; do 14303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14306 break 2 14307 fi 14308 done 14309 done 14310 IFS=$as_save_IFS 14311 14312 fi 14313 fi 14314 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14315 if test -n "$DSYMUTIL"; then 14316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14317 printf "%s\n" "$DSYMUTIL" >&6; } 14318 else 14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14320 printf "%s\n" "no" >&6; } 14321 fi 14322 14323 14324 fi 14325 if test -z "$ac_cv_prog_DSYMUTIL"; then 14326 ac_ct_DSYMUTIL=$DSYMUTIL 14327 # Extract the first word of "dsymutil", so it can be a program name with args. 14328 set dummy dsymutil; ac_word=$2 14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14330 printf %s "checking for $ac_word... " >&6; } 14331 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14332 then : 14333 printf %s "(cached) " >&6 14334 else $as_nop 14335 if test -n "$ac_ct_DSYMUTIL"; then 14336 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14337 else 14338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14339 for as_dir in $PATH 14340 do 14341 IFS=$as_save_IFS 14342 case $as_dir in #((( 14343 '') as_dir=./ ;; 14344 */) ;; 14345 *) as_dir=$as_dir/ ;; 14346 esac 14347 for ac_exec_ext in '' $ac_executable_extensions; do 14348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14349 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14351 break 2 14352 fi 14353 done 14354 done 14355 IFS=$as_save_IFS 14356 14357 fi 14358 fi 14359 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14360 if test -n "$ac_ct_DSYMUTIL"; then 14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14362 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14363 else 14364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14365 printf "%s\n" "no" >&6; } 14366 fi 14367 14368 if test "x$ac_ct_DSYMUTIL" = x; then 14369 DSYMUTIL=":" 14370 else 14371 case $cross_compiling:$ac_tool_warned in 14372 yes:) 14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14374 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14375 ac_tool_warned=yes ;; 14376 esac 14377 DSYMUTIL=$ac_ct_DSYMUTIL 14378 fi 14379 else 14380 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14381 fi 14382 14383 if test -n "$ac_tool_prefix"; then 14384 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14385 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14387 printf %s "checking for $ac_word... " >&6; } 14388 if test ${ac_cv_prog_NMEDIT+y} 14389 then : 14390 printf %s "(cached) " >&6 14391 else $as_nop 14392 if test -n "$NMEDIT"; then 14393 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14394 else 14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14396 for as_dir in $PATH 14397 do 14398 IFS=$as_save_IFS 14399 case $as_dir in #((( 14400 '') as_dir=./ ;; 14401 */) ;; 14402 *) as_dir=$as_dir/ ;; 14403 esac 14404 for ac_exec_ext in '' $ac_executable_extensions; do 14405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14406 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14408 break 2 14409 fi 14410 done 14411 done 14412 IFS=$as_save_IFS 14413 14414 fi 14415 fi 14416 NMEDIT=$ac_cv_prog_NMEDIT 14417 if test -n "$NMEDIT"; then 14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14419 printf "%s\n" "$NMEDIT" >&6; } 14420 else 14421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14422 printf "%s\n" "no" >&6; } 14423 fi 14424 14425 14426 fi 14427 if test -z "$ac_cv_prog_NMEDIT"; then 14428 ac_ct_NMEDIT=$NMEDIT 14429 # Extract the first word of "nmedit", so it can be a program name with args. 14430 set dummy nmedit; ac_word=$2 14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14432 printf %s "checking for $ac_word... " >&6; } 14433 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14434 then : 14435 printf %s "(cached) " >&6 14436 else $as_nop 14437 if test -n "$ac_ct_NMEDIT"; then 14438 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14439 else 14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14441 for as_dir in $PATH 14442 do 14443 IFS=$as_save_IFS 14444 case $as_dir in #((( 14445 '') as_dir=./ ;; 14446 */) ;; 14447 *) as_dir=$as_dir/ ;; 14448 esac 14449 for ac_exec_ext in '' $ac_executable_extensions; do 14450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14451 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14453 break 2 14454 fi 14455 done 14456 done 14457 IFS=$as_save_IFS 14458 14459 fi 14460 fi 14461 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14462 if test -n "$ac_ct_NMEDIT"; then 14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14464 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14465 else 14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14467 printf "%s\n" "no" >&6; } 14468 fi 14469 14470 if test "x$ac_ct_NMEDIT" = x; then 14471 NMEDIT=":" 14472 else 14473 case $cross_compiling:$ac_tool_warned in 14474 yes:) 14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14477 ac_tool_warned=yes ;; 14478 esac 14479 NMEDIT=$ac_ct_NMEDIT 14480 fi 14481 else 14482 NMEDIT="$ac_cv_prog_NMEDIT" 14483 fi 14484 14485 if test -n "$ac_tool_prefix"; then 14486 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14487 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14489 printf %s "checking for $ac_word... " >&6; } 14490 if test ${ac_cv_prog_LIPO+y} 14491 then : 14492 printf %s "(cached) " >&6 14493 else $as_nop 14494 if test -n "$LIPO"; then 14495 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14496 else 14497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14498 for as_dir in $PATH 14499 do 14500 IFS=$as_save_IFS 14501 case $as_dir in #((( 14502 '') as_dir=./ ;; 14503 */) ;; 14504 *) as_dir=$as_dir/ ;; 14505 esac 14506 for ac_exec_ext in '' $ac_executable_extensions; do 14507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14508 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14510 break 2 14511 fi 14512 done 14513 done 14514 IFS=$as_save_IFS 14515 14516 fi 14517 fi 14518 LIPO=$ac_cv_prog_LIPO 14519 if test -n "$LIPO"; then 14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14521 printf "%s\n" "$LIPO" >&6; } 14522 else 14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14524 printf "%s\n" "no" >&6; } 14525 fi 14526 14527 14528 fi 14529 if test -z "$ac_cv_prog_LIPO"; then 14530 ac_ct_LIPO=$LIPO 14531 # Extract the first word of "lipo", so it can be a program name with args. 14532 set dummy lipo; ac_word=$2 14533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14534 printf %s "checking for $ac_word... " >&6; } 14535 if test ${ac_cv_prog_ac_ct_LIPO+y} 14536 then : 14537 printf %s "(cached) " >&6 14538 else $as_nop 14539 if test -n "$ac_ct_LIPO"; then 14540 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14541 else 14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14543 for as_dir in $PATH 14544 do 14545 IFS=$as_save_IFS 14546 case $as_dir in #((( 14547 '') as_dir=./ ;; 14548 */) ;; 14549 *) as_dir=$as_dir/ ;; 14550 esac 14551 for ac_exec_ext in '' $ac_executable_extensions; do 14552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14553 ac_cv_prog_ac_ct_LIPO="lipo" 14554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14555 break 2 14556 fi 14557 done 14558 done 14559 IFS=$as_save_IFS 14560 14561 fi 14562 fi 14563 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14564 if test -n "$ac_ct_LIPO"; then 14565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14566 printf "%s\n" "$ac_ct_LIPO" >&6; } 14567 else 14568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14569 printf "%s\n" "no" >&6; } 14570 fi 14571 14572 if test "x$ac_ct_LIPO" = x; then 14573 LIPO=":" 14574 else 14575 case $cross_compiling:$ac_tool_warned in 14576 yes:) 14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14578 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14579 ac_tool_warned=yes ;; 14580 esac 14581 LIPO=$ac_ct_LIPO 14582 fi 14583 else 14584 LIPO="$ac_cv_prog_LIPO" 14585 fi 14586 14587 if test -n "$ac_tool_prefix"; then 14588 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14589 set dummy ${ac_tool_prefix}otool; ac_word=$2 14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14591 printf %s "checking for $ac_word... " >&6; } 14592 if test ${ac_cv_prog_OTOOL+y} 14593 then : 14594 printf %s "(cached) " >&6 14595 else $as_nop 14596 if test -n "$OTOOL"; then 14597 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14598 else 14599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14600 for as_dir in $PATH 14601 do 14602 IFS=$as_save_IFS 14603 case $as_dir in #((( 14604 '') as_dir=./ ;; 14605 */) ;; 14606 *) as_dir=$as_dir/ ;; 14607 esac 14608 for ac_exec_ext in '' $ac_executable_extensions; do 14609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14610 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14612 break 2 14613 fi 14614 done 14615 done 14616 IFS=$as_save_IFS 14617 14618 fi 14619 fi 14620 OTOOL=$ac_cv_prog_OTOOL 14621 if test -n "$OTOOL"; then 14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14623 printf "%s\n" "$OTOOL" >&6; } 14624 else 14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14626 printf "%s\n" "no" >&6; } 14627 fi 14628 14629 14630 fi 14631 if test -z "$ac_cv_prog_OTOOL"; then 14632 ac_ct_OTOOL=$OTOOL 14633 # Extract the first word of "otool", so it can be a program name with args. 14634 set dummy otool; ac_word=$2 14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14636 printf %s "checking for $ac_word... " >&6; } 14637 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14638 then : 14639 printf %s "(cached) " >&6 14640 else $as_nop 14641 if test -n "$ac_ct_OTOOL"; then 14642 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14643 else 14644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14645 for as_dir in $PATH 14646 do 14647 IFS=$as_save_IFS 14648 case $as_dir in #((( 14649 '') as_dir=./ ;; 14650 */) ;; 14651 *) as_dir=$as_dir/ ;; 14652 esac 14653 for ac_exec_ext in '' $ac_executable_extensions; do 14654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14655 ac_cv_prog_ac_ct_OTOOL="otool" 14656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14657 break 2 14658 fi 14659 done 14660 done 14661 IFS=$as_save_IFS 14662 14663 fi 14664 fi 14665 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14666 if test -n "$ac_ct_OTOOL"; then 14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14668 printf "%s\n" "$ac_ct_OTOOL" >&6; } 14669 else 14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14671 printf "%s\n" "no" >&6; } 14672 fi 14673 14674 if test "x$ac_ct_OTOOL" = x; then 14675 OTOOL=":" 14676 else 14677 case $cross_compiling:$ac_tool_warned in 14678 yes:) 14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14680 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14681 ac_tool_warned=yes ;; 14682 esac 14683 OTOOL=$ac_ct_OTOOL 14684 fi 14685 else 14686 OTOOL="$ac_cv_prog_OTOOL" 14687 fi 14688 14689 if test -n "$ac_tool_prefix"; then 14690 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14691 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14693 printf %s "checking for $ac_word... " >&6; } 14694 if test ${ac_cv_prog_OTOOL64+y} 14695 then : 14696 printf %s "(cached) " >&6 14697 else $as_nop 14698 if test -n "$OTOOL64"; then 14699 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14700 else 14701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14702 for as_dir in $PATH 14703 do 14704 IFS=$as_save_IFS 14705 case $as_dir in #((( 14706 '') as_dir=./ ;; 14707 */) ;; 14708 *) as_dir=$as_dir/ ;; 14709 esac 14710 for ac_exec_ext in '' $ac_executable_extensions; do 14711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14714 break 2 14715 fi 14716 done 14717 done 14718 IFS=$as_save_IFS 14719 14720 fi 14721 fi 14722 OTOOL64=$ac_cv_prog_OTOOL64 14723 if test -n "$OTOOL64"; then 14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14725 printf "%s\n" "$OTOOL64" >&6; } 14726 else 14727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14728 printf "%s\n" "no" >&6; } 14729 fi 14730 14731 14732 fi 14733 if test -z "$ac_cv_prog_OTOOL64"; then 14734 ac_ct_OTOOL64=$OTOOL64 14735 # Extract the first word of "otool64", so it can be a program name with args. 14736 set dummy otool64; ac_word=$2 14737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14738 printf %s "checking for $ac_word... " >&6; } 14739 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14740 then : 14741 printf %s "(cached) " >&6 14742 else $as_nop 14743 if test -n "$ac_ct_OTOOL64"; then 14744 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14745 else 14746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14747 for as_dir in $PATH 14748 do 14749 IFS=$as_save_IFS 14750 case $as_dir in #((( 14751 '') as_dir=./ ;; 14752 */) ;; 14753 *) as_dir=$as_dir/ ;; 14754 esac 14755 for ac_exec_ext in '' $ac_executable_extensions; do 14756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14757 ac_cv_prog_ac_ct_OTOOL64="otool64" 14758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14759 break 2 14760 fi 14761 done 14762 done 14763 IFS=$as_save_IFS 14764 14765 fi 14766 fi 14767 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14768 if test -n "$ac_ct_OTOOL64"; then 14769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14770 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14771 else 14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14773 printf "%s\n" "no" >&6; } 14774 fi 14775 14776 if test "x$ac_ct_OTOOL64" = x; then 14777 OTOOL64=":" 14778 else 14779 case $cross_compiling:$ac_tool_warned in 14780 yes:) 14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14783 ac_tool_warned=yes ;; 14784 esac 14785 OTOOL64=$ac_ct_OTOOL64 14786 fi 14787 else 14788 OTOOL64="$ac_cv_prog_OTOOL64" 14789 fi 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14818 printf %s "checking for -single_module linker flag... " >&6; } 14819 if test ${lt_cv_apple_cc_single_mod+y} 14820 then : 14821 printf %s "(cached) " >&6 14822 else $as_nop 14823 lt_cv_apple_cc_single_mod=no 14824 if test -z "$LT_MULTI_MODULE"; then 14825 # By default we will add the -single_module flag. You can override 14826 # by either setting the environment variable LT_MULTI_MODULE 14827 # non-empty at configure time, or by adding -multi_module to the 14828 # link flags. 14829 rm -rf libconftest.dylib* 14830 echo "int foo(void){return 1;}" > conftest.c 14831 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14832 -dynamiclib -Wl,-single_module conftest.c" >&5 14833 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14834 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14835 _lt_result=$? 14836 # If there is a non-empty error log, and "single_module" 14837 # appears in it, assume the flag caused a linker warning 14838 if test -s conftest.err && $GREP single_module conftest.err; then 14839 cat conftest.err >&5 14840 # Otherwise, if the output was created with a 0 exit code from 14841 # the compiler, it worked. 14842 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14843 lt_cv_apple_cc_single_mod=yes 14844 else 14845 cat conftest.err >&5 14846 fi 14847 rm -rf libconftest.dylib* 14848 rm -f conftest.* 14849 fi 14850 fi 14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14852 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14853 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14855 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14856 if test ${lt_cv_ld_exported_symbols_list+y} 14857 then : 14858 printf %s "(cached) " >&6 14859 else $as_nop 14860 lt_cv_ld_exported_symbols_list=no 14861 save_LDFLAGS=$LDFLAGS 14862 echo "_main" > conftest.sym 14863 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14865 /* end confdefs.h. */ 14866 14867 int 14868 main (void) 14869 { 14870 14871 ; 14872 return 0; 14873 } 14874 _ACEOF 14875 if ac_fn_c_try_link "$LINENO" 14876 then : 14877 lt_cv_ld_exported_symbols_list=yes 14878 else $as_nop 14879 lt_cv_ld_exported_symbols_list=no 14880 fi 14881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14882 conftest$ac_exeext conftest.$ac_ext 14883 LDFLAGS=$save_LDFLAGS 14884 14885 fi 14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14887 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14888 14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14890 printf %s "checking for -force_load linker flag... " >&6; } 14891 if test ${lt_cv_ld_force_load+y} 14892 then : 14893 printf %s "(cached) " >&6 14894 else $as_nop 14895 lt_cv_ld_force_load=no 14896 cat > conftest.c << _LT_EOF 14897 int forced_loaded() { return 2;} 14898 _LT_EOF 14899 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14900 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14901 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14902 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14903 echo "$RANLIB libconftest.a" >&5 14904 $RANLIB libconftest.a 2>&5 14905 cat > conftest.c << _LT_EOF 14906 int main() { return 0;} 14907 _LT_EOF 14908 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14909 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14910 _lt_result=$? 14911 if test -s conftest.err && $GREP force_load conftest.err; then 14912 cat conftest.err >&5 14913 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14914 lt_cv_ld_force_load=yes 14915 else 14916 cat conftest.err >&5 14917 fi 14918 rm -f conftest.err libconftest.a conftest conftest.c 14919 rm -rf conftest.dSYM 14920 14921 fi 14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14923 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14924 case $host_os in 14925 rhapsody* | darwin1.[012]) 14926 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14927 darwin1.*) 14928 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14929 darwin*) 14930 case $MACOSX_DEPLOYMENT_TARGET,$host in 14931 10.[012],*|,*powerpc*-darwin[5-8]*) 14932 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14933 *) 14934 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14935 esac 14936 ;; 14937 esac 14938 if test yes = "$lt_cv_apple_cc_single_mod"; then 14939 _lt_dar_single_mod='$single_module' 14940 fi 14941 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14942 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14943 else 14944 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14945 fi 14946 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14947 _lt_dsymutil='~$DSYMUTIL $lib || :' 14948 else 14949 _lt_dsymutil= 14950 fi 14951 ;; 14952 esac 14953 14954 # func_munge_path_list VARIABLE PATH 14955 # ----------------------------------- 14956 # VARIABLE is name of variable containing _space_ separated list of 14957 # directories to be munged by the contents of PATH, which is string 14958 # having a format: 14959 # "DIR[:DIR]:" 14960 # string "DIR[ DIR]" will be prepended to VARIABLE 14961 # ":DIR[:DIR]" 14962 # string "DIR[ DIR]" will be appended to VARIABLE 14963 # "DIRP[:DIRP]::[DIRA:]DIRA" 14964 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14965 # "DIRA[ DIRA]" will be appended to VARIABLE 14966 # "DIR[:DIR]" 14967 # VARIABLE will be replaced by "DIR[ DIR]" 14968 func_munge_path_list () 14969 { 14970 case x$2 in 14971 x) 14972 ;; 14973 *:) 14974 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14975 ;; 14976 x:*) 14977 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14978 ;; 14979 *::*) 14980 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14981 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14982 ;; 14983 *) 14984 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14985 ;; 14986 esac 14987 } 14988 14989 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14990 " 14991 if test "x$ac_cv_header_dlfcn_h" = xyes 14992 then : 14993 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 14994 14995 fi 14996 14997 14998 14999 15000 15001 # Set options 15002 15003 15004 15005 enable_dlopen=no 15006 15007 15008 enable_win32_dll=no 15009 15010 15011 # Check whether --enable-shared was given. 15012 if test ${enable_shared+y} 15013 then : 15014 enableval=$enable_shared; p=${PACKAGE-default} 15015 case $enableval in 15016 yes) enable_shared=yes ;; 15017 no) enable_shared=no ;; 15018 *) 15019 enable_shared=no 15020 # Look at the argument we got. We use all the common list separators. 15021 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15022 for pkg in $enableval; do 15023 IFS=$lt_save_ifs 15024 if test "X$pkg" = "X$p"; then 15025 enable_shared=yes 15026 fi 15027 done 15028 IFS=$lt_save_ifs 15029 ;; 15030 esac 15031 else $as_nop 15032 enable_shared=yes 15033 fi 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 # Check whether --with-pic was given. 15046 if test ${with_pic+y} 15047 then : 15048 withval=$with_pic; lt_p=${PACKAGE-default} 15049 case $withval in 15050 yes|no) pic_mode=$withval ;; 15051 *) 15052 pic_mode=default 15053 # Look at the argument we got. We use all the common list separators. 15054 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15055 for lt_pkg in $withval; do 15056 IFS=$lt_save_ifs 15057 if test "X$lt_pkg" = "X$lt_p"; then 15058 pic_mode=yes 15059 fi 15060 done 15061 IFS=$lt_save_ifs 15062 ;; 15063 esac 15064 else $as_nop 15065 pic_mode=default 15066 fi 15067 15068 15069 15070 15071 15072 15073 15074 15075 # Check whether --enable-fast-install was given. 15076 if test ${enable_fast_install+y} 15077 then : 15078 enableval=$enable_fast_install; p=${PACKAGE-default} 15079 case $enableval in 15080 yes) enable_fast_install=yes ;; 15081 no) enable_fast_install=no ;; 15082 *) 15083 enable_fast_install=no 15084 # Look at the argument we got. We use all the common list separators. 15085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15086 for pkg in $enableval; do 15087 IFS=$lt_save_ifs 15088 if test "X$pkg" = "X$p"; then 15089 enable_fast_install=yes 15090 fi 15091 done 15092 IFS=$lt_save_ifs 15093 ;; 15094 esac 15095 else $as_nop 15096 enable_fast_install=yes 15097 fi 15098 15099 15100 15101 15102 15103 15104 15105 15106 shared_archive_member_spec= 15107 case $host,$enable_shared in 15108 power*-*-aix[5-9]*,yes) 15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15110 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15111 15112 # Check whether --with-aix-soname was given. 15113 if test ${with_aix_soname+y} 15114 then : 15115 withval=$with_aix_soname; case $withval in 15116 aix|svr4|both) 15117 ;; 15118 *) 15119 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15120 ;; 15121 esac 15122 lt_cv_with_aix_soname=$with_aix_soname 15123 else $as_nop 15124 if test ${lt_cv_with_aix_soname+y} 15125 then : 15126 printf %s "(cached) " >&6 15127 else $as_nop 15128 lt_cv_with_aix_soname=aix 15129 fi 15130 15131 with_aix_soname=$lt_cv_with_aix_soname 15132 fi 15133 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15135 printf "%s\n" "$with_aix_soname" >&6; } 15136 if test aix != "$with_aix_soname"; then 15137 # For the AIX way of multilib, we name the shared archive member 15138 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15139 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15140 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15141 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15142 if test 64 = "${OBJECT_MODE-32}"; then 15143 shared_archive_member_spec=shr_64 15144 else 15145 shared_archive_member_spec=shr 15146 fi 15147 fi 15148 ;; 15149 *) 15150 with_aix_soname=aix 15151 ;; 15152 esac 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 # This can be used to rebuild libtool when needed 15164 LIBTOOL_DEPS=$ltmain 15165 15166 # Always use our own libtool. 15167 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 test -z "$LN_S" && LN_S="ln -s" 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 if test -n "${ZSH_VERSION+set}"; then 15214 setopt NO_GLOB_SUBST 15215 fi 15216 15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15218 printf %s "checking for objdir... " >&6; } 15219 if test ${lt_cv_objdir+y} 15220 then : 15221 printf %s "(cached) " >&6 15222 else $as_nop 15223 rm -f .libs 2>/dev/null 15224 mkdir .libs 2>/dev/null 15225 if test -d .libs; then 15226 lt_cv_objdir=.libs 15227 else 15228 # MS-DOS does not allow filenames that begin with a dot. 15229 lt_cv_objdir=_libs 15230 fi 15231 rmdir .libs 2>/dev/null 15232 fi 15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15234 printf "%s\n" "$lt_cv_objdir" >&6; } 15235 objdir=$lt_cv_objdir 15236 15237 15238 15239 15240 15241 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15242 15243 15244 15245 15246 case $host_os in 15247 aix3*) 15248 # AIX sometimes has problems with the GCC collect2 program. For some 15249 # reason, if we set the COLLECT_NAMES environment variable, the problems 15250 # vanish in a puff of smoke. 15251 if test set != "${COLLECT_NAMES+set}"; then 15252 COLLECT_NAMES= 15253 export COLLECT_NAMES 15254 fi 15255 ;; 15256 esac 15257 15258 # Global variables: 15259 ofile=libtool 15260 can_build_shared=yes 15261 15262 # All known linkers require a '.a' archive for static linking (except MSVC and 15263 # ICC, which need '.lib'). 15264 libext=a 15265 15266 with_gnu_ld=$lt_cv_prog_gnu_ld 15267 15268 old_CC=$CC 15269 old_CFLAGS=$CFLAGS 15270 15271 # Set sane defaults for various variables 15272 test -z "$CC" && CC=cc 15273 test -z "$LTCC" && LTCC=$CC 15274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15275 test -z "$LD" && LD=ld 15276 test -z "$ac_objext" && ac_objext=o 15277 15278 func_cc_basename $compiler 15279 cc_basename=$func_cc_basename_result 15280 15281 15282 # Only perform the check for file, if the check method requires it 15283 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15284 case $deplibs_check_method in 15285 file_magic*) 15286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15288 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15289 if test ${lt_cv_path_MAGIC_CMD+y} 15290 then : 15291 printf %s "(cached) " >&6 15292 else $as_nop 15293 case $MAGIC_CMD in 15294 [\\/*] | ?:[\\/]*) 15295 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15296 ;; 15297 *) 15298 lt_save_MAGIC_CMD=$MAGIC_CMD 15299 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15301 for ac_dir in $ac_dummy; do 15302 IFS=$lt_save_ifs 15303 test -z "$ac_dir" && ac_dir=. 15304 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15305 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15306 if test -n "$file_magic_test_file"; then 15307 case $deplibs_check_method in 15308 "file_magic "*) 15309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15310 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15312 $EGREP "$file_magic_regex" > /dev/null; then 15313 : 15314 else 15315 cat <<_LT_EOF 1>&2 15316 15317 *** Warning: the command libtool uses to detect shared libraries, 15318 *** $file_magic_cmd, produces output that libtool cannot recognize. 15319 *** The result is that libtool may fail to recognize shared libraries 15320 *** as such. This will affect the creation of libtool libraries that 15321 *** depend on shared libraries, but programs linked with such libtool 15322 *** libraries will work regardless of this problem. Nevertheless, you 15323 *** may want to report the problem to your system manager and/or to 15324 *** bug-libtool@gnu.org 15325 15326 _LT_EOF 15327 fi ;; 15328 esac 15329 fi 15330 break 15331 fi 15332 done 15333 IFS=$lt_save_ifs 15334 MAGIC_CMD=$lt_save_MAGIC_CMD 15335 ;; 15336 esac 15337 fi 15338 15339 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15340 if test -n "$MAGIC_CMD"; then 15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15342 printf "%s\n" "$MAGIC_CMD" >&6; } 15343 else 15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15345 printf "%s\n" "no" >&6; } 15346 fi 15347 15348 15349 15350 15351 15352 if test -z "$lt_cv_path_MAGIC_CMD"; then 15353 if test -n "$ac_tool_prefix"; then 15354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15355 printf %s "checking for file... " >&6; } 15356 if test ${lt_cv_path_MAGIC_CMD+y} 15357 then : 15358 printf %s "(cached) " >&6 15359 else $as_nop 15360 case $MAGIC_CMD in 15361 [\\/*] | ?:[\\/]*) 15362 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15363 ;; 15364 *) 15365 lt_save_MAGIC_CMD=$MAGIC_CMD 15366 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15368 for ac_dir in $ac_dummy; do 15369 IFS=$lt_save_ifs 15370 test -z "$ac_dir" && ac_dir=. 15371 if test -f "$ac_dir/file"; then 15372 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15373 if test -n "$file_magic_test_file"; then 15374 case $deplibs_check_method in 15375 "file_magic "*) 15376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15377 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15379 $EGREP "$file_magic_regex" > /dev/null; then 15380 : 15381 else 15382 cat <<_LT_EOF 1>&2 15383 15384 *** Warning: the command libtool uses to detect shared libraries, 15385 *** $file_magic_cmd, produces output that libtool cannot recognize. 15386 *** The result is that libtool may fail to recognize shared libraries 15387 *** as such. This will affect the creation of libtool libraries that 15388 *** depend on shared libraries, but programs linked with such libtool 15389 *** libraries will work regardless of this problem. Nevertheless, you 15390 *** may want to report the problem to your system manager and/or to 15391 *** bug-libtool@gnu.org 15392 15393 _LT_EOF 15394 fi ;; 15395 esac 15396 fi 15397 break 15398 fi 15399 done 15400 IFS=$lt_save_ifs 15401 MAGIC_CMD=$lt_save_MAGIC_CMD 15402 ;; 15403 esac 15404 fi 15405 15406 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15407 if test -n "$MAGIC_CMD"; then 15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15409 printf "%s\n" "$MAGIC_CMD" >&6; } 15410 else 15411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15412 printf "%s\n" "no" >&6; } 15413 fi 15414 15415 15416 else 15417 MAGIC_CMD=: 15418 fi 15419 fi 15420 15421 fi 15422 ;; 15423 esac 15424 15425 # Use C for the default configuration in the libtool script 15426 15427 lt_save_CC=$CC 15428 ac_ext=c 15429 ac_cpp='$CPP $CPPFLAGS' 15430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15432 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15433 15434 15435 # Source file extension for C test sources. 15436 ac_ext=c 15437 15438 # Object file extension for compiled C test sources. 15439 objext=o 15440 objext=$objext 15441 15442 # Code to be used in simple compile tests 15443 lt_simple_compile_test_code="int some_variable = 0;" 15444 15445 # Code to be used in simple link tests 15446 lt_simple_link_test_code='int main(){return(0);}' 15447 15448 15449 15450 15451 15452 15453 15454 # If no C compiler was specified, use CC. 15455 LTCC=${LTCC-"$CC"} 15456 15457 # If no C compiler flags were specified, use CFLAGS. 15458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15459 15460 # Allow CC to be a program name with arguments. 15461 compiler=$CC 15462 15463 # Save the default compiler, since it gets overwritten when the other 15464 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15465 compiler_DEFAULT=$CC 15466 15467 # save warnings/boilerplate of simple test code 15468 ac_outfile=conftest.$ac_objext 15469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15471 _lt_compiler_boilerplate=`cat conftest.err` 15472 $RM conftest* 15473 15474 ac_outfile=conftest.$ac_objext 15475 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15477 _lt_linker_boilerplate=`cat conftest.err` 15478 $RM -r conftest* 15479 15480 15481 if test -n "$compiler"; then 15482 15483 lt_prog_compiler_no_builtin_flag= 15484 15485 if test yes = "$GCC"; then 15486 case $cc_basename in 15487 nvcc*) 15488 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15489 *) 15490 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15491 esac 15492 15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15494 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15495 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15496 then : 15497 printf %s "(cached) " >&6 15498 else $as_nop 15499 lt_cv_prog_compiler_rtti_exceptions=no 15500 ac_outfile=conftest.$ac_objext 15501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15502 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15503 # Insert the option either (1) after the last *FLAGS variable, or 15504 # (2) before a word containing "conftest.", or (3) at the end. 15505 # Note that $ac_compile itself does not contain backslashes and begins 15506 # with a dollar sign (not a hyphen), so the echo should work correctly. 15507 # The option is referenced via a variable to avoid confusing sed. 15508 lt_compile=`echo "$ac_compile" | $SED \ 15509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15511 -e 's:$: $lt_compiler_flag:'` 15512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15513 (eval "$lt_compile" 2>conftest.err) 15514 ac_status=$? 15515 cat conftest.err >&5 15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15517 if (exit $ac_status) && test -s "$ac_outfile"; then 15518 # The compiler can only warn and ignore the option if not recognized 15519 # So say no if there are warnings other than the usual output. 15520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15523 lt_cv_prog_compiler_rtti_exceptions=yes 15524 fi 15525 fi 15526 $RM conftest* 15527 15528 fi 15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15530 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15531 15532 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15533 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15534 else 15535 : 15536 fi 15537 15538 fi 15539 15540 15541 15542 15543 15544 15545 lt_prog_compiler_wl= 15546 lt_prog_compiler_pic= 15547 lt_prog_compiler_static= 15548 15549 15550 if test yes = "$GCC"; then 15551 lt_prog_compiler_wl='-Wl,' 15552 lt_prog_compiler_static='-static' 15553 15554 case $host_os in 15555 aix*) 15556 # All AIX code is PIC. 15557 if test ia64 = "$host_cpu"; then 15558 # AIX 5 now supports IA64 processor 15559 lt_prog_compiler_static='-Bstatic' 15560 fi 15561 lt_prog_compiler_pic='-fPIC' 15562 ;; 15563 15564 amigaos*) 15565 case $host_cpu in 15566 powerpc) 15567 # see comment about AmigaOS4 .so support 15568 lt_prog_compiler_pic='-fPIC' 15569 ;; 15570 m68k) 15571 # FIXME: we need at least 68020 code to build shared libraries, but 15572 # adding the '-m68020' flag to GCC prevents building anything better, 15573 # like '-m68040'. 15574 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15575 ;; 15576 esac 15577 ;; 15578 15579 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15580 # PIC is the default for these OSes. 15581 ;; 15582 15583 mingw* | cygwin* | pw32* | os2* | cegcc*) 15584 # This hack is so that the source file can tell whether it is being 15585 # built for inclusion in a dll (and should export symbols for example). 15586 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15587 # (--disable-auto-import) libraries 15588 lt_prog_compiler_pic='-DDLL_EXPORT' 15589 case $host_os in 15590 os2*) 15591 lt_prog_compiler_static='$wl-static' 15592 ;; 15593 esac 15594 ;; 15595 15596 darwin* | rhapsody*) 15597 # PIC is the default on this platform 15598 # Common symbols not allowed in MH_DYLIB files 15599 lt_prog_compiler_pic='-fno-common' 15600 ;; 15601 15602 haiku*) 15603 # PIC is the default for Haiku. 15604 # The "-static" flag exists, but is broken. 15605 lt_prog_compiler_static= 15606 ;; 15607 15608 hpux*) 15609 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15610 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15611 # sets the default TLS model and affects inlining. 15612 case $host_cpu in 15613 hppa*64*) 15614 # +Z the default 15615 ;; 15616 *) 15617 lt_prog_compiler_pic='-fPIC' 15618 ;; 15619 esac 15620 ;; 15621 15622 interix[3-9]*) 15623 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15624 # Instead, we relocate shared libraries at runtime. 15625 ;; 15626 15627 msdosdjgpp*) 15628 # Just because we use GCC doesn't mean we suddenly get shared libraries 15629 # on systems that don't support them. 15630 lt_prog_compiler_can_build_shared=no 15631 enable_shared=no 15632 ;; 15633 15634 *nto* | *qnx*) 15635 # QNX uses GNU C++, but need to define -shared option too, otherwise 15636 # it will coredump. 15637 lt_prog_compiler_pic='-fPIC -shared' 15638 ;; 15639 15640 sysv4*MP*) 15641 if test -d /usr/nec; then 15642 lt_prog_compiler_pic=-Kconform_pic 15643 fi 15644 ;; 15645 15646 *) 15647 lt_prog_compiler_pic='-fPIC' 15648 ;; 15649 esac 15650 15651 case $cc_basename in 15652 nvcc*) # Cuda Compiler Driver 2.2 15653 lt_prog_compiler_wl='-Xlinker ' 15654 if test -n "$lt_prog_compiler_pic"; then 15655 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15656 fi 15657 ;; 15658 esac 15659 else 15660 # PORTME Check for flag to pass linker flags through the system compiler. 15661 case $host_os in 15662 aix*) 15663 lt_prog_compiler_wl='-Wl,' 15664 if test ia64 = "$host_cpu"; then 15665 # AIX 5 now supports IA64 processor 15666 lt_prog_compiler_static='-Bstatic' 15667 else 15668 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15669 fi 15670 ;; 15671 15672 darwin* | rhapsody*) 15673 # PIC is the default on this platform 15674 # Common symbols not allowed in MH_DYLIB files 15675 lt_prog_compiler_pic='-fno-common' 15676 case $cc_basename in 15677 nagfor*) 15678 # NAG Fortran compiler 15679 lt_prog_compiler_wl='-Wl,-Wl,,' 15680 lt_prog_compiler_pic='-PIC' 15681 lt_prog_compiler_static='-Bstatic' 15682 ;; 15683 esac 15684 ;; 15685 15686 mingw* | cygwin* | pw32* | os2* | cegcc*) 15687 # This hack is so that the source file can tell whether it is being 15688 # built for inclusion in a dll (and should export symbols for example). 15689 lt_prog_compiler_pic='-DDLL_EXPORT' 15690 case $host_os in 15691 os2*) 15692 lt_prog_compiler_static='$wl-static' 15693 ;; 15694 esac 15695 ;; 15696 15697 hpux9* | hpux10* | hpux11*) 15698 lt_prog_compiler_wl='-Wl,' 15699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15700 # not for PA HP-UX. 15701 case $host_cpu in 15702 hppa*64*|ia64*) 15703 # +Z the default 15704 ;; 15705 *) 15706 lt_prog_compiler_pic='+Z' 15707 ;; 15708 esac 15709 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15710 lt_prog_compiler_static='$wl-a ${wl}archive' 15711 ;; 15712 15713 irix5* | irix6* | nonstopux*) 15714 lt_prog_compiler_wl='-Wl,' 15715 # PIC (with -KPIC) is the default. 15716 lt_prog_compiler_static='-non_shared' 15717 ;; 15718 15719 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15720 case $cc_basename in 15721 # old Intel for x86_64, which still supported -KPIC. 15722 ecc*) 15723 lt_prog_compiler_wl='-Wl,' 15724 lt_prog_compiler_pic='-KPIC' 15725 lt_prog_compiler_static='-static' 15726 ;; 15727 # icc used to be incompatible with GCC. 15728 # ICC 10 doesn't accept -KPIC any more. 15729 icc* | ifort*) 15730 lt_prog_compiler_wl='-Wl,' 15731 lt_prog_compiler_pic='-fPIC' 15732 lt_prog_compiler_static='-static' 15733 ;; 15734 # Lahey Fortran 8.1. 15735 lf95*) 15736 lt_prog_compiler_wl='-Wl,' 15737 lt_prog_compiler_pic='--shared' 15738 lt_prog_compiler_static='--static' 15739 ;; 15740 nagfor*) 15741 # NAG Fortran compiler 15742 lt_prog_compiler_wl='-Wl,-Wl,,' 15743 lt_prog_compiler_pic='-PIC' 15744 lt_prog_compiler_static='-Bstatic' 15745 ;; 15746 tcc*) 15747 # Fabrice Bellard et al's Tiny C Compiler 15748 lt_prog_compiler_wl='-Wl,' 15749 lt_prog_compiler_pic='-fPIC' 15750 lt_prog_compiler_static='-static' 15751 ;; 15752 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15753 # Portland Group compilers (*not* the Pentium gcc compiler, 15754 # which looks to be a dead project) 15755 lt_prog_compiler_wl='-Wl,' 15756 lt_prog_compiler_pic='-fpic' 15757 lt_prog_compiler_static='-Bstatic' 15758 ;; 15759 ccc*) 15760 lt_prog_compiler_wl='-Wl,' 15761 # All Alpha code is PIC. 15762 lt_prog_compiler_static='-non_shared' 15763 ;; 15764 xl* | bgxl* | bgf* | mpixl*) 15765 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15766 lt_prog_compiler_wl='-Wl,' 15767 lt_prog_compiler_pic='-qpic' 15768 lt_prog_compiler_static='-qstaticlink' 15769 ;; 15770 *) 15771 case `$CC -V 2>&1 | $SED 5q` in 15772 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15773 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15774 lt_prog_compiler_pic='-KPIC' 15775 lt_prog_compiler_static='-Bstatic' 15776 lt_prog_compiler_wl='' 15777 ;; 15778 *Sun\ F* | *Sun*Fortran*) 15779 lt_prog_compiler_pic='-KPIC' 15780 lt_prog_compiler_static='-Bstatic' 15781 lt_prog_compiler_wl='-Qoption ld ' 15782 ;; 15783 *Sun\ C*) 15784 # Sun C 5.9 15785 lt_prog_compiler_pic='-KPIC' 15786 lt_prog_compiler_static='-Bstatic' 15787 lt_prog_compiler_wl='-Wl,' 15788 ;; 15789 *Intel*\ [CF]*Compiler*) 15790 lt_prog_compiler_wl='-Wl,' 15791 lt_prog_compiler_pic='-fPIC' 15792 lt_prog_compiler_static='-static' 15793 ;; 15794 *Portland\ Group*) 15795 lt_prog_compiler_wl='-Wl,' 15796 lt_prog_compiler_pic='-fpic' 15797 lt_prog_compiler_static='-Bstatic' 15798 ;; 15799 esac 15800 ;; 15801 esac 15802 ;; 15803 15804 newsos6) 15805 lt_prog_compiler_pic='-KPIC' 15806 lt_prog_compiler_static='-Bstatic' 15807 ;; 15808 15809 *nto* | *qnx*) 15810 # QNX uses GNU C++, but need to define -shared option too, otherwise 15811 # it will coredump. 15812 lt_prog_compiler_pic='-fPIC -shared' 15813 ;; 15814 15815 osf3* | osf4* | osf5*) 15816 lt_prog_compiler_wl='-Wl,' 15817 # All OSF/1 code is PIC. 15818 lt_prog_compiler_static='-non_shared' 15819 ;; 15820 15821 rdos*) 15822 lt_prog_compiler_static='-non_shared' 15823 ;; 15824 15825 solaris*) 15826 lt_prog_compiler_pic='-KPIC' 15827 lt_prog_compiler_static='-Bstatic' 15828 case $cc_basename in 15829 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15830 lt_prog_compiler_wl='-Qoption ld ';; 15831 *) 15832 lt_prog_compiler_wl='-Wl,';; 15833 esac 15834 ;; 15835 15836 sunos4*) 15837 lt_prog_compiler_wl='-Qoption ld ' 15838 lt_prog_compiler_pic='-PIC' 15839 lt_prog_compiler_static='-Bstatic' 15840 ;; 15841 15842 sysv4 | sysv4.2uw2* | sysv4.3*) 15843 lt_prog_compiler_wl='-Wl,' 15844 lt_prog_compiler_pic='-KPIC' 15845 lt_prog_compiler_static='-Bstatic' 15846 ;; 15847 15848 sysv4*MP*) 15849 if test -d /usr/nec; then 15850 lt_prog_compiler_pic='-Kconform_pic' 15851 lt_prog_compiler_static='-Bstatic' 15852 fi 15853 ;; 15854 15855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15856 lt_prog_compiler_wl='-Wl,' 15857 lt_prog_compiler_pic='-KPIC' 15858 lt_prog_compiler_static='-Bstatic' 15859 ;; 15860 15861 unicos*) 15862 lt_prog_compiler_wl='-Wl,' 15863 lt_prog_compiler_can_build_shared=no 15864 ;; 15865 15866 uts4*) 15867 lt_prog_compiler_pic='-pic' 15868 lt_prog_compiler_static='-Bstatic' 15869 ;; 15870 15871 *) 15872 lt_prog_compiler_can_build_shared=no 15873 ;; 15874 esac 15875 fi 15876 15877 case $host_os in 15878 # For platforms that do not support PIC, -DPIC is meaningless: 15879 *djgpp*) 15880 lt_prog_compiler_pic= 15881 ;; 15882 *) 15883 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15884 ;; 15885 esac 15886 15887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15888 printf %s "checking for $compiler option to produce PIC... " >&6; } 15889 if test ${lt_cv_prog_compiler_pic+y} 15890 then : 15891 printf %s "(cached) " >&6 15892 else $as_nop 15893 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15894 fi 15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15896 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15897 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15898 15899 # 15900 # Check to make sure the PIC flag actually works. 15901 # 15902 if test -n "$lt_prog_compiler_pic"; then 15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15904 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15905 if test ${lt_cv_prog_compiler_pic_works+y} 15906 then : 15907 printf %s "(cached) " >&6 15908 else $as_nop 15909 lt_cv_prog_compiler_pic_works=no 15910 ac_outfile=conftest.$ac_objext 15911 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15912 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15913 # Insert the option either (1) after the last *FLAGS variable, or 15914 # (2) before a word containing "conftest.", or (3) at the end. 15915 # Note that $ac_compile itself does not contain backslashes and begins 15916 # with a dollar sign (not a hyphen), so the echo should work correctly. 15917 # The option is referenced via a variable to avoid confusing sed. 15918 lt_compile=`echo "$ac_compile" | $SED \ 15919 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15920 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15921 -e 's:$: $lt_compiler_flag:'` 15922 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15923 (eval "$lt_compile" 2>conftest.err) 15924 ac_status=$? 15925 cat conftest.err >&5 15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15927 if (exit $ac_status) && test -s "$ac_outfile"; then 15928 # The compiler can only warn and ignore the option if not recognized 15929 # So say no if there are warnings other than the usual output. 15930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15931 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15932 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15933 lt_cv_prog_compiler_pic_works=yes 15934 fi 15935 fi 15936 $RM conftest* 15937 15938 fi 15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15940 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15941 15942 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15943 case $lt_prog_compiler_pic in 15944 "" | " "*) ;; 15945 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15946 esac 15947 else 15948 lt_prog_compiler_pic= 15949 lt_prog_compiler_can_build_shared=no 15950 fi 15951 15952 fi 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 # 15965 # Check to make sure the static flag actually works. 15966 # 15967 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15969 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15970 if test ${lt_cv_prog_compiler_static_works+y} 15971 then : 15972 printf %s "(cached) " >&6 15973 else $as_nop 15974 lt_cv_prog_compiler_static_works=no 15975 save_LDFLAGS=$LDFLAGS 15976 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15977 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15978 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15979 # The linker can only warn and ignore the option if not recognized 15980 # So say no if there are warnings 15981 if test -s conftest.err; then 15982 # Append any errors to the config.log. 15983 cat conftest.err 1>&5 15984 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15985 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15986 if diff conftest.exp conftest.er2 >/dev/null; then 15987 lt_cv_prog_compiler_static_works=yes 15988 fi 15989 else 15990 lt_cv_prog_compiler_static_works=yes 15991 fi 15992 fi 15993 $RM -r conftest* 15994 LDFLAGS=$save_LDFLAGS 15995 15996 fi 15997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15998 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 15999 16000 if test yes = "$lt_cv_prog_compiler_static_works"; then 16001 : 16002 else 16003 lt_prog_compiler_static= 16004 fi 16005 16006 16007 16008 16009 16010 16011 16012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16013 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16014 if test ${lt_cv_prog_compiler_c_o+y} 16015 then : 16016 printf %s "(cached) " >&6 16017 else $as_nop 16018 lt_cv_prog_compiler_c_o=no 16019 $RM -r conftest 2>/dev/null 16020 mkdir conftest 16021 cd conftest 16022 mkdir out 16023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16024 16025 lt_compiler_flag="-o out/conftest2.$ac_objext" 16026 # Insert the option either (1) after the last *FLAGS variable, or 16027 # (2) before a word containing "conftest.", or (3) at the end. 16028 # Note that $ac_compile itself does not contain backslashes and begins 16029 # with a dollar sign (not a hyphen), so the echo should work correctly. 16030 lt_compile=`echo "$ac_compile" | $SED \ 16031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16033 -e 's:$: $lt_compiler_flag:'` 16034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16035 (eval "$lt_compile" 2>out/conftest.err) 16036 ac_status=$? 16037 cat out/conftest.err >&5 16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16039 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16040 then 16041 # The compiler can only warn and ignore the option if not recognized 16042 # So say no if there are warnings 16043 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16046 lt_cv_prog_compiler_c_o=yes 16047 fi 16048 fi 16049 chmod u+w . 2>&5 16050 $RM conftest* 16051 # SGI C++ compiler will create directory out/ii_files/ for 16052 # template instantiation 16053 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16054 $RM out/* && rmdir out 16055 cd .. 16056 $RM -r conftest 16057 $RM conftest* 16058 16059 fi 16060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16061 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16062 16063 16064 16065 16066 16067 16068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16069 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16070 if test ${lt_cv_prog_compiler_c_o+y} 16071 then : 16072 printf %s "(cached) " >&6 16073 else $as_nop 16074 lt_cv_prog_compiler_c_o=no 16075 $RM -r conftest 2>/dev/null 16076 mkdir conftest 16077 cd conftest 16078 mkdir out 16079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16080 16081 lt_compiler_flag="-o out/conftest2.$ac_objext" 16082 # Insert the option either (1) after the last *FLAGS variable, or 16083 # (2) before a word containing "conftest.", or (3) at the end. 16084 # Note that $ac_compile itself does not contain backslashes and begins 16085 # with a dollar sign (not a hyphen), so the echo should work correctly. 16086 lt_compile=`echo "$ac_compile" | $SED \ 16087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16089 -e 's:$: $lt_compiler_flag:'` 16090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16091 (eval "$lt_compile" 2>out/conftest.err) 16092 ac_status=$? 16093 cat out/conftest.err >&5 16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16095 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16096 then 16097 # The compiler can only warn and ignore the option if not recognized 16098 # So say no if there are warnings 16099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16102 lt_cv_prog_compiler_c_o=yes 16103 fi 16104 fi 16105 chmod u+w . 2>&5 16106 $RM conftest* 16107 # SGI C++ compiler will create directory out/ii_files/ for 16108 # template instantiation 16109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16110 $RM out/* && rmdir out 16111 cd .. 16112 $RM -r conftest 16113 $RM conftest* 16114 16115 fi 16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16117 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16118 16119 16120 16121 16122 hard_links=nottested 16123 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16124 # do not overwrite the value of need_locks provided by the user 16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16126 printf %s "checking if we can lock with hard links... " >&6; } 16127 hard_links=yes 16128 $RM conftest* 16129 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16130 touch conftest.a 16131 ln conftest.a conftest.b 2>&5 || hard_links=no 16132 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16134 printf "%s\n" "$hard_links" >&6; } 16135 if test no = "$hard_links"; then 16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16137 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16138 need_locks=warn 16139 fi 16140 else 16141 need_locks=no 16142 fi 16143 16144 16145 16146 16147 16148 16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16150 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16151 16152 runpath_var= 16153 allow_undefined_flag= 16154 always_export_symbols=no 16155 archive_cmds= 16156 archive_expsym_cmds= 16157 compiler_needs_object=no 16158 enable_shared_with_static_runtimes=no 16159 export_dynamic_flag_spec= 16160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16161 hardcode_automatic=no 16162 hardcode_direct=no 16163 hardcode_direct_absolute=no 16164 hardcode_libdir_flag_spec= 16165 hardcode_libdir_separator= 16166 hardcode_minus_L=no 16167 hardcode_shlibpath_var=unsupported 16168 inherit_rpath=no 16169 link_all_deplibs=unknown 16170 module_cmds= 16171 module_expsym_cmds= 16172 old_archive_from_new_cmds= 16173 old_archive_from_expsyms_cmds= 16174 thread_safe_flag_spec= 16175 whole_archive_flag_spec= 16176 # include_expsyms should be a list of space-separated symbols to be *always* 16177 # included in the symbol list 16178 include_expsyms= 16179 # exclude_expsyms can be an extended regexp of symbols to exclude 16180 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16181 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16182 # as well as any symbol that contains 'd'. 16183 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16185 # platforms (ab)use it in PIC code, but their linkers get confused if 16186 # the symbol is explicitly referenced. Since portable code cannot 16187 # rely on this symbol name, it's probably fine to never include it in 16188 # preloaded symbol tables. 16189 # Exclude shared library initialization/finalization symbols. 16190 extract_expsyms_cmds= 16191 16192 case $host_os in 16193 cygwin* | mingw* | pw32* | cegcc*) 16194 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16195 # When not using gcc, we currently assume that we are using 16196 # Microsoft Visual C++ or Intel C++ Compiler. 16197 if test yes != "$GCC"; then 16198 with_gnu_ld=no 16199 fi 16200 ;; 16201 interix*) 16202 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16203 with_gnu_ld=yes 16204 ;; 16205 openbsd* | bitrig*) 16206 with_gnu_ld=no 16207 ;; 16208 esac 16209 16210 ld_shlibs=yes 16211 16212 # On some targets, GNU ld is compatible enough with the native linker 16213 # that we're better off using the native interface for both. 16214 lt_use_gnu_ld_interface=no 16215 if test yes = "$with_gnu_ld"; then 16216 case $host_os in 16217 aix*) 16218 # The AIX port of GNU ld has always aspired to compatibility 16219 # with the native linker. However, as the warning in the GNU ld 16220 # block says, versions before 2.19.5* couldn't really create working 16221 # shared libraries, regardless of the interface used. 16222 case `$LD -v 2>&1` in 16223 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16224 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16225 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16226 *) 16227 lt_use_gnu_ld_interface=yes 16228 ;; 16229 esac 16230 ;; 16231 *) 16232 lt_use_gnu_ld_interface=yes 16233 ;; 16234 esac 16235 fi 16236 16237 if test yes = "$lt_use_gnu_ld_interface"; then 16238 # If archive_cmds runs LD, not CC, wlarc should be empty 16239 wlarc='$wl' 16240 16241 # Set some defaults for GNU ld with shared library support. These 16242 # are reset later if shared libraries are not supported. Putting them 16243 # here allows them to be overridden if necessary. 16244 runpath_var=LD_RUN_PATH 16245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16246 export_dynamic_flag_spec='$wl--export-dynamic' 16247 # ancient GNU ld didn't support --whole-archive et. al. 16248 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16249 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16250 else 16251 whole_archive_flag_spec= 16252 fi 16253 supports_anon_versioning=no 16254 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16255 *GNU\ gold*) supports_anon_versioning=yes ;; 16256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16259 *\ 2.11.*) ;; # other 2.11 versions 16260 *) supports_anon_versioning=yes ;; 16261 esac 16262 16263 # See if GNU ld supports shared libraries. 16264 case $host_os in 16265 aix[3-9]*) 16266 # On AIX/PPC, the GNU linker is very broken 16267 if test ia64 != "$host_cpu"; then 16268 ld_shlibs=no 16269 cat <<_LT_EOF 1>&2 16270 16271 *** Warning: the GNU linker, at least up to release 2.19, is reported 16272 *** to be unable to reliably create shared libraries on AIX. 16273 *** Therefore, libtool is disabling shared libraries support. If you 16274 *** really care for shared libraries, you may want to install binutils 16275 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16276 *** You will then need to restart the configuration process. 16277 16278 _LT_EOF 16279 fi 16280 ;; 16281 16282 amigaos*) 16283 case $host_cpu in 16284 powerpc) 16285 # see comment about AmigaOS4 .so support 16286 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16287 archive_expsym_cmds='' 16288 ;; 16289 m68k) 16290 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)' 16291 hardcode_libdir_flag_spec='-L$libdir' 16292 hardcode_minus_L=yes 16293 ;; 16294 esac 16295 ;; 16296 16297 beos*) 16298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16299 allow_undefined_flag=unsupported 16300 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16301 # support --undefined. This deserves some investigation. FIXME 16302 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16303 else 16304 ld_shlibs=no 16305 fi 16306 ;; 16307 16308 cygwin* | mingw* | pw32* | cegcc*) 16309 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16310 # as there is no search path for DLLs. 16311 hardcode_libdir_flag_spec='-L$libdir' 16312 export_dynamic_flag_spec='$wl--export-all-symbols' 16313 allow_undefined_flag=unsupported 16314 always_export_symbols=no 16315 enable_shared_with_static_runtimes=yes 16316 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' 16317 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16318 16319 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16321 # If the export-symbols file already is a .def file, use it as 16322 # is; otherwise, prepend EXPORTS... 16323 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16324 cp $export_symbols $output_objdir/$soname.def; 16325 else 16326 echo EXPORTS > $output_objdir/$soname.def; 16327 cat $export_symbols >> $output_objdir/$soname.def; 16328 fi~ 16329 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16330 else 16331 ld_shlibs=no 16332 fi 16333 ;; 16334 16335 haiku*) 16336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16337 link_all_deplibs=yes 16338 ;; 16339 16340 os2*) 16341 hardcode_libdir_flag_spec='-L$libdir' 16342 hardcode_minus_L=yes 16343 allow_undefined_flag=unsupported 16344 shrext_cmds=.dll 16345 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16346 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16347 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16348 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16349 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16350 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16351 emximp -o $lib $output_objdir/$libname.def' 16352 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16353 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16354 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16355 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16356 prefix_cmds="$SED"~ 16357 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16358 prefix_cmds="$prefix_cmds -e 1d"; 16359 fi~ 16360 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16361 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16362 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16363 emximp -o $lib $output_objdir/$libname.def' 16364 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16365 enable_shared_with_static_runtimes=yes 16366 file_list_spec='@' 16367 ;; 16368 16369 interix[3-9]*) 16370 hardcode_direct=no 16371 hardcode_shlibpath_var=no 16372 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16373 export_dynamic_flag_spec='$wl-E' 16374 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16375 # Instead, shared libraries are loaded at an image base (0x10000000 by 16376 # default) and relocated if they conflict, which is a slow very memory 16377 # consuming and fragmenting process. To avoid this, we pick a random, 16378 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16379 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16380 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16381 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' 16382 ;; 16383 16384 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16385 tmp_diet=no 16386 if test linux-dietlibc = "$host_os"; then 16387 case $cc_basename in 16388 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16389 esac 16390 fi 16391 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16392 && test no = "$tmp_diet" 16393 then 16394 tmp_addflag=' $pic_flag' 16395 tmp_sharedflag='-shared' 16396 case $cc_basename,$host_cpu in 16397 pgcc*) # Portland Group C compiler 16398 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' 16399 tmp_addflag=' $pic_flag' 16400 ;; 16401 pgf77* | pgf90* | pgf95* | pgfortran*) 16402 # Portland Group f77 and f90 compilers 16403 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' 16404 tmp_addflag=' $pic_flag -Mnomain' ;; 16405 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16406 tmp_addflag=' -i_dynamic' ;; 16407 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16408 tmp_addflag=' -i_dynamic -nofor_main' ;; 16409 ifc* | ifort*) # Intel Fortran compiler 16410 tmp_addflag=' -nofor_main' ;; 16411 lf95*) # Lahey Fortran 8.1 16412 whole_archive_flag_spec= 16413 tmp_sharedflag='--shared' ;; 16414 nagfor*) # NAGFOR 5.3 16415 tmp_sharedflag='-Wl,-shared' ;; 16416 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16417 tmp_sharedflag='-qmkshrobj' 16418 tmp_addflag= ;; 16419 nvcc*) # Cuda Compiler Driver 2.2 16420 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' 16421 compiler_needs_object=yes 16422 ;; 16423 esac 16424 case `$CC -V 2>&1 | $SED 5q` in 16425 *Sun\ C*) # Sun C 5.9 16426 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' 16427 compiler_needs_object=yes 16428 tmp_sharedflag='-G' ;; 16429 *Sun\ F*) # Sun Fortran 8.3 16430 tmp_sharedflag='-G' ;; 16431 esac 16432 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16433 16434 if test yes = "$supports_anon_versioning"; then 16435 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16436 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16437 echo "local: *; };" >> $output_objdir/$libname.ver~ 16438 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16439 fi 16440 16441 case $cc_basename in 16442 tcc*) 16443 export_dynamic_flag_spec='-rdynamic' 16444 ;; 16445 xlf* | bgf* | bgxlf* | mpixlf*) 16446 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16447 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16448 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16449 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16450 if test yes = "$supports_anon_versioning"; then 16451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16452 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16453 echo "local: *; };" >> $output_objdir/$libname.ver~ 16454 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16455 fi 16456 ;; 16457 esac 16458 else 16459 ld_shlibs=no 16460 fi 16461 ;; 16462 16463 netbsd*) 16464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16466 wlarc= 16467 else 16468 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16469 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16470 fi 16471 ;; 16472 16473 solaris*) 16474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16475 ld_shlibs=no 16476 cat <<_LT_EOF 1>&2 16477 16478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16479 *** create shared libraries on Solaris systems. Therefore, libtool 16480 *** is disabling shared libraries support. We urge you to upgrade GNU 16481 *** binutils to release 2.9.1 or newer. Another option is to modify 16482 *** your PATH or compiler configuration so that the native linker is 16483 *** used, and then restart. 16484 16485 _LT_EOF 16486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16487 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16488 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16489 else 16490 ld_shlibs=no 16491 fi 16492 ;; 16493 16494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16495 case `$LD -v 2>&1` in 16496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16497 ld_shlibs=no 16498 cat <<_LT_EOF 1>&2 16499 16500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16501 *** reliably create shared libraries on SCO systems. Therefore, libtool 16502 *** is disabling shared libraries support. We urge you to upgrade GNU 16503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16504 *** your PATH or compiler configuration so that the native linker is 16505 *** used, and then restart. 16506 16507 _LT_EOF 16508 ;; 16509 *) 16510 # For security reasons, it is highly recommended that you always 16511 # use absolute paths for naming shared libraries, and exclude the 16512 # DT_RUNPATH tag from executables and libraries. But doing so 16513 # requires that you compile everything twice, which is a pain. 16514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16515 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16518 else 16519 ld_shlibs=no 16520 fi 16521 ;; 16522 esac 16523 ;; 16524 16525 sunos4*) 16526 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16527 wlarc= 16528 hardcode_direct=yes 16529 hardcode_shlibpath_var=no 16530 ;; 16531 16532 *) 16533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16534 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16535 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16536 else 16537 ld_shlibs=no 16538 fi 16539 ;; 16540 esac 16541 16542 if test no = "$ld_shlibs"; then 16543 runpath_var= 16544 hardcode_libdir_flag_spec= 16545 export_dynamic_flag_spec= 16546 whole_archive_flag_spec= 16547 fi 16548 else 16549 # PORTME fill in a description of your system's linker (not GNU ld) 16550 case $host_os in 16551 aix3*) 16552 allow_undefined_flag=unsupported 16553 always_export_symbols=yes 16554 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' 16555 # Note: this linker hardcodes the directories in LIBPATH if there 16556 # are no directories specified by -L. 16557 hardcode_minus_L=yes 16558 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16559 # Neither direct hardcoding nor static linking is supported with a 16560 # broken collect2. 16561 hardcode_direct=unsupported 16562 fi 16563 ;; 16564 16565 aix[4-9]*) 16566 if test ia64 = "$host_cpu"; then 16567 # On IA64, the linker does run time linking by default, so we don't 16568 # have to do anything special. 16569 aix_use_runtimelinking=no 16570 exp_sym_flag='-Bexport' 16571 no_entry_flag= 16572 else 16573 # If we're using GNU nm, then we don't want the "-C" option. 16574 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16575 # Without the "-l" option, or with the "-B" option, AIX nm treats 16576 # weak defined symbols like other global defined symbols, whereas 16577 # GNU nm marks them as "W". 16578 # While the 'weak' keyword is ignored in the Export File, we need 16579 # it in the Import File for the 'aix-soname' feature, so we have 16580 # to replace the "-B" option with "-P" for AIX nm. 16581 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16582 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' 16583 else 16584 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 == "L") || (\$ 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' 16585 fi 16586 aix_use_runtimelinking=no 16587 16588 # Test if we are trying to use run time linking or normal 16589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16590 # have runtime linking enabled, and use it for executables. 16591 # For shared libraries, we enable/disable runtime linking 16592 # depending on the kind of the shared library created - 16593 # when "with_aix_soname,aix_use_runtimelinking" is: 16594 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16595 # "aix,yes" lib.so shared, rtl:yes, for executables 16596 # lib.a static archive 16597 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16598 # lib.a(lib.so.V) shared, rtl:no, for executables 16599 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16600 # lib.a(lib.so.V) shared, rtl:no 16601 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16602 # lib.a static archive 16603 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16604 for ld_flag in $LDFLAGS; do 16605 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16606 aix_use_runtimelinking=yes 16607 break 16608 fi 16609 done 16610 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16611 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16612 # so we don't have lib.a shared libs to link our executables. 16613 # We have to force runtime linking in this case. 16614 aix_use_runtimelinking=yes 16615 LDFLAGS="$LDFLAGS -Wl,-brtl" 16616 fi 16617 ;; 16618 esac 16619 16620 exp_sym_flag='-bexport' 16621 no_entry_flag='-bnoentry' 16622 fi 16623 16624 # When large executables or shared objects are built, AIX ld can 16625 # have problems creating the table of contents. If linking a library 16626 # or program results in "error TOC overflow" add -mminimal-toc to 16627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16629 16630 archive_cmds='' 16631 hardcode_direct=yes 16632 hardcode_direct_absolute=yes 16633 hardcode_libdir_separator=':' 16634 link_all_deplibs=yes 16635 file_list_spec='$wl-f,' 16636 case $with_aix_soname,$aix_use_runtimelinking in 16637 aix,*) ;; # traditional, no import file 16638 svr4,* | *,yes) # use import file 16639 # The Import File defines what to hardcode. 16640 hardcode_direct=no 16641 hardcode_direct_absolute=no 16642 ;; 16643 esac 16644 16645 if test yes = "$GCC"; then 16646 case $host_os in aix4.[012]|aix4.[012].*) 16647 # We only want to do this on AIX 4.2 and lower, the check 16648 # below for broken collect2 doesn't work under 4.3+ 16649 collect2name=`$CC -print-prog-name=collect2` 16650 if test -f "$collect2name" && 16651 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16652 then 16653 # We have reworked collect2 16654 : 16655 else 16656 # We have old collect2 16657 hardcode_direct=unsupported 16658 # It fails to find uninstalled libraries when the uninstalled 16659 # path is not listed in the libpath. Setting hardcode_minus_L 16660 # to unsupported forces relinking 16661 hardcode_minus_L=yes 16662 hardcode_libdir_flag_spec='-L$libdir' 16663 hardcode_libdir_separator= 16664 fi 16665 ;; 16666 esac 16667 shared_flag='-shared' 16668 if test yes = "$aix_use_runtimelinking"; then 16669 shared_flag="$shared_flag "'$wl-G' 16670 fi 16671 # Need to ensure runtime linking is disabled for the traditional 16672 # shared library, or the linker may eventually find shared libraries 16673 # /with/ Import File - we do not want to mix them. 16674 shared_flag_aix='-shared' 16675 shared_flag_svr4='-shared $wl-G' 16676 else 16677 # not using gcc 16678 if test ia64 = "$host_cpu"; then 16679 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16680 # chokes on -Wl,-G. The following line is correct: 16681 shared_flag='-G' 16682 else 16683 if test yes = "$aix_use_runtimelinking"; then 16684 shared_flag='$wl-G' 16685 else 16686 shared_flag='$wl-bM:SRE' 16687 fi 16688 shared_flag_aix='$wl-bM:SRE' 16689 shared_flag_svr4='$wl-G' 16690 fi 16691 fi 16692 16693 export_dynamic_flag_spec='$wl-bexpall' 16694 # It seems that -bexpall does not export symbols beginning with 16695 # underscore (_), so it is better to generate a list of symbols to export. 16696 always_export_symbols=yes 16697 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16698 # Warning - without using the other runtime loading flags (-brtl), 16699 # -berok will link without error, but may produce a broken library. 16700 allow_undefined_flag='-berok' 16701 # Determine the default libpath from the value encoded in an 16702 # empty executable. 16703 if test set = "${lt_cv_aix_libpath+set}"; then 16704 aix_libpath=$lt_cv_aix_libpath 16705 else 16706 if test ${lt_cv_aix_libpath_+y} 16707 then : 16708 printf %s "(cached) " >&6 16709 else $as_nop 16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711 /* end confdefs.h. */ 16712 16713 int 16714 main (void) 16715 { 16716 16717 ; 16718 return 0; 16719 } 16720 _ACEOF 16721 if ac_fn_c_try_link "$LINENO" 16722 then : 16723 16724 lt_aix_libpath_sed=' 16725 /Import File Strings/,/^$/ { 16726 /^0/ { 16727 s/^0 *\([^ ]*\) *$/\1/ 16728 p 16729 } 16730 }' 16731 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16732 # Check for a 64-bit object if we didn't find anything. 16733 if test -z "$lt_cv_aix_libpath_"; then 16734 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16735 fi 16736 fi 16737 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16738 conftest$ac_exeext conftest.$ac_ext 16739 if test -z "$lt_cv_aix_libpath_"; then 16740 lt_cv_aix_libpath_=/usr/lib:/lib 16741 fi 16742 16743 fi 16744 16745 aix_libpath=$lt_cv_aix_libpath_ 16746 fi 16747 16748 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16749 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 16750 else 16751 if test ia64 = "$host_cpu"; then 16752 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16753 allow_undefined_flag="-z nodefs" 16754 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" 16755 else 16756 # Determine the default libpath from the value encoded in an 16757 # empty executable. 16758 if test set = "${lt_cv_aix_libpath+set}"; then 16759 aix_libpath=$lt_cv_aix_libpath 16760 else 16761 if test ${lt_cv_aix_libpath_+y} 16762 then : 16763 printf %s "(cached) " >&6 16764 else $as_nop 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766 /* end confdefs.h. */ 16767 16768 int 16769 main (void) 16770 { 16771 16772 ; 16773 return 0; 16774 } 16775 _ACEOF 16776 if ac_fn_c_try_link "$LINENO" 16777 then : 16778 16779 lt_aix_libpath_sed=' 16780 /Import File Strings/,/^$/ { 16781 /^0/ { 16782 s/^0 *\([^ ]*\) *$/\1/ 16783 p 16784 } 16785 }' 16786 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16787 # Check for a 64-bit object if we didn't find anything. 16788 if test -z "$lt_cv_aix_libpath_"; then 16789 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16790 fi 16791 fi 16792 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16793 conftest$ac_exeext conftest.$ac_ext 16794 if test -z "$lt_cv_aix_libpath_"; then 16795 lt_cv_aix_libpath_=/usr/lib:/lib 16796 fi 16797 16798 fi 16799 16800 aix_libpath=$lt_cv_aix_libpath_ 16801 fi 16802 16803 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16804 # Warning - without using the other run time loading flags, 16805 # -berok will link without error, but may produce a broken library. 16806 no_undefined_flag=' $wl-bernotok' 16807 allow_undefined_flag=' $wl-berok' 16808 if test yes = "$with_gnu_ld"; then 16809 # We only use this code for GNU lds that support --whole-archive. 16810 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16811 else 16812 # Exported symbols can be pulled into shared objects from archives 16813 whole_archive_flag_spec='$convenience' 16814 fi 16815 archive_cmds_need_lc=yes 16816 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16817 # -brtl affects multiple linker settings, -berok does not and is overridden later 16818 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16819 if test svr4 != "$with_aix_soname"; then 16820 # This is similar to how AIX traditionally builds its shared libraries. 16821 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' 16822 fi 16823 if test aix != "$with_aix_soname"; then 16824 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' 16825 else 16826 # used by -dlpreopen to get the symbols 16827 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16828 fi 16829 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16830 fi 16831 fi 16832 ;; 16833 16834 amigaos*) 16835 case $host_cpu in 16836 powerpc) 16837 # see comment about AmigaOS4 .so support 16838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16839 archive_expsym_cmds='' 16840 ;; 16841 m68k) 16842 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)' 16843 hardcode_libdir_flag_spec='-L$libdir' 16844 hardcode_minus_L=yes 16845 ;; 16846 esac 16847 ;; 16848 16849 bsdi[45]*) 16850 export_dynamic_flag_spec=-rdynamic 16851 ;; 16852 16853 cygwin* | mingw* | pw32* | cegcc*) 16854 # When not using gcc, we currently assume that we are using 16855 # Microsoft Visual C++ or Intel C++ Compiler. 16856 # hardcode_libdir_flag_spec is actually meaningless, as there is 16857 # no search path for DLLs. 16858 case $cc_basename in 16859 cl* | icl*) 16860 # Native MSVC or ICC 16861 hardcode_libdir_flag_spec=' ' 16862 allow_undefined_flag=unsupported 16863 always_export_symbols=yes 16864 file_list_spec='@' 16865 # Tell ltmain to make .lib files, not .a files. 16866 libext=lib 16867 # Tell ltmain to make .dll files, not .so files. 16868 shrext_cmds=.dll 16869 # FIXME: Setting linknames here is a bad hack. 16870 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16871 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16872 cp "$export_symbols" "$output_objdir/$soname.def"; 16873 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16874 else 16875 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16876 fi~ 16877 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16878 linknames=' 16879 # The linker will not automatically build a static lib if we build a DLL. 16880 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16881 enable_shared_with_static_runtimes=yes 16882 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16884 # Don't use ranlib 16885 old_postinstall_cmds='chmod 644 $oldlib' 16886 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16887 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16888 case $lt_outputfile in 16889 *.exe|*.EXE) ;; 16890 *) 16891 lt_outputfile=$lt_outputfile.exe 16892 lt_tool_outputfile=$lt_tool_outputfile.exe 16893 ;; 16894 esac~ 16895 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16896 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16897 $RM "$lt_outputfile.manifest"; 16898 fi' 16899 ;; 16900 *) 16901 # Assume MSVC and ICC wrapper 16902 hardcode_libdir_flag_spec=' ' 16903 allow_undefined_flag=unsupported 16904 # Tell ltmain to make .lib files, not .a files. 16905 libext=lib 16906 # Tell ltmain to make .dll files, not .so files. 16907 shrext_cmds=.dll 16908 # FIXME: Setting linknames here is a bad hack. 16909 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16910 # The linker will automatically build a .lib file if we build a DLL. 16911 old_archive_from_new_cmds='true' 16912 # FIXME: Should let the user specify the lib program. 16913 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16914 enable_shared_with_static_runtimes=yes 16915 ;; 16916 esac 16917 ;; 16918 16919 darwin* | rhapsody*) 16920 16921 16922 archive_cmds_need_lc=no 16923 hardcode_direct=no 16924 hardcode_automatic=yes 16925 hardcode_shlibpath_var=unsupported 16926 if test yes = "$lt_cv_ld_force_load"; then 16927 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\"`' 16928 16929 else 16930 whole_archive_flag_spec='' 16931 fi 16932 link_all_deplibs=yes 16933 allow_undefined_flag=$_lt_dar_allow_undefined 16934 case $cc_basename in 16935 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16936 *) _lt_dar_can_shared=$GCC ;; 16937 esac 16938 if test yes = "$_lt_dar_can_shared"; then 16939 output_verbose_link_cmd=func_echo_all 16940 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16941 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16942 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" 16943 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" 16944 16945 else 16946 ld_shlibs=no 16947 fi 16948 16949 ;; 16950 16951 dgux*) 16952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16953 hardcode_libdir_flag_spec='-L$libdir' 16954 hardcode_shlibpath_var=no 16955 ;; 16956 16957 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16958 # support. Future versions do this automatically, but an explicit c++rt0.o 16959 # does not break anything, and helps significantly (at the cost of a little 16960 # extra space). 16961 freebsd2.2*) 16962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16963 hardcode_libdir_flag_spec='-R$libdir' 16964 hardcode_direct=yes 16965 hardcode_shlibpath_var=no 16966 ;; 16967 16968 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16969 freebsd2.*) 16970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16971 hardcode_direct=yes 16972 hardcode_minus_L=yes 16973 hardcode_shlibpath_var=no 16974 ;; 16975 16976 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16977 freebsd* | dragonfly* | midnightbsd*) 16978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16979 hardcode_libdir_flag_spec='-R$libdir' 16980 hardcode_direct=yes 16981 hardcode_shlibpath_var=no 16982 ;; 16983 16984 hpux9*) 16985 if test yes = "$GCC"; then 16986 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' 16987 else 16988 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' 16989 fi 16990 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16991 hardcode_libdir_separator=: 16992 hardcode_direct=yes 16993 16994 # hardcode_minus_L: Not really in the search PATH, 16995 # but as the default location of the library. 16996 hardcode_minus_L=yes 16997 export_dynamic_flag_spec='$wl-E' 16998 ;; 16999 17000 hpux10*) 17001 if test yes,no = "$GCC,$with_gnu_ld"; then 17002 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17003 else 17004 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17005 fi 17006 if test no = "$with_gnu_ld"; then 17007 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17008 hardcode_libdir_separator=: 17009 hardcode_direct=yes 17010 hardcode_direct_absolute=yes 17011 export_dynamic_flag_spec='$wl-E' 17012 # hardcode_minus_L: Not really in the search PATH, 17013 # but as the default location of the library. 17014 hardcode_minus_L=yes 17015 fi 17016 ;; 17017 17018 hpux11*) 17019 if test yes,no = "$GCC,$with_gnu_ld"; then 17020 case $host_cpu in 17021 hppa*64*) 17022 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17023 ;; 17024 ia64*) 17025 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17026 ;; 17027 *) 17028 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17029 ;; 17030 esac 17031 else 17032 case $host_cpu in 17033 hppa*64*) 17034 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17035 ;; 17036 ia64*) 17037 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17038 ;; 17039 *) 17040 17041 # Older versions of the 11.00 compiler do not understand -b yet 17042 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17044 printf %s "checking if $CC understands -b... " >&6; } 17045 if test ${lt_cv_prog_compiler__b+y} 17046 then : 17047 printf %s "(cached) " >&6 17048 else $as_nop 17049 lt_cv_prog_compiler__b=no 17050 save_LDFLAGS=$LDFLAGS 17051 LDFLAGS="$LDFLAGS -b" 17052 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17053 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17054 # The linker can only warn and ignore the option if not recognized 17055 # So say no if there are warnings 17056 if test -s conftest.err; then 17057 # Append any errors to the config.log. 17058 cat conftest.err 1>&5 17059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17061 if diff conftest.exp conftest.er2 >/dev/null; then 17062 lt_cv_prog_compiler__b=yes 17063 fi 17064 else 17065 lt_cv_prog_compiler__b=yes 17066 fi 17067 fi 17068 $RM -r conftest* 17069 LDFLAGS=$save_LDFLAGS 17070 17071 fi 17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17073 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17074 17075 if test yes = "$lt_cv_prog_compiler__b"; then 17076 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17077 else 17078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17079 fi 17080 17081 ;; 17082 esac 17083 fi 17084 if test no = "$with_gnu_ld"; then 17085 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17086 hardcode_libdir_separator=: 17087 17088 case $host_cpu in 17089 hppa*64*|ia64*) 17090 hardcode_direct=no 17091 hardcode_shlibpath_var=no 17092 ;; 17093 *) 17094 hardcode_direct=yes 17095 hardcode_direct_absolute=yes 17096 export_dynamic_flag_spec='$wl-E' 17097 17098 # hardcode_minus_L: Not really in the search PATH, 17099 # but as the default location of the library. 17100 hardcode_minus_L=yes 17101 ;; 17102 esac 17103 fi 17104 ;; 17105 17106 irix5* | irix6* | nonstopux*) 17107 if test yes = "$GCC"; then 17108 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' 17109 # Try to use the -exported_symbol ld option, if it does not 17110 # work, assume that -exports_file does not work either and 17111 # implicitly export all symbols. 17112 # This should be the same for all languages, so no per-tag cache variable. 17113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17114 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17115 if test ${lt_cv_irix_exported_symbol+y} 17116 then : 17117 printf %s "(cached) " >&6 17118 else $as_nop 17119 save_LDFLAGS=$LDFLAGS 17120 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17122 /* end confdefs.h. */ 17123 int foo (void) { return 0; } 17124 _ACEOF 17125 if ac_fn_c_try_link "$LINENO" 17126 then : 17127 lt_cv_irix_exported_symbol=yes 17128 else $as_nop 17129 lt_cv_irix_exported_symbol=no 17130 fi 17131 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17132 conftest$ac_exeext conftest.$ac_ext 17133 LDFLAGS=$save_LDFLAGS 17134 fi 17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17136 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17137 if test yes = "$lt_cv_irix_exported_symbol"; then 17138 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' 17139 fi 17140 else 17141 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' 17142 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' 17143 fi 17144 archive_cmds_need_lc='no' 17145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17146 hardcode_libdir_separator=: 17147 inherit_rpath=yes 17148 link_all_deplibs=yes 17149 ;; 17150 17151 linux*) 17152 case $cc_basename in 17153 tcc*) 17154 # Fabrice Bellard et al's Tiny C Compiler 17155 ld_shlibs=yes 17156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17157 ;; 17158 esac 17159 ;; 17160 17161 netbsd*) 17162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17164 else 17165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17166 fi 17167 hardcode_libdir_flag_spec='-R$libdir' 17168 hardcode_direct=yes 17169 hardcode_shlibpath_var=no 17170 ;; 17171 17172 newsos6) 17173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17174 hardcode_direct=yes 17175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17176 hardcode_libdir_separator=: 17177 hardcode_shlibpath_var=no 17178 ;; 17179 17180 *nto* | *qnx*) 17181 ;; 17182 17183 openbsd* | bitrig*) 17184 if test -f /usr/libexec/ld.so; then 17185 hardcode_direct=yes 17186 hardcode_shlibpath_var=no 17187 hardcode_direct_absolute=yes 17188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17191 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17192 export_dynamic_flag_spec='$wl-E' 17193 else 17194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17195 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17196 fi 17197 else 17198 ld_shlibs=no 17199 fi 17200 ;; 17201 17202 os2*) 17203 hardcode_libdir_flag_spec='-L$libdir' 17204 hardcode_minus_L=yes 17205 allow_undefined_flag=unsupported 17206 shrext_cmds=.dll 17207 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17210 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17211 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17213 emximp -o $lib $output_objdir/$libname.def' 17214 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17215 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17216 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17217 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17218 prefix_cmds="$SED"~ 17219 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17220 prefix_cmds="$prefix_cmds -e 1d"; 17221 fi~ 17222 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17223 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17224 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17225 emximp -o $lib $output_objdir/$libname.def' 17226 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17227 enable_shared_with_static_runtimes=yes 17228 file_list_spec='@' 17229 ;; 17230 17231 osf3*) 17232 if test yes = "$GCC"; then 17233 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17234 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' 17235 else 17236 allow_undefined_flag=' -expect_unresolved \*' 17237 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' 17238 fi 17239 archive_cmds_need_lc='no' 17240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17241 hardcode_libdir_separator=: 17242 ;; 17243 17244 osf4* | osf5*) # as osf3* with the addition of -msym flag 17245 if test yes = "$GCC"; then 17246 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17247 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' 17248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17249 else 17250 allow_undefined_flag=' -expect_unresolved \*' 17251 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' 17252 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~ 17253 $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' 17254 17255 # Both c and cxx compiler support -rpath directly 17256 hardcode_libdir_flag_spec='-rpath $libdir' 17257 fi 17258 archive_cmds_need_lc='no' 17259 hardcode_libdir_separator=: 17260 ;; 17261 17262 solaris*) 17263 no_undefined_flag=' -z defs' 17264 if test yes = "$GCC"; then 17265 wlarc='$wl' 17266 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17268 $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' 17269 else 17270 case `$CC -V 2>&1` in 17271 *"Compilers 5.0"*) 17272 wlarc='' 17273 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17275 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17276 ;; 17277 *) 17278 wlarc='$wl' 17279 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17281 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17282 ;; 17283 esac 17284 fi 17285 hardcode_libdir_flag_spec='-R$libdir' 17286 hardcode_shlibpath_var=no 17287 case $host_os in 17288 solaris2.[0-5] | solaris2.[0-5].*) ;; 17289 *) 17290 # The compiler driver will combine and reorder linker options, 17291 # but understands '-z linker_flag'. GCC discards it without '$wl', 17292 # but is careful enough not to reorder. 17293 # Supported since Solaris 2.6 (maybe 2.5.1?) 17294 if test yes = "$GCC"; then 17295 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17296 else 17297 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17298 fi 17299 ;; 17300 esac 17301 link_all_deplibs=yes 17302 ;; 17303 17304 sunos4*) 17305 if test sequent = "$host_vendor"; then 17306 # Use $CC to link under sequent, because it throws in some extra .o 17307 # files that make .init and .fini sections work. 17308 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17309 else 17310 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17311 fi 17312 hardcode_libdir_flag_spec='-L$libdir' 17313 hardcode_direct=yes 17314 hardcode_minus_L=yes 17315 hardcode_shlibpath_var=no 17316 ;; 17317 17318 sysv4) 17319 case $host_vendor in 17320 sni) 17321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17322 hardcode_direct=yes # is this really true??? 17323 ;; 17324 siemens) 17325 ## LD is ld it makes a PLAMLIB 17326 ## CC just makes a GrossModule. 17327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17328 reload_cmds='$CC -r -o $output$reload_objs' 17329 hardcode_direct=no 17330 ;; 17331 motorola) 17332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17333 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17334 ;; 17335 esac 17336 runpath_var='LD_RUN_PATH' 17337 hardcode_shlibpath_var=no 17338 ;; 17339 17340 sysv4.3*) 17341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17342 hardcode_shlibpath_var=no 17343 export_dynamic_flag_spec='-Bexport' 17344 ;; 17345 17346 sysv4*MP*) 17347 if test -d /usr/nec; then 17348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17349 hardcode_shlibpath_var=no 17350 runpath_var=LD_RUN_PATH 17351 hardcode_runpath_var=yes 17352 ld_shlibs=yes 17353 fi 17354 ;; 17355 17356 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17357 no_undefined_flag='$wl-z,text' 17358 archive_cmds_need_lc=no 17359 hardcode_shlibpath_var=no 17360 runpath_var='LD_RUN_PATH' 17361 17362 if test yes = "$GCC"; then 17363 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17364 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17365 else 17366 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17367 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17368 fi 17369 ;; 17370 17371 sysv5* | sco3.2v5* | sco5v6*) 17372 # Note: We CANNOT use -z defs as we might desire, because we do not 17373 # link with -lc, and that would cause any symbols used from libc to 17374 # always be unresolved, which means just about no library would 17375 # ever link correctly. If we're not using GNU ld we use -z text 17376 # though, which does catch some bad symbols but isn't as heavy-handed 17377 # as -z defs. 17378 no_undefined_flag='$wl-z,text' 17379 allow_undefined_flag='$wl-z,nodefs' 17380 archive_cmds_need_lc=no 17381 hardcode_shlibpath_var=no 17382 hardcode_libdir_flag_spec='$wl-R,$libdir' 17383 hardcode_libdir_separator=':' 17384 link_all_deplibs=yes 17385 export_dynamic_flag_spec='$wl-Bexport' 17386 runpath_var='LD_RUN_PATH' 17387 17388 if test yes = "$GCC"; then 17389 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17390 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17391 else 17392 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17393 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17394 fi 17395 ;; 17396 17397 uts4*) 17398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17399 hardcode_libdir_flag_spec='-L$libdir' 17400 hardcode_shlibpath_var=no 17401 ;; 17402 17403 *) 17404 ld_shlibs=no 17405 ;; 17406 esac 17407 17408 if test sni = "$host_vendor"; then 17409 case $host in 17410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17411 export_dynamic_flag_spec='$wl-Blargedynsym' 17412 ;; 17413 esac 17414 fi 17415 fi 17416 17417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17418 printf "%s\n" "$ld_shlibs" >&6; } 17419 test no = "$ld_shlibs" && can_build_shared=no 17420 17421 with_gnu_ld=$with_gnu_ld 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 # 17438 # Do we need to explicitly link libc? 17439 # 17440 case "x$archive_cmds_need_lc" in 17441 x|xyes) 17442 # Assume -lc should be added 17443 archive_cmds_need_lc=yes 17444 17445 if test yes,yes = "$GCC,$enable_shared"; then 17446 case $archive_cmds in 17447 *'~'*) 17448 # FIXME: we may have to deal with multi-command sequences. 17449 ;; 17450 '$CC '*) 17451 # Test whether the compiler implicitly links with -lc since on some 17452 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17453 # to ld, don't add -lc before -lgcc. 17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17455 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17456 if test ${lt_cv_archive_cmds_need_lc+y} 17457 then : 17458 printf %s "(cached) " >&6 17459 else $as_nop 17460 $RM conftest* 17461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17462 17463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17464 (eval $ac_compile) 2>&5 17465 ac_status=$? 17466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17467 test $ac_status = 0; } 2>conftest.err; then 17468 soname=conftest 17469 lib=conftest 17470 libobjs=conftest.$ac_objext 17471 deplibs= 17472 wl=$lt_prog_compiler_wl 17473 pic_flag=$lt_prog_compiler_pic 17474 compiler_flags=-v 17475 linker_flags=-v 17476 verstring= 17477 output_objdir=. 17478 libname=conftest 17479 lt_save_allow_undefined_flag=$allow_undefined_flag 17480 allow_undefined_flag= 17481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17482 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17483 ac_status=$? 17484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17485 test $ac_status = 0; } 17486 then 17487 lt_cv_archive_cmds_need_lc=no 17488 else 17489 lt_cv_archive_cmds_need_lc=yes 17490 fi 17491 allow_undefined_flag=$lt_save_allow_undefined_flag 17492 else 17493 cat conftest.err 1>&5 17494 fi 17495 $RM conftest* 17496 17497 fi 17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17499 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17500 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17501 ;; 17502 esac 17503 fi 17504 ;; 17505 esac 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17659 printf %s "checking dynamic linker characteristics... " >&6; } 17660 17661 if test yes = "$GCC"; then 17662 case $host_os in 17663 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17664 *) lt_awk_arg='/^libraries:/' ;; 17665 esac 17666 case $host_os in 17667 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17668 *) lt_sed_strip_eq='s|=/|/|g' ;; 17669 esac 17670 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17671 case $lt_search_path_spec in 17672 *\;*) 17673 # if the path contains ";" then we assume it to be the separator 17674 # otherwise default to the standard path separator (i.e. ":") - it is 17675 # assumed that no part of a normal pathname contains ";" but that should 17676 # okay in the real world where ";" in dirpaths is itself problematic. 17677 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17678 ;; 17679 *) 17680 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17681 ;; 17682 esac 17683 # Ok, now we have the path, separated by spaces, we can step through it 17684 # and add multilib dir if necessary... 17685 lt_tmp_lt_search_path_spec= 17686 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17687 # ...but if some path component already ends with the multilib dir we assume 17688 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17689 case "$lt_multi_os_dir; $lt_search_path_spec " in 17690 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17691 lt_multi_os_dir= 17692 ;; 17693 esac 17694 for lt_sys_path in $lt_search_path_spec; do 17695 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17696 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17697 elif test -n "$lt_multi_os_dir"; then 17698 test -d "$lt_sys_path" && \ 17699 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17700 fi 17701 done 17702 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17703 BEGIN {RS = " "; FS = "/|\n";} { 17704 lt_foo = ""; 17705 lt_count = 0; 17706 for (lt_i = NF; lt_i > 0; lt_i--) { 17707 if ($lt_i != "" && $lt_i != ".") { 17708 if ($lt_i == "..") { 17709 lt_count++; 17710 } else { 17711 if (lt_count == 0) { 17712 lt_foo = "/" $lt_i lt_foo; 17713 } else { 17714 lt_count--; 17715 } 17716 } 17717 } 17718 } 17719 if (lt_foo != "") { lt_freq[lt_foo]++; } 17720 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17721 }'` 17722 # AWK program above erroneously prepends '/' to C:/dos/paths 17723 # for these hosts. 17724 case $host_os in 17725 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17726 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17727 esac 17728 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17729 else 17730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17731 fi 17732 library_names_spec= 17733 libname_spec='lib$name' 17734 soname_spec= 17735 shrext_cmds=.so 17736 postinstall_cmds= 17737 postuninstall_cmds= 17738 finish_cmds= 17739 finish_eval= 17740 shlibpath_var= 17741 shlibpath_overrides_runpath=unknown 17742 version_type=none 17743 dynamic_linker="$host_os ld.so" 17744 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17745 need_lib_prefix=unknown 17746 hardcode_into_libs=no 17747 17748 # when you set need_version to no, make sure it does not cause -set_version 17749 # flags to be left without arguments 17750 need_version=unknown 17751 17752 17753 17754 case $host_os in 17755 aix3*) 17756 version_type=linux # correct to gnu/linux during the next big refactor 17757 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17758 shlibpath_var=LIBPATH 17759 17760 # AIX 3 has no versioning support, so we append a major version to the name. 17761 soname_spec='$libname$release$shared_ext$major' 17762 ;; 17763 17764 aix[4-9]*) 17765 version_type=linux # correct to gnu/linux during the next big refactor 17766 need_lib_prefix=no 17767 need_version=no 17768 hardcode_into_libs=yes 17769 if test ia64 = "$host_cpu"; then 17770 # AIX 5 supports IA64 17771 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17772 shlibpath_var=LD_LIBRARY_PATH 17773 else 17774 # With GCC up to 2.95.x, collect2 would create an import file 17775 # for dependence libraries. The import file would start with 17776 # the line '#! .'. This would cause the generated library to 17777 # depend on '.', always an invalid library. This was fixed in 17778 # development snapshots of GCC prior to 3.0. 17779 case $host_os in 17780 aix4 | aix4.[01] | aix4.[01].*) 17781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17782 echo ' yes ' 17783 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17784 : 17785 else 17786 can_build_shared=no 17787 fi 17788 ;; 17789 esac 17790 # Using Import Files as archive members, it is possible to support 17791 # filename-based versioning of shared library archives on AIX. While 17792 # this would work for both with and without runtime linking, it will 17793 # prevent static linking of such archives. So we do filename-based 17794 # shared library versioning with .so extension only, which is used 17795 # when both runtime linking and shared linking is enabled. 17796 # Unfortunately, runtime linking may impact performance, so we do 17797 # not want this to be the default eventually. Also, we use the 17798 # versioned .so libs for executables only if there is the -brtl 17799 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17800 # To allow for filename-based versioning support, we need to create 17801 # libNAME.so.V as an archive file, containing: 17802 # *) an Import File, referring to the versioned filename of the 17803 # archive as well as the shared archive member, telling the 17804 # bitwidth (32 or 64) of that shared object, and providing the 17805 # list of exported symbols of that shared object, eventually 17806 # decorated with the 'weak' keyword 17807 # *) the shared object with the F_LOADONLY flag set, to really avoid 17808 # it being seen by the linker. 17809 # At run time we better use the real file rather than another symlink, 17810 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17811 17812 case $with_aix_soname,$aix_use_runtimelinking in 17813 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17814 # soname into executable. Probably we can add versioning support to 17815 # collect2, so additional links can be useful in future. 17816 aix,yes) # traditional libtool 17817 dynamic_linker='AIX unversionable lib.so' 17818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17819 # instead of lib<name>.a to let people know that these are not 17820 # typical AIX shared libraries. 17821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17822 ;; 17823 aix,no) # traditional AIX only 17824 dynamic_linker='AIX lib.a(lib.so.V)' 17825 # We preserve .a as extension for shared libraries through AIX4.2 17826 # and later when we are not doing run time linking. 17827 library_names_spec='$libname$release.a $libname.a' 17828 soname_spec='$libname$release$shared_ext$major' 17829 ;; 17830 svr4,*) # full svr4 only 17831 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17832 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17833 # We do not specify a path in Import Files, so LIBPATH fires. 17834 shlibpath_overrides_runpath=yes 17835 ;; 17836 *,yes) # both, prefer svr4 17837 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17838 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17839 # unpreferred sharedlib libNAME.a needs extra handling 17840 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"' 17841 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"' 17842 # We do not specify a path in Import Files, so LIBPATH fires. 17843 shlibpath_overrides_runpath=yes 17844 ;; 17845 *,no) # both, prefer aix 17846 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17847 library_names_spec='$libname$release.a $libname.a' 17848 soname_spec='$libname$release$shared_ext$major' 17849 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17850 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)' 17851 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"' 17852 ;; 17853 esac 17854 shlibpath_var=LIBPATH 17855 fi 17856 ;; 17857 17858 amigaos*) 17859 case $host_cpu in 17860 powerpc) 17861 # Since July 2007 AmigaOS4 officially supports .so libraries. 17862 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17864 ;; 17865 m68k) 17866 library_names_spec='$libname.ixlibrary $libname.a' 17867 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17868 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' 17869 ;; 17870 esac 17871 ;; 17872 17873 beos*) 17874 library_names_spec='$libname$shared_ext' 17875 dynamic_linker="$host_os ld.so" 17876 shlibpath_var=LIBRARY_PATH 17877 ;; 17878 17879 bsdi[45]*) 17880 version_type=linux # correct to gnu/linux during the next big refactor 17881 need_version=no 17882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17883 soname_spec='$libname$release$shared_ext$major' 17884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17885 shlibpath_var=LD_LIBRARY_PATH 17886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17888 # the default ld.so.conf also contains /usr/contrib/lib and 17889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17890 # libtool to hard-code these into programs 17891 ;; 17892 17893 cygwin* | mingw* | pw32* | cegcc*) 17894 version_type=windows 17895 shrext_cmds=.dll 17896 need_version=no 17897 need_lib_prefix=no 17898 17899 case $GCC,$cc_basename in 17900 yes,*) 17901 # gcc 17902 library_names_spec='$libname.dll.a' 17903 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17904 postinstall_cmds='base_file=`basename \$file`~ 17905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17906 dldir=$destdir/`dirname \$dlpath`~ 17907 test -d \$dldir || mkdir -p \$dldir~ 17908 $install_prog $dir/$dlname \$dldir/$dlname~ 17909 chmod a+x \$dldir/$dlname~ 17910 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17911 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17912 fi' 17913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17914 dlpath=$dir/\$dldll~ 17915 $RM \$dlpath' 17916 shlibpath_overrides_runpath=yes 17917 17918 case $host_os in 17919 cygwin*) 17920 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17921 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17922 17923 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17924 ;; 17925 mingw* | cegcc*) 17926 # MinGW DLLs use traditional 'lib' prefix 17927 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17928 ;; 17929 pw32*) 17930 # pw32 DLLs use 'pw' prefix rather than 'lib' 17931 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17932 ;; 17933 esac 17934 dynamic_linker='Win32 ld.exe' 17935 ;; 17936 17937 *,cl* | *,icl*) 17938 # Native MSVC or ICC 17939 libname_spec='$name' 17940 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17941 library_names_spec='$libname.dll.lib' 17942 17943 case $build_os in 17944 mingw*) 17945 sys_lib_search_path_spec= 17946 lt_save_ifs=$IFS 17947 IFS=';' 17948 for lt_path in $LIB 17949 do 17950 IFS=$lt_save_ifs 17951 # Let DOS variable expansion print the short 8.3 style file name. 17952 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17953 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17954 done 17955 IFS=$lt_save_ifs 17956 # Convert to MSYS style. 17957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17958 ;; 17959 cygwin*) 17960 # Convert to unix form, then to dos form, then back to unix form 17961 # but this time dos style (no spaces!) so that the unix form looks 17962 # like /cygdrive/c/PROGRA~1:/cygdr... 17963 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17964 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17965 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17966 ;; 17967 *) 17968 sys_lib_search_path_spec=$LIB 17969 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17970 # It is most probably a Windows format PATH. 17971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17972 else 17973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17974 fi 17975 # FIXME: find the short name or the path components, as spaces are 17976 # common. (e.g. "Program Files" -> "PROGRA~1") 17977 ;; 17978 esac 17979 17980 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17981 postinstall_cmds='base_file=`basename \$file`~ 17982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17983 dldir=$destdir/`dirname \$dlpath`~ 17984 test -d \$dldir || mkdir -p \$dldir~ 17985 $install_prog $dir/$dlname \$dldir/$dlname' 17986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17987 dlpath=$dir/\$dldll~ 17988 $RM \$dlpath' 17989 shlibpath_overrides_runpath=yes 17990 dynamic_linker='Win32 link.exe' 17991 ;; 17992 17993 *) 17994 # Assume MSVC and ICC wrapper 17995 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17996 dynamic_linker='Win32 ld.exe' 17997 ;; 17998 esac 17999 # FIXME: first we should search . and the directory the executable is in 18000 shlibpath_var=PATH 18001 ;; 18002 18003 darwin* | rhapsody*) 18004 dynamic_linker="$host_os dyld" 18005 version_type=darwin 18006 need_lib_prefix=no 18007 need_version=no 18008 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18009 soname_spec='$libname$release$major$shared_ext' 18010 shlibpath_overrides_runpath=yes 18011 shlibpath_var=DYLD_LIBRARY_PATH 18012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18013 18014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18016 ;; 18017 18018 dgux*) 18019 version_type=linux # correct to gnu/linux during the next big refactor 18020 need_lib_prefix=no 18021 need_version=no 18022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18023 soname_spec='$libname$release$shared_ext$major' 18024 shlibpath_var=LD_LIBRARY_PATH 18025 ;; 18026 18027 freebsd* | dragonfly* | midnightbsd*) 18028 # DragonFly does not have aout. When/if they implement a new 18029 # versioning mechanism, adjust this. 18030 if test -x /usr/bin/objformat; then 18031 objformat=`/usr/bin/objformat` 18032 else 18033 case $host_os in 18034 freebsd[23].*) objformat=aout ;; 18035 *) objformat=elf ;; 18036 esac 18037 fi 18038 version_type=freebsd-$objformat 18039 case $version_type in 18040 freebsd-elf*) 18041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18042 soname_spec='$libname$release$shared_ext$major' 18043 need_version=no 18044 need_lib_prefix=no 18045 ;; 18046 freebsd-*) 18047 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18048 need_version=yes 18049 ;; 18050 esac 18051 shlibpath_var=LD_LIBRARY_PATH 18052 case $host_os in 18053 freebsd2.*) 18054 shlibpath_overrides_runpath=yes 18055 ;; 18056 freebsd3.[01]* | freebsdelf3.[01]*) 18057 shlibpath_overrides_runpath=yes 18058 hardcode_into_libs=yes 18059 ;; 18060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18062 shlibpath_overrides_runpath=no 18063 hardcode_into_libs=yes 18064 ;; 18065 *) # from 4.6 on, and DragonFly 18066 shlibpath_overrides_runpath=yes 18067 hardcode_into_libs=yes 18068 ;; 18069 esac 18070 ;; 18071 18072 haiku*) 18073 version_type=linux # correct to gnu/linux during the next big refactor 18074 need_lib_prefix=no 18075 need_version=no 18076 dynamic_linker="$host_os runtime_loader" 18077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18078 soname_spec='$libname$release$shared_ext$major' 18079 shlibpath_var=LIBRARY_PATH 18080 shlibpath_overrides_runpath=no 18081 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18082 hardcode_into_libs=yes 18083 ;; 18084 18085 hpux9* | hpux10* | hpux11*) 18086 # Give a soname corresponding to the major version so that dld.sl refuses to 18087 # link against other versions. 18088 version_type=sunos 18089 need_lib_prefix=no 18090 need_version=no 18091 case $host_cpu in 18092 ia64*) 18093 shrext_cmds='.so' 18094 hardcode_into_libs=yes 18095 dynamic_linker="$host_os dld.so" 18096 shlibpath_var=LD_LIBRARY_PATH 18097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18099 soname_spec='$libname$release$shared_ext$major' 18100 if test 32 = "$HPUX_IA64_MODE"; then 18101 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18102 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18103 else 18104 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18105 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18106 fi 18107 ;; 18108 hppa*64*) 18109 shrext_cmds='.sl' 18110 hardcode_into_libs=yes 18111 dynamic_linker="$host_os dld.sl" 18112 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18115 soname_spec='$libname$release$shared_ext$major' 18116 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18118 ;; 18119 *) 18120 shrext_cmds='.sl' 18121 dynamic_linker="$host_os dld.sl" 18122 shlibpath_var=SHLIB_PATH 18123 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18125 soname_spec='$libname$release$shared_ext$major' 18126 ;; 18127 esac 18128 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18129 postinstall_cmds='chmod 555 $lib' 18130 # or fails outright, so override atomically: 18131 install_override_mode=555 18132 ;; 18133 18134 interix[3-9]*) 18135 version_type=linux # correct to gnu/linux during the next big refactor 18136 need_lib_prefix=no 18137 need_version=no 18138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18139 soname_spec='$libname$release$shared_ext$major' 18140 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18141 shlibpath_var=LD_LIBRARY_PATH 18142 shlibpath_overrides_runpath=no 18143 hardcode_into_libs=yes 18144 ;; 18145 18146 irix5* | irix6* | nonstopux*) 18147 case $host_os in 18148 nonstopux*) version_type=nonstopux ;; 18149 *) 18150 if test yes = "$lt_cv_prog_gnu_ld"; then 18151 version_type=linux # correct to gnu/linux during the next big refactor 18152 else 18153 version_type=irix 18154 fi ;; 18155 esac 18156 need_lib_prefix=no 18157 need_version=no 18158 soname_spec='$libname$release$shared_ext$major' 18159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18160 case $host_os in 18161 irix5* | nonstopux*) 18162 libsuff= shlibsuff= 18163 ;; 18164 *) 18165 case $LD in # libtool.m4 will add one of these switches to LD 18166 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18167 libsuff= shlibsuff= libmagic=32-bit;; 18168 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18169 libsuff=32 shlibsuff=N32 libmagic=N32;; 18170 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18171 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18172 *) libsuff= shlibsuff= libmagic=never-match;; 18173 esac 18174 ;; 18175 esac 18176 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18177 shlibpath_overrides_runpath=no 18178 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18179 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18180 hardcode_into_libs=yes 18181 ;; 18182 18183 # No shared lib support for Linux oldld, aout, or coff. 18184 linux*oldld* | linux*aout* | linux*coff*) 18185 dynamic_linker=no 18186 ;; 18187 18188 linux*android*) 18189 version_type=none # Android doesn't support versioned libraries. 18190 need_lib_prefix=no 18191 need_version=no 18192 library_names_spec='$libname$release$shared_ext' 18193 soname_spec='$libname$release$shared_ext' 18194 finish_cmds= 18195 shlibpath_var=LD_LIBRARY_PATH 18196 shlibpath_overrides_runpath=yes 18197 18198 # This implies no fast_install, which is unacceptable. 18199 # Some rework will be needed to allow for fast_install 18200 # before this can be enabled. 18201 hardcode_into_libs=yes 18202 18203 dynamic_linker='Android linker' 18204 # Don't embed -rpath directories since the linker doesn't support them. 18205 hardcode_libdir_flag_spec='-L$libdir' 18206 ;; 18207 18208 # This must be glibc/ELF. 18209 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18210 version_type=linux # correct to gnu/linux during the next big refactor 18211 need_lib_prefix=no 18212 need_version=no 18213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18214 soname_spec='$libname$release$shared_ext$major' 18215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18216 shlibpath_var=LD_LIBRARY_PATH 18217 shlibpath_overrides_runpath=no 18218 18219 # Some binutils ld are patched to set DT_RUNPATH 18220 if test ${lt_cv_shlibpath_overrides_runpath+y} 18221 then : 18222 printf %s "(cached) " >&6 18223 else $as_nop 18224 lt_cv_shlibpath_overrides_runpath=no 18225 save_LDFLAGS=$LDFLAGS 18226 save_libdir=$libdir 18227 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18228 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18230 /* end confdefs.h. */ 18231 18232 int 18233 main (void) 18234 { 18235 18236 ; 18237 return 0; 18238 } 18239 _ACEOF 18240 if ac_fn_c_try_link "$LINENO" 18241 then : 18242 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18243 then : 18244 lt_cv_shlibpath_overrides_runpath=yes 18245 fi 18246 fi 18247 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18248 conftest$ac_exeext conftest.$ac_ext 18249 LDFLAGS=$save_LDFLAGS 18250 libdir=$save_libdir 18251 18252 fi 18253 18254 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18255 18256 # This implies no fast_install, which is unacceptable. 18257 # Some rework will be needed to allow for fast_install 18258 # before this can be enabled. 18259 hardcode_into_libs=yes 18260 18261 # Ideally, we could use ldconfig to report *all* directores which are 18262 # searched for libraries, however this is still not possible. Aside from not 18263 # being certain /sbin/ldconfig is available, command 18264 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18265 # even though it is searched at run-time. Try to do the best guess by 18266 # appending ld.so.conf contents (and includes) to the search path. 18267 if test -f /etc/ld.so.conf; then 18268 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' ' '` 18269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18270 fi 18271 18272 # We used to test for /lib/ld.so.1 and disable shared libraries on 18273 # powerpc, because MkLinux only supported shared libraries with the 18274 # GNU dynamic linker. Since this was broken with cross compilers, 18275 # most powerpc-linux boxes support dynamic linking these days and 18276 # people can always --disable-shared, the test was removed, and we 18277 # assume the GNU/Linux dynamic linker is in use. 18278 dynamic_linker='GNU/Linux ld.so' 18279 ;; 18280 18281 netbsd*) 18282 version_type=sunos 18283 need_lib_prefix=no 18284 need_version=no 18285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18286 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18288 dynamic_linker='NetBSD (a.out) ld.so' 18289 else 18290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18291 soname_spec='$libname$release$shared_ext$major' 18292 dynamic_linker='NetBSD ld.elf_so' 18293 fi 18294 shlibpath_var=LD_LIBRARY_PATH 18295 shlibpath_overrides_runpath=yes 18296 hardcode_into_libs=yes 18297 ;; 18298 18299 newsos6) 18300 version_type=linux # correct to gnu/linux during the next big refactor 18301 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18302 shlibpath_var=LD_LIBRARY_PATH 18303 shlibpath_overrides_runpath=yes 18304 ;; 18305 18306 *nto* | *qnx*) 18307 version_type=qnx 18308 need_lib_prefix=no 18309 need_version=no 18310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18311 soname_spec='$libname$release$shared_ext$major' 18312 shlibpath_var=LD_LIBRARY_PATH 18313 shlibpath_overrides_runpath=no 18314 hardcode_into_libs=yes 18315 dynamic_linker='ldqnx.so' 18316 ;; 18317 18318 openbsd* | bitrig*) 18319 version_type=sunos 18320 sys_lib_dlsearch_path_spec=/usr/lib 18321 need_lib_prefix=no 18322 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18323 need_version=no 18324 else 18325 need_version=yes 18326 fi 18327 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18329 shlibpath_var=LD_LIBRARY_PATH 18330 shlibpath_overrides_runpath=yes 18331 ;; 18332 18333 os2*) 18334 libname_spec='$name' 18335 version_type=windows 18336 shrext_cmds=.dll 18337 need_version=no 18338 need_lib_prefix=no 18339 # OS/2 can only load a DLL with a base name of 8 characters or less. 18340 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18341 v=$($ECHO $release$versuffix | tr -d .-); 18342 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18343 $ECHO $n$v`$shared_ext' 18344 library_names_spec='${libname}_dll.$libext' 18345 dynamic_linker='OS/2 ld.exe' 18346 shlibpath_var=BEGINLIBPATH 18347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18349 postinstall_cmds='base_file=`basename \$file`~ 18350 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18351 dldir=$destdir/`dirname \$dlpath`~ 18352 test -d \$dldir || mkdir -p \$dldir~ 18353 $install_prog $dir/$dlname \$dldir/$dlname~ 18354 chmod a+x \$dldir/$dlname~ 18355 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18356 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18357 fi' 18358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18359 dlpath=$dir/\$dldll~ 18360 $RM \$dlpath' 18361 ;; 18362 18363 osf3* | osf4* | osf5*) 18364 version_type=osf 18365 need_lib_prefix=no 18366 need_version=no 18367 soname_spec='$libname$release$shared_ext$major' 18368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18369 shlibpath_var=LD_LIBRARY_PATH 18370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18372 ;; 18373 18374 rdos*) 18375 dynamic_linker=no 18376 ;; 18377 18378 solaris*) 18379 version_type=linux # correct to gnu/linux during the next big refactor 18380 need_lib_prefix=no 18381 need_version=no 18382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18383 soname_spec='$libname$release$shared_ext$major' 18384 shlibpath_var=LD_LIBRARY_PATH 18385 shlibpath_overrides_runpath=yes 18386 hardcode_into_libs=yes 18387 # ldd complains unless libraries are executable 18388 postinstall_cmds='chmod +x $lib' 18389 ;; 18390 18391 sunos4*) 18392 version_type=sunos 18393 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18395 shlibpath_var=LD_LIBRARY_PATH 18396 shlibpath_overrides_runpath=yes 18397 if test yes = "$with_gnu_ld"; then 18398 need_lib_prefix=no 18399 fi 18400 need_version=yes 18401 ;; 18402 18403 sysv4 | sysv4.3*) 18404 version_type=linux # correct to gnu/linux during the next big refactor 18405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18406 soname_spec='$libname$release$shared_ext$major' 18407 shlibpath_var=LD_LIBRARY_PATH 18408 case $host_vendor in 18409 sni) 18410 shlibpath_overrides_runpath=no 18411 need_lib_prefix=no 18412 runpath_var=LD_RUN_PATH 18413 ;; 18414 siemens) 18415 need_lib_prefix=no 18416 ;; 18417 motorola) 18418 need_lib_prefix=no 18419 need_version=no 18420 shlibpath_overrides_runpath=no 18421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18422 ;; 18423 esac 18424 ;; 18425 18426 sysv4*MP*) 18427 if test -d /usr/nec; then 18428 version_type=linux # correct to gnu/linux during the next big refactor 18429 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18430 soname_spec='$libname$shared_ext.$major' 18431 shlibpath_var=LD_LIBRARY_PATH 18432 fi 18433 ;; 18434 18435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18436 version_type=sco 18437 need_lib_prefix=no 18438 need_version=no 18439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18440 soname_spec='$libname$release$shared_ext$major' 18441 shlibpath_var=LD_LIBRARY_PATH 18442 shlibpath_overrides_runpath=yes 18443 hardcode_into_libs=yes 18444 if test yes = "$with_gnu_ld"; then 18445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18446 else 18447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18448 case $host_os in 18449 sco3.2v5*) 18450 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18451 ;; 18452 esac 18453 fi 18454 sys_lib_dlsearch_path_spec='/usr/lib' 18455 ;; 18456 18457 tpf*) 18458 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18459 version_type=linux # correct to gnu/linux during the next big refactor 18460 need_lib_prefix=no 18461 need_version=no 18462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18463 shlibpath_var=LD_LIBRARY_PATH 18464 shlibpath_overrides_runpath=no 18465 hardcode_into_libs=yes 18466 ;; 18467 18468 uts4*) 18469 version_type=linux # correct to gnu/linux during the next big refactor 18470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18471 soname_spec='$libname$release$shared_ext$major' 18472 shlibpath_var=LD_LIBRARY_PATH 18473 ;; 18474 18475 *) 18476 dynamic_linker=no 18477 ;; 18478 esac 18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18480 printf "%s\n" "$dynamic_linker" >&6; } 18481 test no = "$dynamic_linker" && can_build_shared=no 18482 18483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18484 if test yes = "$GCC"; then 18485 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18486 fi 18487 18488 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18489 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18490 fi 18491 18492 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18493 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18494 fi 18495 18496 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18497 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18498 18499 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18500 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18501 18502 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18503 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18602 printf %s "checking how to hardcode library paths into programs... " >&6; } 18603 hardcode_action= 18604 if test -n "$hardcode_libdir_flag_spec" || 18605 test -n "$runpath_var" || 18606 test yes = "$hardcode_automatic"; then 18607 18608 # We can hardcode non-existent directories. 18609 if test no != "$hardcode_direct" && 18610 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18611 # have to relink, otherwise we might link with an installed library 18612 # when we should be linking with a yet-to-be-installed one 18613 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18614 test no != "$hardcode_minus_L"; then 18615 # Linking always hardcodes the temporary library directory. 18616 hardcode_action=relink 18617 else 18618 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18619 hardcode_action=immediate 18620 fi 18621 else 18622 # We cannot hardcode anything, or else we can only hardcode existing 18623 # directories. 18624 hardcode_action=unsupported 18625 fi 18626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18627 printf "%s\n" "$hardcode_action" >&6; } 18628 18629 if test relink = "$hardcode_action" || 18630 test yes = "$inherit_rpath"; then 18631 # Fast installation is not supported 18632 enable_fast_install=no 18633 elif test yes = "$shlibpath_overrides_runpath" || 18634 test no = "$enable_shared"; then 18635 # Fast installation is not necessary 18636 enable_fast_install=needless 18637 fi 18638 18639 18640 18641 18642 18643 18644 if test yes != "$enable_dlopen"; then 18645 enable_dlopen=unknown 18646 enable_dlopen_self=unknown 18647 enable_dlopen_self_static=unknown 18648 else 18649 lt_cv_dlopen=no 18650 lt_cv_dlopen_libs= 18651 18652 case $host_os in 18653 beos*) 18654 lt_cv_dlopen=load_add_on 18655 lt_cv_dlopen_libs= 18656 lt_cv_dlopen_self=yes 18657 ;; 18658 18659 mingw* | pw32* | cegcc*) 18660 lt_cv_dlopen=LoadLibrary 18661 lt_cv_dlopen_libs= 18662 ;; 18663 18664 cygwin*) 18665 lt_cv_dlopen=dlopen 18666 lt_cv_dlopen_libs= 18667 ;; 18668 18669 darwin*) 18670 # if libdl is installed we need to link against it 18671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18672 printf %s "checking for dlopen in -ldl... " >&6; } 18673 if test ${ac_cv_lib_dl_dlopen+y} 18674 then : 18675 printf %s "(cached) " >&6 18676 else $as_nop 18677 ac_check_lib_save_LIBS=$LIBS 18678 LIBS="-ldl $LIBS" 18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18680 /* end confdefs.h. */ 18681 18682 /* Override any GCC internal prototype to avoid an error. 18683 Use char because int might match the return type of a GCC 18684 builtin and then its argument prototype would still apply. */ 18685 char dlopen (); 18686 int 18687 main (void) 18688 { 18689 return dlopen (); 18690 ; 18691 return 0; 18692 } 18693 _ACEOF 18694 if ac_fn_c_try_link "$LINENO" 18695 then : 18696 ac_cv_lib_dl_dlopen=yes 18697 else $as_nop 18698 ac_cv_lib_dl_dlopen=no 18699 fi 18700 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18701 conftest$ac_exeext conftest.$ac_ext 18702 LIBS=$ac_check_lib_save_LIBS 18703 fi 18704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18705 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18706 if test "x$ac_cv_lib_dl_dlopen" = xyes 18707 then : 18708 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18709 else $as_nop 18710 18711 lt_cv_dlopen=dyld 18712 lt_cv_dlopen_libs= 18713 lt_cv_dlopen_self=yes 18714 18715 fi 18716 18717 ;; 18718 18719 tpf*) 18720 # Don't try to run any link tests for TPF. We know it's impossible 18721 # because TPF is a cross-compiler, and we know how we open DSOs. 18722 lt_cv_dlopen=dlopen 18723 lt_cv_dlopen_libs= 18724 lt_cv_dlopen_self=no 18725 ;; 18726 18727 *) 18728 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18729 if test "x$ac_cv_func_shl_load" = xyes 18730 then : 18731 lt_cv_dlopen=shl_load 18732 else $as_nop 18733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18734 printf %s "checking for shl_load in -ldld... " >&6; } 18735 if test ${ac_cv_lib_dld_shl_load+y} 18736 then : 18737 printf %s "(cached) " >&6 18738 else $as_nop 18739 ac_check_lib_save_LIBS=$LIBS 18740 LIBS="-ldld $LIBS" 18741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18742 /* end confdefs.h. */ 18743 18744 /* Override any GCC internal prototype to avoid an error. 18745 Use char because int might match the return type of a GCC 18746 builtin and then its argument prototype would still apply. */ 18747 char shl_load (); 18748 int 18749 main (void) 18750 { 18751 return shl_load (); 18752 ; 18753 return 0; 18754 } 18755 _ACEOF 18756 if ac_fn_c_try_link "$LINENO" 18757 then : 18758 ac_cv_lib_dld_shl_load=yes 18759 else $as_nop 18760 ac_cv_lib_dld_shl_load=no 18761 fi 18762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18763 conftest$ac_exeext conftest.$ac_ext 18764 LIBS=$ac_check_lib_save_LIBS 18765 fi 18766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18767 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18768 if test "x$ac_cv_lib_dld_shl_load" = xyes 18769 then : 18770 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18771 else $as_nop 18772 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18773 if test "x$ac_cv_func_dlopen" = xyes 18774 then : 18775 lt_cv_dlopen=dlopen 18776 else $as_nop 18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18778 printf %s "checking for dlopen in -ldl... " >&6; } 18779 if test ${ac_cv_lib_dl_dlopen+y} 18780 then : 18781 printf %s "(cached) " >&6 18782 else $as_nop 18783 ac_check_lib_save_LIBS=$LIBS 18784 LIBS="-ldl $LIBS" 18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18786 /* end confdefs.h. */ 18787 18788 /* Override any GCC internal prototype to avoid an error. 18789 Use char because int might match the return type of a GCC 18790 builtin and then its argument prototype would still apply. */ 18791 char dlopen (); 18792 int 18793 main (void) 18794 { 18795 return dlopen (); 18796 ; 18797 return 0; 18798 } 18799 _ACEOF 18800 if ac_fn_c_try_link "$LINENO" 18801 then : 18802 ac_cv_lib_dl_dlopen=yes 18803 else $as_nop 18804 ac_cv_lib_dl_dlopen=no 18805 fi 18806 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18807 conftest$ac_exeext conftest.$ac_ext 18808 LIBS=$ac_check_lib_save_LIBS 18809 fi 18810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18811 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18812 if test "x$ac_cv_lib_dl_dlopen" = xyes 18813 then : 18814 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18815 else $as_nop 18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18817 printf %s "checking for dlopen in -lsvld... " >&6; } 18818 if test ${ac_cv_lib_svld_dlopen+y} 18819 then : 18820 printf %s "(cached) " >&6 18821 else $as_nop 18822 ac_check_lib_save_LIBS=$LIBS 18823 LIBS="-lsvld $LIBS" 18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18825 /* end confdefs.h. */ 18826 18827 /* Override any GCC internal prototype to avoid an error. 18828 Use char because int might match the return type of a GCC 18829 builtin and then its argument prototype would still apply. */ 18830 char dlopen (); 18831 int 18832 main (void) 18833 { 18834 return dlopen (); 18835 ; 18836 return 0; 18837 } 18838 _ACEOF 18839 if ac_fn_c_try_link "$LINENO" 18840 then : 18841 ac_cv_lib_svld_dlopen=yes 18842 else $as_nop 18843 ac_cv_lib_svld_dlopen=no 18844 fi 18845 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18846 conftest$ac_exeext conftest.$ac_ext 18847 LIBS=$ac_check_lib_save_LIBS 18848 fi 18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18850 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18851 if test "x$ac_cv_lib_svld_dlopen" = xyes 18852 then : 18853 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18854 else $as_nop 18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18856 printf %s "checking for dld_link in -ldld... " >&6; } 18857 if test ${ac_cv_lib_dld_dld_link+y} 18858 then : 18859 printf %s "(cached) " >&6 18860 else $as_nop 18861 ac_check_lib_save_LIBS=$LIBS 18862 LIBS="-ldld $LIBS" 18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18864 /* end confdefs.h. */ 18865 18866 /* Override any GCC internal prototype to avoid an error. 18867 Use char because int might match the return type of a GCC 18868 builtin and then its argument prototype would still apply. */ 18869 char dld_link (); 18870 int 18871 main (void) 18872 { 18873 return dld_link (); 18874 ; 18875 return 0; 18876 } 18877 _ACEOF 18878 if ac_fn_c_try_link "$LINENO" 18879 then : 18880 ac_cv_lib_dld_dld_link=yes 18881 else $as_nop 18882 ac_cv_lib_dld_dld_link=no 18883 fi 18884 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18885 conftest$ac_exeext conftest.$ac_ext 18886 LIBS=$ac_check_lib_save_LIBS 18887 fi 18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18889 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18890 if test "x$ac_cv_lib_dld_dld_link" = xyes 18891 then : 18892 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18893 fi 18894 18895 18896 fi 18897 18898 18899 fi 18900 18901 18902 fi 18903 18904 18905 fi 18906 18907 18908 fi 18909 18910 ;; 18911 esac 18912 18913 if test no = "$lt_cv_dlopen"; then 18914 enable_dlopen=no 18915 else 18916 enable_dlopen=yes 18917 fi 18918 18919 case $lt_cv_dlopen in 18920 dlopen) 18921 save_CPPFLAGS=$CPPFLAGS 18922 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18923 18924 save_LDFLAGS=$LDFLAGS 18925 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18926 18927 save_LIBS=$LIBS 18928 LIBS="$lt_cv_dlopen_libs $LIBS" 18929 18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18931 printf %s "checking whether a program can dlopen itself... " >&6; } 18932 if test ${lt_cv_dlopen_self+y} 18933 then : 18934 printf %s "(cached) " >&6 18935 else $as_nop 18936 if test yes = "$cross_compiling"; then : 18937 lt_cv_dlopen_self=cross 18938 else 18939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18940 lt_status=$lt_dlunknown 18941 cat > conftest.$ac_ext <<_LT_EOF 18942 #line $LINENO "configure" 18943 #include "confdefs.h" 18944 18945 #if HAVE_DLFCN_H 18946 #include <dlfcn.h> 18947 #endif 18948 18949 #include <stdio.h> 18950 18951 #ifdef RTLD_GLOBAL 18952 # define LT_DLGLOBAL RTLD_GLOBAL 18953 #else 18954 # ifdef DL_GLOBAL 18955 # define LT_DLGLOBAL DL_GLOBAL 18956 # else 18957 # define LT_DLGLOBAL 0 18958 # endif 18959 #endif 18960 18961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18962 find out it does not work in some platform. */ 18963 #ifndef LT_DLLAZY_OR_NOW 18964 # ifdef RTLD_LAZY 18965 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18966 # else 18967 # ifdef DL_LAZY 18968 # define LT_DLLAZY_OR_NOW DL_LAZY 18969 # else 18970 # ifdef RTLD_NOW 18971 # define LT_DLLAZY_OR_NOW RTLD_NOW 18972 # else 18973 # ifdef DL_NOW 18974 # define LT_DLLAZY_OR_NOW DL_NOW 18975 # else 18976 # define LT_DLLAZY_OR_NOW 0 18977 # endif 18978 # endif 18979 # endif 18980 # endif 18981 #endif 18982 18983 /* When -fvisibility=hidden is used, assume the code has been annotated 18984 correspondingly for the symbols needed. */ 18985 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18986 int fnord () __attribute__((visibility("default"))); 18987 #endif 18988 18989 int fnord () { return 42; } 18990 int main () 18991 { 18992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18993 int status = $lt_dlunknown; 18994 18995 if (self) 18996 { 18997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18998 else 18999 { 19000 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19001 else puts (dlerror ()); 19002 } 19003 /* dlclose (self); */ 19004 } 19005 else 19006 puts (dlerror ()); 19007 19008 return status; 19009 } 19010 _LT_EOF 19011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19012 (eval $ac_link) 2>&5 19013 ac_status=$? 19014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19015 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19016 (./conftest; exit; ) >&5 2>/dev/null 19017 lt_status=$? 19018 case x$lt_status in 19019 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19020 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19021 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19022 esac 19023 else : 19024 # compilation failed 19025 lt_cv_dlopen_self=no 19026 fi 19027 fi 19028 rm -fr conftest* 19029 19030 19031 fi 19032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19033 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19034 19035 if test yes = "$lt_cv_dlopen_self"; then 19036 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19038 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19039 if test ${lt_cv_dlopen_self_static+y} 19040 then : 19041 printf %s "(cached) " >&6 19042 else $as_nop 19043 if test yes = "$cross_compiling"; then : 19044 lt_cv_dlopen_self_static=cross 19045 else 19046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19047 lt_status=$lt_dlunknown 19048 cat > conftest.$ac_ext <<_LT_EOF 19049 #line $LINENO "configure" 19050 #include "confdefs.h" 19051 19052 #if HAVE_DLFCN_H 19053 #include <dlfcn.h> 19054 #endif 19055 19056 #include <stdio.h> 19057 19058 #ifdef RTLD_GLOBAL 19059 # define LT_DLGLOBAL RTLD_GLOBAL 19060 #else 19061 # ifdef DL_GLOBAL 19062 # define LT_DLGLOBAL DL_GLOBAL 19063 # else 19064 # define LT_DLGLOBAL 0 19065 # endif 19066 #endif 19067 19068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19069 find out it does not work in some platform. */ 19070 #ifndef LT_DLLAZY_OR_NOW 19071 # ifdef RTLD_LAZY 19072 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19073 # else 19074 # ifdef DL_LAZY 19075 # define LT_DLLAZY_OR_NOW DL_LAZY 19076 # else 19077 # ifdef RTLD_NOW 19078 # define LT_DLLAZY_OR_NOW RTLD_NOW 19079 # else 19080 # ifdef DL_NOW 19081 # define LT_DLLAZY_OR_NOW DL_NOW 19082 # else 19083 # define LT_DLLAZY_OR_NOW 0 19084 # endif 19085 # endif 19086 # endif 19087 # endif 19088 #endif 19089 19090 /* When -fvisibility=hidden is used, assume the code has been annotated 19091 correspondingly for the symbols needed. */ 19092 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19093 int fnord () __attribute__((visibility("default"))); 19094 #endif 19095 19096 int fnord () { return 42; } 19097 int main () 19098 { 19099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19100 int status = $lt_dlunknown; 19101 19102 if (self) 19103 { 19104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19105 else 19106 { 19107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19108 else puts (dlerror ()); 19109 } 19110 /* dlclose (self); */ 19111 } 19112 else 19113 puts (dlerror ()); 19114 19115 return status; 19116 } 19117 _LT_EOF 19118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19119 (eval $ac_link) 2>&5 19120 ac_status=$? 19121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19122 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19123 (./conftest; exit; ) >&5 2>/dev/null 19124 lt_status=$? 19125 case x$lt_status in 19126 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19127 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19128 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19129 esac 19130 else : 19131 # compilation failed 19132 lt_cv_dlopen_self_static=no 19133 fi 19134 fi 19135 rm -fr conftest* 19136 19137 19138 fi 19139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19140 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19141 fi 19142 19143 CPPFLAGS=$save_CPPFLAGS 19144 LDFLAGS=$save_LDFLAGS 19145 LIBS=$save_LIBS 19146 ;; 19147 esac 19148 19149 case $lt_cv_dlopen_self in 19150 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19151 *) enable_dlopen_self=unknown ;; 19152 esac 19153 19154 case $lt_cv_dlopen_self_static in 19155 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19156 *) enable_dlopen_self_static=unknown ;; 19157 esac 19158 fi 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 striplib= 19177 old_striplib= 19178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19179 printf %s "checking whether stripping libraries is possible... " >&6; } 19180 if test -z "$STRIP"; then 19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19182 printf "%s\n" "no" >&6; } 19183 else 19184 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19185 old_striplib="$STRIP --strip-debug" 19186 striplib="$STRIP --strip-unneeded" 19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19188 printf "%s\n" "yes" >&6; } 19189 else 19190 case $host_os in 19191 darwin*) 19192 # FIXME - insert some real tests, host_os isn't really good enough 19193 striplib="$STRIP -x" 19194 old_striplib="$STRIP -S" 19195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19196 printf "%s\n" "yes" >&6; } 19197 ;; 19198 freebsd*) 19199 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19200 old_striplib="$STRIP --strip-debug" 19201 striplib="$STRIP --strip-unneeded" 19202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19203 printf "%s\n" "yes" >&6; } 19204 else 19205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19206 printf "%s\n" "no" >&6; } 19207 fi 19208 ;; 19209 *) 19210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19211 printf "%s\n" "no" >&6; } 19212 ;; 19213 esac 19214 fi 19215 fi 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 # Report what library types will actually be built 19229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19230 printf %s "checking if libtool supports shared libraries... " >&6; } 19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19232 printf "%s\n" "$can_build_shared" >&6; } 19233 19234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19235 printf %s "checking whether to build shared libraries... " >&6; } 19236 test no = "$can_build_shared" && enable_shared=no 19237 19238 # On AIX, shared libraries and static libraries use the same namespace, and 19239 # are all built from PIC. 19240 case $host_os in 19241 aix3*) 19242 test yes = "$enable_shared" && enable_static=no 19243 if test -n "$RANLIB"; then 19244 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19245 postinstall_cmds='$RANLIB $lib' 19246 fi 19247 ;; 19248 19249 aix[4-9]*) 19250 if test ia64 != "$host_cpu"; then 19251 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19252 yes,aix,yes) ;; # shared object as lib.so file only 19253 yes,svr4,*) ;; # shared object as lib.so archive member only 19254 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19255 esac 19256 fi 19257 ;; 19258 esac 19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19260 printf "%s\n" "$enable_shared" >&6; } 19261 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19263 printf %s "checking whether to build static libraries... " >&6; } 19264 # Make sure either enable_shared or enable_static is yes. 19265 test yes = "$enable_shared" || enable_static=yes 19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19267 printf "%s\n" "$enable_static" >&6; } 19268 19269 19270 19271 19272 fi 19273 ac_ext=c 19274 ac_cpp='$CPP $CPPFLAGS' 19275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19277 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19278 19279 CC=$lt_save_CC 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 ac_config_commands="$ac_config_commands libtool" 19296 19297 19298 19299 19300 # Only expand once: 19301 19302 19303 19304 19305 19306 # Define a configure option for an alternate module directory 19307 19308 # Check whether --with-xorg-module-dir was given. 19309 if test ${with_xorg_module_dir+y} 19310 then : 19311 withval=$with_xorg_module_dir; moduledir="$withval" 19312 else $as_nop 19313 moduledir="$libdir/xorg/modules" 19314 fi 19315 19316 19317 # Store the list of server defined optional extensions in REQUIRED_MODULES 19318 19319 19320 SAVE_CFLAGS="$CFLAGS" 19321 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19323 /* end confdefs.h. */ 19324 19325 #include "xorg-server.h" 19326 #if !defined RANDR 19327 #error RANDR not defined 19328 #endif 19329 19330 int 19331 main (void) 19332 { 19333 19334 ; 19335 return 0; 19336 } 19337 _ACEOF 19338 if ac_fn_c_try_compile "$LINENO" 19339 then : 19340 _EXT_CHECK=yes 19341 else $as_nop 19342 _EXT_CHECK=no 19343 fi 19344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19345 CFLAGS="$SAVE_CFLAGS" 19346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19347 printf %s "checking if RANDR is defined... " >&6; } 19348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19349 printf "%s\n" "$_EXT_CHECK" >&6; } 19350 if test "$_EXT_CHECK" != no; then 19351 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19352 fi 19353 19354 19355 19356 SAVE_CFLAGS="$CFLAGS" 19357 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19359 /* end confdefs.h. */ 19360 19361 #include "xorg-server.h" 19362 #if !defined RENDER 19363 #error RENDER not defined 19364 #endif 19365 19366 int 19367 main (void) 19368 { 19369 19370 ; 19371 return 0; 19372 } 19373 _ACEOF 19374 if ac_fn_c_try_compile "$LINENO" 19375 then : 19376 _EXT_CHECK=yes 19377 else $as_nop 19378 _EXT_CHECK=no 19379 fi 19380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19381 CFLAGS="$SAVE_CFLAGS" 19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19383 printf %s "checking if RENDER is defined... " >&6; } 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19385 printf "%s\n" "$_EXT_CHECK" >&6; } 19386 if test "$_EXT_CHECK" != no; then 19387 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19388 fi 19389 19390 19391 19392 SAVE_CFLAGS="$CFLAGS" 19393 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19395 /* end confdefs.h. */ 19396 19397 #include "xorg-server.h" 19398 #if !defined XV 19399 #error XV not defined 19400 #endif 19401 19402 int 19403 main (void) 19404 { 19405 19406 ; 19407 return 0; 19408 } 19409 _ACEOF 19410 if ac_fn_c_try_compile "$LINENO" 19411 then : 19412 _EXT_CHECK=yes 19413 else $as_nop 19414 _EXT_CHECK=no 19415 fi 19416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19417 CFLAGS="$SAVE_CFLAGS" 19418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19419 printf %s "checking if XV is defined... " >&6; } 19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19421 printf "%s\n" "$_EXT_CHECK" >&6; } 19422 if test "$_EXT_CHECK" != no; then 19423 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19424 fi 19425 19426 19427 19428 SAVE_CFLAGS="$CFLAGS" 19429 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19431 /* end confdefs.h. */ 19432 19433 #include "xorg-server.h" 19434 #if !defined DPMSExtension 19435 #error DPMSExtension not defined 19436 #endif 19437 19438 int 19439 main (void) 19440 { 19441 19442 ; 19443 return 0; 19444 } 19445 _ACEOF 19446 if ac_fn_c_try_compile "$LINENO" 19447 then : 19448 _EXT_CHECK=yes 19449 else $as_nop 19450 _EXT_CHECK=no 19451 fi 19452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19453 CFLAGS="$SAVE_CFLAGS" 19454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19455 printf %s "checking if DPMSExtension is defined... " >&6; } 19456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19457 printf "%s\n" "$_EXT_CHECK" >&6; } 19458 if test "$_EXT_CHECK" != no; then 19459 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19460 fi 19461 19462 19463 # Obtain compiler/linker options for the driver dependencies 19464 19465 pkg_failed=no 19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19467 printf %s "checking for XORG... " >&6; } 19468 19469 if test -n "$XORG_CFLAGS"; then 19470 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19471 elif test -n "$PKG_CONFIG"; then 19472 if test -n "$PKG_CONFIG" && \ 19473 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19474 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19475 ac_status=$? 19476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19477 test $ac_status = 0; }; then 19478 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19479 test "x$?" != "x0" && pkg_failed=yes 19480 else 19481 pkg_failed=yes 19482 fi 19483 else 19484 pkg_failed=untried 19485 fi 19486 if test -n "$XORG_LIBS"; then 19487 pkg_cv_XORG_LIBS="$XORG_LIBS" 19488 elif test -n "$PKG_CONFIG"; then 19489 if test -n "$PKG_CONFIG" && \ 19490 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19491 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19492 ac_status=$? 19493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19494 test $ac_status = 0; }; then 19495 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19496 test "x$?" != "x0" && pkg_failed=yes 19497 else 19498 pkg_failed=yes 19499 fi 19500 else 19501 pkg_failed=untried 19502 fi 19503 19504 19505 19506 if test $pkg_failed = yes; then 19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19508 printf "%s\n" "no" >&6; } 19509 19510 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19511 _pkg_short_errors_supported=yes 19512 else 19513 _pkg_short_errors_supported=no 19514 fi 19515 if test $_pkg_short_errors_supported = yes; then 19516 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19517 else 19518 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19519 fi 19520 # Put the nasty error message in config.log where it belongs 19521 echo "$XORG_PKG_ERRORS" >&5 19522 19523 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19524 19525 $XORG_PKG_ERRORS 19526 19527 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19528 installed software in a non-standard prefix. 19529 19530 Alternatively, you may set the environment variables XORG_CFLAGS 19531 and XORG_LIBS to avoid the need to call pkg-config. 19532 See the pkg-config man page for more details." "$LINENO" 5 19533 elif test $pkg_failed = untried; then 19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19535 printf "%s\n" "no" >&6; } 19536 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19537 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19538 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19539 is in your PATH or set the PKG_CONFIG environment variable to the full 19540 path to pkg-config. 19541 19542 Alternatively, you may set the environment variables XORG_CFLAGS 19543 and XORG_LIBS to avoid the need to call pkg-config. 19544 See the pkg-config man page for more details. 19545 19546 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19547 See \`config.log' for more details" "$LINENO" 5; } 19548 else 19549 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19550 XORG_LIBS=$pkg_cv_XORG_LIBS 19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19552 printf "%s\n" "yes" >&6; } 19553 19554 fi 19555 19556 pkg_failed=no 19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19558 printf %s "checking for XEXT... " >&6; } 19559 19560 if test -n "$XEXT_CFLAGS"; then 19561 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19562 elif test -n "$PKG_CONFIG"; then 19563 if test -n "$PKG_CONFIG" && \ 19564 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19565 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19566 ac_status=$? 19567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19568 test $ac_status = 0; }; then 19569 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19570 test "x$?" != "x0" && pkg_failed=yes 19571 else 19572 pkg_failed=yes 19573 fi 19574 else 19575 pkg_failed=untried 19576 fi 19577 if test -n "$XEXT_LIBS"; then 19578 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19579 elif test -n "$PKG_CONFIG"; then 19580 if test -n "$PKG_CONFIG" && \ 19581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19582 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19583 ac_status=$? 19584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19585 test $ac_status = 0; }; then 19586 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19587 test "x$?" != "x0" && pkg_failed=yes 19588 else 19589 pkg_failed=yes 19590 fi 19591 else 19592 pkg_failed=untried 19593 fi 19594 19595 19596 19597 if test $pkg_failed = yes; then 19598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19599 printf "%s\n" "no" >&6; } 19600 19601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19602 _pkg_short_errors_supported=yes 19603 else 19604 _pkg_short_errors_supported=no 19605 fi 19606 if test $_pkg_short_errors_supported = yes; then 19607 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19608 else 19609 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19610 fi 19611 # Put the nasty error message in config.log where it belongs 19612 echo "$XEXT_PKG_ERRORS" >&5 19613 19614 HAVE_XEXTPROTO_71="no" 19615 elif test $pkg_failed = untried; then 19616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19617 printf "%s\n" "no" >&6; } 19618 HAVE_XEXTPROTO_71="no" 19619 else 19620 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19621 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19623 printf "%s\n" "yes" >&6; } 19624 HAVE_XEXTPROTO_71="yes"; 19625 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19626 19627 fi 19628 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 19629 HAVE_XEXTPROTO_71_TRUE= 19630 HAVE_XEXTPROTO_71_FALSE='#' 19631 else 19632 HAVE_XEXTPROTO_71_TRUE='#' 19633 HAVE_XEXTPROTO_71_FALSE= 19634 fi 19635 19636 19637 # Checks for libraries. 19638 SAVE_CPPFLAGS="$CPPFLAGS" 19639 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19640 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19641 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19642 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19643 then : 19644 XSERVER_LIBPCIACCESS=yes 19645 else $as_nop 19646 XSERVER_LIBPCIACCESS=no 19647 fi 19648 CPPFLAGS="$SAVE_CPPFLAGS" 19649 19650 19651 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19652 19653 pkg_failed=no 19654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19655 printf %s "checking for PCIACCESS... " >&6; } 19656 19657 if test -n "$PCIACCESS_CFLAGS"; then 19658 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19659 elif test -n "$PKG_CONFIG"; then 19660 if test -n "$PKG_CONFIG" && \ 19661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19662 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19663 ac_status=$? 19664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19665 test $ac_status = 0; }; then 19666 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19667 test "x$?" != "x0" && pkg_failed=yes 19668 else 19669 pkg_failed=yes 19670 fi 19671 else 19672 pkg_failed=untried 19673 fi 19674 if test -n "$PCIACCESS_LIBS"; then 19675 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19676 elif test -n "$PKG_CONFIG"; then 19677 if test -n "$PKG_CONFIG" && \ 19678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19679 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19680 ac_status=$? 19681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19682 test $ac_status = 0; }; then 19683 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19684 test "x$?" != "x0" && pkg_failed=yes 19685 else 19686 pkg_failed=yes 19687 fi 19688 else 19689 pkg_failed=untried 19690 fi 19691 19692 19693 19694 if test $pkg_failed = yes; then 19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19696 printf "%s\n" "no" >&6; } 19697 19698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19699 _pkg_short_errors_supported=yes 19700 else 19701 _pkg_short_errors_supported=no 19702 fi 19703 if test $_pkg_short_errors_supported = yes; then 19704 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19705 else 19706 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19707 fi 19708 # Put the nasty error message in config.log where it belongs 19709 echo "$PCIACCESS_PKG_ERRORS" >&5 19710 19711 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19712 19713 $PCIACCESS_PKG_ERRORS 19714 19715 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19716 installed software in a non-standard prefix. 19717 19718 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19719 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19720 See the pkg-config man page for more details." "$LINENO" 5 19721 elif test $pkg_failed = untried; then 19722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19723 printf "%s\n" "no" >&6; } 19724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19725 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19726 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19727 is in your PATH or set the PKG_CONFIG environment variable to the full 19728 path to pkg-config. 19729 19730 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19731 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19732 See the pkg-config man page for more details. 19733 19734 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19735 See \`config.log' for more details" "$LINENO" 5; } 19736 else 19737 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19738 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19740 printf "%s\n" "yes" >&6; } 19741 19742 fi 19743 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19744 fi 19745 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19746 XSERVER_LIBPCIACCESS_TRUE= 19747 XSERVER_LIBPCIACCESS_FALSE='#' 19748 else 19749 XSERVER_LIBPCIACCESS_TRUE='#' 19750 XSERVER_LIBPCIACCESS_FALSE= 19751 fi 19752 19753 19754 # Check whether --enable-xaa was given. 19755 if test ${enable_xaa+y} 19756 then : 19757 enableval=$enable_xaa; XAA="$enableval" 19758 else $as_nop 19759 XAA=auto 19760 fi 19761 19762 if test "x$XAA" != xno; then 19763 save_CFLAGS=$CFLAGS 19764 save_CPPFLAGS=$CPPFLAGS 19765 CFLAGS=$XORG_CFLAGS 19766 CPPFLAGS="$XORG_CFLAGS" 19767 for ac_header in xaa.h 19768 do : 19769 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19770 if test "x$ac_cv_header_xaa_h" = xyes 19771 then : 19772 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19773 XAA=yes 19774 else $as_nop 19775 XAA=no 19776 fi 19777 19778 done 19779 CFLAGS=$save_CFLAGS 19780 CPPFLAGS=$save_CPPFLAGS 19781 fi 19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19783 printf %s "checking whether to include XAA support... " >&6; } 19784 if test "x$XAA" = xyes; then 19785 XAA_TRUE= 19786 XAA_FALSE='#' 19787 else 19788 XAA_TRUE='#' 19789 XAA_FALSE= 19790 fi 19791 19792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19793 printf "%s\n" "$XAA" >&6; } 19794 19795 19796 19797 DRIVER_NAME=s3virge 19798 19799 19800 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19801 19802 cat >confcache <<\_ACEOF 19803 # This file is a shell script that caches the results of configure 19804 # tests run on this system so they can be shared between configure 19805 # scripts and configure runs, see configure's option --config-cache. 19806 # It is not useful on other systems. If it contains results you don't 19807 # want to keep, you may remove or edit it. 19808 # 19809 # config.status only pays attention to the cache file if you give it 19810 # the --recheck option to rerun configure. 19811 # 19812 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19813 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19814 # following values. 19815 19816 _ACEOF 19817 19818 # The following way of writing the cache mishandles newlines in values, 19819 # but we know of no workaround that is simple, portable, and efficient. 19820 # So, we kill variables containing newlines. 19821 # Ultrix sh set writes to stderr and can't be redirected directly, 19822 # and sets the high bit in the cache file unless we assign to the vars. 19823 ( 19824 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19825 eval ac_val=\$$ac_var 19826 case $ac_val in #( 19827 *${as_nl}*) 19828 case $ac_var in #( 19829 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19830 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19831 esac 19832 case $ac_var in #( 19833 _ | IFS | as_nl) ;; #( 19834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19835 *) { eval $ac_var=; unset $ac_var;} ;; 19836 esac ;; 19837 esac 19838 done 19839 19840 (set) 2>&1 | 19841 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19842 *${as_nl}ac_space=\ *) 19843 # `set' does not quote correctly, so add quotes: double-quote 19844 # substitution turns \\\\ into \\, and sed turns \\ into \. 19845 sed -n \ 19846 "s/'/'\\\\''/g; 19847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19848 ;; #( 19849 *) 19850 # `set' quotes correctly as required by POSIX, so do not add quotes. 19851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19852 ;; 19853 esac | 19854 sort 19855 ) | 19856 sed ' 19857 /^ac_cv_env_/b end 19858 t clear 19859 :clear 19860 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19861 t end 19862 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19863 :end' >>confcache 19864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19865 if test -w "$cache_file"; then 19866 if test "x$cache_file" != "x/dev/null"; then 19867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19868 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19869 if test ! -f "$cache_file" || test -h "$cache_file"; then 19870 cat confcache >"$cache_file" 19871 else 19872 case $cache_file in #( 19873 */* | ?:*) 19874 mv -f confcache "$cache_file"$$ && 19875 mv -f "$cache_file"$$ "$cache_file" ;; #( 19876 *) 19877 mv -f confcache "$cache_file" ;; 19878 esac 19879 fi 19880 fi 19881 else 19882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19883 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19884 fi 19885 fi 19886 rm -f confcache 19887 19888 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19889 # Let make expand exec_prefix. 19890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19891 19892 DEFS=-DHAVE_CONFIG_H 19893 19894 ac_libobjs= 19895 ac_ltlibobjs= 19896 U= 19897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19898 # 1. Remove the extension, and $U if already installed. 19899 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19900 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19901 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19902 # will be set to the directory where LIBOBJS objects are built. 19903 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19904 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19905 done 19906 LIBOBJS=$ac_libobjs 19907 19908 LTLIBOBJS=$ac_ltlibobjs 19909 19910 19911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19912 printf %s "checking that generated files are newer than configure... " >&6; } 19913 if test -n "$am_sleep_pid"; then 19914 # Hide warnings about reused PIDs. 19915 wait $am_sleep_pid 2>/dev/null 19916 fi 19917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19918 printf "%s\n" "done" >&6; } 19919 if test -n "$EXEEXT"; then 19920 am__EXEEXT_TRUE= 19921 am__EXEEXT_FALSE='#' 19922 else 19923 am__EXEEXT_TRUE='#' 19924 am__EXEEXT_FALSE= 19925 fi 19926 19927 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19928 as_fn_error $? "conditional \"AMDEP\" was never defined. 19929 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19930 fi 19931 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19932 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19933 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19934 fi 19935 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 19936 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 19937 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19938 fi 19939 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19940 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19941 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19942 fi 19943 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19944 as_fn_error $? "conditional \"XAA\" was never defined. 19945 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19946 fi 19947 19948 : "${CONFIG_STATUS=./config.status}" 19949 ac_write_fail=0 19950 ac_clean_files_save=$ac_clean_files 19951 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19953 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19954 as_write_fail=0 19955 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19956 #! $SHELL 19957 # Generated by $as_me. 19958 # Run this file to recreate the current configuration. 19959 # Compiler output produced by configure, useful for debugging 19960 # configure, is in config.log if it exists. 19961 19962 debug=false 19963 ac_cs_recheck=false 19964 ac_cs_silent=false 19965 19966 SHELL=\${CONFIG_SHELL-$SHELL} 19967 export SHELL 19968 _ASEOF 19969 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19970 ## -------------------- ## 19971 ## M4sh Initialization. ## 19972 ## -------------------- ## 19973 19974 # Be more Bourne compatible 19975 DUALCASE=1; export DUALCASE # for MKS sh 19976 as_nop=: 19977 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19978 then : 19979 emulate sh 19980 NULLCMD=: 19981 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19982 # is contrary to our usage. Disable this feature. 19983 alias -g '${1+"$@"}'='"$@"' 19984 setopt NO_GLOB_SUBST 19985 else $as_nop 19986 case `(set -o) 2>/dev/null` in #( 19987 *posix*) : 19988 set -o posix ;; #( 19989 *) : 19990 ;; 19991 esac 19992 fi 19993 19994 19995 19996 # Reset variables that may have inherited troublesome values from 19997 # the environment. 19998 19999 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20000 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20001 # side effect of setting IFS to empty, thus disabling word splitting.) 20002 # Quoting is to prevent editors from complaining about space-tab. 20003 as_nl=' 20004 ' 20005 export as_nl 20006 IFS=" "" $as_nl" 20007 20008 PS1='$ ' 20009 PS2='> ' 20010 PS4='+ ' 20011 20012 # Ensure predictable behavior from utilities with locale-dependent output. 20013 LC_ALL=C 20014 export LC_ALL 20015 LANGUAGE=C 20016 export LANGUAGE 20017 20018 # We cannot yet rely on "unset" to work, but we need these variables 20019 # to be unset--not just set to an empty or harmless value--now, to 20020 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20021 # also avoids known problems related to "unset" and subshell syntax 20022 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20023 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20024 do eval test \${$as_var+y} \ 20025 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20026 done 20027 20028 # Ensure that fds 0, 1, and 2 are open. 20029 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20030 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20031 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20032 20033 # The user is always right. 20034 if ${PATH_SEPARATOR+false} :; then 20035 PATH_SEPARATOR=: 20036 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20037 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20038 PATH_SEPARATOR=';' 20039 } 20040 fi 20041 20042 20043 # Find who we are. Look in the path if we contain no directory separator. 20044 as_myself= 20045 case $0 in #(( 20046 *[\\/]* ) as_myself=$0 ;; 20047 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20048 for as_dir in $PATH 20049 do 20050 IFS=$as_save_IFS 20051 case $as_dir in #((( 20052 '') as_dir=./ ;; 20053 */) ;; 20054 *) as_dir=$as_dir/ ;; 20055 esac 20056 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20057 done 20058 IFS=$as_save_IFS 20059 20060 ;; 20061 esac 20062 # We did not find ourselves, most probably we were run as `sh COMMAND' 20063 # in which case we are not to be found in the path. 20064 if test "x$as_myself" = x; then 20065 as_myself=$0 20066 fi 20067 if test ! -f "$as_myself"; then 20068 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20069 exit 1 20070 fi 20071 20072 20073 20074 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20075 # ---------------------------------------- 20076 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20077 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20078 # script with STATUS, using 1 if that was 0. 20079 as_fn_error () 20080 { 20081 as_status=$1; test $as_status -eq 0 && as_status=1 20082 if test "$4"; then 20083 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20085 fi 20086 printf "%s\n" "$as_me: error: $2" >&2 20087 as_fn_exit $as_status 20088 } # as_fn_error 20089 20090 20091 20092 # as_fn_set_status STATUS 20093 # ----------------------- 20094 # Set $? to STATUS, without forking. 20095 as_fn_set_status () 20096 { 20097 return $1 20098 } # as_fn_set_status 20099 20100 # as_fn_exit STATUS 20101 # ----------------- 20102 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20103 as_fn_exit () 20104 { 20105 set +e 20106 as_fn_set_status $1 20107 exit $1 20108 } # as_fn_exit 20109 20110 # as_fn_unset VAR 20111 # --------------- 20112 # Portably unset VAR. 20113 as_fn_unset () 20114 { 20115 { eval $1=; unset $1;} 20116 } 20117 as_unset=as_fn_unset 20118 20119 # as_fn_append VAR VALUE 20120 # ---------------------- 20121 # Append the text in VALUE to the end of the definition contained in VAR. Take 20122 # advantage of any shell optimizations that allow amortized linear growth over 20123 # repeated appends, instead of the typical quadratic growth present in naive 20124 # implementations. 20125 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20126 then : 20127 eval 'as_fn_append () 20128 { 20129 eval $1+=\$2 20130 }' 20131 else $as_nop 20132 as_fn_append () 20133 { 20134 eval $1=\$$1\$2 20135 } 20136 fi # as_fn_append 20137 20138 # as_fn_arith ARG... 20139 # ------------------ 20140 # Perform arithmetic evaluation on the ARGs, and store the result in the 20141 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20142 # must be portable across $(()) and expr. 20143 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20144 then : 20145 eval 'as_fn_arith () 20146 { 20147 as_val=$(( $* )) 20148 }' 20149 else $as_nop 20150 as_fn_arith () 20151 { 20152 as_val=`expr "$@" || test $? -eq 1` 20153 } 20154 fi # as_fn_arith 20155 20156 20157 if expr a : '\(a\)' >/dev/null 2>&1 && 20158 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20159 as_expr=expr 20160 else 20161 as_expr=false 20162 fi 20163 20164 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20165 as_basename=basename 20166 else 20167 as_basename=false 20168 fi 20169 20170 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20171 as_dirname=dirname 20172 else 20173 as_dirname=false 20174 fi 20175 20176 as_me=`$as_basename -- "$0" || 20177 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20178 X"$0" : 'X\(//\)$' \| \ 20179 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20180 printf "%s\n" X/"$0" | 20181 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20182 s//\1/ 20183 q 20184 } 20185 /^X\/\(\/\/\)$/{ 20186 s//\1/ 20187 q 20188 } 20189 /^X\/\(\/\).*/{ 20190 s//\1/ 20191 q 20192 } 20193 s/.*/./; q'` 20194 20195 # Avoid depending upon Character Ranges. 20196 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20199 as_cr_digits='0123456789' 20200 as_cr_alnum=$as_cr_Letters$as_cr_digits 20201 20202 20203 # Determine whether it's possible to make 'echo' print without a newline. 20204 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20205 # for compatibility with existing Makefiles. 20206 ECHO_C= ECHO_N= ECHO_T= 20207 case `echo -n x` in #((((( 20208 -n*) 20209 case `echo 'xy\c'` in 20210 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20211 xy) ECHO_C='\c';; 20212 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20213 ECHO_T=' ';; 20214 esac;; 20215 *) 20216 ECHO_N='-n';; 20217 esac 20218 20219 # For backward compatibility with old third-party macros, we provide 20220 # the shell variables $as_echo and $as_echo_n. New code should use 20221 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20222 as_echo='printf %s\n' 20223 as_echo_n='printf %s' 20224 20225 rm -f conf$$ conf$$.exe conf$$.file 20226 if test -d conf$$.dir; then 20227 rm -f conf$$.dir/conf$$.file 20228 else 20229 rm -f conf$$.dir 20230 mkdir conf$$.dir 2>/dev/null 20231 fi 20232 if (echo >conf$$.file) 2>/dev/null; then 20233 if ln -s conf$$.file conf$$ 2>/dev/null; then 20234 as_ln_s='ln -s' 20235 # ... but there are two gotchas: 20236 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20237 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20238 # In both cases, we have to default to `cp -pR'. 20239 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20240 as_ln_s='cp -pR' 20241 elif ln conf$$.file conf$$ 2>/dev/null; then 20242 as_ln_s=ln 20243 else 20244 as_ln_s='cp -pR' 20245 fi 20246 else 20247 as_ln_s='cp -pR' 20248 fi 20249 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20250 rmdir conf$$.dir 2>/dev/null 20251 20252 20253 # as_fn_mkdir_p 20254 # ------------- 20255 # Create "$as_dir" as a directory, including parents if necessary. 20256 as_fn_mkdir_p () 20257 { 20258 20259 case $as_dir in #( 20260 -*) as_dir=./$as_dir;; 20261 esac 20262 test -d "$as_dir" || eval $as_mkdir_p || { 20263 as_dirs= 20264 while :; do 20265 case $as_dir in #( 20266 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20267 *) as_qdir=$as_dir;; 20268 esac 20269 as_dirs="'$as_qdir' $as_dirs" 20270 as_dir=`$as_dirname -- "$as_dir" || 20271 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20272 X"$as_dir" : 'X\(//\)[^/]' \| \ 20273 X"$as_dir" : 'X\(//\)$' \| \ 20274 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20275 printf "%s\n" X"$as_dir" | 20276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20277 s//\1/ 20278 q 20279 } 20280 /^X\(\/\/\)[^/].*/{ 20281 s//\1/ 20282 q 20283 } 20284 /^X\(\/\/\)$/{ 20285 s//\1/ 20286 q 20287 } 20288 /^X\(\/\).*/{ 20289 s//\1/ 20290 q 20291 } 20292 s/.*/./; q'` 20293 test -d "$as_dir" && break 20294 done 20295 test -z "$as_dirs" || eval "mkdir $as_dirs" 20296 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20297 20298 20299 } # as_fn_mkdir_p 20300 if mkdir -p . 2>/dev/null; then 20301 as_mkdir_p='mkdir -p "$as_dir"' 20302 else 20303 test -d ./-p && rmdir ./-p 20304 as_mkdir_p=false 20305 fi 20306 20307 20308 # as_fn_executable_p FILE 20309 # ----------------------- 20310 # Test if FILE is an executable regular file. 20311 as_fn_executable_p () 20312 { 20313 test -f "$1" && test -x "$1" 20314 } # as_fn_executable_p 20315 as_test_x='test -x' 20316 as_executable_p=as_fn_executable_p 20317 20318 # Sed expression to map a string onto a valid CPP name. 20319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20320 20321 # Sed expression to map a string onto a valid variable name. 20322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20323 20324 20325 exec 6>&1 20326 ## ----------------------------------- ## 20327 ## Main body of $CONFIG_STATUS script. ## 20328 ## ----------------------------------- ## 20329 _ASEOF 20330 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20331 20332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20333 # Save the log message, to keep $0 and so on meaningful, and to 20334 # report actual input values of CONFIG_FILES etc. instead of their 20335 # values after options handling. 20336 ac_log=" 20337 This file was extended by xf86-video-s3virge $as_me 1.11.1, which was 20338 generated by GNU Autoconf 2.71. Invocation command line was 20339 20340 CONFIG_FILES = $CONFIG_FILES 20341 CONFIG_HEADERS = $CONFIG_HEADERS 20342 CONFIG_LINKS = $CONFIG_LINKS 20343 CONFIG_COMMANDS = $CONFIG_COMMANDS 20344 $ $0 $@ 20345 20346 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20347 " 20348 20349 _ACEOF 20350 20351 case $ac_config_files in *" 20352 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20353 esac 20354 20355 case $ac_config_headers in *" 20356 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20357 esac 20358 20359 20360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20361 # Files that config.status was made for. 20362 config_files="$ac_config_files" 20363 config_headers="$ac_config_headers" 20364 config_commands="$ac_config_commands" 20365 20366 _ACEOF 20367 20368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20369 ac_cs_usage="\ 20370 \`$as_me' instantiates files and other configuration actions 20371 from templates according to the current configuration. Unless the files 20372 and actions are specified as TAGs, all are instantiated by default. 20373 20374 Usage: $0 [OPTION]... [TAG]... 20375 20376 -h, --help print this help, then exit 20377 -V, --version print version number and configuration settings, then exit 20378 --config print configuration, then exit 20379 -q, --quiet, --silent 20380 do not print progress messages 20381 -d, --debug don't remove temporary files 20382 --recheck update $as_me by reconfiguring in the same conditions 20383 --file=FILE[:TEMPLATE] 20384 instantiate the configuration file FILE 20385 --header=FILE[:TEMPLATE] 20386 instantiate the configuration header FILE 20387 20388 Configuration files: 20389 $config_files 20390 20391 Configuration headers: 20392 $config_headers 20393 20394 Configuration commands: 20395 $config_commands 20396 20397 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/-/issues>." 20398 20399 _ACEOF 20400 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20401 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20403 ac_cs_config='$ac_cs_config_escaped' 20404 ac_cs_version="\\ 20405 xf86-video-s3virge config.status 1.11.1 20406 configured by $0, generated by GNU Autoconf 2.71, 20407 with options \\"\$ac_cs_config\\" 20408 20409 Copyright (C) 2021 Free Software Foundation, Inc. 20410 This config.status script is free software; the Free Software Foundation 20411 gives unlimited permission to copy, distribute and modify it." 20412 20413 ac_pwd='$ac_pwd' 20414 srcdir='$srcdir' 20415 INSTALL='$INSTALL' 20416 MKDIR_P='$MKDIR_P' 20417 AWK='$AWK' 20418 test -n "\$AWK" || AWK=awk 20419 _ACEOF 20420 20421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20422 # The default lists apply if the user does not specify any file. 20423 ac_need_defaults=: 20424 while test $# != 0 20425 do 20426 case $1 in 20427 --*=?*) 20428 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20429 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20430 ac_shift=: 20431 ;; 20432 --*=) 20433 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20434 ac_optarg= 20435 ac_shift=: 20436 ;; 20437 *) 20438 ac_option=$1 20439 ac_optarg=$2 20440 ac_shift=shift 20441 ;; 20442 esac 20443 20444 case $ac_option in 20445 # Handling of the options. 20446 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20447 ac_cs_recheck=: ;; 20448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20449 printf "%s\n" "$ac_cs_version"; exit ;; 20450 --config | --confi | --conf | --con | --co | --c ) 20451 printf "%s\n" "$ac_cs_config"; exit ;; 20452 --debug | --debu | --deb | --de | --d | -d ) 20453 debug=: ;; 20454 --file | --fil | --fi | --f ) 20455 $ac_shift 20456 case $ac_optarg in 20457 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20458 '') as_fn_error $? "missing file argument" ;; 20459 esac 20460 as_fn_append CONFIG_FILES " '$ac_optarg'" 20461 ac_need_defaults=false;; 20462 --header | --heade | --head | --hea ) 20463 $ac_shift 20464 case $ac_optarg in 20465 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20466 esac 20467 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20468 ac_need_defaults=false;; 20469 --he | --h) 20470 # Conflict between --help and --header 20471 as_fn_error $? "ambiguous option: \`$1' 20472 Try \`$0 --help' for more information.";; 20473 --help | --hel | -h ) 20474 printf "%s\n" "$ac_cs_usage"; exit ;; 20475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20476 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20477 ac_cs_silent=: ;; 20478 20479 # This is an error. 20480 -*) as_fn_error $? "unrecognized option: \`$1' 20481 Try \`$0 --help' for more information." ;; 20482 20483 *) as_fn_append ac_config_targets " $1" 20484 ac_need_defaults=false ;; 20485 20486 esac 20487 shift 20488 done 20489 20490 ac_configure_extra_args= 20491 20492 if $ac_cs_silent; then 20493 exec 6>/dev/null 20494 ac_configure_extra_args="$ac_configure_extra_args --silent" 20495 fi 20496 20497 _ACEOF 20498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20499 if \$ac_cs_recheck; then 20500 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20501 shift 20502 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20503 CONFIG_SHELL='$SHELL' 20504 export CONFIG_SHELL 20505 exec "\$@" 20506 fi 20507 20508 _ACEOF 20509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20510 exec 5>>config.log 20511 { 20512 echo 20513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20514 ## Running $as_me. ## 20515 _ASBOX 20516 printf "%s\n" "$ac_log" 20517 } >&5 20518 20519 _ACEOF 20520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20521 # 20522 # INIT-COMMANDS 20523 # 20524 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20525 20526 20527 # The HP-UX ksh and POSIX shell print the target directory to stdout 20528 # if CDPATH is set. 20529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20530 20531 sed_quote_subst='$sed_quote_subst' 20532 double_quote_subst='$double_quote_subst' 20533 delay_variable_subst='$delay_variable_subst' 20534 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20535 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20536 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20537 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20538 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20539 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20540 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20541 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20542 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20543 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20544 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20545 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20546 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20547 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20548 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20549 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20550 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20551 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20552 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20553 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20554 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20555 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20556 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20557 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20558 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20559 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20560 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20561 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20562 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20563 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20564 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20565 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20566 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20567 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20568 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20569 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20570 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20571 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20572 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20573 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20574 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20575 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20576 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20577 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20578 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20579 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20580 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20581 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20582 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20583 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20584 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20585 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20586 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20587 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20588 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20589 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20590 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20591 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20592 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20593 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20594 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"`' 20595 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20596 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20597 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20598 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20599 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20600 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20601 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20602 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20603 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20604 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20605 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20606 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20607 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20608 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20609 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20610 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20611 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20612 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20613 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20614 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20615 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20616 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20617 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20618 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20619 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20620 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20621 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20622 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20623 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20624 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20625 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20626 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20627 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20628 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20629 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20630 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20631 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20632 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20633 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20634 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20635 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20636 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20637 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20638 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20639 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20640 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20641 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20642 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20643 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20644 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20645 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20646 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20647 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20648 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20649 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20650 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20651 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20652 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20653 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20654 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20655 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20656 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20657 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20658 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20659 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20660 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20661 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20662 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20663 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20664 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20665 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20666 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20667 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20668 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20669 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20670 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20671 20672 LTCC='$LTCC' 20673 LTCFLAGS='$LTCFLAGS' 20674 compiler='$compiler_DEFAULT' 20675 20676 # A function that is used when there is no print builtin or printf. 20677 func_fallback_echo () 20678 { 20679 eval 'cat <<_LTECHO_EOF 20680 \$1 20681 _LTECHO_EOF' 20682 } 20683 20684 # Quote evaled strings. 20685 for var in SHELL \ 20686 ECHO \ 20687 PATH_SEPARATOR \ 20688 SED \ 20689 GREP \ 20690 EGREP \ 20691 FGREP \ 20692 LD \ 20693 NM \ 20694 LN_S \ 20695 lt_SP2NL \ 20696 lt_NL2SP \ 20697 reload_flag \ 20698 FILECMD \ 20699 OBJDUMP \ 20700 deplibs_check_method \ 20701 file_magic_cmd \ 20702 file_magic_glob \ 20703 want_nocaseglob \ 20704 DLLTOOL \ 20705 sharedlib_from_linklib_cmd \ 20706 AR \ 20707 archiver_list_spec \ 20708 STRIP \ 20709 RANLIB \ 20710 CC \ 20711 CFLAGS \ 20712 compiler \ 20713 lt_cv_sys_global_symbol_pipe \ 20714 lt_cv_sys_global_symbol_to_cdecl \ 20715 lt_cv_sys_global_symbol_to_import \ 20716 lt_cv_sys_global_symbol_to_c_name_address \ 20717 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20718 lt_cv_nm_interface \ 20719 nm_file_list_spec \ 20720 lt_cv_truncate_bin \ 20721 lt_prog_compiler_no_builtin_flag \ 20722 lt_prog_compiler_pic \ 20723 lt_prog_compiler_wl \ 20724 lt_prog_compiler_static \ 20725 lt_cv_prog_compiler_c_o \ 20726 need_locks \ 20727 MANIFEST_TOOL \ 20728 DSYMUTIL \ 20729 NMEDIT \ 20730 LIPO \ 20731 OTOOL \ 20732 OTOOL64 \ 20733 shrext_cmds \ 20734 export_dynamic_flag_spec \ 20735 whole_archive_flag_spec \ 20736 compiler_needs_object \ 20737 with_gnu_ld \ 20738 allow_undefined_flag \ 20739 no_undefined_flag \ 20740 hardcode_libdir_flag_spec \ 20741 hardcode_libdir_separator \ 20742 exclude_expsyms \ 20743 include_expsyms \ 20744 file_list_spec \ 20745 variables_saved_for_relink \ 20746 libname_spec \ 20747 library_names_spec \ 20748 soname_spec \ 20749 install_override_mode \ 20750 finish_eval \ 20751 old_striplib \ 20752 striplib; do 20753 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20754 *[\\\\\\\`\\"\\\$]*) 20755 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20756 ;; 20757 *) 20758 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20759 ;; 20760 esac 20761 done 20762 20763 # Double-quote double-evaled strings. 20764 for var in reload_cmds \ 20765 old_postinstall_cmds \ 20766 old_postuninstall_cmds \ 20767 old_archive_cmds \ 20768 extract_expsyms_cmds \ 20769 old_archive_from_new_cmds \ 20770 old_archive_from_expsyms_cmds \ 20771 archive_cmds \ 20772 archive_expsym_cmds \ 20773 module_cmds \ 20774 module_expsym_cmds \ 20775 export_symbols_cmds \ 20776 prelink_cmds \ 20777 postlink_cmds \ 20778 postinstall_cmds \ 20779 postuninstall_cmds \ 20780 finish_cmds \ 20781 sys_lib_search_path_spec \ 20782 configure_time_dlsearch_path \ 20783 configure_time_lt_sys_library_path; do 20784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20785 *[\\\\\\\`\\"\\\$]*) 20786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20787 ;; 20788 *) 20789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20790 ;; 20791 esac 20792 done 20793 20794 ac_aux_dir='$ac_aux_dir' 20795 20796 # See if we are running on zsh, and set the options that allow our 20797 # commands through without removal of \ escapes INIT. 20798 if test -n "\${ZSH_VERSION+set}"; then 20799 setopt NO_GLOB_SUBST 20800 fi 20801 20802 20803 PACKAGE='$PACKAGE' 20804 VERSION='$VERSION' 20805 RM='$RM' 20806 ofile='$ofile' 20807 20808 20809 20810 20811 _ACEOF 20812 20813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20814 20815 # Handling of arguments. 20816 for ac_config_target in $ac_config_targets 20817 do 20818 case $ac_config_target in 20819 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20820 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20821 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20822 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20823 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20824 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20825 20826 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20827 esac 20828 done 20829 20830 20831 # If the user did not use the arguments to specify the items to instantiate, 20832 # then the envvar interface is used. Set only those that are not. 20833 # We use the long form for the default assignment because of an extremely 20834 # bizarre bug on SunOS 4.1.3. 20835 if $ac_need_defaults; then 20836 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20837 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20838 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20839 fi 20840 20841 # Have a temporary directory for convenience. Make it in the build tree 20842 # simply because there is no reason against having it here, and in addition, 20843 # creating and moving files from /tmp can sometimes cause problems. 20844 # Hook for its removal unless debugging. 20845 # Note that there is a small window in which the directory will not be cleaned: 20846 # after its creation but before its name has been assigned to `$tmp'. 20847 $debug || 20848 { 20849 tmp= ac_tmp= 20850 trap 'exit_status=$? 20851 : "${ac_tmp:=$tmp}" 20852 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20853 ' 0 20854 trap 'as_fn_exit 1' 1 2 13 15 20855 } 20856 # Create a (secure) tmp directory for tmp files. 20857 20858 { 20859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20860 test -d "$tmp" 20861 } || 20862 { 20863 tmp=./conf$$-$RANDOM 20864 (umask 077 && mkdir "$tmp") 20865 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20866 ac_tmp=$tmp 20867 20868 # Set up the scripts for CONFIG_FILES section. 20869 # No need to generate them if there are no CONFIG_FILES. 20870 # This happens for instance with `./config.status config.h'. 20871 if test -n "$CONFIG_FILES"; then 20872 20873 20874 ac_cr=`echo X | tr X '\015'` 20875 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20876 # But we know of no other shell where ac_cr would be empty at this 20877 # point, so we can use a bashism as a fallback. 20878 if test "x$ac_cr" = x; then 20879 eval ac_cr=\$\'\\r\' 20880 fi 20881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20883 ac_cs_awk_cr='\\r' 20884 else 20885 ac_cs_awk_cr=$ac_cr 20886 fi 20887 20888 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20889 _ACEOF 20890 20891 20892 { 20893 echo "cat >conf$$subs.awk <<_ACEOF" && 20894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20895 echo "_ACEOF" 20896 } >conf$$subs.sh || 20897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20899 ac_delim='%!_!# ' 20900 for ac_last_try in false false false false false :; do 20901 . ./conf$$subs.sh || 20902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20903 20904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20905 if test $ac_delim_n = $ac_delim_num; then 20906 break 20907 elif $ac_last_try; then 20908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20909 else 20910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20911 fi 20912 done 20913 rm -f conf$$subs.sh 20914 20915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20916 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20917 _ACEOF 20918 sed -n ' 20919 h 20920 s/^/S["/; s/!.*/"]=/ 20921 p 20922 g 20923 s/^[^!]*!// 20924 :repl 20925 t repl 20926 s/'"$ac_delim"'$// 20927 t delim 20928 :nl 20929 h 20930 s/\(.\{148\}\)..*/\1/ 20931 t more1 20932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20933 p 20934 n 20935 b repl 20936 :more1 20937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20938 p 20939 g 20940 s/.\{148\}// 20941 t nl 20942 :delim 20943 h 20944 s/\(.\{148\}\)..*/\1/ 20945 t more2 20946 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20947 p 20948 b 20949 :more2 20950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20951 p 20952 g 20953 s/.\{148\}// 20954 t delim 20955 ' <conf$$subs.awk | sed ' 20956 /^[^""]/{ 20957 N 20958 s/\n// 20959 } 20960 ' >>$CONFIG_STATUS || ac_write_fail=1 20961 rm -f conf$$subs.awk 20962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20963 _ACAWK 20964 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20965 for (key in S) S_is_set[key] = 1 20966 FS = "" 20967 20968 } 20969 { 20970 line = $ 0 20971 nfields = split(line, field, "@") 20972 substed = 0 20973 len = length(field[1]) 20974 for (i = 2; i < nfields; i++) { 20975 key = field[i] 20976 keylen = length(key) 20977 if (S_is_set[key]) { 20978 value = S[key] 20979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20980 len += length(value) + length(field[++i]) 20981 substed = 1 20982 } else 20983 len += 1 + keylen 20984 } 20985 20986 print line 20987 } 20988 20989 _ACAWK 20990 _ACEOF 20991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20994 else 20995 cat 20996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20998 _ACEOF 20999 21000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21002 # trailing colons and then remove the whole line if VPATH becomes empty 21003 # (actually we leave an empty line to preserve line numbers). 21004 if test "x$srcdir" = x.; then 21005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21006 h 21007 s/// 21008 s/^/:/ 21009 s/[ ]*$/:/ 21010 s/:\$(srcdir):/:/g 21011 s/:\${srcdir}:/:/g 21012 s/:@srcdir@:/:/g 21013 s/^:*// 21014 s/:*$// 21015 x 21016 s/\(=[ ]*\).*/\1/ 21017 G 21018 s/\n// 21019 s/^[^=]*=[ ]*$// 21020 }' 21021 fi 21022 21023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21024 fi # test -n "$CONFIG_FILES" 21025 21026 # Set up the scripts for CONFIG_HEADERS section. 21027 # No need to generate them if there are no CONFIG_HEADERS. 21028 # This happens for instance with `./config.status Makefile'. 21029 if test -n "$CONFIG_HEADERS"; then 21030 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21031 BEGIN { 21032 _ACEOF 21033 21034 # Transform confdefs.h into an awk script `defines.awk', embedded as 21035 # here-document in config.status, that substitutes the proper values into 21036 # config.h.in to produce config.h. 21037 21038 # Create a delimiter string that does not exist in confdefs.h, to ease 21039 # handling of long lines. 21040 ac_delim='%!_!# ' 21041 for ac_last_try in false false :; do 21042 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21043 if test -z "$ac_tt"; then 21044 break 21045 elif $ac_last_try; then 21046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21047 else 21048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21049 fi 21050 done 21051 21052 # For the awk script, D is an array of macro values keyed by name, 21053 # likewise P contains macro parameters if any. Preserve backslash 21054 # newline sequences. 21055 21056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21057 sed -n ' 21058 s/.\{148\}/&'"$ac_delim"'/g 21059 t rset 21060 :rset 21061 s/^[ ]*#[ ]*define[ ][ ]*/ / 21062 t def 21063 d 21064 :def 21065 s/\\$// 21066 t bsnl 21067 s/["\\]/\\&/g 21068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21069 D["\1"]=" \3"/p 21070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21071 d 21072 :bsnl 21073 s/["\\]/\\&/g 21074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21075 D["\1"]=" \3\\\\\\n"\\/p 21076 t cont 21077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21078 t cont 21079 d 21080 :cont 21081 n 21082 s/.\{148\}/&'"$ac_delim"'/g 21083 t clear 21084 :clear 21085 s/\\$// 21086 t bsnlc 21087 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21088 d 21089 :bsnlc 21090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21091 b cont 21092 ' <confdefs.h | sed ' 21093 s/'"$ac_delim"'/"\\\ 21094 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21095 21096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21097 for (key in D) D_is_set[key] = 1 21098 FS = "" 21099 } 21100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21101 line = \$ 0 21102 split(line, arg, " ") 21103 if (arg[1] == "#") { 21104 defundef = arg[2] 21105 mac1 = arg[3] 21106 } else { 21107 defundef = substr(arg[1], 2) 21108 mac1 = arg[2] 21109 } 21110 split(mac1, mac2, "(") #) 21111 macro = mac2[1] 21112 prefix = substr(line, 1, index(line, defundef) - 1) 21113 if (D_is_set[macro]) { 21114 # Preserve the white space surrounding the "#". 21115 print prefix "define", macro P[macro] D[macro] 21116 next 21117 } else { 21118 # Replace #undef with comments. This is necessary, for example, 21119 # in the case of _POSIX_SOURCE, which is predefined and required 21120 # on some systems where configure will not decide to define it. 21121 if (defundef == "undef") { 21122 print "/*", prefix defundef, macro, "*/" 21123 next 21124 } 21125 } 21126 } 21127 { print } 21128 _ACAWK 21129 _ACEOF 21130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21132 fi # test -n "$CONFIG_HEADERS" 21133 21134 21135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21136 shift 21137 for ac_tag 21138 do 21139 case $ac_tag in 21140 :[FHLC]) ac_mode=$ac_tag; continue;; 21141 esac 21142 case $ac_mode$ac_tag in 21143 :[FHL]*:*);; 21144 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21145 :[FH]-) ac_tag=-:-;; 21146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21147 esac 21148 ac_save_IFS=$IFS 21149 IFS=: 21150 set x $ac_tag 21151 IFS=$ac_save_IFS 21152 shift 21153 ac_file=$1 21154 shift 21155 21156 case $ac_mode in 21157 :L) ac_source=$1;; 21158 :[FH]) 21159 ac_file_inputs= 21160 for ac_f 21161 do 21162 case $ac_f in 21163 -) ac_f="$ac_tmp/stdin";; 21164 *) # Look for the file first in the build tree, then in the source tree 21165 # (if the path is not absolute). The absolute path cannot be DOS-style, 21166 # because $ac_f cannot contain `:'. 21167 test -f "$ac_f" || 21168 case $ac_f in 21169 [\\/$]*) false;; 21170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21171 esac || 21172 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21173 esac 21174 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21175 as_fn_append ac_file_inputs " '$ac_f'" 21176 done 21177 21178 # Let's still pretend it is `configure' which instantiates (i.e., don't 21179 # use $as_me), people would be surprised to read: 21180 # /* config.h. Generated by config.status. */ 21181 configure_input='Generated from '` 21182 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21183 `' by configure.' 21184 if test x"$ac_file" != x-; then 21185 configure_input="$ac_file. $configure_input" 21186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21187 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21188 fi 21189 # Neutralize special characters interpreted by sed in replacement strings. 21190 case $configure_input in #( 21191 *\&* | *\|* | *\\* ) 21192 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21193 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21194 *) ac_sed_conf_input=$configure_input;; 21195 esac 21196 21197 case $ac_tag in 21198 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21200 esac 21201 ;; 21202 esac 21203 21204 ac_dir=`$as_dirname -- "$ac_file" || 21205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21206 X"$ac_file" : 'X\(//\)[^/]' \| \ 21207 X"$ac_file" : 'X\(//\)$' \| \ 21208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21209 printf "%s\n" X"$ac_file" | 21210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21211 s//\1/ 21212 q 21213 } 21214 /^X\(\/\/\)[^/].*/{ 21215 s//\1/ 21216 q 21217 } 21218 /^X\(\/\/\)$/{ 21219 s//\1/ 21220 q 21221 } 21222 /^X\(\/\).*/{ 21223 s//\1/ 21224 q 21225 } 21226 s/.*/./; q'` 21227 as_dir="$ac_dir"; as_fn_mkdir_p 21228 ac_builddir=. 21229 21230 case "$ac_dir" in 21231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21232 *) 21233 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21234 # A ".." for each directory in $ac_dir_suffix. 21235 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21236 case $ac_top_builddir_sub in 21237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21239 esac ;; 21240 esac 21241 ac_abs_top_builddir=$ac_pwd 21242 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21243 # for backward compatibility: 21244 ac_top_builddir=$ac_top_build_prefix 21245 21246 case $srcdir in 21247 .) # We are building in place. 21248 ac_srcdir=. 21249 ac_top_srcdir=$ac_top_builddir_sub 21250 ac_abs_top_srcdir=$ac_pwd ;; 21251 [\\/]* | ?:[\\/]* ) # Absolute name. 21252 ac_srcdir=$srcdir$ac_dir_suffix; 21253 ac_top_srcdir=$srcdir 21254 ac_abs_top_srcdir=$srcdir ;; 21255 *) # Relative name. 21256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21257 ac_top_srcdir=$ac_top_build_prefix$srcdir 21258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21259 esac 21260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21261 21262 21263 case $ac_mode in 21264 :F) 21265 # 21266 # CONFIG_FILE 21267 # 21268 21269 case $INSTALL in 21270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21272 esac 21273 ac_MKDIR_P=$MKDIR_P 21274 case $MKDIR_P in 21275 [\\/$]* | ?:[\\/]* ) ;; 21276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21277 esac 21278 _ACEOF 21279 21280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21281 # If the template does not know about datarootdir, expand it. 21282 # FIXME: This hack should be removed a few years after 2.60. 21283 ac_datarootdir_hack=; ac_datarootdir_seen= 21284 ac_sed_dataroot=' 21285 /datarootdir/ { 21286 p 21287 q 21288 } 21289 /@datadir@/p 21290 /@docdir@/p 21291 /@infodir@/p 21292 /@localedir@/p 21293 /@mandir@/p' 21294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21295 *datarootdir*) ac_datarootdir_seen=yes;; 21296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21298 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21299 _ACEOF 21300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21301 ac_datarootdir_hack=' 21302 s&@datadir@&$datadir&g 21303 s&@docdir@&$docdir&g 21304 s&@infodir@&$infodir&g 21305 s&@localedir@&$localedir&g 21306 s&@mandir@&$mandir&g 21307 s&\\\${datarootdir}&$datarootdir&g' ;; 21308 esac 21309 _ACEOF 21310 21311 # Neutralize VPATH when `$srcdir' = `.'. 21312 # Shell code in configure.ac might set extrasub. 21313 # FIXME: do we really want to maintain this feature? 21314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21315 ac_sed_extra="$ac_vpsub 21316 $extrasub 21317 _ACEOF 21318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21319 :t 21320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21321 s|@configure_input@|$ac_sed_conf_input|;t t 21322 s&@top_builddir@&$ac_top_builddir_sub&;t t 21323 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21324 s&@srcdir@&$ac_srcdir&;t t 21325 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21326 s&@top_srcdir@&$ac_top_srcdir&;t t 21327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21328 s&@builddir@&$ac_builddir&;t t 21329 s&@abs_builddir@&$ac_abs_builddir&;t t 21330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21331 s&@INSTALL@&$ac_INSTALL&;t t 21332 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21333 $ac_datarootdir_hack 21334 " 21335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21336 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21337 21338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21339 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21341 "$ac_tmp/out"`; test -z "$ac_out"; } && 21342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21343 which seems to be undefined. Please make sure it is defined" >&5 21344 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21345 which seems to be undefined. Please make sure it is defined" >&2;} 21346 21347 rm -f "$ac_tmp/stdin" 21348 case $ac_file in 21349 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21350 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21351 esac \ 21352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21353 ;; 21354 :H) 21355 # 21356 # CONFIG_HEADER 21357 # 21358 if test x"$ac_file" != x-; then 21359 { 21360 printf "%s\n" "/* $configure_input */" >&1 \ 21361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21362 } >"$ac_tmp/config.h" \ 21363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21366 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21367 else 21368 rm -f "$ac_file" 21369 mv "$ac_tmp/config.h" "$ac_file" \ 21370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21371 fi 21372 else 21373 printf "%s\n" "/* $configure_input */" >&1 \ 21374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21375 || as_fn_error $? "could not create -" "$LINENO" 5 21376 fi 21377 # Compute "$ac_file"'s index in $config_headers. 21378 _am_arg="$ac_file" 21379 _am_stamp_count=1 21380 for _am_header in $config_headers :; do 21381 case $_am_header in 21382 $_am_arg | $_am_arg:* ) 21383 break ;; 21384 * ) 21385 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21386 esac 21387 done 21388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21390 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21391 X"$_am_arg" : 'X\(//\)$' \| \ 21392 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21393 printf "%s\n" X"$_am_arg" | 21394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21395 s//\1/ 21396 q 21397 } 21398 /^X\(\/\/\)[^/].*/{ 21399 s//\1/ 21400 q 21401 } 21402 /^X\(\/\/\)$/{ 21403 s//\1/ 21404 q 21405 } 21406 /^X\(\/\).*/{ 21407 s//\1/ 21408 q 21409 } 21410 s/.*/./; q'`/stamp-h$_am_stamp_count 21411 ;; 21412 21413 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21414 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21415 ;; 21416 esac 21417 21418 21419 case $ac_file$ac_mode in 21420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21421 # Older Autoconf quotes --file arguments for eval, but not when files 21422 # are listed without --file. Let's play safe and only enable the eval 21423 # if we detect the quoting. 21424 # TODO: see whether this extra hack can be removed once we start 21425 # requiring Autoconf 2.70 or later. 21426 case $CONFIG_FILES in #( 21427 *\'*) : 21428 eval set x "$CONFIG_FILES" ;; #( 21429 *) : 21430 set x $CONFIG_FILES ;; #( 21431 *) : 21432 ;; 21433 esac 21434 shift 21435 # Used to flag and report bootstrapping failures. 21436 am_rc=0 21437 for am_mf 21438 do 21439 # Strip MF so we end up with the name of the file. 21440 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21441 # Check whether this is an Automake generated Makefile which includes 21442 # dependency-tracking related rules and includes. 21443 # Grep'ing the whole file directly is not great: AIX grep has a line 21444 # limit of 2048, but all sed's we know have understand at least 4000. 21445 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21446 || continue 21447 am_dirpart=`$as_dirname -- "$am_mf" || 21448 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21449 X"$am_mf" : 'X\(//\)[^/]' \| \ 21450 X"$am_mf" : 'X\(//\)$' \| \ 21451 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21452 printf "%s\n" X"$am_mf" | 21453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21454 s//\1/ 21455 q 21456 } 21457 /^X\(\/\/\)[^/].*/{ 21458 s//\1/ 21459 q 21460 } 21461 /^X\(\/\/\)$/{ 21462 s//\1/ 21463 q 21464 } 21465 /^X\(\/\).*/{ 21466 s//\1/ 21467 q 21468 } 21469 s/.*/./; q'` 21470 am_filepart=`$as_basename -- "$am_mf" || 21471 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21472 X"$am_mf" : 'X\(//\)$' \| \ 21473 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21474 printf "%s\n" X/"$am_mf" | 21475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21476 s//\1/ 21477 q 21478 } 21479 /^X\/\(\/\/\)$/{ 21480 s//\1/ 21481 q 21482 } 21483 /^X\/\(\/\).*/{ 21484 s//\1/ 21485 q 21486 } 21487 s/.*/./; q'` 21488 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21489 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21490 | $MAKE -f - am--depfiles" >&5 21491 (cd "$am_dirpart" \ 21492 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21493 | $MAKE -f - am--depfiles) >&5 2>&5 21494 ac_status=$? 21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21496 (exit $ac_status); } || am_rc=$? 21497 done 21498 if test $am_rc -ne 0; then 21499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21500 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21501 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21502 for automatic dependency tracking. If GNU make was not used, consider 21503 re-running the configure script with MAKE=\"gmake\" (or whatever is 21504 necessary). You can also try re-running configure with the 21505 '--disable-dependency-tracking' option to at least be able to build 21506 the package (albeit without support for automatic dependency tracking). 21507 See \`config.log' for more details" "$LINENO" 5; } 21508 fi 21509 { am_dirpart=; unset am_dirpart;} 21510 { am_filepart=; unset am_filepart;} 21511 { am_mf=; unset am_mf;} 21512 { am_rc=; unset am_rc;} 21513 rm -f conftest-deps.mk 21514 } 21515 ;; 21516 "libtool":C) 21517 21518 # See if we are running on zsh, and set the options that allow our 21519 # commands through without removal of \ escapes. 21520 if test -n "${ZSH_VERSION+set}"; then 21521 setopt NO_GLOB_SUBST 21522 fi 21523 21524 cfgfile=${ofile}T 21525 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21526 $RM "$cfgfile" 21527 21528 cat <<_LT_EOF >> "$cfgfile" 21529 #! $SHELL 21530 # Generated automatically by $as_me ($PACKAGE) $VERSION 21531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21532 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21533 21534 # Provide generalized library-building support services. 21535 # Written by Gordon Matzigkeit, 1996 21536 21537 # Copyright (C) 2014 Free Software Foundation, Inc. 21538 # This is free software; see the source for copying conditions. There is NO 21539 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21540 21541 # GNU Libtool is free software; you can redistribute it and/or modify 21542 # it under the terms of the GNU General Public License as published by 21543 # the Free Software Foundation; either version 2 of of the License, or 21544 # (at your option) any later version. 21545 # 21546 # As a special exception to the GNU General Public License, if you 21547 # distribute this file as part of a program or library that is built 21548 # using GNU Libtool, you may include this file under the same 21549 # distribution terms that you use for the rest of that program. 21550 # 21551 # GNU Libtool is distributed in the hope that it will be useful, but 21552 # WITHOUT ANY WARRANTY; without even the implied warranty of 21553 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21554 # GNU General Public License for more details. 21555 # 21556 # You should have received a copy of the GNU General Public License 21557 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21558 21559 21560 # The names of the tagged configurations supported by this script. 21561 available_tags='' 21562 21563 # Configured defaults for sys_lib_dlsearch_path munging. 21564 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21565 21566 # ### BEGIN LIBTOOL CONFIG 21567 21568 # Whether or not to build static libraries. 21569 build_old_libs=$enable_static 21570 21571 # Which release of libtool.m4 was used? 21572 macro_version=$macro_version 21573 macro_revision=$macro_revision 21574 21575 # Whether or not to build shared libraries. 21576 build_libtool_libs=$enable_shared 21577 21578 # What type of objects to build. 21579 pic_mode=$pic_mode 21580 21581 # Whether or not to optimize for fast installation. 21582 fast_install=$enable_fast_install 21583 21584 # Shared archive member basename,for filename based shared library versioning on AIX. 21585 shared_archive_member_spec=$shared_archive_member_spec 21586 21587 # Shell to use when invoking shell scripts. 21588 SHELL=$lt_SHELL 21589 21590 # An echo program that protects backslashes. 21591 ECHO=$lt_ECHO 21592 21593 # The PATH separator for the build system. 21594 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21595 21596 # The host system. 21597 host_alias=$host_alias 21598 host=$host 21599 host_os=$host_os 21600 21601 # The build system. 21602 build_alias=$build_alias 21603 build=$build 21604 build_os=$build_os 21605 21606 # A sed program that does not truncate output. 21607 SED=$lt_SED 21608 21609 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21610 Xsed="\$SED -e 1s/^X//" 21611 21612 # A grep program that handles long lines. 21613 GREP=$lt_GREP 21614 21615 # An ERE matcher. 21616 EGREP=$lt_EGREP 21617 21618 # A literal string matcher. 21619 FGREP=$lt_FGREP 21620 21621 # A BSD- or MS-compatible name lister. 21622 NM=$lt_NM 21623 21624 # Whether we need soft or hard links. 21625 LN_S=$lt_LN_S 21626 21627 # What is the maximum length of a command? 21628 max_cmd_len=$max_cmd_len 21629 21630 # Object file suffix (normally "o"). 21631 objext=$ac_objext 21632 21633 # Executable file suffix (normally ""). 21634 exeext=$exeext 21635 21636 # whether the shell understands "unset". 21637 lt_unset=$lt_unset 21638 21639 # turn spaces into newlines. 21640 SP2NL=$lt_lt_SP2NL 21641 21642 # turn newlines into spaces. 21643 NL2SP=$lt_lt_NL2SP 21644 21645 # convert \$build file names to \$host format. 21646 to_host_file_cmd=$lt_cv_to_host_file_cmd 21647 21648 # convert \$build files to toolchain format. 21649 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21650 21651 # A file(cmd) program that detects file types. 21652 FILECMD=$lt_FILECMD 21653 21654 # An object symbol dumper. 21655 OBJDUMP=$lt_OBJDUMP 21656 21657 # Method to check whether dependent libraries are shared objects. 21658 deplibs_check_method=$lt_deplibs_check_method 21659 21660 # Command to use when deplibs_check_method = "file_magic". 21661 file_magic_cmd=$lt_file_magic_cmd 21662 21663 # How to find potential files when deplibs_check_method = "file_magic". 21664 file_magic_glob=$lt_file_magic_glob 21665 21666 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21667 want_nocaseglob=$lt_want_nocaseglob 21668 21669 # DLL creation program. 21670 DLLTOOL=$lt_DLLTOOL 21671 21672 # Command to associate shared and link libraries. 21673 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21674 21675 # The archiver. 21676 AR=$lt_AR 21677 21678 # Flags to create an archive (by configure). 21679 lt_ar_flags=$lt_ar_flags 21680 21681 # Flags to create an archive. 21682 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21683 21684 # How to feed a file listing to the archiver. 21685 archiver_list_spec=$lt_archiver_list_spec 21686 21687 # A symbol stripping program. 21688 STRIP=$lt_STRIP 21689 21690 # Commands used to install an old-style archive. 21691 RANLIB=$lt_RANLIB 21692 old_postinstall_cmds=$lt_old_postinstall_cmds 21693 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21694 21695 # Whether to use a lock for old archive extraction. 21696 lock_old_archive_extraction=$lock_old_archive_extraction 21697 21698 # A C compiler. 21699 LTCC=$lt_CC 21700 21701 # LTCC compiler flags. 21702 LTCFLAGS=$lt_CFLAGS 21703 21704 # Take the output of nm and produce a listing of raw symbols and C names. 21705 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21706 21707 # Transform the output of nm in a proper C declaration. 21708 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21709 21710 # Transform the output of nm into a list of symbols to manually relocate. 21711 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21712 21713 # Transform the output of nm in a C name address pair. 21714 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21715 21716 # Transform the output of nm in a C name address pair when lib prefix is needed. 21717 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21718 21719 # The name lister interface. 21720 nm_interface=$lt_lt_cv_nm_interface 21721 21722 # Specify filename containing input files for \$NM. 21723 nm_file_list_spec=$lt_nm_file_list_spec 21724 21725 # The root where to search for dependent libraries,and where our libraries should be installed. 21726 lt_sysroot=$lt_sysroot 21727 21728 # Command to truncate a binary pipe. 21729 lt_truncate_bin=$lt_lt_cv_truncate_bin 21730 21731 # The name of the directory that contains temporary libtool files. 21732 objdir=$objdir 21733 21734 # Used to examine libraries when file_magic_cmd begins with "file". 21735 MAGIC_CMD=$MAGIC_CMD 21736 21737 # Must we lock files when doing compilation? 21738 need_locks=$lt_need_locks 21739 21740 # Manifest tool. 21741 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21742 21743 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21744 DSYMUTIL=$lt_DSYMUTIL 21745 21746 # Tool to change global to local symbols on Mac OS X. 21747 NMEDIT=$lt_NMEDIT 21748 21749 # Tool to manipulate fat objects and archives on Mac OS X. 21750 LIPO=$lt_LIPO 21751 21752 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21753 OTOOL=$lt_OTOOL 21754 21755 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21756 OTOOL64=$lt_OTOOL64 21757 21758 # Old archive suffix (normally "a"). 21759 libext=$libext 21760 21761 # Shared library suffix (normally ".so"). 21762 shrext_cmds=$lt_shrext_cmds 21763 21764 # The commands to extract the exported symbol list from a shared archive. 21765 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21766 21767 # Variables whose values should be saved in libtool wrapper scripts and 21768 # restored at link time. 21769 variables_saved_for_relink=$lt_variables_saved_for_relink 21770 21771 # Do we need the "lib" prefix for modules? 21772 need_lib_prefix=$need_lib_prefix 21773 21774 # Do we need a version for libraries? 21775 need_version=$need_version 21776 21777 # Library versioning type. 21778 version_type=$version_type 21779 21780 # Shared library runtime path variable. 21781 runpath_var=$runpath_var 21782 21783 # Shared library path variable. 21784 shlibpath_var=$shlibpath_var 21785 21786 # Is shlibpath searched before the hard-coded library search path? 21787 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21788 21789 # Format of library name prefix. 21790 libname_spec=$lt_libname_spec 21791 21792 # List of archive names. First name is the real one, the rest are links. 21793 # The last name is the one that the linker finds with -lNAME 21794 library_names_spec=$lt_library_names_spec 21795 21796 # The coded name of the library, if different from the real name. 21797 soname_spec=$lt_soname_spec 21798 21799 # Permission mode override for installation of shared libraries. 21800 install_override_mode=$lt_install_override_mode 21801 21802 # Command to use after installation of a shared archive. 21803 postinstall_cmds=$lt_postinstall_cmds 21804 21805 # Command to use after uninstallation of a shared archive. 21806 postuninstall_cmds=$lt_postuninstall_cmds 21807 21808 # Commands used to finish a libtool library installation in a directory. 21809 finish_cmds=$lt_finish_cmds 21810 21811 # As "finish_cmds", except a single script fragment to be evaled but 21812 # not shown. 21813 finish_eval=$lt_finish_eval 21814 21815 # Whether we should hardcode library paths into libraries. 21816 hardcode_into_libs=$hardcode_into_libs 21817 21818 # Compile-time system search path for libraries. 21819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21820 21821 # Detected run-time system search path for libraries. 21822 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21823 21824 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21825 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21826 21827 # Whether dlopen is supported. 21828 dlopen_support=$enable_dlopen 21829 21830 # Whether dlopen of programs is supported. 21831 dlopen_self=$enable_dlopen_self 21832 21833 # Whether dlopen of statically linked programs is supported. 21834 dlopen_self_static=$enable_dlopen_self_static 21835 21836 # Commands to strip libraries. 21837 old_striplib=$lt_old_striplib 21838 striplib=$lt_striplib 21839 21840 21841 # The linker used to build libraries. 21842 LD=$lt_LD 21843 21844 # How to create reloadable object files. 21845 reload_flag=$lt_reload_flag 21846 reload_cmds=$lt_reload_cmds 21847 21848 # Commands used to build an old-style archive. 21849 old_archive_cmds=$lt_old_archive_cmds 21850 21851 # A language specific compiler. 21852 CC=$lt_compiler 21853 21854 # Is the compiler the GNU compiler? 21855 with_gcc=$GCC 21856 21857 # Compiler flag to turn off builtin functions. 21858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21859 21860 # Additional compiler flags for building library objects. 21861 pic_flag=$lt_lt_prog_compiler_pic 21862 21863 # How to pass a linker flag through the compiler. 21864 wl=$lt_lt_prog_compiler_wl 21865 21866 # Compiler flag to prevent dynamic linking. 21867 link_static_flag=$lt_lt_prog_compiler_static 21868 21869 # Does compiler simultaneously support -c and -o options? 21870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21871 21872 # Whether or not to add -lc for building shared libraries. 21873 build_libtool_need_lc=$archive_cmds_need_lc 21874 21875 # Whether or not to disallow shared libs when runtime libs are static. 21876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21877 21878 # Compiler flag to allow reflexive dlopens. 21879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21880 21881 # Compiler flag to generate shared objects directly from archives. 21882 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21883 21884 # Whether the compiler copes with passing no objects directly. 21885 compiler_needs_object=$lt_compiler_needs_object 21886 21887 # Create an old-style archive from a shared archive. 21888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21889 21890 # Create a temporary old-style archive to link instead of a shared archive. 21891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21892 21893 # Commands used to build a shared archive. 21894 archive_cmds=$lt_archive_cmds 21895 archive_expsym_cmds=$lt_archive_expsym_cmds 21896 21897 # Commands used to build a loadable module if different from building 21898 # a shared archive. 21899 module_cmds=$lt_module_cmds 21900 module_expsym_cmds=$lt_module_expsym_cmds 21901 21902 # Whether we are building with GNU ld or not. 21903 with_gnu_ld=$lt_with_gnu_ld 21904 21905 # Flag that allows shared libraries with undefined symbols to be built. 21906 allow_undefined_flag=$lt_allow_undefined_flag 21907 21908 # Flag that enforces no undefined symbols. 21909 no_undefined_flag=$lt_no_undefined_flag 21910 21911 # Flag to hardcode \$libdir into a binary during linking. 21912 # This must work even if \$libdir does not exist 21913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21914 21915 # Whether we need a single "-rpath" flag with a separated argument. 21916 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21917 21918 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21919 # DIR into the resulting binary. 21920 hardcode_direct=$hardcode_direct 21921 21922 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21923 # DIR into the resulting binary and the resulting library dependency is 21924 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21925 # library is relocated. 21926 hardcode_direct_absolute=$hardcode_direct_absolute 21927 21928 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21929 # into the resulting binary. 21930 hardcode_minus_L=$hardcode_minus_L 21931 21932 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21933 # into the resulting binary. 21934 hardcode_shlibpath_var=$hardcode_shlibpath_var 21935 21936 # Set to "yes" if building a shared library automatically hardcodes DIR 21937 # into the library and all subsequent libraries and executables linked 21938 # against it. 21939 hardcode_automatic=$hardcode_automatic 21940 21941 # Set to yes if linker adds runtime paths of dependent libraries 21942 # to runtime path list. 21943 inherit_rpath=$inherit_rpath 21944 21945 # Whether libtool must link a program against all its dependency libraries. 21946 link_all_deplibs=$link_all_deplibs 21947 21948 # Set to "yes" if exported symbols are required. 21949 always_export_symbols=$always_export_symbols 21950 21951 # The commands to list exported symbols. 21952 export_symbols_cmds=$lt_export_symbols_cmds 21953 21954 # Symbols that should not be listed in the preloaded symbols. 21955 exclude_expsyms=$lt_exclude_expsyms 21956 21957 # Symbols that must always be exported. 21958 include_expsyms=$lt_include_expsyms 21959 21960 # Commands necessary for linking programs (against libraries) with templates. 21961 prelink_cmds=$lt_prelink_cmds 21962 21963 # Commands necessary for finishing linking programs. 21964 postlink_cmds=$lt_postlink_cmds 21965 21966 # Specify filename containing input files. 21967 file_list_spec=$lt_file_list_spec 21968 21969 # How to hardcode a shared library path into an executable. 21970 hardcode_action=$hardcode_action 21971 21972 # ### END LIBTOOL CONFIG 21973 21974 _LT_EOF 21975 21976 cat <<'_LT_EOF' >> "$cfgfile" 21977 21978 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21979 21980 # func_munge_path_list VARIABLE PATH 21981 # ----------------------------------- 21982 # VARIABLE is name of variable containing _space_ separated list of 21983 # directories to be munged by the contents of PATH, which is string 21984 # having a format: 21985 # "DIR[:DIR]:" 21986 # string "DIR[ DIR]" will be prepended to VARIABLE 21987 # ":DIR[:DIR]" 21988 # string "DIR[ DIR]" will be appended to VARIABLE 21989 # "DIRP[:DIRP]::[DIRA:]DIRA" 21990 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21991 # "DIRA[ DIRA]" will be appended to VARIABLE 21992 # "DIR[:DIR]" 21993 # VARIABLE will be replaced by "DIR[ DIR]" 21994 func_munge_path_list () 21995 { 21996 case x$2 in 21997 x) 21998 ;; 21999 *:) 22000 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22001 ;; 22002 x:*) 22003 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22004 ;; 22005 *::*) 22006 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22007 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22008 ;; 22009 *) 22010 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22011 ;; 22012 esac 22013 } 22014 22015 22016 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22017 func_cc_basename () 22018 { 22019 for cc_temp in $*""; do 22020 case $cc_temp in 22021 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22022 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22023 \-*) ;; 22024 *) break;; 22025 esac 22026 done 22027 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22028 } 22029 22030 22031 # ### END FUNCTIONS SHARED WITH CONFIGURE 22032 22033 _LT_EOF 22034 22035 case $host_os in 22036 aix3*) 22037 cat <<\_LT_EOF >> "$cfgfile" 22038 # AIX sometimes has problems with the GCC collect2 program. For some 22039 # reason, if we set the COLLECT_NAMES environment variable, the problems 22040 # vanish in a puff of smoke. 22041 if test set != "${COLLECT_NAMES+set}"; then 22042 COLLECT_NAMES= 22043 export COLLECT_NAMES 22044 fi 22045 _LT_EOF 22046 ;; 22047 esac 22048 22049 22050 22051 ltmain=$ac_aux_dir/ltmain.sh 22052 22053 22054 # We use sed instead of cat because bash on DJGPP gets confused if 22055 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22056 # text mode, it properly converts lines to CR/LF. This bash problem 22057 # is reportedly fixed, but why not run on old versions too? 22058 $SED '$q' "$ltmain" >> "$cfgfile" \ 22059 || (rm -f "$cfgfile"; exit 1) 22060 22061 mv -f "$cfgfile" "$ofile" || 22062 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22063 chmod +x "$ofile" 22064 22065 ;; 22066 22067 esac 22068 done # for ac_tag 22069 22070 22071 as_fn_exit 0 22072 _ACEOF 22073 ac_clean_files=$ac_clean_files_save 22074 22075 test $ac_write_fail = 0 || 22076 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22077 22078 22079 # configure is writing to config.log, and then calls config.status. 22080 # config.status does its own redirection, appending to config.log. 22081 # Unfortunately, on DOS this fails, as config.log is still kept open 22082 # by configure, so config.status won't be able to write to it; its 22083 # output is simply discarded. So we exec the FD to /dev/null, 22084 # effectively closing config.log, so it can be properly (re)opened and 22085 # appended to by config.status. When coming back to configure, we 22086 # need to make the FD available again. 22087 if test "$no_create" != yes; then 22088 ac_cs_success=: 22089 ac_config_status_args= 22090 test "$silent" = yes && 22091 ac_config_status_args="$ac_config_status_args --quiet" 22092 exec 5>/dev/null 22093 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22094 exec 5>>config.log 22095 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22096 # would make configure fail if this is the last instruction. 22097 $ac_cs_success || as_fn_exit 1 22098 fi 22099 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22101 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22102 fi 22103 22104 22105