1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xf86-video-qxl 0.1.6. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/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-qxl/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-qxl' 624 PACKAGE_TARNAME='xf86-video-qxl' 625 PACKAGE_VERSION='0.1.6' 626 PACKAGE_STRING='xf86-video-qxl 0.1.6' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/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 SPICE_PROTOCOL_LIBS 668 SPICE_PROTOCOL_CFLAGS 669 LIBUDEV_FALSE 670 LIBUDEV_TRUE 671 LIBUDEV_LIBS 672 LIBUDEV_CFLAGS 673 BUILD_SPICECCID_FALSE 674 BUILD_SPICECCID_TRUE 675 BUILD_QXL_FALSE 676 BUILD_QXL_TRUE 677 BUILD_XSPICE_FALSE 678 BUILD_XSPICE_TRUE 679 LIBCACARD_LIBS 680 LIBCACARD_CFLAGS 681 LIBPCSCLITE_LIBS 682 LIBPCSCLITE_CFLAGS 683 cciddir 684 SPICE_LIBS 685 SPICE_CFLAGS 686 DRM_MODE_FALSE 687 DRM_MODE_TRUE 688 XSERVER_LIBPCIACCESS_FALSE 689 XSERVER_LIBPCIACCESS_TRUE 690 PCIACCESS_LIBS 691 PCIACCESS_CFLAGS 692 DRM_LIBS 693 DRM_CFLAGS 694 XORG_LIBS 695 XORG_CFLAGS 696 moduledir 697 LT_SYS_LIBRARY_PATH 698 OTOOL64 699 OTOOL 700 LIPO 701 NMEDIT 702 DSYMUTIL 703 MANIFEST_TOOL 704 RANLIB 705 ac_ct_AR 706 AR 707 DLLTOOL 708 OBJDUMP 709 FILECMD 710 LN_S 711 NM 712 ac_ct_DUMPBIN 713 DUMPBIN 714 LD 715 FGREP 716 EGREP 717 GREP 718 LIBTOOL 719 MAN_SUBSTS 720 XORG_MAN_PAGE 721 ADMIN_MAN_DIR 722 DRIVER_MAN_DIR 723 MISC_MAN_DIR 724 FILE_MAN_DIR 725 LIB_MAN_DIR 726 APP_MAN_DIR 727 ADMIN_MAN_SUFFIX 728 DRIVER_MAN_SUFFIX 729 MISC_MAN_SUFFIX 730 FILE_MAN_SUFFIX 731 LIB_MAN_SUFFIX 732 APP_MAN_SUFFIX 733 SED 734 INSTALL_CMD 735 PKG_CONFIG_LIBDIR 736 PKG_CONFIG_PATH 737 PKG_CONFIG 738 CHANGELOG_CMD 739 STRICT_CFLAGS 740 CWARNFLAGS 741 BASE_CFLAGS 742 am__fastdepCC_FALSE 743 am__fastdepCC_TRUE 744 CCDEPMODE 745 am__nodep 746 AMDEPBACKSLASH 747 AMDEP_FALSE 748 AMDEP_TRUE 749 am__include 750 DEPDIR 751 OBJEXT 752 EXEEXT 753 ac_ct_CC 754 CPPFLAGS 755 LDFLAGS 756 CFLAGS 757 CC 758 MAINT 759 MAINTAINER_MODE_FALSE 760 MAINTAINER_MODE_TRUE 761 AM_BACKSLASH 762 AM_DEFAULT_VERBOSITY 763 AM_DEFAULT_V 764 AM_V 765 CSCOPE 766 ETAGS 767 CTAGS 768 am__untar 769 am__tar 770 AMTAR 771 am__leading_dot 772 SET_MAKE 773 AWK 774 mkdir_p 775 MKDIR_P 776 INSTALL_STRIP_PROGRAM 777 STRIP 778 install_sh 779 MAKEINFO 780 AUTOHEADER 781 AUTOMAKE 782 AUTOCONF 783 ACLOCAL 784 VERSION 785 PACKAGE 786 CYGPATH_W 787 am__isrc 788 INSTALL_DATA 789 INSTALL_SCRIPT 790 INSTALL_PROGRAM 791 host_os 792 host_vendor 793 host_cpu 794 host 795 build_os 796 build_vendor 797 build_cpu 798 build 799 target_alias 800 host_alias 801 build_alias 802 LIBS 803 ECHO_T 804 ECHO_N 805 ECHO_C 806 DEFS 807 mandir 808 localedir 809 libdir 810 psdir 811 pdfdir 812 dvidir 813 htmldir 814 infodir 815 docdir 816 oldincludedir 817 includedir 818 runstatedir 819 localstatedir 820 sharedstatedir 821 sysconfdir 822 datadir 823 datarootdir 824 libexecdir 825 sbindir 826 bindir 827 program_transform_name 828 prefix 829 exec_prefix 830 PACKAGE_URL 831 PACKAGE_BUGREPORT 832 PACKAGE_STRING 833 PACKAGE_VERSION 834 PACKAGE_TARNAME 835 PACKAGE_NAME 836 PATH_SEPARATOR 837 SHELL 838 am__quote' 839 ac_subst_files='' 840 ac_user_opts=' 841 enable_option_checking 842 enable_silent_rules 843 enable_maintainer_mode 844 enable_largefile 845 enable_dependency_tracking 846 enable_selective_werror 847 enable_strict_compilation 848 enable_static 849 enable_shared 850 with_pic 851 enable_fast_install 852 with_aix_soname 853 with_gnu_ld 854 with_sysroot 855 enable_libtool_lock 856 with_xorg_module_dir 857 enable_kms 858 enable_xspice 859 enable_ccid 860 with_ccid_module_dir 861 enable_udev 862 ' 863 ac_precious_vars='build_alias 864 host_alias 865 target_alias 866 CC 867 CFLAGS 868 LDFLAGS 869 LIBS 870 CPPFLAGS 871 PKG_CONFIG 872 PKG_CONFIG_PATH 873 PKG_CONFIG_LIBDIR 874 LT_SYS_LIBRARY_PATH 875 XORG_CFLAGS 876 XORG_LIBS 877 DRM_CFLAGS 878 DRM_LIBS 879 PCIACCESS_CFLAGS 880 PCIACCESS_LIBS 881 SPICE_CFLAGS 882 SPICE_LIBS 883 LIBPCSCLITE_CFLAGS 884 LIBPCSCLITE_LIBS 885 LIBCACARD_CFLAGS 886 LIBCACARD_LIBS 887 LIBUDEV_CFLAGS 888 LIBUDEV_LIBS 889 SPICE_PROTOCOL_CFLAGS 890 SPICE_PROTOCOL_LIBS' 891 892 893 # Initialize some variables set by options. 894 ac_init_help= 895 ac_init_version=false 896 ac_unrecognized_opts= 897 ac_unrecognized_sep= 898 # The variables have the same names as the options, with 899 # dashes changed to underlines. 900 cache_file=/dev/null 901 exec_prefix=NONE 902 no_create= 903 no_recursion= 904 prefix=NONE 905 program_prefix=NONE 906 program_suffix=NONE 907 program_transform_name=s,x,x, 908 silent= 909 site= 910 srcdir= 911 verbose= 912 x_includes=NONE 913 x_libraries=NONE 914 915 # Installation directory options. 916 # These are left unexpanded so users can "make install exec_prefix=/foo" 917 # and all the variables that are supposed to be based on exec_prefix 918 # by default will actually change. 919 # Use braces instead of parens because sh, perl, etc. also accept them. 920 # (The list follows the same order as the GNU Coding Standards.) 921 bindir='${exec_prefix}/bin' 922 sbindir='${exec_prefix}/sbin' 923 libexecdir='${exec_prefix}/libexec' 924 datarootdir='${prefix}/share' 925 datadir='${datarootdir}' 926 sysconfdir='${prefix}/etc' 927 sharedstatedir='${prefix}/com' 928 localstatedir='${prefix}/var' 929 runstatedir='${localstatedir}/run' 930 includedir='${prefix}/include' 931 oldincludedir='/usr/include' 932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933 infodir='${datarootdir}/info' 934 htmldir='${docdir}' 935 dvidir='${docdir}' 936 pdfdir='${docdir}' 937 psdir='${docdir}' 938 libdir='${exec_prefix}/lib' 939 localedir='${datarootdir}/locale' 940 mandir='${datarootdir}/man' 941 942 ac_prev= 943 ac_dashdash= 944 for ac_option 945 do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *=) ac_optarg= ;; 956 *) ac_optarg=yes ;; 957 esac 958 959 case $ac_dashdash$ac_option in 960 --) 961 ac_dashdash=yes ;; 962 963 -bindir | --bindir | --bindi | --bind | --bin | --bi) 964 ac_prev=bindir ;; 965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 966 bindir=$ac_optarg ;; 967 968 -build | --build | --buil | --bui | --bu) 969 ac_prev=build_alias ;; 970 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 971 build_alias=$ac_optarg ;; 972 973 -cache-file | --cache-file | --cache-fil | --cache-fi \ 974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 975 ac_prev=cache_file ;; 976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 978 cache_file=$ac_optarg ;; 979 980 --config-cache | -C) 981 cache_file=config.cache ;; 982 983 -datadir | --datadir | --datadi | --datad) 984 ac_prev=datadir ;; 985 -datadir=* | --datadir=* | --datadi=* | --datad=*) 986 datadir=$ac_optarg ;; 987 988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 989 | --dataroo | --dataro | --datar) 990 ac_prev=datarootdir ;; 991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 993 datarootdir=$ac_optarg ;; 994 995 -disable-* | --disable-*) 996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 999 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1000 ac_useropt_orig=$ac_useropt 1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1002 case $ac_user_opts in 1003 *" 1004 "enable_$ac_useropt" 1005 "*) ;; 1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1007 ac_unrecognized_sep=', ';; 1008 esac 1009 eval enable_$ac_useropt=no ;; 1010 1011 -docdir | --docdir | --docdi | --doc | --do) 1012 ac_prev=docdir ;; 1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1014 docdir=$ac_optarg ;; 1015 1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1017 ac_prev=dvidir ;; 1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1019 dvidir=$ac_optarg ;; 1020 1021 -enable-* | --enable-*) 1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1023 # Reject names that are not valid shell variable names. 1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1025 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1026 ac_useropt_orig=$ac_useropt 1027 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1028 case $ac_user_opts in 1029 *" 1030 "enable_$ac_useropt" 1031 "*) ;; 1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1033 ac_unrecognized_sep=', ';; 1034 esac 1035 eval enable_$ac_useropt=\$ac_optarg ;; 1036 1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1039 | --exec | --exe | --ex) 1040 ac_prev=exec_prefix ;; 1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1043 | --exec=* | --exe=* | --ex=*) 1044 exec_prefix=$ac_optarg ;; 1045 1046 -gas | --gas | --ga | --g) 1047 # Obsolete; use --with-gas. 1048 with_gas=yes ;; 1049 1050 -help | --help | --hel | --he | -h) 1051 ac_init_help=long ;; 1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1053 ac_init_help=recursive ;; 1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1055 ac_init_help=short ;; 1056 1057 -host | --host | --hos | --ho) 1058 ac_prev=host_alias ;; 1059 -host=* | --host=* | --hos=* | --ho=*) 1060 host_alias=$ac_optarg ;; 1061 1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1063 ac_prev=htmldir ;; 1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1065 | --ht=*) 1066 htmldir=$ac_optarg ;; 1067 1068 -includedir | --includedir | --includedi | --included | --include \ 1069 | --includ | --inclu | --incl | --inc) 1070 ac_prev=includedir ;; 1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1072 | --includ=* | --inclu=* | --incl=* | --inc=*) 1073 includedir=$ac_optarg ;; 1074 1075 -infodir | --infodir | --infodi | --infod | --info | --inf) 1076 ac_prev=infodir ;; 1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1078 infodir=$ac_optarg ;; 1079 1080 -libdir | --libdir | --libdi | --libd) 1081 ac_prev=libdir ;; 1082 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1083 libdir=$ac_optarg ;; 1084 1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1086 | --libexe | --libex | --libe) 1087 ac_prev=libexecdir ;; 1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1089 | --libexe=* | --libex=* | --libe=*) 1090 libexecdir=$ac_optarg ;; 1091 1092 -localedir | --localedir | --localedi | --localed | --locale) 1093 ac_prev=localedir ;; 1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1095 localedir=$ac_optarg ;; 1096 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1098 | --localstate | --localstat | --localsta | --localst | --locals) 1099 ac_prev=localstatedir ;; 1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1102 localstatedir=$ac_optarg ;; 1103 1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1105 ac_prev=mandir ;; 1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1107 mandir=$ac_optarg ;; 1108 1109 -nfp | --nfp | --nf) 1110 # Obsolete; use --without-fp. 1111 with_fp=no ;; 1112 1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1114 | --no-cr | --no-c | -n) 1115 no_create=yes ;; 1116 1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1119 no_recursion=yes ;; 1120 1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1123 | --oldin | --oldi | --old | --ol | --o) 1124 ac_prev=oldincludedir ;; 1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1128 oldincludedir=$ac_optarg ;; 1129 1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1131 ac_prev=prefix ;; 1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1133 prefix=$ac_optarg ;; 1134 1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1136 | --program-pre | --program-pr | --program-p) 1137 ac_prev=program_prefix ;; 1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1140 program_prefix=$ac_optarg ;; 1141 1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1143 | --program-suf | --program-su | --program-s) 1144 ac_prev=program_suffix ;; 1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1147 program_suffix=$ac_optarg ;; 1148 1149 -program-transform-name | --program-transform-name \ 1150 | --program-transform-nam | --program-transform-na \ 1151 | --program-transform-n | --program-transform- \ 1152 | --program-transform | --program-transfor \ 1153 | --program-transfo | --program-transf \ 1154 | --program-trans | --program-tran \ 1155 | --progr-tra | --program-tr | --program-t) 1156 ac_prev=program_transform_name ;; 1157 -program-transform-name=* | --program-transform-name=* \ 1158 | --program-transform-nam=* | --program-transform-na=* \ 1159 | --program-transform-n=* | --program-transform-=* \ 1160 | --program-transform=* | --program-transfor=* \ 1161 | --program-transfo=* | --program-transf=* \ 1162 | --program-trans=* | --program-tran=* \ 1163 | --progr-tra=* | --program-tr=* | --program-t=*) 1164 program_transform_name=$ac_optarg ;; 1165 1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1167 ac_prev=pdfdir ;; 1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1169 pdfdir=$ac_optarg ;; 1170 1171 -psdir | --psdir | --psdi | --psd | --ps) 1172 ac_prev=psdir ;; 1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1174 psdir=$ac_optarg ;; 1175 1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1177 | -silent | --silent | --silen | --sile | --sil) 1178 silent=yes ;; 1179 1180 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1181 | --runstate | --runstat | --runsta | --runst | --runs \ 1182 | --run | --ru | --r) 1183 ac_prev=runstatedir ;; 1184 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1185 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1186 | --run=* | --ru=* | --r=*) 1187 runstatedir=$ac_optarg ;; 1188 1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1190 ac_prev=sbindir ;; 1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1192 | --sbi=* | --sb=*) 1193 sbindir=$ac_optarg ;; 1194 1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1197 | --sharedst | --shareds | --shared | --share | --shar \ 1198 | --sha | --sh) 1199 ac_prev=sharedstatedir ;; 1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1203 | --sha=* | --sh=*) 1204 sharedstatedir=$ac_optarg ;; 1205 1206 -site | --site | --sit) 1207 ac_prev=site ;; 1208 -site=* | --site=* | --sit=*) 1209 site=$ac_optarg ;; 1210 1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1212 ac_prev=srcdir ;; 1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1214 srcdir=$ac_optarg ;; 1215 1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1217 | --syscon | --sysco | --sysc | --sys | --sy) 1218 ac_prev=sysconfdir ;; 1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1221 sysconfdir=$ac_optarg ;; 1222 1223 -target | --target | --targe | --targ | --tar | --ta | --t) 1224 ac_prev=target_alias ;; 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1226 target_alias=$ac_optarg ;; 1227 1228 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1229 verbose=yes ;; 1230 1231 -version | --version | --versio | --versi | --vers | -V) 1232 ac_init_version=: ;; 1233 1234 -with-* | --with-*) 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1236 # Reject names that are not valid shell variable names. 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1238 as_fn_error $? "invalid package name: \`$ac_useropt'" 1239 ac_useropt_orig=$ac_useropt 1240 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1241 case $ac_user_opts in 1242 *" 1243 "with_$ac_useropt" 1244 "*) ;; 1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1246 ac_unrecognized_sep=', ';; 1247 esac 1248 eval with_$ac_useropt=\$ac_optarg ;; 1249 1250 -without-* | --without-*) 1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1252 # Reject names that are not valid shell variable names. 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1254 as_fn_error $? "invalid package name: \`$ac_useropt'" 1255 ac_useropt_orig=$ac_useropt 1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1257 case $ac_user_opts in 1258 *" 1259 "with_$ac_useropt" 1260 "*) ;; 1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1262 ac_unrecognized_sep=', ';; 1263 esac 1264 eval with_$ac_useropt=no ;; 1265 1266 --x) 1267 # Obsolete; use --with-x. 1268 with_x=yes ;; 1269 1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1271 | --x-incl | --x-inc | --x-in | --x-i) 1272 ac_prev=x_includes ;; 1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1275 x_includes=$ac_optarg ;; 1276 1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1279 ac_prev=x_libraries ;; 1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1282 x_libraries=$ac_optarg ;; 1283 1284 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1285 Try \`$0 --help' for more information" 1286 ;; 1287 1288 *=*) 1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1290 # Reject names that are not valid shell variable names. 1291 case $ac_envvar in #( 1292 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1294 esac 1295 eval $ac_envvar=\$ac_optarg 1296 export $ac_envvar ;; 1297 1298 *) 1299 # FIXME: should be removed in autoconf 3.0. 1300 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1302 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1304 ;; 1305 1306 esac 1307 done 1308 1309 if test -n "$ac_prev"; then 1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1311 as_fn_error $? "missing argument to $ac_option" 1312 fi 1313 1314 if test -n "$ac_unrecognized_opts"; then 1315 case $enable_option_checking in 1316 no) ;; 1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1318 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1319 esac 1320 fi 1321 1322 # Check all directory arguments for consistency. 1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1324 datadir sysconfdir sharedstatedir localstatedir includedir \ 1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1326 libdir localedir mandir runstatedir 1327 do 1328 eval ac_val=\$$ac_var 1329 # Remove trailing slashes. 1330 case $ac_val in 1331 */ ) 1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1333 eval $ac_var=\$ac_val;; 1334 esac 1335 # Be sure to have absolute directory names. 1336 case $ac_val in 1337 [\\/$]* | ?:[\\/]* ) continue;; 1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1339 esac 1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1341 done 1342 1343 # There might be people who depend on the old broken behavior: `$host' 1344 # used to hold the argument of --host etc. 1345 # FIXME: To remove some day. 1346 build=$build_alias 1347 host=$host_alias 1348 target=$target_alias 1349 1350 # FIXME: To remove some day. 1351 if test "x$host_alias" != x; then 1352 if test "x$build_alias" = x; then 1353 cross_compiling=maybe 1354 elif test "x$build_alias" != "x$host_alias"; then 1355 cross_compiling=yes 1356 fi 1357 fi 1358 1359 ac_tool_prefix= 1360 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1361 1362 test "$silent" = yes && exec 6>/dev/null 1363 1364 1365 ac_pwd=`pwd` && test -n "$ac_pwd" && 1366 ac_ls_di=`ls -di .` && 1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1368 as_fn_error $? "working directory cannot be determined" 1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1370 as_fn_error $? "pwd does not report name of working directory" 1371 1372 1373 # Find the source files, if location was not specified. 1374 if test -z "$srcdir"; then 1375 ac_srcdir_defaulted=yes 1376 # Try the directory containing this script, then the parent directory. 1377 ac_confdir=`$as_dirname -- "$as_myself" || 1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1379 X"$as_myself" : 'X\(//\)[^/]' \| \ 1380 X"$as_myself" : 'X\(//\)$' \| \ 1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1382 printf "%s\n" X"$as_myself" | 1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1384 s//\1/ 1385 q 1386 } 1387 /^X\(\/\/\)[^/].*/{ 1388 s//\1/ 1389 q 1390 } 1391 /^X\(\/\/\)$/{ 1392 s//\1/ 1393 q 1394 } 1395 /^X\(\/\).*/{ 1396 s//\1/ 1397 q 1398 } 1399 s/.*/./; q'` 1400 srcdir=$ac_confdir 1401 if test ! -r "$srcdir/$ac_unique_file"; then 1402 srcdir=.. 1403 fi 1404 else 1405 ac_srcdir_defaulted=no 1406 fi 1407 if test ! -r "$srcdir/$ac_unique_file"; then 1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1410 fi 1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1412 ac_abs_confdir=`( 1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1414 pwd)` 1415 # When building in place, set srcdir=. 1416 if test "$ac_abs_confdir" = "$ac_pwd"; then 1417 srcdir=. 1418 fi 1419 # Remove unnecessary trailing slashes from srcdir. 1420 # Double slashes in file names in object file debugging info 1421 # mess up M-x gdb in Emacs. 1422 case $srcdir in 1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1424 esac 1425 for ac_var in $ac_precious_vars; do 1426 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1427 eval ac_env_${ac_var}_value=\$${ac_var} 1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1429 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1430 done 1431 1432 # 1433 # Report the --help message. 1434 # 1435 if test "$ac_init_help" = "long"; then 1436 # Omit some internal or obsolete options to make the list less imposing. 1437 # This message is too long to be a string in the A/UX 3.1 sh. 1438 cat <<_ACEOF 1439 \`configure' configures xf86-video-qxl 0.1.6 to adapt to many kinds of systems. 1440 1441 Usage: $0 [OPTION]... [VAR=VALUE]... 1442 1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1444 VAR=VALUE. See below for descriptions of some of the useful variables. 1445 1446 Defaults for the options are specified in brackets. 1447 1448 Configuration: 1449 -h, --help display this help and exit 1450 --help=short display options specific to this package 1451 --help=recursive display the short help of all the included packages 1452 -V, --version display version information and exit 1453 -q, --quiet, --silent do not print \`checking ...' messages 1454 --cache-file=FILE cache test results in FILE [disabled] 1455 -C, --config-cache alias for \`--cache-file=config.cache' 1456 -n, --no-create do not create output files 1457 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1458 1459 Installation directories: 1460 --prefix=PREFIX install architecture-independent files in PREFIX 1461 [$ac_default_prefix] 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1463 [PREFIX] 1464 1465 By default, \`make install' will install all the files in 1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1468 for instance \`--prefix=\$HOME'. 1469 1470 For better control, use the options below. 1471 1472 Fine tuning of the installation directories: 1473 --bindir=DIR user executables [EPREFIX/bin] 1474 --sbindir=DIR system admin executables [EPREFIX/sbin] 1475 --libexecdir=DIR program executables [EPREFIX/libexec] 1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1479 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1480 --libdir=DIR object code libraries [EPREFIX/lib] 1481 --includedir=DIR C header files [PREFIX/include] 1482 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1485 --infodir=DIR info documentation [DATAROOTDIR/info] 1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1487 --mandir=DIR man documentation [DATAROOTDIR/man] 1488 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-qxl] 1489 --htmldir=DIR html documentation [DOCDIR] 1490 --dvidir=DIR dvi documentation [DOCDIR] 1491 --pdfdir=DIR pdf documentation [DOCDIR] 1492 --psdir=DIR ps documentation [DOCDIR] 1493 _ACEOF 1494 1495 cat <<\_ACEOF 1496 1497 Program names: 1498 --program-prefix=PREFIX prepend PREFIX to installed program names 1499 --program-suffix=SUFFIX append SUFFIX to installed program names 1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1501 1502 System types: 1503 --build=BUILD configure for building on BUILD [guessed] 1504 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1505 _ACEOF 1506 fi 1507 1508 if test -n "$ac_init_help"; then 1509 case $ac_init_help in 1510 short | recursive ) echo "Configuration of xf86-video-qxl 0.1.6:";; 1511 esac 1512 cat <<\_ACEOF 1513 1514 Optional Features: 1515 --disable-option-checking ignore unrecognized --enable/--with options 1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1518 --enable-silent-rules less verbose build output (undo: "make V=1") 1519 --disable-silent-rules verbose build output (undo: "make V=0") 1520 --enable-maintainer-mode 1521 enable make rules and dependencies not useful (and 1522 sometimes confusing) to the casual installer 1523 --disable-largefile omit support for large files 1524 --enable-dependency-tracking 1525 do not reject slow dependency extractors 1526 --disable-dependency-tracking 1527 speeds up one-time build 1528 --disable-selective-werror 1529 Turn off selective compiler errors. (default: 1530 enabled) 1531 --enable-strict-compilation 1532 Enable all warnings from compiler and make them 1533 errors (default: disabled) 1534 --enable-static[=PKGS] build static libraries [default=no] 1535 --enable-shared[=PKGS] build shared libraries [default=yes] 1536 --enable-fast-install[=PKGS] 1537 optimize for fast installation [default=yes] 1538 --disable-libtool-lock avoid locking (might break parallel builds) 1539 --disable-kms Disable KMS support [[default=enabled]] 1540 --enable-xspice[=(no|yes|only)] Build the xspice driver 1541 no (default) Do not build 1542 yes Build in addition to qxl 1543 only Only build xspice 1544 --enable-ccid Build the spiceccid SmartCard driver (default is no) 1545 --disable-udev Disable libudev support [default=auto] 1546 1547 Optional Packages: 1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1550 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1551 both] 1552 --with-aix-soname=aix|svr4|both 1553 shared library versioning (aka "SONAME") variant to 1554 provide on AIX, [default=aix]. 1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1556 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1557 compiler's sysroot if not specified). 1558 --with-xorg-module-dir=DIR 1559 --with-ccid-module-dir=DIR 1560 Specify the install path for spiceccid driver 1561 (default is $libdir/pcsc/drivers/serial) 1562 1563 Some influential environment variables: 1564 CC C compiler command 1565 CFLAGS C compiler flags 1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1567 nonstandard directory <lib dir> 1568 LIBS libraries to pass to the linker, e.g. -l<library> 1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1570 you have headers in a nonstandard directory <include dir> 1571 PKG_CONFIG path to pkg-config utility 1572 PKG_CONFIG_PATH 1573 directories to add to pkg-config's search path 1574 PKG_CONFIG_LIBDIR 1575 path overriding pkg-config's built-in search path 1576 LT_SYS_LIBRARY_PATH 1577 User-defined run-time library search path. 1578 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1579 XORG_LIBS linker flags for XORG, overriding pkg-config 1580 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config 1581 DRM_LIBS linker flags for DRM, overriding pkg-config 1582 PCIACCESS_CFLAGS 1583 C compiler flags for PCIACCESS, overriding pkg-config 1584 PCIACCESS_LIBS 1585 linker flags for PCIACCESS, overriding pkg-config 1586 SPICE_CFLAGS 1587 C compiler flags for SPICE, overriding pkg-config 1588 SPICE_LIBS linker flags for SPICE, overriding pkg-config 1589 LIBPCSCLITE_CFLAGS 1590 C compiler flags for LIBPCSCLITE, overriding pkg-config 1591 LIBPCSCLITE_LIBS 1592 linker flags for LIBPCSCLITE, overriding pkg-config 1593 LIBCACARD_CFLAGS 1594 C compiler flags for LIBCACARD, overriding pkg-config 1595 LIBCACARD_LIBS 1596 linker flags for LIBCACARD, overriding pkg-config 1597 LIBUDEV_CFLAGS 1598 C compiler flags for LIBUDEV, overriding pkg-config 1599 LIBUDEV_LIBS 1600 linker flags for LIBUDEV, overriding pkg-config 1601 SPICE_PROTOCOL_CFLAGS 1602 C compiler flags for SPICE_PROTOCOL, overriding pkg-config 1603 SPICE_PROTOCOL_LIBS 1604 linker flags for SPICE_PROTOCOL, overriding pkg-config 1605 1606 Use these variables to override the choices made by `configure' or to help 1607 it to find libraries and programs with nonstandard names/locations. 1608 1609 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/issues>. 1610 _ACEOF 1611 ac_status=$? 1612 fi 1613 1614 if test "$ac_init_help" = "recursive"; then 1615 # If there are subdirs, report their specific --help. 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1617 test -d "$ac_dir" || 1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1619 continue 1620 ac_builddir=. 1621 1622 case "$ac_dir" in 1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1624 *) 1625 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1626 # A ".." for each directory in $ac_dir_suffix. 1627 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1628 case $ac_top_builddir_sub in 1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1631 esac ;; 1632 esac 1633 ac_abs_top_builddir=$ac_pwd 1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1635 # for backward compatibility: 1636 ac_top_builddir=$ac_top_build_prefix 1637 1638 case $srcdir in 1639 .) # We are building in place. 1640 ac_srcdir=. 1641 ac_top_srcdir=$ac_top_builddir_sub 1642 ac_abs_top_srcdir=$ac_pwd ;; 1643 [\\/]* | ?:[\\/]* ) # Absolute name. 1644 ac_srcdir=$srcdir$ac_dir_suffix; 1645 ac_top_srcdir=$srcdir 1646 ac_abs_top_srcdir=$srcdir ;; 1647 *) # Relative name. 1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1649 ac_top_srcdir=$ac_top_build_prefix$srcdir 1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1651 esac 1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1653 1654 cd "$ac_dir" || { ac_status=$?; continue; } 1655 # Check for configure.gnu first; this name is used for a wrapper for 1656 # Metaconfig's "Configure" on case-insensitive file systems. 1657 if test -f "$ac_srcdir/configure.gnu"; then 1658 echo && 1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1660 elif test -f "$ac_srcdir/configure"; then 1661 echo && 1662 $SHELL "$ac_srcdir/configure" --help=recursive 1663 else 1664 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1665 fi || ac_status=$? 1666 cd "$ac_pwd" || { ac_status=$?; break; } 1667 done 1668 fi 1669 1670 test -n "$ac_init_help" && exit $ac_status 1671 if $ac_init_version; then 1672 cat <<\_ACEOF 1673 xf86-video-qxl configure 0.1.6 1674 generated by GNU Autoconf 2.71 1675 1676 Copyright (C) 2021 Free Software Foundation, Inc. 1677 This configure script is free software; the Free Software Foundation 1678 gives unlimited permission to copy, distribute and modify it. 1679 _ACEOF 1680 exit 1681 fi 1682 1683 ## ------------------------ ## 1684 ## Autoconf initialization. ## 1685 ## ------------------------ ## 1686 1687 # ac_fn_c_try_compile LINENO 1688 # -------------------------- 1689 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1690 ac_fn_c_try_compile () 1691 { 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext conftest.beam 1694 if { { ac_try="$ac_compile" 1695 case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698 esac 1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700 printf "%s\n" "$ac_try_echo"; } >&5 1701 (eval "$ac_compile") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest.$ac_objext 1713 then : 1714 ac_retval=0 1715 else $as_nop 1716 printf "%s\n" "$as_me: failed program was:" >&5 1717 sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720 fi 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724 } # ac_fn_c_try_compile 1725 1726 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1727 # ------------------------------------------------------------------ 1728 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1729 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1730 ac_fn_check_decl () 1731 { 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 as_decl_name=`echo $2|sed 's/ *(.*//'` 1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1735 printf %s "checking whether $as_decl_name is declared... " >&6; } 1736 if eval test \${$3+y} 1737 then : 1738 printf %s "(cached) " >&6 1739 else $as_nop 1740 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1741 eval ac_save_FLAGS=\$$6 1742 as_fn_append $6 " $5" 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744 /* end confdefs.h. */ 1745 $4 1746 int 1747 main (void) 1748 { 1749 #ifndef $as_decl_name 1750 #ifdef __cplusplus 1751 (void) $as_decl_use; 1752 #else 1753 (void) $as_decl_name; 1754 #endif 1755 #endif 1756 1757 ; 1758 return 0; 1759 } 1760 _ACEOF 1761 if ac_fn_c_try_compile "$LINENO" 1762 then : 1763 eval "$3=yes" 1764 else $as_nop 1765 eval "$3=no" 1766 fi 1767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1768 eval $6=\$ac_save_FLAGS 1769 1770 fi 1771 eval ac_res=\$$3 1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1773 printf "%s\n" "$ac_res" >&6; } 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 1776 } # ac_fn_check_decl 1777 1778 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1779 # ------------------------------------------------------- 1780 # Tests whether HEADER exists and can be compiled using the include files in 1781 # INCLUDES, setting the cache variable VAR accordingly. 1782 ac_fn_c_check_header_compile () 1783 { 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786 printf %s "checking for $2... " >&6; } 1787 if eval test \${$3+y} 1788 then : 1789 printf %s "(cached) " >&6 1790 else $as_nop 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792 /* end confdefs.h. */ 1793 $4 1794 #include <$2> 1795 _ACEOF 1796 if ac_fn_c_try_compile "$LINENO" 1797 then : 1798 eval "$3=yes" 1799 else $as_nop 1800 eval "$3=no" 1801 fi 1802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1803 fi 1804 eval ac_res=\$$3 1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1806 printf "%s\n" "$ac_res" >&6; } 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 1809 } # ac_fn_c_check_header_compile 1810 1811 # ac_fn_c_try_link LINENO 1812 # ----------------------- 1813 # Try to link conftest.$ac_ext, and return whether this succeeded. 1814 ac_fn_c_try_link () 1815 { 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1818 if { { ac_try="$ac_link" 1819 case "(($ac_try" in 1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1821 *) ac_try_echo=$ac_try;; 1822 esac 1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1824 printf "%s\n" "$ac_try_echo"; } >&5 1825 (eval "$ac_link") 2>conftest.err 1826 ac_status=$? 1827 if test -s conftest.err; then 1828 grep -v '^ *+' conftest.err >conftest.er1 1829 cat conftest.er1 >&5 1830 mv -f conftest.er1 conftest.err 1831 fi 1832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1833 test $ac_status = 0; } && { 1834 test -z "$ac_c_werror_flag" || 1835 test ! -s conftest.err 1836 } && test -s conftest$ac_exeext && { 1837 test "$cross_compiling" = yes || 1838 test -x conftest$ac_exeext 1839 } 1840 then : 1841 ac_retval=0 1842 else $as_nop 1843 printf "%s\n" "$as_me: failed program was:" >&5 1844 sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=1 1847 fi 1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1850 # interfere with the next link command; also delete a directory that is 1851 # left behind by Apple's compiler. We do this before executing the actions. 1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 as_fn_set_status $ac_retval 1855 1856 } # ac_fn_c_try_link 1857 1858 # ac_fn_c_check_func LINENO FUNC VAR 1859 # ---------------------------------- 1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1861 ac_fn_c_check_func () 1862 { 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865 printf %s "checking for $2... " >&6; } 1866 if eval test \${$3+y} 1867 then : 1868 printf %s "(cached) " >&6 1869 else $as_nop 1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1871 /* end confdefs.h. */ 1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1874 #define $2 innocuous_$2 1875 1876 /* System header to define __stub macros and hopefully few prototypes, 1877 which can conflict with char $2 (); below. */ 1878 1879 #include <limits.h> 1880 #undef $2 1881 1882 /* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885 #ifdef __cplusplus 1886 extern "C" 1887 #endif 1888 char $2 (); 1889 /* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892 #if defined __stub_$2 || defined __stub___$2 1893 choke me 1894 #endif 1895 1896 int 1897 main (void) 1898 { 1899 return $2 (); 1900 ; 1901 return 0; 1902 } 1903 _ACEOF 1904 if ac_fn_c_try_link "$LINENO" 1905 then : 1906 eval "$3=yes" 1907 else $as_nop 1908 eval "$3=no" 1909 fi 1910 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1911 conftest$ac_exeext conftest.$ac_ext 1912 fi 1913 eval ac_res=\$$3 1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915 printf "%s\n" "$ac_res" >&6; } 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918 } # ac_fn_c_check_func 1919 ac_configure_args_raw= 1920 for ac_arg 1921 do 1922 case $ac_arg in 1923 *\'*) 1924 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1925 esac 1926 as_fn_append ac_configure_args_raw " '$ac_arg'" 1927 done 1928 1929 case $ac_configure_args_raw in 1930 *$as_nl*) 1931 ac_safe_unquote= ;; 1932 *) 1933 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1934 ac_unsafe_a="$ac_unsafe_z#~" 1935 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1936 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1937 esac 1938 1939 cat >config.log <<_ACEOF 1940 This file contains any messages produced by compilers while 1941 running configure, to aid debugging if configure makes a mistake. 1942 1943 It was created by xf86-video-qxl $as_me 0.1.6, which was 1944 generated by GNU Autoconf 2.71. Invocation command line was 1945 1946 $ $0$ac_configure_args_raw 1947 1948 _ACEOF 1949 exec 5>>config.log 1950 { 1951 cat <<_ASUNAME 1952 ## --------- ## 1953 ## Platform. ## 1954 ## --------- ## 1955 1956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1957 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1958 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1959 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1960 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1961 1962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1964 1965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1968 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1972 1973 _ASUNAME 1974 1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1976 for as_dir in $PATH 1977 do 1978 IFS=$as_save_IFS 1979 case $as_dir in #((( 1980 '') as_dir=./ ;; 1981 */) ;; 1982 *) as_dir=$as_dir/ ;; 1983 esac 1984 printf "%s\n" "PATH: $as_dir" 1985 done 1986 IFS=$as_save_IFS 1987 1988 } >&5 1989 1990 cat >&5 <<_ACEOF 1991 1992 1993 ## ----------- ## 1994 ## Core tests. ## 1995 ## ----------- ## 1996 1997 _ACEOF 1998 1999 2000 # Keep a trace of the command line. 2001 # Strip out --no-create and --no-recursion so they do not pile up. 2002 # Strip out --silent because we don't want to record it for future runs. 2003 # Also quote any args containing shell meta-characters. 2004 # Make two passes to allow for proper duplicate-argument suppression. 2005 ac_configure_args= 2006 ac_configure_args0= 2007 ac_configure_args1= 2008 ac_must_keep_next=false 2009 for ac_pass in 1 2 2010 do 2011 for ac_arg 2012 do 2013 case $ac_arg in 2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2016 | -silent | --silent | --silen | --sile | --sil) 2017 continue ;; 2018 *\'*) 2019 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2020 esac 2021 case $ac_pass in 2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2023 2) 2024 as_fn_append ac_configure_args1 " '$ac_arg'" 2025 if test $ac_must_keep_next = true; then 2026 ac_must_keep_next=false # Got value, back to normal. 2027 else 2028 case $ac_arg in 2029 *=* | --config-cache | -C | -disable-* | --disable-* \ 2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2032 | -with-* | --with-* | -without-* | --without-* | --x) 2033 case "$ac_configure_args0 " in 2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2035 esac 2036 ;; 2037 -* ) ac_must_keep_next=true ;; 2038 esac 2039 fi 2040 as_fn_append ac_configure_args " '$ac_arg'" 2041 ;; 2042 esac 2043 done 2044 done 2045 { ac_configure_args0=; unset ac_configure_args0;} 2046 { ac_configure_args1=; unset ac_configure_args1;} 2047 2048 # When interrupted or exit'd, cleanup temporary files, and complete 2049 # config.log. We remove comments because anyway the quotes in there 2050 # would cause problems or look ugly. 2051 # WARNING: Use '\'' to represent an apostrophe within the trap. 2052 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2053 trap 'exit_status=$? 2054 # Sanitize IFS. 2055 IFS=" "" $as_nl" 2056 # Save into config.log some information that might help in debugging. 2057 { 2058 echo 2059 2060 printf "%s\n" "## ---------------- ## 2061 ## Cache variables. ## 2062 ## ---------------- ##" 2063 echo 2064 # The following way of writing the cache mishandles newlines in values, 2065 ( 2066 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2067 eval ac_val=\$$ac_var 2068 case $ac_val in #( 2069 *${as_nl}*) 2070 case $ac_var in #( 2071 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2072 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2073 esac 2074 case $ac_var in #( 2075 _ | IFS | as_nl) ;; #( 2076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2077 *) { eval $ac_var=; unset $ac_var;} ;; 2078 esac ;; 2079 esac 2080 done 2081 (set) 2>&1 | 2082 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2083 *${as_nl}ac_space=\ *) 2084 sed -n \ 2085 "s/'\''/'\''\\\\'\'''\''/g; 2086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2087 ;; #( 2088 *) 2089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2090 ;; 2091 esac | 2092 sort 2093 ) 2094 echo 2095 2096 printf "%s\n" "## ----------------- ## 2097 ## Output variables. ## 2098 ## ----------------- ##" 2099 echo 2100 for ac_var in $ac_subst_vars 2101 do 2102 eval ac_val=\$$ac_var 2103 case $ac_val in 2104 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2105 esac 2106 printf "%s\n" "$ac_var='\''$ac_val'\''" 2107 done | sort 2108 echo 2109 2110 if test -n "$ac_subst_files"; then 2111 printf "%s\n" "## ------------------- ## 2112 ## File substitutions. ## 2113 ## ------------------- ##" 2114 echo 2115 for ac_var in $ac_subst_files 2116 do 2117 eval ac_val=\$$ac_var 2118 case $ac_val in 2119 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2120 esac 2121 printf "%s\n" "$ac_var='\''$ac_val'\''" 2122 done | sort 2123 echo 2124 fi 2125 2126 if test -s confdefs.h; then 2127 printf "%s\n" "## ----------- ## 2128 ## confdefs.h. ## 2129 ## ----------- ##" 2130 echo 2131 cat confdefs.h 2132 echo 2133 fi 2134 test "$ac_signal" != 0 && 2135 printf "%s\n" "$as_me: caught signal $ac_signal" 2136 printf "%s\n" "$as_me: exit $exit_status" 2137 } >&5 2138 rm -f core *.core core.conftest.* && 2139 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2140 exit $exit_status 2141 ' 0 2142 for ac_signal in 1 2 13 15; do 2143 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2144 done 2145 ac_signal=0 2146 2147 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2148 rm -f -r conftest* confdefs.h 2149 2150 printf "%s\n" "/* confdefs.h */" > confdefs.h 2151 2152 # Predefined preprocessor variables. 2153 2154 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2155 2156 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2157 2158 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2159 2160 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2161 2162 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2163 2164 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2165 2166 2167 # Let the site file select an alternate cache file if it wants to. 2168 # Prefer an explicitly selected file to automatically selected ones. 2169 if test -n "$CONFIG_SITE"; then 2170 ac_site_files="$CONFIG_SITE" 2171 elif test "x$prefix" != xNONE; then 2172 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2173 else 2174 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2175 fi 2176 2177 for ac_site_file in $ac_site_files 2178 do 2179 case $ac_site_file in #( 2180 */*) : 2181 ;; #( 2182 *) : 2183 ac_site_file=./$ac_site_file ;; 2184 esac 2185 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2187 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2188 sed 's/^/| /' "$ac_site_file" >&5 2189 . "$ac_site_file" \ 2190 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2191 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2192 as_fn_error $? "failed to load site script $ac_site_file 2193 See \`config.log' for more details" "$LINENO" 5; } 2194 fi 2195 done 2196 2197 if test -r "$cache_file"; then 2198 # Some versions of bash will fail to source /dev/null (special files 2199 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2200 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2202 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2203 case $cache_file in 2204 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2205 *) . "./$cache_file";; 2206 esac 2207 fi 2208 else 2209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2210 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2211 >$cache_file 2212 fi 2213 2214 # Test code for whether the C compiler supports C89 (global declarations) 2215 ac_c_conftest_c89_globals=' 2216 /* Does the compiler advertise C89 conformance? 2217 Do not test the value of __STDC__, because some compilers set it to 0 2218 while being otherwise adequately conformant. */ 2219 #if !defined __STDC__ 2220 # error "Compiler does not advertise C89 conformance" 2221 #endif 2222 2223 #include <stddef.h> 2224 #include <stdarg.h> 2225 struct stat; 2226 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2227 struct buf { int x; }; 2228 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2229 static char *e (p, i) 2230 char **p; 2231 int i; 2232 { 2233 return p[i]; 2234 } 2235 static char *f (char * (*g) (char **, int), char **p, ...) 2236 { 2237 char *s; 2238 va_list v; 2239 va_start (v,p); 2240 s = g (p, va_arg (v,int)); 2241 va_end (v); 2242 return s; 2243 } 2244 2245 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2246 function prototypes and stuff, but not \xHH hex character constants. 2247 These do not provoke an error unfortunately, instead are silently treated 2248 as an "x". The following induces an error, until -std is added to get 2249 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2250 array size at least. It is necessary to write \x00 == 0 to get something 2251 that is true only with -std. */ 2252 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2253 2254 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2255 inside strings and character constants. */ 2256 #define FOO(x) '\''x'\'' 2257 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2258 2259 int test (int i, double x); 2260 struct s1 {int (*f) (int a);}; 2261 struct s2 {int (*f) (double a);}; 2262 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2263 int, int);' 2264 2265 # Test code for whether the C compiler supports C89 (body of main). 2266 ac_c_conftest_c89_main=' 2267 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2268 ' 2269 2270 # Test code for whether the C compiler supports C99 (global declarations) 2271 ac_c_conftest_c99_globals=' 2272 // Does the compiler advertise C99 conformance? 2273 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2274 # error "Compiler does not advertise C99 conformance" 2275 #endif 2276 2277 #include <stdbool.h> 2278 extern int puts (const char *); 2279 extern int printf (const char *, ...); 2280 extern int dprintf (int, const char *, ...); 2281 extern void *malloc (size_t); 2282 2283 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2284 // dprintf is used instead of fprintf to avoid needing to declare 2285 // FILE and stderr. 2286 #define debug(...) dprintf (2, __VA_ARGS__) 2287 #define showlist(...) puts (#__VA_ARGS__) 2288 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2289 static void 2290 test_varargs_macros (void) 2291 { 2292 int x = 1234; 2293 int y = 5678; 2294 debug ("Flag"); 2295 debug ("X = %d\n", x); 2296 showlist (The first, second, and third items.); 2297 report (x>y, "x is %d but y is %d", x, y); 2298 } 2299 2300 // Check long long types. 2301 #define BIG64 18446744073709551615ull 2302 #define BIG32 4294967295ul 2303 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2304 #if !BIG_OK 2305 #error "your preprocessor is broken" 2306 #endif 2307 #if BIG_OK 2308 #else 2309 #error "your preprocessor is broken" 2310 #endif 2311 static long long int bignum = -9223372036854775807LL; 2312 static unsigned long long int ubignum = BIG64; 2313 2314 struct incomplete_array 2315 { 2316 int datasize; 2317 double data[]; 2318 }; 2319 2320 struct named_init { 2321 int number; 2322 const wchar_t *name; 2323 double average; 2324 }; 2325 2326 typedef const char *ccp; 2327 2328 static inline int 2329 test_restrict (ccp restrict text) 2330 { 2331 // See if C++-style comments work. 2332 // Iterate through items via the restricted pointer. 2333 // Also check for declarations in for loops. 2334 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2335 continue; 2336 return 0; 2337 } 2338 2339 // Check varargs and va_copy. 2340 static bool 2341 test_varargs (const char *format, ...) 2342 { 2343 va_list args; 2344 va_start (args, format); 2345 va_list args_copy; 2346 va_copy (args_copy, args); 2347 2348 const char *str = ""; 2349 int number = 0; 2350 float fnumber = 0; 2351 2352 while (*format) 2353 { 2354 switch (*format++) 2355 { 2356 case '\''s'\'': // string 2357 str = va_arg (args_copy, const char *); 2358 break; 2359 case '\''d'\'': // int 2360 number = va_arg (args_copy, int); 2361 break; 2362 case '\''f'\'': // float 2363 fnumber = va_arg (args_copy, double); 2364 break; 2365 default: 2366 break; 2367 } 2368 } 2369 va_end (args_copy); 2370 va_end (args); 2371 2372 return *str && number && fnumber; 2373 } 2374 ' 2375 2376 # Test code for whether the C compiler supports C99 (body of main). 2377 ac_c_conftest_c99_main=' 2378 // Check bool. 2379 _Bool success = false; 2380 success |= (argc != 0); 2381 2382 // Check restrict. 2383 if (test_restrict ("String literal") == 0) 2384 success = true; 2385 char *restrict newvar = "Another string"; 2386 2387 // Check varargs. 2388 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2389 test_varargs_macros (); 2390 2391 // Check flexible array members. 2392 struct incomplete_array *ia = 2393 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2394 ia->datasize = 10; 2395 for (int i = 0; i < ia->datasize; ++i) 2396 ia->data[i] = i * 1.234; 2397 2398 // Check named initializers. 2399 struct named_init ni = { 2400 .number = 34, 2401 .name = L"Test wide string", 2402 .average = 543.34343, 2403 }; 2404 2405 ni.number = 58; 2406 2407 int dynamic_array[ni.number]; 2408 dynamic_array[0] = argv[0][0]; 2409 dynamic_array[ni.number - 1] = 543; 2410 2411 // work around unused variable warnings 2412 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2413 || dynamic_array[ni.number - 1] != 543); 2414 ' 2415 2416 # Test code for whether the C compiler supports C11 (global declarations) 2417 ac_c_conftest_c11_globals=' 2418 // Does the compiler advertise C11 conformance? 2419 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2420 # error "Compiler does not advertise C11 conformance" 2421 #endif 2422 2423 // Check _Alignas. 2424 char _Alignas (double) aligned_as_double; 2425 char _Alignas (0) no_special_alignment; 2426 extern char aligned_as_int; 2427 char _Alignas (0) _Alignas (int) aligned_as_int; 2428 2429 // Check _Alignof. 2430 enum 2431 { 2432 int_alignment = _Alignof (int), 2433 int_array_alignment = _Alignof (int[100]), 2434 char_alignment = _Alignof (char) 2435 }; 2436 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2437 2438 // Check _Noreturn. 2439 int _Noreturn does_not_return (void) { for (;;) continue; } 2440 2441 // Check _Static_assert. 2442 struct test_static_assert 2443 { 2444 int x; 2445 _Static_assert (sizeof (int) <= sizeof (long int), 2446 "_Static_assert does not work in struct"); 2447 long int y; 2448 }; 2449 2450 // Check UTF-8 literals. 2451 #define u8 syntax error! 2452 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2453 2454 // Check duplicate typedefs. 2455 typedef long *long_ptr; 2456 typedef long int *long_ptr; 2457 typedef long_ptr long_ptr; 2458 2459 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2460 struct anonymous 2461 { 2462 union { 2463 struct { int i; int j; }; 2464 struct { int k; long int l; } w; 2465 }; 2466 int m; 2467 } v1; 2468 ' 2469 2470 # Test code for whether the C compiler supports C11 (body of main). 2471 ac_c_conftest_c11_main=' 2472 _Static_assert ((offsetof (struct anonymous, i) 2473 == offsetof (struct anonymous, w.k)), 2474 "Anonymous union alignment botch"); 2475 v1.i = 2; 2476 v1.w.k = 5; 2477 ok |= v1.i != 5; 2478 ' 2479 2480 # Test code for whether the C compiler supports C11 (complete). 2481 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2482 ${ac_c_conftest_c99_globals} 2483 ${ac_c_conftest_c11_globals} 2484 2485 int 2486 main (int argc, char **argv) 2487 { 2488 int ok = 0; 2489 ${ac_c_conftest_c89_main} 2490 ${ac_c_conftest_c99_main} 2491 ${ac_c_conftest_c11_main} 2492 return ok; 2493 } 2494 " 2495 2496 # Test code for whether the C compiler supports C99 (complete). 2497 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2498 ${ac_c_conftest_c99_globals} 2499 2500 int 2501 main (int argc, char **argv) 2502 { 2503 int ok = 0; 2504 ${ac_c_conftest_c89_main} 2505 ${ac_c_conftest_c99_main} 2506 return ok; 2507 } 2508 " 2509 2510 # Test code for whether the C compiler supports C89 (complete). 2511 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2512 2513 int 2514 main (int argc, char **argv) 2515 { 2516 int ok = 0; 2517 ${ac_c_conftest_c89_main} 2518 return ok; 2519 } 2520 " 2521 2522 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2523 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2524 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2525 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2526 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2527 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2528 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2529 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2530 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2531 2532 # Auxiliary files required by this configure script. 2533 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub" 2534 2535 # Locations in which to look for auxiliary files. 2536 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2537 2538 # Search for a directory containing all of the required auxiliary files, 2539 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2540 # If we don't find one directory that contains all the files we need, 2541 # we report the set of missing files from the *first* directory in 2542 # $ac_aux_dir_candidates and give up. 2543 ac_missing_aux_files="" 2544 ac_first_candidate=: 2545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547 as_found=false 2548 for as_dir in $ac_aux_dir_candidates 2549 do 2550 IFS=$as_save_IFS 2551 case $as_dir in #((( 2552 '') as_dir=./ ;; 2553 */) ;; 2554 *) as_dir=$as_dir/ ;; 2555 esac 2556 as_found=: 2557 2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2559 ac_aux_dir_found=yes 2560 ac_install_sh= 2561 for ac_aux in $ac_aux_files 2562 do 2563 # As a special case, if "install-sh" is required, that requirement 2564 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2565 # and $ac_install_sh is set appropriately for whichever one is found. 2566 if test x"$ac_aux" = x"install-sh" 2567 then 2568 if test -f "${as_dir}install-sh"; then 2569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2570 ac_install_sh="${as_dir}install-sh -c" 2571 elif test -f "${as_dir}install.sh"; then 2572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2573 ac_install_sh="${as_dir}install.sh -c" 2574 elif test -f "${as_dir}shtool"; then 2575 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2576 ac_install_sh="${as_dir}shtool install -c" 2577 else 2578 ac_aux_dir_found=no 2579 if $ac_first_candidate; then 2580 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2581 else 2582 break 2583 fi 2584 fi 2585 else 2586 if test -f "${as_dir}${ac_aux}"; then 2587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2588 else 2589 ac_aux_dir_found=no 2590 if $ac_first_candidate; then 2591 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2592 else 2593 break 2594 fi 2595 fi 2596 fi 2597 done 2598 if test "$ac_aux_dir_found" = yes; then 2599 ac_aux_dir="$as_dir" 2600 break 2601 fi 2602 ac_first_candidate=false 2603 2604 as_found=false 2605 done 2606 IFS=$as_save_IFS 2607 if $as_found 2608 then : 2609 2610 else $as_nop 2611 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2612 fi 2613 2614 2615 # These three variables are undocumented and unsupported, 2616 # and are intended to be withdrawn in a future Autoconf release. 2617 # They can cause serious problems if a builder's source tree is in a directory 2618 # whose full name contains unusual characters. 2619 if test -f "${ac_aux_dir}config.guess"; then 2620 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2621 fi 2622 if test -f "${ac_aux_dir}config.sub"; then 2623 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2624 fi 2625 if test -f "$ac_aux_dir/configure"; then 2626 ac_configure="$SHELL ${ac_aux_dir}configure" 2627 fi 2628 2629 # Check that the precious variables saved in the cache have kept the same 2630 # value. 2631 ac_cache_corrupted=false 2632 for ac_var in $ac_precious_vars; do 2633 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2634 eval ac_new_set=\$ac_env_${ac_var}_set 2635 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2636 eval ac_new_val=\$ac_env_${ac_var}_value 2637 case $ac_old_set,$ac_new_set in 2638 set,) 2639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2640 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2641 ac_cache_corrupted=: ;; 2642 ,set) 2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2644 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2645 ac_cache_corrupted=: ;; 2646 ,);; 2647 *) 2648 if test "x$ac_old_val" != "x$ac_new_val"; then 2649 # differences in whitespace do not lead to failure. 2650 ac_old_val_w=`echo x $ac_old_val` 2651 ac_new_val_w=`echo x $ac_new_val` 2652 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2654 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2655 ac_cache_corrupted=: 2656 else 2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2658 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2659 eval $ac_var=\$ac_old_val 2660 fi 2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2662 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2664 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2665 fi;; 2666 esac 2667 # Pass precious variables to config.status. 2668 if test "$ac_new_set" = set; then 2669 case $ac_new_val in 2670 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2671 *) ac_arg=$ac_var=$ac_new_val ;; 2672 esac 2673 case " $ac_configure_args " in 2674 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2675 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2676 esac 2677 fi 2678 done 2679 if $ac_cache_corrupted; then 2680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2681 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2683 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2684 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2685 and start over" "$LINENO" 5 2686 fi 2687 ## -------------------- ## 2688 ## Main body of script. ## 2689 ## -------------------- ## 2690 2691 ac_ext=c 2692 ac_cpp='$CPP $CPPFLAGS' 2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2696 2697 2698 2699 2700 2701 2702 # Make sure we can run config.sub. 2703 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 2704 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 2705 2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2707 printf %s "checking build system type... " >&6; } 2708 if test ${ac_cv_build+y} 2709 then : 2710 printf %s "(cached) " >&6 2711 else $as_nop 2712 ac_build_alias=$build_alias 2713 test "x$ac_build_alias" = x && 2714 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 2715 test "x$ac_build_alias" = x && 2716 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2717 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 2718 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 2719 2720 fi 2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2722 printf "%s\n" "$ac_cv_build" >&6; } 2723 case $ac_cv_build in 2724 *-*-*) ;; 2725 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2726 esac 2727 build=$ac_cv_build 2728 ac_save_IFS=$IFS; IFS='-' 2729 set x $ac_cv_build 2730 shift 2731 build_cpu=$1 2732 build_vendor=$2 2733 shift; shift 2734 # Remember, the first character of IFS is used to create $*, 2735 # except with old shells: 2736 build_os=$* 2737 IFS=$ac_save_IFS 2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2739 2740 2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2742 printf %s "checking host system type... " >&6; } 2743 if test ${ac_cv_host+y} 2744 then : 2745 printf %s "(cached) " >&6 2746 else $as_nop 2747 if test "x$host_alias" = x; then 2748 ac_cv_host=$ac_cv_build 2749 else 2750 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 2751 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 2752 fi 2753 2754 fi 2755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2756 printf "%s\n" "$ac_cv_host" >&6; } 2757 case $ac_cv_host in 2758 *-*-*) ;; 2759 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2760 esac 2761 host=$ac_cv_host 2762 ac_save_IFS=$IFS; IFS='-' 2763 set x $ac_cv_host 2764 shift 2765 host_cpu=$1 2766 host_vendor=$2 2767 shift; shift 2768 # Remember, the first character of IFS is used to create $*, 2769 # except with old shells: 2770 host_os=$* 2771 IFS=$ac_save_IFS 2772 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2773 2774 2775 2776 # Initialize Automake 2777 am__api_version='1.16' 2778 2779 2780 # Find a good install program. We prefer a C program (faster), 2781 # so one script is as good as another. But avoid the broken or 2782 # incompatible versions: 2783 # SysV /etc/install, /usr/sbin/install 2784 # SunOS /usr/etc/install 2785 # IRIX /sbin/install 2786 # AIX /bin/install 2787 # AmigaOS /C/install, which installs bootblocks on floppy discs 2788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2791 # OS/2's system install, which has a completely different semantic 2792 # ./install, which can be erroneously created by make from ./install.sh. 2793 # Reject install programs that cannot install multiple files. 2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2795 printf %s "checking for a BSD-compatible install... " >&6; } 2796 if test -z "$INSTALL"; then 2797 if test ${ac_cv_path_install+y} 2798 then : 2799 printf %s "(cached) " >&6 2800 else $as_nop 2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802 for as_dir in $PATH 2803 do 2804 IFS=$as_save_IFS 2805 case $as_dir in #((( 2806 '') as_dir=./ ;; 2807 */) ;; 2808 *) as_dir=$as_dir/ ;; 2809 esac 2810 # Account for fact that we put trailing slashes in our PATH walk. 2811 case $as_dir in #(( 2812 ./ | /[cC]/* | \ 2813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2815 /usr/ucb/* ) ;; 2816 *) 2817 # OSF1 and SCO ODT 3.0 have their own names for install. 2818 # Don't use installbsd from OSF since it installs stuff as root 2819 # by default. 2820 for ac_prog in ginstall scoinst install; do 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2823 if test $ac_prog = install && 2824 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2825 # AIX install. It has an incompatible calling convention. 2826 : 2827 elif test $ac_prog = install && 2828 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2829 # program-specific install script used by HP pwplus--don't use. 2830 : 2831 else 2832 rm -rf conftest.one conftest.two conftest.dir 2833 echo one > conftest.one 2834 echo two > conftest.two 2835 mkdir conftest.dir 2836 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2837 test -s conftest.one && test -s conftest.two && 2838 test -s conftest.dir/conftest.one && 2839 test -s conftest.dir/conftest.two 2840 then 2841 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2842 break 3 2843 fi 2844 fi 2845 fi 2846 done 2847 done 2848 ;; 2849 esac 2850 2851 done 2852 IFS=$as_save_IFS 2853 2854 rm -rf conftest.one conftest.two conftest.dir 2855 2856 fi 2857 if test ${ac_cv_path_install+y}; then 2858 INSTALL=$ac_cv_path_install 2859 else 2860 # As a last resort, use the slow shell script. Don't cache a 2861 # value for INSTALL within a source directory, because that will 2862 # break other packages using the cache if that directory is 2863 # removed, or if the value is a relative name. 2864 INSTALL=$ac_install_sh 2865 fi 2866 fi 2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2868 printf "%s\n" "$INSTALL" >&6; } 2869 2870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2871 # It thinks the first close brace ends the variable substitution. 2872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2873 2874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2875 2876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2877 2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2879 printf %s "checking whether build environment is sane... " >&6; } 2880 # Reject unsafe characters in $srcdir or the absolute working directory 2881 # name. Accept space and tab only in the latter. 2882 am_lf=' 2883 ' 2884 case `pwd` in 2885 *[\\\"\#\$\&\'\`$am_lf]*) 2886 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2887 esac 2888 case $srcdir in 2889 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2890 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2891 esac 2892 2893 # Do 'set' in a subshell so we don't clobber the current shell's 2894 # arguments. Must try -L first in case configure is actually a 2895 # symlink; some systems play weird games with the mod time of symlinks 2896 # (eg FreeBSD returns the mod time of the symlink's containing 2897 # directory). 2898 if ( 2899 am_has_slept=no 2900 for am_try in 1 2; do 2901 echo "timestamp, slept: $am_has_slept" > conftest.file 2902 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2903 if test "$*" = "X"; then 2904 # -L didn't work. 2905 set X `ls -t "$srcdir/configure" conftest.file` 2906 fi 2907 if test "$*" != "X $srcdir/configure conftest.file" \ 2908 && test "$*" != "X conftest.file $srcdir/configure"; then 2909 2910 # If neither matched, then we have a broken ls. This can happen 2911 # if, for instance, CONFIG_SHELL is bash and it inherits a 2912 # broken ls alias from the environment. This has actually 2913 # happened. Such a system could not be considered "sane". 2914 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2915 alias in your environment" "$LINENO" 5 2916 fi 2917 if test "$2" = conftest.file || test $am_try -eq 2; then 2918 break 2919 fi 2920 # Just in case. 2921 sleep 1 2922 am_has_slept=yes 2923 done 2924 test "$2" = conftest.file 2925 ) 2926 then 2927 # Ok. 2928 : 2929 else 2930 as_fn_error $? "newly created file is older than distributed files! 2931 Check your system clock" "$LINENO" 5 2932 fi 2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2934 printf "%s\n" "yes" >&6; } 2935 # If we didn't sleep, we still need to ensure time stamps of config.status and 2936 # generated files are strictly newer. 2937 am_sleep_pid= 2938 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2939 ( sleep 1 ) & 2940 am_sleep_pid=$! 2941 fi 2942 2943 rm -f conftest.file 2944 2945 test "$program_prefix" != NONE && 2946 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2947 # Use a double $ so make ignores it. 2948 test "$program_suffix" != NONE && 2949 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2950 # Double any \ or $. 2951 # By default was `s,x,x', remove it if useless. 2952 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2953 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2954 2955 2956 # Expand $ac_aux_dir to an absolute path. 2957 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2958 2959 2960 if test x"${MISSING+set}" != xset; then 2961 MISSING="\${SHELL} '$am_aux_dir/missing'" 2962 fi 2963 # Use eval to expand $SHELL 2964 if eval "$MISSING --is-lightweight"; then 2965 am_missing_run="$MISSING " 2966 else 2967 am_missing_run= 2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2969 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2970 fi 2971 2972 if test x"${install_sh+set}" != xset; then 2973 case $am_aux_dir in 2974 *\ * | *\ *) 2975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2976 *) 2977 install_sh="\${SHELL} $am_aux_dir/install-sh" 2978 esac 2979 fi 2980 2981 # Installed binaries are usually stripped using 'strip' when the user 2982 # run "make install-strip". However 'strip' might not be the right 2983 # tool to use in cross-compilation environments, therefore Automake 2984 # will honor the 'STRIP' environment variable to overrule this program. 2985 if test "$cross_compiling" != no; then 2986 if test -n "$ac_tool_prefix"; then 2987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2988 set dummy ${ac_tool_prefix}strip; ac_word=$2 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2990 printf %s "checking for $ac_word... " >&6; } 2991 if test ${ac_cv_prog_STRIP+y} 2992 then : 2993 printf %s "(cached) " >&6 2994 else $as_nop 2995 if test -n "$STRIP"; then 2996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2997 else 2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999 for as_dir in $PATH 3000 do 3001 IFS=$as_save_IFS 3002 case $as_dir in #((( 3003 '') as_dir=./ ;; 3004 */) ;; 3005 *) as_dir=$as_dir/ ;; 3006 esac 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3009 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3011 break 2 3012 fi 3013 done 3014 done 3015 IFS=$as_save_IFS 3016 3017 fi 3018 fi 3019 STRIP=$ac_cv_prog_STRIP 3020 if test -n "$STRIP"; then 3021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3022 printf "%s\n" "$STRIP" >&6; } 3023 else 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025 printf "%s\n" "no" >&6; } 3026 fi 3027 3028 3029 fi 3030 if test -z "$ac_cv_prog_STRIP"; then 3031 ac_ct_STRIP=$STRIP 3032 # Extract the first word of "strip", so it can be a program name with args. 3033 set dummy strip; ac_word=$2 3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035 printf %s "checking for $ac_word... " >&6; } 3036 if test ${ac_cv_prog_ac_ct_STRIP+y} 3037 then : 3038 printf %s "(cached) " >&6 3039 else $as_nop 3040 if test -n "$ac_ct_STRIP"; then 3041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3042 else 3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3044 for as_dir in $PATH 3045 do 3046 IFS=$as_save_IFS 3047 case $as_dir in #((( 3048 '') as_dir=./ ;; 3049 */) ;; 3050 *) as_dir=$as_dir/ ;; 3051 esac 3052 for ac_exec_ext in '' $ac_executable_extensions; do 3053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3054 ac_cv_prog_ac_ct_STRIP="strip" 3055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3056 break 2 3057 fi 3058 done 3059 done 3060 IFS=$as_save_IFS 3061 3062 fi 3063 fi 3064 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3065 if test -n "$ac_ct_STRIP"; then 3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3067 printf "%s\n" "$ac_ct_STRIP" >&6; } 3068 else 3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070 printf "%s\n" "no" >&6; } 3071 fi 3072 3073 if test "x$ac_ct_STRIP" = x; then 3074 STRIP=":" 3075 else 3076 case $cross_compiling:$ac_tool_warned in 3077 yes:) 3078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3080 ac_tool_warned=yes ;; 3081 esac 3082 STRIP=$ac_ct_STRIP 3083 fi 3084 else 3085 STRIP="$ac_cv_prog_STRIP" 3086 fi 3087 3088 fi 3089 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3090 3091 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3093 printf %s "checking for a race-free mkdir -p... " >&6; } 3094 if test -z "$MKDIR_P"; then 3095 if test ${ac_cv_path_mkdir+y} 3096 then : 3097 printf %s "(cached) " >&6 3098 else $as_nop 3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3101 do 3102 IFS=$as_save_IFS 3103 case $as_dir in #((( 3104 '') as_dir=./ ;; 3105 */) ;; 3106 *) as_dir=$as_dir/ ;; 3107 esac 3108 for ac_prog in mkdir gmkdir; do 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3111 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3112 'mkdir ('*'coreutils) '* | \ 3113 'BusyBox '* | \ 3114 'mkdir (fileutils) '4.1*) 3115 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3116 break 3;; 3117 esac 3118 done 3119 done 3120 done 3121 IFS=$as_save_IFS 3122 3123 fi 3124 3125 test -d ./--version && rmdir ./--version 3126 if test ${ac_cv_path_mkdir+y}; then 3127 MKDIR_P="$ac_cv_path_mkdir -p" 3128 else 3129 # As a last resort, use the slow shell script. Don't cache a 3130 # value for MKDIR_P within a source directory, because that will 3131 # break other packages using the cache if that directory is 3132 # removed, or if the value is a relative name. 3133 MKDIR_P="$ac_install_sh -d" 3134 fi 3135 fi 3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3137 printf "%s\n" "$MKDIR_P" >&6; } 3138 3139 for ac_prog in gawk mawk nawk awk 3140 do 3141 # Extract the first word of "$ac_prog", so it can be a program name with args. 3142 set dummy $ac_prog; ac_word=$2 3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144 printf %s "checking for $ac_word... " >&6; } 3145 if test ${ac_cv_prog_AWK+y} 3146 then : 3147 printf %s "(cached) " >&6 3148 else $as_nop 3149 if test -n "$AWK"; then 3150 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3151 else 3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3153 for as_dir in $PATH 3154 do 3155 IFS=$as_save_IFS 3156 case $as_dir in #((( 3157 '') as_dir=./ ;; 3158 */) ;; 3159 *) as_dir=$as_dir/ ;; 3160 esac 3161 for ac_exec_ext in '' $ac_executable_extensions; do 3162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3163 ac_cv_prog_AWK="$ac_prog" 3164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3165 break 2 3166 fi 3167 done 3168 done 3169 IFS=$as_save_IFS 3170 3171 fi 3172 fi 3173 AWK=$ac_cv_prog_AWK 3174 if test -n "$AWK"; then 3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3176 printf "%s\n" "$AWK" >&6; } 3177 else 3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3179 printf "%s\n" "no" >&6; } 3180 fi 3181 3182 3183 test -n "$AWK" && break 3184 done 3185 3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3187 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3188 set x ${MAKE-make} 3189 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3190 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3191 then : 3192 printf %s "(cached) " >&6 3193 else $as_nop 3194 cat >conftest.make <<\_ACEOF 3195 SHELL = /bin/sh 3196 all: 3197 @echo '@@@%%%=$(MAKE)=@@@%%%' 3198 _ACEOF 3199 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3200 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3201 *@@@%%%=?*=@@@%%%*) 3202 eval ac_cv_prog_make_${ac_make}_set=yes;; 3203 *) 3204 eval ac_cv_prog_make_${ac_make}_set=no;; 3205 esac 3206 rm -f conftest.make 3207 fi 3208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3210 printf "%s\n" "yes" >&6; } 3211 SET_MAKE= 3212 else 3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3214 printf "%s\n" "no" >&6; } 3215 SET_MAKE="MAKE=${MAKE-make}" 3216 fi 3217 3218 rm -rf .tst 2>/dev/null 3219 mkdir .tst 2>/dev/null 3220 if test -d .tst; then 3221 am__leading_dot=. 3222 else 3223 am__leading_dot=_ 3224 fi 3225 rmdir .tst 2>/dev/null 3226 3227 # Check whether --enable-silent-rules was given. 3228 if test ${enable_silent_rules+y} 3229 then : 3230 enableval=$enable_silent_rules; 3231 fi 3232 3233 case $enable_silent_rules in # ((( 3234 yes) AM_DEFAULT_VERBOSITY=0;; 3235 no) AM_DEFAULT_VERBOSITY=1;; 3236 *) AM_DEFAULT_VERBOSITY=1;; 3237 esac 3238 am_make=${MAKE-make} 3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3240 printf %s "checking whether $am_make supports nested variables... " >&6; } 3241 if test ${am_cv_make_support_nested_variables+y} 3242 then : 3243 printf %s "(cached) " >&6 3244 else $as_nop 3245 if printf "%s\n" 'TRUE=$(BAR$(V)) 3246 BAR0=false 3247 BAR1=true 3248 V=1 3249 am__doit: 3250 @$(TRUE) 3251 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3252 am_cv_make_support_nested_variables=yes 3253 else 3254 am_cv_make_support_nested_variables=no 3255 fi 3256 fi 3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3258 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3259 if test $am_cv_make_support_nested_variables = yes; then 3260 AM_V='$(V)' 3261 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3262 else 3263 AM_V=$AM_DEFAULT_VERBOSITY 3264 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3265 fi 3266 AM_BACKSLASH='\' 3267 3268 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3269 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3270 # is not polluted with repeated "-I." 3271 am__isrc=' -I$(srcdir)' 3272 # test to see if srcdir already configured 3273 if test -f $srcdir/config.status; then 3274 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3275 fi 3276 fi 3277 3278 # test whether we have cygpath 3279 if test -z "$CYGPATH_W"; then 3280 if (cygpath --version) >/dev/null 2>/dev/null; then 3281 CYGPATH_W='cygpath -w' 3282 else 3283 CYGPATH_W=echo 3284 fi 3285 fi 3286 3287 3288 # Define the identity of the package. 3289 PACKAGE='xf86-video-qxl' 3290 VERSION='0.1.6' 3291 3292 3293 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3294 3295 3296 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3297 3298 # Some tools Automake needs. 3299 3300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3301 3302 3303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3304 3305 3306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3307 3308 3309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3310 3311 3312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3313 3314 # For better backward compatibility. To be removed once Automake 1.9.x 3315 # dies out for good. For more background, see: 3316 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3317 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3318 mkdir_p='$(MKDIR_P)' 3319 3320 # We need awk for the "check" target (and possibly the TAP driver). The 3321 # system "awk" is bad on some platforms. 3322 # Always define AMTAR for backward compatibility. Yes, it's still used 3323 # in the wild :-( We should find a proper way to deprecate it ... 3324 AMTAR='$${TAR-tar}' 3325 3326 3327 # We'll loop over all known methods to create a tar archive until one works. 3328 _am_tools='gnutar pax cpio none' 3329 3330 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3331 3332 3333 3334 3335 3336 # Variables for tags utilities; see am/tags.am 3337 if test -z "$CTAGS"; then 3338 CTAGS=ctags 3339 fi 3340 3341 if test -z "$ETAGS"; then 3342 ETAGS=etags 3343 fi 3344 3345 if test -z "$CSCOPE"; then 3346 CSCOPE=cscope 3347 fi 3348 3349 3350 3351 # POSIX will say in a future version that running "rm -f" with no argument 3352 # is OK; and we want to be able to make that assumption in our Makefile 3353 # recipes. So use an aggressive probe to check that the usage we want is 3354 # actually supported "in the wild" to an acceptable degree. 3355 # See automake bug#10828. 3356 # To make any issue more visible, cause the running configure to be aborted 3357 # by default if the 'rm' program in use doesn't match our expectations; the 3358 # user can still override this though. 3359 if rm -f && rm -fr && rm -rf; then : OK; else 3360 cat >&2 <<'END' 3361 Oops! 3362 3363 Your 'rm' program seems unable to run without file operands specified 3364 on the command line, even when the '-f' option is present. This is contrary 3365 to the behaviour of most rm programs out there, and not conforming with 3366 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3367 3368 Please tell bug-automake@gnu.org about your system, including the value 3369 of your $PATH and any error possibly output before this message. This 3370 can help us improve future automake versions. 3371 3372 END 3373 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3374 echo 'Configuration will proceed anyway, since you have set the' >&2 3375 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3376 echo >&2 3377 else 3378 cat >&2 <<'END' 3379 Aborting the configuration process, to ensure you take notice of the issue. 3380 3381 You can download and install GNU coreutils to get an 'rm' implementation 3382 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3383 3384 If you want to complete the configuration process using your problematic 3385 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3386 to "yes", and re-run configure. 3387 3388 END 3389 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3390 fi 3391 fi 3392 3393 3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3395 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3396 # Check whether --enable-maintainer-mode was given. 3397 if test ${enable_maintainer_mode+y} 3398 then : 3399 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3400 else $as_nop 3401 USE_MAINTAINER_MODE=no 3402 fi 3403 3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3405 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3406 if test $USE_MAINTAINER_MODE = yes; then 3407 MAINTAINER_MODE_TRUE= 3408 MAINTAINER_MODE_FALSE='#' 3409 else 3410 MAINTAINER_MODE_TRUE='#' 3411 MAINTAINER_MODE_FALSE= 3412 fi 3413 3414 MAINT=$MAINTAINER_MODE_TRUE 3415 3416 3417 ac_config_headers="$ac_config_headers config.h" 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 DEPDIR="${am__leading_dot}deps" 3429 3430 ac_config_commands="$ac_config_commands depfiles" 3431 3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3433 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3434 cat > confinc.mk << 'END' 3435 am__doit: 3436 @echo this is the am__doit target >confinc.out 3437 .PHONY: am__doit 3438 END 3439 am__include="#" 3440 am__quote= 3441 # BSD make does it like this. 3442 echo '.include "confinc.mk" # ignored' > confmf.BSD 3443 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3444 echo 'include confinc.mk # ignored' > confmf.GNU 3445 _am_result=no 3446 for s in GNU BSD; do 3447 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3448 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); } 3452 case $?:`cat confinc.out 2>/dev/null` in #( 3453 '0:this is the am__doit target') : 3454 case $s in #( 3455 BSD) : 3456 am__include='.include' am__quote='"' ;; #( 3457 *) : 3458 am__include='include' am__quote='' ;; 3459 esac ;; #( 3460 *) : 3461 ;; 3462 esac 3463 if test "$am__include" != "#"; then 3464 _am_result="yes ($s style)" 3465 break 3466 fi 3467 done 3468 rm -f confinc.* confmf.* 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3470 printf "%s\n" "${_am_result}" >&6; } 3471 3472 # Check whether --enable-dependency-tracking was given. 3473 if test ${enable_dependency_tracking+y} 3474 then : 3475 enableval=$enable_dependency_tracking; 3476 fi 3477 3478 if test "x$enable_dependency_tracking" != xno; then 3479 am_depcomp="$ac_aux_dir/depcomp" 3480 AMDEPBACKSLASH='\' 3481 am__nodep='_no' 3482 fi 3483 if test "x$enable_dependency_tracking" != xno; then 3484 AMDEP_TRUE= 3485 AMDEP_FALSE='#' 3486 else 3487 AMDEP_TRUE='#' 3488 AMDEP_FALSE= 3489 fi 3490 3491 3492 ac_ext=c 3493 ac_cpp='$CPP $CPPFLAGS' 3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3497 if test -n "$ac_tool_prefix"; then 3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3499 set dummy ${ac_tool_prefix}gcc; 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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510 for as_dir in $PATH 3511 do 3512 IFS=$as_save_IFS 3513 case $as_dir in #((( 3514 '') as_dir=./ ;; 3515 */) ;; 3516 *) as_dir=$as_dir/ ;; 3517 esac 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524 done 3525 done 3526 IFS=$as_save_IFS 3527 3528 fi 3529 fi 3530 CC=$ac_cv_prog_CC 3531 if test -n "$CC"; then 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3533 printf "%s\n" "$CC" >&6; } 3534 else 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536 printf "%s\n" "no" >&6; } 3537 fi 3538 3539 3540 fi 3541 if test -z "$ac_cv_prog_CC"; then 3542 ac_ct_CC=$CC 3543 # Extract the first word of "gcc", so it can be a program name with args. 3544 set dummy gcc; ac_word=$2 3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3546 printf %s "checking for $ac_word... " >&6; } 3547 if test ${ac_cv_prog_ac_ct_CC+y} 3548 then : 3549 printf %s "(cached) " >&6 3550 else $as_nop 3551 if test -n "$ac_ct_CC"; then 3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3553 else 3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555 for as_dir in $PATH 3556 do 3557 IFS=$as_save_IFS 3558 case $as_dir in #((( 3559 '') as_dir=./ ;; 3560 */) ;; 3561 *) as_dir=$as_dir/ ;; 3562 esac 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_ac_ct_CC="gcc" 3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569 done 3570 done 3571 IFS=$as_save_IFS 3572 3573 fi 3574 fi 3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3576 if test -n "$ac_ct_CC"; then 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3578 printf "%s\n" "$ac_ct_CC" >&6; } 3579 else 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581 printf "%s\n" "no" >&6; } 3582 fi 3583 3584 if test "x$ac_ct_CC" = x; then 3585 CC="" 3586 else 3587 case $cross_compiling:$ac_tool_warned in 3588 yes:) 3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3591 ac_tool_warned=yes ;; 3592 esac 3593 CC=$ac_ct_CC 3594 fi 3595 else 3596 CC="$ac_cv_prog_CC" 3597 fi 3598 3599 if test -z "$CC"; then 3600 if test -n "$ac_tool_prefix"; then 3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3602 set dummy ${ac_tool_prefix}cc; ac_word=$2 3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3604 printf %s "checking for $ac_word... " >&6; } 3605 if test ${ac_cv_prog_CC+y} 3606 then : 3607 printf %s "(cached) " >&6 3608 else $as_nop 3609 if test -n "$CC"; then 3610 ac_cv_prog_CC="$CC" # Let the user override the test. 3611 else 3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613 for as_dir in $PATH 3614 do 3615 IFS=$as_save_IFS 3616 case $as_dir in #((( 3617 '') as_dir=./ ;; 3618 */) ;; 3619 *) as_dir=$as_dir/ ;; 3620 esac 3621 for ac_exec_ext in '' $ac_executable_extensions; do 3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3623 ac_cv_prog_CC="${ac_tool_prefix}cc" 3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3625 break 2 3626 fi 3627 done 3628 done 3629 IFS=$as_save_IFS 3630 3631 fi 3632 fi 3633 CC=$ac_cv_prog_CC 3634 if test -n "$CC"; then 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3636 printf "%s\n" "$CC" >&6; } 3637 else 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639 printf "%s\n" "no" >&6; } 3640 fi 3641 3642 3643 fi 3644 fi 3645 if test -z "$CC"; then 3646 # Extract the first word of "cc", so it can be a program name with args. 3647 set dummy cc; ac_word=$2 3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3649 printf %s "checking for $ac_word... " >&6; } 3650 if test ${ac_cv_prog_CC+y} 3651 then : 3652 printf %s "(cached) " >&6 3653 else $as_nop 3654 if test -n "$CC"; then 3655 ac_cv_prog_CC="$CC" # Let the user override the test. 3656 else 3657 ac_prog_rejected=no 3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659 for as_dir in $PATH 3660 do 3661 IFS=$as_save_IFS 3662 case $as_dir in #((( 3663 '') as_dir=./ ;; 3664 */) ;; 3665 *) as_dir=$as_dir/ ;; 3666 esac 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3669 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3670 ac_prog_rejected=yes 3671 continue 3672 fi 3673 ac_cv_prog_CC="cc" 3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3675 break 2 3676 fi 3677 done 3678 done 3679 IFS=$as_save_IFS 3680 3681 if test $ac_prog_rejected = yes; then 3682 # We found a bogon in the path, so make sure we never use it. 3683 set dummy $ac_cv_prog_CC 3684 shift 3685 if test $# != 0; then 3686 # We chose a different compiler from the bogus one. 3687 # However, it has the same basename, so the bogon will be chosen 3688 # first if we set CC to just the basename; use the full file name. 3689 shift 3690 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3691 fi 3692 fi 3693 fi 3694 fi 3695 CC=$ac_cv_prog_CC 3696 if test -n "$CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3698 printf "%s\n" "$CC" >&6; } 3699 else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701 printf "%s\n" "no" >&6; } 3702 fi 3703 3704 3705 fi 3706 if test -z "$CC"; then 3707 if test -n "$ac_tool_prefix"; then 3708 for ac_prog in cl.exe 3709 do 3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713 printf %s "checking for $ac_word... " >&6; } 3714 if test ${ac_cv_prog_CC+y} 3715 then : 3716 printf %s "(cached) " >&6 3717 else $as_nop 3718 if test -n "$CC"; then 3719 ac_cv_prog_CC="$CC" # Let the user override the test. 3720 else 3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722 for as_dir in $PATH 3723 do 3724 IFS=$as_save_IFS 3725 case $as_dir in #((( 3726 '') as_dir=./ ;; 3727 */) ;; 3728 *) as_dir=$as_dir/ ;; 3729 esac 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736 done 3737 done 3738 IFS=$as_save_IFS 3739 3740 fi 3741 fi 3742 CC=$ac_cv_prog_CC 3743 if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745 printf "%s\n" "$CC" >&6; } 3746 else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748 printf "%s\n" "no" >&6; } 3749 fi 3750 3751 3752 test -n "$CC" && break 3753 done 3754 fi 3755 if test -z "$CC"; then 3756 ac_ct_CC=$CC 3757 for ac_prog in cl.exe 3758 do 3759 # Extract the first word of "$ac_prog", so it can be a program name with args. 3760 set dummy $ac_prog; ac_word=$2 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3762 printf %s "checking for $ac_word... " >&6; } 3763 if test ${ac_cv_prog_ac_ct_CC+y} 3764 then : 3765 printf %s "(cached) " >&6 3766 else $as_nop 3767 if test -n "$ac_ct_CC"; then 3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3769 else 3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771 for as_dir in $PATH 3772 do 3773 IFS=$as_save_IFS 3774 case $as_dir in #((( 3775 '') as_dir=./ ;; 3776 */) ;; 3777 *) as_dir=$as_dir/ ;; 3778 esac 3779 for ac_exec_ext in '' $ac_executable_extensions; do 3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3781 ac_cv_prog_ac_ct_CC="$ac_prog" 3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3783 break 2 3784 fi 3785 done 3786 done 3787 IFS=$as_save_IFS 3788 3789 fi 3790 fi 3791 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3792 if test -n "$ac_ct_CC"; then 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3794 printf "%s\n" "$ac_ct_CC" >&6; } 3795 else 3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797 printf "%s\n" "no" >&6; } 3798 fi 3799 3800 3801 test -n "$ac_ct_CC" && break 3802 done 3803 3804 if test "x$ac_ct_CC" = x; then 3805 CC="" 3806 else 3807 case $cross_compiling:$ac_tool_warned in 3808 yes:) 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3811 ac_tool_warned=yes ;; 3812 esac 3813 CC=$ac_ct_CC 3814 fi 3815 fi 3816 3817 fi 3818 if test -z "$CC"; then 3819 if test -n "$ac_tool_prefix"; then 3820 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3821 set dummy ${ac_tool_prefix}clang; ac_word=$2 3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823 printf %s "checking for $ac_word... " >&6; } 3824 if test ${ac_cv_prog_CC+y} 3825 then : 3826 printf %s "(cached) " >&6 3827 else $as_nop 3828 if test -n "$CC"; then 3829 ac_cv_prog_CC="$CC" # Let the user override the test. 3830 else 3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3832 for as_dir in $PATH 3833 do 3834 IFS=$as_save_IFS 3835 case $as_dir in #((( 3836 '') as_dir=./ ;; 3837 */) ;; 3838 *) as_dir=$as_dir/ ;; 3839 esac 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3842 ac_cv_prog_CC="${ac_tool_prefix}clang" 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846 done 3847 done 3848 IFS=$as_save_IFS 3849 3850 fi 3851 fi 3852 CC=$ac_cv_prog_CC 3853 if test -n "$CC"; then 3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3855 printf "%s\n" "$CC" >&6; } 3856 else 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858 printf "%s\n" "no" >&6; } 3859 fi 3860 3861 3862 fi 3863 if test -z "$ac_cv_prog_CC"; then 3864 ac_ct_CC=$CC 3865 # Extract the first word of "clang", so it can be a program name with args. 3866 set dummy clang; ac_word=$2 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868 printf %s "checking for $ac_word... " >&6; } 3869 if test ${ac_cv_prog_ac_ct_CC+y} 3870 then : 3871 printf %s "(cached) " >&6 3872 else $as_nop 3873 if test -n "$ac_ct_CC"; then 3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3875 else 3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3877 for as_dir in $PATH 3878 do 3879 IFS=$as_save_IFS 3880 case $as_dir in #((( 3881 '') as_dir=./ ;; 3882 */) ;; 3883 *) as_dir=$as_dir/ ;; 3884 esac 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3887 ac_cv_prog_ac_ct_CC="clang" 3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3889 break 2 3890 fi 3891 done 3892 done 3893 IFS=$as_save_IFS 3894 3895 fi 3896 fi 3897 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3898 if test -n "$ac_ct_CC"; then 3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3900 printf "%s\n" "$ac_ct_CC" >&6; } 3901 else 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903 printf "%s\n" "no" >&6; } 3904 fi 3905 3906 if test "x$ac_ct_CC" = x; then 3907 CC="" 3908 else 3909 case $cross_compiling:$ac_tool_warned in 3910 yes:) 3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3913 ac_tool_warned=yes ;; 3914 esac 3915 CC=$ac_ct_CC 3916 fi 3917 else 3918 CC="$ac_cv_prog_CC" 3919 fi 3920 3921 fi 3922 3923 3924 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3925 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3926 as_fn_error $? "no acceptable C compiler found in \$PATH 3927 See \`config.log' for more details" "$LINENO" 5; } 3928 3929 # Provide some information about the compiler. 3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3931 set X $ac_compile 3932 ac_compiler=$2 3933 for ac_option in --version -v -V -qversion -version; do 3934 { { ac_try="$ac_compiler $ac_option >&5" 3935 case "(($ac_try" in 3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3937 *) ac_try_echo=$ac_try;; 3938 esac 3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3940 printf "%s\n" "$ac_try_echo"; } >&5 3941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3942 ac_status=$? 3943 if test -s conftest.err; then 3944 sed '10a\ 3945 ... rest of stderr output deleted ... 3946 10q' conftest.err >conftest.er1 3947 cat conftest.er1 >&5 3948 fi 3949 rm -f conftest.er1 conftest.err 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; } 3952 done 3953 3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955 /* end confdefs.h. */ 3956 3957 int 3958 main (void) 3959 { 3960 3961 ; 3962 return 0; 3963 } 3964 _ACEOF 3965 ac_clean_files_save=$ac_clean_files 3966 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3967 # Try to create an executable without -o first, disregard a.out. 3968 # It will help us diagnose broken compilers, and finding out an intuition 3969 # of exeext. 3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3971 printf %s "checking whether the C compiler works... " >&6; } 3972 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3973 3974 # The possible output files: 3975 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3976 3977 ac_rmfiles= 3978 for ac_file in $ac_files 3979 do 3980 case $ac_file in 3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3982 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3983 esac 3984 done 3985 rm -f $ac_rmfiles 3986 3987 if { { ac_try="$ac_link_default" 3988 case "(($ac_try" in 3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990 *) ac_try_echo=$ac_try;; 3991 esac 3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993 printf "%s\n" "$ac_try_echo"; } >&5 3994 (eval "$ac_link_default") 2>&5 3995 ac_status=$? 3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997 test $ac_status = 0; } 3998 then : 3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4001 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4002 # so that the user can short-circuit this test for compilers unknown to 4003 # Autoconf. 4004 for ac_file in $ac_files '' 4005 do 4006 test -f "$ac_file" || continue 4007 case $ac_file in 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4009 ;; 4010 [ab].out ) 4011 # We found the default executable, but exeext='' is most 4012 # certainly right. 4013 break;; 4014 *.* ) 4015 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4016 then :; else 4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4018 fi 4019 # We set ac_cv_exeext here because the later test for it is not 4020 # safe: cross compilers may not add the suffix if given an `-o' 4021 # argument, so we may need to know it at that point already. 4022 # Even if this section looks crufty: it has the advantage of 4023 # actually working. 4024 break;; 4025 * ) 4026 break;; 4027 esac 4028 done 4029 test "$ac_cv_exeext" = no && ac_cv_exeext= 4030 4031 else $as_nop 4032 ac_file='' 4033 fi 4034 if test -z "$ac_file" 4035 then : 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4037 printf "%s\n" "no" >&6; } 4038 printf "%s\n" "$as_me: failed program was:" >&5 4039 sed 's/^/| /' conftest.$ac_ext >&5 4040 4041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4043 as_fn_error 77 "C compiler cannot create executables 4044 See \`config.log' for more details" "$LINENO" 5; } 4045 else $as_nop 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4047 printf "%s\n" "yes" >&6; } 4048 fi 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4050 printf %s "checking for C compiler default output file name... " >&6; } 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4052 printf "%s\n" "$ac_file" >&6; } 4053 ac_exeext=$ac_cv_exeext 4054 4055 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4056 ac_clean_files=$ac_clean_files_save 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4058 printf %s "checking for suffix of executables... " >&6; } 4059 if { { ac_try="$ac_link" 4060 case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063 esac 4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4065 printf "%s\n" "$ac_try_echo"; } >&5 4066 (eval "$ac_link") 2>&5 4067 ac_status=$? 4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4069 test $ac_status = 0; } 4070 then : 4071 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4073 # work properly (i.e., refer to `conftest.exe'), while it won't with 4074 # `rm'. 4075 for ac_file in conftest.exe conftest conftest.*; do 4076 test -f "$ac_file" || continue 4077 case $ac_file in 4078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4080 break;; 4081 * ) break;; 4082 esac 4083 done 4084 else $as_nop 4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4088 See \`config.log' for more details" "$LINENO" 5; } 4089 fi 4090 rm -f conftest conftest$ac_cv_exeext 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4092 printf "%s\n" "$ac_cv_exeext" >&6; } 4093 4094 rm -f conftest.$ac_ext 4095 EXEEXT=$ac_cv_exeext 4096 ac_exeext=$EXEEXT 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098 /* end confdefs.h. */ 4099 #include <stdio.h> 4100 int 4101 main (void) 4102 { 4103 FILE *f = fopen ("conftest.out", "w"); 4104 return ferror (f) || fclose (f) != 0; 4105 4106 ; 4107 return 0; 4108 } 4109 _ACEOF 4110 ac_clean_files="$ac_clean_files conftest.out" 4111 # Check that the compiler produces executables we can run. If not, either 4112 # the compiler is broken, or we cross compile. 4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4114 printf %s "checking whether we are cross compiling... " >&6; } 4115 if test "$cross_compiling" != yes; then 4116 { { ac_try="$ac_link" 4117 case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120 esac 4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122 printf "%s\n" "$ac_try_echo"; } >&5 4123 (eval "$ac_link") 2>&5 4124 ac_status=$? 4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4126 test $ac_status = 0; } 4127 if { ac_try='./conftest$ac_cv_exeext' 4128 { { case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131 esac 4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133 printf "%s\n" "$ac_try_echo"; } >&5 4134 (eval "$ac_try") 2>&5 4135 ac_status=$? 4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; }; }; then 4138 cross_compiling=no 4139 else 4140 if test "$cross_compiling" = maybe; then 4141 cross_compiling=yes 4142 else 4143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4144 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4145 as_fn_error 77 "cannot run C compiled programs. 4146 If you meant to cross compile, use \`--host'. 4147 See \`config.log' for more details" "$LINENO" 5; } 4148 fi 4149 fi 4150 fi 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4152 printf "%s\n" "$cross_compiling" >&6; } 4153 4154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4155 ac_clean_files=$ac_clean_files_save 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4157 printf %s "checking for suffix of object files... " >&6; } 4158 if test ${ac_cv_objext+y} 4159 then : 4160 printf %s "(cached) " >&6 4161 else $as_nop 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163 /* end confdefs.h. */ 4164 4165 int 4166 main (void) 4167 { 4168 4169 ; 4170 return 0; 4171 } 4172 _ACEOF 4173 rm -f conftest.o conftest.obj 4174 if { { ac_try="$ac_compile" 4175 case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178 esac 4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4180 printf "%s\n" "$ac_try_echo"; } >&5 4181 (eval "$ac_compile") 2>&5 4182 ac_status=$? 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; } 4185 then : 4186 for ac_file in conftest.o conftest.obj conftest.*; do 4187 test -f "$ac_file" || continue; 4188 case $ac_file in 4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4191 break;; 4192 esac 4193 done 4194 else $as_nop 4195 printf "%s\n" "$as_me: failed program was:" >&5 4196 sed 's/^/| /' conftest.$ac_ext >&5 4197 4198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4200 as_fn_error $? "cannot compute suffix of object files: cannot compile 4201 See \`config.log' for more details" "$LINENO" 5; } 4202 fi 4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4204 fi 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4206 printf "%s\n" "$ac_cv_objext" >&6; } 4207 OBJEXT=$ac_cv_objext 4208 ac_objext=$OBJEXT 4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4210 printf %s "checking whether the compiler supports GNU C... " >&6; } 4211 if test ${ac_cv_c_compiler_gnu+y} 4212 then : 4213 printf %s "(cached) " >&6 4214 else $as_nop 4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4216 /* end confdefs.h. */ 4217 4218 int 4219 main (void) 4220 { 4221 #ifndef __GNUC__ 4222 choke me 4223 #endif 4224 4225 ; 4226 return 0; 4227 } 4228 _ACEOF 4229 if ac_fn_c_try_compile "$LINENO" 4230 then : 4231 ac_compiler_gnu=yes 4232 else $as_nop 4233 ac_compiler_gnu=no 4234 fi 4235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4236 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4237 4238 fi 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4240 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4242 4243 if test $ac_compiler_gnu = yes; then 4244 GCC=yes 4245 else 4246 GCC= 4247 fi 4248 ac_test_CFLAGS=${CFLAGS+y} 4249 ac_save_CFLAGS=$CFLAGS 4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4251 printf %s "checking whether $CC accepts -g... " >&6; } 4252 if test ${ac_cv_prog_cc_g+y} 4253 then : 4254 printf %s "(cached) " >&6 4255 else $as_nop 4256 ac_save_c_werror_flag=$ac_c_werror_flag 4257 ac_c_werror_flag=yes 4258 ac_cv_prog_cc_g=no 4259 CFLAGS="-g" 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261 /* end confdefs.h. */ 4262 4263 int 4264 main (void) 4265 { 4266 4267 ; 4268 return 0; 4269 } 4270 _ACEOF 4271 if ac_fn_c_try_compile "$LINENO" 4272 then : 4273 ac_cv_prog_cc_g=yes 4274 else $as_nop 4275 CFLAGS="" 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277 /* end confdefs.h. */ 4278 4279 int 4280 main (void) 4281 { 4282 4283 ; 4284 return 0; 4285 } 4286 _ACEOF 4287 if ac_fn_c_try_compile "$LINENO" 4288 then : 4289 4290 else $as_nop 4291 ac_c_werror_flag=$ac_save_c_werror_flag 4292 CFLAGS="-g" 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294 /* end confdefs.h. */ 4295 4296 int 4297 main (void) 4298 { 4299 4300 ; 4301 return 0; 4302 } 4303 _ACEOF 4304 if ac_fn_c_try_compile "$LINENO" 4305 then : 4306 ac_cv_prog_cc_g=yes 4307 fi 4308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4309 fi 4310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4311 fi 4312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4313 ac_c_werror_flag=$ac_save_c_werror_flag 4314 fi 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4316 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4317 if test $ac_test_CFLAGS; then 4318 CFLAGS=$ac_save_CFLAGS 4319 elif test $ac_cv_prog_cc_g = yes; then 4320 if test "$GCC" = yes; then 4321 CFLAGS="-g -O2" 4322 else 4323 CFLAGS="-g" 4324 fi 4325 else 4326 if test "$GCC" = yes; then 4327 CFLAGS="-O2" 4328 else 4329 CFLAGS= 4330 fi 4331 fi 4332 ac_prog_cc_stdc=no 4333 if test x$ac_prog_cc_stdc = xno 4334 then : 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4336 printf %s "checking for $CC option to enable C11 features... " >&6; } 4337 if test ${ac_cv_prog_cc_c11+y} 4338 then : 4339 printf %s "(cached) " >&6 4340 else $as_nop 4341 ac_cv_prog_cc_c11=no 4342 ac_save_CC=$CC 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344 /* end confdefs.h. */ 4345 $ac_c_conftest_c11_program 4346 _ACEOF 4347 for ac_arg in '' -std=gnu11 4348 do 4349 CC="$ac_save_CC $ac_arg" 4350 if ac_fn_c_try_compile "$LINENO" 4351 then : 4352 ac_cv_prog_cc_c11=$ac_arg 4353 fi 4354 rm -f core conftest.err conftest.$ac_objext conftest.beam 4355 test "x$ac_cv_prog_cc_c11" != "xno" && break 4356 done 4357 rm -f conftest.$ac_ext 4358 CC=$ac_save_CC 4359 fi 4360 4361 if test "x$ac_cv_prog_cc_c11" = xno 4362 then : 4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4364 printf "%s\n" "unsupported" >&6; } 4365 else $as_nop 4366 if test "x$ac_cv_prog_cc_c11" = x 4367 then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4369 printf "%s\n" "none needed" >&6; } 4370 else $as_nop 4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4372 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4373 CC="$CC $ac_cv_prog_cc_c11" 4374 fi 4375 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4376 ac_prog_cc_stdc=c11 4377 fi 4378 fi 4379 if test x$ac_prog_cc_stdc = xno 4380 then : 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4382 printf %s "checking for $CC option to enable C99 features... " >&6; } 4383 if test ${ac_cv_prog_cc_c99+y} 4384 then : 4385 printf %s "(cached) " >&6 4386 else $as_nop 4387 ac_cv_prog_cc_c99=no 4388 ac_save_CC=$CC 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390 /* end confdefs.h. */ 4391 $ac_c_conftest_c99_program 4392 _ACEOF 4393 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4394 do 4395 CC="$ac_save_CC $ac_arg" 4396 if ac_fn_c_try_compile "$LINENO" 4397 then : 4398 ac_cv_prog_cc_c99=$ac_arg 4399 fi 4400 rm -f core conftest.err conftest.$ac_objext conftest.beam 4401 test "x$ac_cv_prog_cc_c99" != "xno" && break 4402 done 4403 rm -f conftest.$ac_ext 4404 CC=$ac_save_CC 4405 fi 4406 4407 if test "x$ac_cv_prog_cc_c99" = xno 4408 then : 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4410 printf "%s\n" "unsupported" >&6; } 4411 else $as_nop 4412 if test "x$ac_cv_prog_cc_c99" = x 4413 then : 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4415 printf "%s\n" "none needed" >&6; } 4416 else $as_nop 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4418 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4419 CC="$CC $ac_cv_prog_cc_c99" 4420 fi 4421 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4422 ac_prog_cc_stdc=c99 4423 fi 4424 fi 4425 if test x$ac_prog_cc_stdc = xno 4426 then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4428 printf %s "checking for $CC option to enable C89 features... " >&6; } 4429 if test ${ac_cv_prog_cc_c89+y} 4430 then : 4431 printf %s "(cached) " >&6 4432 else $as_nop 4433 ac_cv_prog_cc_c89=no 4434 ac_save_CC=$CC 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436 /* end confdefs.h. */ 4437 $ac_c_conftest_c89_program 4438 _ACEOF 4439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4440 do 4441 CC="$ac_save_CC $ac_arg" 4442 if ac_fn_c_try_compile "$LINENO" 4443 then : 4444 ac_cv_prog_cc_c89=$ac_arg 4445 fi 4446 rm -f core conftest.err conftest.$ac_objext conftest.beam 4447 test "x$ac_cv_prog_cc_c89" != "xno" && break 4448 done 4449 rm -f conftest.$ac_ext 4450 CC=$ac_save_CC 4451 fi 4452 4453 if test "x$ac_cv_prog_cc_c89" = xno 4454 then : 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4456 printf "%s\n" "unsupported" >&6; } 4457 else $as_nop 4458 if test "x$ac_cv_prog_cc_c89" = x 4459 then : 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4461 printf "%s\n" "none needed" >&6; } 4462 else $as_nop 4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4464 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4465 CC="$CC $ac_cv_prog_cc_c89" 4466 fi 4467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4468 ac_prog_cc_stdc=c89 4469 fi 4470 fi 4471 4472 ac_ext=c 4473 ac_cpp='$CPP $CPPFLAGS' 4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4477 4478 4479 ac_ext=c 4480 ac_cpp='$CPP $CPPFLAGS' 4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4485 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4486 if test ${am_cv_prog_cc_c_o+y} 4487 then : 4488 printf %s "(cached) " >&6 4489 else $as_nop 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491 /* end confdefs.h. */ 4492 4493 int 4494 main (void) 4495 { 4496 4497 ; 4498 return 0; 4499 } 4500 _ACEOF 4501 # Make sure it works both with $CC and with simple cc. 4502 # Following AC_PROG_CC_C_O, we do the test twice because some 4503 # compilers refuse to overwrite an existing .o file with -o, 4504 # though they will create one. 4505 am_cv_prog_cc_c_o=yes 4506 for am_i in 1 2; do 4507 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4508 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4509 ac_status=$? 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); } \ 4512 && test -f conftest2.$ac_objext; then 4513 : OK 4514 else 4515 am_cv_prog_cc_c_o=no 4516 break 4517 fi 4518 done 4519 rm -f core conftest* 4520 unset am_i 4521 fi 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4523 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4524 if test "$am_cv_prog_cc_c_o" != yes; then 4525 # Losing compiler, so override with the script. 4526 # FIXME: It is wrong to rewrite CC. 4527 # But if we don't then we get into trouble of one sort or another. 4528 # A longer-term fix would be to have automake use am__CC in this case, 4529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4530 CC="$am_aux_dir/compile $CC" 4531 fi 4532 ac_ext=c 4533 ac_cpp='$CPP $CPPFLAGS' 4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4537 4538 4539 depcc="$CC" am_compiler_list= 4540 4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4542 printf %s "checking dependency style of $depcc... " >&6; } 4543 if test ${am_cv_CC_dependencies_compiler_type+y} 4544 then : 4545 printf %s "(cached) " >&6 4546 else $as_nop 4547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4548 # We make a subdir and do the tests there. Otherwise we can end up 4549 # making bogus files that we don't know about and never remove. For 4550 # instance it was reported that on HP-UX the gcc test will end up 4551 # making a dummy file named 'D' -- because '-MD' means "put the output 4552 # in D". 4553 rm -rf conftest.dir 4554 mkdir conftest.dir 4555 # Copy depcomp to subdir because otherwise we won't find it if we're 4556 # using a relative directory. 4557 cp "$am_depcomp" conftest.dir 4558 cd conftest.dir 4559 # We will build objects and dependencies in a subdirectory because 4560 # it helps to detect inapplicable dependency modes. For instance 4561 # both Tru64's cc and ICC support -MD to output dependencies as a 4562 # side effect of compilation, but ICC will put the dependencies in 4563 # the current directory while Tru64 will put them in the object 4564 # directory. 4565 mkdir sub 4566 4567 am_cv_CC_dependencies_compiler_type=none 4568 if test "$am_compiler_list" = ""; then 4569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4570 fi 4571 am__universal=false 4572 case " $depcc " in #( 4573 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4574 esac 4575 4576 for depmode in $am_compiler_list; do 4577 # Setup a source with many dependencies, because some compilers 4578 # like to wrap large dependency lists on column 80 (with \), and 4579 # we should not choose a depcomp mode which is confused by this. 4580 # 4581 # We need to recreate these files for each test, as the compiler may 4582 # overwrite some of them when testing with obscure command lines. 4583 # This happens at least with the AIX C compiler. 4584 : > sub/conftest.c 4585 for i in 1 2 3 4 5 6; do 4586 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4587 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4588 # Solaris 10 /bin/sh. 4589 echo '/* dummy */' > sub/conftst$i.h 4590 done 4591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4592 4593 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4594 # mode. It turns out that the SunPro C++ compiler does not properly 4595 # handle '-M -o', and we need to detect this. Also, some Intel 4596 # versions had trouble with output in subdirs. 4597 am__obj=sub/conftest.${OBJEXT-o} 4598 am__minus_obj="-o $am__obj" 4599 case $depmode in 4600 gcc) 4601 # This depmode causes a compiler race in universal mode. 4602 test "$am__universal" = false || continue 4603 ;; 4604 nosideeffect) 4605 # After this tag, mechanisms are not by side-effect, so they'll 4606 # only be used when explicitly requested. 4607 if test "x$enable_dependency_tracking" = xyes; then 4608 continue 4609 else 4610 break 4611 fi 4612 ;; 4613 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4614 # This compiler won't grok '-c -o', but also, the minuso test has 4615 # not run yet. These depmodes are late enough in the game, and 4616 # so weak that their functioning should not be impacted. 4617 am__obj=conftest.${OBJEXT-o} 4618 am__minus_obj= 4619 ;; 4620 none) break ;; 4621 esac 4622 if depmode=$depmode \ 4623 source=sub/conftest.c object=$am__obj \ 4624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4626 >/dev/null 2>conftest.err && 4627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4631 # icc doesn't choke on unknown options, it will just issue warnings 4632 # or remarks (even with -Werror). So we grep stderr for any message 4633 # that says an option was ignored or not supported. 4634 # When given -MP, icc 7.0 and 7.1 complain thusly: 4635 # icc: Command line warning: ignoring option '-M'; no argument required 4636 # The diagnosis changed in icc 8.0: 4637 # icc: Command line remark: option '-MP' not supported 4638 if (grep 'ignoring option' conftest.err || 4639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4640 am_cv_CC_dependencies_compiler_type=$depmode 4641 break 4642 fi 4643 fi 4644 done 4645 4646 cd .. 4647 rm -rf conftest.dir 4648 else 4649 am_cv_CC_dependencies_compiler_type=none 4650 fi 4651 4652 fi 4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4654 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4655 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4656 4657 if 4658 test "x$enable_dependency_tracking" != xno \ 4659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4660 am__fastdepCC_TRUE= 4661 am__fastdepCC_FALSE='#' 4662 else 4663 am__fastdepCC_TRUE='#' 4664 am__fastdepCC_FALSE= 4665 fi 4666 4667 4668 4669 # Check whether --enable-largefile was given. 4670 if test ${enable_largefile+y} 4671 then : 4672 enableval=$enable_largefile; 4673 fi 4674 4675 if test "$enable_largefile" != no; then 4676 4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 4678 printf %s "checking for special C compiler options needed for large files... " >&6; } 4679 if test ${ac_cv_sys_largefile_CC+y} 4680 then : 4681 printf %s "(cached) " >&6 4682 else $as_nop 4683 ac_cv_sys_largefile_CC=no 4684 if test "$GCC" != yes; then 4685 ac_save_CC=$CC 4686 while :; do 4687 # IRIX 6.2 and later do not support large files by default, 4688 # so use the C compiler's -n32 option if that helps. 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690 /* end confdefs.h. */ 4691 #include <sys/types.h> 4692 /* Check that off_t can represent 2**63 - 1 correctly. 4693 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4694 since some C++ compilers masquerading as C compilers 4695 incorrectly reject 9223372036854775807. */ 4696 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4698 && LARGE_OFF_T % 2147483647 == 1) 4699 ? 1 : -1]; 4700 int 4701 main (void) 4702 { 4703 4704 ; 4705 return 0; 4706 } 4707 _ACEOF 4708 if ac_fn_c_try_compile "$LINENO" 4709 then : 4710 break 4711 fi 4712 rm -f core conftest.err conftest.$ac_objext conftest.beam 4713 CC="$CC -n32" 4714 if ac_fn_c_try_compile "$LINENO" 4715 then : 4716 ac_cv_sys_largefile_CC=' -n32'; break 4717 fi 4718 rm -f core conftest.err conftest.$ac_objext conftest.beam 4719 break 4720 done 4721 CC=$ac_save_CC 4722 rm -f conftest.$ac_ext 4723 fi 4724 fi 4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 4726 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 4727 if test "$ac_cv_sys_largefile_CC" != no; then 4728 CC=$CC$ac_cv_sys_largefile_CC 4729 fi 4730 4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 4732 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 4733 if test ${ac_cv_sys_file_offset_bits+y} 4734 then : 4735 printf %s "(cached) " >&6 4736 else $as_nop 4737 while :; do 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739 /* end confdefs.h. */ 4740 #include <sys/types.h> 4741 /* Check that off_t can represent 2**63 - 1 correctly. 4742 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4743 since some C++ compilers masquerading as C compilers 4744 incorrectly reject 9223372036854775807. */ 4745 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4746 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4747 && LARGE_OFF_T % 2147483647 == 1) 4748 ? 1 : -1]; 4749 int 4750 main (void) 4751 { 4752 4753 ; 4754 return 0; 4755 } 4756 _ACEOF 4757 if ac_fn_c_try_compile "$LINENO" 4758 then : 4759 ac_cv_sys_file_offset_bits=no; break 4760 fi 4761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4763 /* end confdefs.h. */ 4764 #define _FILE_OFFSET_BITS 64 4765 #include <sys/types.h> 4766 /* Check that off_t can represent 2**63 - 1 correctly. 4767 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4768 since some C++ compilers masquerading as C compilers 4769 incorrectly reject 9223372036854775807. */ 4770 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4772 && LARGE_OFF_T % 2147483647 == 1) 4773 ? 1 : -1]; 4774 int 4775 main (void) 4776 { 4777 4778 ; 4779 return 0; 4780 } 4781 _ACEOF 4782 if ac_fn_c_try_compile "$LINENO" 4783 then : 4784 ac_cv_sys_file_offset_bits=64; break 4785 fi 4786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4787 ac_cv_sys_file_offset_bits=unknown 4788 break 4789 done 4790 fi 4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 4792 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 4793 case $ac_cv_sys_file_offset_bits in #( 4794 no | unknown) ;; 4795 *) 4796 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 4797 ;; 4798 esac 4799 rm -rf conftest* 4800 if test $ac_cv_sys_file_offset_bits = unknown; then 4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 4802 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 4803 if test ${ac_cv_sys_large_files+y} 4804 then : 4805 printf %s "(cached) " >&6 4806 else $as_nop 4807 while :; do 4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4809 /* end confdefs.h. */ 4810 #include <sys/types.h> 4811 /* Check that off_t can represent 2**63 - 1 correctly. 4812 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4813 since some C++ compilers masquerading as C compilers 4814 incorrectly reject 9223372036854775807. */ 4815 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4817 && LARGE_OFF_T % 2147483647 == 1) 4818 ? 1 : -1]; 4819 int 4820 main (void) 4821 { 4822 4823 ; 4824 return 0; 4825 } 4826 _ACEOF 4827 if ac_fn_c_try_compile "$LINENO" 4828 then : 4829 ac_cv_sys_large_files=no; break 4830 fi 4831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4833 /* end confdefs.h. */ 4834 #define _LARGE_FILES 1 4835 #include <sys/types.h> 4836 /* Check that off_t can represent 2**63 - 1 correctly. 4837 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4838 since some C++ compilers masquerading as C compilers 4839 incorrectly reject 9223372036854775807. */ 4840 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 4841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4842 && LARGE_OFF_T % 2147483647 == 1) 4843 ? 1 : -1]; 4844 int 4845 main (void) 4846 { 4847 4848 ; 4849 return 0; 4850 } 4851 _ACEOF 4852 if ac_fn_c_try_compile "$LINENO" 4853 then : 4854 ac_cv_sys_large_files=1; break 4855 fi 4856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4857 ac_cv_sys_large_files=unknown 4858 break 4859 done 4860 fi 4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 4862 printf "%s\n" "$ac_cv_sys_large_files" >&6; } 4863 case $ac_cv_sys_large_files in #( 4864 no | unknown) ;; 4865 *) 4866 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 4867 ;; 4868 esac 4869 rm -rf conftest* 4870 fi 4871 fi 4872 4873 4874 # Require xorg-macros: XORG_DEFAULT_OPTIONS 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4888 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4889 if test ${ac_cv_c_undeclared_builtin_options+y} 4890 then : 4891 printf %s "(cached) " >&6 4892 else $as_nop 4893 ac_save_CFLAGS=$CFLAGS 4894 ac_cv_c_undeclared_builtin_options='cannot detect' 4895 for ac_arg in '' -fno-builtin; do 4896 CFLAGS="$ac_save_CFLAGS $ac_arg" 4897 # This test program should *not* compile successfully. 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899 /* end confdefs.h. */ 4900 4901 int 4902 main (void) 4903 { 4904 (void) strchr; 4905 ; 4906 return 0; 4907 } 4908 _ACEOF 4909 if ac_fn_c_try_compile "$LINENO" 4910 then : 4911 4912 else $as_nop 4913 # This test program should compile successfully. 4914 # No library function is consistently available on 4915 # freestanding implementations, so test against a dummy 4916 # declaration. Include always-available headers on the 4917 # off chance that they somehow elicit warnings. 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919 /* end confdefs.h. */ 4920 #include <float.h> 4921 #include <limits.h> 4922 #include <stdarg.h> 4923 #include <stddef.h> 4924 extern void ac_decl (int, char *); 4925 4926 int 4927 main (void) 4928 { 4929 (void) ac_decl (0, (char *) 0); 4930 (void) ac_decl; 4931 4932 ; 4933 return 0; 4934 } 4935 _ACEOF 4936 if ac_fn_c_try_compile "$LINENO" 4937 then : 4938 if test x"$ac_arg" = x 4939 then : 4940 ac_cv_c_undeclared_builtin_options='none needed' 4941 else $as_nop 4942 ac_cv_c_undeclared_builtin_options=$ac_arg 4943 fi 4944 break 4945 fi 4946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4947 fi 4948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4949 done 4950 CFLAGS=$ac_save_CFLAGS 4951 4952 fi 4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4954 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4955 case $ac_cv_c_undeclared_builtin_options in #( 4956 'cannot detect') : 4957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4959 as_fn_error $? "cannot make $CC report undeclared builtins 4960 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4961 'none needed') : 4962 ac_c_undeclared_builtin_options='' ;; #( 4963 *) : 4964 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4965 esac 4966 4967 ac_header= ac_cache= 4968 for ac_item in $ac_header_c_list 4969 do 4970 if test $ac_cache; then 4971 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4972 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4973 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4974 fi 4975 ac_header= ac_cache= 4976 elif test $ac_header; then 4977 ac_cache=$ac_item 4978 else 4979 ac_header=$ac_item 4980 fi 4981 done 4982 4983 4984 4985 4986 4987 4988 4989 4990 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4991 then : 4992 4993 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4994 4995 fi 4996 4997 4998 4999 5000 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5001 if test "x$ac_cv_have_decl___clang__" = xyes 5002 then : 5003 CLANGCC="yes" 5004 else $as_nop 5005 CLANGCC="no" 5006 fi 5007 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5008 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 5009 then : 5010 INTELCC="yes" 5011 else $as_nop 5012 INTELCC="no" 5013 fi 5014 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 5015 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 5016 then : 5017 SUNCC="yes" 5018 else $as_nop 5019 SUNCC="no" 5020 fi 5021 5022 5023 5024 5025 5026 5027 5028 5029 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5030 if test -n "$ac_tool_prefix"; then 5031 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5032 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5034 printf %s "checking for $ac_word... " >&6; } 5035 if test ${ac_cv_path_PKG_CONFIG+y} 5036 then : 5037 printf %s "(cached) " >&6 5038 else $as_nop 5039 case $PKG_CONFIG in 5040 [\\/]* | ?:[\\/]*) 5041 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5042 ;; 5043 *) 5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5045 for as_dir in $PATH 5046 do 5047 IFS=$as_save_IFS 5048 case $as_dir in #((( 5049 '') as_dir=./ ;; 5050 */) ;; 5051 *) as_dir=$as_dir/ ;; 5052 esac 5053 for ac_exec_ext in '' $ac_executable_extensions; do 5054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5055 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5057 break 2 5058 fi 5059 done 5060 done 5061 IFS=$as_save_IFS 5062 5063 ;; 5064 esac 5065 fi 5066 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5067 if test -n "$PKG_CONFIG"; then 5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5069 printf "%s\n" "$PKG_CONFIG" >&6; } 5070 else 5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5072 printf "%s\n" "no" >&6; } 5073 fi 5074 5075 5076 fi 5077 if test -z "$ac_cv_path_PKG_CONFIG"; then 5078 ac_pt_PKG_CONFIG=$PKG_CONFIG 5079 # Extract the first word of "pkg-config", so it can be a program name with args. 5080 set dummy pkg-config; ac_word=$2 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5082 printf %s "checking for $ac_word... " >&6; } 5083 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 5084 then : 5085 printf %s "(cached) " >&6 5086 else $as_nop 5087 case $ac_pt_PKG_CONFIG in 5088 [\\/]* | ?:[\\/]*) 5089 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5090 ;; 5091 *) 5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5093 for as_dir in $PATH 5094 do 5095 IFS=$as_save_IFS 5096 case $as_dir in #((( 5097 '') as_dir=./ ;; 5098 */) ;; 5099 *) as_dir=$as_dir/ ;; 5100 esac 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5103 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 5104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5105 break 2 5106 fi 5107 done 5108 done 5109 IFS=$as_save_IFS 5110 5111 ;; 5112 esac 5113 fi 5114 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5115 if test -n "$ac_pt_PKG_CONFIG"; then 5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5117 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 5118 else 5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5120 printf "%s\n" "no" >&6; } 5121 fi 5122 5123 if test "x$ac_pt_PKG_CONFIG" = x; then 5124 PKG_CONFIG="" 5125 else 5126 case $cross_compiling:$ac_tool_warned in 5127 yes:) 5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5130 ac_tool_warned=yes ;; 5131 esac 5132 PKG_CONFIG=$ac_pt_PKG_CONFIG 5133 fi 5134 else 5135 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5136 fi 5137 5138 fi 5139 if test -n "$PKG_CONFIG"; then 5140 _pkg_min_version=0.9.0 5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5142 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5143 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5145 printf "%s\n" "yes" >&6; } 5146 else 5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148 printf "%s\n" "no" >&6; } 5149 PKG_CONFIG="" 5150 fi 5151 fi 5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5153 printf %s "checking for a sed that does not truncate output... " >&6; } 5154 if test ${ac_cv_path_SED+y} 5155 then : 5156 printf %s "(cached) " >&6 5157 else $as_nop 5158 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5159 for ac_i in 1 2 3 4 5 6 7; do 5160 ac_script="$ac_script$as_nl$ac_script" 5161 done 5162 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5163 { ac_script=; unset ac_script;} 5164 if test -z "$SED"; then 5165 ac_path_SED_found=false 5166 # Loop through the user's path and test for each of PROGNAME-LIST 5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5168 for as_dir in $PATH 5169 do 5170 IFS=$as_save_IFS 5171 case $as_dir in #((( 5172 '') as_dir=./ ;; 5173 */) ;; 5174 *) as_dir=$as_dir/ ;; 5175 esac 5176 for ac_prog in sed gsed 5177 do 5178 for ac_exec_ext in '' $ac_executable_extensions; do 5179 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5180 as_fn_executable_p "$ac_path_SED" || continue 5181 # Check for GNU ac_path_SED and select it if it is found. 5182 # Check for GNU $ac_path_SED 5183 case `"$ac_path_SED" --version 2>&1` in 5184 *GNU*) 5185 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5186 *) 5187 ac_count=0 5188 printf %s 0123456789 >"conftest.in" 5189 while : 5190 do 5191 cat "conftest.in" "conftest.in" >"conftest.tmp" 5192 mv "conftest.tmp" "conftest.in" 5193 cp "conftest.in" "conftest.nl" 5194 printf "%s\n" '' >> "conftest.nl" 5195 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5197 as_fn_arith $ac_count + 1 && ac_count=$as_val 5198 if test $ac_count -gt ${ac_path_SED_max-0}; then 5199 # Best one so far, save it but keep looking for a better one 5200 ac_cv_path_SED="$ac_path_SED" 5201 ac_path_SED_max=$ac_count 5202 fi 5203 # 10*(2^10) chars as input seems more than enough 5204 test $ac_count -gt 10 && break 5205 done 5206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5207 esac 5208 5209 $ac_path_SED_found && break 3 5210 done 5211 done 5212 done 5213 IFS=$as_save_IFS 5214 if test -z "$ac_cv_path_SED"; then 5215 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5216 fi 5217 else 5218 ac_cv_path_SED=$SED 5219 fi 5220 5221 fi 5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5223 printf "%s\n" "$ac_cv_path_SED" >&6; } 5224 SED="$ac_cv_path_SED" 5225 rm -f conftest.sed 5226 5227 5228 5229 5230 5231 5232 # Check whether --enable-selective-werror was given. 5233 if test ${enable_selective_werror+y} 5234 then : 5235 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5236 else $as_nop 5237 SELECTIVE_WERROR=yes 5238 fi 5239 5240 5241 5242 5243 5244 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5245 if test "x$SUNCC" = "xyes"; then 5246 BASE_CFLAGS="-v" 5247 else 5248 BASE_CFLAGS="" 5249 fi 5250 5251 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 xorg_testset_save_CFLAGS="$CFLAGS" 5266 5267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5271 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5272 then : 5273 printf %s "(cached) " >&6 5274 else $as_nop 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276 /* end confdefs.h. */ 5277 int i; 5278 _ACEOF 5279 if ac_fn_c_try_compile "$LINENO" 5280 then : 5281 xorg_cv_cc_flag_unknown_warning_option=yes 5282 else $as_nop 5283 xorg_cv_cc_flag_unknown_warning_option=no 5284 fi 5285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5286 fi 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291 fi 5292 5293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5296 fi 5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5301 then : 5302 printf %s "(cached) " >&6 5303 else $as_nop 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305 /* end confdefs.h. */ 5306 int i; 5307 _ACEOF 5308 if ac_fn_c_try_compile "$LINENO" 5309 then : 5310 xorg_cv_cc_flag_unused_command_line_argument=yes 5311 else $as_nop 5312 xorg_cv_cc_flag_unused_command_line_argument=no 5313 fi 5314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5315 fi 5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320 fi 5321 5322 found="no" 5323 5324 if test $found = "no" ; then 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 5329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5331 fi 5332 5333 CFLAGS="$CFLAGS -Wall" 5334 5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5336 printf %s "checking if $CC supports -Wall... " >&6; } 5337 cacheid=xorg_cv_cc_flag__Wall 5338 if eval test \${$cacheid+y} 5339 then : 5340 printf %s "(cached) " >&6 5341 else $as_nop 5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343 /* end confdefs.h. */ 5344 int i; 5345 int 5346 main (void) 5347 { 5348 5349 ; 5350 return 0; 5351 } 5352 _ACEOF 5353 if ac_fn_c_try_link "$LINENO" 5354 then : 5355 eval $cacheid=yes 5356 else $as_nop 5357 eval $cacheid=no 5358 fi 5359 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5360 conftest$ac_exeext conftest.$ac_ext 5361 fi 5362 5363 5364 CFLAGS="$xorg_testset_save_CFLAGS" 5365 5366 eval supported=\$$cacheid 5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5368 printf "%s\n" "$supported" >&6; } 5369 if test "$supported" = "yes" ; then 5370 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5371 found="yes" 5372 fi 5373 fi 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 xorg_testset_save_CFLAGS="$CFLAGS" 5390 5391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5394 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5395 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5396 then : 5397 printf %s "(cached) " >&6 5398 else $as_nop 5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5400 /* end confdefs.h. */ 5401 int i; 5402 _ACEOF 5403 if ac_fn_c_try_compile "$LINENO" 5404 then : 5405 xorg_cv_cc_flag_unknown_warning_option=yes 5406 else $as_nop 5407 xorg_cv_cc_flag_unknown_warning_option=no 5408 fi 5409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5410 fi 5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415 fi 5416 5417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5420 fi 5421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5425 then : 5426 printf %s "(cached) " >&6 5427 else $as_nop 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429 /* end confdefs.h. */ 5430 int i; 5431 _ACEOF 5432 if ac_fn_c_try_compile "$LINENO" 5433 then : 5434 xorg_cv_cc_flag_unused_command_line_argument=yes 5435 else $as_nop 5436 xorg_cv_cc_flag_unused_command_line_argument=no 5437 fi 5438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5439 fi 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5443 CFLAGS="$xorg_testset_save_CFLAGS" 5444 fi 5445 5446 found="no" 5447 5448 if test $found = "no" ; then 5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 fi 5452 5453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5455 fi 5456 5457 CFLAGS="$CFLAGS -Wpointer-arith" 5458 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5460 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5461 cacheid=xorg_cv_cc_flag__Wpointer_arith 5462 if eval test \${$cacheid+y} 5463 then : 5464 printf %s "(cached) " >&6 5465 else $as_nop 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467 /* end confdefs.h. */ 5468 int i; 5469 int 5470 main (void) 5471 { 5472 5473 ; 5474 return 0; 5475 } 5476 _ACEOF 5477 if ac_fn_c_try_link "$LINENO" 5478 then : 5479 eval $cacheid=yes 5480 else $as_nop 5481 eval $cacheid=no 5482 fi 5483 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5484 conftest$ac_exeext conftest.$ac_ext 5485 fi 5486 5487 5488 CFLAGS="$xorg_testset_save_CFLAGS" 5489 5490 eval supported=\$$cacheid 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5492 printf "%s\n" "$supported" >&6; } 5493 if test "$supported" = "yes" ; then 5494 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5495 found="yes" 5496 fi 5497 fi 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 xorg_testset_save_CFLAGS="$CFLAGS" 5514 5515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5519 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5520 then : 5521 printf %s "(cached) " >&6 5522 else $as_nop 5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5524 /* end confdefs.h. */ 5525 int i; 5526 _ACEOF 5527 if ac_fn_c_try_compile "$LINENO" 5528 then : 5529 xorg_cv_cc_flag_unknown_warning_option=yes 5530 else $as_nop 5531 xorg_cv_cc_flag_unknown_warning_option=no 5532 fi 5533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5534 fi 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5538 CFLAGS="$xorg_testset_save_CFLAGS" 5539 fi 5540 5541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5544 fi 5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5549 then : 5550 printf %s "(cached) " >&6 5551 else $as_nop 5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5553 /* end confdefs.h. */ 5554 int i; 5555 _ACEOF 5556 if ac_fn_c_try_compile "$LINENO" 5557 then : 5558 xorg_cv_cc_flag_unused_command_line_argument=yes 5559 else $as_nop 5560 xorg_cv_cc_flag_unused_command_line_argument=no 5561 fi 5562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5563 fi 5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5567 CFLAGS="$xorg_testset_save_CFLAGS" 5568 fi 5569 5570 found="no" 5571 5572 if test $found = "no" ; then 5573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5575 fi 5576 5577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5579 fi 5580 5581 CFLAGS="$CFLAGS -Wmissing-declarations" 5582 5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5584 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5585 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5586 if eval test \${$cacheid+y} 5587 then : 5588 printf %s "(cached) " >&6 5589 else $as_nop 5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5591 /* end confdefs.h. */ 5592 int i; 5593 int 5594 main (void) 5595 { 5596 5597 ; 5598 return 0; 5599 } 5600 _ACEOF 5601 if ac_fn_c_try_link "$LINENO" 5602 then : 5603 eval $cacheid=yes 5604 else $as_nop 5605 eval $cacheid=no 5606 fi 5607 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5608 conftest$ac_exeext conftest.$ac_ext 5609 fi 5610 5611 5612 CFLAGS="$xorg_testset_save_CFLAGS" 5613 5614 eval supported=\$$cacheid 5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5616 printf "%s\n" "$supported" >&6; } 5617 if test "$supported" = "yes" ; then 5618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5619 found="yes" 5620 fi 5621 fi 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 xorg_testset_save_CFLAGS="$CFLAGS" 5638 5639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5642 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5643 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5644 then : 5645 printf %s "(cached) " >&6 5646 else $as_nop 5647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5648 /* end confdefs.h. */ 5649 int i; 5650 _ACEOF 5651 if ac_fn_c_try_compile "$LINENO" 5652 then : 5653 xorg_cv_cc_flag_unknown_warning_option=yes 5654 else $as_nop 5655 xorg_cv_cc_flag_unknown_warning_option=no 5656 fi 5657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5658 fi 5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5660 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663 fi 5664 5665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5668 fi 5669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5671 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5672 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5673 then : 5674 printf %s "(cached) " >&6 5675 else $as_nop 5676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5677 /* end confdefs.h. */ 5678 int i; 5679 _ACEOF 5680 if ac_fn_c_try_compile "$LINENO" 5681 then : 5682 xorg_cv_cc_flag_unused_command_line_argument=yes 5683 else $as_nop 5684 xorg_cv_cc_flag_unused_command_line_argument=no 5685 fi 5686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5687 fi 5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5689 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5691 CFLAGS="$xorg_testset_save_CFLAGS" 5692 fi 5693 5694 found="no" 5695 5696 if test $found = "no" ; then 5697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 fi 5700 5701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5703 fi 5704 5705 CFLAGS="$CFLAGS -Wformat=2" 5706 5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5708 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5709 cacheid=xorg_cv_cc_flag__Wformat_2 5710 if eval test \${$cacheid+y} 5711 then : 5712 printf %s "(cached) " >&6 5713 else $as_nop 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5715 /* end confdefs.h. */ 5716 int i; 5717 int 5718 main (void) 5719 { 5720 5721 ; 5722 return 0; 5723 } 5724 _ACEOF 5725 if ac_fn_c_try_link "$LINENO" 5726 then : 5727 eval $cacheid=yes 5728 else $as_nop 5729 eval $cacheid=no 5730 fi 5731 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5732 conftest$ac_exeext conftest.$ac_ext 5733 fi 5734 5735 5736 CFLAGS="$xorg_testset_save_CFLAGS" 5737 5738 eval supported=\$$cacheid 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5740 printf "%s\n" "$supported" >&6; } 5741 if test "$supported" = "yes" ; then 5742 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5743 found="yes" 5744 fi 5745 fi 5746 5747 if test $found = "no" ; then 5748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5750 fi 5751 5752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5754 fi 5755 5756 CFLAGS="$CFLAGS -Wformat" 5757 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5759 printf %s "checking if $CC supports -Wformat... " >&6; } 5760 cacheid=xorg_cv_cc_flag__Wformat 5761 if eval test \${$cacheid+y} 5762 then : 5763 printf %s "(cached) " >&6 5764 else $as_nop 5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766 /* end confdefs.h. */ 5767 int i; 5768 int 5769 main (void) 5770 { 5771 5772 ; 5773 return 0; 5774 } 5775 _ACEOF 5776 if ac_fn_c_try_link "$LINENO" 5777 then : 5778 eval $cacheid=yes 5779 else $as_nop 5780 eval $cacheid=no 5781 fi 5782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5783 conftest$ac_exeext conftest.$ac_ext 5784 fi 5785 5786 5787 CFLAGS="$xorg_testset_save_CFLAGS" 5788 5789 eval supported=\$$cacheid 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5791 printf "%s\n" "$supported" >&6; } 5792 if test "$supported" = "yes" ; then 5793 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5794 found="yes" 5795 fi 5796 fi 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 xorg_testset_save_CFLAGS="$CFLAGS" 5815 5816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5821 then : 5822 printf %s "(cached) " >&6 5823 else $as_nop 5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5825 /* end confdefs.h. */ 5826 int i; 5827 _ACEOF 5828 if ac_fn_c_try_compile "$LINENO" 5829 then : 5830 xorg_cv_cc_flag_unknown_warning_option=yes 5831 else $as_nop 5832 xorg_cv_cc_flag_unknown_warning_option=no 5833 fi 5834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5835 fi 5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5839 CFLAGS="$xorg_testset_save_CFLAGS" 5840 fi 5841 5842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5845 fi 5846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5850 then : 5851 printf %s "(cached) " >&6 5852 else $as_nop 5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5854 /* end confdefs.h. */ 5855 int i; 5856 _ACEOF 5857 if ac_fn_c_try_compile "$LINENO" 5858 then : 5859 xorg_cv_cc_flag_unused_command_line_argument=yes 5860 else $as_nop 5861 xorg_cv_cc_flag_unused_command_line_argument=no 5862 fi 5863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5864 fi 5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5868 CFLAGS="$xorg_testset_save_CFLAGS" 5869 fi 5870 5871 found="no" 5872 5873 if test $found = "no" ; then 5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 fi 5877 5878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5880 fi 5881 5882 CFLAGS="$CFLAGS -Wstrict-prototypes" 5883 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5885 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5886 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5887 if eval test \${$cacheid+y} 5888 then : 5889 printf %s "(cached) " >&6 5890 else $as_nop 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892 /* end confdefs.h. */ 5893 int i; 5894 int 5895 main (void) 5896 { 5897 5898 ; 5899 return 0; 5900 } 5901 _ACEOF 5902 if ac_fn_c_try_link "$LINENO" 5903 then : 5904 eval $cacheid=yes 5905 else $as_nop 5906 eval $cacheid=no 5907 fi 5908 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5909 conftest$ac_exeext conftest.$ac_ext 5910 fi 5911 5912 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914 5915 eval supported=\$$cacheid 5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5917 printf "%s\n" "$supported" >&6; } 5918 if test "$supported" = "yes" ; then 5919 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5920 found="yes" 5921 fi 5922 fi 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 xorg_testset_save_CFLAGS="$CFLAGS" 5939 5940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5944 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5945 then : 5946 printf %s "(cached) " >&6 5947 else $as_nop 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949 /* end confdefs.h. */ 5950 int i; 5951 _ACEOF 5952 if ac_fn_c_try_compile "$LINENO" 5953 then : 5954 xorg_cv_cc_flag_unknown_warning_option=yes 5955 else $as_nop 5956 xorg_cv_cc_flag_unknown_warning_option=no 5957 fi 5958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5959 fi 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964 fi 5965 5966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 fi 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5974 then : 5975 printf %s "(cached) " >&6 5976 else $as_nop 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978 /* end confdefs.h. */ 5979 int i; 5980 _ACEOF 5981 if ac_fn_c_try_compile "$LINENO" 5982 then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984 else $as_nop 5985 xorg_cv_cc_flag_unused_command_line_argument=no 5986 fi 5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5988 fi 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993 fi 5994 5995 found="no" 5996 5997 if test $found = "no" ; then 5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 6002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6004 fi 6005 6006 CFLAGS="$CFLAGS -Wmissing-prototypes" 6007 6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 6009 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 6010 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 6011 if eval test \${$cacheid+y} 6012 then : 6013 printf %s "(cached) " >&6 6014 else $as_nop 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016 /* end confdefs.h. */ 6017 int i; 6018 int 6019 main (void) 6020 { 6021 6022 ; 6023 return 0; 6024 } 6025 _ACEOF 6026 if ac_fn_c_try_link "$LINENO" 6027 then : 6028 eval $cacheid=yes 6029 else $as_nop 6030 eval $cacheid=no 6031 fi 6032 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6033 conftest$ac_exeext conftest.$ac_ext 6034 fi 6035 6036 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038 6039 eval supported=\$$cacheid 6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6041 printf "%s\n" "$supported" >&6; } 6042 if test "$supported" = "yes" ; then 6043 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 6044 found="yes" 6045 fi 6046 fi 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 xorg_testset_save_CFLAGS="$CFLAGS" 6063 6064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6067 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6068 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6069 then : 6070 printf %s "(cached) " >&6 6071 else $as_nop 6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6073 /* end confdefs.h. */ 6074 int i; 6075 _ACEOF 6076 if ac_fn_c_try_compile "$LINENO" 6077 then : 6078 xorg_cv_cc_flag_unknown_warning_option=yes 6079 else $as_nop 6080 xorg_cv_cc_flag_unknown_warning_option=no 6081 fi 6082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6083 fi 6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6085 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6087 CFLAGS="$xorg_testset_save_CFLAGS" 6088 fi 6089 6090 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6093 fi 6094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6096 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6097 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6098 then : 6099 printf %s "(cached) " >&6 6100 else $as_nop 6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6102 /* end confdefs.h. */ 6103 int i; 6104 _ACEOF 6105 if ac_fn_c_try_compile "$LINENO" 6106 then : 6107 xorg_cv_cc_flag_unused_command_line_argument=yes 6108 else $as_nop 6109 xorg_cv_cc_flag_unused_command_line_argument=no 6110 fi 6111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6112 fi 6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6114 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6116 CFLAGS="$xorg_testset_save_CFLAGS" 6117 fi 6118 6119 found="no" 6120 6121 if test $found = "no" ; then 6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6124 fi 6125 6126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6128 fi 6129 6130 CFLAGS="$CFLAGS -Wnested-externs" 6131 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6133 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6134 cacheid=xorg_cv_cc_flag__Wnested_externs 6135 if eval test \${$cacheid+y} 6136 then : 6137 printf %s "(cached) " >&6 6138 else $as_nop 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140 /* end confdefs.h. */ 6141 int i; 6142 int 6143 main (void) 6144 { 6145 6146 ; 6147 return 0; 6148 } 6149 _ACEOF 6150 if ac_fn_c_try_link "$LINENO" 6151 then : 6152 eval $cacheid=yes 6153 else $as_nop 6154 eval $cacheid=no 6155 fi 6156 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6157 conftest$ac_exeext conftest.$ac_ext 6158 fi 6159 6160 6161 CFLAGS="$xorg_testset_save_CFLAGS" 6162 6163 eval supported=\$$cacheid 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6165 printf "%s\n" "$supported" >&6; } 6166 if test "$supported" = "yes" ; then 6167 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6168 found="yes" 6169 fi 6170 fi 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 xorg_testset_save_CFLAGS="$CFLAGS" 6187 6188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6191 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6192 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6193 then : 6194 printf %s "(cached) " >&6 6195 else $as_nop 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197 /* end confdefs.h. */ 6198 int i; 6199 _ACEOF 6200 if ac_fn_c_try_compile "$LINENO" 6201 then : 6202 xorg_cv_cc_flag_unknown_warning_option=yes 6203 else $as_nop 6204 xorg_cv_cc_flag_unknown_warning_option=no 6205 fi 6206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6207 fi 6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6209 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6211 CFLAGS="$xorg_testset_save_CFLAGS" 6212 fi 6213 6214 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6217 fi 6218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6220 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6221 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6222 then : 6223 printf %s "(cached) " >&6 6224 else $as_nop 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226 /* end confdefs.h. */ 6227 int i; 6228 _ACEOF 6229 if ac_fn_c_try_compile "$LINENO" 6230 then : 6231 xorg_cv_cc_flag_unused_command_line_argument=yes 6232 else $as_nop 6233 xorg_cv_cc_flag_unused_command_line_argument=no 6234 fi 6235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6236 fi 6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6240 CFLAGS="$xorg_testset_save_CFLAGS" 6241 fi 6242 6243 found="no" 6244 6245 if test $found = "no" ; then 6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 fi 6249 6250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6252 fi 6253 6254 CFLAGS="$CFLAGS -Wbad-function-cast" 6255 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6257 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6258 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6259 if eval test \${$cacheid+y} 6260 then : 6261 printf %s "(cached) " >&6 6262 else $as_nop 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264 /* end confdefs.h. */ 6265 int i; 6266 int 6267 main (void) 6268 { 6269 6270 ; 6271 return 0; 6272 } 6273 _ACEOF 6274 if ac_fn_c_try_link "$LINENO" 6275 then : 6276 eval $cacheid=yes 6277 else $as_nop 6278 eval $cacheid=no 6279 fi 6280 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6281 conftest$ac_exeext conftest.$ac_ext 6282 fi 6283 6284 6285 CFLAGS="$xorg_testset_save_CFLAGS" 6286 6287 eval supported=\$$cacheid 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6289 printf "%s\n" "$supported" >&6; } 6290 if test "$supported" = "yes" ; then 6291 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6292 found="yes" 6293 fi 6294 fi 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 xorg_testset_save_CFLAGS="$CFLAGS" 6311 6312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6316 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6317 then : 6318 printf %s "(cached) " >&6 6319 else $as_nop 6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6321 /* end confdefs.h. */ 6322 int i; 6323 _ACEOF 6324 if ac_fn_c_try_compile "$LINENO" 6325 then : 6326 xorg_cv_cc_flag_unknown_warning_option=yes 6327 else $as_nop 6328 xorg_cv_cc_flag_unknown_warning_option=no 6329 fi 6330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6331 fi 6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6333 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6335 CFLAGS="$xorg_testset_save_CFLAGS" 6336 fi 6337 6338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6341 fi 6342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6344 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6345 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6346 then : 6347 printf %s "(cached) " >&6 6348 else $as_nop 6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350 /* end confdefs.h. */ 6351 int i; 6352 _ACEOF 6353 if ac_fn_c_try_compile "$LINENO" 6354 then : 6355 xorg_cv_cc_flag_unused_command_line_argument=yes 6356 else $as_nop 6357 xorg_cv_cc_flag_unused_command_line_argument=no 6358 fi 6359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6360 fi 6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6362 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6364 CFLAGS="$xorg_testset_save_CFLAGS" 6365 fi 6366 6367 found="no" 6368 6369 if test $found = "no" ; then 6370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6372 fi 6373 6374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6376 fi 6377 6378 CFLAGS="$CFLAGS -Wold-style-definition" 6379 6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6381 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6382 cacheid=xorg_cv_cc_flag__Wold_style_definition 6383 if eval test \${$cacheid+y} 6384 then : 6385 printf %s "(cached) " >&6 6386 else $as_nop 6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388 /* end confdefs.h. */ 6389 int i; 6390 int 6391 main (void) 6392 { 6393 6394 ; 6395 return 0; 6396 } 6397 _ACEOF 6398 if ac_fn_c_try_link "$LINENO" 6399 then : 6400 eval $cacheid=yes 6401 else $as_nop 6402 eval $cacheid=no 6403 fi 6404 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6405 conftest$ac_exeext conftest.$ac_ext 6406 fi 6407 6408 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410 6411 eval supported=\$$cacheid 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6413 printf "%s\n" "$supported" >&6; } 6414 if test "$supported" = "yes" ; then 6415 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6416 found="yes" 6417 fi 6418 fi 6419 6420 if test $found = "no" ; then 6421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6423 fi 6424 6425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6427 fi 6428 6429 CFLAGS="$CFLAGS -fd" 6430 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6432 printf %s "checking if $CC supports -fd... " >&6; } 6433 cacheid=xorg_cv_cc_flag__fd 6434 if eval test \${$cacheid+y} 6435 then : 6436 printf %s "(cached) " >&6 6437 else $as_nop 6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6439 /* end confdefs.h. */ 6440 int i; 6441 int 6442 main (void) 6443 { 6444 6445 ; 6446 return 0; 6447 } 6448 _ACEOF 6449 if ac_fn_c_try_link "$LINENO" 6450 then : 6451 eval $cacheid=yes 6452 else $as_nop 6453 eval $cacheid=no 6454 fi 6455 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6456 conftest$ac_exeext conftest.$ac_ext 6457 fi 6458 6459 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461 6462 eval supported=\$$cacheid 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6464 printf "%s\n" "$supported" >&6; } 6465 if test "$supported" = "yes" ; then 6466 BASE_CFLAGS="$BASE_CFLAGS -fd" 6467 found="yes" 6468 fi 6469 fi 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 xorg_testset_save_CFLAGS="$CFLAGS" 6486 6487 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6490 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6491 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6492 then : 6493 printf %s "(cached) " >&6 6494 else $as_nop 6495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6496 /* end confdefs.h. */ 6497 int i; 6498 _ACEOF 6499 if ac_fn_c_try_compile "$LINENO" 6500 then : 6501 xorg_cv_cc_flag_unknown_warning_option=yes 6502 else $as_nop 6503 xorg_cv_cc_flag_unknown_warning_option=no 6504 fi 6505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6506 fi 6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6508 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6510 CFLAGS="$xorg_testset_save_CFLAGS" 6511 fi 6512 6513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6516 fi 6517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6519 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6520 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6521 then : 6522 printf %s "(cached) " >&6 6523 else $as_nop 6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6525 /* end confdefs.h. */ 6526 int i; 6527 _ACEOF 6528 if ac_fn_c_try_compile "$LINENO" 6529 then : 6530 xorg_cv_cc_flag_unused_command_line_argument=yes 6531 else $as_nop 6532 xorg_cv_cc_flag_unused_command_line_argument=no 6533 fi 6534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6535 fi 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6539 CFLAGS="$xorg_testset_save_CFLAGS" 6540 fi 6541 6542 found="no" 6543 6544 if test $found = "no" ; then 6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6547 fi 6548 6549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6551 fi 6552 6553 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6554 6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6556 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6557 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6558 if eval test \${$cacheid+y} 6559 then : 6560 printf %s "(cached) " >&6 6561 else $as_nop 6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563 /* end confdefs.h. */ 6564 int i; 6565 int 6566 main (void) 6567 { 6568 6569 ; 6570 return 0; 6571 } 6572 _ACEOF 6573 if ac_fn_c_try_link "$LINENO" 6574 then : 6575 eval $cacheid=yes 6576 else $as_nop 6577 eval $cacheid=no 6578 fi 6579 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6580 conftest$ac_exeext conftest.$ac_ext 6581 fi 6582 6583 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585 6586 eval supported=\$$cacheid 6587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6588 printf "%s\n" "$supported" >&6; } 6589 if test "$supported" = "yes" ; then 6590 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6591 found="yes" 6592 fi 6593 fi 6594 6595 6596 6597 6598 6599 # This chunk adds additional warnings that could catch undesired effects. 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 xorg_testset_save_CFLAGS="$CFLAGS" 6614 6615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6619 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6620 then : 6621 printf %s "(cached) " >&6 6622 else $as_nop 6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6624 /* end confdefs.h. */ 6625 int i; 6626 _ACEOF 6627 if ac_fn_c_try_compile "$LINENO" 6628 then : 6629 xorg_cv_cc_flag_unknown_warning_option=yes 6630 else $as_nop 6631 xorg_cv_cc_flag_unknown_warning_option=no 6632 fi 6633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6634 fi 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639 fi 6640 6641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 fi 6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6649 then : 6650 printf %s "(cached) " >&6 6651 else $as_nop 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653 /* end confdefs.h. */ 6654 int i; 6655 _ACEOF 6656 if ac_fn_c_try_compile "$LINENO" 6657 then : 6658 xorg_cv_cc_flag_unused_command_line_argument=yes 6659 else $as_nop 6660 xorg_cv_cc_flag_unused_command_line_argument=no 6661 fi 6662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6663 fi 6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6665 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668 fi 6669 6670 found="no" 6671 6672 if test $found = "no" ; then 6673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6675 fi 6676 6677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6679 fi 6680 6681 CFLAGS="$CFLAGS -Wunused" 6682 6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6684 printf %s "checking if $CC supports -Wunused... " >&6; } 6685 cacheid=xorg_cv_cc_flag__Wunused 6686 if eval test \${$cacheid+y} 6687 then : 6688 printf %s "(cached) " >&6 6689 else $as_nop 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691 /* end confdefs.h. */ 6692 int i; 6693 int 6694 main (void) 6695 { 6696 6697 ; 6698 return 0; 6699 } 6700 _ACEOF 6701 if ac_fn_c_try_link "$LINENO" 6702 then : 6703 eval $cacheid=yes 6704 else $as_nop 6705 eval $cacheid=no 6706 fi 6707 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6708 conftest$ac_exeext conftest.$ac_ext 6709 fi 6710 6711 6712 CFLAGS="$xorg_testset_save_CFLAGS" 6713 6714 eval supported=\$$cacheid 6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6716 printf "%s\n" "$supported" >&6; } 6717 if test "$supported" = "yes" ; then 6718 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6719 found="yes" 6720 fi 6721 fi 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 xorg_testset_save_CFLAGS="$CFLAGS" 6738 6739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6743 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6744 then : 6745 printf %s "(cached) " >&6 6746 else $as_nop 6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748 /* end confdefs.h. */ 6749 int i; 6750 _ACEOF 6751 if ac_fn_c_try_compile "$LINENO" 6752 then : 6753 xorg_cv_cc_flag_unknown_warning_option=yes 6754 else $as_nop 6755 xorg_cv_cc_flag_unknown_warning_option=no 6756 fi 6757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6758 fi 6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6760 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763 fi 6764 6765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 fi 6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6773 then : 6774 printf %s "(cached) " >&6 6775 else $as_nop 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777 /* end confdefs.h. */ 6778 int i; 6779 _ACEOF 6780 if ac_fn_c_try_compile "$LINENO" 6781 then : 6782 xorg_cv_cc_flag_unused_command_line_argument=yes 6783 else $as_nop 6784 xorg_cv_cc_flag_unused_command_line_argument=no 6785 fi 6786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6787 fi 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6789 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6791 CFLAGS="$xorg_testset_save_CFLAGS" 6792 fi 6793 6794 found="no" 6795 6796 if test $found = "no" ; then 6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 fi 6800 6801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6803 fi 6804 6805 CFLAGS="$CFLAGS -Wuninitialized" 6806 6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6808 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6809 cacheid=xorg_cv_cc_flag__Wuninitialized 6810 if eval test \${$cacheid+y} 6811 then : 6812 printf %s "(cached) " >&6 6813 else $as_nop 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815 /* end confdefs.h. */ 6816 int i; 6817 int 6818 main (void) 6819 { 6820 6821 ; 6822 return 0; 6823 } 6824 _ACEOF 6825 if ac_fn_c_try_link "$LINENO" 6826 then : 6827 eval $cacheid=yes 6828 else $as_nop 6829 eval $cacheid=no 6830 fi 6831 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6832 conftest$ac_exeext conftest.$ac_ext 6833 fi 6834 6835 6836 CFLAGS="$xorg_testset_save_CFLAGS" 6837 6838 eval supported=\$$cacheid 6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6840 printf "%s\n" "$supported" >&6; } 6841 if test "$supported" = "yes" ; then 6842 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6843 found="yes" 6844 fi 6845 fi 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 xorg_testset_save_CFLAGS="$CFLAGS" 6862 6863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6867 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6868 then : 6869 printf %s "(cached) " >&6 6870 else $as_nop 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872 /* end confdefs.h. */ 6873 int i; 6874 _ACEOF 6875 if ac_fn_c_try_compile "$LINENO" 6876 then : 6877 xorg_cv_cc_flag_unknown_warning_option=yes 6878 else $as_nop 6879 xorg_cv_cc_flag_unknown_warning_option=no 6880 fi 6881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6882 fi 6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887 fi 6888 6889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 fi 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6897 then : 6898 printf %s "(cached) " >&6 6899 else $as_nop 6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901 /* end confdefs.h. */ 6902 int i; 6903 _ACEOF 6904 if ac_fn_c_try_compile "$LINENO" 6905 then : 6906 xorg_cv_cc_flag_unused_command_line_argument=yes 6907 else $as_nop 6908 xorg_cv_cc_flag_unused_command_line_argument=no 6909 fi 6910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6911 fi 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916 fi 6917 6918 found="no" 6919 6920 if test $found = "no" ; then 6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923 fi 6924 6925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6927 fi 6928 6929 CFLAGS="$CFLAGS -Wshadow" 6930 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6932 printf %s "checking if $CC supports -Wshadow... " >&6; } 6933 cacheid=xorg_cv_cc_flag__Wshadow 6934 if eval test \${$cacheid+y} 6935 then : 6936 printf %s "(cached) " >&6 6937 else $as_nop 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939 /* end confdefs.h. */ 6940 int i; 6941 int 6942 main (void) 6943 { 6944 6945 ; 6946 return 0; 6947 } 6948 _ACEOF 6949 if ac_fn_c_try_link "$LINENO" 6950 then : 6951 eval $cacheid=yes 6952 else $as_nop 6953 eval $cacheid=no 6954 fi 6955 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6956 conftest$ac_exeext conftest.$ac_ext 6957 fi 6958 6959 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961 6962 eval supported=\$$cacheid 6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6964 printf "%s\n" "$supported" >&6; } 6965 if test "$supported" = "yes" ; then 6966 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6967 found="yes" 6968 fi 6969 fi 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 xorg_testset_save_CFLAGS="$CFLAGS" 6986 6987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6991 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6992 then : 6993 printf %s "(cached) " >&6 6994 else $as_nop 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996 /* end confdefs.h. */ 6997 int i; 6998 _ACEOF 6999 if ac_fn_c_try_compile "$LINENO" 7000 then : 7001 xorg_cv_cc_flag_unknown_warning_option=yes 7002 else $as_nop 7003 xorg_cv_cc_flag_unknown_warning_option=no 7004 fi 7005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7006 fi 7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011 fi 7012 7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7016 fi 7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7021 then : 7022 printf %s "(cached) " >&6 7023 else $as_nop 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025 /* end confdefs.h. */ 7026 int i; 7027 _ACEOF 7028 if ac_fn_c_try_compile "$LINENO" 7029 then : 7030 xorg_cv_cc_flag_unused_command_line_argument=yes 7031 else $as_nop 7032 xorg_cv_cc_flag_unused_command_line_argument=no 7033 fi 7034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7035 fi 7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040 fi 7041 7042 found="no" 7043 7044 if test $found = "no" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7051 fi 7052 7053 CFLAGS="$CFLAGS -Wmissing-noreturn" 7054 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 7056 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 7057 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 7058 if eval test \${$cacheid+y} 7059 then : 7060 printf %s "(cached) " >&6 7061 else $as_nop 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063 /* end confdefs.h. */ 7064 int i; 7065 int 7066 main (void) 7067 { 7068 7069 ; 7070 return 0; 7071 } 7072 _ACEOF 7073 if ac_fn_c_try_link "$LINENO" 7074 then : 7075 eval $cacheid=yes 7076 else $as_nop 7077 eval $cacheid=no 7078 fi 7079 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7080 conftest$ac_exeext conftest.$ac_ext 7081 fi 7082 7083 7084 CFLAGS="$xorg_testset_save_CFLAGS" 7085 7086 eval supported=\$$cacheid 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7088 printf "%s\n" "$supported" >&6; } 7089 if test "$supported" = "yes" ; then 7090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7091 found="yes" 7092 fi 7093 fi 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 xorg_testset_save_CFLAGS="$CFLAGS" 7110 7111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7115 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7116 then : 7117 printf %s "(cached) " >&6 7118 else $as_nop 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120 /* end confdefs.h. */ 7121 int i; 7122 _ACEOF 7123 if ac_fn_c_try_compile "$LINENO" 7124 then : 7125 xorg_cv_cc_flag_unknown_warning_option=yes 7126 else $as_nop 7127 xorg_cv_cc_flag_unknown_warning_option=no 7128 fi 7129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7130 fi 7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7132 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7134 CFLAGS="$xorg_testset_save_CFLAGS" 7135 fi 7136 7137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7140 fi 7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7143 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7144 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7145 then : 7146 printf %s "(cached) " >&6 7147 else $as_nop 7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7149 /* end confdefs.h. */ 7150 int i; 7151 _ACEOF 7152 if ac_fn_c_try_compile "$LINENO" 7153 then : 7154 xorg_cv_cc_flag_unused_command_line_argument=yes 7155 else $as_nop 7156 xorg_cv_cc_flag_unused_command_line_argument=no 7157 fi 7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7159 fi 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7163 CFLAGS="$xorg_testset_save_CFLAGS" 7164 fi 7165 7166 found="no" 7167 7168 if test $found = "no" ; then 7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7171 fi 7172 7173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7175 fi 7176 7177 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7178 7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7180 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7181 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7182 if eval test \${$cacheid+y} 7183 then : 7184 printf %s "(cached) " >&6 7185 else $as_nop 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187 /* end confdefs.h. */ 7188 int i; 7189 int 7190 main (void) 7191 { 7192 7193 ; 7194 return 0; 7195 } 7196 _ACEOF 7197 if ac_fn_c_try_link "$LINENO" 7198 then : 7199 eval $cacheid=yes 7200 else $as_nop 7201 eval $cacheid=no 7202 fi 7203 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7204 conftest$ac_exeext conftest.$ac_ext 7205 fi 7206 7207 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209 7210 eval supported=\$$cacheid 7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7212 printf "%s\n" "$supported" >&6; } 7213 if test "$supported" = "yes" ; then 7214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7215 found="yes" 7216 fi 7217 fi 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 xorg_testset_save_CFLAGS="$CFLAGS" 7234 7235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7239 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7240 then : 7241 printf %s "(cached) " >&6 7242 else $as_nop 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244 /* end confdefs.h. */ 7245 int i; 7246 _ACEOF 7247 if ac_fn_c_try_compile "$LINENO" 7248 then : 7249 xorg_cv_cc_flag_unknown_warning_option=yes 7250 else $as_nop 7251 xorg_cv_cc_flag_unknown_warning_option=no 7252 fi 7253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7254 fi 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7258 CFLAGS="$xorg_testset_save_CFLAGS" 7259 fi 7260 7261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7264 fi 7265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7269 then : 7270 printf %s "(cached) " >&6 7271 else $as_nop 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273 /* end confdefs.h. */ 7274 int i; 7275 _ACEOF 7276 if ac_fn_c_try_compile "$LINENO" 7277 then : 7278 xorg_cv_cc_flag_unused_command_line_argument=yes 7279 else $as_nop 7280 xorg_cv_cc_flag_unused_command_line_argument=no 7281 fi 7282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7283 fi 7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7287 CFLAGS="$xorg_testset_save_CFLAGS" 7288 fi 7289 7290 found="no" 7291 7292 if test $found = "no" ; then 7293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7295 fi 7296 7297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7299 fi 7300 7301 CFLAGS="$CFLAGS -Wredundant-decls" 7302 7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7304 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7305 cacheid=xorg_cv_cc_flag__Wredundant_decls 7306 if eval test \${$cacheid+y} 7307 then : 7308 printf %s "(cached) " >&6 7309 else $as_nop 7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7311 /* end confdefs.h. */ 7312 int i; 7313 int 7314 main (void) 7315 { 7316 7317 ; 7318 return 0; 7319 } 7320 _ACEOF 7321 if ac_fn_c_try_link "$LINENO" 7322 then : 7323 eval $cacheid=yes 7324 else $as_nop 7325 eval $cacheid=no 7326 fi 7327 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7328 conftest$ac_exeext conftest.$ac_ext 7329 fi 7330 7331 7332 CFLAGS="$xorg_testset_save_CFLAGS" 7333 7334 eval supported=\$$cacheid 7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7336 printf "%s\n" "$supported" >&6; } 7337 if test "$supported" = "yes" ; then 7338 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7339 found="yes" 7340 fi 7341 fi 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 xorg_testset_save_CFLAGS="$CFLAGS" 7358 7359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7363 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7364 then : 7365 printf %s "(cached) " >&6 7366 else $as_nop 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368 /* end confdefs.h. */ 7369 int i; 7370 _ACEOF 7371 if ac_fn_c_try_compile "$LINENO" 7372 then : 7373 xorg_cv_cc_flag_unknown_warning_option=yes 7374 else $as_nop 7375 xorg_cv_cc_flag_unknown_warning_option=no 7376 fi 7377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7378 fi 7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7382 CFLAGS="$xorg_testset_save_CFLAGS" 7383 fi 7384 7385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7388 fi 7389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7393 then : 7394 printf %s "(cached) " >&6 7395 else $as_nop 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397 /* end confdefs.h. */ 7398 int i; 7399 _ACEOF 7400 if ac_fn_c_try_compile "$LINENO" 7401 then : 7402 xorg_cv_cc_flag_unused_command_line_argument=yes 7403 else $as_nop 7404 xorg_cv_cc_flag_unused_command_line_argument=no 7405 fi 7406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7407 fi 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7411 CFLAGS="$xorg_testset_save_CFLAGS" 7412 fi 7413 7414 found="no" 7415 7416 if test $found = "no" ; then 7417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7419 fi 7420 7421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7423 fi 7424 7425 CFLAGS="$CFLAGS -Wlogical-op" 7426 7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7428 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7429 cacheid=xorg_cv_cc_flag__Wlogical_op 7430 if eval test \${$cacheid+y} 7431 then : 7432 printf %s "(cached) " >&6 7433 else $as_nop 7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7435 /* end confdefs.h. */ 7436 int i; 7437 int 7438 main (void) 7439 { 7440 7441 ; 7442 return 0; 7443 } 7444 _ACEOF 7445 if ac_fn_c_try_link "$LINENO" 7446 then : 7447 eval $cacheid=yes 7448 else $as_nop 7449 eval $cacheid=no 7450 fi 7451 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7452 conftest$ac_exeext conftest.$ac_ext 7453 fi 7454 7455 7456 CFLAGS="$xorg_testset_save_CFLAGS" 7457 7458 eval supported=\$$cacheid 7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7460 printf "%s\n" "$supported" >&6; } 7461 if test "$supported" = "yes" ; then 7462 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7463 found="yes" 7464 fi 7465 fi 7466 7467 7468 7469 # These are currently disabled because they are noisy. They will be enabled 7470 # in the future once the codebase is sufficiently modernized to silence 7471 # them. For now, I don't want them to drown out the other warnings. 7472 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7473 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7474 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7475 7476 # Turn some warnings into errors, so we don't accidently get successful builds 7477 # when there are problems that should be fixed. 7478 7479 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 xorg_testset_save_CFLAGS="$CFLAGS" 7494 7495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7499 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7500 then : 7501 printf %s "(cached) " >&6 7502 else $as_nop 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504 /* end confdefs.h. */ 7505 int i; 7506 _ACEOF 7507 if ac_fn_c_try_compile "$LINENO" 7508 then : 7509 xorg_cv_cc_flag_unknown_warning_option=yes 7510 else $as_nop 7511 xorg_cv_cc_flag_unknown_warning_option=no 7512 fi 7513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7514 fi 7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7516 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519 fi 7520 7521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524 fi 7525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7527 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7528 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7529 then : 7530 printf %s "(cached) " >&6 7531 else $as_nop 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533 /* end confdefs.h. */ 7534 int i; 7535 _ACEOF 7536 if ac_fn_c_try_compile "$LINENO" 7537 then : 7538 xorg_cv_cc_flag_unused_command_line_argument=yes 7539 else $as_nop 7540 xorg_cv_cc_flag_unused_command_line_argument=no 7541 fi 7542 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7543 fi 7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7545 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7547 CFLAGS="$xorg_testset_save_CFLAGS" 7548 fi 7549 7550 found="no" 7551 7552 if test $found = "no" ; then 7553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7555 fi 7556 7557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7559 fi 7560 7561 CFLAGS="$CFLAGS -Werror=implicit" 7562 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7564 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7565 cacheid=xorg_cv_cc_flag__Werror_implicit 7566 if eval test \${$cacheid+y} 7567 then : 7568 printf %s "(cached) " >&6 7569 else $as_nop 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571 /* end confdefs.h. */ 7572 int i; 7573 int 7574 main (void) 7575 { 7576 7577 ; 7578 return 0; 7579 } 7580 _ACEOF 7581 if ac_fn_c_try_link "$LINENO" 7582 then : 7583 eval $cacheid=yes 7584 else $as_nop 7585 eval $cacheid=no 7586 fi 7587 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7588 conftest$ac_exeext conftest.$ac_ext 7589 fi 7590 7591 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593 7594 eval supported=\$$cacheid 7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7596 printf "%s\n" "$supported" >&6; } 7597 if test "$supported" = "yes" ; then 7598 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7599 found="yes" 7600 fi 7601 fi 7602 7603 if test $found = "no" ; then 7604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7606 fi 7607 7608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7610 fi 7611 7612 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7613 7614 { 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 7615 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7616 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7617 if eval test \${$cacheid+y} 7618 then : 7619 printf %s "(cached) " >&6 7620 else $as_nop 7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7622 /* end confdefs.h. */ 7623 int i; 7624 int 7625 main (void) 7626 { 7627 7628 ; 7629 return 0; 7630 } 7631 _ACEOF 7632 if ac_fn_c_try_link "$LINENO" 7633 then : 7634 eval $cacheid=yes 7635 else $as_nop 7636 eval $cacheid=no 7637 fi 7638 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7639 conftest$ac_exeext conftest.$ac_ext 7640 fi 7641 7642 7643 CFLAGS="$xorg_testset_save_CFLAGS" 7644 7645 eval supported=\$$cacheid 7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7647 printf "%s\n" "$supported" >&6; } 7648 if test "$supported" = "yes" ; then 7649 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7650 found="yes" 7651 fi 7652 fi 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 xorg_testset_save_CFLAGS="$CFLAGS" 7669 7670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7674 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7675 then : 7676 printf %s "(cached) " >&6 7677 else $as_nop 7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679 /* end confdefs.h. */ 7680 int i; 7681 _ACEOF 7682 if ac_fn_c_try_compile "$LINENO" 7683 then : 7684 xorg_cv_cc_flag_unknown_warning_option=yes 7685 else $as_nop 7686 xorg_cv_cc_flag_unknown_warning_option=no 7687 fi 7688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7689 fi 7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694 fi 7695 7696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7699 fi 7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7703 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7704 then : 7705 printf %s "(cached) " >&6 7706 else $as_nop 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708 /* end confdefs.h. */ 7709 int i; 7710 _ACEOF 7711 if ac_fn_c_try_compile "$LINENO" 7712 then : 7713 xorg_cv_cc_flag_unused_command_line_argument=yes 7714 else $as_nop 7715 xorg_cv_cc_flag_unused_command_line_argument=no 7716 fi 7717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7718 fi 7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723 fi 7724 7725 found="no" 7726 7727 if test $found = "no" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7734 fi 7735 7736 CFLAGS="$CFLAGS -Werror=nonnull" 7737 7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7739 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7740 cacheid=xorg_cv_cc_flag__Werror_nonnull 7741 if eval test \${$cacheid+y} 7742 then : 7743 printf %s "(cached) " >&6 7744 else $as_nop 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746 /* end confdefs.h. */ 7747 int i; 7748 int 7749 main (void) 7750 { 7751 7752 ; 7753 return 0; 7754 } 7755 _ACEOF 7756 if ac_fn_c_try_link "$LINENO" 7757 then : 7758 eval $cacheid=yes 7759 else $as_nop 7760 eval $cacheid=no 7761 fi 7762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7763 conftest$ac_exeext conftest.$ac_ext 7764 fi 7765 7766 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768 7769 eval supported=\$$cacheid 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7771 printf "%s\n" "$supported" >&6; } 7772 if test "$supported" = "yes" ; then 7773 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7774 found="yes" 7775 fi 7776 fi 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 xorg_testset_save_CFLAGS="$CFLAGS" 7793 7794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7798 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7799 then : 7800 printf %s "(cached) " >&6 7801 else $as_nop 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803 /* end confdefs.h. */ 7804 int i; 7805 _ACEOF 7806 if ac_fn_c_try_compile "$LINENO" 7807 then : 7808 xorg_cv_cc_flag_unknown_warning_option=yes 7809 else $as_nop 7810 xorg_cv_cc_flag_unknown_warning_option=no 7811 fi 7812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7813 fi 7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7817 CFLAGS="$xorg_testset_save_CFLAGS" 7818 fi 7819 7820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 fi 7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7828 then : 7829 printf %s "(cached) " >&6 7830 else $as_nop 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832 /* end confdefs.h. */ 7833 int i; 7834 _ACEOF 7835 if ac_fn_c_try_compile "$LINENO" 7836 then : 7837 xorg_cv_cc_flag_unused_command_line_argument=yes 7838 else $as_nop 7839 xorg_cv_cc_flag_unused_command_line_argument=no 7840 fi 7841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7842 fi 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7846 CFLAGS="$xorg_testset_save_CFLAGS" 7847 fi 7848 7849 found="no" 7850 7851 if test $found = "no" ; then 7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 fi 7855 7856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7858 fi 7859 7860 CFLAGS="$CFLAGS -Werror=init-self" 7861 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7863 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7864 cacheid=xorg_cv_cc_flag__Werror_init_self 7865 if eval test \${$cacheid+y} 7866 then : 7867 printf %s "(cached) " >&6 7868 else $as_nop 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870 /* end confdefs.h. */ 7871 int i; 7872 int 7873 main (void) 7874 { 7875 7876 ; 7877 return 0; 7878 } 7879 _ACEOF 7880 if ac_fn_c_try_link "$LINENO" 7881 then : 7882 eval $cacheid=yes 7883 else $as_nop 7884 eval $cacheid=no 7885 fi 7886 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7887 conftest$ac_exeext conftest.$ac_ext 7888 fi 7889 7890 7891 CFLAGS="$xorg_testset_save_CFLAGS" 7892 7893 eval supported=\$$cacheid 7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7895 printf "%s\n" "$supported" >&6; } 7896 if test "$supported" = "yes" ; then 7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7898 found="yes" 7899 fi 7900 fi 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 xorg_testset_save_CFLAGS="$CFLAGS" 7917 7918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7922 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7923 then : 7924 printf %s "(cached) " >&6 7925 else $as_nop 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927 /* end confdefs.h. */ 7928 int i; 7929 _ACEOF 7930 if ac_fn_c_try_compile "$LINENO" 7931 then : 7932 xorg_cv_cc_flag_unknown_warning_option=yes 7933 else $as_nop 7934 xorg_cv_cc_flag_unknown_warning_option=no 7935 fi 7936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7937 fi 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7939 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942 fi 7943 7944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 fi 7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7950 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7951 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7952 then : 7953 printf %s "(cached) " >&6 7954 else $as_nop 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956 /* end confdefs.h. */ 7957 int i; 7958 _ACEOF 7959 if ac_fn_c_try_compile "$LINENO" 7960 then : 7961 xorg_cv_cc_flag_unused_command_line_argument=yes 7962 else $as_nop 7963 xorg_cv_cc_flag_unused_command_line_argument=no 7964 fi 7965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7966 fi 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7968 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7970 CFLAGS="$xorg_testset_save_CFLAGS" 7971 fi 7972 7973 found="no" 7974 7975 if test $found = "no" ; then 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 fi 7979 7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7982 fi 7983 7984 CFLAGS="$CFLAGS -Werror=main" 7985 7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7987 printf %s "checking if $CC supports -Werror=main... " >&6; } 7988 cacheid=xorg_cv_cc_flag__Werror_main 7989 if eval test \${$cacheid+y} 7990 then : 7991 printf %s "(cached) " >&6 7992 else $as_nop 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994 /* end confdefs.h. */ 7995 int i; 7996 int 7997 main (void) 7998 { 7999 8000 ; 8001 return 0; 8002 } 8003 _ACEOF 8004 if ac_fn_c_try_link "$LINENO" 8005 then : 8006 eval $cacheid=yes 8007 else $as_nop 8008 eval $cacheid=no 8009 fi 8010 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8011 conftest$ac_exeext conftest.$ac_ext 8012 fi 8013 8014 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016 8017 eval supported=\$$cacheid 8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8019 printf "%s\n" "$supported" >&6; } 8020 if test "$supported" = "yes" ; then 8021 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8022 found="yes" 8023 fi 8024 fi 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 xorg_testset_save_CFLAGS="$CFLAGS" 8041 8042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8045 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8046 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8047 then : 8048 printf %s "(cached) " >&6 8049 else $as_nop 8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8051 /* end confdefs.h. */ 8052 int i; 8053 _ACEOF 8054 if ac_fn_c_try_compile "$LINENO" 8055 then : 8056 xorg_cv_cc_flag_unknown_warning_option=yes 8057 else $as_nop 8058 xorg_cv_cc_flag_unknown_warning_option=no 8059 fi 8060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8061 fi 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8063 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8065 CFLAGS="$xorg_testset_save_CFLAGS" 8066 fi 8067 8068 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8071 fi 8072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8074 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8075 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8076 then : 8077 printf %s "(cached) " >&6 8078 else $as_nop 8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8080 /* end confdefs.h. */ 8081 int i; 8082 _ACEOF 8083 if ac_fn_c_try_compile "$LINENO" 8084 then : 8085 xorg_cv_cc_flag_unused_command_line_argument=yes 8086 else $as_nop 8087 xorg_cv_cc_flag_unused_command_line_argument=no 8088 fi 8089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8090 fi 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8092 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8094 CFLAGS="$xorg_testset_save_CFLAGS" 8095 fi 8096 8097 found="no" 8098 8099 if test $found = "no" ; then 8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8102 fi 8103 8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8106 fi 8107 8108 CFLAGS="$CFLAGS -Werror=missing-braces" 8109 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8111 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8112 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8113 if eval test \${$cacheid+y} 8114 then : 8115 printf %s "(cached) " >&6 8116 else $as_nop 8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8118 /* end confdefs.h. */ 8119 int i; 8120 int 8121 main (void) 8122 { 8123 8124 ; 8125 return 0; 8126 } 8127 _ACEOF 8128 if ac_fn_c_try_link "$LINENO" 8129 then : 8130 eval $cacheid=yes 8131 else $as_nop 8132 eval $cacheid=no 8133 fi 8134 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8135 conftest$ac_exeext conftest.$ac_ext 8136 fi 8137 8138 8139 CFLAGS="$xorg_testset_save_CFLAGS" 8140 8141 eval supported=\$$cacheid 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8143 printf "%s\n" "$supported" >&6; } 8144 if test "$supported" = "yes" ; then 8145 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8146 found="yes" 8147 fi 8148 fi 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 xorg_testset_save_CFLAGS="$CFLAGS" 8165 8166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8169 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8170 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8171 then : 8172 printf %s "(cached) " >&6 8173 else $as_nop 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175 /* end confdefs.h. */ 8176 int i; 8177 _ACEOF 8178 if ac_fn_c_try_compile "$LINENO" 8179 then : 8180 xorg_cv_cc_flag_unknown_warning_option=yes 8181 else $as_nop 8182 xorg_cv_cc_flag_unknown_warning_option=no 8183 fi 8184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8185 fi 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8187 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8189 CFLAGS="$xorg_testset_save_CFLAGS" 8190 fi 8191 8192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8195 fi 8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8198 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8199 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8200 then : 8201 printf %s "(cached) " >&6 8202 else $as_nop 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204 /* end confdefs.h. */ 8205 int i; 8206 _ACEOF 8207 if ac_fn_c_try_compile "$LINENO" 8208 then : 8209 xorg_cv_cc_flag_unused_command_line_argument=yes 8210 else $as_nop 8211 xorg_cv_cc_flag_unused_command_line_argument=no 8212 fi 8213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8214 fi 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8216 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219 fi 8220 8221 found="no" 8222 8223 if test $found = "no" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8230 fi 8231 8232 CFLAGS="$CFLAGS -Werror=sequence-point" 8233 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8235 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8236 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8237 if eval test \${$cacheid+y} 8238 then : 8239 printf %s "(cached) " >&6 8240 else $as_nop 8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242 /* end confdefs.h. */ 8243 int i; 8244 int 8245 main (void) 8246 { 8247 8248 ; 8249 return 0; 8250 } 8251 _ACEOF 8252 if ac_fn_c_try_link "$LINENO" 8253 then : 8254 eval $cacheid=yes 8255 else $as_nop 8256 eval $cacheid=no 8257 fi 8258 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8259 conftest$ac_exeext conftest.$ac_ext 8260 fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267 printf "%s\n" "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8270 found="yes" 8271 fi 8272 fi 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 xorg_testset_save_CFLAGS="$CFLAGS" 8289 8290 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8293 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8294 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8295 then : 8296 printf %s "(cached) " >&6 8297 else $as_nop 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299 /* end confdefs.h. */ 8300 int i; 8301 _ACEOF 8302 if ac_fn_c_try_compile "$LINENO" 8303 then : 8304 xorg_cv_cc_flag_unknown_warning_option=yes 8305 else $as_nop 8306 xorg_cv_cc_flag_unknown_warning_option=no 8307 fi 8308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8309 fi 8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8311 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314 fi 8315 8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8319 fi 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8322 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8323 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8324 then : 8325 printf %s "(cached) " >&6 8326 else $as_nop 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328 /* end confdefs.h. */ 8329 int i; 8330 _ACEOF 8331 if ac_fn_c_try_compile "$LINENO" 8332 then : 8333 xorg_cv_cc_flag_unused_command_line_argument=yes 8334 else $as_nop 8335 xorg_cv_cc_flag_unused_command_line_argument=no 8336 fi 8337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8338 fi 8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8340 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8342 CFLAGS="$xorg_testset_save_CFLAGS" 8343 fi 8344 8345 found="no" 8346 8347 if test $found = "no" ; then 8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 fi 8351 8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8354 fi 8355 8356 CFLAGS="$CFLAGS -Werror=return-type" 8357 8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8359 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8360 cacheid=xorg_cv_cc_flag__Werror_return_type 8361 if eval test \${$cacheid+y} 8362 then : 8363 printf %s "(cached) " >&6 8364 else $as_nop 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366 /* end confdefs.h. */ 8367 int i; 8368 int 8369 main (void) 8370 { 8371 8372 ; 8373 return 0; 8374 } 8375 _ACEOF 8376 if ac_fn_c_try_link "$LINENO" 8377 then : 8378 eval $cacheid=yes 8379 else $as_nop 8380 eval $cacheid=no 8381 fi 8382 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8383 conftest$ac_exeext conftest.$ac_ext 8384 fi 8385 8386 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388 8389 eval supported=\$$cacheid 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8391 printf "%s\n" "$supported" >&6; } 8392 if test "$supported" = "yes" ; then 8393 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8394 found="yes" 8395 fi 8396 fi 8397 8398 if test $found = "no" ; then 8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 fi 8402 8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8405 fi 8406 8407 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8408 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8410 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8411 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8412 if eval test \${$cacheid+y} 8413 then : 8414 printf %s "(cached) " >&6 8415 else $as_nop 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417 /* end confdefs.h. */ 8418 int i; 8419 int 8420 main (void) 8421 { 8422 8423 ; 8424 return 0; 8425 } 8426 _ACEOF 8427 if ac_fn_c_try_link "$LINENO" 8428 then : 8429 eval $cacheid=yes 8430 else $as_nop 8431 eval $cacheid=no 8432 fi 8433 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8434 conftest$ac_exeext conftest.$ac_ext 8435 fi 8436 8437 8438 CFLAGS="$xorg_testset_save_CFLAGS" 8439 8440 eval supported=\$$cacheid 8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8442 printf "%s\n" "$supported" >&6; } 8443 if test "$supported" = "yes" ; then 8444 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8445 found="yes" 8446 fi 8447 fi 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 xorg_testset_save_CFLAGS="$CFLAGS" 8464 8465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8468 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8469 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8470 then : 8471 printf %s "(cached) " >&6 8472 else $as_nop 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474 /* end confdefs.h. */ 8475 int i; 8476 _ACEOF 8477 if ac_fn_c_try_compile "$LINENO" 8478 then : 8479 xorg_cv_cc_flag_unknown_warning_option=yes 8480 else $as_nop 8481 xorg_cv_cc_flag_unknown_warning_option=no 8482 fi 8483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8484 fi 8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489 fi 8490 8491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8499 then : 8500 printf %s "(cached) " >&6 8501 else $as_nop 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503 /* end confdefs.h. */ 8504 int i; 8505 _ACEOF 8506 if ac_fn_c_try_compile "$LINENO" 8507 then : 8508 xorg_cv_cc_flag_unused_command_line_argument=yes 8509 else $as_nop 8510 xorg_cv_cc_flag_unused_command_line_argument=no 8511 fi 8512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8513 fi 8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518 fi 8519 8520 found="no" 8521 8522 if test $found = "no" ; then 8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 fi 8526 8527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 fi 8530 8531 CFLAGS="$CFLAGS -Werror=trigraphs" 8532 8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8534 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8535 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8536 if eval test \${$cacheid+y} 8537 then : 8538 printf %s "(cached) " >&6 8539 else $as_nop 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541 /* end confdefs.h. */ 8542 int i; 8543 int 8544 main (void) 8545 { 8546 8547 ; 8548 return 0; 8549 } 8550 _ACEOF 8551 if ac_fn_c_try_link "$LINENO" 8552 then : 8553 eval $cacheid=yes 8554 else $as_nop 8555 eval $cacheid=no 8556 fi 8557 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8558 conftest$ac_exeext conftest.$ac_ext 8559 fi 8560 8561 8562 CFLAGS="$xorg_testset_save_CFLAGS" 8563 8564 eval supported=\$$cacheid 8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8566 printf "%s\n" "$supported" >&6; } 8567 if test "$supported" = "yes" ; then 8568 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8569 found="yes" 8570 fi 8571 fi 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 xorg_testset_save_CFLAGS="$CFLAGS" 8588 8589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8593 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8594 then : 8595 printf %s "(cached) " >&6 8596 else $as_nop 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598 /* end confdefs.h. */ 8599 int i; 8600 _ACEOF 8601 if ac_fn_c_try_compile "$LINENO" 8602 then : 8603 xorg_cv_cc_flag_unknown_warning_option=yes 8604 else $as_nop 8605 xorg_cv_cc_flag_unknown_warning_option=no 8606 fi 8607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8608 fi 8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8612 CFLAGS="$xorg_testset_save_CFLAGS" 8613 fi 8614 8615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 fi 8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8623 then : 8624 printf %s "(cached) " >&6 8625 else $as_nop 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627 /* end confdefs.h. */ 8628 int i; 8629 _ACEOF 8630 if ac_fn_c_try_compile "$LINENO" 8631 then : 8632 xorg_cv_cc_flag_unused_command_line_argument=yes 8633 else $as_nop 8634 xorg_cv_cc_flag_unused_command_line_argument=no 8635 fi 8636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8637 fi 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8641 CFLAGS="$xorg_testset_save_CFLAGS" 8642 fi 8643 8644 found="no" 8645 8646 if test $found = "no" ; then 8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8649 fi 8650 8651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8653 fi 8654 8655 CFLAGS="$CFLAGS -Werror=array-bounds" 8656 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8658 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8659 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8660 if eval test \${$cacheid+y} 8661 then : 8662 printf %s "(cached) " >&6 8663 else $as_nop 8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665 /* end confdefs.h. */ 8666 int i; 8667 int 8668 main (void) 8669 { 8670 8671 ; 8672 return 0; 8673 } 8674 _ACEOF 8675 if ac_fn_c_try_link "$LINENO" 8676 then : 8677 eval $cacheid=yes 8678 else $as_nop 8679 eval $cacheid=no 8680 fi 8681 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8682 conftest$ac_exeext conftest.$ac_ext 8683 fi 8684 8685 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687 8688 eval supported=\$$cacheid 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8690 printf "%s\n" "$supported" >&6; } 8691 if test "$supported" = "yes" ; then 8692 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8693 found="yes" 8694 fi 8695 fi 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 xorg_testset_save_CFLAGS="$CFLAGS" 8712 8713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8716 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8717 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8718 then : 8719 printf %s "(cached) " >&6 8720 else $as_nop 8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722 /* end confdefs.h. */ 8723 int i; 8724 _ACEOF 8725 if ac_fn_c_try_compile "$LINENO" 8726 then : 8727 xorg_cv_cc_flag_unknown_warning_option=yes 8728 else $as_nop 8729 xorg_cv_cc_flag_unknown_warning_option=no 8730 fi 8731 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8732 fi 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8734 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8736 CFLAGS="$xorg_testset_save_CFLAGS" 8737 fi 8738 8739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8742 fi 8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8745 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8746 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8747 then : 8748 printf %s "(cached) " >&6 8749 else $as_nop 8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8751 /* end confdefs.h. */ 8752 int i; 8753 _ACEOF 8754 if ac_fn_c_try_compile "$LINENO" 8755 then : 8756 xorg_cv_cc_flag_unused_command_line_argument=yes 8757 else $as_nop 8758 xorg_cv_cc_flag_unused_command_line_argument=no 8759 fi 8760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8761 fi 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8763 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8765 CFLAGS="$xorg_testset_save_CFLAGS" 8766 fi 8767 8768 found="no" 8769 8770 if test $found = "no" ; then 8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773 fi 8774 8775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8777 fi 8778 8779 CFLAGS="$CFLAGS -Werror=write-strings" 8780 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8782 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8783 cacheid=xorg_cv_cc_flag__Werror_write_strings 8784 if eval test \${$cacheid+y} 8785 then : 8786 printf %s "(cached) " >&6 8787 else $as_nop 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789 /* end confdefs.h. */ 8790 int i; 8791 int 8792 main (void) 8793 { 8794 8795 ; 8796 return 0; 8797 } 8798 _ACEOF 8799 if ac_fn_c_try_link "$LINENO" 8800 then : 8801 eval $cacheid=yes 8802 else $as_nop 8803 eval $cacheid=no 8804 fi 8805 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8806 conftest$ac_exeext conftest.$ac_ext 8807 fi 8808 8809 8810 CFLAGS="$xorg_testset_save_CFLAGS" 8811 8812 eval supported=\$$cacheid 8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8814 printf "%s\n" "$supported" >&6; } 8815 if test "$supported" = "yes" ; then 8816 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8817 found="yes" 8818 fi 8819 fi 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 xorg_testset_save_CFLAGS="$CFLAGS" 8836 8837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8841 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8842 then : 8843 printf %s "(cached) " >&6 8844 else $as_nop 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846 /* end confdefs.h. */ 8847 int i; 8848 _ACEOF 8849 if ac_fn_c_try_compile "$LINENO" 8850 then : 8851 xorg_cv_cc_flag_unknown_warning_option=yes 8852 else $as_nop 8853 xorg_cv_cc_flag_unknown_warning_option=no 8854 fi 8855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8856 fi 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8858 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861 fi 8862 8863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8869 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8870 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8871 then : 8872 printf %s "(cached) " >&6 8873 else $as_nop 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875 /* end confdefs.h. */ 8876 int i; 8877 _ACEOF 8878 if ac_fn_c_try_compile "$LINENO" 8879 then : 8880 xorg_cv_cc_flag_unused_command_line_argument=yes 8881 else $as_nop 8882 xorg_cv_cc_flag_unused_command_line_argument=no 8883 fi 8884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8885 fi 8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890 fi 8891 8892 found="no" 8893 8894 if test $found = "no" ; then 8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 fi 8898 8899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 fi 8902 8903 CFLAGS="$CFLAGS -Werror=address" 8904 8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8906 printf %s "checking if $CC supports -Werror=address... " >&6; } 8907 cacheid=xorg_cv_cc_flag__Werror_address 8908 if eval test \${$cacheid+y} 8909 then : 8910 printf %s "(cached) " >&6 8911 else $as_nop 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913 /* end confdefs.h. */ 8914 int i; 8915 int 8916 main (void) 8917 { 8918 8919 ; 8920 return 0; 8921 } 8922 _ACEOF 8923 if ac_fn_c_try_link "$LINENO" 8924 then : 8925 eval $cacheid=yes 8926 else $as_nop 8927 eval $cacheid=no 8928 fi 8929 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8930 conftest$ac_exeext conftest.$ac_ext 8931 fi 8932 8933 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935 8936 eval supported=\$$cacheid 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8938 printf "%s\n" "$supported" >&6; } 8939 if test "$supported" = "yes" ; then 8940 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8941 found="yes" 8942 fi 8943 fi 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 xorg_testset_save_CFLAGS="$CFLAGS" 8960 8961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8965 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8966 then : 8967 printf %s "(cached) " >&6 8968 else $as_nop 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970 /* end confdefs.h. */ 8971 int i; 8972 _ACEOF 8973 if ac_fn_c_try_compile "$LINENO" 8974 then : 8975 xorg_cv_cc_flag_unknown_warning_option=yes 8976 else $as_nop 8977 xorg_cv_cc_flag_unknown_warning_option=no 8978 fi 8979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8980 fi 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985 fi 8986 8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8995 then : 8996 printf %s "(cached) " >&6 8997 else $as_nop 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999 /* end confdefs.h. */ 9000 int i; 9001 _ACEOF 9002 if ac_fn_c_try_compile "$LINENO" 9003 then : 9004 xorg_cv_cc_flag_unused_command_line_argument=yes 9005 else $as_nop 9006 xorg_cv_cc_flag_unused_command_line_argument=no 9007 fi 9008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9009 fi 9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014 fi 9015 9016 found="no" 9017 9018 if test $found = "no" ; then 9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9021 fi 9022 9023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 fi 9026 9027 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9028 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9030 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9031 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9032 if eval test \${$cacheid+y} 9033 then : 9034 printf %s "(cached) " >&6 9035 else $as_nop 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037 /* end confdefs.h. */ 9038 int i; 9039 int 9040 main (void) 9041 { 9042 9043 ; 9044 return 0; 9045 } 9046 _ACEOF 9047 if ac_fn_c_try_link "$LINENO" 9048 then : 9049 eval $cacheid=yes 9050 else $as_nop 9051 eval $cacheid=no 9052 fi 9053 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9054 conftest$ac_exeext conftest.$ac_ext 9055 fi 9056 9057 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059 9060 eval supported=\$$cacheid 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9062 printf "%s\n" "$supported" >&6; } 9063 if test "$supported" = "yes" ; then 9064 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9065 found="yes" 9066 fi 9067 fi 9068 9069 if test $found = "no" ; then 9070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9072 fi 9073 9074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9076 fi 9077 9078 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9079 9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9081 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9082 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9083 if eval test \${$cacheid+y} 9084 then : 9085 printf %s "(cached) " >&6 9086 else $as_nop 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088 /* end confdefs.h. */ 9089 int i; 9090 int 9091 main (void) 9092 { 9093 9094 ; 9095 return 0; 9096 } 9097 _ACEOF 9098 if ac_fn_c_try_link "$LINENO" 9099 then : 9100 eval $cacheid=yes 9101 else $as_nop 9102 eval $cacheid=no 9103 fi 9104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9105 conftest$ac_exeext conftest.$ac_ext 9106 fi 9107 9108 9109 CFLAGS="$xorg_testset_save_CFLAGS" 9110 9111 eval supported=\$$cacheid 9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9113 printf "%s\n" "$supported" >&6; } 9114 if test "$supported" = "yes" ; then 9115 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9116 found="yes" 9117 fi 9118 fi 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 xorg_testset_save_CFLAGS="$CFLAGS" 9135 9136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9139 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9140 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9141 then : 9142 printf %s "(cached) " >&6 9143 else $as_nop 9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9145 /* end confdefs.h. */ 9146 int i; 9147 _ACEOF 9148 if ac_fn_c_try_compile "$LINENO" 9149 then : 9150 xorg_cv_cc_flag_unknown_warning_option=yes 9151 else $as_nop 9152 xorg_cv_cc_flag_unknown_warning_option=no 9153 fi 9154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9155 fi 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9159 CFLAGS="$xorg_testset_save_CFLAGS" 9160 fi 9161 9162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9165 fi 9166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9170 then : 9171 printf %s "(cached) " >&6 9172 else $as_nop 9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9174 /* end confdefs.h. */ 9175 int i; 9176 _ACEOF 9177 if ac_fn_c_try_compile "$LINENO" 9178 then : 9179 xorg_cv_cc_flag_unused_command_line_argument=yes 9180 else $as_nop 9181 xorg_cv_cc_flag_unused_command_line_argument=no 9182 fi 9183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9184 fi 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9188 CFLAGS="$xorg_testset_save_CFLAGS" 9189 fi 9190 9191 found="no" 9192 9193 if test $found = "no" ; then 9194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9196 fi 9197 9198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9200 fi 9201 9202 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9203 9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9205 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9206 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9207 if eval test \${$cacheid+y} 9208 then : 9209 printf %s "(cached) " >&6 9210 else $as_nop 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212 /* end confdefs.h. */ 9213 int i; 9214 int 9215 main (void) 9216 { 9217 9218 ; 9219 return 0; 9220 } 9221 _ACEOF 9222 if ac_fn_c_try_link "$LINENO" 9223 then : 9224 eval $cacheid=yes 9225 else $as_nop 9226 eval $cacheid=no 9227 fi 9228 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9229 conftest$ac_exeext conftest.$ac_ext 9230 fi 9231 9232 9233 CFLAGS="$xorg_testset_save_CFLAGS" 9234 9235 eval supported=\$$cacheid 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9237 printf "%s\n" "$supported" >&6; } 9238 if test "$supported" = "yes" ; then 9239 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9240 found="yes" 9241 fi 9242 fi 9243 9244 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9245 else 9246 { 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 9247 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;} 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 xorg_testset_save_CFLAGS="$CFLAGS" 9262 9263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9267 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9268 then : 9269 printf %s "(cached) " >&6 9270 else $as_nop 9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9272 /* end confdefs.h. */ 9273 int i; 9274 _ACEOF 9275 if ac_fn_c_try_compile "$LINENO" 9276 then : 9277 xorg_cv_cc_flag_unknown_warning_option=yes 9278 else $as_nop 9279 xorg_cv_cc_flag_unknown_warning_option=no 9280 fi 9281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9282 fi 9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9284 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287 fi 9288 9289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9292 fi 9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9295 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9296 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9297 then : 9298 printf %s "(cached) " >&6 9299 else $as_nop 9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9301 /* end confdefs.h. */ 9302 int i; 9303 _ACEOF 9304 if ac_fn_c_try_compile "$LINENO" 9305 then : 9306 xorg_cv_cc_flag_unused_command_line_argument=yes 9307 else $as_nop 9308 xorg_cv_cc_flag_unused_command_line_argument=no 9309 fi 9310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9311 fi 9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9313 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316 fi 9317 9318 found="no" 9319 9320 if test $found = "no" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 9325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 fi 9328 9329 CFLAGS="$CFLAGS -Wimplicit" 9330 9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9332 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9333 cacheid=xorg_cv_cc_flag__Wimplicit 9334 if eval test \${$cacheid+y} 9335 then : 9336 printf %s "(cached) " >&6 9337 else $as_nop 9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9339 /* end confdefs.h. */ 9340 int i; 9341 int 9342 main (void) 9343 { 9344 9345 ; 9346 return 0; 9347 } 9348 _ACEOF 9349 if ac_fn_c_try_link "$LINENO" 9350 then : 9351 eval $cacheid=yes 9352 else $as_nop 9353 eval $cacheid=no 9354 fi 9355 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9356 conftest$ac_exeext conftest.$ac_ext 9357 fi 9358 9359 9360 CFLAGS="$xorg_testset_save_CFLAGS" 9361 9362 eval supported=\$$cacheid 9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9364 printf "%s\n" "$supported" >&6; } 9365 if test "$supported" = "yes" ; then 9366 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9367 found="yes" 9368 fi 9369 fi 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 xorg_testset_save_CFLAGS="$CFLAGS" 9386 9387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9391 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9392 then : 9393 printf %s "(cached) " >&6 9394 else $as_nop 9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9396 /* end confdefs.h. */ 9397 int i; 9398 _ACEOF 9399 if ac_fn_c_try_compile "$LINENO" 9400 then : 9401 xorg_cv_cc_flag_unknown_warning_option=yes 9402 else $as_nop 9403 xorg_cv_cc_flag_unknown_warning_option=no 9404 fi 9405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9406 fi 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411 fi 9412 9413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9416 fi 9417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9421 then : 9422 printf %s "(cached) " >&6 9423 else $as_nop 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425 /* end confdefs.h. */ 9426 int i; 9427 _ACEOF 9428 if ac_fn_c_try_compile "$LINENO" 9429 then : 9430 xorg_cv_cc_flag_unused_command_line_argument=yes 9431 else $as_nop 9432 xorg_cv_cc_flag_unused_command_line_argument=no 9433 fi 9434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9435 fi 9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9439 CFLAGS="$xorg_testset_save_CFLAGS" 9440 fi 9441 9442 found="no" 9443 9444 if test $found = "no" ; then 9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447 fi 9448 9449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9451 fi 9452 9453 CFLAGS="$CFLAGS -Wnonnull" 9454 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9456 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9457 cacheid=xorg_cv_cc_flag__Wnonnull 9458 if eval test \${$cacheid+y} 9459 then : 9460 printf %s "(cached) " >&6 9461 else $as_nop 9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9463 /* end confdefs.h. */ 9464 int i; 9465 int 9466 main (void) 9467 { 9468 9469 ; 9470 return 0; 9471 } 9472 _ACEOF 9473 if ac_fn_c_try_link "$LINENO" 9474 then : 9475 eval $cacheid=yes 9476 else $as_nop 9477 eval $cacheid=no 9478 fi 9479 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9480 conftest$ac_exeext conftest.$ac_ext 9481 fi 9482 9483 9484 CFLAGS="$xorg_testset_save_CFLAGS" 9485 9486 eval supported=\$$cacheid 9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9488 printf "%s\n" "$supported" >&6; } 9489 if test "$supported" = "yes" ; then 9490 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9491 found="yes" 9492 fi 9493 fi 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 xorg_testset_save_CFLAGS="$CFLAGS" 9510 9511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9515 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9516 then : 9517 printf %s "(cached) " >&6 9518 else $as_nop 9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520 /* end confdefs.h. */ 9521 int i; 9522 _ACEOF 9523 if ac_fn_c_try_compile "$LINENO" 9524 then : 9525 xorg_cv_cc_flag_unknown_warning_option=yes 9526 else $as_nop 9527 xorg_cv_cc_flag_unknown_warning_option=no 9528 fi 9529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9530 fi 9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9532 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535 fi 9536 9537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9540 fi 9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9545 then : 9546 printf %s "(cached) " >&6 9547 else $as_nop 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549 /* end confdefs.h. */ 9550 int i; 9551 _ACEOF 9552 if ac_fn_c_try_compile "$LINENO" 9553 then : 9554 xorg_cv_cc_flag_unused_command_line_argument=yes 9555 else $as_nop 9556 xorg_cv_cc_flag_unused_command_line_argument=no 9557 fi 9558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9559 fi 9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9563 CFLAGS="$xorg_testset_save_CFLAGS" 9564 fi 9565 9566 found="no" 9567 9568 if test $found = "no" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 9573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9575 fi 9576 9577 CFLAGS="$CFLAGS -Winit-self" 9578 9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9580 printf %s "checking if $CC supports -Winit-self... " >&6; } 9581 cacheid=xorg_cv_cc_flag__Winit_self 9582 if eval test \${$cacheid+y} 9583 then : 9584 printf %s "(cached) " >&6 9585 else $as_nop 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587 /* end confdefs.h. */ 9588 int i; 9589 int 9590 main (void) 9591 { 9592 9593 ; 9594 return 0; 9595 } 9596 _ACEOF 9597 if ac_fn_c_try_link "$LINENO" 9598 then : 9599 eval $cacheid=yes 9600 else $as_nop 9601 eval $cacheid=no 9602 fi 9603 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9604 conftest$ac_exeext conftest.$ac_ext 9605 fi 9606 9607 9608 CFLAGS="$xorg_testset_save_CFLAGS" 9609 9610 eval supported=\$$cacheid 9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9612 printf "%s\n" "$supported" >&6; } 9613 if test "$supported" = "yes" ; then 9614 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9615 found="yes" 9616 fi 9617 fi 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 xorg_testset_save_CFLAGS="$CFLAGS" 9634 9635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9639 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9640 then : 9641 printf %s "(cached) " >&6 9642 else $as_nop 9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9644 /* end confdefs.h. */ 9645 int i; 9646 _ACEOF 9647 if ac_fn_c_try_compile "$LINENO" 9648 then : 9649 xorg_cv_cc_flag_unknown_warning_option=yes 9650 else $as_nop 9651 xorg_cv_cc_flag_unknown_warning_option=no 9652 fi 9653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9654 fi 9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9656 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9658 CFLAGS="$xorg_testset_save_CFLAGS" 9659 fi 9660 9661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9667 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9668 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9669 then : 9670 printf %s "(cached) " >&6 9671 else $as_nop 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673 /* end confdefs.h. */ 9674 int i; 9675 _ACEOF 9676 if ac_fn_c_try_compile "$LINENO" 9677 then : 9678 xorg_cv_cc_flag_unused_command_line_argument=yes 9679 else $as_nop 9680 xorg_cv_cc_flag_unused_command_line_argument=no 9681 fi 9682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9683 fi 9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9687 CFLAGS="$xorg_testset_save_CFLAGS" 9688 fi 9689 9690 found="no" 9691 9692 if test $found = "no" ; then 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 fi 9696 9697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9699 fi 9700 9701 CFLAGS="$CFLAGS -Wmain" 9702 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9704 printf %s "checking if $CC supports -Wmain... " >&6; } 9705 cacheid=xorg_cv_cc_flag__Wmain 9706 if eval test \${$cacheid+y} 9707 then : 9708 printf %s "(cached) " >&6 9709 else $as_nop 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711 /* end confdefs.h. */ 9712 int i; 9713 int 9714 main (void) 9715 { 9716 9717 ; 9718 return 0; 9719 } 9720 _ACEOF 9721 if ac_fn_c_try_link "$LINENO" 9722 then : 9723 eval $cacheid=yes 9724 else $as_nop 9725 eval $cacheid=no 9726 fi 9727 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9728 conftest$ac_exeext conftest.$ac_ext 9729 fi 9730 9731 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733 9734 eval supported=\$$cacheid 9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9736 printf "%s\n" "$supported" >&6; } 9737 if test "$supported" = "yes" ; then 9738 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9739 found="yes" 9740 fi 9741 fi 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 xorg_testset_save_CFLAGS="$CFLAGS" 9758 9759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9762 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9763 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9764 then : 9765 printf %s "(cached) " >&6 9766 else $as_nop 9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768 /* end confdefs.h. */ 9769 int i; 9770 _ACEOF 9771 if ac_fn_c_try_compile "$LINENO" 9772 then : 9773 xorg_cv_cc_flag_unknown_warning_option=yes 9774 else $as_nop 9775 xorg_cv_cc_flag_unknown_warning_option=no 9776 fi 9777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9778 fi 9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783 fi 9784 9785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9793 then : 9794 printf %s "(cached) " >&6 9795 else $as_nop 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797 /* end confdefs.h. */ 9798 int i; 9799 _ACEOF 9800 if ac_fn_c_try_compile "$LINENO" 9801 then : 9802 xorg_cv_cc_flag_unused_command_line_argument=yes 9803 else $as_nop 9804 xorg_cv_cc_flag_unused_command_line_argument=no 9805 fi 9806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9807 fi 9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812 fi 9813 9814 found="no" 9815 9816 if test $found = "no" ; then 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 fi 9820 9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9823 fi 9824 9825 CFLAGS="$CFLAGS -Wmissing-braces" 9826 9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9828 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9829 cacheid=xorg_cv_cc_flag__Wmissing_braces 9830 if eval test \${$cacheid+y} 9831 then : 9832 printf %s "(cached) " >&6 9833 else $as_nop 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835 /* end confdefs.h. */ 9836 int i; 9837 int 9838 main (void) 9839 { 9840 9841 ; 9842 return 0; 9843 } 9844 _ACEOF 9845 if ac_fn_c_try_link "$LINENO" 9846 then : 9847 eval $cacheid=yes 9848 else $as_nop 9849 eval $cacheid=no 9850 fi 9851 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9852 conftest$ac_exeext conftest.$ac_ext 9853 fi 9854 9855 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857 9858 eval supported=\$$cacheid 9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9860 printf "%s\n" "$supported" >&6; } 9861 if test "$supported" = "yes" ; then 9862 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9863 found="yes" 9864 fi 9865 fi 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 xorg_testset_save_CFLAGS="$CFLAGS" 9882 9883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9887 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9888 then : 9889 printf %s "(cached) " >&6 9890 else $as_nop 9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892 /* end confdefs.h. */ 9893 int i; 9894 _ACEOF 9895 if ac_fn_c_try_compile "$LINENO" 9896 then : 9897 xorg_cv_cc_flag_unknown_warning_option=yes 9898 else $as_nop 9899 xorg_cv_cc_flag_unknown_warning_option=no 9900 fi 9901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9902 fi 9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9906 CFLAGS="$xorg_testset_save_CFLAGS" 9907 fi 9908 9909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9912 fi 9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9917 then : 9918 printf %s "(cached) " >&6 9919 else $as_nop 9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921 /* end confdefs.h. */ 9922 int i; 9923 _ACEOF 9924 if ac_fn_c_try_compile "$LINENO" 9925 then : 9926 xorg_cv_cc_flag_unused_command_line_argument=yes 9927 else $as_nop 9928 xorg_cv_cc_flag_unused_command_line_argument=no 9929 fi 9930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9931 fi 9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9935 CFLAGS="$xorg_testset_save_CFLAGS" 9936 fi 9937 9938 found="no" 9939 9940 if test $found = "no" ; then 9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 fi 9944 9945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9947 fi 9948 9949 CFLAGS="$CFLAGS -Wsequence-point" 9950 9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9952 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9953 cacheid=xorg_cv_cc_flag__Wsequence_point 9954 if eval test \${$cacheid+y} 9955 then : 9956 printf %s "(cached) " >&6 9957 else $as_nop 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959 /* end confdefs.h. */ 9960 int i; 9961 int 9962 main (void) 9963 { 9964 9965 ; 9966 return 0; 9967 } 9968 _ACEOF 9969 if ac_fn_c_try_link "$LINENO" 9970 then : 9971 eval $cacheid=yes 9972 else $as_nop 9973 eval $cacheid=no 9974 fi 9975 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9976 conftest$ac_exeext conftest.$ac_ext 9977 fi 9978 9979 9980 CFLAGS="$xorg_testset_save_CFLAGS" 9981 9982 eval supported=\$$cacheid 9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9984 printf "%s\n" "$supported" >&6; } 9985 if test "$supported" = "yes" ; then 9986 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9987 found="yes" 9988 fi 9989 fi 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 xorg_testset_save_CFLAGS="$CFLAGS" 10006 10007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10011 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10012 then : 10013 printf %s "(cached) " >&6 10014 else $as_nop 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016 /* end confdefs.h. */ 10017 int i; 10018 _ACEOF 10019 if ac_fn_c_try_compile "$LINENO" 10020 then : 10021 xorg_cv_cc_flag_unknown_warning_option=yes 10022 else $as_nop 10023 xorg_cv_cc_flag_unknown_warning_option=no 10024 fi 10025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10026 fi 10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10030 CFLAGS="$xorg_testset_save_CFLAGS" 10031 fi 10032 10033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10036 fi 10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10041 then : 10042 printf %s "(cached) " >&6 10043 else $as_nop 10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10045 /* end confdefs.h. */ 10046 int i; 10047 _ACEOF 10048 if ac_fn_c_try_compile "$LINENO" 10049 then : 10050 xorg_cv_cc_flag_unused_command_line_argument=yes 10051 else $as_nop 10052 xorg_cv_cc_flag_unused_command_line_argument=no 10053 fi 10054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10055 fi 10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10059 CFLAGS="$xorg_testset_save_CFLAGS" 10060 fi 10061 10062 found="no" 10063 10064 if test $found = "no" ; then 10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 fi 10068 10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10071 fi 10072 10073 CFLAGS="$CFLAGS -Wreturn-type" 10074 10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10076 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10077 cacheid=xorg_cv_cc_flag__Wreturn_type 10078 if eval test \${$cacheid+y} 10079 then : 10080 printf %s "(cached) " >&6 10081 else $as_nop 10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10083 /* end confdefs.h. */ 10084 int i; 10085 int 10086 main (void) 10087 { 10088 10089 ; 10090 return 0; 10091 } 10092 _ACEOF 10093 if ac_fn_c_try_link "$LINENO" 10094 then : 10095 eval $cacheid=yes 10096 else $as_nop 10097 eval $cacheid=no 10098 fi 10099 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10100 conftest$ac_exeext conftest.$ac_ext 10101 fi 10102 10103 10104 CFLAGS="$xorg_testset_save_CFLAGS" 10105 10106 eval supported=\$$cacheid 10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10108 printf "%s\n" "$supported" >&6; } 10109 if test "$supported" = "yes" ; then 10110 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10111 found="yes" 10112 fi 10113 fi 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 xorg_testset_save_CFLAGS="$CFLAGS" 10130 10131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10134 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10135 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10136 then : 10137 printf %s "(cached) " >&6 10138 else $as_nop 10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140 /* end confdefs.h. */ 10141 int i; 10142 _ACEOF 10143 if ac_fn_c_try_compile "$LINENO" 10144 then : 10145 xorg_cv_cc_flag_unknown_warning_option=yes 10146 else $as_nop 10147 xorg_cv_cc_flag_unknown_warning_option=no 10148 fi 10149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10150 fi 10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10152 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10154 CFLAGS="$xorg_testset_save_CFLAGS" 10155 fi 10156 10157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10160 fi 10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10163 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10164 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10165 then : 10166 printf %s "(cached) " >&6 10167 else $as_nop 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169 /* end confdefs.h. */ 10170 int i; 10171 _ACEOF 10172 if ac_fn_c_try_compile "$LINENO" 10173 then : 10174 xorg_cv_cc_flag_unused_command_line_argument=yes 10175 else $as_nop 10176 xorg_cv_cc_flag_unused_command_line_argument=no 10177 fi 10178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10179 fi 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10181 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184 fi 10185 10186 found="no" 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -Wtrigraphs" 10198 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10200 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10201 cacheid=xorg_cv_cc_flag__Wtrigraphs 10202 if eval test \${$cacheid+y} 10203 then : 10204 printf %s "(cached) " >&6 10205 else $as_nop 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207 /* end confdefs.h. */ 10208 int i; 10209 int 10210 main (void) 10211 { 10212 10213 ; 10214 return 0; 10215 } 10216 _ACEOF 10217 if ac_fn_c_try_link "$LINENO" 10218 then : 10219 eval $cacheid=yes 10220 else $as_nop 10221 eval $cacheid=no 10222 fi 10223 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10224 conftest$ac_exeext conftest.$ac_ext 10225 fi 10226 10227 10228 CFLAGS="$xorg_testset_save_CFLAGS" 10229 10230 eval supported=\$$cacheid 10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10232 printf "%s\n" "$supported" >&6; } 10233 if test "$supported" = "yes" ; then 10234 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10235 found="yes" 10236 fi 10237 fi 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 xorg_testset_save_CFLAGS="$CFLAGS" 10254 10255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10259 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10260 then : 10261 printf %s "(cached) " >&6 10262 else $as_nop 10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10264 /* end confdefs.h. */ 10265 int i; 10266 _ACEOF 10267 if ac_fn_c_try_compile "$LINENO" 10268 then : 10269 xorg_cv_cc_flag_unknown_warning_option=yes 10270 else $as_nop 10271 xorg_cv_cc_flag_unknown_warning_option=no 10272 fi 10273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10274 fi 10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10278 CFLAGS="$xorg_testset_save_CFLAGS" 10279 fi 10280 10281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10284 fi 10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10289 then : 10290 printf %s "(cached) " >&6 10291 else $as_nop 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293 /* end confdefs.h. */ 10294 int i; 10295 _ACEOF 10296 if ac_fn_c_try_compile "$LINENO" 10297 then : 10298 xorg_cv_cc_flag_unused_command_line_argument=yes 10299 else $as_nop 10300 xorg_cv_cc_flag_unused_command_line_argument=no 10301 fi 10302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10303 fi 10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 fi 10309 10310 found="no" 10311 10312 if test $found = "no" ; then 10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10315 fi 10316 10317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10319 fi 10320 10321 CFLAGS="$CFLAGS -Warray-bounds" 10322 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10324 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10325 cacheid=xorg_cv_cc_flag__Warray_bounds 10326 if eval test \${$cacheid+y} 10327 then : 10328 printf %s "(cached) " >&6 10329 else $as_nop 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331 /* end confdefs.h. */ 10332 int i; 10333 int 10334 main (void) 10335 { 10336 10337 ; 10338 return 0; 10339 } 10340 _ACEOF 10341 if ac_fn_c_try_link "$LINENO" 10342 then : 10343 eval $cacheid=yes 10344 else $as_nop 10345 eval $cacheid=no 10346 fi 10347 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10348 conftest$ac_exeext conftest.$ac_ext 10349 fi 10350 10351 10352 CFLAGS="$xorg_testset_save_CFLAGS" 10353 10354 eval supported=\$$cacheid 10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10356 printf "%s\n" "$supported" >&6; } 10357 if test "$supported" = "yes" ; then 10358 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10359 found="yes" 10360 fi 10361 fi 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 xorg_testset_save_CFLAGS="$CFLAGS" 10378 10379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10383 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10384 then : 10385 printf %s "(cached) " >&6 10386 else $as_nop 10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10388 /* end confdefs.h. */ 10389 int i; 10390 _ACEOF 10391 if ac_fn_c_try_compile "$LINENO" 10392 then : 10393 xorg_cv_cc_flag_unknown_warning_option=yes 10394 else $as_nop 10395 xorg_cv_cc_flag_unknown_warning_option=no 10396 fi 10397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10398 fi 10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10402 CFLAGS="$xorg_testset_save_CFLAGS" 10403 fi 10404 10405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10408 fi 10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10413 then : 10414 printf %s "(cached) " >&6 10415 else $as_nop 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417 /* end confdefs.h. */ 10418 int i; 10419 _ACEOF 10420 if ac_fn_c_try_compile "$LINENO" 10421 then : 10422 xorg_cv_cc_flag_unused_command_line_argument=yes 10423 else $as_nop 10424 xorg_cv_cc_flag_unused_command_line_argument=no 10425 fi 10426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10427 fi 10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10431 CFLAGS="$xorg_testset_save_CFLAGS" 10432 fi 10433 10434 found="no" 10435 10436 if test $found = "no" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 10441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10443 fi 10444 10445 CFLAGS="$CFLAGS -Wwrite-strings" 10446 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10448 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10449 cacheid=xorg_cv_cc_flag__Wwrite_strings 10450 if eval test \${$cacheid+y} 10451 then : 10452 printf %s "(cached) " >&6 10453 else $as_nop 10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10455 /* end confdefs.h. */ 10456 int i; 10457 int 10458 main (void) 10459 { 10460 10461 ; 10462 return 0; 10463 } 10464 _ACEOF 10465 if ac_fn_c_try_link "$LINENO" 10466 then : 10467 eval $cacheid=yes 10468 else $as_nop 10469 eval $cacheid=no 10470 fi 10471 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10472 conftest$ac_exeext conftest.$ac_ext 10473 fi 10474 10475 10476 CFLAGS="$xorg_testset_save_CFLAGS" 10477 10478 eval supported=\$$cacheid 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10480 printf "%s\n" "$supported" >&6; } 10481 if test "$supported" = "yes" ; then 10482 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10483 found="yes" 10484 fi 10485 fi 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 xorg_testset_save_CFLAGS="$CFLAGS" 10502 10503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10507 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10508 then : 10509 printf %s "(cached) " >&6 10510 else $as_nop 10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10512 /* end confdefs.h. */ 10513 int i; 10514 _ACEOF 10515 if ac_fn_c_try_compile "$LINENO" 10516 then : 10517 xorg_cv_cc_flag_unknown_warning_option=yes 10518 else $as_nop 10519 xorg_cv_cc_flag_unknown_warning_option=no 10520 fi 10521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10522 fi 10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10524 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10526 CFLAGS="$xorg_testset_save_CFLAGS" 10527 fi 10528 10529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 fi 10533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10537 then : 10538 printf %s "(cached) " >&6 10539 else $as_nop 10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10541 /* end confdefs.h. */ 10542 int i; 10543 _ACEOF 10544 if ac_fn_c_try_compile "$LINENO" 10545 then : 10546 xorg_cv_cc_flag_unused_command_line_argument=yes 10547 else $as_nop 10548 xorg_cv_cc_flag_unused_command_line_argument=no 10549 fi 10550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10551 fi 10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10553 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10555 CFLAGS="$xorg_testset_save_CFLAGS" 10556 fi 10557 10558 found="no" 10559 10560 if test $found = "no" ; then 10561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10563 fi 10564 10565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10567 fi 10568 10569 CFLAGS="$CFLAGS -Waddress" 10570 10571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10572 printf %s "checking if $CC supports -Waddress... " >&6; } 10573 cacheid=xorg_cv_cc_flag__Waddress 10574 if eval test \${$cacheid+y} 10575 then : 10576 printf %s "(cached) " >&6 10577 else $as_nop 10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10579 /* end confdefs.h. */ 10580 int i; 10581 int 10582 main (void) 10583 { 10584 10585 ; 10586 return 0; 10587 } 10588 _ACEOF 10589 if ac_fn_c_try_link "$LINENO" 10590 then : 10591 eval $cacheid=yes 10592 else $as_nop 10593 eval $cacheid=no 10594 fi 10595 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10596 conftest$ac_exeext conftest.$ac_ext 10597 fi 10598 10599 10600 CFLAGS="$xorg_testset_save_CFLAGS" 10601 10602 eval supported=\$$cacheid 10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10604 printf "%s\n" "$supported" >&6; } 10605 if test "$supported" = "yes" ; then 10606 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10607 found="yes" 10608 fi 10609 fi 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 xorg_testset_save_CFLAGS="$CFLAGS" 10626 10627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10631 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10632 then : 10633 printf %s "(cached) " >&6 10634 else $as_nop 10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10636 /* end confdefs.h. */ 10637 int i; 10638 _ACEOF 10639 if ac_fn_c_try_compile "$LINENO" 10640 then : 10641 xorg_cv_cc_flag_unknown_warning_option=yes 10642 else $as_nop 10643 xorg_cv_cc_flag_unknown_warning_option=no 10644 fi 10645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10646 fi 10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651 fi 10652 10653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 fi 10657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10661 then : 10662 printf %s "(cached) " >&6 10663 else $as_nop 10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10665 /* end confdefs.h. */ 10666 int i; 10667 _ACEOF 10668 if ac_fn_c_try_compile "$LINENO" 10669 then : 10670 xorg_cv_cc_flag_unused_command_line_argument=yes 10671 else $as_nop 10672 xorg_cv_cc_flag_unused_command_line_argument=no 10673 fi 10674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10675 fi 10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10679 CFLAGS="$xorg_testset_save_CFLAGS" 10680 fi 10681 10682 found="no" 10683 10684 if test $found = "no" ; then 10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10687 fi 10688 10689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10691 fi 10692 10693 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10694 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10696 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10697 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10698 if eval test \${$cacheid+y} 10699 then : 10700 printf %s "(cached) " >&6 10701 else $as_nop 10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703 /* end confdefs.h. */ 10704 int i; 10705 int 10706 main (void) 10707 { 10708 10709 ; 10710 return 0; 10711 } 10712 _ACEOF 10713 if ac_fn_c_try_link "$LINENO" 10714 then : 10715 eval $cacheid=yes 10716 else $as_nop 10717 eval $cacheid=no 10718 fi 10719 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10720 conftest$ac_exeext conftest.$ac_ext 10721 fi 10722 10723 10724 CFLAGS="$xorg_testset_save_CFLAGS" 10725 10726 eval supported=\$$cacheid 10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10728 printf "%s\n" "$supported" >&6; } 10729 if test "$supported" = "yes" ; then 10730 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10731 found="yes" 10732 fi 10733 fi 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 xorg_testset_save_CFLAGS="$CFLAGS" 10750 10751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10755 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10756 then : 10757 printf %s "(cached) " >&6 10758 else $as_nop 10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760 /* end confdefs.h. */ 10761 int i; 10762 _ACEOF 10763 if ac_fn_c_try_compile "$LINENO" 10764 then : 10765 xorg_cv_cc_flag_unknown_warning_option=yes 10766 else $as_nop 10767 xorg_cv_cc_flag_unknown_warning_option=no 10768 fi 10769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10770 fi 10771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10772 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10774 CFLAGS="$xorg_testset_save_CFLAGS" 10775 fi 10776 10777 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10780 fi 10781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10783 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10784 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10785 then : 10786 printf %s "(cached) " >&6 10787 else $as_nop 10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10789 /* end confdefs.h. */ 10790 int i; 10791 _ACEOF 10792 if ac_fn_c_try_compile "$LINENO" 10793 then : 10794 xorg_cv_cc_flag_unused_command_line_argument=yes 10795 else $as_nop 10796 xorg_cv_cc_flag_unused_command_line_argument=no 10797 fi 10798 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10799 fi 10800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10801 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10803 CFLAGS="$xorg_testset_save_CFLAGS" 10804 fi 10805 10806 found="no" 10807 10808 if test $found = "no" ; then 10809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10811 fi 10812 10813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10815 fi 10816 10817 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10818 10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10820 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10821 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10822 if eval test \${$cacheid+y} 10823 then : 10824 printf %s "(cached) " >&6 10825 else $as_nop 10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827 /* end confdefs.h. */ 10828 int i; 10829 int 10830 main (void) 10831 { 10832 10833 ; 10834 return 0; 10835 } 10836 _ACEOF 10837 if ac_fn_c_try_link "$LINENO" 10838 then : 10839 eval $cacheid=yes 10840 else $as_nop 10841 eval $cacheid=no 10842 fi 10843 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10844 conftest$ac_exeext conftest.$ac_ext 10845 fi 10846 10847 10848 CFLAGS="$xorg_testset_save_CFLAGS" 10849 10850 eval supported=\$$cacheid 10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10852 printf "%s\n" "$supported" >&6; } 10853 if test "$supported" = "yes" ; then 10854 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10855 found="yes" 10856 fi 10857 fi 10858 10859 10860 fi 10861 10862 10863 10864 10865 10866 10867 10868 CWARNFLAGS="$BASE_CFLAGS" 10869 if test "x$GCC" = xyes ; then 10870 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10871 fi 10872 10873 10874 10875 10876 10877 10878 10879 10880 # Check whether --enable-strict-compilation was given. 10881 if test ${enable_strict_compilation+y} 10882 then : 10883 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10884 else $as_nop 10885 STRICT_COMPILE=no 10886 fi 10887 10888 10889 10890 10891 10892 10893 STRICT_CFLAGS="" 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 xorg_testset_save_CFLAGS="$CFLAGS" 10908 10909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10912 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10913 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10914 then : 10915 printf %s "(cached) " >&6 10916 else $as_nop 10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918 /* end confdefs.h. */ 10919 int i; 10920 _ACEOF 10921 if ac_fn_c_try_compile "$LINENO" 10922 then : 10923 xorg_cv_cc_flag_unknown_warning_option=yes 10924 else $as_nop 10925 xorg_cv_cc_flag_unknown_warning_option=no 10926 fi 10927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10928 fi 10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10930 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933 fi 10934 10935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10938 fi 10939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10941 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10942 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10943 then : 10944 printf %s "(cached) " >&6 10945 else $as_nop 10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947 /* end confdefs.h. */ 10948 int i; 10949 _ACEOF 10950 if ac_fn_c_try_compile "$LINENO" 10951 then : 10952 xorg_cv_cc_flag_unused_command_line_argument=yes 10953 else $as_nop 10954 xorg_cv_cc_flag_unused_command_line_argument=no 10955 fi 10956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10957 fi 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10959 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10961 CFLAGS="$xorg_testset_save_CFLAGS" 10962 fi 10963 10964 found="no" 10965 10966 if test $found = "no" ; then 10967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10969 fi 10970 10971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10973 fi 10974 10975 CFLAGS="$CFLAGS -pedantic" 10976 10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10978 printf %s "checking if $CC supports -pedantic... " >&6; } 10979 cacheid=xorg_cv_cc_flag__pedantic 10980 if eval test \${$cacheid+y} 10981 then : 10982 printf %s "(cached) " >&6 10983 else $as_nop 10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10985 /* end confdefs.h. */ 10986 int i; 10987 int 10988 main (void) 10989 { 10990 10991 ; 10992 return 0; 10993 } 10994 _ACEOF 10995 if ac_fn_c_try_link "$LINENO" 10996 then : 10997 eval $cacheid=yes 10998 else $as_nop 10999 eval $cacheid=no 11000 fi 11001 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11002 conftest$ac_exeext conftest.$ac_ext 11003 fi 11004 11005 11006 CFLAGS="$xorg_testset_save_CFLAGS" 11007 11008 eval supported=\$$cacheid 11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11010 printf "%s\n" "$supported" >&6; } 11011 if test "$supported" = "yes" ; then 11012 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11013 found="yes" 11014 fi 11015 fi 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 xorg_testset_save_CFLAGS="$CFLAGS" 11032 11033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11037 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11038 then : 11039 printf %s "(cached) " >&6 11040 else $as_nop 11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042 /* end confdefs.h. */ 11043 int i; 11044 _ACEOF 11045 if ac_fn_c_try_compile "$LINENO" 11046 then : 11047 xorg_cv_cc_flag_unknown_warning_option=yes 11048 else $as_nop 11049 xorg_cv_cc_flag_unknown_warning_option=no 11050 fi 11051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11052 fi 11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11054 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11056 CFLAGS="$xorg_testset_save_CFLAGS" 11057 fi 11058 11059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11062 fi 11063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11065 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11066 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11067 then : 11068 printf %s "(cached) " >&6 11069 else $as_nop 11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11071 /* end confdefs.h. */ 11072 int i; 11073 _ACEOF 11074 if ac_fn_c_try_compile "$LINENO" 11075 then : 11076 xorg_cv_cc_flag_unused_command_line_argument=yes 11077 else $as_nop 11078 xorg_cv_cc_flag_unused_command_line_argument=no 11079 fi 11080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11081 fi 11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11083 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11085 CFLAGS="$xorg_testset_save_CFLAGS" 11086 fi 11087 11088 found="no" 11089 11090 if test $found = "no" ; then 11091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11093 fi 11094 11095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11097 fi 11098 11099 CFLAGS="$CFLAGS -Werror" 11100 11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11102 printf %s "checking if $CC supports -Werror... " >&6; } 11103 cacheid=xorg_cv_cc_flag__Werror 11104 if eval test \${$cacheid+y} 11105 then : 11106 printf %s "(cached) " >&6 11107 else $as_nop 11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11109 /* end confdefs.h. */ 11110 int i; 11111 int 11112 main (void) 11113 { 11114 11115 ; 11116 return 0; 11117 } 11118 _ACEOF 11119 if ac_fn_c_try_link "$LINENO" 11120 then : 11121 eval $cacheid=yes 11122 else $as_nop 11123 eval $cacheid=no 11124 fi 11125 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11126 conftest$ac_exeext conftest.$ac_ext 11127 fi 11128 11129 11130 CFLAGS="$xorg_testset_save_CFLAGS" 11131 11132 eval supported=\$$cacheid 11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11134 printf "%s\n" "$supported" >&6; } 11135 if test "$supported" = "yes" ; then 11136 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11137 found="yes" 11138 fi 11139 fi 11140 11141 if test $found = "no" ; then 11142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11144 fi 11145 11146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11148 fi 11149 11150 CFLAGS="$CFLAGS -errwarn" 11151 11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11153 printf %s "checking if $CC supports -errwarn... " >&6; } 11154 cacheid=xorg_cv_cc_flag__errwarn 11155 if eval test \${$cacheid+y} 11156 then : 11157 printf %s "(cached) " >&6 11158 else $as_nop 11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11160 /* end confdefs.h. */ 11161 int i; 11162 int 11163 main (void) 11164 { 11165 11166 ; 11167 return 0; 11168 } 11169 _ACEOF 11170 if ac_fn_c_try_link "$LINENO" 11171 then : 11172 eval $cacheid=yes 11173 else $as_nop 11174 eval $cacheid=no 11175 fi 11176 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11177 conftest$ac_exeext conftest.$ac_ext 11178 fi 11179 11180 11181 CFLAGS="$xorg_testset_save_CFLAGS" 11182 11183 eval supported=\$$cacheid 11184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11185 printf "%s\n" "$supported" >&6; } 11186 if test "$supported" = "yes" ; then 11187 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11188 found="yes" 11189 fi 11190 fi 11191 11192 11193 11194 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11195 # activate it with -Werror, so we add it here explicitly. 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 xorg_testset_save_CFLAGS="$CFLAGS" 11210 11211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11215 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11216 then : 11217 printf %s "(cached) " >&6 11218 else $as_nop 11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220 /* end confdefs.h. */ 11221 int i; 11222 _ACEOF 11223 if ac_fn_c_try_compile "$LINENO" 11224 then : 11225 xorg_cv_cc_flag_unknown_warning_option=yes 11226 else $as_nop 11227 xorg_cv_cc_flag_unknown_warning_option=no 11228 fi 11229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11230 fi 11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11234 CFLAGS="$xorg_testset_save_CFLAGS" 11235 fi 11236 11237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11240 fi 11241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11245 then : 11246 printf %s "(cached) " >&6 11247 else $as_nop 11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11249 /* end confdefs.h. */ 11250 int i; 11251 _ACEOF 11252 if ac_fn_c_try_compile "$LINENO" 11253 then : 11254 xorg_cv_cc_flag_unused_command_line_argument=yes 11255 else $as_nop 11256 xorg_cv_cc_flag_unused_command_line_argument=no 11257 fi 11258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11259 fi 11260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11263 CFLAGS="$xorg_testset_save_CFLAGS" 11264 fi 11265 11266 found="no" 11267 11268 if test $found = "no" ; then 11269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11271 fi 11272 11273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11275 fi 11276 11277 CFLAGS="$CFLAGS -Werror=attributes" 11278 11279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11280 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11281 cacheid=xorg_cv_cc_flag__Werror_attributes 11282 if eval test \${$cacheid+y} 11283 then : 11284 printf %s "(cached) " >&6 11285 else $as_nop 11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11287 /* end confdefs.h. */ 11288 int i; 11289 int 11290 main (void) 11291 { 11292 11293 ; 11294 return 0; 11295 } 11296 _ACEOF 11297 if ac_fn_c_try_link "$LINENO" 11298 then : 11299 eval $cacheid=yes 11300 else $as_nop 11301 eval $cacheid=no 11302 fi 11303 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11304 conftest$ac_exeext conftest.$ac_ext 11305 fi 11306 11307 11308 CFLAGS="$xorg_testset_save_CFLAGS" 11309 11310 eval supported=\$$cacheid 11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11312 printf "%s\n" "$supported" >&6; } 11313 if test "$supported" = "yes" ; then 11314 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11315 found="yes" 11316 fi 11317 fi 11318 11319 11320 11321 if test "x$STRICT_COMPILE" = "xyes"; then 11322 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11323 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11324 fi 11325 11326 11327 11328 11329 11330 11331 cat >>confdefs.h <<_ACEOF 11332 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11333 _ACEOF 11334 11335 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11336 if test "x$PVM" = "x"; then 11337 PVM="0" 11338 fi 11339 11340 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11341 11342 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11343 if test "x$PVP" = "x"; then 11344 PVP="0" 11345 fi 11346 11347 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11348 11349 11350 11351 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11352 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11353 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11354 touch \$(top_srcdir)/ChangeLog; \ 11355 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11356 11357 11358 11359 11360 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11361 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11362 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11363 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11364 touch \$(top_srcdir)/INSTALL; \ 11365 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11366 11367 11368 11369 11370 11371 11372 case $host_os in 11373 solaris*) 11374 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11375 # check for a man page file found in later versions that use 11376 # traditional section numbers instead 11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11378 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11379 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11380 then : 11381 printf %s "(cached) " >&6 11382 else $as_nop 11383 test "$cross_compiling" = yes && 11384 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11385 if test -r "/usr/share/man/man7/attributes.7"; then 11386 ac_cv_file__usr_share_man_man7_attributes_7=yes 11387 else 11388 ac_cv_file__usr_share_man_man7_attributes_7=no 11389 fi 11390 fi 11391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11392 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11393 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11394 then : 11395 SYSV_MAN_SECTIONS=false 11396 else $as_nop 11397 SYSV_MAN_SECTIONS=true 11398 fi 11399 11400 ;; 11401 *) SYSV_MAN_SECTIONS=false ;; 11402 esac 11403 11404 if test x$APP_MAN_SUFFIX = x ; then 11405 APP_MAN_SUFFIX=1 11406 fi 11407 if test x$APP_MAN_DIR = x ; then 11408 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11409 fi 11410 11411 if test x$LIB_MAN_SUFFIX = x ; then 11412 LIB_MAN_SUFFIX=3 11413 fi 11414 if test x$LIB_MAN_DIR = x ; then 11415 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11416 fi 11417 11418 if test x$FILE_MAN_SUFFIX = x ; then 11419 case $SYSV_MAN_SECTIONS in 11420 true) FILE_MAN_SUFFIX=4 ;; 11421 *) FILE_MAN_SUFFIX=5 ;; 11422 esac 11423 fi 11424 if test x$FILE_MAN_DIR = x ; then 11425 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11426 fi 11427 11428 if test x$MISC_MAN_SUFFIX = x ; then 11429 case $SYSV_MAN_SECTIONS in 11430 true) MISC_MAN_SUFFIX=5 ;; 11431 *) MISC_MAN_SUFFIX=7 ;; 11432 esac 11433 fi 11434 if test x$MISC_MAN_DIR = x ; then 11435 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11436 fi 11437 11438 if test x$DRIVER_MAN_SUFFIX = x ; then 11439 case $SYSV_MAN_SECTIONS in 11440 true) DRIVER_MAN_SUFFIX=7 ;; 11441 *) DRIVER_MAN_SUFFIX=4 ;; 11442 esac 11443 fi 11444 if test x$DRIVER_MAN_DIR = x ; then 11445 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11446 fi 11447 11448 if test x$ADMIN_MAN_SUFFIX = x ; then 11449 case $SYSV_MAN_SECTIONS in 11450 true) ADMIN_MAN_SUFFIX=1m ;; 11451 *) ADMIN_MAN_SUFFIX=8 ;; 11452 esac 11453 fi 11454 if test x$ADMIN_MAN_DIR = x ; then 11455 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11456 fi 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 XORG_MAN_PAGE="X Version 11" 11473 11474 MAN_SUBSTS="\ 11475 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11476 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11477 -e 's|__xservername__|Xorg|g' \ 11478 -e 's|__xconfigfile__|xorg.conf|g' \ 11479 -e 's|__projectroot__|\$(prefix)|g' \ 11480 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11481 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11482 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11483 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11484 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11485 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11486 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11487 11488 11489 11490 # Check whether --enable-silent-rules was given. 11491 if test ${enable_silent_rules+y} 11492 then : 11493 enableval=$enable_silent_rules; 11494 fi 11495 11496 case $enable_silent_rules in # ((( 11497 yes) AM_DEFAULT_VERBOSITY=0;; 11498 no) AM_DEFAULT_VERBOSITY=1;; 11499 *) AM_DEFAULT_VERBOSITY=0;; 11500 esac 11501 am_make=${MAKE-make} 11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11503 printf %s "checking whether $am_make supports nested variables... " >&6; } 11504 if test ${am_cv_make_support_nested_variables+y} 11505 then : 11506 printf %s "(cached) " >&6 11507 else $as_nop 11508 if printf "%s\n" 'TRUE=$(BAR$(V)) 11509 BAR0=false 11510 BAR1=true 11511 V=1 11512 am__doit: 11513 @$(TRUE) 11514 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11515 am_cv_make_support_nested_variables=yes 11516 else 11517 am_cv_make_support_nested_variables=no 11518 fi 11519 fi 11520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11521 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11522 if test $am_cv_make_support_nested_variables = yes; then 11523 AM_V='$(V)' 11524 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11525 else 11526 AM_V=$AM_DEFAULT_VERBOSITY 11527 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11528 fi 11529 AM_BACKSLASH='\' 11530 11531 11532 11533 # Initialize libtool 11534 # Check whether --enable-static was given. 11535 if test ${enable_static+y} 11536 then : 11537 enableval=$enable_static; p=${PACKAGE-default} 11538 case $enableval in 11539 yes) enable_static=yes ;; 11540 no) enable_static=no ;; 11541 *) 11542 enable_static=no 11543 # Look at the argument we got. We use all the common list separators. 11544 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11545 for pkg in $enableval; do 11546 IFS=$lt_save_ifs 11547 if test "X$pkg" = "X$p"; then 11548 enable_static=yes 11549 fi 11550 done 11551 IFS=$lt_save_ifs 11552 ;; 11553 esac 11554 else $as_nop 11555 enable_static=no 11556 fi 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 case `pwd` in 11568 *\ * | *\ *) 11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11570 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11571 esac 11572 11573 11574 11575 macro_version='2.4.7' 11576 macro_revision='2.4.7' 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 ltmain=$ac_aux_dir/ltmain.sh 11592 11593 # Backslashify metacharacters that are still active within 11594 # double-quoted strings. 11595 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11596 11597 # Same as above, but do not quote variable references. 11598 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11599 11600 # Sed substitution to delay expansion of an escaped shell variable in a 11601 # double_quote_subst'ed string. 11602 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11603 11604 # Sed substitution to delay expansion of an escaped single quote. 11605 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11606 11607 # Sed substitution to avoid accidental globbing in evaled expressions 11608 no_glob_subst='s/\*/\\\*/g' 11609 11610 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11611 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11612 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11613 11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11615 printf %s "checking how to print strings... " >&6; } 11616 # Test print first, because it will be a builtin if present. 11617 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11618 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11619 ECHO='print -r --' 11620 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11621 ECHO='printf %s\n' 11622 else 11623 # Use this function as a fallback that always works. 11624 func_fallback_echo () 11625 { 11626 eval 'cat <<_LTECHO_EOF 11627 $1 11628 _LTECHO_EOF' 11629 } 11630 ECHO='func_fallback_echo' 11631 fi 11632 11633 # func_echo_all arg... 11634 # Invoke $ECHO with all args, space-separated. 11635 func_echo_all () 11636 { 11637 $ECHO "" 11638 } 11639 11640 case $ECHO in 11641 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11642 printf "%s\n" "printf" >&6; } ;; 11643 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11644 printf "%s\n" "print -r" >&6; } ;; 11645 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11646 printf "%s\n" "cat" >&6; } ;; 11647 esac 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11663 printf %s "checking for a sed that does not truncate output... " >&6; } 11664 if test ${ac_cv_path_SED+y} 11665 then : 11666 printf %s "(cached) " >&6 11667 else $as_nop 11668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11669 for ac_i in 1 2 3 4 5 6 7; do 11670 ac_script="$ac_script$as_nl$ac_script" 11671 done 11672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11673 { ac_script=; unset ac_script;} 11674 if test -z "$SED"; then 11675 ac_path_SED_found=false 11676 # Loop through the user's path and test for each of PROGNAME-LIST 11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11678 for as_dir in $PATH 11679 do 11680 IFS=$as_save_IFS 11681 case $as_dir in #((( 11682 '') as_dir=./ ;; 11683 */) ;; 11684 *) as_dir=$as_dir/ ;; 11685 esac 11686 for ac_prog in sed gsed 11687 do 11688 for ac_exec_ext in '' $ac_executable_extensions; do 11689 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11690 as_fn_executable_p "$ac_path_SED" || continue 11691 # Check for GNU ac_path_SED and select it if it is found. 11692 # Check for GNU $ac_path_SED 11693 case `"$ac_path_SED" --version 2>&1` in 11694 *GNU*) 11695 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11696 *) 11697 ac_count=0 11698 printf %s 0123456789 >"conftest.in" 11699 while : 11700 do 11701 cat "conftest.in" "conftest.in" >"conftest.tmp" 11702 mv "conftest.tmp" "conftest.in" 11703 cp "conftest.in" "conftest.nl" 11704 printf "%s\n" '' >> "conftest.nl" 11705 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11707 as_fn_arith $ac_count + 1 && ac_count=$as_val 11708 if test $ac_count -gt ${ac_path_SED_max-0}; then 11709 # Best one so far, save it but keep looking for a better one 11710 ac_cv_path_SED="$ac_path_SED" 11711 ac_path_SED_max=$ac_count 11712 fi 11713 # 10*(2^10) chars as input seems more than enough 11714 test $ac_count -gt 10 && break 11715 done 11716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11717 esac 11718 11719 $ac_path_SED_found && break 3 11720 done 11721 done 11722 done 11723 IFS=$as_save_IFS 11724 if test -z "$ac_cv_path_SED"; then 11725 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11726 fi 11727 else 11728 ac_cv_path_SED=$SED 11729 fi 11730 11731 fi 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11733 printf "%s\n" "$ac_cv_path_SED" >&6; } 11734 SED="$ac_cv_path_SED" 11735 rm -f conftest.sed 11736 11737 test -z "$SED" && SED=sed 11738 Xsed="$SED -e 1s/^X//" 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11751 printf %s "checking for grep that handles long lines and -e... " >&6; } 11752 if test ${ac_cv_path_GREP+y} 11753 then : 11754 printf %s "(cached) " >&6 11755 else $as_nop 11756 if test -z "$GREP"; then 11757 ac_path_GREP_found=false 11758 # Loop through the user's path and test for each of PROGNAME-LIST 11759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11760 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11761 do 11762 IFS=$as_save_IFS 11763 case $as_dir in #((( 11764 '') as_dir=./ ;; 11765 */) ;; 11766 *) as_dir=$as_dir/ ;; 11767 esac 11768 for ac_prog in grep ggrep 11769 do 11770 for ac_exec_ext in '' $ac_executable_extensions; do 11771 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11772 as_fn_executable_p "$ac_path_GREP" || continue 11773 # Check for GNU ac_path_GREP and select it if it is found. 11774 # Check for GNU $ac_path_GREP 11775 case `"$ac_path_GREP" --version 2>&1` in 11776 *GNU*) 11777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11778 *) 11779 ac_count=0 11780 printf %s 0123456789 >"conftest.in" 11781 while : 11782 do 11783 cat "conftest.in" "conftest.in" >"conftest.tmp" 11784 mv "conftest.tmp" "conftest.in" 11785 cp "conftest.in" "conftest.nl" 11786 printf "%s\n" 'GREP' >> "conftest.nl" 11787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11789 as_fn_arith $ac_count + 1 && ac_count=$as_val 11790 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11791 # Best one so far, save it but keep looking for a better one 11792 ac_cv_path_GREP="$ac_path_GREP" 11793 ac_path_GREP_max=$ac_count 11794 fi 11795 # 10*(2^10) chars as input seems more than enough 11796 test $ac_count -gt 10 && break 11797 done 11798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11799 esac 11800 11801 $ac_path_GREP_found && break 3 11802 done 11803 done 11804 done 11805 IFS=$as_save_IFS 11806 if test -z "$ac_cv_path_GREP"; then 11807 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11808 fi 11809 else 11810 ac_cv_path_GREP=$GREP 11811 fi 11812 11813 fi 11814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11815 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11816 GREP="$ac_cv_path_GREP" 11817 11818 11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11820 printf %s "checking for egrep... " >&6; } 11821 if test ${ac_cv_path_EGREP+y} 11822 then : 11823 printf %s "(cached) " >&6 11824 else $as_nop 11825 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11826 then ac_cv_path_EGREP="$GREP -E" 11827 else 11828 if test -z "$EGREP"; then 11829 ac_path_EGREP_found=false 11830 # Loop through the user's path and test for each of PROGNAME-LIST 11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11833 do 11834 IFS=$as_save_IFS 11835 case $as_dir in #((( 11836 '') as_dir=./ ;; 11837 */) ;; 11838 *) as_dir=$as_dir/ ;; 11839 esac 11840 for ac_prog in egrep 11841 do 11842 for ac_exec_ext in '' $ac_executable_extensions; do 11843 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11844 as_fn_executable_p "$ac_path_EGREP" || continue 11845 # Check for GNU ac_path_EGREP and select it if it is found. 11846 # Check for GNU $ac_path_EGREP 11847 case `"$ac_path_EGREP" --version 2>&1` in 11848 *GNU*) 11849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11850 *) 11851 ac_count=0 11852 printf %s 0123456789 >"conftest.in" 11853 while : 11854 do 11855 cat "conftest.in" "conftest.in" >"conftest.tmp" 11856 mv "conftest.tmp" "conftest.in" 11857 cp "conftest.in" "conftest.nl" 11858 printf "%s\n" 'EGREP' >> "conftest.nl" 11859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11861 as_fn_arith $ac_count + 1 && ac_count=$as_val 11862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11863 # Best one so far, save it but keep looking for a better one 11864 ac_cv_path_EGREP="$ac_path_EGREP" 11865 ac_path_EGREP_max=$ac_count 11866 fi 11867 # 10*(2^10) chars as input seems more than enough 11868 test $ac_count -gt 10 && break 11869 done 11870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11871 esac 11872 11873 $ac_path_EGREP_found && break 3 11874 done 11875 done 11876 done 11877 IFS=$as_save_IFS 11878 if test -z "$ac_cv_path_EGREP"; then 11879 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11880 fi 11881 else 11882 ac_cv_path_EGREP=$EGREP 11883 fi 11884 11885 fi 11886 fi 11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11888 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11889 EGREP="$ac_cv_path_EGREP" 11890 11891 11892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11893 printf %s "checking for fgrep... " >&6; } 11894 if test ${ac_cv_path_FGREP+y} 11895 then : 11896 printf %s "(cached) " >&6 11897 else $as_nop 11898 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11899 then ac_cv_path_FGREP="$GREP -F" 11900 else 11901 if test -z "$FGREP"; then 11902 ac_path_FGREP_found=false 11903 # Loop through the user's path and test for each of PROGNAME-LIST 11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11906 do 11907 IFS=$as_save_IFS 11908 case $as_dir in #((( 11909 '') as_dir=./ ;; 11910 */) ;; 11911 *) as_dir=$as_dir/ ;; 11912 esac 11913 for ac_prog in fgrep 11914 do 11915 for ac_exec_ext in '' $ac_executable_extensions; do 11916 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11917 as_fn_executable_p "$ac_path_FGREP" || continue 11918 # Check for GNU ac_path_FGREP and select it if it is found. 11919 # Check for GNU $ac_path_FGREP 11920 case `"$ac_path_FGREP" --version 2>&1` in 11921 *GNU*) 11922 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11923 *) 11924 ac_count=0 11925 printf %s 0123456789 >"conftest.in" 11926 while : 11927 do 11928 cat "conftest.in" "conftest.in" >"conftest.tmp" 11929 mv "conftest.tmp" "conftest.in" 11930 cp "conftest.in" "conftest.nl" 11931 printf "%s\n" 'FGREP' >> "conftest.nl" 11932 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11934 as_fn_arith $ac_count + 1 && ac_count=$as_val 11935 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11936 # Best one so far, save it but keep looking for a better one 11937 ac_cv_path_FGREP="$ac_path_FGREP" 11938 ac_path_FGREP_max=$ac_count 11939 fi 11940 # 10*(2^10) chars as input seems more than enough 11941 test $ac_count -gt 10 && break 11942 done 11943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11944 esac 11945 11946 $ac_path_FGREP_found && break 3 11947 done 11948 done 11949 done 11950 IFS=$as_save_IFS 11951 if test -z "$ac_cv_path_FGREP"; then 11952 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11953 fi 11954 else 11955 ac_cv_path_FGREP=$FGREP 11956 fi 11957 11958 fi 11959 fi 11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11961 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11962 FGREP="$ac_cv_path_FGREP" 11963 11964 11965 test -z "$GREP" && GREP=grep 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 # Check whether --with-gnu-ld was given. 11986 if test ${with_gnu_ld+y} 11987 then : 11988 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11989 else $as_nop 11990 with_gnu_ld=no 11991 fi 11992 11993 ac_prog=ld 11994 if test yes = "$GCC"; then 11995 # Check if gcc -print-prog-name=ld gives a path. 11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11997 printf %s "checking for ld used by $CC... " >&6; } 11998 case $host in 11999 *-*-mingw*) 12000 # gcc leaves a trailing carriage return, which upsets mingw 12001 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12002 *) 12003 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12004 esac 12005 case $ac_prog in 12006 # Accept absolute paths. 12007 [\\/]* | ?:[\\/]*) 12008 re_direlt='/[^/][^/]*/\.\./' 12009 # Canonicalize the pathname of ld 12010 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12011 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12012 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12013 done 12014 test -z "$LD" && LD=$ac_prog 12015 ;; 12016 "") 12017 # If it fails, then pretend we aren't using GCC. 12018 ac_prog=ld 12019 ;; 12020 *) 12021 # If it is relative, then search for the first ld in PATH. 12022 with_gnu_ld=unknown 12023 ;; 12024 esac 12025 elif test yes = "$with_gnu_ld"; then 12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12027 printf %s "checking for GNU ld... " >&6; } 12028 else 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12030 printf %s "checking for non-GNU ld... " >&6; } 12031 fi 12032 if test ${lt_cv_path_LD+y} 12033 then : 12034 printf %s "(cached) " >&6 12035 else $as_nop 12036 if test -z "$LD"; then 12037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12038 for ac_dir in $PATH; do 12039 IFS=$lt_save_ifs 12040 test -z "$ac_dir" && ac_dir=. 12041 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12042 lt_cv_path_LD=$ac_dir/$ac_prog 12043 # Check to see if the program is GNU ld. I'd rather use --version, 12044 # but apparently some variants of GNU ld only accept -v. 12045 # Break only if it was the GNU/non-GNU ld that we prefer. 12046 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12047 *GNU* | *'with BFD'*) 12048 test no != "$with_gnu_ld" && break 12049 ;; 12050 *) 12051 test yes != "$with_gnu_ld" && break 12052 ;; 12053 esac 12054 fi 12055 done 12056 IFS=$lt_save_ifs 12057 else 12058 lt_cv_path_LD=$LD # Let the user override the test with a path. 12059 fi 12060 fi 12061 12062 LD=$lt_cv_path_LD 12063 if test -n "$LD"; then 12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12065 printf "%s\n" "$LD" >&6; } 12066 else 12067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12068 printf "%s\n" "no" >&6; } 12069 fi 12070 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12072 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12073 if test ${lt_cv_prog_gnu_ld+y} 12074 then : 12075 printf %s "(cached) " >&6 12076 else $as_nop 12077 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12078 case `$LD -v 2>&1 </dev/null` in 12079 *GNU* | *'with BFD'*) 12080 lt_cv_prog_gnu_ld=yes 12081 ;; 12082 *) 12083 lt_cv_prog_gnu_ld=no 12084 ;; 12085 esac 12086 fi 12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12088 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12089 with_gnu_ld=$lt_cv_prog_gnu_ld 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12100 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12101 if test ${lt_cv_path_NM+y} 12102 then : 12103 printf %s "(cached) " >&6 12104 else $as_nop 12105 if test -n "$NM"; then 12106 # Let the user override the test. 12107 lt_cv_path_NM=$NM 12108 else 12109 lt_nm_to_check=${ac_tool_prefix}nm 12110 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12111 lt_nm_to_check="$lt_nm_to_check nm" 12112 fi 12113 for lt_tmp_nm in $lt_nm_to_check; do 12114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12115 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12116 IFS=$lt_save_ifs 12117 test -z "$ac_dir" && ac_dir=. 12118 tmp_nm=$ac_dir/$lt_tmp_nm 12119 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12120 # Check to see if the nm accepts a BSD-compat flag. 12121 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12122 # nm: unknown option "B" ignored 12123 # Tru64's nm complains that /dev/null is an invalid object file 12124 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12125 case $build_os in 12126 mingw*) lt_bad_file=conftest.nm/nofile ;; 12127 *) lt_bad_file=/dev/null ;; 12128 esac 12129 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 12130 *$lt_bad_file* | *'Invalid file or object type'*) 12131 lt_cv_path_NM="$tmp_nm -B" 12132 break 2 12133 ;; 12134 *) 12135 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 12136 */dev/null*) 12137 lt_cv_path_NM="$tmp_nm -p" 12138 break 2 12139 ;; 12140 *) 12141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12142 continue # so that we can try to find one that supports BSD flags 12143 ;; 12144 esac 12145 ;; 12146 esac 12147 fi 12148 done 12149 IFS=$lt_save_ifs 12150 done 12151 : ${lt_cv_path_NM=no} 12152 fi 12153 fi 12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12155 printf "%s\n" "$lt_cv_path_NM" >&6; } 12156 if test no != "$lt_cv_path_NM"; then 12157 NM=$lt_cv_path_NM 12158 else 12159 # Didn't find any BSD compatible name lister, look for dumpbin. 12160 if test -n "$DUMPBIN"; then : 12161 # Let the user override the test. 12162 else 12163 if test -n "$ac_tool_prefix"; then 12164 for ac_prog in dumpbin "link -dump" 12165 do 12166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12169 printf %s "checking for $ac_word... " >&6; } 12170 if test ${ac_cv_prog_DUMPBIN+y} 12171 then : 12172 printf %s "(cached) " >&6 12173 else $as_nop 12174 if test -n "$DUMPBIN"; then 12175 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12176 else 12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12178 for as_dir in $PATH 12179 do 12180 IFS=$as_save_IFS 12181 case $as_dir in #((( 12182 '') as_dir=./ ;; 12183 */) ;; 12184 *) as_dir=$as_dir/ ;; 12185 esac 12186 for ac_exec_ext in '' $ac_executable_extensions; do 12187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12188 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12190 break 2 12191 fi 12192 done 12193 done 12194 IFS=$as_save_IFS 12195 12196 fi 12197 fi 12198 DUMPBIN=$ac_cv_prog_DUMPBIN 12199 if test -n "$DUMPBIN"; then 12200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12201 printf "%s\n" "$DUMPBIN" >&6; } 12202 else 12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204 printf "%s\n" "no" >&6; } 12205 fi 12206 12207 12208 test -n "$DUMPBIN" && break 12209 done 12210 fi 12211 if test -z "$DUMPBIN"; then 12212 ac_ct_DUMPBIN=$DUMPBIN 12213 for ac_prog in dumpbin "link -dump" 12214 do 12215 # Extract the first word of "$ac_prog", so it can be a program name with args. 12216 set dummy $ac_prog; ac_word=$2 12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12218 printf %s "checking for $ac_word... " >&6; } 12219 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12220 then : 12221 printf %s "(cached) " >&6 12222 else $as_nop 12223 if test -n "$ac_ct_DUMPBIN"; then 12224 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12225 else 12226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12227 for as_dir in $PATH 12228 do 12229 IFS=$as_save_IFS 12230 case $as_dir in #((( 12231 '') as_dir=./ ;; 12232 */) ;; 12233 *) as_dir=$as_dir/ ;; 12234 esac 12235 for ac_exec_ext in '' $ac_executable_extensions; do 12236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12237 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12239 break 2 12240 fi 12241 done 12242 done 12243 IFS=$as_save_IFS 12244 12245 fi 12246 fi 12247 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12248 if test -n "$ac_ct_DUMPBIN"; then 12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12250 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12251 else 12252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12253 printf "%s\n" "no" >&6; } 12254 fi 12255 12256 12257 test -n "$ac_ct_DUMPBIN" && break 12258 done 12259 12260 if test "x$ac_ct_DUMPBIN" = x; then 12261 DUMPBIN=":" 12262 else 12263 case $cross_compiling:$ac_tool_warned in 12264 yes:) 12265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12267 ac_tool_warned=yes ;; 12268 esac 12269 DUMPBIN=$ac_ct_DUMPBIN 12270 fi 12271 fi 12272 12273 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12274 *COFF*) 12275 DUMPBIN="$DUMPBIN -symbols -headers" 12276 ;; 12277 *) 12278 DUMPBIN=: 12279 ;; 12280 esac 12281 fi 12282 12283 if test : != "$DUMPBIN"; then 12284 NM=$DUMPBIN 12285 fi 12286 fi 12287 test -z "$NM" && NM=nm 12288 12289 12290 12291 12292 12293 12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12295 printf %s "checking the name lister ($NM) interface... " >&6; } 12296 if test ${lt_cv_nm_interface+y} 12297 then : 12298 printf %s "(cached) " >&6 12299 else $as_nop 12300 lt_cv_nm_interface="BSD nm" 12301 echo "int some_variable = 0;" > conftest.$ac_ext 12302 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12303 (eval "$ac_compile" 2>conftest.err) 12304 cat conftest.err >&5 12305 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12306 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12307 cat conftest.err >&5 12308 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12309 cat conftest.out >&5 12310 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12311 lt_cv_nm_interface="MS dumpbin" 12312 fi 12313 rm -f conftest* 12314 fi 12315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12316 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12317 12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12319 printf %s "checking whether ln -s works... " >&6; } 12320 LN_S=$as_ln_s 12321 if test "$LN_S" = "ln -s"; then 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12323 printf "%s\n" "yes" >&6; } 12324 else 12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12326 printf "%s\n" "no, using $LN_S" >&6; } 12327 fi 12328 12329 # find the maximum length of command line arguments 12330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12331 printf %s "checking the maximum length of command line arguments... " >&6; } 12332 if test ${lt_cv_sys_max_cmd_len+y} 12333 then : 12334 printf %s "(cached) " >&6 12335 else $as_nop 12336 i=0 12337 teststring=ABCD 12338 12339 case $build_os in 12340 msdosdjgpp*) 12341 # On DJGPP, this test can blow up pretty badly due to problems in libc 12342 # (any single argument exceeding 2000 bytes causes a buffer overrun 12343 # during glob expansion). Even if it were fixed, the result of this 12344 # check would be larger than it should be. 12345 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12346 ;; 12347 12348 gnu*) 12349 # Under GNU Hurd, this test is not required because there is 12350 # no limit to the length of command line arguments. 12351 # Libtool will interpret -1 as no limit whatsoever 12352 lt_cv_sys_max_cmd_len=-1; 12353 ;; 12354 12355 cygwin* | mingw* | cegcc*) 12356 # On Win9x/ME, this test blows up -- it succeeds, but takes 12357 # about 5 minutes as the teststring grows exponentially. 12358 # Worse, since 9x/ME are not pre-emptively multitasking, 12359 # you end up with a "frozen" computer, even though with patience 12360 # the test eventually succeeds (with a max line length of 256k). 12361 # Instead, let's just punt: use the minimum linelength reported by 12362 # all of the supported platforms: 8192 (on NT/2K/XP). 12363 lt_cv_sys_max_cmd_len=8192; 12364 ;; 12365 12366 mint*) 12367 # On MiNT this can take a long time and run out of memory. 12368 lt_cv_sys_max_cmd_len=8192; 12369 ;; 12370 12371 amigaos*) 12372 # On AmigaOS with pdksh, this test takes hours, literally. 12373 # So we just punt and use a minimum line length of 8192. 12374 lt_cv_sys_max_cmd_len=8192; 12375 ;; 12376 12377 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12378 # This has been around since 386BSD, at least. Likely further. 12379 if test -x /sbin/sysctl; then 12380 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12381 elif test -x /usr/sbin/sysctl; then 12382 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12383 else 12384 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12385 fi 12386 # And add a safety zone 12387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12389 ;; 12390 12391 interix*) 12392 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12393 lt_cv_sys_max_cmd_len=196608 12394 ;; 12395 12396 os2*) 12397 # The test takes a long time on OS/2. 12398 lt_cv_sys_max_cmd_len=8192 12399 ;; 12400 12401 osf*) 12402 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12403 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12404 # nice to cause kernel panics so lets avoid the loop below. 12405 # First set a reasonable default. 12406 lt_cv_sys_max_cmd_len=16384 12407 # 12408 if test -x /sbin/sysconfig; then 12409 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12410 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12411 esac 12412 fi 12413 ;; 12414 sco3.2v5*) 12415 lt_cv_sys_max_cmd_len=102400 12416 ;; 12417 sysv5* | sco5v6* | sysv4.2uw2*) 12418 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12419 if test -n "$kargmax"; then 12420 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12421 else 12422 lt_cv_sys_max_cmd_len=32768 12423 fi 12424 ;; 12425 *) 12426 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12427 if test -n "$lt_cv_sys_max_cmd_len" && \ 12428 test undefined != "$lt_cv_sys_max_cmd_len"; then 12429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12430 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12431 else 12432 # Make teststring a little bigger before we do anything with it. 12433 # a 1K string should be a reasonable start. 12434 for i in 1 2 3 4 5 6 7 8; do 12435 teststring=$teststring$teststring 12436 done 12437 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12438 # If test is not a shell built-in, we'll probably end up computing a 12439 # maximum length that is only half of the actual maximum length, but 12440 # we can't tell. 12441 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12442 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12443 test 17 != "$i" # 1/2 MB should be enough 12444 do 12445 i=`expr $i + 1` 12446 teststring=$teststring$teststring 12447 done 12448 # Only check the string length outside the loop. 12449 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12450 teststring= 12451 # Add a significant safety factor because C++ compilers can tack on 12452 # massive amounts of additional arguments before passing them to the 12453 # linker. It appears as though 1/2 is a usable value. 12454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12455 fi 12456 ;; 12457 esac 12458 12459 fi 12460 12461 if test -n "$lt_cv_sys_max_cmd_len"; then 12462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12463 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12464 else 12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12466 printf "%s\n" "none" >&6; } 12467 fi 12468 max_cmd_len=$lt_cv_sys_max_cmd_len 12469 12470 12471 12472 12473 12474 12475 : ${CP="cp -f"} 12476 : ${MV="mv -f"} 12477 : ${RM="rm -f"} 12478 12479 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12480 lt_unset=unset 12481 else 12482 lt_unset=false 12483 fi 12484 12485 12486 12487 12488 12489 # test EBCDIC or ASCII 12490 case `echo X|tr X '\101'` in 12491 A) # ASCII based system 12492 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12493 lt_SP2NL='tr \040 \012' 12494 lt_NL2SP='tr \015\012 \040\040' 12495 ;; 12496 *) # EBCDIC based system 12497 lt_SP2NL='tr \100 \n' 12498 lt_NL2SP='tr \r\n \100\100' 12499 ;; 12500 esac 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12511 printf %s "checking how to convert $build file names to $host format... " >&6; } 12512 if test ${lt_cv_to_host_file_cmd+y} 12513 then : 12514 printf %s "(cached) " >&6 12515 else $as_nop 12516 case $host in 12517 *-*-mingw* ) 12518 case $build in 12519 *-*-mingw* ) # actually msys 12520 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12521 ;; 12522 *-*-cygwin* ) 12523 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12524 ;; 12525 * ) # otherwise, assume *nix 12526 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12527 ;; 12528 esac 12529 ;; 12530 *-*-cygwin* ) 12531 case $build in 12532 *-*-mingw* ) # actually msys 12533 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12534 ;; 12535 *-*-cygwin* ) 12536 lt_cv_to_host_file_cmd=func_convert_file_noop 12537 ;; 12538 * ) # otherwise, assume *nix 12539 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12540 ;; 12541 esac 12542 ;; 12543 * ) # unhandled hosts (and "normal" native builds) 12544 lt_cv_to_host_file_cmd=func_convert_file_noop 12545 ;; 12546 esac 12547 12548 fi 12549 12550 to_host_file_cmd=$lt_cv_to_host_file_cmd 12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12552 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12553 12554 12555 12556 12557 12558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12559 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12560 if test ${lt_cv_to_tool_file_cmd+y} 12561 then : 12562 printf %s "(cached) " >&6 12563 else $as_nop 12564 #assume ordinary cross tools, or native build. 12565 lt_cv_to_tool_file_cmd=func_convert_file_noop 12566 case $host in 12567 *-*-mingw* ) 12568 case $build in 12569 *-*-mingw* ) # actually msys 12570 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12571 ;; 12572 esac 12573 ;; 12574 esac 12575 12576 fi 12577 12578 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12580 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12581 12582 12583 12584 12585 12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12587 printf %s "checking for $LD option to reload object files... " >&6; } 12588 if test ${lt_cv_ld_reload_flag+y} 12589 then : 12590 printf %s "(cached) " >&6 12591 else $as_nop 12592 lt_cv_ld_reload_flag='-r' 12593 fi 12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12595 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12596 reload_flag=$lt_cv_ld_reload_flag 12597 case $reload_flag in 12598 "" | " "*) ;; 12599 *) reload_flag=" $reload_flag" ;; 12600 esac 12601 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12602 case $host_os in 12603 cygwin* | mingw* | pw32* | cegcc*) 12604 if test yes != "$GCC"; then 12605 reload_cmds=false 12606 fi 12607 ;; 12608 darwin*) 12609 if test yes = "$GCC"; then 12610 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12611 else 12612 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12613 fi 12614 ;; 12615 esac 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 if test -n "$ac_tool_prefix"; then 12626 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12627 set dummy ${ac_tool_prefix}file; ac_word=$2 12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12629 printf %s "checking for $ac_word... " >&6; } 12630 if test ${ac_cv_prog_FILECMD+y} 12631 then : 12632 printf %s "(cached) " >&6 12633 else $as_nop 12634 if test -n "$FILECMD"; then 12635 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12636 else 12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12638 for as_dir in $PATH 12639 do 12640 IFS=$as_save_IFS 12641 case $as_dir in #((( 12642 '') as_dir=./ ;; 12643 */) ;; 12644 *) as_dir=$as_dir/ ;; 12645 esac 12646 for ac_exec_ext in '' $ac_executable_extensions; do 12647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12648 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12650 break 2 12651 fi 12652 done 12653 done 12654 IFS=$as_save_IFS 12655 12656 fi 12657 fi 12658 FILECMD=$ac_cv_prog_FILECMD 12659 if test -n "$FILECMD"; then 12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12661 printf "%s\n" "$FILECMD" >&6; } 12662 else 12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12664 printf "%s\n" "no" >&6; } 12665 fi 12666 12667 12668 fi 12669 if test -z "$ac_cv_prog_FILECMD"; then 12670 ac_ct_FILECMD=$FILECMD 12671 # Extract the first word of "file", so it can be a program name with args. 12672 set dummy file; ac_word=$2 12673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12674 printf %s "checking for $ac_word... " >&6; } 12675 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12676 then : 12677 printf %s "(cached) " >&6 12678 else $as_nop 12679 if test -n "$ac_ct_FILECMD"; then 12680 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12681 else 12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12683 for as_dir in $PATH 12684 do 12685 IFS=$as_save_IFS 12686 case $as_dir in #((( 12687 '') as_dir=./ ;; 12688 */) ;; 12689 *) as_dir=$as_dir/ ;; 12690 esac 12691 for ac_exec_ext in '' $ac_executable_extensions; do 12692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12693 ac_cv_prog_ac_ct_FILECMD="file" 12694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12695 break 2 12696 fi 12697 done 12698 done 12699 IFS=$as_save_IFS 12700 12701 fi 12702 fi 12703 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12704 if test -n "$ac_ct_FILECMD"; then 12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12706 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12707 else 12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12709 printf "%s\n" "no" >&6; } 12710 fi 12711 12712 if test "x$ac_ct_FILECMD" = x; then 12713 FILECMD=":" 12714 else 12715 case $cross_compiling:$ac_tool_warned in 12716 yes:) 12717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12718 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12719 ac_tool_warned=yes ;; 12720 esac 12721 FILECMD=$ac_ct_FILECMD 12722 fi 12723 else 12724 FILECMD="$ac_cv_prog_FILECMD" 12725 fi 12726 12727 12728 12729 12730 12731 12732 12733 if test -n "$ac_tool_prefix"; then 12734 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12735 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12737 printf %s "checking for $ac_word... " >&6; } 12738 if test ${ac_cv_prog_OBJDUMP+y} 12739 then : 12740 printf %s "(cached) " >&6 12741 else $as_nop 12742 if test -n "$OBJDUMP"; then 12743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12744 else 12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12746 for as_dir in $PATH 12747 do 12748 IFS=$as_save_IFS 12749 case $as_dir in #((( 12750 '') as_dir=./ ;; 12751 */) ;; 12752 *) as_dir=$as_dir/ ;; 12753 esac 12754 for ac_exec_ext in '' $ac_executable_extensions; do 12755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12756 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12758 break 2 12759 fi 12760 done 12761 done 12762 IFS=$as_save_IFS 12763 12764 fi 12765 fi 12766 OBJDUMP=$ac_cv_prog_OBJDUMP 12767 if test -n "$OBJDUMP"; then 12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12769 printf "%s\n" "$OBJDUMP" >&6; } 12770 else 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12772 printf "%s\n" "no" >&6; } 12773 fi 12774 12775 12776 fi 12777 if test -z "$ac_cv_prog_OBJDUMP"; then 12778 ac_ct_OBJDUMP=$OBJDUMP 12779 # Extract the first word of "objdump", so it can be a program name with args. 12780 set dummy objdump; ac_word=$2 12781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12782 printf %s "checking for $ac_word... " >&6; } 12783 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12784 then : 12785 printf %s "(cached) " >&6 12786 else $as_nop 12787 if test -n "$ac_ct_OBJDUMP"; then 12788 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12789 else 12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12791 for as_dir in $PATH 12792 do 12793 IFS=$as_save_IFS 12794 case $as_dir in #((( 12795 '') as_dir=./ ;; 12796 */) ;; 12797 *) as_dir=$as_dir/ ;; 12798 esac 12799 for ac_exec_ext in '' $ac_executable_extensions; do 12800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12801 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12803 break 2 12804 fi 12805 done 12806 done 12807 IFS=$as_save_IFS 12808 12809 fi 12810 fi 12811 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12812 if test -n "$ac_ct_OBJDUMP"; then 12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12814 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12815 else 12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12817 printf "%s\n" "no" >&6; } 12818 fi 12819 12820 if test "x$ac_ct_OBJDUMP" = x; then 12821 OBJDUMP="false" 12822 else 12823 case $cross_compiling:$ac_tool_warned in 12824 yes:) 12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12826 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12827 ac_tool_warned=yes ;; 12828 esac 12829 OBJDUMP=$ac_ct_OBJDUMP 12830 fi 12831 else 12832 OBJDUMP="$ac_cv_prog_OBJDUMP" 12833 fi 12834 12835 test -z "$OBJDUMP" && OBJDUMP=objdump 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12846 printf %s "checking how to recognize dependent libraries... " >&6; } 12847 if test ${lt_cv_deplibs_check_method+y} 12848 then : 12849 printf %s "(cached) " >&6 12850 else $as_nop 12851 lt_cv_file_magic_cmd='$MAGIC_CMD' 12852 lt_cv_file_magic_test_file= 12853 lt_cv_deplibs_check_method='unknown' 12854 # Need to set the preceding variable on all platforms that support 12855 # interlibrary dependencies. 12856 # 'none' -- dependencies not supported. 12857 # 'unknown' -- same as none, but documents that we really don't know. 12858 # 'pass_all' -- all dependencies passed with no checks. 12859 # 'test_compile' -- check by making test program. 12860 # 'file_magic [[regex]]' -- check by looking for files in library path 12861 # that responds to the $file_magic_cmd with a given extended regex. 12862 # If you have 'file' or equivalent on your system and you're not sure 12863 # whether 'pass_all' will *always* work, you probably want this one. 12864 12865 case $host_os in 12866 aix[4-9]*) 12867 lt_cv_deplibs_check_method=pass_all 12868 ;; 12869 12870 beos*) 12871 lt_cv_deplibs_check_method=pass_all 12872 ;; 12873 12874 bsdi[45]*) 12875 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12876 lt_cv_file_magic_cmd='$FILECMD -L' 12877 lt_cv_file_magic_test_file=/shlib/libc.so 12878 ;; 12879 12880 cygwin*) 12881 # func_win32_libid is a shell function defined in ltmain.sh 12882 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12883 lt_cv_file_magic_cmd='func_win32_libid' 12884 ;; 12885 12886 mingw* | pw32*) 12887 # Base MSYS/MinGW do not provide the 'file' command needed by 12888 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12889 # unless we find 'file', for example because we are cross-compiling. 12890 if ( file / ) >/dev/null 2>&1; then 12891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12892 lt_cv_file_magic_cmd='func_win32_libid' 12893 else 12894 # Keep this pattern in sync with the one in func_win32_libid. 12895 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12896 lt_cv_file_magic_cmd='$OBJDUMP -f' 12897 fi 12898 ;; 12899 12900 cegcc*) 12901 # use the weaker test based on 'objdump'. See mingw*. 12902 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12903 lt_cv_file_magic_cmd='$OBJDUMP -f' 12904 ;; 12905 12906 darwin* | rhapsody*) 12907 lt_cv_deplibs_check_method=pass_all 12908 ;; 12909 12910 freebsd* | dragonfly* | midnightbsd*) 12911 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12912 case $host_cpu in 12913 i*86 ) 12914 # Not sure whether the presence of OpenBSD here was a mistake. 12915 # Let's accept both of them until this is cleared up. 12916 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12917 lt_cv_file_magic_cmd=$FILECMD 12918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12919 ;; 12920 esac 12921 else 12922 lt_cv_deplibs_check_method=pass_all 12923 fi 12924 ;; 12925 12926 haiku*) 12927 lt_cv_deplibs_check_method=pass_all 12928 ;; 12929 12930 hpux10.20* | hpux11*) 12931 lt_cv_file_magic_cmd=$FILECMD 12932 case $host_cpu in 12933 ia64*) 12934 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12935 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12936 ;; 12937 hppa*64*) 12938 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]' 12939 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12940 ;; 12941 *) 12942 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12943 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12944 ;; 12945 esac 12946 ;; 12947 12948 interix[3-9]*) 12949 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12950 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12951 ;; 12952 12953 irix5* | irix6* | nonstopux*) 12954 case $LD in 12955 *-32|*"-32 ") libmagic=32-bit;; 12956 *-n32|*"-n32 ") libmagic=N32;; 12957 *-64|*"-64 ") libmagic=64-bit;; 12958 *) libmagic=never-match;; 12959 esac 12960 lt_cv_deplibs_check_method=pass_all 12961 ;; 12962 12963 # This must be glibc/ELF. 12964 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12965 lt_cv_deplibs_check_method=pass_all 12966 ;; 12967 12968 netbsd*) 12969 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12971 else 12972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12973 fi 12974 ;; 12975 12976 newos6*) 12977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12978 lt_cv_file_magic_cmd=$FILECMD 12979 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12980 ;; 12981 12982 *nto* | *qnx*) 12983 lt_cv_deplibs_check_method=pass_all 12984 ;; 12985 12986 openbsd* | bitrig*) 12987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12989 else 12990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12991 fi 12992 ;; 12993 12994 osf3* | osf4* | osf5*) 12995 lt_cv_deplibs_check_method=pass_all 12996 ;; 12997 12998 rdos*) 12999 lt_cv_deplibs_check_method=pass_all 13000 ;; 13001 13002 solaris*) 13003 lt_cv_deplibs_check_method=pass_all 13004 ;; 13005 13006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13007 lt_cv_deplibs_check_method=pass_all 13008 ;; 13009 13010 sysv4 | sysv4.3*) 13011 case $host_vendor in 13012 motorola) 13013 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]' 13014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13015 ;; 13016 ncr) 13017 lt_cv_deplibs_check_method=pass_all 13018 ;; 13019 sequent) 13020 lt_cv_file_magic_cmd='/bin/file' 13021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13022 ;; 13023 sni) 13024 lt_cv_file_magic_cmd='/bin/file' 13025 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13026 lt_cv_file_magic_test_file=/lib/libc.so 13027 ;; 13028 siemens) 13029 lt_cv_deplibs_check_method=pass_all 13030 ;; 13031 pc) 13032 lt_cv_deplibs_check_method=pass_all 13033 ;; 13034 esac 13035 ;; 13036 13037 tpf*) 13038 lt_cv_deplibs_check_method=pass_all 13039 ;; 13040 os2*) 13041 lt_cv_deplibs_check_method=pass_all 13042 ;; 13043 esac 13044 13045 fi 13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13047 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13048 13049 file_magic_glob= 13050 want_nocaseglob=no 13051 if test "$build" = "$host"; then 13052 case $host_os in 13053 mingw* | pw32*) 13054 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13055 want_nocaseglob=yes 13056 else 13057 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13058 fi 13059 ;; 13060 esac 13061 fi 13062 13063 file_magic_cmd=$lt_cv_file_magic_cmd 13064 deplibs_check_method=$lt_cv_deplibs_check_method 13065 test -z "$deplibs_check_method" && deplibs_check_method=unknown 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 if test -n "$ac_tool_prefix"; then 13089 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13090 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13092 printf %s "checking for $ac_word... " >&6; } 13093 if test ${ac_cv_prog_DLLTOOL+y} 13094 then : 13095 printf %s "(cached) " >&6 13096 else $as_nop 13097 if test -n "$DLLTOOL"; then 13098 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13099 else 13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13101 for as_dir in $PATH 13102 do 13103 IFS=$as_save_IFS 13104 case $as_dir in #((( 13105 '') as_dir=./ ;; 13106 */) ;; 13107 *) as_dir=$as_dir/ ;; 13108 esac 13109 for ac_exec_ext in '' $ac_executable_extensions; do 13110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13111 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13113 break 2 13114 fi 13115 done 13116 done 13117 IFS=$as_save_IFS 13118 13119 fi 13120 fi 13121 DLLTOOL=$ac_cv_prog_DLLTOOL 13122 if test -n "$DLLTOOL"; then 13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13124 printf "%s\n" "$DLLTOOL" >&6; } 13125 else 13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13127 printf "%s\n" "no" >&6; } 13128 fi 13129 13130 13131 fi 13132 if test -z "$ac_cv_prog_DLLTOOL"; then 13133 ac_ct_DLLTOOL=$DLLTOOL 13134 # Extract the first word of "dlltool", so it can be a program name with args. 13135 set dummy dlltool; ac_word=$2 13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13137 printf %s "checking for $ac_word... " >&6; } 13138 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13139 then : 13140 printf %s "(cached) " >&6 13141 else $as_nop 13142 if test -n "$ac_ct_DLLTOOL"; then 13143 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13144 else 13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146 for as_dir in $PATH 13147 do 13148 IFS=$as_save_IFS 13149 case $as_dir in #((( 13150 '') as_dir=./ ;; 13151 */) ;; 13152 *) as_dir=$as_dir/ ;; 13153 esac 13154 for ac_exec_ext in '' $ac_executable_extensions; do 13155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13156 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13158 break 2 13159 fi 13160 done 13161 done 13162 IFS=$as_save_IFS 13163 13164 fi 13165 fi 13166 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13167 if test -n "$ac_ct_DLLTOOL"; then 13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13169 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13170 else 13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13172 printf "%s\n" "no" >&6; } 13173 fi 13174 13175 if test "x$ac_ct_DLLTOOL" = x; then 13176 DLLTOOL="false" 13177 else 13178 case $cross_compiling:$ac_tool_warned in 13179 yes:) 13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13181 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13182 ac_tool_warned=yes ;; 13183 esac 13184 DLLTOOL=$ac_ct_DLLTOOL 13185 fi 13186 else 13187 DLLTOOL="$ac_cv_prog_DLLTOOL" 13188 fi 13189 13190 test -z "$DLLTOOL" && DLLTOOL=dlltool 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13202 printf %s "checking how to associate runtime and link libraries... " >&6; } 13203 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13204 then : 13205 printf %s "(cached) " >&6 13206 else $as_nop 13207 lt_cv_sharedlib_from_linklib_cmd='unknown' 13208 13209 case $host_os in 13210 cygwin* | mingw* | pw32* | cegcc*) 13211 # two different shell functions defined in ltmain.sh; 13212 # decide which one to use based on capabilities of $DLLTOOL 13213 case `$DLLTOOL --help 2>&1` in 13214 *--identify-strict*) 13215 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13216 ;; 13217 *) 13218 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13219 ;; 13220 esac 13221 ;; 13222 *) 13223 # fallback: assume linklib IS sharedlib 13224 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13225 ;; 13226 esac 13227 13228 fi 13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13230 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13231 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13232 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13233 13234 13235 13236 13237 13238 13239 13240 if test -n "$ac_tool_prefix"; then 13241 for ac_prog in ar 13242 do 13243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13246 printf %s "checking for $ac_word... " >&6; } 13247 if test ${ac_cv_prog_AR+y} 13248 then : 13249 printf %s "(cached) " >&6 13250 else $as_nop 13251 if test -n "$AR"; then 13252 ac_cv_prog_AR="$AR" # Let the user override the test. 13253 else 13254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13255 for as_dir in $PATH 13256 do 13257 IFS=$as_save_IFS 13258 case $as_dir in #((( 13259 '') as_dir=./ ;; 13260 */) ;; 13261 *) as_dir=$as_dir/ ;; 13262 esac 13263 for ac_exec_ext in '' $ac_executable_extensions; do 13264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13265 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13267 break 2 13268 fi 13269 done 13270 done 13271 IFS=$as_save_IFS 13272 13273 fi 13274 fi 13275 AR=$ac_cv_prog_AR 13276 if test -n "$AR"; then 13277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13278 printf "%s\n" "$AR" >&6; } 13279 else 13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13281 printf "%s\n" "no" >&6; } 13282 fi 13283 13284 13285 test -n "$AR" && break 13286 done 13287 fi 13288 if test -z "$AR"; then 13289 ac_ct_AR=$AR 13290 for ac_prog in ar 13291 do 13292 # Extract the first word of "$ac_prog", so it can be a program name with args. 13293 set dummy $ac_prog; ac_word=$2 13294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13295 printf %s "checking for $ac_word... " >&6; } 13296 if test ${ac_cv_prog_ac_ct_AR+y} 13297 then : 13298 printf %s "(cached) " >&6 13299 else $as_nop 13300 if test -n "$ac_ct_AR"; then 13301 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13302 else 13303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13304 for as_dir in $PATH 13305 do 13306 IFS=$as_save_IFS 13307 case $as_dir in #((( 13308 '') as_dir=./ ;; 13309 */) ;; 13310 *) as_dir=$as_dir/ ;; 13311 esac 13312 for ac_exec_ext in '' $ac_executable_extensions; do 13313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13314 ac_cv_prog_ac_ct_AR="$ac_prog" 13315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13316 break 2 13317 fi 13318 done 13319 done 13320 IFS=$as_save_IFS 13321 13322 fi 13323 fi 13324 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13325 if test -n "$ac_ct_AR"; then 13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13327 printf "%s\n" "$ac_ct_AR" >&6; } 13328 else 13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330 printf "%s\n" "no" >&6; } 13331 fi 13332 13333 13334 test -n "$ac_ct_AR" && break 13335 done 13336 13337 if test "x$ac_ct_AR" = x; then 13338 AR="false" 13339 else 13340 case $cross_compiling:$ac_tool_warned in 13341 yes:) 13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13343 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13344 ac_tool_warned=yes ;; 13345 esac 13346 AR=$ac_ct_AR 13347 fi 13348 fi 13349 13350 : ${AR=ar} 13351 13352 13353 13354 13355 13356 13357 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13358 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13359 # higher priority because thats what people were doing historically (setting 13360 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13361 # variable obsoleted/removed. 13362 13363 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13364 lt_ar_flags=$AR_FLAGS 13365 13366 13367 13368 13369 13370 13371 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13372 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13373 13374 13375 13376 13377 13378 13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13380 printf %s "checking for archiver @FILE support... " >&6; } 13381 if test ${lt_cv_ar_at_file+y} 13382 then : 13383 printf %s "(cached) " >&6 13384 else $as_nop 13385 lt_cv_ar_at_file=no 13386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13387 /* end confdefs.h. */ 13388 13389 int 13390 main (void) 13391 { 13392 13393 ; 13394 return 0; 13395 } 13396 _ACEOF 13397 if ac_fn_c_try_compile "$LINENO" 13398 then : 13399 echo conftest.$ac_objext > conftest.lst 13400 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13402 (eval $lt_ar_try) 2>&5 13403 ac_status=$? 13404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13405 test $ac_status = 0; } 13406 if test 0 -eq "$ac_status"; then 13407 # Ensure the archiver fails upon bogus file names. 13408 rm -f conftest.$ac_objext libconftest.a 13409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13410 (eval $lt_ar_try) 2>&5 13411 ac_status=$? 13412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13413 test $ac_status = 0; } 13414 if test 0 -ne "$ac_status"; then 13415 lt_cv_ar_at_file=@ 13416 fi 13417 fi 13418 rm -f conftest.* libconftest.a 13419 13420 fi 13421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13422 13423 fi 13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13425 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13426 13427 if test no = "$lt_cv_ar_at_file"; then 13428 archiver_list_spec= 13429 else 13430 archiver_list_spec=$lt_cv_ar_at_file 13431 fi 13432 13433 13434 13435 13436 13437 13438 13439 if test -n "$ac_tool_prefix"; then 13440 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13441 set dummy ${ac_tool_prefix}strip; ac_word=$2 13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13443 printf %s "checking for $ac_word... " >&6; } 13444 if test ${ac_cv_prog_STRIP+y} 13445 then : 13446 printf %s "(cached) " >&6 13447 else $as_nop 13448 if test -n "$STRIP"; then 13449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13450 else 13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13452 for as_dir in $PATH 13453 do 13454 IFS=$as_save_IFS 13455 case $as_dir in #((( 13456 '') as_dir=./ ;; 13457 */) ;; 13458 *) as_dir=$as_dir/ ;; 13459 esac 13460 for ac_exec_ext in '' $ac_executable_extensions; do 13461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13462 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13464 break 2 13465 fi 13466 done 13467 done 13468 IFS=$as_save_IFS 13469 13470 fi 13471 fi 13472 STRIP=$ac_cv_prog_STRIP 13473 if test -n "$STRIP"; then 13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13475 printf "%s\n" "$STRIP" >&6; } 13476 else 13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13478 printf "%s\n" "no" >&6; } 13479 fi 13480 13481 13482 fi 13483 if test -z "$ac_cv_prog_STRIP"; then 13484 ac_ct_STRIP=$STRIP 13485 # Extract the first word of "strip", so it can be a program name with args. 13486 set dummy strip; ac_word=$2 13487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13488 printf %s "checking for $ac_word... " >&6; } 13489 if test ${ac_cv_prog_ac_ct_STRIP+y} 13490 then : 13491 printf %s "(cached) " >&6 13492 else $as_nop 13493 if test -n "$ac_ct_STRIP"; then 13494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13495 else 13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13497 for as_dir in $PATH 13498 do 13499 IFS=$as_save_IFS 13500 case $as_dir in #((( 13501 '') as_dir=./ ;; 13502 */) ;; 13503 *) as_dir=$as_dir/ ;; 13504 esac 13505 for ac_exec_ext in '' $ac_executable_extensions; do 13506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13507 ac_cv_prog_ac_ct_STRIP="strip" 13508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13509 break 2 13510 fi 13511 done 13512 done 13513 IFS=$as_save_IFS 13514 13515 fi 13516 fi 13517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13518 if test -n "$ac_ct_STRIP"; then 13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13520 printf "%s\n" "$ac_ct_STRIP" >&6; } 13521 else 13522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13523 printf "%s\n" "no" >&6; } 13524 fi 13525 13526 if test "x$ac_ct_STRIP" = x; then 13527 STRIP=":" 13528 else 13529 case $cross_compiling:$ac_tool_warned in 13530 yes:) 13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13533 ac_tool_warned=yes ;; 13534 esac 13535 STRIP=$ac_ct_STRIP 13536 fi 13537 else 13538 STRIP="$ac_cv_prog_STRIP" 13539 fi 13540 13541 test -z "$STRIP" && STRIP=: 13542 13543 13544 13545 13546 13547 13548 if test -n "$ac_tool_prefix"; then 13549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13552 printf %s "checking for $ac_word... " >&6; } 13553 if test ${ac_cv_prog_RANLIB+y} 13554 then : 13555 printf %s "(cached) " >&6 13556 else $as_nop 13557 if test -n "$RANLIB"; then 13558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13559 else 13560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13561 for as_dir in $PATH 13562 do 13563 IFS=$as_save_IFS 13564 case $as_dir in #((( 13565 '') as_dir=./ ;; 13566 */) ;; 13567 *) as_dir=$as_dir/ ;; 13568 esac 13569 for ac_exec_ext in '' $ac_executable_extensions; do 13570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13573 break 2 13574 fi 13575 done 13576 done 13577 IFS=$as_save_IFS 13578 13579 fi 13580 fi 13581 RANLIB=$ac_cv_prog_RANLIB 13582 if test -n "$RANLIB"; then 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13584 printf "%s\n" "$RANLIB" >&6; } 13585 else 13586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13587 printf "%s\n" "no" >&6; } 13588 fi 13589 13590 13591 fi 13592 if test -z "$ac_cv_prog_RANLIB"; then 13593 ac_ct_RANLIB=$RANLIB 13594 # Extract the first word of "ranlib", so it can be a program name with args. 13595 set dummy ranlib; ac_word=$2 13596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13597 printf %s "checking for $ac_word... " >&6; } 13598 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13599 then : 13600 printf %s "(cached) " >&6 13601 else $as_nop 13602 if test -n "$ac_ct_RANLIB"; then 13603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13604 else 13605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13606 for as_dir in $PATH 13607 do 13608 IFS=$as_save_IFS 13609 case $as_dir in #((( 13610 '') as_dir=./ ;; 13611 */) ;; 13612 *) as_dir=$as_dir/ ;; 13613 esac 13614 for ac_exec_ext in '' $ac_executable_extensions; do 13615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13616 ac_cv_prog_ac_ct_RANLIB="ranlib" 13617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13618 break 2 13619 fi 13620 done 13621 done 13622 IFS=$as_save_IFS 13623 13624 fi 13625 fi 13626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13627 if test -n "$ac_ct_RANLIB"; then 13628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13629 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13630 else 13631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13632 printf "%s\n" "no" >&6; } 13633 fi 13634 13635 if test "x$ac_ct_RANLIB" = x; then 13636 RANLIB=":" 13637 else 13638 case $cross_compiling:$ac_tool_warned in 13639 yes:) 13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13641 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13642 ac_tool_warned=yes ;; 13643 esac 13644 RANLIB=$ac_ct_RANLIB 13645 fi 13646 else 13647 RANLIB="$ac_cv_prog_RANLIB" 13648 fi 13649 13650 test -z "$RANLIB" && RANLIB=: 13651 13652 13653 13654 13655 13656 13657 # Determine commands to create old-style static archives. 13658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13659 old_postinstall_cmds='chmod 644 $oldlib' 13660 old_postuninstall_cmds= 13661 13662 if test -n "$RANLIB"; then 13663 case $host_os in 13664 bitrig* | openbsd*) 13665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13666 ;; 13667 *) 13668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13669 ;; 13670 esac 13671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13672 fi 13673 13674 case $host_os in 13675 darwin*) 13676 lock_old_archive_extraction=yes ;; 13677 *) 13678 lock_old_archive_extraction=no ;; 13679 esac 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 # If no C compiler was specified, use CC. 13720 LTCC=${LTCC-"$CC"} 13721 13722 # If no C compiler flags were specified, use CFLAGS. 13723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13724 13725 # Allow CC to be a program name with arguments. 13726 compiler=$CC 13727 13728 13729 # Check for command to grab the raw symbol name followed by C symbol from nm. 13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13731 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13732 if test ${lt_cv_sys_global_symbol_pipe+y} 13733 then : 13734 printf %s "(cached) " >&6 13735 else $as_nop 13736 13737 # These are sane defaults that work on at least a few old systems. 13738 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13739 13740 # Character class describing NM global symbol codes. 13741 symcode='[BCDEGRST]' 13742 13743 # Regexp to match symbols that can be accessed directly from C. 13744 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13745 13746 # Define system-specific variables. 13747 case $host_os in 13748 aix*) 13749 symcode='[BCDT]' 13750 ;; 13751 cygwin* | mingw* | pw32* | cegcc*) 13752 symcode='[ABCDGISTW]' 13753 ;; 13754 hpux*) 13755 if test ia64 = "$host_cpu"; then 13756 symcode='[ABCDEGRST]' 13757 fi 13758 ;; 13759 irix* | nonstopux*) 13760 symcode='[BCDEGRST]' 13761 ;; 13762 osf*) 13763 symcode='[BCDEGQRST]' 13764 ;; 13765 solaris*) 13766 symcode='[BDRT]' 13767 ;; 13768 sco3.2v5*) 13769 symcode='[DT]' 13770 ;; 13771 sysv4.2uw2*) 13772 symcode='[DT]' 13773 ;; 13774 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13775 symcode='[ABDT]' 13776 ;; 13777 sysv4) 13778 symcode='[DFNSTU]' 13779 ;; 13780 esac 13781 13782 # If we're using GNU nm, then use its standard symbol codes. 13783 case `$NM -V 2>&1` in 13784 *GNU* | *'with BFD'*) 13785 symcode='[ABCDGIRSTW]' ;; 13786 esac 13787 13788 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13789 # Gets list of data symbols to import. 13790 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13791 # Adjust the below global symbol transforms to fixup imported variables. 13792 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13793 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13794 lt_c_name_lib_hook="\ 13795 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13796 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13797 else 13798 # Disable hooks by default. 13799 lt_cv_sys_global_symbol_to_import= 13800 lt_cdecl_hook= 13801 lt_c_name_hook= 13802 lt_c_name_lib_hook= 13803 fi 13804 13805 # Transform an extracted symbol line into a proper C declaration. 13806 # Some systems (esp. on ia64) link data and code symbols differently, 13807 # so use this general approach. 13808 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13809 $lt_cdecl_hook\ 13810 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13811 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13812 13813 # Transform an extracted symbol line into symbol name and symbol address 13814 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13815 $lt_c_name_hook\ 13816 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13817 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13818 13819 # Transform an extracted symbol line into symbol name with lib prefix and 13820 # symbol address. 13821 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13822 $lt_c_name_lib_hook\ 13823 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13824 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13825 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13826 13827 # Handle CRLF in mingw tool chain 13828 opt_cr= 13829 case $build_os in 13830 mingw*) 13831 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13832 ;; 13833 esac 13834 13835 # Try without a prefix underscore, then with it. 13836 for ac_symprfx in "" "_"; do 13837 13838 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13839 symxfrm="\\1 $ac_symprfx\\2 \\2" 13840 13841 # Write the raw and C identifiers. 13842 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13843 # Fake it for dumpbin and say T for any non-static function, 13844 # D for any global variable and I for any imported variable. 13845 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13846 # which start with @ or ?. 13847 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13848 " {last_section=section; section=\$ 3};"\ 13849 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13850 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13851 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13852 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13853 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13854 " \$ 0!~/External *\|/{next};"\ 13855 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13856 " {if(hide[section]) next};"\ 13857 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13858 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13859 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13860 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13861 " ' prfx=^$ac_symprfx" 13862 else 13863 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13864 fi 13865 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13866 13867 # Check to see that the pipe works correctly. 13868 pipe_works=no 13869 13870 rm -f conftest* 13871 cat > conftest.$ac_ext <<_LT_EOF 13872 #ifdef __cplusplus 13873 extern "C" { 13874 #endif 13875 char nm_test_var; 13876 void nm_test_func(void); 13877 void nm_test_func(void){} 13878 #ifdef __cplusplus 13879 } 13880 #endif 13881 int main(){nm_test_var='a';nm_test_func();return(0);} 13882 _LT_EOF 13883 13884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13885 (eval $ac_compile) 2>&5 13886 ac_status=$? 13887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13888 test $ac_status = 0; }; then 13889 # Now try to grab the symbols. 13890 nlist=conftest.nm 13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13892 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13893 ac_status=$? 13894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13895 test $ac_status = 0; } && test -s "$nlist"; then 13896 # Try sorting and uniquifying the output. 13897 if sort "$nlist" | uniq > "$nlist"T; then 13898 mv -f "$nlist"T "$nlist" 13899 else 13900 rm -f "$nlist"T 13901 fi 13902 13903 # Make sure that we snagged all the symbols we need. 13904 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13905 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13906 cat <<_LT_EOF > conftest.$ac_ext 13907 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13908 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13909 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13910 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13911 # define LT_DLSYM_CONST 13912 #elif defined __osf__ 13913 /* This system does not cope well with relocations in const data. */ 13914 # define LT_DLSYM_CONST 13915 #else 13916 # define LT_DLSYM_CONST const 13917 #endif 13918 13919 #ifdef __cplusplus 13920 extern "C" { 13921 #endif 13922 13923 _LT_EOF 13924 # Now generate the symbol file. 13925 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13926 13927 cat <<_LT_EOF >> conftest.$ac_ext 13928 13929 /* The mapping between symbol names and symbols. */ 13930 LT_DLSYM_CONST struct { 13931 const char *name; 13932 void *address; 13933 } 13934 lt__PROGRAM__LTX_preloaded_symbols[] = 13935 { 13936 { "@PROGRAM@", (void *) 0 }, 13937 _LT_EOF 13938 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13939 cat <<\_LT_EOF >> conftest.$ac_ext 13940 {0, (void *) 0} 13941 }; 13942 13943 /* This works around a problem in FreeBSD linker */ 13944 #ifdef FREEBSD_WORKAROUND 13945 static const void *lt_preloaded_setup() { 13946 return lt__PROGRAM__LTX_preloaded_symbols; 13947 } 13948 #endif 13949 13950 #ifdef __cplusplus 13951 } 13952 #endif 13953 _LT_EOF 13954 # Now try linking the two files. 13955 mv conftest.$ac_objext conftstm.$ac_objext 13956 lt_globsym_save_LIBS=$LIBS 13957 lt_globsym_save_CFLAGS=$CFLAGS 13958 LIBS=conftstm.$ac_objext 13959 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13961 (eval $ac_link) 2>&5 13962 ac_status=$? 13963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13964 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13965 pipe_works=yes 13966 fi 13967 LIBS=$lt_globsym_save_LIBS 13968 CFLAGS=$lt_globsym_save_CFLAGS 13969 else 13970 echo "cannot find nm_test_func in $nlist" >&5 13971 fi 13972 else 13973 echo "cannot find nm_test_var in $nlist" >&5 13974 fi 13975 else 13976 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13977 fi 13978 else 13979 echo "$progname: failed program was:" >&5 13980 cat conftest.$ac_ext >&5 13981 fi 13982 rm -rf conftest* conftst* 13983 13984 # Do not use the global_symbol_pipe unless it works. 13985 if test yes = "$pipe_works"; then 13986 break 13987 else 13988 lt_cv_sys_global_symbol_pipe= 13989 fi 13990 done 13991 13992 fi 13993 13994 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13995 lt_cv_sys_global_symbol_to_cdecl= 13996 fi 13997 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13999 printf "%s\n" "failed" >&6; } 14000 else 14001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14002 printf "%s\n" "ok" >&6; } 14003 fi 14004 14005 # Response file support. 14006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14007 nm_file_list_spec='@' 14008 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14009 nm_file_list_spec='@' 14010 fi 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14049 printf %s "checking for sysroot... " >&6; } 14050 14051 # Check whether --with-sysroot was given. 14052 if test ${with_sysroot+y} 14053 then : 14054 withval=$with_sysroot; 14055 else $as_nop 14056 with_sysroot=no 14057 fi 14058 14059 14060 lt_sysroot= 14061 case $with_sysroot in #( 14062 yes) 14063 if test yes = "$GCC"; then 14064 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14065 fi 14066 ;; #( 14067 /*) 14068 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 14069 ;; #( 14070 no|'') 14071 ;; #( 14072 *) 14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14074 printf "%s\n" "$with_sysroot" >&6; } 14075 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14076 ;; 14077 esac 14078 14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14080 printf "%s\n" "${lt_sysroot:-no}" >&6; } 14081 14082 14083 14084 14085 14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14087 printf %s "checking for a working dd... " >&6; } 14088 if test ${ac_cv_path_lt_DD+y} 14089 then : 14090 printf %s "(cached) " >&6 14091 else $as_nop 14092 printf 0123456789abcdef0123456789abcdef >conftest.i 14093 cat conftest.i conftest.i >conftest2.i 14094 : ${lt_DD:=$DD} 14095 if test -z "$lt_DD"; then 14096 ac_path_lt_DD_found=false 14097 # Loop through the user's path and test for each of PROGNAME-LIST 14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14099 for as_dir in $PATH 14100 do 14101 IFS=$as_save_IFS 14102 case $as_dir in #((( 14103 '') as_dir=./ ;; 14104 */) ;; 14105 *) as_dir=$as_dir/ ;; 14106 esac 14107 for ac_prog in dd 14108 do 14109 for ac_exec_ext in '' $ac_executable_extensions; do 14110 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14111 as_fn_executable_p "$ac_path_lt_DD" || continue 14112 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14113 cmp -s conftest.i conftest.out \ 14114 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14115 fi 14116 $ac_path_lt_DD_found && break 3 14117 done 14118 done 14119 done 14120 IFS=$as_save_IFS 14121 if test -z "$ac_cv_path_lt_DD"; then 14122 : 14123 fi 14124 else 14125 ac_cv_path_lt_DD=$lt_DD 14126 fi 14127 14128 rm -f conftest.i conftest2.i conftest.out 14129 fi 14130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14131 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14132 14133 14134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14135 printf %s "checking how to truncate binary pipes... " >&6; } 14136 if test ${lt_cv_truncate_bin+y} 14137 then : 14138 printf %s "(cached) " >&6 14139 else $as_nop 14140 printf 0123456789abcdef0123456789abcdef >conftest.i 14141 cat conftest.i conftest.i >conftest2.i 14142 lt_cv_truncate_bin= 14143 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14144 cmp -s conftest.i conftest.out \ 14145 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14146 fi 14147 rm -f conftest.i conftest2.i conftest.out 14148 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 14149 fi 14150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14151 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14152 14153 14154 14155 14156 14157 14158 14159 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14160 func_cc_basename () 14161 { 14162 for cc_temp in $*""; do 14163 case $cc_temp in 14164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14166 \-*) ;; 14167 *) break;; 14168 esac 14169 done 14170 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14171 } 14172 14173 # Check whether --enable-libtool-lock was given. 14174 if test ${enable_libtool_lock+y} 14175 then : 14176 enableval=$enable_libtool_lock; 14177 fi 14178 14179 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14180 14181 # Some flags need to be propagated to the compiler or linker for good 14182 # libtool support. 14183 case $host in 14184 ia64-*-hpux*) 14185 # Find out what ABI is being produced by ac_compile, and set mode 14186 # options accordingly. 14187 echo 'int i;' > conftest.$ac_ext 14188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14189 (eval $ac_compile) 2>&5 14190 ac_status=$? 14191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14192 test $ac_status = 0; }; then 14193 case `$FILECMD conftest.$ac_objext` in 14194 *ELF-32*) 14195 HPUX_IA64_MODE=32 14196 ;; 14197 *ELF-64*) 14198 HPUX_IA64_MODE=64 14199 ;; 14200 esac 14201 fi 14202 rm -rf conftest* 14203 ;; 14204 *-*-irix6*) 14205 # Find out what ABI is being produced by ac_compile, and set linker 14206 # options accordingly. 14207 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14209 (eval $ac_compile) 2>&5 14210 ac_status=$? 14211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14212 test $ac_status = 0; }; then 14213 if test yes = "$lt_cv_prog_gnu_ld"; then 14214 case `$FILECMD conftest.$ac_objext` in 14215 *32-bit*) 14216 LD="${LD-ld} -melf32bsmip" 14217 ;; 14218 *N32*) 14219 LD="${LD-ld} -melf32bmipn32" 14220 ;; 14221 *64-bit*) 14222 LD="${LD-ld} -melf64bmip" 14223 ;; 14224 esac 14225 else 14226 case `$FILECMD conftest.$ac_objext` in 14227 *32-bit*) 14228 LD="${LD-ld} -32" 14229 ;; 14230 *N32*) 14231 LD="${LD-ld} -n32" 14232 ;; 14233 *64-bit*) 14234 LD="${LD-ld} -64" 14235 ;; 14236 esac 14237 fi 14238 fi 14239 rm -rf conftest* 14240 ;; 14241 14242 mips64*-*linux*) 14243 # Find out what ABI is being produced by ac_compile, and set linker 14244 # options accordingly. 14245 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14247 (eval $ac_compile) 2>&5 14248 ac_status=$? 14249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14250 test $ac_status = 0; }; then 14251 emul=elf 14252 case `$FILECMD conftest.$ac_objext` in 14253 *32-bit*) 14254 emul="${emul}32" 14255 ;; 14256 *64-bit*) 14257 emul="${emul}64" 14258 ;; 14259 esac 14260 case `$FILECMD conftest.$ac_objext` in 14261 *MSB*) 14262 emul="${emul}btsmip" 14263 ;; 14264 *LSB*) 14265 emul="${emul}ltsmip" 14266 ;; 14267 esac 14268 case `$FILECMD conftest.$ac_objext` in 14269 *N32*) 14270 emul="${emul}n32" 14271 ;; 14272 esac 14273 LD="${LD-ld} -m $emul" 14274 fi 14275 rm -rf conftest* 14276 ;; 14277 14278 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14279 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14280 # Find out what ABI is being produced by ac_compile, and set linker 14281 # options accordingly. Note that the listed cases only cover the 14282 # situations where additional linker options are needed (such as when 14283 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14284 # vice versa); the common cases where no linker options are needed do 14285 # not appear in the list. 14286 echo 'int i;' > conftest.$ac_ext 14287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14288 (eval $ac_compile) 2>&5 14289 ac_status=$? 14290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14291 test $ac_status = 0; }; then 14292 case `$FILECMD conftest.o` in 14293 *32-bit*) 14294 case $host in 14295 x86_64-*kfreebsd*-gnu) 14296 LD="${LD-ld} -m elf_i386_fbsd" 14297 ;; 14298 x86_64-*linux*) 14299 case `$FILECMD conftest.o` in 14300 *x86-64*) 14301 LD="${LD-ld} -m elf32_x86_64" 14302 ;; 14303 *) 14304 LD="${LD-ld} -m elf_i386" 14305 ;; 14306 esac 14307 ;; 14308 powerpc64le-*linux*) 14309 LD="${LD-ld} -m elf32lppclinux" 14310 ;; 14311 powerpc64-*linux*) 14312 LD="${LD-ld} -m elf32ppclinux" 14313 ;; 14314 s390x-*linux*) 14315 LD="${LD-ld} -m elf_s390" 14316 ;; 14317 sparc64-*linux*) 14318 LD="${LD-ld} -m elf32_sparc" 14319 ;; 14320 esac 14321 ;; 14322 *64-bit*) 14323 case $host in 14324 x86_64-*kfreebsd*-gnu) 14325 LD="${LD-ld} -m elf_x86_64_fbsd" 14326 ;; 14327 x86_64-*linux*) 14328 LD="${LD-ld} -m elf_x86_64" 14329 ;; 14330 powerpcle-*linux*) 14331 LD="${LD-ld} -m elf64lppc" 14332 ;; 14333 powerpc-*linux*) 14334 LD="${LD-ld} -m elf64ppc" 14335 ;; 14336 s390*-*linux*|s390*-*tpf*) 14337 LD="${LD-ld} -m elf64_s390" 14338 ;; 14339 sparc*-*linux*) 14340 LD="${LD-ld} -m elf64_sparc" 14341 ;; 14342 esac 14343 ;; 14344 esac 14345 fi 14346 rm -rf conftest* 14347 ;; 14348 14349 *-*-sco3.2v5*) 14350 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14351 SAVE_CFLAGS=$CFLAGS 14352 CFLAGS="$CFLAGS -belf" 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14354 printf %s "checking whether the C compiler needs -belf... " >&6; } 14355 if test ${lt_cv_cc_needs_belf+y} 14356 then : 14357 printf %s "(cached) " >&6 14358 else $as_nop 14359 ac_ext=c 14360 ac_cpp='$CPP $CPPFLAGS' 14361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14363 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14364 14365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14366 /* end confdefs.h. */ 14367 14368 int 14369 main (void) 14370 { 14371 14372 ; 14373 return 0; 14374 } 14375 _ACEOF 14376 if ac_fn_c_try_link "$LINENO" 14377 then : 14378 lt_cv_cc_needs_belf=yes 14379 else $as_nop 14380 lt_cv_cc_needs_belf=no 14381 fi 14382 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14383 conftest$ac_exeext conftest.$ac_ext 14384 ac_ext=c 14385 ac_cpp='$CPP $CPPFLAGS' 14386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14388 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14389 14390 fi 14391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14392 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14393 if test yes != "$lt_cv_cc_needs_belf"; then 14394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14395 CFLAGS=$SAVE_CFLAGS 14396 fi 14397 ;; 14398 *-*solaris*) 14399 # Find out what ABI is being produced by ac_compile, and set linker 14400 # options accordingly. 14401 echo 'int i;' > conftest.$ac_ext 14402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14403 (eval $ac_compile) 2>&5 14404 ac_status=$? 14405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14406 test $ac_status = 0; }; then 14407 case `$FILECMD conftest.o` in 14408 *64-bit*) 14409 case $lt_cv_prog_gnu_ld in 14410 yes*) 14411 case $host in 14412 i?86-*-solaris*|x86_64-*-solaris*) 14413 LD="${LD-ld} -m elf_x86_64" 14414 ;; 14415 sparc*-*-solaris*) 14416 LD="${LD-ld} -m elf64_sparc" 14417 ;; 14418 esac 14419 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14420 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14421 LD=${LD-ld}_sol2 14422 fi 14423 ;; 14424 *) 14425 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14426 LD="${LD-ld} -64" 14427 fi 14428 ;; 14429 esac 14430 ;; 14431 esac 14432 fi 14433 rm -rf conftest* 14434 ;; 14435 esac 14436 14437 need_locks=$enable_libtool_lock 14438 14439 if test -n "$ac_tool_prefix"; then 14440 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14441 set dummy ${ac_tool_prefix}mt; ac_word=$2 14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14443 printf %s "checking for $ac_word... " >&6; } 14444 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14445 then : 14446 printf %s "(cached) " >&6 14447 else $as_nop 14448 if test -n "$MANIFEST_TOOL"; then 14449 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14450 else 14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14452 for as_dir in $PATH 14453 do 14454 IFS=$as_save_IFS 14455 case $as_dir in #((( 14456 '') as_dir=./ ;; 14457 */) ;; 14458 *) as_dir=$as_dir/ ;; 14459 esac 14460 for ac_exec_ext in '' $ac_executable_extensions; do 14461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14462 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14464 break 2 14465 fi 14466 done 14467 done 14468 IFS=$as_save_IFS 14469 14470 fi 14471 fi 14472 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14473 if test -n "$MANIFEST_TOOL"; then 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14475 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14476 else 14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14478 printf "%s\n" "no" >&6; } 14479 fi 14480 14481 14482 fi 14483 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14484 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14485 # Extract the first word of "mt", so it can be a program name with args. 14486 set dummy mt; ac_word=$2 14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14488 printf %s "checking for $ac_word... " >&6; } 14489 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14490 then : 14491 printf %s "(cached) " >&6 14492 else $as_nop 14493 if test -n "$ac_ct_MANIFEST_TOOL"; then 14494 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14495 else 14496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14497 for as_dir in $PATH 14498 do 14499 IFS=$as_save_IFS 14500 case $as_dir in #((( 14501 '') as_dir=./ ;; 14502 */) ;; 14503 *) as_dir=$as_dir/ ;; 14504 esac 14505 for ac_exec_ext in '' $ac_executable_extensions; do 14506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14507 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14509 break 2 14510 fi 14511 done 14512 done 14513 IFS=$as_save_IFS 14514 14515 fi 14516 fi 14517 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14518 if test -n "$ac_ct_MANIFEST_TOOL"; then 14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14520 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14521 else 14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14523 printf "%s\n" "no" >&6; } 14524 fi 14525 14526 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14527 MANIFEST_TOOL=":" 14528 else 14529 case $cross_compiling:$ac_tool_warned in 14530 yes:) 14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14533 ac_tool_warned=yes ;; 14534 esac 14535 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14536 fi 14537 else 14538 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14539 fi 14540 14541 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14543 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14544 if test ${lt_cv_path_mainfest_tool+y} 14545 then : 14546 printf %s "(cached) " >&6 14547 else $as_nop 14548 lt_cv_path_mainfest_tool=no 14549 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14550 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14551 cat conftest.err >&5 14552 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14553 lt_cv_path_mainfest_tool=yes 14554 fi 14555 rm -f conftest* 14556 fi 14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14558 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14559 if test yes != "$lt_cv_path_mainfest_tool"; then 14560 MANIFEST_TOOL=: 14561 fi 14562 14563 14564 14565 14566 14567 14568 case $host_os in 14569 rhapsody* | darwin*) 14570 if test -n "$ac_tool_prefix"; then 14571 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14572 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14574 printf %s "checking for $ac_word... " >&6; } 14575 if test ${ac_cv_prog_DSYMUTIL+y} 14576 then : 14577 printf %s "(cached) " >&6 14578 else $as_nop 14579 if test -n "$DSYMUTIL"; then 14580 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14581 else 14582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14583 for as_dir in $PATH 14584 do 14585 IFS=$as_save_IFS 14586 case $as_dir in #((( 14587 '') as_dir=./ ;; 14588 */) ;; 14589 *) as_dir=$as_dir/ ;; 14590 esac 14591 for ac_exec_ext in '' $ac_executable_extensions; do 14592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14593 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14595 break 2 14596 fi 14597 done 14598 done 14599 IFS=$as_save_IFS 14600 14601 fi 14602 fi 14603 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14604 if test -n "$DSYMUTIL"; then 14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14606 printf "%s\n" "$DSYMUTIL" >&6; } 14607 else 14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14609 printf "%s\n" "no" >&6; } 14610 fi 14611 14612 14613 fi 14614 if test -z "$ac_cv_prog_DSYMUTIL"; then 14615 ac_ct_DSYMUTIL=$DSYMUTIL 14616 # Extract the first word of "dsymutil", so it can be a program name with args. 14617 set dummy dsymutil; ac_word=$2 14618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14619 printf %s "checking for $ac_word... " >&6; } 14620 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14621 then : 14622 printf %s "(cached) " >&6 14623 else $as_nop 14624 if test -n "$ac_ct_DSYMUTIL"; then 14625 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14626 else 14627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14628 for as_dir in $PATH 14629 do 14630 IFS=$as_save_IFS 14631 case $as_dir in #((( 14632 '') as_dir=./ ;; 14633 */) ;; 14634 *) as_dir=$as_dir/ ;; 14635 esac 14636 for ac_exec_ext in '' $ac_executable_extensions; do 14637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14638 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14640 break 2 14641 fi 14642 done 14643 done 14644 IFS=$as_save_IFS 14645 14646 fi 14647 fi 14648 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14649 if test -n "$ac_ct_DSYMUTIL"; then 14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14651 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14652 else 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14654 printf "%s\n" "no" >&6; } 14655 fi 14656 14657 if test "x$ac_ct_DSYMUTIL" = x; then 14658 DSYMUTIL=":" 14659 else 14660 case $cross_compiling:$ac_tool_warned in 14661 yes:) 14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14663 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14664 ac_tool_warned=yes ;; 14665 esac 14666 DSYMUTIL=$ac_ct_DSYMUTIL 14667 fi 14668 else 14669 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14670 fi 14671 14672 if test -n "$ac_tool_prefix"; then 14673 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14674 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14676 printf %s "checking for $ac_word... " >&6; } 14677 if test ${ac_cv_prog_NMEDIT+y} 14678 then : 14679 printf %s "(cached) " >&6 14680 else $as_nop 14681 if test -n "$NMEDIT"; then 14682 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14683 else 14684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14685 for as_dir in $PATH 14686 do 14687 IFS=$as_save_IFS 14688 case $as_dir in #((( 14689 '') as_dir=./ ;; 14690 */) ;; 14691 *) as_dir=$as_dir/ ;; 14692 esac 14693 for ac_exec_ext in '' $ac_executable_extensions; do 14694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14695 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14697 break 2 14698 fi 14699 done 14700 done 14701 IFS=$as_save_IFS 14702 14703 fi 14704 fi 14705 NMEDIT=$ac_cv_prog_NMEDIT 14706 if test -n "$NMEDIT"; then 14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14708 printf "%s\n" "$NMEDIT" >&6; } 14709 else 14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14711 printf "%s\n" "no" >&6; } 14712 fi 14713 14714 14715 fi 14716 if test -z "$ac_cv_prog_NMEDIT"; then 14717 ac_ct_NMEDIT=$NMEDIT 14718 # Extract the first word of "nmedit", so it can be a program name with args. 14719 set dummy nmedit; ac_word=$2 14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14721 printf %s "checking for $ac_word... " >&6; } 14722 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14723 then : 14724 printf %s "(cached) " >&6 14725 else $as_nop 14726 if test -n "$ac_ct_NMEDIT"; then 14727 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14728 else 14729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14730 for as_dir in $PATH 14731 do 14732 IFS=$as_save_IFS 14733 case $as_dir in #((( 14734 '') as_dir=./ ;; 14735 */) ;; 14736 *) as_dir=$as_dir/ ;; 14737 esac 14738 for ac_exec_ext in '' $ac_executable_extensions; do 14739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14740 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14742 break 2 14743 fi 14744 done 14745 done 14746 IFS=$as_save_IFS 14747 14748 fi 14749 fi 14750 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14751 if test -n "$ac_ct_NMEDIT"; then 14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14753 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14754 else 14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14756 printf "%s\n" "no" >&6; } 14757 fi 14758 14759 if test "x$ac_ct_NMEDIT" = x; then 14760 NMEDIT=":" 14761 else 14762 case $cross_compiling:$ac_tool_warned in 14763 yes:) 14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14765 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14766 ac_tool_warned=yes ;; 14767 esac 14768 NMEDIT=$ac_ct_NMEDIT 14769 fi 14770 else 14771 NMEDIT="$ac_cv_prog_NMEDIT" 14772 fi 14773 14774 if test -n "$ac_tool_prefix"; then 14775 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14776 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14778 printf %s "checking for $ac_word... " >&6; } 14779 if test ${ac_cv_prog_LIPO+y} 14780 then : 14781 printf %s "(cached) " >&6 14782 else $as_nop 14783 if test -n "$LIPO"; then 14784 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14785 else 14786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14787 for as_dir in $PATH 14788 do 14789 IFS=$as_save_IFS 14790 case $as_dir in #((( 14791 '') as_dir=./ ;; 14792 */) ;; 14793 *) as_dir=$as_dir/ ;; 14794 esac 14795 for ac_exec_ext in '' $ac_executable_extensions; do 14796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14797 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14799 break 2 14800 fi 14801 done 14802 done 14803 IFS=$as_save_IFS 14804 14805 fi 14806 fi 14807 LIPO=$ac_cv_prog_LIPO 14808 if test -n "$LIPO"; then 14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14810 printf "%s\n" "$LIPO" >&6; } 14811 else 14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14813 printf "%s\n" "no" >&6; } 14814 fi 14815 14816 14817 fi 14818 if test -z "$ac_cv_prog_LIPO"; then 14819 ac_ct_LIPO=$LIPO 14820 # Extract the first word of "lipo", so it can be a program name with args. 14821 set dummy lipo; ac_word=$2 14822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14823 printf %s "checking for $ac_word... " >&6; } 14824 if test ${ac_cv_prog_ac_ct_LIPO+y} 14825 then : 14826 printf %s "(cached) " >&6 14827 else $as_nop 14828 if test -n "$ac_ct_LIPO"; then 14829 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14830 else 14831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14832 for as_dir in $PATH 14833 do 14834 IFS=$as_save_IFS 14835 case $as_dir in #((( 14836 '') as_dir=./ ;; 14837 */) ;; 14838 *) as_dir=$as_dir/ ;; 14839 esac 14840 for ac_exec_ext in '' $ac_executable_extensions; do 14841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14842 ac_cv_prog_ac_ct_LIPO="lipo" 14843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14844 break 2 14845 fi 14846 done 14847 done 14848 IFS=$as_save_IFS 14849 14850 fi 14851 fi 14852 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14853 if test -n "$ac_ct_LIPO"; then 14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14855 printf "%s\n" "$ac_ct_LIPO" >&6; } 14856 else 14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14858 printf "%s\n" "no" >&6; } 14859 fi 14860 14861 if test "x$ac_ct_LIPO" = x; then 14862 LIPO=":" 14863 else 14864 case $cross_compiling:$ac_tool_warned in 14865 yes:) 14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14867 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14868 ac_tool_warned=yes ;; 14869 esac 14870 LIPO=$ac_ct_LIPO 14871 fi 14872 else 14873 LIPO="$ac_cv_prog_LIPO" 14874 fi 14875 14876 if test -n "$ac_tool_prefix"; then 14877 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14878 set dummy ${ac_tool_prefix}otool; ac_word=$2 14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14880 printf %s "checking for $ac_word... " >&6; } 14881 if test ${ac_cv_prog_OTOOL+y} 14882 then : 14883 printf %s "(cached) " >&6 14884 else $as_nop 14885 if test -n "$OTOOL"; then 14886 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14887 else 14888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14889 for as_dir in $PATH 14890 do 14891 IFS=$as_save_IFS 14892 case $as_dir in #((( 14893 '') as_dir=./ ;; 14894 */) ;; 14895 *) as_dir=$as_dir/ ;; 14896 esac 14897 for ac_exec_ext in '' $ac_executable_extensions; do 14898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14899 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14901 break 2 14902 fi 14903 done 14904 done 14905 IFS=$as_save_IFS 14906 14907 fi 14908 fi 14909 OTOOL=$ac_cv_prog_OTOOL 14910 if test -n "$OTOOL"; then 14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14912 printf "%s\n" "$OTOOL" >&6; } 14913 else 14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14915 printf "%s\n" "no" >&6; } 14916 fi 14917 14918 14919 fi 14920 if test -z "$ac_cv_prog_OTOOL"; then 14921 ac_ct_OTOOL=$OTOOL 14922 # Extract the first word of "otool", so it can be a program name with args. 14923 set dummy otool; ac_word=$2 14924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14925 printf %s "checking for $ac_word... " >&6; } 14926 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14927 then : 14928 printf %s "(cached) " >&6 14929 else $as_nop 14930 if test -n "$ac_ct_OTOOL"; then 14931 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14932 else 14933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14934 for as_dir in $PATH 14935 do 14936 IFS=$as_save_IFS 14937 case $as_dir in #((( 14938 '') as_dir=./ ;; 14939 */) ;; 14940 *) as_dir=$as_dir/ ;; 14941 esac 14942 for ac_exec_ext in '' $ac_executable_extensions; do 14943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14944 ac_cv_prog_ac_ct_OTOOL="otool" 14945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14946 break 2 14947 fi 14948 done 14949 done 14950 IFS=$as_save_IFS 14951 14952 fi 14953 fi 14954 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14955 if test -n "$ac_ct_OTOOL"; then 14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14957 printf "%s\n" "$ac_ct_OTOOL" >&6; } 14958 else 14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14960 printf "%s\n" "no" >&6; } 14961 fi 14962 14963 if test "x$ac_ct_OTOOL" = x; then 14964 OTOOL=":" 14965 else 14966 case $cross_compiling:$ac_tool_warned in 14967 yes:) 14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14969 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14970 ac_tool_warned=yes ;; 14971 esac 14972 OTOOL=$ac_ct_OTOOL 14973 fi 14974 else 14975 OTOOL="$ac_cv_prog_OTOOL" 14976 fi 14977 14978 if test -n "$ac_tool_prefix"; then 14979 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14980 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14982 printf %s "checking for $ac_word... " >&6; } 14983 if test ${ac_cv_prog_OTOOL64+y} 14984 then : 14985 printf %s "(cached) " >&6 14986 else $as_nop 14987 if test -n "$OTOOL64"; then 14988 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14989 else 14990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14991 for as_dir in $PATH 14992 do 14993 IFS=$as_save_IFS 14994 case $as_dir in #((( 14995 '') as_dir=./ ;; 14996 */) ;; 14997 *) as_dir=$as_dir/ ;; 14998 esac 14999 for ac_exec_ext in '' $ac_executable_extensions; do 15000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15001 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15003 break 2 15004 fi 15005 done 15006 done 15007 IFS=$as_save_IFS 15008 15009 fi 15010 fi 15011 OTOOL64=$ac_cv_prog_OTOOL64 15012 if test -n "$OTOOL64"; then 15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15014 printf "%s\n" "$OTOOL64" >&6; } 15015 else 15016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15017 printf "%s\n" "no" >&6; } 15018 fi 15019 15020 15021 fi 15022 if test -z "$ac_cv_prog_OTOOL64"; then 15023 ac_ct_OTOOL64=$OTOOL64 15024 # Extract the first word of "otool64", so it can be a program name with args. 15025 set dummy otool64; ac_word=$2 15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15027 printf %s "checking for $ac_word... " >&6; } 15028 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15029 then : 15030 printf %s "(cached) " >&6 15031 else $as_nop 15032 if test -n "$ac_ct_OTOOL64"; then 15033 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15034 else 15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15036 for as_dir in $PATH 15037 do 15038 IFS=$as_save_IFS 15039 case $as_dir in #((( 15040 '') as_dir=./ ;; 15041 */) ;; 15042 *) as_dir=$as_dir/ ;; 15043 esac 15044 for ac_exec_ext in '' $ac_executable_extensions; do 15045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15046 ac_cv_prog_ac_ct_OTOOL64="otool64" 15047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15048 break 2 15049 fi 15050 done 15051 done 15052 IFS=$as_save_IFS 15053 15054 fi 15055 fi 15056 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15057 if test -n "$ac_ct_OTOOL64"; then 15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15059 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15060 else 15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15062 printf "%s\n" "no" >&6; } 15063 fi 15064 15065 if test "x$ac_ct_OTOOL64" = x; then 15066 OTOOL64=":" 15067 else 15068 case $cross_compiling:$ac_tool_warned in 15069 yes:) 15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15072 ac_tool_warned=yes ;; 15073 esac 15074 OTOOL64=$ac_ct_OTOOL64 15075 fi 15076 else 15077 OTOOL64="$ac_cv_prog_OTOOL64" 15078 fi 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15107 printf %s "checking for -single_module linker flag... " >&6; } 15108 if test ${lt_cv_apple_cc_single_mod+y} 15109 then : 15110 printf %s "(cached) " >&6 15111 else $as_nop 15112 lt_cv_apple_cc_single_mod=no 15113 if test -z "$LT_MULTI_MODULE"; then 15114 # By default we will add the -single_module flag. You can override 15115 # by either setting the environment variable LT_MULTI_MODULE 15116 # non-empty at configure time, or by adding -multi_module to the 15117 # link flags. 15118 rm -rf libconftest.dylib* 15119 echo "int foo(void){return 1;}" > conftest.c 15120 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15121 -dynamiclib -Wl,-single_module conftest.c" >&5 15122 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15123 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15124 _lt_result=$? 15125 # If there is a non-empty error log, and "single_module" 15126 # appears in it, assume the flag caused a linker warning 15127 if test -s conftest.err && $GREP single_module conftest.err; then 15128 cat conftest.err >&5 15129 # Otherwise, if the output was created with a 0 exit code from 15130 # the compiler, it worked. 15131 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15132 lt_cv_apple_cc_single_mod=yes 15133 else 15134 cat conftest.err >&5 15135 fi 15136 rm -rf libconftest.dylib* 15137 rm -f conftest.* 15138 fi 15139 fi 15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15141 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15142 15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15144 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15145 if test ${lt_cv_ld_exported_symbols_list+y} 15146 then : 15147 printf %s "(cached) " >&6 15148 else $as_nop 15149 lt_cv_ld_exported_symbols_list=no 15150 save_LDFLAGS=$LDFLAGS 15151 echo "_main" > conftest.sym 15152 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15154 /* end confdefs.h. */ 15155 15156 int 15157 main (void) 15158 { 15159 15160 ; 15161 return 0; 15162 } 15163 _ACEOF 15164 if ac_fn_c_try_link "$LINENO" 15165 then : 15166 lt_cv_ld_exported_symbols_list=yes 15167 else $as_nop 15168 lt_cv_ld_exported_symbols_list=no 15169 fi 15170 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15171 conftest$ac_exeext conftest.$ac_ext 15172 LDFLAGS=$save_LDFLAGS 15173 15174 fi 15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15176 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15177 15178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15179 printf %s "checking for -force_load linker flag... " >&6; } 15180 if test ${lt_cv_ld_force_load+y} 15181 then : 15182 printf %s "(cached) " >&6 15183 else $as_nop 15184 lt_cv_ld_force_load=no 15185 cat > conftest.c << _LT_EOF 15186 int forced_loaded() { return 2;} 15187 _LT_EOF 15188 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15189 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15190 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 15191 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 15192 echo "$RANLIB libconftest.a" >&5 15193 $RANLIB libconftest.a 2>&5 15194 cat > conftest.c << _LT_EOF 15195 int main() { return 0;} 15196 _LT_EOF 15197 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15198 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15199 _lt_result=$? 15200 if test -s conftest.err && $GREP force_load conftest.err; then 15201 cat conftest.err >&5 15202 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15203 lt_cv_ld_force_load=yes 15204 else 15205 cat conftest.err >&5 15206 fi 15207 rm -f conftest.err libconftest.a conftest conftest.c 15208 rm -rf conftest.dSYM 15209 15210 fi 15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15212 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15213 case $host_os in 15214 rhapsody* | darwin1.[012]) 15215 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15216 darwin1.*) 15217 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15218 darwin*) 15219 case $MACOSX_DEPLOYMENT_TARGET,$host in 15220 10.[012],*|,*powerpc*-darwin[5-8]*) 15221 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15222 *) 15223 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15224 esac 15225 ;; 15226 esac 15227 if test yes = "$lt_cv_apple_cc_single_mod"; then 15228 _lt_dar_single_mod='$single_module' 15229 fi 15230 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15231 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15232 else 15233 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15234 fi 15235 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15236 _lt_dsymutil='~$DSYMUTIL $lib || :' 15237 else 15238 _lt_dsymutil= 15239 fi 15240 ;; 15241 esac 15242 15243 # func_munge_path_list VARIABLE PATH 15244 # ----------------------------------- 15245 # VARIABLE is name of variable containing _space_ separated list of 15246 # directories to be munged by the contents of PATH, which is string 15247 # having a format: 15248 # "DIR[:DIR]:" 15249 # string "DIR[ DIR]" will be prepended to VARIABLE 15250 # ":DIR[:DIR]" 15251 # string "DIR[ DIR]" will be appended to VARIABLE 15252 # "DIRP[:DIRP]::[DIRA:]DIRA" 15253 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15254 # "DIRA[ DIRA]" will be appended to VARIABLE 15255 # "DIR[:DIR]" 15256 # VARIABLE will be replaced by "DIR[ DIR]" 15257 func_munge_path_list () 15258 { 15259 case x$2 in 15260 x) 15261 ;; 15262 *:) 15263 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15264 ;; 15265 x:*) 15266 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15267 ;; 15268 *::*) 15269 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15270 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15271 ;; 15272 *) 15273 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15274 ;; 15275 esac 15276 } 15277 15278 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15279 " 15280 if test "x$ac_cv_header_dlfcn_h" = xyes 15281 then : 15282 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15283 15284 fi 15285 15286 15287 15288 15289 15290 # Set options 15291 15292 15293 15294 enable_dlopen=no 15295 15296 15297 enable_win32_dll=no 15298 15299 15300 # Check whether --enable-shared was given. 15301 if test ${enable_shared+y} 15302 then : 15303 enableval=$enable_shared; p=${PACKAGE-default} 15304 case $enableval in 15305 yes) enable_shared=yes ;; 15306 no) enable_shared=no ;; 15307 *) 15308 enable_shared=no 15309 # Look at the argument we got. We use all the common list separators. 15310 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15311 for pkg in $enableval; do 15312 IFS=$lt_save_ifs 15313 if test "X$pkg" = "X$p"; then 15314 enable_shared=yes 15315 fi 15316 done 15317 IFS=$lt_save_ifs 15318 ;; 15319 esac 15320 else $as_nop 15321 enable_shared=yes 15322 fi 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 # Check whether --with-pic was given. 15335 if test ${with_pic+y} 15336 then : 15337 withval=$with_pic; lt_p=${PACKAGE-default} 15338 case $withval in 15339 yes|no) pic_mode=$withval ;; 15340 *) 15341 pic_mode=default 15342 # Look at the argument we got. We use all the common list separators. 15343 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15344 for lt_pkg in $withval; do 15345 IFS=$lt_save_ifs 15346 if test "X$lt_pkg" = "X$lt_p"; then 15347 pic_mode=yes 15348 fi 15349 done 15350 IFS=$lt_save_ifs 15351 ;; 15352 esac 15353 else $as_nop 15354 pic_mode=default 15355 fi 15356 15357 15358 15359 15360 15361 15362 15363 15364 # Check whether --enable-fast-install was given. 15365 if test ${enable_fast_install+y} 15366 then : 15367 enableval=$enable_fast_install; p=${PACKAGE-default} 15368 case $enableval in 15369 yes) enable_fast_install=yes ;; 15370 no) enable_fast_install=no ;; 15371 *) 15372 enable_fast_install=no 15373 # Look at the argument we got. We use all the common list separators. 15374 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15375 for pkg in $enableval; do 15376 IFS=$lt_save_ifs 15377 if test "X$pkg" = "X$p"; then 15378 enable_fast_install=yes 15379 fi 15380 done 15381 IFS=$lt_save_ifs 15382 ;; 15383 esac 15384 else $as_nop 15385 enable_fast_install=yes 15386 fi 15387 15388 15389 15390 15391 15392 15393 15394 15395 shared_archive_member_spec= 15396 case $host,$enable_shared in 15397 power*-*-aix[5-9]*,yes) 15398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15399 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15400 15401 # Check whether --with-aix-soname was given. 15402 if test ${with_aix_soname+y} 15403 then : 15404 withval=$with_aix_soname; case $withval in 15405 aix|svr4|both) 15406 ;; 15407 *) 15408 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15409 ;; 15410 esac 15411 lt_cv_with_aix_soname=$with_aix_soname 15412 else $as_nop 15413 if test ${lt_cv_with_aix_soname+y} 15414 then : 15415 printf %s "(cached) " >&6 15416 else $as_nop 15417 lt_cv_with_aix_soname=aix 15418 fi 15419 15420 with_aix_soname=$lt_cv_with_aix_soname 15421 fi 15422 15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15424 printf "%s\n" "$with_aix_soname" >&6; } 15425 if test aix != "$with_aix_soname"; then 15426 # For the AIX way of multilib, we name the shared archive member 15427 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15428 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15429 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15430 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15431 if test 64 = "${OBJECT_MODE-32}"; then 15432 shared_archive_member_spec=shr_64 15433 else 15434 shared_archive_member_spec=shr 15435 fi 15436 fi 15437 ;; 15438 *) 15439 with_aix_soname=aix 15440 ;; 15441 esac 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 # This can be used to rebuild libtool when needed 15453 LIBTOOL_DEPS=$ltmain 15454 15455 # Always use our own libtool. 15456 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 test -z "$LN_S" && LN_S="ln -s" 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 if test -n "${ZSH_VERSION+set}"; then 15503 setopt NO_GLOB_SUBST 15504 fi 15505 15506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15507 printf %s "checking for objdir... " >&6; } 15508 if test ${lt_cv_objdir+y} 15509 then : 15510 printf %s "(cached) " >&6 15511 else $as_nop 15512 rm -f .libs 2>/dev/null 15513 mkdir .libs 2>/dev/null 15514 if test -d .libs; then 15515 lt_cv_objdir=.libs 15516 else 15517 # MS-DOS does not allow filenames that begin with a dot. 15518 lt_cv_objdir=_libs 15519 fi 15520 rmdir .libs 2>/dev/null 15521 fi 15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15523 printf "%s\n" "$lt_cv_objdir" >&6; } 15524 objdir=$lt_cv_objdir 15525 15526 15527 15528 15529 15530 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15531 15532 15533 15534 15535 case $host_os in 15536 aix3*) 15537 # AIX sometimes has problems with the GCC collect2 program. For some 15538 # reason, if we set the COLLECT_NAMES environment variable, the problems 15539 # vanish in a puff of smoke. 15540 if test set != "${COLLECT_NAMES+set}"; then 15541 COLLECT_NAMES= 15542 export COLLECT_NAMES 15543 fi 15544 ;; 15545 esac 15546 15547 # Global variables: 15548 ofile=libtool 15549 can_build_shared=yes 15550 15551 # All known linkers require a '.a' archive for static linking (except MSVC and 15552 # ICC, which need '.lib'). 15553 libext=a 15554 15555 with_gnu_ld=$lt_cv_prog_gnu_ld 15556 15557 old_CC=$CC 15558 old_CFLAGS=$CFLAGS 15559 15560 # Set sane defaults for various variables 15561 test -z "$CC" && CC=cc 15562 test -z "$LTCC" && LTCC=$CC 15563 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15564 test -z "$LD" && LD=ld 15565 test -z "$ac_objext" && ac_objext=o 15566 15567 func_cc_basename $compiler 15568 cc_basename=$func_cc_basename_result 15569 15570 15571 # Only perform the check for file, if the check method requires it 15572 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15573 case $deplibs_check_method in 15574 file_magic*) 15575 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15577 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15578 if test ${lt_cv_path_MAGIC_CMD+y} 15579 then : 15580 printf %s "(cached) " >&6 15581 else $as_nop 15582 case $MAGIC_CMD in 15583 [\\/*] | ?:[\\/]*) 15584 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15585 ;; 15586 *) 15587 lt_save_MAGIC_CMD=$MAGIC_CMD 15588 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15590 for ac_dir in $ac_dummy; do 15591 IFS=$lt_save_ifs 15592 test -z "$ac_dir" && ac_dir=. 15593 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15594 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15595 if test -n "$file_magic_test_file"; then 15596 case $deplibs_check_method in 15597 "file_magic "*) 15598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15599 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15601 $EGREP "$file_magic_regex" > /dev/null; then 15602 : 15603 else 15604 cat <<_LT_EOF 1>&2 15605 15606 *** Warning: the command libtool uses to detect shared libraries, 15607 *** $file_magic_cmd, produces output that libtool cannot recognize. 15608 *** The result is that libtool may fail to recognize shared libraries 15609 *** as such. This will affect the creation of libtool libraries that 15610 *** depend on shared libraries, but programs linked with such libtool 15611 *** libraries will work regardless of this problem. Nevertheless, you 15612 *** may want to report the problem to your system manager and/or to 15613 *** bug-libtool@gnu.org 15614 15615 _LT_EOF 15616 fi ;; 15617 esac 15618 fi 15619 break 15620 fi 15621 done 15622 IFS=$lt_save_ifs 15623 MAGIC_CMD=$lt_save_MAGIC_CMD 15624 ;; 15625 esac 15626 fi 15627 15628 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15629 if test -n "$MAGIC_CMD"; then 15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15631 printf "%s\n" "$MAGIC_CMD" >&6; } 15632 else 15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15634 printf "%s\n" "no" >&6; } 15635 fi 15636 15637 15638 15639 15640 15641 if test -z "$lt_cv_path_MAGIC_CMD"; then 15642 if test -n "$ac_tool_prefix"; then 15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15644 printf %s "checking for file... " >&6; } 15645 if test ${lt_cv_path_MAGIC_CMD+y} 15646 then : 15647 printf %s "(cached) " >&6 15648 else $as_nop 15649 case $MAGIC_CMD in 15650 [\\/*] | ?:[\\/]*) 15651 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15652 ;; 15653 *) 15654 lt_save_MAGIC_CMD=$MAGIC_CMD 15655 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15656 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15657 for ac_dir in $ac_dummy; do 15658 IFS=$lt_save_ifs 15659 test -z "$ac_dir" && ac_dir=. 15660 if test -f "$ac_dir/file"; then 15661 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15662 if test -n "$file_magic_test_file"; then 15663 case $deplibs_check_method in 15664 "file_magic "*) 15665 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15666 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15667 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15668 $EGREP "$file_magic_regex" > /dev/null; then 15669 : 15670 else 15671 cat <<_LT_EOF 1>&2 15672 15673 *** Warning: the command libtool uses to detect shared libraries, 15674 *** $file_magic_cmd, produces output that libtool cannot recognize. 15675 *** The result is that libtool may fail to recognize shared libraries 15676 *** as such. This will affect the creation of libtool libraries that 15677 *** depend on shared libraries, but programs linked with such libtool 15678 *** libraries will work regardless of this problem. Nevertheless, you 15679 *** may want to report the problem to your system manager and/or to 15680 *** bug-libtool@gnu.org 15681 15682 _LT_EOF 15683 fi ;; 15684 esac 15685 fi 15686 break 15687 fi 15688 done 15689 IFS=$lt_save_ifs 15690 MAGIC_CMD=$lt_save_MAGIC_CMD 15691 ;; 15692 esac 15693 fi 15694 15695 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15696 if test -n "$MAGIC_CMD"; then 15697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15698 printf "%s\n" "$MAGIC_CMD" >&6; } 15699 else 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15701 printf "%s\n" "no" >&6; } 15702 fi 15703 15704 15705 else 15706 MAGIC_CMD=: 15707 fi 15708 fi 15709 15710 fi 15711 ;; 15712 esac 15713 15714 # Use C for the default configuration in the libtool script 15715 15716 lt_save_CC=$CC 15717 ac_ext=c 15718 ac_cpp='$CPP $CPPFLAGS' 15719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15721 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15722 15723 15724 # Source file extension for C test sources. 15725 ac_ext=c 15726 15727 # Object file extension for compiled C test sources. 15728 objext=o 15729 objext=$objext 15730 15731 # Code to be used in simple compile tests 15732 lt_simple_compile_test_code="int some_variable = 0;" 15733 15734 # Code to be used in simple link tests 15735 lt_simple_link_test_code='int main(){return(0);}' 15736 15737 15738 15739 15740 15741 15742 15743 # If no C compiler was specified, use CC. 15744 LTCC=${LTCC-"$CC"} 15745 15746 # If no C compiler flags were specified, use CFLAGS. 15747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15748 15749 # Allow CC to be a program name with arguments. 15750 compiler=$CC 15751 15752 # Save the default compiler, since it gets overwritten when the other 15753 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15754 compiler_DEFAULT=$CC 15755 15756 # save warnings/boilerplate of simple test code 15757 ac_outfile=conftest.$ac_objext 15758 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15759 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15760 _lt_compiler_boilerplate=`cat conftest.err` 15761 $RM conftest* 15762 15763 ac_outfile=conftest.$ac_objext 15764 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15765 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15766 _lt_linker_boilerplate=`cat conftest.err` 15767 $RM -r conftest* 15768 15769 15770 if test -n "$compiler"; then 15771 15772 lt_prog_compiler_no_builtin_flag= 15773 15774 if test yes = "$GCC"; then 15775 case $cc_basename in 15776 nvcc*) 15777 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15778 *) 15779 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15780 esac 15781 15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15783 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15784 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15785 then : 15786 printf %s "(cached) " >&6 15787 else $as_nop 15788 lt_cv_prog_compiler_rtti_exceptions=no 15789 ac_outfile=conftest.$ac_objext 15790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15791 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15792 # Insert the option either (1) after the last *FLAGS variable, or 15793 # (2) before a word containing "conftest.", or (3) at the end. 15794 # Note that $ac_compile itself does not contain backslashes and begins 15795 # with a dollar sign (not a hyphen), so the echo should work correctly. 15796 # The option is referenced via a variable to avoid confusing sed. 15797 lt_compile=`echo "$ac_compile" | $SED \ 15798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15800 -e 's:$: $lt_compiler_flag:'` 15801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15802 (eval "$lt_compile" 2>conftest.err) 15803 ac_status=$? 15804 cat conftest.err >&5 15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15806 if (exit $ac_status) && test -s "$ac_outfile"; then 15807 # The compiler can only warn and ignore the option if not recognized 15808 # So say no if there are warnings other than the usual output. 15809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15812 lt_cv_prog_compiler_rtti_exceptions=yes 15813 fi 15814 fi 15815 $RM conftest* 15816 15817 fi 15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15819 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15820 15821 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15822 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15823 else 15824 : 15825 fi 15826 15827 fi 15828 15829 15830 15831 15832 15833 15834 lt_prog_compiler_wl= 15835 lt_prog_compiler_pic= 15836 lt_prog_compiler_static= 15837 15838 15839 if test yes = "$GCC"; then 15840 lt_prog_compiler_wl='-Wl,' 15841 lt_prog_compiler_static='-static' 15842 15843 case $host_os in 15844 aix*) 15845 # All AIX code is PIC. 15846 if test ia64 = "$host_cpu"; then 15847 # AIX 5 now supports IA64 processor 15848 lt_prog_compiler_static='-Bstatic' 15849 fi 15850 lt_prog_compiler_pic='-fPIC' 15851 ;; 15852 15853 amigaos*) 15854 case $host_cpu in 15855 powerpc) 15856 # see comment about AmigaOS4 .so support 15857 lt_prog_compiler_pic='-fPIC' 15858 ;; 15859 m68k) 15860 # FIXME: we need at least 68020 code to build shared libraries, but 15861 # adding the '-m68020' flag to GCC prevents building anything better, 15862 # like '-m68040'. 15863 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15864 ;; 15865 esac 15866 ;; 15867 15868 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15869 # PIC is the default for these OSes. 15870 ;; 15871 15872 mingw* | cygwin* | pw32* | os2* | cegcc*) 15873 # This hack is so that the source file can tell whether it is being 15874 # built for inclusion in a dll (and should export symbols for example). 15875 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15876 # (--disable-auto-import) libraries 15877 lt_prog_compiler_pic='-DDLL_EXPORT' 15878 case $host_os in 15879 os2*) 15880 lt_prog_compiler_static='$wl-static' 15881 ;; 15882 esac 15883 ;; 15884 15885 darwin* | rhapsody*) 15886 # PIC is the default on this platform 15887 # Common symbols not allowed in MH_DYLIB files 15888 lt_prog_compiler_pic='-fno-common' 15889 ;; 15890 15891 haiku*) 15892 # PIC is the default for Haiku. 15893 # The "-static" flag exists, but is broken. 15894 lt_prog_compiler_static= 15895 ;; 15896 15897 hpux*) 15898 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15899 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15900 # sets the default TLS model and affects inlining. 15901 case $host_cpu in 15902 hppa*64*) 15903 # +Z the default 15904 ;; 15905 *) 15906 lt_prog_compiler_pic='-fPIC' 15907 ;; 15908 esac 15909 ;; 15910 15911 interix[3-9]*) 15912 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15913 # Instead, we relocate shared libraries at runtime. 15914 ;; 15915 15916 msdosdjgpp*) 15917 # Just because we use GCC doesn't mean we suddenly get shared libraries 15918 # on systems that don't support them. 15919 lt_prog_compiler_can_build_shared=no 15920 enable_shared=no 15921 ;; 15922 15923 *nto* | *qnx*) 15924 # QNX uses GNU C++, but need to define -shared option too, otherwise 15925 # it will coredump. 15926 lt_prog_compiler_pic='-fPIC -shared' 15927 ;; 15928 15929 sysv4*MP*) 15930 if test -d /usr/nec; then 15931 lt_prog_compiler_pic=-Kconform_pic 15932 fi 15933 ;; 15934 15935 *) 15936 lt_prog_compiler_pic='-fPIC' 15937 ;; 15938 esac 15939 15940 case $cc_basename in 15941 nvcc*) # Cuda Compiler Driver 2.2 15942 lt_prog_compiler_wl='-Xlinker ' 15943 if test -n "$lt_prog_compiler_pic"; then 15944 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15945 fi 15946 ;; 15947 esac 15948 else 15949 # PORTME Check for flag to pass linker flags through the system compiler. 15950 case $host_os in 15951 aix*) 15952 lt_prog_compiler_wl='-Wl,' 15953 if test ia64 = "$host_cpu"; then 15954 # AIX 5 now supports IA64 processor 15955 lt_prog_compiler_static='-Bstatic' 15956 else 15957 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15958 fi 15959 ;; 15960 15961 darwin* | rhapsody*) 15962 # PIC is the default on this platform 15963 # Common symbols not allowed in MH_DYLIB files 15964 lt_prog_compiler_pic='-fno-common' 15965 case $cc_basename in 15966 nagfor*) 15967 # NAG Fortran compiler 15968 lt_prog_compiler_wl='-Wl,-Wl,,' 15969 lt_prog_compiler_pic='-PIC' 15970 lt_prog_compiler_static='-Bstatic' 15971 ;; 15972 esac 15973 ;; 15974 15975 mingw* | cygwin* | pw32* | os2* | cegcc*) 15976 # This hack is so that the source file can tell whether it is being 15977 # built for inclusion in a dll (and should export symbols for example). 15978 lt_prog_compiler_pic='-DDLL_EXPORT' 15979 case $host_os in 15980 os2*) 15981 lt_prog_compiler_static='$wl-static' 15982 ;; 15983 esac 15984 ;; 15985 15986 hpux9* | hpux10* | hpux11*) 15987 lt_prog_compiler_wl='-Wl,' 15988 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15989 # not for PA HP-UX. 15990 case $host_cpu in 15991 hppa*64*|ia64*) 15992 # +Z the default 15993 ;; 15994 *) 15995 lt_prog_compiler_pic='+Z' 15996 ;; 15997 esac 15998 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15999 lt_prog_compiler_static='$wl-a ${wl}archive' 16000 ;; 16001 16002 irix5* | irix6* | nonstopux*) 16003 lt_prog_compiler_wl='-Wl,' 16004 # PIC (with -KPIC) is the default. 16005 lt_prog_compiler_static='-non_shared' 16006 ;; 16007 16008 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16009 case $cc_basename in 16010 # old Intel for x86_64, which still supported -KPIC. 16011 ecc*) 16012 lt_prog_compiler_wl='-Wl,' 16013 lt_prog_compiler_pic='-KPIC' 16014 lt_prog_compiler_static='-static' 16015 ;; 16016 # icc used to be incompatible with GCC. 16017 # ICC 10 doesn't accept -KPIC any more. 16018 icc* | ifort*) 16019 lt_prog_compiler_wl='-Wl,' 16020 lt_prog_compiler_pic='-fPIC' 16021 lt_prog_compiler_static='-static' 16022 ;; 16023 # Lahey Fortran 8.1. 16024 lf95*) 16025 lt_prog_compiler_wl='-Wl,' 16026 lt_prog_compiler_pic='--shared' 16027 lt_prog_compiler_static='--static' 16028 ;; 16029 nagfor*) 16030 # NAG Fortran compiler 16031 lt_prog_compiler_wl='-Wl,-Wl,,' 16032 lt_prog_compiler_pic='-PIC' 16033 lt_prog_compiler_static='-Bstatic' 16034 ;; 16035 tcc*) 16036 # Fabrice Bellard et al's Tiny C Compiler 16037 lt_prog_compiler_wl='-Wl,' 16038 lt_prog_compiler_pic='-fPIC' 16039 lt_prog_compiler_static='-static' 16040 ;; 16041 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16042 # Portland Group compilers (*not* the Pentium gcc compiler, 16043 # which looks to be a dead project) 16044 lt_prog_compiler_wl='-Wl,' 16045 lt_prog_compiler_pic='-fpic' 16046 lt_prog_compiler_static='-Bstatic' 16047 ;; 16048 ccc*) 16049 lt_prog_compiler_wl='-Wl,' 16050 # All Alpha code is PIC. 16051 lt_prog_compiler_static='-non_shared' 16052 ;; 16053 xl* | bgxl* | bgf* | mpixl*) 16054 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16055 lt_prog_compiler_wl='-Wl,' 16056 lt_prog_compiler_pic='-qpic' 16057 lt_prog_compiler_static='-qstaticlink' 16058 ;; 16059 *) 16060 case `$CC -V 2>&1 | $SED 5q` in 16061 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16062 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16063 lt_prog_compiler_pic='-KPIC' 16064 lt_prog_compiler_static='-Bstatic' 16065 lt_prog_compiler_wl='' 16066 ;; 16067 *Sun\ F* | *Sun*Fortran*) 16068 lt_prog_compiler_pic='-KPIC' 16069 lt_prog_compiler_static='-Bstatic' 16070 lt_prog_compiler_wl='-Qoption ld ' 16071 ;; 16072 *Sun\ C*) 16073 # Sun C 5.9 16074 lt_prog_compiler_pic='-KPIC' 16075 lt_prog_compiler_static='-Bstatic' 16076 lt_prog_compiler_wl='-Wl,' 16077 ;; 16078 *Intel*\ [CF]*Compiler*) 16079 lt_prog_compiler_wl='-Wl,' 16080 lt_prog_compiler_pic='-fPIC' 16081 lt_prog_compiler_static='-static' 16082 ;; 16083 *Portland\ Group*) 16084 lt_prog_compiler_wl='-Wl,' 16085 lt_prog_compiler_pic='-fpic' 16086 lt_prog_compiler_static='-Bstatic' 16087 ;; 16088 esac 16089 ;; 16090 esac 16091 ;; 16092 16093 newsos6) 16094 lt_prog_compiler_pic='-KPIC' 16095 lt_prog_compiler_static='-Bstatic' 16096 ;; 16097 16098 *nto* | *qnx*) 16099 # QNX uses GNU C++, but need to define -shared option too, otherwise 16100 # it will coredump. 16101 lt_prog_compiler_pic='-fPIC -shared' 16102 ;; 16103 16104 osf3* | osf4* | osf5*) 16105 lt_prog_compiler_wl='-Wl,' 16106 # All OSF/1 code is PIC. 16107 lt_prog_compiler_static='-non_shared' 16108 ;; 16109 16110 rdos*) 16111 lt_prog_compiler_static='-non_shared' 16112 ;; 16113 16114 solaris*) 16115 lt_prog_compiler_pic='-KPIC' 16116 lt_prog_compiler_static='-Bstatic' 16117 case $cc_basename in 16118 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16119 lt_prog_compiler_wl='-Qoption ld ';; 16120 *) 16121 lt_prog_compiler_wl='-Wl,';; 16122 esac 16123 ;; 16124 16125 sunos4*) 16126 lt_prog_compiler_wl='-Qoption ld ' 16127 lt_prog_compiler_pic='-PIC' 16128 lt_prog_compiler_static='-Bstatic' 16129 ;; 16130 16131 sysv4 | sysv4.2uw2* | sysv4.3*) 16132 lt_prog_compiler_wl='-Wl,' 16133 lt_prog_compiler_pic='-KPIC' 16134 lt_prog_compiler_static='-Bstatic' 16135 ;; 16136 16137 sysv4*MP*) 16138 if test -d /usr/nec; then 16139 lt_prog_compiler_pic='-Kconform_pic' 16140 lt_prog_compiler_static='-Bstatic' 16141 fi 16142 ;; 16143 16144 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16145 lt_prog_compiler_wl='-Wl,' 16146 lt_prog_compiler_pic='-KPIC' 16147 lt_prog_compiler_static='-Bstatic' 16148 ;; 16149 16150 unicos*) 16151 lt_prog_compiler_wl='-Wl,' 16152 lt_prog_compiler_can_build_shared=no 16153 ;; 16154 16155 uts4*) 16156 lt_prog_compiler_pic='-pic' 16157 lt_prog_compiler_static='-Bstatic' 16158 ;; 16159 16160 *) 16161 lt_prog_compiler_can_build_shared=no 16162 ;; 16163 esac 16164 fi 16165 16166 case $host_os in 16167 # For platforms that do not support PIC, -DPIC is meaningless: 16168 *djgpp*) 16169 lt_prog_compiler_pic= 16170 ;; 16171 *) 16172 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16173 ;; 16174 esac 16175 16176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16177 printf %s "checking for $compiler option to produce PIC... " >&6; } 16178 if test ${lt_cv_prog_compiler_pic+y} 16179 then : 16180 printf %s "(cached) " >&6 16181 else $as_nop 16182 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 16183 fi 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16185 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16186 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16187 16188 # 16189 # Check to make sure the PIC flag actually works. 16190 # 16191 if test -n "$lt_prog_compiler_pic"; then 16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16193 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16194 if test ${lt_cv_prog_compiler_pic_works+y} 16195 then : 16196 printf %s "(cached) " >&6 16197 else $as_nop 16198 lt_cv_prog_compiler_pic_works=no 16199 ac_outfile=conftest.$ac_objext 16200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16201 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16202 # Insert the option either (1) after the last *FLAGS variable, or 16203 # (2) before a word containing "conftest.", or (3) at the end. 16204 # Note that $ac_compile itself does not contain backslashes and begins 16205 # with a dollar sign (not a hyphen), so the echo should work correctly. 16206 # The option is referenced via a variable to avoid confusing sed. 16207 lt_compile=`echo "$ac_compile" | $SED \ 16208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16210 -e 's:$: $lt_compiler_flag:'` 16211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16212 (eval "$lt_compile" 2>conftest.err) 16213 ac_status=$? 16214 cat conftest.err >&5 16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16216 if (exit $ac_status) && test -s "$ac_outfile"; then 16217 # The compiler can only warn and ignore the option if not recognized 16218 # So say no if there are warnings other than the usual output. 16219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16222 lt_cv_prog_compiler_pic_works=yes 16223 fi 16224 fi 16225 $RM conftest* 16226 16227 fi 16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16229 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16230 16231 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16232 case $lt_prog_compiler_pic in 16233 "" | " "*) ;; 16234 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16235 esac 16236 else 16237 lt_prog_compiler_pic= 16238 lt_prog_compiler_can_build_shared=no 16239 fi 16240 16241 fi 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 # 16254 # Check to make sure the static flag actually works. 16255 # 16256 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16258 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16259 if test ${lt_cv_prog_compiler_static_works+y} 16260 then : 16261 printf %s "(cached) " >&6 16262 else $as_nop 16263 lt_cv_prog_compiler_static_works=no 16264 save_LDFLAGS=$LDFLAGS 16265 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16266 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16267 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16268 # The linker can only warn and ignore the option if not recognized 16269 # So say no if there are warnings 16270 if test -s conftest.err; then 16271 # Append any errors to the config.log. 16272 cat conftest.err 1>&5 16273 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16275 if diff conftest.exp conftest.er2 >/dev/null; then 16276 lt_cv_prog_compiler_static_works=yes 16277 fi 16278 else 16279 lt_cv_prog_compiler_static_works=yes 16280 fi 16281 fi 16282 $RM -r conftest* 16283 LDFLAGS=$save_LDFLAGS 16284 16285 fi 16286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16287 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16288 16289 if test yes = "$lt_cv_prog_compiler_static_works"; then 16290 : 16291 else 16292 lt_prog_compiler_static= 16293 fi 16294 16295 16296 16297 16298 16299 16300 16301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16302 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16303 if test ${lt_cv_prog_compiler_c_o+y} 16304 then : 16305 printf %s "(cached) " >&6 16306 else $as_nop 16307 lt_cv_prog_compiler_c_o=no 16308 $RM -r conftest 2>/dev/null 16309 mkdir conftest 16310 cd conftest 16311 mkdir out 16312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16313 16314 lt_compiler_flag="-o out/conftest2.$ac_objext" 16315 # Insert the option either (1) after the last *FLAGS variable, or 16316 # (2) before a word containing "conftest.", or (3) at the end. 16317 # Note that $ac_compile itself does not contain backslashes and begins 16318 # with a dollar sign (not a hyphen), so the echo should work correctly. 16319 lt_compile=`echo "$ac_compile" | $SED \ 16320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16322 -e 's:$: $lt_compiler_flag:'` 16323 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16324 (eval "$lt_compile" 2>out/conftest.err) 16325 ac_status=$? 16326 cat out/conftest.err >&5 16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16328 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16329 then 16330 # The compiler can only warn and ignore the option if not recognized 16331 # So say no if there are warnings 16332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16335 lt_cv_prog_compiler_c_o=yes 16336 fi 16337 fi 16338 chmod u+w . 2>&5 16339 $RM conftest* 16340 # SGI C++ compiler will create directory out/ii_files/ for 16341 # template instantiation 16342 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16343 $RM out/* && rmdir out 16344 cd .. 16345 $RM -r conftest 16346 $RM conftest* 16347 16348 fi 16349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16350 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16351 16352 16353 16354 16355 16356 16357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16358 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16359 if test ${lt_cv_prog_compiler_c_o+y} 16360 then : 16361 printf %s "(cached) " >&6 16362 else $as_nop 16363 lt_cv_prog_compiler_c_o=no 16364 $RM -r conftest 2>/dev/null 16365 mkdir conftest 16366 cd conftest 16367 mkdir out 16368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16369 16370 lt_compiler_flag="-o out/conftest2.$ac_objext" 16371 # Insert the option either (1) after the last *FLAGS variable, or 16372 # (2) before a word containing "conftest.", or (3) at the end. 16373 # Note that $ac_compile itself does not contain backslashes and begins 16374 # with a dollar sign (not a hyphen), so the echo should work correctly. 16375 lt_compile=`echo "$ac_compile" | $SED \ 16376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16378 -e 's:$: $lt_compiler_flag:'` 16379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16380 (eval "$lt_compile" 2>out/conftest.err) 16381 ac_status=$? 16382 cat out/conftest.err >&5 16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16384 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16385 then 16386 # The compiler can only warn and ignore the option if not recognized 16387 # So say no if there are warnings 16388 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16389 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16390 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16391 lt_cv_prog_compiler_c_o=yes 16392 fi 16393 fi 16394 chmod u+w . 2>&5 16395 $RM conftest* 16396 # SGI C++ compiler will create directory out/ii_files/ for 16397 # template instantiation 16398 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16399 $RM out/* && rmdir out 16400 cd .. 16401 $RM -r conftest 16402 $RM conftest* 16403 16404 fi 16405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16406 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16407 16408 16409 16410 16411 hard_links=nottested 16412 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16413 # do not overwrite the value of need_locks provided by the user 16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16415 printf %s "checking if we can lock with hard links... " >&6; } 16416 hard_links=yes 16417 $RM conftest* 16418 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16419 touch conftest.a 16420 ln conftest.a conftest.b 2>&5 || hard_links=no 16421 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16423 printf "%s\n" "$hard_links" >&6; } 16424 if test no = "$hard_links"; then 16425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16426 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16427 need_locks=warn 16428 fi 16429 else 16430 need_locks=no 16431 fi 16432 16433 16434 16435 16436 16437 16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16439 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16440 16441 runpath_var= 16442 allow_undefined_flag= 16443 always_export_symbols=no 16444 archive_cmds= 16445 archive_expsym_cmds= 16446 compiler_needs_object=no 16447 enable_shared_with_static_runtimes=no 16448 export_dynamic_flag_spec= 16449 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16450 hardcode_automatic=no 16451 hardcode_direct=no 16452 hardcode_direct_absolute=no 16453 hardcode_libdir_flag_spec= 16454 hardcode_libdir_separator= 16455 hardcode_minus_L=no 16456 hardcode_shlibpath_var=unsupported 16457 inherit_rpath=no 16458 link_all_deplibs=unknown 16459 module_cmds= 16460 module_expsym_cmds= 16461 old_archive_from_new_cmds= 16462 old_archive_from_expsyms_cmds= 16463 thread_safe_flag_spec= 16464 whole_archive_flag_spec= 16465 # include_expsyms should be a list of space-separated symbols to be *always* 16466 # included in the symbol list 16467 include_expsyms= 16468 # exclude_expsyms can be an extended regexp of symbols to exclude 16469 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16470 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16471 # as well as any symbol that contains 'd'. 16472 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16473 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16474 # platforms (ab)use it in PIC code, but their linkers get confused if 16475 # the symbol is explicitly referenced. Since portable code cannot 16476 # rely on this symbol name, it's probably fine to never include it in 16477 # preloaded symbol tables. 16478 # Exclude shared library initialization/finalization symbols. 16479 extract_expsyms_cmds= 16480 16481 case $host_os in 16482 cygwin* | mingw* | pw32* | cegcc*) 16483 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16484 # When not using gcc, we currently assume that we are using 16485 # Microsoft Visual C++ or Intel C++ Compiler. 16486 if test yes != "$GCC"; then 16487 with_gnu_ld=no 16488 fi 16489 ;; 16490 interix*) 16491 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16492 with_gnu_ld=yes 16493 ;; 16494 openbsd* | bitrig*) 16495 with_gnu_ld=no 16496 ;; 16497 esac 16498 16499 ld_shlibs=yes 16500 16501 # On some targets, GNU ld is compatible enough with the native linker 16502 # that we're better off using the native interface for both. 16503 lt_use_gnu_ld_interface=no 16504 if test yes = "$with_gnu_ld"; then 16505 case $host_os in 16506 aix*) 16507 # The AIX port of GNU ld has always aspired to compatibility 16508 # with the native linker. However, as the warning in the GNU ld 16509 # block says, versions before 2.19.5* couldn't really create working 16510 # shared libraries, regardless of the interface used. 16511 case `$LD -v 2>&1` in 16512 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16513 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16514 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16515 *) 16516 lt_use_gnu_ld_interface=yes 16517 ;; 16518 esac 16519 ;; 16520 *) 16521 lt_use_gnu_ld_interface=yes 16522 ;; 16523 esac 16524 fi 16525 16526 if test yes = "$lt_use_gnu_ld_interface"; then 16527 # If archive_cmds runs LD, not CC, wlarc should be empty 16528 wlarc='$wl' 16529 16530 # Set some defaults for GNU ld with shared library support. These 16531 # are reset later if shared libraries are not supported. Putting them 16532 # here allows them to be overridden if necessary. 16533 runpath_var=LD_RUN_PATH 16534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16535 export_dynamic_flag_spec='$wl--export-dynamic' 16536 # ancient GNU ld didn't support --whole-archive et. al. 16537 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16538 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16539 else 16540 whole_archive_flag_spec= 16541 fi 16542 supports_anon_versioning=no 16543 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16544 *GNU\ gold*) supports_anon_versioning=yes ;; 16545 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16546 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16547 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16548 *\ 2.11.*) ;; # other 2.11 versions 16549 *) supports_anon_versioning=yes ;; 16550 esac 16551 16552 # See if GNU ld supports shared libraries. 16553 case $host_os in 16554 aix[3-9]*) 16555 # On AIX/PPC, the GNU linker is very broken 16556 if test ia64 != "$host_cpu"; then 16557 ld_shlibs=no 16558 cat <<_LT_EOF 1>&2 16559 16560 *** Warning: the GNU linker, at least up to release 2.19, is reported 16561 *** to be unable to reliably create shared libraries on AIX. 16562 *** Therefore, libtool is disabling shared libraries support. If you 16563 *** really care for shared libraries, you may want to install binutils 16564 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16565 *** You will then need to restart the configuration process. 16566 16567 _LT_EOF 16568 fi 16569 ;; 16570 16571 amigaos*) 16572 case $host_cpu in 16573 powerpc) 16574 # see comment about AmigaOS4 .so support 16575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16576 archive_expsym_cmds='' 16577 ;; 16578 m68k) 16579 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)' 16580 hardcode_libdir_flag_spec='-L$libdir' 16581 hardcode_minus_L=yes 16582 ;; 16583 esac 16584 ;; 16585 16586 beos*) 16587 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16588 allow_undefined_flag=unsupported 16589 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16590 # support --undefined. This deserves some investigation. FIXME 16591 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16592 else 16593 ld_shlibs=no 16594 fi 16595 ;; 16596 16597 cygwin* | mingw* | pw32* | cegcc*) 16598 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16599 # as there is no search path for DLLs. 16600 hardcode_libdir_flag_spec='-L$libdir' 16601 export_dynamic_flag_spec='$wl--export-all-symbols' 16602 allow_undefined_flag=unsupported 16603 always_export_symbols=no 16604 enable_shared_with_static_runtimes=yes 16605 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' 16606 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16607 16608 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16610 # If the export-symbols file already is a .def file, use it as 16611 # is; otherwise, prepend EXPORTS... 16612 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16613 cp $export_symbols $output_objdir/$soname.def; 16614 else 16615 echo EXPORTS > $output_objdir/$soname.def; 16616 cat $export_symbols >> $output_objdir/$soname.def; 16617 fi~ 16618 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16619 else 16620 ld_shlibs=no 16621 fi 16622 ;; 16623 16624 haiku*) 16625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16626 link_all_deplibs=yes 16627 ;; 16628 16629 os2*) 16630 hardcode_libdir_flag_spec='-L$libdir' 16631 hardcode_minus_L=yes 16632 allow_undefined_flag=unsupported 16633 shrext_cmds=.dll 16634 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16635 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16636 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16637 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16638 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16639 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16640 emximp -o $lib $output_objdir/$libname.def' 16641 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16642 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16643 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16644 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16645 prefix_cmds="$SED"~ 16646 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16647 prefix_cmds="$prefix_cmds -e 1d"; 16648 fi~ 16649 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16650 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16651 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16652 emximp -o $lib $output_objdir/$libname.def' 16653 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16654 enable_shared_with_static_runtimes=yes 16655 file_list_spec='@' 16656 ;; 16657 16658 interix[3-9]*) 16659 hardcode_direct=no 16660 hardcode_shlibpath_var=no 16661 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16662 export_dynamic_flag_spec='$wl-E' 16663 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16664 # Instead, shared libraries are loaded at an image base (0x10000000 by 16665 # default) and relocated if they conflict, which is a slow very memory 16666 # consuming and fragmenting process. To avoid this, we pick a random, 16667 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16668 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16669 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16670 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' 16671 ;; 16672 16673 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16674 tmp_diet=no 16675 if test linux-dietlibc = "$host_os"; then 16676 case $cc_basename in 16677 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16678 esac 16679 fi 16680 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16681 && test no = "$tmp_diet" 16682 then 16683 tmp_addflag=' $pic_flag' 16684 tmp_sharedflag='-shared' 16685 case $cc_basename,$host_cpu in 16686 pgcc*) # Portland Group C compiler 16687 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' 16688 tmp_addflag=' $pic_flag' 16689 ;; 16690 pgf77* | pgf90* | pgf95* | pgfortran*) 16691 # Portland Group f77 and f90 compilers 16692 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' 16693 tmp_addflag=' $pic_flag -Mnomain' ;; 16694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16695 tmp_addflag=' -i_dynamic' ;; 16696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16697 tmp_addflag=' -i_dynamic -nofor_main' ;; 16698 ifc* | ifort*) # Intel Fortran compiler 16699 tmp_addflag=' -nofor_main' ;; 16700 lf95*) # Lahey Fortran 8.1 16701 whole_archive_flag_spec= 16702 tmp_sharedflag='--shared' ;; 16703 nagfor*) # NAGFOR 5.3 16704 tmp_sharedflag='-Wl,-shared' ;; 16705 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16706 tmp_sharedflag='-qmkshrobj' 16707 tmp_addflag= ;; 16708 nvcc*) # Cuda Compiler Driver 2.2 16709 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' 16710 compiler_needs_object=yes 16711 ;; 16712 esac 16713 case `$CC -V 2>&1 | $SED 5q` in 16714 *Sun\ C*) # Sun C 5.9 16715 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' 16716 compiler_needs_object=yes 16717 tmp_sharedflag='-G' ;; 16718 *Sun\ F*) # Sun Fortran 8.3 16719 tmp_sharedflag='-G' ;; 16720 esac 16721 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16722 16723 if test yes = "$supports_anon_versioning"; then 16724 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16725 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16726 echo "local: *; };" >> $output_objdir/$libname.ver~ 16727 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16728 fi 16729 16730 case $cc_basename in 16731 tcc*) 16732 export_dynamic_flag_spec='-rdynamic' 16733 ;; 16734 xlf* | bgf* | bgxlf* | mpixlf*) 16735 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16736 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16738 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16739 if test yes = "$supports_anon_versioning"; then 16740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16741 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16742 echo "local: *; };" >> $output_objdir/$libname.ver~ 16743 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16744 fi 16745 ;; 16746 esac 16747 else 16748 ld_shlibs=no 16749 fi 16750 ;; 16751 16752 netbsd*) 16753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16755 wlarc= 16756 else 16757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16759 fi 16760 ;; 16761 16762 solaris*) 16763 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16764 ld_shlibs=no 16765 cat <<_LT_EOF 1>&2 16766 16767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16768 *** create shared libraries on Solaris systems. Therefore, libtool 16769 *** is disabling shared libraries support. We urge you to upgrade GNU 16770 *** binutils to release 2.9.1 or newer. Another option is to modify 16771 *** your PATH or compiler configuration so that the native linker is 16772 *** used, and then restart. 16773 16774 _LT_EOF 16775 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16776 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16777 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16778 else 16779 ld_shlibs=no 16780 fi 16781 ;; 16782 16783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16784 case `$LD -v 2>&1` in 16785 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16786 ld_shlibs=no 16787 cat <<_LT_EOF 1>&2 16788 16789 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16790 *** reliably create shared libraries on SCO systems. Therefore, libtool 16791 *** is disabling shared libraries support. We urge you to upgrade GNU 16792 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16793 *** your PATH or compiler configuration so that the native linker is 16794 *** used, and then restart. 16795 16796 _LT_EOF 16797 ;; 16798 *) 16799 # For security reasons, it is highly recommended that you always 16800 # use absolute paths for naming shared libraries, and exclude the 16801 # DT_RUNPATH tag from executables and libraries. But doing so 16802 # requires that you compile everything twice, which is a pain. 16803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16807 else 16808 ld_shlibs=no 16809 fi 16810 ;; 16811 esac 16812 ;; 16813 16814 sunos4*) 16815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16816 wlarc= 16817 hardcode_direct=yes 16818 hardcode_shlibpath_var=no 16819 ;; 16820 16821 *) 16822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16824 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16825 else 16826 ld_shlibs=no 16827 fi 16828 ;; 16829 esac 16830 16831 if test no = "$ld_shlibs"; then 16832 runpath_var= 16833 hardcode_libdir_flag_spec= 16834 export_dynamic_flag_spec= 16835 whole_archive_flag_spec= 16836 fi 16837 else 16838 # PORTME fill in a description of your system's linker (not GNU ld) 16839 case $host_os in 16840 aix3*) 16841 allow_undefined_flag=unsupported 16842 always_export_symbols=yes 16843 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' 16844 # Note: this linker hardcodes the directories in LIBPATH if there 16845 # are no directories specified by -L. 16846 hardcode_minus_L=yes 16847 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16848 # Neither direct hardcoding nor static linking is supported with a 16849 # broken collect2. 16850 hardcode_direct=unsupported 16851 fi 16852 ;; 16853 16854 aix[4-9]*) 16855 if test ia64 = "$host_cpu"; then 16856 # On IA64, the linker does run time linking by default, so we don't 16857 # have to do anything special. 16858 aix_use_runtimelinking=no 16859 exp_sym_flag='-Bexport' 16860 no_entry_flag= 16861 else 16862 # If we're using GNU nm, then we don't want the "-C" option. 16863 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16864 # Without the "-l" option, or with the "-B" option, AIX nm treats 16865 # weak defined symbols like other global defined symbols, whereas 16866 # GNU nm marks them as "W". 16867 # While the 'weak' keyword is ignored in the Export File, we need 16868 # it in the Import File for the 'aix-soname' feature, so we have 16869 # to replace the "-B" option with "-P" for AIX nm. 16870 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16871 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' 16872 else 16873 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' 16874 fi 16875 aix_use_runtimelinking=no 16876 16877 # Test if we are trying to use run time linking or normal 16878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16879 # have runtime linking enabled, and use it for executables. 16880 # For shared libraries, we enable/disable runtime linking 16881 # depending on the kind of the shared library created - 16882 # when "with_aix_soname,aix_use_runtimelinking" is: 16883 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16884 # "aix,yes" lib.so shared, rtl:yes, for executables 16885 # lib.a static archive 16886 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16887 # lib.a(lib.so.V) shared, rtl:no, for executables 16888 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16889 # lib.a(lib.so.V) shared, rtl:no 16890 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16891 # lib.a static archive 16892 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16893 for ld_flag in $LDFLAGS; do 16894 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16895 aix_use_runtimelinking=yes 16896 break 16897 fi 16898 done 16899 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16900 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16901 # so we don't have lib.a shared libs to link our executables. 16902 # We have to force runtime linking in this case. 16903 aix_use_runtimelinking=yes 16904 LDFLAGS="$LDFLAGS -Wl,-brtl" 16905 fi 16906 ;; 16907 esac 16908 16909 exp_sym_flag='-bexport' 16910 no_entry_flag='-bnoentry' 16911 fi 16912 16913 # When large executables or shared objects are built, AIX ld can 16914 # have problems creating the table of contents. If linking a library 16915 # or program results in "error TOC overflow" add -mminimal-toc to 16916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16918 16919 archive_cmds='' 16920 hardcode_direct=yes 16921 hardcode_direct_absolute=yes 16922 hardcode_libdir_separator=':' 16923 link_all_deplibs=yes 16924 file_list_spec='$wl-f,' 16925 case $with_aix_soname,$aix_use_runtimelinking in 16926 aix,*) ;; # traditional, no import file 16927 svr4,* | *,yes) # use import file 16928 # The Import File defines what to hardcode. 16929 hardcode_direct=no 16930 hardcode_direct_absolute=no 16931 ;; 16932 esac 16933 16934 if test yes = "$GCC"; then 16935 case $host_os in aix4.[012]|aix4.[012].*) 16936 # We only want to do this on AIX 4.2 and lower, the check 16937 # below for broken collect2 doesn't work under 4.3+ 16938 collect2name=`$CC -print-prog-name=collect2` 16939 if test -f "$collect2name" && 16940 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16941 then 16942 # We have reworked collect2 16943 : 16944 else 16945 # We have old collect2 16946 hardcode_direct=unsupported 16947 # It fails to find uninstalled libraries when the uninstalled 16948 # path is not listed in the libpath. Setting hardcode_minus_L 16949 # to unsupported forces relinking 16950 hardcode_minus_L=yes 16951 hardcode_libdir_flag_spec='-L$libdir' 16952 hardcode_libdir_separator= 16953 fi 16954 ;; 16955 esac 16956 shared_flag='-shared' 16957 if test yes = "$aix_use_runtimelinking"; then 16958 shared_flag="$shared_flag "'$wl-G' 16959 fi 16960 # Need to ensure runtime linking is disabled for the traditional 16961 # shared library, or the linker may eventually find shared libraries 16962 # /with/ Import File - we do not want to mix them. 16963 shared_flag_aix='-shared' 16964 shared_flag_svr4='-shared $wl-G' 16965 else 16966 # not using gcc 16967 if test ia64 = "$host_cpu"; then 16968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16969 # chokes on -Wl,-G. The following line is correct: 16970 shared_flag='-G' 16971 else 16972 if test yes = "$aix_use_runtimelinking"; then 16973 shared_flag='$wl-G' 16974 else 16975 shared_flag='$wl-bM:SRE' 16976 fi 16977 shared_flag_aix='$wl-bM:SRE' 16978 shared_flag_svr4='$wl-G' 16979 fi 16980 fi 16981 16982 export_dynamic_flag_spec='$wl-bexpall' 16983 # It seems that -bexpall does not export symbols beginning with 16984 # underscore (_), so it is better to generate a list of symbols to export. 16985 always_export_symbols=yes 16986 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16987 # Warning - without using the other runtime loading flags (-brtl), 16988 # -berok will link without error, but may produce a broken library. 16989 allow_undefined_flag='-berok' 16990 # Determine the default libpath from the value encoded in an 16991 # empty executable. 16992 if test set = "${lt_cv_aix_libpath+set}"; then 16993 aix_libpath=$lt_cv_aix_libpath 16994 else 16995 if test ${lt_cv_aix_libpath_+y} 16996 then : 16997 printf %s "(cached) " >&6 16998 else $as_nop 16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17000 /* end confdefs.h. */ 17001 17002 int 17003 main (void) 17004 { 17005 17006 ; 17007 return 0; 17008 } 17009 _ACEOF 17010 if ac_fn_c_try_link "$LINENO" 17011 then : 17012 17013 lt_aix_libpath_sed=' 17014 /Import File Strings/,/^$/ { 17015 /^0/ { 17016 s/^0 *\([^ ]*\) *$/\1/ 17017 p 17018 } 17019 }' 17020 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17021 # Check for a 64-bit object if we didn't find anything. 17022 if test -z "$lt_cv_aix_libpath_"; then 17023 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17024 fi 17025 fi 17026 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17027 conftest$ac_exeext conftest.$ac_ext 17028 if test -z "$lt_cv_aix_libpath_"; then 17029 lt_cv_aix_libpath_=/usr/lib:/lib 17030 fi 17031 17032 fi 17033 17034 aix_libpath=$lt_cv_aix_libpath_ 17035 fi 17036 17037 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17038 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 17039 else 17040 if test ia64 = "$host_cpu"; then 17041 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17042 allow_undefined_flag="-z nodefs" 17043 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" 17044 else 17045 # Determine the default libpath from the value encoded in an 17046 # empty executable. 17047 if test set = "${lt_cv_aix_libpath+set}"; then 17048 aix_libpath=$lt_cv_aix_libpath 17049 else 17050 if test ${lt_cv_aix_libpath_+y} 17051 then : 17052 printf %s "(cached) " >&6 17053 else $as_nop 17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055 /* end confdefs.h. */ 17056 17057 int 17058 main (void) 17059 { 17060 17061 ; 17062 return 0; 17063 } 17064 _ACEOF 17065 if ac_fn_c_try_link "$LINENO" 17066 then : 17067 17068 lt_aix_libpath_sed=' 17069 /Import File Strings/,/^$/ { 17070 /^0/ { 17071 s/^0 *\([^ ]*\) *$/\1/ 17072 p 17073 } 17074 }' 17075 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17076 # Check for a 64-bit object if we didn't find anything. 17077 if test -z "$lt_cv_aix_libpath_"; then 17078 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17079 fi 17080 fi 17081 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17082 conftest$ac_exeext conftest.$ac_ext 17083 if test -z "$lt_cv_aix_libpath_"; then 17084 lt_cv_aix_libpath_=/usr/lib:/lib 17085 fi 17086 17087 fi 17088 17089 aix_libpath=$lt_cv_aix_libpath_ 17090 fi 17091 17092 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17093 # Warning - without using the other run time loading flags, 17094 # -berok will link without error, but may produce a broken library. 17095 no_undefined_flag=' $wl-bernotok' 17096 allow_undefined_flag=' $wl-berok' 17097 if test yes = "$with_gnu_ld"; then 17098 # We only use this code for GNU lds that support --whole-archive. 17099 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17100 else 17101 # Exported symbols can be pulled into shared objects from archives 17102 whole_archive_flag_spec='$convenience' 17103 fi 17104 archive_cmds_need_lc=yes 17105 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17106 # -brtl affects multiple linker settings, -berok does not and is overridden later 17107 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17108 if test svr4 != "$with_aix_soname"; then 17109 # This is similar to how AIX traditionally builds its shared libraries. 17110 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' 17111 fi 17112 if test aix != "$with_aix_soname"; then 17113 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' 17114 else 17115 # used by -dlpreopen to get the symbols 17116 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17117 fi 17118 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17119 fi 17120 fi 17121 ;; 17122 17123 amigaos*) 17124 case $host_cpu in 17125 powerpc) 17126 # see comment about AmigaOS4 .so support 17127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17128 archive_expsym_cmds='' 17129 ;; 17130 m68k) 17131 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)' 17132 hardcode_libdir_flag_spec='-L$libdir' 17133 hardcode_minus_L=yes 17134 ;; 17135 esac 17136 ;; 17137 17138 bsdi[45]*) 17139 export_dynamic_flag_spec=-rdynamic 17140 ;; 17141 17142 cygwin* | mingw* | pw32* | cegcc*) 17143 # When not using gcc, we currently assume that we are using 17144 # Microsoft Visual C++ or Intel C++ Compiler. 17145 # hardcode_libdir_flag_spec is actually meaningless, as there is 17146 # no search path for DLLs. 17147 case $cc_basename in 17148 cl* | icl*) 17149 # Native MSVC or ICC 17150 hardcode_libdir_flag_spec=' ' 17151 allow_undefined_flag=unsupported 17152 always_export_symbols=yes 17153 file_list_spec='@' 17154 # Tell ltmain to make .lib files, not .a files. 17155 libext=lib 17156 # Tell ltmain to make .dll files, not .so files. 17157 shrext_cmds=.dll 17158 # FIXME: Setting linknames here is a bad hack. 17159 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17160 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17161 cp "$export_symbols" "$output_objdir/$soname.def"; 17162 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17163 else 17164 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17165 fi~ 17166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17167 linknames=' 17168 # The linker will not automatically build a static lib if we build a DLL. 17169 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17170 enable_shared_with_static_runtimes=yes 17171 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17173 # Don't use ranlib 17174 old_postinstall_cmds='chmod 644 $oldlib' 17175 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17176 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17177 case $lt_outputfile in 17178 *.exe|*.EXE) ;; 17179 *) 17180 lt_outputfile=$lt_outputfile.exe 17181 lt_tool_outputfile=$lt_tool_outputfile.exe 17182 ;; 17183 esac~ 17184 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17185 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17186 $RM "$lt_outputfile.manifest"; 17187 fi' 17188 ;; 17189 *) 17190 # Assume MSVC and ICC wrapper 17191 hardcode_libdir_flag_spec=' ' 17192 allow_undefined_flag=unsupported 17193 # Tell ltmain to make .lib files, not .a files. 17194 libext=lib 17195 # Tell ltmain to make .dll files, not .so files. 17196 shrext_cmds=.dll 17197 # FIXME: Setting linknames here is a bad hack. 17198 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17199 # The linker will automatically build a .lib file if we build a DLL. 17200 old_archive_from_new_cmds='true' 17201 # FIXME: Should let the user specify the lib program. 17202 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17203 enable_shared_with_static_runtimes=yes 17204 ;; 17205 esac 17206 ;; 17207 17208 darwin* | rhapsody*) 17209 17210 17211 archive_cmds_need_lc=no 17212 hardcode_direct=no 17213 hardcode_automatic=yes 17214 hardcode_shlibpath_var=unsupported 17215 if test yes = "$lt_cv_ld_force_load"; then 17216 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\"`' 17217 17218 else 17219 whole_archive_flag_spec='' 17220 fi 17221 link_all_deplibs=yes 17222 allow_undefined_flag=$_lt_dar_allow_undefined 17223 case $cc_basename in 17224 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17225 *) _lt_dar_can_shared=$GCC ;; 17226 esac 17227 if test yes = "$_lt_dar_can_shared"; then 17228 output_verbose_link_cmd=func_echo_all 17229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17231 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" 17232 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" 17233 17234 else 17235 ld_shlibs=no 17236 fi 17237 17238 ;; 17239 17240 dgux*) 17241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17242 hardcode_libdir_flag_spec='-L$libdir' 17243 hardcode_shlibpath_var=no 17244 ;; 17245 17246 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17247 # support. Future versions do this automatically, but an explicit c++rt0.o 17248 # does not break anything, and helps significantly (at the cost of a little 17249 # extra space). 17250 freebsd2.2*) 17251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17252 hardcode_libdir_flag_spec='-R$libdir' 17253 hardcode_direct=yes 17254 hardcode_shlibpath_var=no 17255 ;; 17256 17257 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17258 freebsd2.*) 17259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17260 hardcode_direct=yes 17261 hardcode_minus_L=yes 17262 hardcode_shlibpath_var=no 17263 ;; 17264 17265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17266 freebsd* | dragonfly* | midnightbsd*) 17267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17268 hardcode_libdir_flag_spec='-R$libdir' 17269 hardcode_direct=yes 17270 hardcode_shlibpath_var=no 17271 ;; 17272 17273 hpux9*) 17274 if test yes = "$GCC"; then 17275 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' 17276 else 17277 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' 17278 fi 17279 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17280 hardcode_libdir_separator=: 17281 hardcode_direct=yes 17282 17283 # hardcode_minus_L: Not really in the search PATH, 17284 # but as the default location of the library. 17285 hardcode_minus_L=yes 17286 export_dynamic_flag_spec='$wl-E' 17287 ;; 17288 17289 hpux10*) 17290 if test yes,no = "$GCC,$with_gnu_ld"; then 17291 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17292 else 17293 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17294 fi 17295 if test no = "$with_gnu_ld"; then 17296 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17297 hardcode_libdir_separator=: 17298 hardcode_direct=yes 17299 hardcode_direct_absolute=yes 17300 export_dynamic_flag_spec='$wl-E' 17301 # hardcode_minus_L: Not really in the search PATH, 17302 # but as the default location of the library. 17303 hardcode_minus_L=yes 17304 fi 17305 ;; 17306 17307 hpux11*) 17308 if test yes,no = "$GCC,$with_gnu_ld"; then 17309 case $host_cpu in 17310 hppa*64*) 17311 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17312 ;; 17313 ia64*) 17314 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17315 ;; 17316 *) 17317 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17318 ;; 17319 esac 17320 else 17321 case $host_cpu in 17322 hppa*64*) 17323 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17324 ;; 17325 ia64*) 17326 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17327 ;; 17328 *) 17329 17330 # Older versions of the 11.00 compiler do not understand -b yet 17331 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17333 printf %s "checking if $CC understands -b... " >&6; } 17334 if test ${lt_cv_prog_compiler__b+y} 17335 then : 17336 printf %s "(cached) " >&6 17337 else $as_nop 17338 lt_cv_prog_compiler__b=no 17339 save_LDFLAGS=$LDFLAGS 17340 LDFLAGS="$LDFLAGS -b" 17341 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17342 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17343 # The linker can only warn and ignore the option if not recognized 17344 # So say no if there are warnings 17345 if test -s conftest.err; then 17346 # Append any errors to the config.log. 17347 cat conftest.err 1>&5 17348 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17350 if diff conftest.exp conftest.er2 >/dev/null; then 17351 lt_cv_prog_compiler__b=yes 17352 fi 17353 else 17354 lt_cv_prog_compiler__b=yes 17355 fi 17356 fi 17357 $RM -r conftest* 17358 LDFLAGS=$save_LDFLAGS 17359 17360 fi 17361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17362 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17363 17364 if test yes = "$lt_cv_prog_compiler__b"; then 17365 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17366 else 17367 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17368 fi 17369 17370 ;; 17371 esac 17372 fi 17373 if test no = "$with_gnu_ld"; then 17374 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17375 hardcode_libdir_separator=: 17376 17377 case $host_cpu in 17378 hppa*64*|ia64*) 17379 hardcode_direct=no 17380 hardcode_shlibpath_var=no 17381 ;; 17382 *) 17383 hardcode_direct=yes 17384 hardcode_direct_absolute=yes 17385 export_dynamic_flag_spec='$wl-E' 17386 17387 # hardcode_minus_L: Not really in the search PATH, 17388 # but as the default location of the library. 17389 hardcode_minus_L=yes 17390 ;; 17391 esac 17392 fi 17393 ;; 17394 17395 irix5* | irix6* | nonstopux*) 17396 if test yes = "$GCC"; then 17397 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' 17398 # Try to use the -exported_symbol ld option, if it does not 17399 # work, assume that -exports_file does not work either and 17400 # implicitly export all symbols. 17401 # This should be the same for all languages, so no per-tag cache variable. 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17403 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17404 if test ${lt_cv_irix_exported_symbol+y} 17405 then : 17406 printf %s "(cached) " >&6 17407 else $as_nop 17408 save_LDFLAGS=$LDFLAGS 17409 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411 /* end confdefs.h. */ 17412 int foo (void) { return 0; } 17413 _ACEOF 17414 if ac_fn_c_try_link "$LINENO" 17415 then : 17416 lt_cv_irix_exported_symbol=yes 17417 else $as_nop 17418 lt_cv_irix_exported_symbol=no 17419 fi 17420 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17421 conftest$ac_exeext conftest.$ac_ext 17422 LDFLAGS=$save_LDFLAGS 17423 fi 17424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17425 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17426 if test yes = "$lt_cv_irix_exported_symbol"; then 17427 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' 17428 fi 17429 else 17430 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' 17431 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' 17432 fi 17433 archive_cmds_need_lc='no' 17434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17435 hardcode_libdir_separator=: 17436 inherit_rpath=yes 17437 link_all_deplibs=yes 17438 ;; 17439 17440 linux*) 17441 case $cc_basename in 17442 tcc*) 17443 # Fabrice Bellard et al's Tiny C Compiler 17444 ld_shlibs=yes 17445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17446 ;; 17447 esac 17448 ;; 17449 17450 netbsd*) 17451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17453 else 17454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17455 fi 17456 hardcode_libdir_flag_spec='-R$libdir' 17457 hardcode_direct=yes 17458 hardcode_shlibpath_var=no 17459 ;; 17460 17461 newsos6) 17462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17463 hardcode_direct=yes 17464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17465 hardcode_libdir_separator=: 17466 hardcode_shlibpath_var=no 17467 ;; 17468 17469 *nto* | *qnx*) 17470 ;; 17471 17472 openbsd* | bitrig*) 17473 if test -f /usr/libexec/ld.so; then 17474 hardcode_direct=yes 17475 hardcode_shlibpath_var=no 17476 hardcode_direct_absolute=yes 17477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17480 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17481 export_dynamic_flag_spec='$wl-E' 17482 else 17483 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17484 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17485 fi 17486 else 17487 ld_shlibs=no 17488 fi 17489 ;; 17490 17491 os2*) 17492 hardcode_libdir_flag_spec='-L$libdir' 17493 hardcode_minus_L=yes 17494 allow_undefined_flag=unsupported 17495 shrext_cmds=.dll 17496 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17497 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17498 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17499 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17500 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17501 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17502 emximp -o $lib $output_objdir/$libname.def' 17503 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17504 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17505 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17506 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17507 prefix_cmds="$SED"~ 17508 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17509 prefix_cmds="$prefix_cmds -e 1d"; 17510 fi~ 17511 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17512 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17514 emximp -o $lib $output_objdir/$libname.def' 17515 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17516 enable_shared_with_static_runtimes=yes 17517 file_list_spec='@' 17518 ;; 17519 17520 osf3*) 17521 if test yes = "$GCC"; then 17522 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17523 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' 17524 else 17525 allow_undefined_flag=' -expect_unresolved \*' 17526 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' 17527 fi 17528 archive_cmds_need_lc='no' 17529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17530 hardcode_libdir_separator=: 17531 ;; 17532 17533 osf4* | osf5*) # as osf3* with the addition of -msym flag 17534 if test yes = "$GCC"; then 17535 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17536 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' 17537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17538 else 17539 allow_undefined_flag=' -expect_unresolved \*' 17540 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' 17541 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~ 17542 $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' 17543 17544 # Both c and cxx compiler support -rpath directly 17545 hardcode_libdir_flag_spec='-rpath $libdir' 17546 fi 17547 archive_cmds_need_lc='no' 17548 hardcode_libdir_separator=: 17549 ;; 17550 17551 solaris*) 17552 no_undefined_flag=' -z defs' 17553 if test yes = "$GCC"; then 17554 wlarc='$wl' 17555 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17557 $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' 17558 else 17559 case `$CC -V 2>&1` in 17560 *"Compilers 5.0"*) 17561 wlarc='' 17562 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17564 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17565 ;; 17566 *) 17567 wlarc='$wl' 17568 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17570 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17571 ;; 17572 esac 17573 fi 17574 hardcode_libdir_flag_spec='-R$libdir' 17575 hardcode_shlibpath_var=no 17576 case $host_os in 17577 solaris2.[0-5] | solaris2.[0-5].*) ;; 17578 *) 17579 # The compiler driver will combine and reorder linker options, 17580 # but understands '-z linker_flag'. GCC discards it without '$wl', 17581 # but is careful enough not to reorder. 17582 # Supported since Solaris 2.6 (maybe 2.5.1?) 17583 if test yes = "$GCC"; then 17584 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17585 else 17586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17587 fi 17588 ;; 17589 esac 17590 link_all_deplibs=yes 17591 ;; 17592 17593 sunos4*) 17594 if test sequent = "$host_vendor"; then 17595 # Use $CC to link under sequent, because it throws in some extra .o 17596 # files that make .init and .fini sections work. 17597 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17598 else 17599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17600 fi 17601 hardcode_libdir_flag_spec='-L$libdir' 17602 hardcode_direct=yes 17603 hardcode_minus_L=yes 17604 hardcode_shlibpath_var=no 17605 ;; 17606 17607 sysv4) 17608 case $host_vendor in 17609 sni) 17610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17611 hardcode_direct=yes # is this really true??? 17612 ;; 17613 siemens) 17614 ## LD is ld it makes a PLAMLIB 17615 ## CC just makes a GrossModule. 17616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17617 reload_cmds='$CC -r -o $output$reload_objs' 17618 hardcode_direct=no 17619 ;; 17620 motorola) 17621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17623 ;; 17624 esac 17625 runpath_var='LD_RUN_PATH' 17626 hardcode_shlibpath_var=no 17627 ;; 17628 17629 sysv4.3*) 17630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17631 hardcode_shlibpath_var=no 17632 export_dynamic_flag_spec='-Bexport' 17633 ;; 17634 17635 sysv4*MP*) 17636 if test -d /usr/nec; then 17637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17638 hardcode_shlibpath_var=no 17639 runpath_var=LD_RUN_PATH 17640 hardcode_runpath_var=yes 17641 ld_shlibs=yes 17642 fi 17643 ;; 17644 17645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17646 no_undefined_flag='$wl-z,text' 17647 archive_cmds_need_lc=no 17648 hardcode_shlibpath_var=no 17649 runpath_var='LD_RUN_PATH' 17650 17651 if test yes = "$GCC"; then 17652 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17653 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17654 else 17655 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17656 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17657 fi 17658 ;; 17659 17660 sysv5* | sco3.2v5* | sco5v6*) 17661 # Note: We CANNOT use -z defs as we might desire, because we do not 17662 # link with -lc, and that would cause any symbols used from libc to 17663 # always be unresolved, which means just about no library would 17664 # ever link correctly. If we're not using GNU ld we use -z text 17665 # though, which does catch some bad symbols but isn't as heavy-handed 17666 # as -z defs. 17667 no_undefined_flag='$wl-z,text' 17668 allow_undefined_flag='$wl-z,nodefs' 17669 archive_cmds_need_lc=no 17670 hardcode_shlibpath_var=no 17671 hardcode_libdir_flag_spec='$wl-R,$libdir' 17672 hardcode_libdir_separator=':' 17673 link_all_deplibs=yes 17674 export_dynamic_flag_spec='$wl-Bexport' 17675 runpath_var='LD_RUN_PATH' 17676 17677 if test yes = "$GCC"; then 17678 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17679 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17680 else 17681 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17682 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17683 fi 17684 ;; 17685 17686 uts4*) 17687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17688 hardcode_libdir_flag_spec='-L$libdir' 17689 hardcode_shlibpath_var=no 17690 ;; 17691 17692 *) 17693 ld_shlibs=no 17694 ;; 17695 esac 17696 17697 if test sni = "$host_vendor"; then 17698 case $host in 17699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17700 export_dynamic_flag_spec='$wl-Blargedynsym' 17701 ;; 17702 esac 17703 fi 17704 fi 17705 17706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17707 printf "%s\n" "$ld_shlibs" >&6; } 17708 test no = "$ld_shlibs" && can_build_shared=no 17709 17710 with_gnu_ld=$with_gnu_ld 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 # 17727 # Do we need to explicitly link libc? 17728 # 17729 case "x$archive_cmds_need_lc" in 17730 x|xyes) 17731 # Assume -lc should be added 17732 archive_cmds_need_lc=yes 17733 17734 if test yes,yes = "$GCC,$enable_shared"; then 17735 case $archive_cmds in 17736 *'~'*) 17737 # FIXME: we may have to deal with multi-command sequences. 17738 ;; 17739 '$CC '*) 17740 # Test whether the compiler implicitly links with -lc since on some 17741 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17742 # to ld, don't add -lc before -lgcc. 17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17744 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17745 if test ${lt_cv_archive_cmds_need_lc+y} 17746 then : 17747 printf %s "(cached) " >&6 17748 else $as_nop 17749 $RM conftest* 17750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17751 17752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17753 (eval $ac_compile) 2>&5 17754 ac_status=$? 17755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17756 test $ac_status = 0; } 2>conftest.err; then 17757 soname=conftest 17758 lib=conftest 17759 libobjs=conftest.$ac_objext 17760 deplibs= 17761 wl=$lt_prog_compiler_wl 17762 pic_flag=$lt_prog_compiler_pic 17763 compiler_flags=-v 17764 linker_flags=-v 17765 verstring= 17766 output_objdir=. 17767 libname=conftest 17768 lt_save_allow_undefined_flag=$allow_undefined_flag 17769 allow_undefined_flag= 17770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17771 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17772 ac_status=$? 17773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17774 test $ac_status = 0; } 17775 then 17776 lt_cv_archive_cmds_need_lc=no 17777 else 17778 lt_cv_archive_cmds_need_lc=yes 17779 fi 17780 allow_undefined_flag=$lt_save_allow_undefined_flag 17781 else 17782 cat conftest.err 1>&5 17783 fi 17784 $RM conftest* 17785 17786 fi 17787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17788 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17789 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17790 ;; 17791 esac 17792 fi 17793 ;; 17794 esac 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17948 printf %s "checking dynamic linker characteristics... " >&6; } 17949 17950 if test yes = "$GCC"; then 17951 case $host_os in 17952 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17953 *) lt_awk_arg='/^libraries:/' ;; 17954 esac 17955 case $host_os in 17956 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17957 *) lt_sed_strip_eq='s|=/|/|g' ;; 17958 esac 17959 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17960 case $lt_search_path_spec in 17961 *\;*) 17962 # if the path contains ";" then we assume it to be the separator 17963 # otherwise default to the standard path separator (i.e. ":") - it is 17964 # assumed that no part of a normal pathname contains ";" but that should 17965 # okay in the real world where ";" in dirpaths is itself problematic. 17966 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17967 ;; 17968 *) 17969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17970 ;; 17971 esac 17972 # Ok, now we have the path, separated by spaces, we can step through it 17973 # and add multilib dir if necessary... 17974 lt_tmp_lt_search_path_spec= 17975 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17976 # ...but if some path component already ends with the multilib dir we assume 17977 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17978 case "$lt_multi_os_dir; $lt_search_path_spec " in 17979 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17980 lt_multi_os_dir= 17981 ;; 17982 esac 17983 for lt_sys_path in $lt_search_path_spec; do 17984 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17986 elif test -n "$lt_multi_os_dir"; then 17987 test -d "$lt_sys_path" && \ 17988 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17989 fi 17990 done 17991 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17992 BEGIN {RS = " "; FS = "/|\n";} { 17993 lt_foo = ""; 17994 lt_count = 0; 17995 for (lt_i = NF; lt_i > 0; lt_i--) { 17996 if ($lt_i != "" && $lt_i != ".") { 17997 if ($lt_i == "..") { 17998 lt_count++; 17999 } else { 18000 if (lt_count == 0) { 18001 lt_foo = "/" $lt_i lt_foo; 18002 } else { 18003 lt_count--; 18004 } 18005 } 18006 } 18007 } 18008 if (lt_foo != "") { lt_freq[lt_foo]++; } 18009 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18010 }'` 18011 # AWK program above erroneously prepends '/' to C:/dos/paths 18012 # for these hosts. 18013 case $host_os in 18014 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18015 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18016 esac 18017 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18018 else 18019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18020 fi 18021 library_names_spec= 18022 libname_spec='lib$name' 18023 soname_spec= 18024 shrext_cmds=.so 18025 postinstall_cmds= 18026 postuninstall_cmds= 18027 finish_cmds= 18028 finish_eval= 18029 shlibpath_var= 18030 shlibpath_overrides_runpath=unknown 18031 version_type=none 18032 dynamic_linker="$host_os ld.so" 18033 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18034 need_lib_prefix=unknown 18035 hardcode_into_libs=no 18036 18037 # when you set need_version to no, make sure it does not cause -set_version 18038 # flags to be left without arguments 18039 need_version=unknown 18040 18041 18042 18043 case $host_os in 18044 aix3*) 18045 version_type=linux # correct to gnu/linux during the next big refactor 18046 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18047 shlibpath_var=LIBPATH 18048 18049 # AIX 3 has no versioning support, so we append a major version to the name. 18050 soname_spec='$libname$release$shared_ext$major' 18051 ;; 18052 18053 aix[4-9]*) 18054 version_type=linux # correct to gnu/linux during the next big refactor 18055 need_lib_prefix=no 18056 need_version=no 18057 hardcode_into_libs=yes 18058 if test ia64 = "$host_cpu"; then 18059 # AIX 5 supports IA64 18060 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18061 shlibpath_var=LD_LIBRARY_PATH 18062 else 18063 # With GCC up to 2.95.x, collect2 would create an import file 18064 # for dependence libraries. The import file would start with 18065 # the line '#! .'. This would cause the generated library to 18066 # depend on '.', always an invalid library. This was fixed in 18067 # development snapshots of GCC prior to 3.0. 18068 case $host_os in 18069 aix4 | aix4.[01] | aix4.[01].*) 18070 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18071 echo ' yes ' 18072 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18073 : 18074 else 18075 can_build_shared=no 18076 fi 18077 ;; 18078 esac 18079 # Using Import Files as archive members, it is possible to support 18080 # filename-based versioning of shared library archives on AIX. While 18081 # this would work for both with and without runtime linking, it will 18082 # prevent static linking of such archives. So we do filename-based 18083 # shared library versioning with .so extension only, which is used 18084 # when both runtime linking and shared linking is enabled. 18085 # Unfortunately, runtime linking may impact performance, so we do 18086 # not want this to be the default eventually. Also, we use the 18087 # versioned .so libs for executables only if there is the -brtl 18088 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18089 # To allow for filename-based versioning support, we need to create 18090 # libNAME.so.V as an archive file, containing: 18091 # *) an Import File, referring to the versioned filename of the 18092 # archive as well as the shared archive member, telling the 18093 # bitwidth (32 or 64) of that shared object, and providing the 18094 # list of exported symbols of that shared object, eventually 18095 # decorated with the 'weak' keyword 18096 # *) the shared object with the F_LOADONLY flag set, to really avoid 18097 # it being seen by the linker. 18098 # At run time we better use the real file rather than another symlink, 18099 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18100 18101 case $with_aix_soname,$aix_use_runtimelinking in 18102 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18103 # soname into executable. Probably we can add versioning support to 18104 # collect2, so additional links can be useful in future. 18105 aix,yes) # traditional libtool 18106 dynamic_linker='AIX unversionable lib.so' 18107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18108 # instead of lib<name>.a to let people know that these are not 18109 # typical AIX shared libraries. 18110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18111 ;; 18112 aix,no) # traditional AIX only 18113 dynamic_linker='AIX lib.a(lib.so.V)' 18114 # We preserve .a as extension for shared libraries through AIX4.2 18115 # and later when we are not doing run time linking. 18116 library_names_spec='$libname$release.a $libname.a' 18117 soname_spec='$libname$release$shared_ext$major' 18118 ;; 18119 svr4,*) # full svr4 only 18120 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18121 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18122 # We do not specify a path in Import Files, so LIBPATH fires. 18123 shlibpath_overrides_runpath=yes 18124 ;; 18125 *,yes) # both, prefer svr4 18126 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18127 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18128 # unpreferred sharedlib libNAME.a needs extra handling 18129 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"' 18130 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"' 18131 # We do not specify a path in Import Files, so LIBPATH fires. 18132 shlibpath_overrides_runpath=yes 18133 ;; 18134 *,no) # both, prefer aix 18135 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18136 library_names_spec='$libname$release.a $libname.a' 18137 soname_spec='$libname$release$shared_ext$major' 18138 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18139 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)' 18140 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"' 18141 ;; 18142 esac 18143 shlibpath_var=LIBPATH 18144 fi 18145 ;; 18146 18147 amigaos*) 18148 case $host_cpu in 18149 powerpc) 18150 # Since July 2007 AmigaOS4 officially supports .so libraries. 18151 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18153 ;; 18154 m68k) 18155 library_names_spec='$libname.ixlibrary $libname.a' 18156 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18157 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' 18158 ;; 18159 esac 18160 ;; 18161 18162 beos*) 18163 library_names_spec='$libname$shared_ext' 18164 dynamic_linker="$host_os ld.so" 18165 shlibpath_var=LIBRARY_PATH 18166 ;; 18167 18168 bsdi[45]*) 18169 version_type=linux # correct to gnu/linux during the next big refactor 18170 need_version=no 18171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18172 soname_spec='$libname$release$shared_ext$major' 18173 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18174 shlibpath_var=LD_LIBRARY_PATH 18175 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18176 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18177 # the default ld.so.conf also contains /usr/contrib/lib and 18178 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18179 # libtool to hard-code these into programs 18180 ;; 18181 18182 cygwin* | mingw* | pw32* | cegcc*) 18183 version_type=windows 18184 shrext_cmds=.dll 18185 need_version=no 18186 need_lib_prefix=no 18187 18188 case $GCC,$cc_basename in 18189 yes,*) 18190 # gcc 18191 library_names_spec='$libname.dll.a' 18192 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18193 postinstall_cmds='base_file=`basename \$file`~ 18194 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18195 dldir=$destdir/`dirname \$dlpath`~ 18196 test -d \$dldir || mkdir -p \$dldir~ 18197 $install_prog $dir/$dlname \$dldir/$dlname~ 18198 chmod a+x \$dldir/$dlname~ 18199 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18200 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18201 fi' 18202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18203 dlpath=$dir/\$dldll~ 18204 $RM \$dlpath' 18205 shlibpath_overrides_runpath=yes 18206 18207 case $host_os in 18208 cygwin*) 18209 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18210 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18211 18212 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18213 ;; 18214 mingw* | cegcc*) 18215 # MinGW DLLs use traditional 'lib' prefix 18216 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18217 ;; 18218 pw32*) 18219 # pw32 DLLs use 'pw' prefix rather than 'lib' 18220 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18221 ;; 18222 esac 18223 dynamic_linker='Win32 ld.exe' 18224 ;; 18225 18226 *,cl* | *,icl*) 18227 # Native MSVC or ICC 18228 libname_spec='$name' 18229 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18230 library_names_spec='$libname.dll.lib' 18231 18232 case $build_os in 18233 mingw*) 18234 sys_lib_search_path_spec= 18235 lt_save_ifs=$IFS 18236 IFS=';' 18237 for lt_path in $LIB 18238 do 18239 IFS=$lt_save_ifs 18240 # Let DOS variable expansion print the short 8.3 style file name. 18241 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18242 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18243 done 18244 IFS=$lt_save_ifs 18245 # Convert to MSYS style. 18246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18247 ;; 18248 cygwin*) 18249 # Convert to unix form, then to dos form, then back to unix form 18250 # but this time dos style (no spaces!) so that the unix form looks 18251 # like /cygdrive/c/PROGRA~1:/cygdr... 18252 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18253 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18254 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18255 ;; 18256 *) 18257 sys_lib_search_path_spec=$LIB 18258 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18259 # It is most probably a Windows format PATH. 18260 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18261 else 18262 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18263 fi 18264 # FIXME: find the short name or the path components, as spaces are 18265 # common. (e.g. "Program Files" -> "PROGRA~1") 18266 ;; 18267 esac 18268 18269 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18270 postinstall_cmds='base_file=`basename \$file`~ 18271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18272 dldir=$destdir/`dirname \$dlpath`~ 18273 test -d \$dldir || mkdir -p \$dldir~ 18274 $install_prog $dir/$dlname \$dldir/$dlname' 18275 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18276 dlpath=$dir/\$dldll~ 18277 $RM \$dlpath' 18278 shlibpath_overrides_runpath=yes 18279 dynamic_linker='Win32 link.exe' 18280 ;; 18281 18282 *) 18283 # Assume MSVC and ICC wrapper 18284 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18285 dynamic_linker='Win32 ld.exe' 18286 ;; 18287 esac 18288 # FIXME: first we should search . and the directory the executable is in 18289 shlibpath_var=PATH 18290 ;; 18291 18292 darwin* | rhapsody*) 18293 dynamic_linker="$host_os dyld" 18294 version_type=darwin 18295 need_lib_prefix=no 18296 need_version=no 18297 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18298 soname_spec='$libname$release$major$shared_ext' 18299 shlibpath_overrides_runpath=yes 18300 shlibpath_var=DYLD_LIBRARY_PATH 18301 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18302 18303 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18305 ;; 18306 18307 dgux*) 18308 version_type=linux # correct to gnu/linux during the next big refactor 18309 need_lib_prefix=no 18310 need_version=no 18311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18312 soname_spec='$libname$release$shared_ext$major' 18313 shlibpath_var=LD_LIBRARY_PATH 18314 ;; 18315 18316 freebsd* | dragonfly* | midnightbsd*) 18317 # DragonFly does not have aout. When/if they implement a new 18318 # versioning mechanism, adjust this. 18319 if test -x /usr/bin/objformat; then 18320 objformat=`/usr/bin/objformat` 18321 else 18322 case $host_os in 18323 freebsd[23].*) objformat=aout ;; 18324 *) objformat=elf ;; 18325 esac 18326 fi 18327 version_type=freebsd-$objformat 18328 case $version_type in 18329 freebsd-elf*) 18330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18331 soname_spec='$libname$release$shared_ext$major' 18332 need_version=no 18333 need_lib_prefix=no 18334 ;; 18335 freebsd-*) 18336 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18337 need_version=yes 18338 ;; 18339 esac 18340 shlibpath_var=LD_LIBRARY_PATH 18341 case $host_os in 18342 freebsd2.*) 18343 shlibpath_overrides_runpath=yes 18344 ;; 18345 freebsd3.[01]* | freebsdelf3.[01]*) 18346 shlibpath_overrides_runpath=yes 18347 hardcode_into_libs=yes 18348 ;; 18349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18351 shlibpath_overrides_runpath=no 18352 hardcode_into_libs=yes 18353 ;; 18354 *) # from 4.6 on, and DragonFly 18355 shlibpath_overrides_runpath=yes 18356 hardcode_into_libs=yes 18357 ;; 18358 esac 18359 ;; 18360 18361 haiku*) 18362 version_type=linux # correct to gnu/linux during the next big refactor 18363 need_lib_prefix=no 18364 need_version=no 18365 dynamic_linker="$host_os runtime_loader" 18366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18367 soname_spec='$libname$release$shared_ext$major' 18368 shlibpath_var=LIBRARY_PATH 18369 shlibpath_overrides_runpath=no 18370 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18371 hardcode_into_libs=yes 18372 ;; 18373 18374 hpux9* | hpux10* | hpux11*) 18375 # Give a soname corresponding to the major version so that dld.sl refuses to 18376 # link against other versions. 18377 version_type=sunos 18378 need_lib_prefix=no 18379 need_version=no 18380 case $host_cpu in 18381 ia64*) 18382 shrext_cmds='.so' 18383 hardcode_into_libs=yes 18384 dynamic_linker="$host_os dld.so" 18385 shlibpath_var=LD_LIBRARY_PATH 18386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18388 soname_spec='$libname$release$shared_ext$major' 18389 if test 32 = "$HPUX_IA64_MODE"; then 18390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18391 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18392 else 18393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18394 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18395 fi 18396 ;; 18397 hppa*64*) 18398 shrext_cmds='.sl' 18399 hardcode_into_libs=yes 18400 dynamic_linker="$host_os dld.sl" 18401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18404 soname_spec='$libname$release$shared_ext$major' 18405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18407 ;; 18408 *) 18409 shrext_cmds='.sl' 18410 dynamic_linker="$host_os dld.sl" 18411 shlibpath_var=SHLIB_PATH 18412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18414 soname_spec='$libname$release$shared_ext$major' 18415 ;; 18416 esac 18417 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18418 postinstall_cmds='chmod 555 $lib' 18419 # or fails outright, so override atomically: 18420 install_override_mode=555 18421 ;; 18422 18423 interix[3-9]*) 18424 version_type=linux # correct to gnu/linux during the next big refactor 18425 need_lib_prefix=no 18426 need_version=no 18427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18428 soname_spec='$libname$release$shared_ext$major' 18429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18430 shlibpath_var=LD_LIBRARY_PATH 18431 shlibpath_overrides_runpath=no 18432 hardcode_into_libs=yes 18433 ;; 18434 18435 irix5* | irix6* | nonstopux*) 18436 case $host_os in 18437 nonstopux*) version_type=nonstopux ;; 18438 *) 18439 if test yes = "$lt_cv_prog_gnu_ld"; then 18440 version_type=linux # correct to gnu/linux during the next big refactor 18441 else 18442 version_type=irix 18443 fi ;; 18444 esac 18445 need_lib_prefix=no 18446 need_version=no 18447 soname_spec='$libname$release$shared_ext$major' 18448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18449 case $host_os in 18450 irix5* | nonstopux*) 18451 libsuff= shlibsuff= 18452 ;; 18453 *) 18454 case $LD in # libtool.m4 will add one of these switches to LD 18455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18456 libsuff= shlibsuff= libmagic=32-bit;; 18457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18458 libsuff=32 shlibsuff=N32 libmagic=N32;; 18459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18460 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18461 *) libsuff= shlibsuff= libmagic=never-match;; 18462 esac 18463 ;; 18464 esac 18465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18466 shlibpath_overrides_runpath=no 18467 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18468 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18469 hardcode_into_libs=yes 18470 ;; 18471 18472 # No shared lib support for Linux oldld, aout, or coff. 18473 linux*oldld* | linux*aout* | linux*coff*) 18474 dynamic_linker=no 18475 ;; 18476 18477 linux*android*) 18478 version_type=none # Android doesn't support versioned libraries. 18479 need_lib_prefix=no 18480 need_version=no 18481 library_names_spec='$libname$release$shared_ext' 18482 soname_spec='$libname$release$shared_ext' 18483 finish_cmds= 18484 shlibpath_var=LD_LIBRARY_PATH 18485 shlibpath_overrides_runpath=yes 18486 18487 # This implies no fast_install, which is unacceptable. 18488 # Some rework will be needed to allow for fast_install 18489 # before this can be enabled. 18490 hardcode_into_libs=yes 18491 18492 dynamic_linker='Android linker' 18493 # Don't embed -rpath directories since the linker doesn't support them. 18494 hardcode_libdir_flag_spec='-L$libdir' 18495 ;; 18496 18497 # This must be glibc/ELF. 18498 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18499 version_type=linux # correct to gnu/linux during the next big refactor 18500 need_lib_prefix=no 18501 need_version=no 18502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18503 soname_spec='$libname$release$shared_ext$major' 18504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18505 shlibpath_var=LD_LIBRARY_PATH 18506 shlibpath_overrides_runpath=no 18507 18508 # Some binutils ld are patched to set DT_RUNPATH 18509 if test ${lt_cv_shlibpath_overrides_runpath+y} 18510 then : 18511 printf %s "(cached) " >&6 18512 else $as_nop 18513 lt_cv_shlibpath_overrides_runpath=no 18514 save_LDFLAGS=$LDFLAGS 18515 save_libdir=$libdir 18516 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18517 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18519 /* end confdefs.h. */ 18520 18521 int 18522 main (void) 18523 { 18524 18525 ; 18526 return 0; 18527 } 18528 _ACEOF 18529 if ac_fn_c_try_link "$LINENO" 18530 then : 18531 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18532 then : 18533 lt_cv_shlibpath_overrides_runpath=yes 18534 fi 18535 fi 18536 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18537 conftest$ac_exeext conftest.$ac_ext 18538 LDFLAGS=$save_LDFLAGS 18539 libdir=$save_libdir 18540 18541 fi 18542 18543 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18544 18545 # This implies no fast_install, which is unacceptable. 18546 # Some rework will be needed to allow for fast_install 18547 # before this can be enabled. 18548 hardcode_into_libs=yes 18549 18550 # Add ABI-specific directories to the system library path. 18551 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 18552 18553 # Ideally, we could use ldconfig to report *all* directores which are 18554 # searched for libraries, however this is still not possible. Aside from not 18555 # being certain /sbin/ldconfig is available, command 18556 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18557 # even though it is searched at run-time. Try to do the best guess by 18558 # appending ld.so.conf contents (and includes) to the search path. 18559 if test -f /etc/ld.so.conf; then 18560 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' ' '` 18561 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 18562 fi 18563 18564 # We used to test for /lib/ld.so.1 and disable shared libraries on 18565 # powerpc, because MkLinux only supported shared libraries with the 18566 # GNU dynamic linker. Since this was broken with cross compilers, 18567 # most powerpc-linux boxes support dynamic linking these days and 18568 # people can always --disable-shared, the test was removed, and we 18569 # assume the GNU/Linux dynamic linker is in use. 18570 dynamic_linker='GNU/Linux ld.so' 18571 ;; 18572 18573 netbsd*) 18574 version_type=sunos 18575 need_lib_prefix=no 18576 need_version=no 18577 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18578 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18580 dynamic_linker='NetBSD (a.out) ld.so' 18581 else 18582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18583 soname_spec='$libname$release$shared_ext$major' 18584 dynamic_linker='NetBSD ld.elf_so' 18585 fi 18586 shlibpath_var=LD_LIBRARY_PATH 18587 shlibpath_overrides_runpath=yes 18588 hardcode_into_libs=yes 18589 ;; 18590 18591 newsos6) 18592 version_type=linux # correct to gnu/linux during the next big refactor 18593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18594 shlibpath_var=LD_LIBRARY_PATH 18595 shlibpath_overrides_runpath=yes 18596 ;; 18597 18598 *nto* | *qnx*) 18599 version_type=qnx 18600 need_lib_prefix=no 18601 need_version=no 18602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18603 soname_spec='$libname$release$shared_ext$major' 18604 shlibpath_var=LD_LIBRARY_PATH 18605 shlibpath_overrides_runpath=no 18606 hardcode_into_libs=yes 18607 dynamic_linker='ldqnx.so' 18608 ;; 18609 18610 openbsd* | bitrig*) 18611 version_type=sunos 18612 sys_lib_dlsearch_path_spec=/usr/lib 18613 need_lib_prefix=no 18614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18615 need_version=no 18616 else 18617 need_version=yes 18618 fi 18619 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18621 shlibpath_var=LD_LIBRARY_PATH 18622 shlibpath_overrides_runpath=yes 18623 ;; 18624 18625 os2*) 18626 libname_spec='$name' 18627 version_type=windows 18628 shrext_cmds=.dll 18629 need_version=no 18630 need_lib_prefix=no 18631 # OS/2 can only load a DLL with a base name of 8 characters or less. 18632 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18633 v=$($ECHO $release$versuffix | tr -d .-); 18634 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18635 $ECHO $n$v`$shared_ext' 18636 library_names_spec='${libname}_dll.$libext' 18637 dynamic_linker='OS/2 ld.exe' 18638 shlibpath_var=BEGINLIBPATH 18639 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18641 postinstall_cmds='base_file=`basename \$file`~ 18642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18643 dldir=$destdir/`dirname \$dlpath`~ 18644 test -d \$dldir || mkdir -p \$dldir~ 18645 $install_prog $dir/$dlname \$dldir/$dlname~ 18646 chmod a+x \$dldir/$dlname~ 18647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18649 fi' 18650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18651 dlpath=$dir/\$dldll~ 18652 $RM \$dlpath' 18653 ;; 18654 18655 osf3* | osf4* | osf5*) 18656 version_type=osf 18657 need_lib_prefix=no 18658 need_version=no 18659 soname_spec='$libname$release$shared_ext$major' 18660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18661 shlibpath_var=LD_LIBRARY_PATH 18662 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18664 ;; 18665 18666 rdos*) 18667 dynamic_linker=no 18668 ;; 18669 18670 solaris*) 18671 version_type=linux # correct to gnu/linux during the next big refactor 18672 need_lib_prefix=no 18673 need_version=no 18674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18675 soname_spec='$libname$release$shared_ext$major' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 shlibpath_overrides_runpath=yes 18678 hardcode_into_libs=yes 18679 # ldd complains unless libraries are executable 18680 postinstall_cmds='chmod +x $lib' 18681 ;; 18682 18683 sunos4*) 18684 version_type=sunos 18685 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18687 shlibpath_var=LD_LIBRARY_PATH 18688 shlibpath_overrides_runpath=yes 18689 if test yes = "$with_gnu_ld"; then 18690 need_lib_prefix=no 18691 fi 18692 need_version=yes 18693 ;; 18694 18695 sysv4 | sysv4.3*) 18696 version_type=linux # correct to gnu/linux during the next big refactor 18697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18698 soname_spec='$libname$release$shared_ext$major' 18699 shlibpath_var=LD_LIBRARY_PATH 18700 case $host_vendor in 18701 sni) 18702 shlibpath_overrides_runpath=no 18703 need_lib_prefix=no 18704 runpath_var=LD_RUN_PATH 18705 ;; 18706 siemens) 18707 need_lib_prefix=no 18708 ;; 18709 motorola) 18710 need_lib_prefix=no 18711 need_version=no 18712 shlibpath_overrides_runpath=no 18713 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18714 ;; 18715 esac 18716 ;; 18717 18718 sysv4*MP*) 18719 if test -d /usr/nec; then 18720 version_type=linux # correct to gnu/linux during the next big refactor 18721 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18722 soname_spec='$libname$shared_ext.$major' 18723 shlibpath_var=LD_LIBRARY_PATH 18724 fi 18725 ;; 18726 18727 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18728 version_type=sco 18729 need_lib_prefix=no 18730 need_version=no 18731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18732 soname_spec='$libname$release$shared_ext$major' 18733 shlibpath_var=LD_LIBRARY_PATH 18734 shlibpath_overrides_runpath=yes 18735 hardcode_into_libs=yes 18736 if test yes = "$with_gnu_ld"; then 18737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18738 else 18739 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18740 case $host_os in 18741 sco3.2v5*) 18742 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18743 ;; 18744 esac 18745 fi 18746 sys_lib_dlsearch_path_spec='/usr/lib' 18747 ;; 18748 18749 tpf*) 18750 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18751 version_type=linux # correct to gnu/linux during the next big refactor 18752 need_lib_prefix=no 18753 need_version=no 18754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18755 shlibpath_var=LD_LIBRARY_PATH 18756 shlibpath_overrides_runpath=no 18757 hardcode_into_libs=yes 18758 ;; 18759 18760 uts4*) 18761 version_type=linux # correct to gnu/linux during the next big refactor 18762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18763 soname_spec='$libname$release$shared_ext$major' 18764 shlibpath_var=LD_LIBRARY_PATH 18765 ;; 18766 18767 *) 18768 dynamic_linker=no 18769 ;; 18770 esac 18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18772 printf "%s\n" "$dynamic_linker" >&6; } 18773 test no = "$dynamic_linker" && can_build_shared=no 18774 18775 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18776 if test yes = "$GCC"; then 18777 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18778 fi 18779 18780 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18781 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18782 fi 18783 18784 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18785 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18786 fi 18787 18788 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18789 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18790 18791 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18792 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18793 18794 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18795 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18894 printf %s "checking how to hardcode library paths into programs... " >&6; } 18895 hardcode_action= 18896 if test -n "$hardcode_libdir_flag_spec" || 18897 test -n "$runpath_var" || 18898 test yes = "$hardcode_automatic"; then 18899 18900 # We can hardcode non-existent directories. 18901 if test no != "$hardcode_direct" && 18902 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18903 # have to relink, otherwise we might link with an installed library 18904 # when we should be linking with a yet-to-be-installed one 18905 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18906 test no != "$hardcode_minus_L"; then 18907 # Linking always hardcodes the temporary library directory. 18908 hardcode_action=relink 18909 else 18910 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18911 hardcode_action=immediate 18912 fi 18913 else 18914 # We cannot hardcode anything, or else we can only hardcode existing 18915 # directories. 18916 hardcode_action=unsupported 18917 fi 18918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18919 printf "%s\n" "$hardcode_action" >&6; } 18920 18921 if test relink = "$hardcode_action" || 18922 test yes = "$inherit_rpath"; then 18923 # Fast installation is not supported 18924 enable_fast_install=no 18925 elif test yes = "$shlibpath_overrides_runpath" || 18926 test no = "$enable_shared"; then 18927 # Fast installation is not necessary 18928 enable_fast_install=needless 18929 fi 18930 18931 18932 18933 18934 18935 18936 if test yes != "$enable_dlopen"; then 18937 enable_dlopen=unknown 18938 enable_dlopen_self=unknown 18939 enable_dlopen_self_static=unknown 18940 else 18941 lt_cv_dlopen=no 18942 lt_cv_dlopen_libs= 18943 18944 case $host_os in 18945 beos*) 18946 lt_cv_dlopen=load_add_on 18947 lt_cv_dlopen_libs= 18948 lt_cv_dlopen_self=yes 18949 ;; 18950 18951 mingw* | pw32* | cegcc*) 18952 lt_cv_dlopen=LoadLibrary 18953 lt_cv_dlopen_libs= 18954 ;; 18955 18956 cygwin*) 18957 lt_cv_dlopen=dlopen 18958 lt_cv_dlopen_libs= 18959 ;; 18960 18961 darwin*) 18962 # if libdl is installed we need to link against it 18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18964 printf %s "checking for dlopen in -ldl... " >&6; } 18965 if test ${ac_cv_lib_dl_dlopen+y} 18966 then : 18967 printf %s "(cached) " >&6 18968 else $as_nop 18969 ac_check_lib_save_LIBS=$LIBS 18970 LIBS="-ldl $LIBS" 18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18972 /* end confdefs.h. */ 18973 18974 /* Override any GCC internal prototype to avoid an error. 18975 Use char because int might match the return type of a GCC 18976 builtin and then its argument prototype would still apply. */ 18977 char dlopen (); 18978 int 18979 main (void) 18980 { 18981 return dlopen (); 18982 ; 18983 return 0; 18984 } 18985 _ACEOF 18986 if ac_fn_c_try_link "$LINENO" 18987 then : 18988 ac_cv_lib_dl_dlopen=yes 18989 else $as_nop 18990 ac_cv_lib_dl_dlopen=no 18991 fi 18992 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18993 conftest$ac_exeext conftest.$ac_ext 18994 LIBS=$ac_check_lib_save_LIBS 18995 fi 18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18997 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18998 if test "x$ac_cv_lib_dl_dlopen" = xyes 18999 then : 19000 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19001 else $as_nop 19002 19003 lt_cv_dlopen=dyld 19004 lt_cv_dlopen_libs= 19005 lt_cv_dlopen_self=yes 19006 19007 fi 19008 19009 ;; 19010 19011 tpf*) 19012 # Don't try to run any link tests for TPF. We know it's impossible 19013 # because TPF is a cross-compiler, and we know how we open DSOs. 19014 lt_cv_dlopen=dlopen 19015 lt_cv_dlopen_libs= 19016 lt_cv_dlopen_self=no 19017 ;; 19018 19019 *) 19020 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19021 if test "x$ac_cv_func_shl_load" = xyes 19022 then : 19023 lt_cv_dlopen=shl_load 19024 else $as_nop 19025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19026 printf %s "checking for shl_load in -ldld... " >&6; } 19027 if test ${ac_cv_lib_dld_shl_load+y} 19028 then : 19029 printf %s "(cached) " >&6 19030 else $as_nop 19031 ac_check_lib_save_LIBS=$LIBS 19032 LIBS="-ldld $LIBS" 19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19034 /* end confdefs.h. */ 19035 19036 /* Override any GCC internal prototype to avoid an error. 19037 Use char because int might match the return type of a GCC 19038 builtin and then its argument prototype would still apply. */ 19039 char shl_load (); 19040 int 19041 main (void) 19042 { 19043 return shl_load (); 19044 ; 19045 return 0; 19046 } 19047 _ACEOF 19048 if ac_fn_c_try_link "$LINENO" 19049 then : 19050 ac_cv_lib_dld_shl_load=yes 19051 else $as_nop 19052 ac_cv_lib_dld_shl_load=no 19053 fi 19054 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19055 conftest$ac_exeext conftest.$ac_ext 19056 LIBS=$ac_check_lib_save_LIBS 19057 fi 19058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19059 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19060 if test "x$ac_cv_lib_dld_shl_load" = xyes 19061 then : 19062 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19063 else $as_nop 19064 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19065 if test "x$ac_cv_func_dlopen" = xyes 19066 then : 19067 lt_cv_dlopen=dlopen 19068 else $as_nop 19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19070 printf %s "checking for dlopen in -ldl... " >&6; } 19071 if test ${ac_cv_lib_dl_dlopen+y} 19072 then : 19073 printf %s "(cached) " >&6 19074 else $as_nop 19075 ac_check_lib_save_LIBS=$LIBS 19076 LIBS="-ldl $LIBS" 19077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19078 /* end confdefs.h. */ 19079 19080 /* Override any GCC internal prototype to avoid an error. 19081 Use char because int might match the return type of a GCC 19082 builtin and then its argument prototype would still apply. */ 19083 char dlopen (); 19084 int 19085 main (void) 19086 { 19087 return dlopen (); 19088 ; 19089 return 0; 19090 } 19091 _ACEOF 19092 if ac_fn_c_try_link "$LINENO" 19093 then : 19094 ac_cv_lib_dl_dlopen=yes 19095 else $as_nop 19096 ac_cv_lib_dl_dlopen=no 19097 fi 19098 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19099 conftest$ac_exeext conftest.$ac_ext 19100 LIBS=$ac_check_lib_save_LIBS 19101 fi 19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19103 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19104 if test "x$ac_cv_lib_dl_dlopen" = xyes 19105 then : 19106 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19107 else $as_nop 19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19109 printf %s "checking for dlopen in -lsvld... " >&6; } 19110 if test ${ac_cv_lib_svld_dlopen+y} 19111 then : 19112 printf %s "(cached) " >&6 19113 else $as_nop 19114 ac_check_lib_save_LIBS=$LIBS 19115 LIBS="-lsvld $LIBS" 19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19117 /* end confdefs.h. */ 19118 19119 /* Override any GCC internal prototype to avoid an error. 19120 Use char because int might match the return type of a GCC 19121 builtin and then its argument prototype would still apply. */ 19122 char dlopen (); 19123 int 19124 main (void) 19125 { 19126 return dlopen (); 19127 ; 19128 return 0; 19129 } 19130 _ACEOF 19131 if ac_fn_c_try_link "$LINENO" 19132 then : 19133 ac_cv_lib_svld_dlopen=yes 19134 else $as_nop 19135 ac_cv_lib_svld_dlopen=no 19136 fi 19137 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19138 conftest$ac_exeext conftest.$ac_ext 19139 LIBS=$ac_check_lib_save_LIBS 19140 fi 19141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19142 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19143 if test "x$ac_cv_lib_svld_dlopen" = xyes 19144 then : 19145 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19146 else $as_nop 19147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19148 printf %s "checking for dld_link in -ldld... " >&6; } 19149 if test ${ac_cv_lib_dld_dld_link+y} 19150 then : 19151 printf %s "(cached) " >&6 19152 else $as_nop 19153 ac_check_lib_save_LIBS=$LIBS 19154 LIBS="-ldld $LIBS" 19155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19156 /* end confdefs.h. */ 19157 19158 /* Override any GCC internal prototype to avoid an error. 19159 Use char because int might match the return type of a GCC 19160 builtin and then its argument prototype would still apply. */ 19161 char dld_link (); 19162 int 19163 main (void) 19164 { 19165 return dld_link (); 19166 ; 19167 return 0; 19168 } 19169 _ACEOF 19170 if ac_fn_c_try_link "$LINENO" 19171 then : 19172 ac_cv_lib_dld_dld_link=yes 19173 else $as_nop 19174 ac_cv_lib_dld_dld_link=no 19175 fi 19176 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19177 conftest$ac_exeext conftest.$ac_ext 19178 LIBS=$ac_check_lib_save_LIBS 19179 fi 19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19181 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19182 if test "x$ac_cv_lib_dld_dld_link" = xyes 19183 then : 19184 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19185 fi 19186 19187 19188 fi 19189 19190 19191 fi 19192 19193 19194 fi 19195 19196 19197 fi 19198 19199 19200 fi 19201 19202 ;; 19203 esac 19204 19205 if test no = "$lt_cv_dlopen"; then 19206 enable_dlopen=no 19207 else 19208 enable_dlopen=yes 19209 fi 19210 19211 case $lt_cv_dlopen in 19212 dlopen) 19213 save_CPPFLAGS=$CPPFLAGS 19214 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19215 19216 save_LDFLAGS=$LDFLAGS 19217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19218 19219 save_LIBS=$LIBS 19220 LIBS="$lt_cv_dlopen_libs $LIBS" 19221 19222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19223 printf %s "checking whether a program can dlopen itself... " >&6; } 19224 if test ${lt_cv_dlopen_self+y} 19225 then : 19226 printf %s "(cached) " >&6 19227 else $as_nop 19228 if test yes = "$cross_compiling"; then : 19229 lt_cv_dlopen_self=cross 19230 else 19231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19232 lt_status=$lt_dlunknown 19233 cat > conftest.$ac_ext <<_LT_EOF 19234 #line $LINENO "configure" 19235 #include "confdefs.h" 19236 19237 #if HAVE_DLFCN_H 19238 #include <dlfcn.h> 19239 #endif 19240 19241 #include <stdio.h> 19242 19243 #ifdef RTLD_GLOBAL 19244 # define LT_DLGLOBAL RTLD_GLOBAL 19245 #else 19246 # ifdef DL_GLOBAL 19247 # define LT_DLGLOBAL DL_GLOBAL 19248 # else 19249 # define LT_DLGLOBAL 0 19250 # endif 19251 #endif 19252 19253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19254 find out it does not work in some platform. */ 19255 #ifndef LT_DLLAZY_OR_NOW 19256 # ifdef RTLD_LAZY 19257 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19258 # else 19259 # ifdef DL_LAZY 19260 # define LT_DLLAZY_OR_NOW DL_LAZY 19261 # else 19262 # ifdef RTLD_NOW 19263 # define LT_DLLAZY_OR_NOW RTLD_NOW 19264 # else 19265 # ifdef DL_NOW 19266 # define LT_DLLAZY_OR_NOW DL_NOW 19267 # else 19268 # define LT_DLLAZY_OR_NOW 0 19269 # endif 19270 # endif 19271 # endif 19272 # endif 19273 #endif 19274 19275 /* When -fvisibility=hidden is used, assume the code has been annotated 19276 correspondingly for the symbols needed. */ 19277 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19278 int fnord () __attribute__((visibility("default"))); 19279 #endif 19280 19281 int fnord () { return 42; } 19282 int main () 19283 { 19284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19285 int status = $lt_dlunknown; 19286 19287 if (self) 19288 { 19289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19290 else 19291 { 19292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19293 else puts (dlerror ()); 19294 } 19295 /* dlclose (self); */ 19296 } 19297 else 19298 puts (dlerror ()); 19299 19300 return status; 19301 } 19302 _LT_EOF 19303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19304 (eval $ac_link) 2>&5 19305 ac_status=$? 19306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19307 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19308 (./conftest; exit; ) >&5 2>/dev/null 19309 lt_status=$? 19310 case x$lt_status in 19311 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19312 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19313 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19314 esac 19315 else : 19316 # compilation failed 19317 lt_cv_dlopen_self=no 19318 fi 19319 fi 19320 rm -fr conftest* 19321 19322 19323 fi 19324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19325 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19326 19327 if test yes = "$lt_cv_dlopen_self"; then 19328 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19330 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19331 if test ${lt_cv_dlopen_self_static+y} 19332 then : 19333 printf %s "(cached) " >&6 19334 else $as_nop 19335 if test yes = "$cross_compiling"; then : 19336 lt_cv_dlopen_self_static=cross 19337 else 19338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19339 lt_status=$lt_dlunknown 19340 cat > conftest.$ac_ext <<_LT_EOF 19341 #line $LINENO "configure" 19342 #include "confdefs.h" 19343 19344 #if HAVE_DLFCN_H 19345 #include <dlfcn.h> 19346 #endif 19347 19348 #include <stdio.h> 19349 19350 #ifdef RTLD_GLOBAL 19351 # define LT_DLGLOBAL RTLD_GLOBAL 19352 #else 19353 # ifdef DL_GLOBAL 19354 # define LT_DLGLOBAL DL_GLOBAL 19355 # else 19356 # define LT_DLGLOBAL 0 19357 # endif 19358 #endif 19359 19360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19361 find out it does not work in some platform. */ 19362 #ifndef LT_DLLAZY_OR_NOW 19363 # ifdef RTLD_LAZY 19364 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19365 # else 19366 # ifdef DL_LAZY 19367 # define LT_DLLAZY_OR_NOW DL_LAZY 19368 # else 19369 # ifdef RTLD_NOW 19370 # define LT_DLLAZY_OR_NOW RTLD_NOW 19371 # else 19372 # ifdef DL_NOW 19373 # define LT_DLLAZY_OR_NOW DL_NOW 19374 # else 19375 # define LT_DLLAZY_OR_NOW 0 19376 # endif 19377 # endif 19378 # endif 19379 # endif 19380 #endif 19381 19382 /* When -fvisibility=hidden is used, assume the code has been annotated 19383 correspondingly for the symbols needed. */ 19384 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19385 int fnord () __attribute__((visibility("default"))); 19386 #endif 19387 19388 int fnord () { return 42; } 19389 int main () 19390 { 19391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19392 int status = $lt_dlunknown; 19393 19394 if (self) 19395 { 19396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19397 else 19398 { 19399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19400 else puts (dlerror ()); 19401 } 19402 /* dlclose (self); */ 19403 } 19404 else 19405 puts (dlerror ()); 19406 19407 return status; 19408 } 19409 _LT_EOF 19410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19411 (eval $ac_link) 2>&5 19412 ac_status=$? 19413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19414 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19415 (./conftest; exit; ) >&5 2>/dev/null 19416 lt_status=$? 19417 case x$lt_status in 19418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19421 esac 19422 else : 19423 # compilation failed 19424 lt_cv_dlopen_self_static=no 19425 fi 19426 fi 19427 rm -fr conftest* 19428 19429 19430 fi 19431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19432 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19433 fi 19434 19435 CPPFLAGS=$save_CPPFLAGS 19436 LDFLAGS=$save_LDFLAGS 19437 LIBS=$save_LIBS 19438 ;; 19439 esac 19440 19441 case $lt_cv_dlopen_self in 19442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19443 *) enable_dlopen_self=unknown ;; 19444 esac 19445 19446 case $lt_cv_dlopen_self_static in 19447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19448 *) enable_dlopen_self_static=unknown ;; 19449 esac 19450 fi 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 striplib= 19469 old_striplib= 19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19471 printf %s "checking whether stripping libraries is possible... " >&6; } 19472 if test -z "$STRIP"; then 19473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19474 printf "%s\n" "no" >&6; } 19475 else 19476 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19477 old_striplib="$STRIP --strip-debug" 19478 striplib="$STRIP --strip-unneeded" 19479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19480 printf "%s\n" "yes" >&6; } 19481 else 19482 case $host_os in 19483 darwin*) 19484 # FIXME - insert some real tests, host_os isn't really good enough 19485 striplib="$STRIP -x" 19486 old_striplib="$STRIP -S" 19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19488 printf "%s\n" "yes" >&6; } 19489 ;; 19490 freebsd*) 19491 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19492 old_striplib="$STRIP --strip-debug" 19493 striplib="$STRIP --strip-unneeded" 19494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19495 printf "%s\n" "yes" >&6; } 19496 else 19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19498 printf "%s\n" "no" >&6; } 19499 fi 19500 ;; 19501 *) 19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19503 printf "%s\n" "no" >&6; } 19504 ;; 19505 esac 19506 fi 19507 fi 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 # Report what library types will actually be built 19521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19522 printf %s "checking if libtool supports shared libraries... " >&6; } 19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19524 printf "%s\n" "$can_build_shared" >&6; } 19525 19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19527 printf %s "checking whether to build shared libraries... " >&6; } 19528 test no = "$can_build_shared" && enable_shared=no 19529 19530 # On AIX, shared libraries and static libraries use the same namespace, and 19531 # are all built from PIC. 19532 case $host_os in 19533 aix3*) 19534 test yes = "$enable_shared" && enable_static=no 19535 if test -n "$RANLIB"; then 19536 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19537 postinstall_cmds='$RANLIB $lib' 19538 fi 19539 ;; 19540 19541 aix[4-9]*) 19542 if test ia64 != "$host_cpu"; then 19543 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19544 yes,aix,yes) ;; # shared object as lib.so file only 19545 yes,svr4,*) ;; # shared object as lib.so archive member only 19546 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19547 esac 19548 fi 19549 ;; 19550 esac 19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19552 printf "%s\n" "$enable_shared" >&6; } 19553 19554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19555 printf %s "checking whether to build static libraries... " >&6; } 19556 # Make sure either enable_shared or enable_static is yes. 19557 test yes = "$enable_shared" || enable_static=yes 19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19559 printf "%s\n" "$enable_static" >&6; } 19560 19561 19562 19563 19564 fi 19565 ac_ext=c 19566 ac_cpp='$CPP $CPPFLAGS' 19567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19569 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19570 19571 CC=$lt_save_CC 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 ac_config_commands="$ac_config_commands libtool" 19588 19589 19590 19591 19592 # Only expand once: 19593 19594 19595 19596 19597 19598 # Define a configure option for an alternate module directory 19599 19600 # Check whether --with-xorg-module-dir was given. 19601 if test ${with_xorg_module_dir+y} 19602 then : 19603 withval=$with_xorg_module_dir; moduledir="$withval" 19604 else $as_nop 19605 moduledir="$libdir/xorg/modules" 19606 fi 19607 19608 19609 19610 # Store the list of server defined optional extensions in REQUIRED_MODULES 19611 19612 19613 SAVE_CFLAGS="$CFLAGS" 19614 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19616 /* end confdefs.h. */ 19617 19618 #include "xorg-server.h" 19619 #if !defined RANDR 19620 #error RANDR not defined 19621 #endif 19622 19623 int 19624 main (void) 19625 { 19626 19627 ; 19628 return 0; 19629 } 19630 _ACEOF 19631 if ac_fn_c_try_compile "$LINENO" 19632 then : 19633 _EXT_CHECK=yes 19634 else $as_nop 19635 _EXT_CHECK=no 19636 fi 19637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19638 CFLAGS="$SAVE_CFLAGS" 19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19640 printf %s "checking if RANDR is defined... " >&6; } 19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19642 printf "%s\n" "$_EXT_CHECK" >&6; } 19643 if test "$_EXT_CHECK" != no; then 19644 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19645 fi 19646 19647 19648 19649 SAVE_CFLAGS="$CFLAGS" 19650 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19652 /* end confdefs.h. */ 19653 19654 #include "xorg-server.h" 19655 #if !defined RENDER 19656 #error RENDER not defined 19657 #endif 19658 19659 int 19660 main (void) 19661 { 19662 19663 ; 19664 return 0; 19665 } 19666 _ACEOF 19667 if ac_fn_c_try_compile "$LINENO" 19668 then : 19669 _EXT_CHECK=yes 19670 else $as_nop 19671 _EXT_CHECK=no 19672 fi 19673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19674 CFLAGS="$SAVE_CFLAGS" 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19676 printf %s "checking if RENDER is defined... " >&6; } 19677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19678 printf "%s\n" "$_EXT_CHECK" >&6; } 19679 if test "$_EXT_CHECK" != no; then 19680 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19681 fi 19682 19683 19684 19685 SAVE_CFLAGS="$CFLAGS" 19686 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19688 /* end confdefs.h. */ 19689 19690 #include "xorg-server.h" 19691 #if !defined XV 19692 #error XV not defined 19693 #endif 19694 19695 int 19696 main (void) 19697 { 19698 19699 ; 19700 return 0; 19701 } 19702 _ACEOF 19703 if ac_fn_c_try_compile "$LINENO" 19704 then : 19705 _EXT_CHECK=yes 19706 else $as_nop 19707 _EXT_CHECK=no 19708 fi 19709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19710 CFLAGS="$SAVE_CFLAGS" 19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19712 printf %s "checking if XV is defined... " >&6; } 19713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19714 printf "%s\n" "$_EXT_CHECK" >&6; } 19715 if test "$_EXT_CHECK" != no; then 19716 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19717 fi 19718 19719 19720 19721 SAVE_CFLAGS="$CFLAGS" 19722 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19724 /* end confdefs.h. */ 19725 19726 #include "xorg-server.h" 19727 #if !defined XFreeXDGA 19728 #error XFreeXDGA not defined 19729 #endif 19730 19731 int 19732 main (void) 19733 { 19734 19735 ; 19736 return 0; 19737 } 19738 _ACEOF 19739 if ac_fn_c_try_compile "$LINENO" 19740 then : 19741 _EXT_CHECK=yes 19742 else $as_nop 19743 _EXT_CHECK=no 19744 fi 19745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19746 CFLAGS="$SAVE_CFLAGS" 19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5 19748 printf %s "checking if XFreeXDGA is defined... " >&6; } 19749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19750 printf "%s\n" "$_EXT_CHECK" >&6; } 19751 if test "$_EXT_CHECK" != no; then 19752 REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto" 19753 fi 19754 19755 19756 # We can use either version 1 or version 2 of libXfont 19757 if test -n "$PKG_CONFIG" && \ 19758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfont2\""; } >&5 19759 ($PKG_CONFIG --exists --print-errors "xfont2") 2>&5 19760 ac_status=$? 19761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19762 test $ac_status = 0; }; then 19763 xfont_pc=xfont2 19764 19765 printf "%s\n" "#define HAVE_XFONT2 1" >>confdefs.h 19766 19767 else 19768 xfont_pc=xfont 19769 fi 19770 19771 # Obtain compiler/linker options for the driver dependencies 19772 19773 pkg_failed=no 19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19775 printf %s "checking for XORG... " >&6; } 19776 19777 if test -n "$XORG_CFLAGS"; then 19778 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19779 elif test -n "$PKG_CONFIG"; then 19780 if test -n "$PKG_CONFIG" && \ 19781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$xfont_pc \$REQUIRED_MODULES\""; } >&5 19782 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES") 2>&5 19783 ac_status=$? 19784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19785 test $ac_status = 0; }; then 19786 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>/dev/null` 19787 test "x$?" != "x0" && pkg_failed=yes 19788 else 19789 pkg_failed=yes 19790 fi 19791 else 19792 pkg_failed=untried 19793 fi 19794 if test -n "$XORG_LIBS"; then 19795 pkg_cv_XORG_LIBS="$XORG_LIBS" 19796 elif test -n "$PKG_CONFIG"; then 19797 if test -n "$PKG_CONFIG" && \ 19798 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$xfont_pc \$REQUIRED_MODULES\""; } >&5 19799 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES") 2>&5 19800 ac_status=$? 19801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19802 test $ac_status = 0; }; then 19803 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>/dev/null` 19804 test "x$?" != "x0" && pkg_failed=yes 19805 else 19806 pkg_failed=yes 19807 fi 19808 else 19809 pkg_failed=untried 19810 fi 19811 19812 19813 19814 if test $pkg_failed = yes; then 19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19816 printf "%s\n" "no" >&6; } 19817 19818 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19819 _pkg_short_errors_supported=yes 19820 else 19821 _pkg_short_errors_supported=no 19822 fi 19823 if test $_pkg_short_errors_supported = yes; then 19824 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>&1` 19825 else 19826 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES" 2>&1` 19827 fi 19828 # Put the nasty error message in config.log where it belongs 19829 echo "$XORG_PKG_ERRORS" >&5 19830 19831 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $xfont_pc $REQUIRED_MODULES) were not met: 19832 19833 $XORG_PKG_ERRORS 19834 19835 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19836 installed software in a non-standard prefix. 19837 19838 Alternatively, you may set the environment variables XORG_CFLAGS 19839 and XORG_LIBS to avoid the need to call pkg-config. 19840 See the pkg-config man page for more details." "$LINENO" 5 19841 elif test $pkg_failed = untried; then 19842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19843 printf "%s\n" "no" >&6; } 19844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19845 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19846 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19847 is in your PATH or set the PKG_CONFIG environment variable to the full 19848 path to pkg-config. 19849 19850 Alternatively, you may set the environment variables XORG_CFLAGS 19851 and XORG_LIBS to avoid the need to call pkg-config. 19852 See the pkg-config man page for more details. 19853 19854 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19855 See \`config.log' for more details" "$LINENO" 5; } 19856 else 19857 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19858 XORG_LIBS=$pkg_cv_XORG_LIBS 19859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19860 printf "%s\n" "yes" >&6; } 19861 19862 fi 19863 19864 save_CFLAGS="$CFLAGS" 19865 CFLAGS="$XORG_CFLAGS" 19866 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19867 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19868 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19869 then : 19870 XSERVER_LIBPCIACCESS=yes 19871 else $as_nop 19872 XSERVER_LIBPCIACCESS=no 19873 fi 19874 CFLAGS="$save_CFLAGS" 19875 19876 # Check whether --enable-kms was given. 19877 if test ${enable_kms+y} 19878 then : 19879 enableval=$enable_kms; DRM_MODE="$enableval" 19880 else $as_nop 19881 DRM_MODE=yes 19882 fi 19883 19884 19885 # Checks for libraries. 19886 if test "x$DRM_MODE" = xyes; then 19887 # require support for kms cursor hotspot 19888 19889 pkg_failed=no 19890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 19891 printf %s "checking for DRM... " >&6; } 19892 19893 if test -n "$DRM_CFLAGS"; then 19894 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" 19895 elif test -n "$PKG_CONFIG"; then 19896 if test -n "$PKG_CONFIG" && \ 19897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5 19898 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5 19899 ac_status=$? 19900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19901 test $ac_status = 0; }; then 19902 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null` 19903 test "x$?" != "x0" && pkg_failed=yes 19904 else 19905 pkg_failed=yes 19906 fi 19907 else 19908 pkg_failed=untried 19909 fi 19910 if test -n "$DRM_LIBS"; then 19911 pkg_cv_DRM_LIBS="$DRM_LIBS" 19912 elif test -n "$PKG_CONFIG"; then 19913 if test -n "$PKG_CONFIG" && \ 19914 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5 19915 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5 19916 ac_status=$? 19917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19918 test $ac_status = 0; }; then 19919 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null` 19920 test "x$?" != "x0" && pkg_failed=yes 19921 else 19922 pkg_failed=yes 19923 fi 19924 else 19925 pkg_failed=untried 19926 fi 19927 19928 19929 19930 if test $pkg_failed = yes; then 19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19932 printf "%s\n" "no" >&6; } 19933 19934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19935 _pkg_short_errors_supported=yes 19936 else 19937 _pkg_short_errors_supported=no 19938 fi 19939 if test $_pkg_short_errors_supported = yes; then 19940 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.46" 2>&1` 19941 else 19942 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.46" 2>&1` 19943 fi 19944 # Put the nasty error message in config.log where it belongs 19945 echo "$DRM_PKG_ERRORS" >&5 19946 19947 as_fn_error $? "Package requirements (libdrm >= 2.4.46) were not met: 19948 19949 $DRM_PKG_ERRORS 19950 19951 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19952 installed software in a non-standard prefix. 19953 19954 Alternatively, you may set the environment variables DRM_CFLAGS 19955 and DRM_LIBS to avoid the need to call pkg-config. 19956 See the pkg-config man page for more details." "$LINENO" 5 19957 elif test $pkg_failed = untried; then 19958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19959 printf "%s\n" "no" >&6; } 19960 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19961 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19962 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19963 is in your PATH or set the PKG_CONFIG environment variable to the full 19964 path to pkg-config. 19965 19966 Alternatively, you may set the environment variables DRM_CFLAGS 19967 and DRM_LIBS to avoid the need to call pkg-config. 19968 See the pkg-config man page for more details. 19969 19970 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19971 See \`config.log' for more details" "$LINENO" 5; } 19972 else 19973 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS 19974 DRM_LIBS=$pkg_cv_DRM_LIBS 19975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19976 printf "%s\n" "yes" >&6; } 19977 19978 fi 19979 else 19980 DRM_MODE=no 19981 fi 19982 19983 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19984 19985 pkg_failed=no 19986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19987 printf %s "checking for PCIACCESS... " >&6; } 19988 19989 if test -n "$PCIACCESS_CFLAGS"; then 19990 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19991 elif test -n "$PKG_CONFIG"; then 19992 if test -n "$PKG_CONFIG" && \ 19993 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 19994 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 19995 ac_status=$? 19996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19997 test $ac_status = 0; }; then 19998 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 19999 test "x$?" != "x0" && pkg_failed=yes 20000 else 20001 pkg_failed=yes 20002 fi 20003 else 20004 pkg_failed=untried 20005 fi 20006 if test -n "$PCIACCESS_LIBS"; then 20007 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20008 elif test -n "$PKG_CONFIG"; then 20009 if test -n "$PKG_CONFIG" && \ 20010 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20011 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20012 ac_status=$? 20013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20014 test $ac_status = 0; }; then 20015 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 20016 test "x$?" != "x0" && pkg_failed=yes 20017 else 20018 pkg_failed=yes 20019 fi 20020 else 20021 pkg_failed=untried 20022 fi 20023 20024 20025 20026 if test $pkg_failed = yes; then 20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20028 printf "%s\n" "no" >&6; } 20029 20030 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20031 _pkg_short_errors_supported=yes 20032 else 20033 _pkg_short_errors_supported=no 20034 fi 20035 if test $_pkg_short_errors_supported = yes; then 20036 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20037 else 20038 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20039 fi 20040 # Put the nasty error message in config.log where it belongs 20041 echo "$PCIACCESS_PKG_ERRORS" >&5 20042 20043 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 20044 20045 $PCIACCESS_PKG_ERRORS 20046 20047 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20048 installed software in a non-standard prefix. 20049 20050 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20051 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20052 See the pkg-config man page for more details." "$LINENO" 5 20053 elif test $pkg_failed = untried; then 20054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20055 printf "%s\n" "no" >&6; } 20056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20058 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20059 is in your PATH or set the PKG_CONFIG environment variable to the full 20060 path to pkg-config. 20061 20062 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20063 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20064 See the pkg-config man page for more details. 20065 20066 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20067 See \`config.log' for more details" "$LINENO" 5; } 20068 else 20069 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20070 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20072 printf "%s\n" "yes" >&6; } 20073 20074 fi 20075 fi 20076 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 20077 XSERVER_LIBPCIACCESS_TRUE= 20078 XSERVER_LIBPCIACCESS_FALSE='#' 20079 else 20080 XSERVER_LIBPCIACCESS_TRUE='#' 20081 XSERVER_LIBPCIACCESS_FALSE= 20082 fi 20083 20084 save_CFLAGS="$CFLAGS" 20085 CFLAGS="$DRM_CFLAGS $CFLAGS" 20086 if test "x$DRM_MODE" = xyes; then 20087 ac_fn_c_check_header_compile "$LINENO" "xf86drmMode.h" "ac_cv_header_xf86drmMode_h" "#include <stdint.h> 20088 #include <stdlib.h> 20089 " 20090 if test "x$ac_cv_header_xf86drmMode_h" = xyes 20091 then : 20092 DRM_MODE=yes 20093 else $as_nop 20094 DRM_MODE=no 20095 fi 20096 20097 if test "x$DRM_MODE" = xyes; then 20098 20099 printf "%s\n" "#define XF86DRM_MODE 1" >>confdefs.h 20100 20101 else 20102 DRM_MODE=no 20103 fi 20104 fi 20105 CFLAGS="$save_CFLAGS" 20106 if test x$DRM_MODE = xyes; then 20107 DRM_MODE_TRUE= 20108 DRM_MODE_FALSE='#' 20109 else 20110 DRM_MODE_TRUE='#' 20111 DRM_MODE_FALSE= 20112 fi 20113 20114 20115 enable_qxl=yes 20116 # Check whether --enable-xspice was given. 20117 if test ${enable_xspice+y} 20118 then : 20119 enableval=$enable_xspice; if test "x$enableval" = "xyes"; then 20120 enable_xspice=yes 20121 elif test "x$enableval" = "xonly"; then 20122 enable_xspice=yes 20123 enable_qxl=no 20124 else 20125 enable_xspice=no 20126 fi 20127 20128 fi 20129 20130 20131 if test "x$enable_xspice" = "xyes"; then 20132 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" 20133 if test "x$ac_cv_header_sys_inotify_h" = xyes 20134 then : 20135 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h 20136 20137 fi 20138 20139 ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1" 20140 if test "x$ac_cv_func_inotify_init1" = xyes 20141 then : 20142 printf "%s\n" "#define HAVE_INOTIFY_INIT1 1" >>confdefs.h 20143 20144 fi 20145 20146 20147 pkg_failed=no 20148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SPICE" >&5 20149 printf %s "checking for SPICE... " >&6; } 20150 20151 if test -n "$SPICE_CFLAGS"; then 20152 pkg_cv_SPICE_CFLAGS="$SPICE_CFLAGS" 20153 elif test -n "$PKG_CONFIG"; then 20154 if test -n "$PKG_CONFIG" && \ 20155 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-server >= 0.6.3\""; } >&5 20156 ($PKG_CONFIG --exists --print-errors "spice-server >= 0.6.3") 2>&5 20157 ac_status=$? 20158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20159 test $ac_status = 0; }; then 20160 pkg_cv_SPICE_CFLAGS=`$PKG_CONFIG --cflags "spice-server >= 0.6.3" 2>/dev/null` 20161 test "x$?" != "x0" && pkg_failed=yes 20162 else 20163 pkg_failed=yes 20164 fi 20165 else 20166 pkg_failed=untried 20167 fi 20168 if test -n "$SPICE_LIBS"; then 20169 pkg_cv_SPICE_LIBS="$SPICE_LIBS" 20170 elif test -n "$PKG_CONFIG"; then 20171 if test -n "$PKG_CONFIG" && \ 20172 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-server >= 0.6.3\""; } >&5 20173 ($PKG_CONFIG --exists --print-errors "spice-server >= 0.6.3") 2>&5 20174 ac_status=$? 20175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20176 test $ac_status = 0; }; then 20177 pkg_cv_SPICE_LIBS=`$PKG_CONFIG --libs "spice-server >= 0.6.3" 2>/dev/null` 20178 test "x$?" != "x0" && pkg_failed=yes 20179 else 20180 pkg_failed=yes 20181 fi 20182 else 20183 pkg_failed=untried 20184 fi 20185 20186 20187 20188 if test $pkg_failed = yes; then 20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20190 printf "%s\n" "no" >&6; } 20191 20192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20193 _pkg_short_errors_supported=yes 20194 else 20195 _pkg_short_errors_supported=no 20196 fi 20197 if test $_pkg_short_errors_supported = yes; then 20198 SPICE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spice-server >= 0.6.3" 2>&1` 20199 else 20200 SPICE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spice-server >= 0.6.3" 2>&1` 20201 fi 20202 # Put the nasty error message in config.log where it belongs 20203 echo "$SPICE_PKG_ERRORS" >&5 20204 20205 as_fn_error $? "Package requirements (spice-server >= 0.6.3) were not met: 20206 20207 $SPICE_PKG_ERRORS 20208 20209 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20210 installed software in a non-standard prefix. 20211 20212 Alternatively, you may set the environment variables SPICE_CFLAGS 20213 and SPICE_LIBS to avoid the need to call pkg-config. 20214 See the pkg-config man page for more details." "$LINENO" 5 20215 elif test $pkg_failed = untried; then 20216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20217 printf "%s\n" "no" >&6; } 20218 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20219 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20220 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20221 is in your PATH or set the PKG_CONFIG environment variable to the full 20222 path to pkg-config. 20223 20224 Alternatively, you may set the environment variables SPICE_CFLAGS 20225 and SPICE_LIBS to avoid the need to call pkg-config. 20226 See the pkg-config man page for more details. 20227 20228 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20229 See \`config.log' for more details" "$LINENO" 5; } 20230 else 20231 SPICE_CFLAGS=$pkg_cv_SPICE_CFLAGS 20232 SPICE_LIBS=$pkg_cv_SPICE_LIBS 20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20234 printf "%s\n" "yes" >&6; } 20235 20236 20237 20238 20239 fi 20240 else 20241 enable_xspice=no 20242 fi 20243 20244 # Check whether --enable-ccid was given. 20245 if test ${enable_ccid+y} 20246 then : 20247 enableval=$enable_ccid; enable_ccid=$enableval 20248 else $as_nop 20249 enable_ccid=no 20250 fi 20251 20252 20253 # Check whether --with-ccid-module-dir was given. 20254 if test ${with_ccid_module_dir+y} 20255 then : 20256 withval=$with_ccid_module_dir; cciddir="$withval" 20257 else $as_nop 20258 cciddir="$libdir/pcsc/drivers/serial" 20259 fi 20260 20261 20262 if test "x$enable_ccid" != "xno"; then 20263 20264 pkg_failed=no 20265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBPCSCLITE" >&5 20266 printf %s "checking for LIBPCSCLITE... " >&6; } 20267 20268 if test -n "$LIBPCSCLITE_CFLAGS"; then 20269 pkg_cv_LIBPCSCLITE_CFLAGS="$LIBPCSCLITE_CFLAGS" 20270 elif test -n "$PKG_CONFIG"; then 20271 if test -n "$PKG_CONFIG" && \ 20272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5 20273 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5 20274 ac_status=$? 20275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20276 test $ac_status = 0; }; then 20277 pkg_cv_LIBPCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null` 20278 test "x$?" != "x0" && pkg_failed=yes 20279 else 20280 pkg_failed=yes 20281 fi 20282 else 20283 pkg_failed=untried 20284 fi 20285 if test -n "$LIBPCSCLITE_LIBS"; then 20286 pkg_cv_LIBPCSCLITE_LIBS="$LIBPCSCLITE_LIBS" 20287 elif test -n "$PKG_CONFIG"; then 20288 if test -n "$PKG_CONFIG" && \ 20289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5 20290 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5 20291 ac_status=$? 20292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20293 test $ac_status = 0; }; then 20294 pkg_cv_LIBPCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null` 20295 test "x$?" != "x0" && pkg_failed=yes 20296 else 20297 pkg_failed=yes 20298 fi 20299 else 20300 pkg_failed=untried 20301 fi 20302 20303 20304 20305 if test $pkg_failed = yes; then 20306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20307 printf "%s\n" "no" >&6; } 20308 20309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20310 _pkg_short_errors_supported=yes 20311 else 20312 _pkg_short_errors_supported=no 20313 fi 20314 if test $_pkg_short_errors_supported = yes; then 20315 LIBPCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite" 2>&1` 20316 else 20317 LIBPCSCLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite" 2>&1` 20318 fi 20319 # Put the nasty error message in config.log where it belongs 20320 echo "$LIBPCSCLITE_PKG_ERRORS" >&5 20321 20322 as_fn_error $? "Package requirements (libpcsclite) were not met: 20323 20324 $LIBPCSCLITE_PKG_ERRORS 20325 20326 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20327 installed software in a non-standard prefix. 20328 20329 Alternatively, you may set the environment variables LIBPCSCLITE_CFLAGS 20330 and LIBPCSCLITE_LIBS to avoid the need to call pkg-config. 20331 See the pkg-config man page for more details." "$LINENO" 5 20332 elif test $pkg_failed = untried; then 20333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20334 printf "%s\n" "no" >&6; } 20335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20336 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20337 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20338 is in your PATH or set the PKG_CONFIG environment variable to the full 20339 path to pkg-config. 20340 20341 Alternatively, you may set the environment variables LIBPCSCLITE_CFLAGS 20342 and LIBPCSCLITE_LIBS to avoid the need to call pkg-config. 20343 See the pkg-config man page for more details. 20344 20345 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20346 See \`config.log' for more details" "$LINENO" 5; } 20347 else 20348 LIBPCSCLITE_CFLAGS=$pkg_cv_LIBPCSCLITE_CFLAGS 20349 LIBPCSCLITE_LIBS=$pkg_cv_LIBPCSCLITE_LIBS 20350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20351 printf "%s\n" "yes" >&6; } 20352 20353 fi 20354 20355 pkg_failed=no 20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBCACARD" >&5 20357 printf %s "checking for LIBCACARD... " >&6; } 20358 20359 if test -n "$LIBCACARD_CFLAGS"; then 20360 pkg_cv_LIBCACARD_CFLAGS="$LIBCACARD_CFLAGS" 20361 elif test -n "$PKG_CONFIG"; then 20362 if test -n "$PKG_CONFIG" && \ 20363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard\""; } >&5 20364 ($PKG_CONFIG --exists --print-errors "libcacard") 2>&5 20365 ac_status=$? 20366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20367 test $ac_status = 0; }; then 20368 pkg_cv_LIBCACARD_CFLAGS=`$PKG_CONFIG --cflags "libcacard" 2>/dev/null` 20369 test "x$?" != "x0" && pkg_failed=yes 20370 else 20371 pkg_failed=yes 20372 fi 20373 else 20374 pkg_failed=untried 20375 fi 20376 if test -n "$LIBCACARD_LIBS"; then 20377 pkg_cv_LIBCACARD_LIBS="$LIBCACARD_LIBS" 20378 elif test -n "$PKG_CONFIG"; then 20379 if test -n "$PKG_CONFIG" && \ 20380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard\""; } >&5 20381 ($PKG_CONFIG --exists --print-errors "libcacard") 2>&5 20382 ac_status=$? 20383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20384 test $ac_status = 0; }; then 20385 pkg_cv_LIBCACARD_LIBS=`$PKG_CONFIG --libs "libcacard" 2>/dev/null` 20386 test "x$?" != "x0" && pkg_failed=yes 20387 else 20388 pkg_failed=yes 20389 fi 20390 else 20391 pkg_failed=untried 20392 fi 20393 20394 20395 20396 if test $pkg_failed = yes; then 20397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20398 printf "%s\n" "no" >&6; } 20399 20400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20401 _pkg_short_errors_supported=yes 20402 else 20403 _pkg_short_errors_supported=no 20404 fi 20405 if test $_pkg_short_errors_supported = yes; then 20406 LIBCACARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcacard" 2>&1` 20407 else 20408 LIBCACARD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcacard" 2>&1` 20409 fi 20410 # Put the nasty error message in config.log where it belongs 20411 echo "$LIBCACARD_PKG_ERRORS" >&5 20412 20413 as_fn_error $? "Package requirements (libcacard) were not met: 20414 20415 $LIBCACARD_PKG_ERRORS 20416 20417 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20418 installed software in a non-standard prefix. 20419 20420 Alternatively, you may set the environment variables LIBCACARD_CFLAGS 20421 and LIBCACARD_LIBS to avoid the need to call pkg-config. 20422 See the pkg-config man page for more details." "$LINENO" 5 20423 elif test $pkg_failed = untried; then 20424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20425 printf "%s\n" "no" >&6; } 20426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20427 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20428 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20429 is in your PATH or set the PKG_CONFIG environment variable to the full 20430 path to pkg-config. 20431 20432 Alternatively, you may set the environment variables LIBCACARD_CFLAGS 20433 and LIBCACARD_LIBS to avoid the need to call pkg-config. 20434 See the pkg-config man page for more details. 20435 20436 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20437 See \`config.log' for more details" "$LINENO" 5; } 20438 else 20439 LIBCACARD_CFLAGS=$pkg_cv_LIBCACARD_CFLAGS 20440 LIBCACARD_LIBS=$pkg_cv_LIBCACARD_LIBS 20441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20442 printf "%s\n" "yes" >&6; } 20443 20444 fi 20445 20446 if test "x$enable_xspice" = "xno"; then 20447 as_fn_error $? "Building with ccid requires xspice, but xspice is not enabled" "$LINENO" 5 20448 fi 20449 fi 20450 20451 20452 if test "x$enable_xspice" = "xyes"; then 20453 BUILD_XSPICE_TRUE= 20454 BUILD_XSPICE_FALSE='#' 20455 else 20456 BUILD_XSPICE_TRUE='#' 20457 BUILD_XSPICE_FALSE= 20458 fi 20459 20460 if test "x$enable_qxl" = "xyes"; then 20461 BUILD_QXL_TRUE= 20462 BUILD_QXL_FALSE='#' 20463 else 20464 BUILD_QXL_TRUE='#' 20465 BUILD_QXL_FALSE= 20466 fi 20467 20468 if test "x$enable_ccid" = "xyes"; then 20469 BUILD_SPICECCID_TRUE= 20470 BUILD_SPICECCID_FALSE='#' 20471 else 20472 BUILD_SPICECCID_TRUE='#' 20473 BUILD_SPICECCID_FALSE= 20474 fi 20475 20476 20477 # Check whether --enable-udev was given. 20478 if test ${enable_udev+y} 20479 then : 20480 enableval=$enable_udev; enable_udev="$enableval" 20481 else $as_nop 20482 enable_udev=auto 20483 fi 20484 20485 if test "x$enable_udev" != "xno"; then 20486 20487 pkg_failed=no 20488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5 20489 printf %s "checking for LIBUDEV... " >&6; } 20490 20491 if test -n "$LIBUDEV_CFLAGS"; then 20492 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 20493 elif test -n "$PKG_CONFIG"; then 20494 if test -n "$PKG_CONFIG" && \ 20495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20496 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20497 ac_status=$? 20498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20499 test $ac_status = 0; }; then 20500 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 20501 test "x$?" != "x0" && pkg_failed=yes 20502 else 20503 pkg_failed=yes 20504 fi 20505 else 20506 pkg_failed=untried 20507 fi 20508 if test -n "$LIBUDEV_LIBS"; then 20509 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 20510 elif test -n "$PKG_CONFIG"; then 20511 if test -n "$PKG_CONFIG" && \ 20512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20513 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20514 ac_status=$? 20515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20516 test $ac_status = 0; }; then 20517 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 20518 test "x$?" != "x0" && pkg_failed=yes 20519 else 20520 pkg_failed=yes 20521 fi 20522 else 20523 pkg_failed=untried 20524 fi 20525 20526 20527 20528 if test $pkg_failed = yes; then 20529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20530 printf "%s\n" "no" >&6; } 20531 20532 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20533 _pkg_short_errors_supported=yes 20534 else 20535 _pkg_short_errors_supported=no 20536 fi 20537 if test $_pkg_short_errors_supported = yes; then 20538 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 20539 else 20540 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 20541 fi 20542 # Put the nasty error message in config.log where it belongs 20543 echo "$LIBUDEV_PKG_ERRORS" >&5 20544 20545 LIBUDEV=no 20546 elif test $pkg_failed = untried; then 20547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20548 printf "%s\n" "no" >&6; } 20549 LIBUDEV=no 20550 else 20551 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 20552 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 20553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20554 printf "%s\n" "yes" >&6; } 20555 LIBUDEV=yes 20556 fi 20557 if test "x$LIBUDEV" = xyes; then 20558 20559 printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h 20560 20561 elif test "x$enable_udev" != "xauto"; then 20562 as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5 20563 fi 20564 fi 20565 if test x$LIBUDEV = xyes; then 20566 LIBUDEV_TRUE= 20567 LIBUDEV_FALSE='#' 20568 else 20569 LIBUDEV_TRUE='#' 20570 LIBUDEV_FALSE= 20571 fi 20572 20573 20574 20575 pkg_failed=no 20576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SPICE_PROTOCOL" >&5 20577 printf %s "checking for SPICE_PROTOCOL... " >&6; } 20578 20579 if test -n "$SPICE_PROTOCOL_CFLAGS"; then 20580 pkg_cv_SPICE_PROTOCOL_CFLAGS="$SPICE_PROTOCOL_CFLAGS" 20581 elif test -n "$PKG_CONFIG"; then 20582 if test -n "$PKG_CONFIG" && \ 20583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.0\""; } >&5 20584 ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.0") 2>&5 20585 ac_status=$? 20586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20587 test $ac_status = 0; }; then 20588 pkg_cv_SPICE_PROTOCOL_CFLAGS=`$PKG_CONFIG --cflags "spice-protocol >= 0.12.0" 2>/dev/null` 20589 test "x$?" != "x0" && pkg_failed=yes 20590 else 20591 pkg_failed=yes 20592 fi 20593 else 20594 pkg_failed=untried 20595 fi 20596 if test -n "$SPICE_PROTOCOL_LIBS"; then 20597 pkg_cv_SPICE_PROTOCOL_LIBS="$SPICE_PROTOCOL_LIBS" 20598 elif test -n "$PKG_CONFIG"; then 20599 if test -n "$PKG_CONFIG" && \ 20600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.0\""; } >&5 20601 ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.0") 2>&5 20602 ac_status=$? 20603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20604 test $ac_status = 0; }; then 20605 pkg_cv_SPICE_PROTOCOL_LIBS=`$PKG_CONFIG --libs "spice-protocol >= 0.12.0" 2>/dev/null` 20606 test "x$?" != "x0" && pkg_failed=yes 20607 else 20608 pkg_failed=yes 20609 fi 20610 else 20611 pkg_failed=untried 20612 fi 20613 20614 20615 20616 if test $pkg_failed = yes; then 20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20618 printf "%s\n" "no" >&6; } 20619 20620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20621 _pkg_short_errors_supported=yes 20622 else 20623 _pkg_short_errors_supported=no 20624 fi 20625 if test $_pkg_short_errors_supported = yes; then 20626 SPICE_PROTOCOL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spice-protocol >= 0.12.0" 2>&1` 20627 else 20628 SPICE_PROTOCOL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spice-protocol >= 0.12.0" 2>&1` 20629 fi 20630 # Put the nasty error message in config.log where it belongs 20631 echo "$SPICE_PROTOCOL_PKG_ERRORS" >&5 20632 20633 as_fn_error $? "Package requirements (spice-protocol >= 0.12.0) were not met: 20634 20635 $SPICE_PROTOCOL_PKG_ERRORS 20636 20637 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20638 installed software in a non-standard prefix. 20639 20640 Alternatively, you may set the environment variables SPICE_PROTOCOL_CFLAGS 20641 and SPICE_PROTOCOL_LIBS to avoid the need to call pkg-config. 20642 See the pkg-config man page for more details." "$LINENO" 5 20643 elif test $pkg_failed = untried; then 20644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20645 printf "%s\n" "no" >&6; } 20646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20647 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 20648 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20649 is in your PATH or set the PKG_CONFIG environment variable to the full 20650 path to pkg-config. 20651 20652 Alternatively, you may set the environment variables SPICE_PROTOCOL_CFLAGS 20653 and SPICE_PROTOCOL_LIBS to avoid the need to call pkg-config. 20654 See the pkg-config man page for more details. 20655 20656 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20657 See \`config.log' for more details" "$LINENO" 5; } 20658 else 20659 SPICE_PROTOCOL_CFLAGS=$pkg_cv_SPICE_PROTOCOL_CFLAGS 20660 SPICE_PROTOCOL_LIBS=$pkg_cv_SPICE_PROTOCOL_LIBS 20661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20662 printf "%s\n" "yes" >&6; } 20663 20664 fi 20665 20666 # AC_CHECK_FILE is not supported when cross compiling 20667 if test "$cross_compiling" = "no" ; then 20668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .git" >&5 20669 printf %s "checking for .git... " >&6; } 20670 if test ${ac_cv_file__git+y} 20671 then : 20672 printf %s "(cached) " >&6 20673 else $as_nop 20674 test "$cross_compiling" = yes && 20675 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20676 if test -r ".git"; then 20677 ac_cv_file__git=yes 20678 else 20679 ac_cv_file__git=no 20680 fi 20681 fi 20682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__git" >&5 20683 printf "%s\n" "$ac_cv_file__git" >&6; } 20684 if test "x$ac_cv_file__git" = xyes 20685 then : 20686 20687 GIT_VERSION=`git log -1 --format=%h` 20688 20689 printf "%s\n" "#define GIT_VERSION \"$GIT_VERSION\"" >>confdefs.h 20690 20691 20692 20693 fi 20694 20695 fi 20696 20697 ac_config_files="$ac_config_files Makefile src/Makefile src/spiceccid/Makefile src/uxa/Makefile scripts/Makefile examples/Makefile" 20698 20699 cat >confcache <<\_ACEOF 20700 # This file is a shell script that caches the results of configure 20701 # tests run on this system so they can be shared between configure 20702 # scripts and configure runs, see configure's option --config-cache. 20703 # It is not useful on other systems. If it contains results you don't 20704 # want to keep, you may remove or edit it. 20705 # 20706 # config.status only pays attention to the cache file if you give it 20707 # the --recheck option to rerun configure. 20708 # 20709 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20710 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20711 # following values. 20712 20713 _ACEOF 20714 20715 # The following way of writing the cache mishandles newlines in values, 20716 # but we know of no workaround that is simple, portable, and efficient. 20717 # So, we kill variables containing newlines. 20718 # Ultrix sh set writes to stderr and can't be redirected directly, 20719 # and sets the high bit in the cache file unless we assign to the vars. 20720 ( 20721 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20722 eval ac_val=\$$ac_var 20723 case $ac_val in #( 20724 *${as_nl}*) 20725 case $ac_var in #( 20726 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20727 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20728 esac 20729 case $ac_var in #( 20730 _ | IFS | as_nl) ;; #( 20731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20732 *) { eval $ac_var=; unset $ac_var;} ;; 20733 esac ;; 20734 esac 20735 done 20736 20737 (set) 2>&1 | 20738 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20739 *${as_nl}ac_space=\ *) 20740 # `set' does not quote correctly, so add quotes: double-quote 20741 # substitution turns \\\\ into \\, and sed turns \\ into \. 20742 sed -n \ 20743 "s/'/'\\\\''/g; 20744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20745 ;; #( 20746 *) 20747 # `set' quotes correctly as required by POSIX, so do not add quotes. 20748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20749 ;; 20750 esac | 20751 sort 20752 ) | 20753 sed ' 20754 /^ac_cv_env_/b end 20755 t clear 20756 :clear 20757 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20758 t end 20759 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20760 :end' >>confcache 20761 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20762 if test -w "$cache_file"; then 20763 if test "x$cache_file" != "x/dev/null"; then 20764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20765 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20766 if test ! -f "$cache_file" || test -h "$cache_file"; then 20767 cat confcache >"$cache_file" 20768 else 20769 case $cache_file in #( 20770 */* | ?:*) 20771 mv -f confcache "$cache_file"$$ && 20772 mv -f "$cache_file"$$ "$cache_file" ;; #( 20773 *) 20774 mv -f confcache "$cache_file" ;; 20775 esac 20776 fi 20777 fi 20778 else 20779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20780 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20781 fi 20782 fi 20783 rm -f confcache 20784 20785 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20786 # Let make expand exec_prefix. 20787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20788 20789 DEFS=-DHAVE_CONFIG_H 20790 20791 ac_libobjs= 20792 ac_ltlibobjs= 20793 U= 20794 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20795 # 1. Remove the extension, and $U if already installed. 20796 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20797 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20798 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20799 # will be set to the directory where LIBOBJS objects are built. 20800 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20801 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20802 done 20803 LIBOBJS=$ac_libobjs 20804 20805 LTLIBOBJS=$ac_ltlibobjs 20806 20807 20808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20809 printf %s "checking that generated files are newer than configure... " >&6; } 20810 if test -n "$am_sleep_pid"; then 20811 # Hide warnings about reused PIDs. 20812 wait $am_sleep_pid 2>/dev/null 20813 fi 20814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20815 printf "%s\n" "done" >&6; } 20816 if test -n "$EXEEXT"; then 20817 am__EXEEXT_TRUE= 20818 am__EXEEXT_FALSE='#' 20819 else 20820 am__EXEEXT_TRUE='#' 20821 am__EXEEXT_FALSE= 20822 fi 20823 20824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20825 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20826 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20827 fi 20828 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20829 as_fn_error $? "conditional \"AMDEP\" was never defined. 20830 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20831 fi 20832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20833 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20834 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20835 fi 20836 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 20837 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 20838 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20839 fi 20840 if test -z "${DRM_MODE_TRUE}" && test -z "${DRM_MODE_FALSE}"; then 20841 as_fn_error $? "conditional \"DRM_MODE\" was never defined. 20842 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20843 fi 20844 if test -z "${BUILD_XSPICE_TRUE}" && test -z "${BUILD_XSPICE_FALSE}"; then 20845 as_fn_error $? "conditional \"BUILD_XSPICE\" was never defined. 20846 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20847 fi 20848 if test -z "${BUILD_QXL_TRUE}" && test -z "${BUILD_QXL_FALSE}"; then 20849 as_fn_error $? "conditional \"BUILD_QXL\" was never defined. 20850 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20851 fi 20852 if test -z "${BUILD_SPICECCID_TRUE}" && test -z "${BUILD_SPICECCID_FALSE}"; then 20853 as_fn_error $? "conditional \"BUILD_SPICECCID\" was never defined. 20854 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20855 fi 20856 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20857 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20858 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20859 fi 20860 20861 : "${CONFIG_STATUS=./config.status}" 20862 ac_write_fail=0 20863 ac_clean_files_save=$ac_clean_files 20864 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20866 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20867 as_write_fail=0 20868 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20869 #! $SHELL 20870 # Generated by $as_me. 20871 # Run this file to recreate the current configuration. 20872 # Compiler output produced by configure, useful for debugging 20873 # configure, is in config.log if it exists. 20874 20875 debug=false 20876 ac_cs_recheck=false 20877 ac_cs_silent=false 20878 20879 SHELL=\${CONFIG_SHELL-$SHELL} 20880 export SHELL 20881 _ASEOF 20882 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20883 ## -------------------- ## 20884 ## M4sh Initialization. ## 20885 ## -------------------- ## 20886 20887 # Be more Bourne compatible 20888 DUALCASE=1; export DUALCASE # for MKS sh 20889 as_nop=: 20890 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20891 then : 20892 emulate sh 20893 NULLCMD=: 20894 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20895 # is contrary to our usage. Disable this feature. 20896 alias -g '${1+"$@"}'='"$@"' 20897 setopt NO_GLOB_SUBST 20898 else $as_nop 20899 case `(set -o) 2>/dev/null` in #( 20900 *posix*) : 20901 set -o posix ;; #( 20902 *) : 20903 ;; 20904 esac 20905 fi 20906 20907 20908 20909 # Reset variables that may have inherited troublesome values from 20910 # the environment. 20911 20912 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20913 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20914 # side effect of setting IFS to empty, thus disabling word splitting.) 20915 # Quoting is to prevent editors from complaining about space-tab. 20916 as_nl=' 20917 ' 20918 export as_nl 20919 IFS=" "" $as_nl" 20920 20921 PS1='$ ' 20922 PS2='> ' 20923 PS4='+ ' 20924 20925 # Ensure predictable behavior from utilities with locale-dependent output. 20926 LC_ALL=C 20927 export LC_ALL 20928 LANGUAGE=C 20929 export LANGUAGE 20930 20931 # We cannot yet rely on "unset" to work, but we need these variables 20932 # to be unset--not just set to an empty or harmless value--now, to 20933 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20934 # also avoids known problems related to "unset" and subshell syntax 20935 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20936 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20937 do eval test \${$as_var+y} \ 20938 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20939 done 20940 20941 # Ensure that fds 0, 1, and 2 are open. 20942 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20943 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20944 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20945 20946 # The user is always right. 20947 if ${PATH_SEPARATOR+false} :; then 20948 PATH_SEPARATOR=: 20949 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20950 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20951 PATH_SEPARATOR=';' 20952 } 20953 fi 20954 20955 20956 # Find who we are. Look in the path if we contain no directory separator. 20957 as_myself= 20958 case $0 in #(( 20959 *[\\/]* ) as_myself=$0 ;; 20960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20961 for as_dir in $PATH 20962 do 20963 IFS=$as_save_IFS 20964 case $as_dir in #((( 20965 '') as_dir=./ ;; 20966 */) ;; 20967 *) as_dir=$as_dir/ ;; 20968 esac 20969 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20970 done 20971 IFS=$as_save_IFS 20972 20973 ;; 20974 esac 20975 # We did not find ourselves, most probably we were run as `sh COMMAND' 20976 # in which case we are not to be found in the path. 20977 if test "x$as_myself" = x; then 20978 as_myself=$0 20979 fi 20980 if test ! -f "$as_myself"; then 20981 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20982 exit 1 20983 fi 20984 20985 20986 20987 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20988 # ---------------------------------------- 20989 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20990 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20991 # script with STATUS, using 1 if that was 0. 20992 as_fn_error () 20993 { 20994 as_status=$1; test $as_status -eq 0 && as_status=1 20995 if test "$4"; then 20996 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20998 fi 20999 printf "%s\n" "$as_me: error: $2" >&2 21000 as_fn_exit $as_status 21001 } # as_fn_error 21002 21003 21004 21005 # as_fn_set_status STATUS 21006 # ----------------------- 21007 # Set $? to STATUS, without forking. 21008 as_fn_set_status () 21009 { 21010 return $1 21011 } # as_fn_set_status 21012 21013 # as_fn_exit STATUS 21014 # ----------------- 21015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21016 as_fn_exit () 21017 { 21018 set +e 21019 as_fn_set_status $1 21020 exit $1 21021 } # as_fn_exit 21022 21023 # as_fn_unset VAR 21024 # --------------- 21025 # Portably unset VAR. 21026 as_fn_unset () 21027 { 21028 { eval $1=; unset $1;} 21029 } 21030 as_unset=as_fn_unset 21031 21032 # as_fn_append VAR VALUE 21033 # ---------------------- 21034 # Append the text in VALUE to the end of the definition contained in VAR. Take 21035 # advantage of any shell optimizations that allow amortized linear growth over 21036 # repeated appends, instead of the typical quadratic growth present in naive 21037 # implementations. 21038 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21039 then : 21040 eval 'as_fn_append () 21041 { 21042 eval $1+=\$2 21043 }' 21044 else $as_nop 21045 as_fn_append () 21046 { 21047 eval $1=\$$1\$2 21048 } 21049 fi # as_fn_append 21050 21051 # as_fn_arith ARG... 21052 # ------------------ 21053 # Perform arithmetic evaluation on the ARGs, and store the result in the 21054 # global $as_val. Take advantage of shells that can avoid forks. The arguments 21055 # must be portable across $(()) and expr. 21056 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21057 then : 21058 eval 'as_fn_arith () 21059 { 21060 as_val=$(( $* )) 21061 }' 21062 else $as_nop 21063 as_fn_arith () 21064 { 21065 as_val=`expr "$@" || test $? -eq 1` 21066 } 21067 fi # as_fn_arith 21068 21069 21070 if expr a : '\(a\)' >/dev/null 2>&1 && 21071 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21072 as_expr=expr 21073 else 21074 as_expr=false 21075 fi 21076 21077 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21078 as_basename=basename 21079 else 21080 as_basename=false 21081 fi 21082 21083 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21084 as_dirname=dirname 21085 else 21086 as_dirname=false 21087 fi 21088 21089 as_me=`$as_basename -- "$0" || 21090 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21091 X"$0" : 'X\(//\)$' \| \ 21092 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21093 printf "%s\n" X/"$0" | 21094 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21095 s//\1/ 21096 q 21097 } 21098 /^X\/\(\/\/\)$/{ 21099 s//\1/ 21100 q 21101 } 21102 /^X\/\(\/\).*/{ 21103 s//\1/ 21104 q 21105 } 21106 s/.*/./; q'` 21107 21108 # Avoid depending upon Character Ranges. 21109 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21110 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21111 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21112 as_cr_digits='0123456789' 21113 as_cr_alnum=$as_cr_Letters$as_cr_digits 21114 21115 21116 # Determine whether it's possible to make 'echo' print without a newline. 21117 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21118 # for compatibility with existing Makefiles. 21119 ECHO_C= ECHO_N= ECHO_T= 21120 case `echo -n x` in #((((( 21121 -n*) 21122 case `echo 'xy\c'` in 21123 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21124 xy) ECHO_C='\c';; 21125 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21126 ECHO_T=' ';; 21127 esac;; 21128 *) 21129 ECHO_N='-n';; 21130 esac 21131 21132 # For backward compatibility with old third-party macros, we provide 21133 # the shell variables $as_echo and $as_echo_n. New code should use 21134 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21135 as_echo='printf %s\n' 21136 as_echo_n='printf %s' 21137 21138 rm -f conf$$ conf$$.exe conf$$.file 21139 if test -d conf$$.dir; then 21140 rm -f conf$$.dir/conf$$.file 21141 else 21142 rm -f conf$$.dir 21143 mkdir conf$$.dir 2>/dev/null 21144 fi 21145 if (echo >conf$$.file) 2>/dev/null; then 21146 if ln -s conf$$.file conf$$ 2>/dev/null; then 21147 as_ln_s='ln -s' 21148 # ... but there are two gotchas: 21149 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21150 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21151 # In both cases, we have to default to `cp -pR'. 21152 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21153 as_ln_s='cp -pR' 21154 elif ln conf$$.file conf$$ 2>/dev/null; then 21155 as_ln_s=ln 21156 else 21157 as_ln_s='cp -pR' 21158 fi 21159 else 21160 as_ln_s='cp -pR' 21161 fi 21162 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21163 rmdir conf$$.dir 2>/dev/null 21164 21165 21166 # as_fn_mkdir_p 21167 # ------------- 21168 # Create "$as_dir" as a directory, including parents if necessary. 21169 as_fn_mkdir_p () 21170 { 21171 21172 case $as_dir in #( 21173 -*) as_dir=./$as_dir;; 21174 esac 21175 test -d "$as_dir" || eval $as_mkdir_p || { 21176 as_dirs= 21177 while :; do 21178 case $as_dir in #( 21179 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21180 *) as_qdir=$as_dir;; 21181 esac 21182 as_dirs="'$as_qdir' $as_dirs" 21183 as_dir=`$as_dirname -- "$as_dir" || 21184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21185 X"$as_dir" : 'X\(//\)[^/]' \| \ 21186 X"$as_dir" : 'X\(//\)$' \| \ 21187 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21188 printf "%s\n" X"$as_dir" | 21189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21190 s//\1/ 21191 q 21192 } 21193 /^X\(\/\/\)[^/].*/{ 21194 s//\1/ 21195 q 21196 } 21197 /^X\(\/\/\)$/{ 21198 s//\1/ 21199 q 21200 } 21201 /^X\(\/\).*/{ 21202 s//\1/ 21203 q 21204 } 21205 s/.*/./; q'` 21206 test -d "$as_dir" && break 21207 done 21208 test -z "$as_dirs" || eval "mkdir $as_dirs" 21209 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21210 21211 21212 } # as_fn_mkdir_p 21213 if mkdir -p . 2>/dev/null; then 21214 as_mkdir_p='mkdir -p "$as_dir"' 21215 else 21216 test -d ./-p && rmdir ./-p 21217 as_mkdir_p=false 21218 fi 21219 21220 21221 # as_fn_executable_p FILE 21222 # ----------------------- 21223 # Test if FILE is an executable regular file. 21224 as_fn_executable_p () 21225 { 21226 test -f "$1" && test -x "$1" 21227 } # as_fn_executable_p 21228 as_test_x='test -x' 21229 as_executable_p=as_fn_executable_p 21230 21231 # Sed expression to map a string onto a valid CPP name. 21232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21233 21234 # Sed expression to map a string onto a valid variable name. 21235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21236 21237 21238 exec 6>&1 21239 ## ----------------------------------- ## 21240 ## Main body of $CONFIG_STATUS script. ## 21241 ## ----------------------------------- ## 21242 _ASEOF 21243 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21244 21245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21246 # Save the log message, to keep $0 and so on meaningful, and to 21247 # report actual input values of CONFIG_FILES etc. instead of their 21248 # values after options handling. 21249 ac_log=" 21250 This file was extended by xf86-video-qxl $as_me 0.1.6, which was 21251 generated by GNU Autoconf 2.71. Invocation command line was 21252 21253 CONFIG_FILES = $CONFIG_FILES 21254 CONFIG_HEADERS = $CONFIG_HEADERS 21255 CONFIG_LINKS = $CONFIG_LINKS 21256 CONFIG_COMMANDS = $CONFIG_COMMANDS 21257 $ $0 $@ 21258 21259 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21260 " 21261 21262 _ACEOF 21263 21264 case $ac_config_files in *" 21265 "*) set x $ac_config_files; shift; ac_config_files=$*;; 21266 esac 21267 21268 case $ac_config_headers in *" 21269 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21270 esac 21271 21272 21273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21274 # Files that config.status was made for. 21275 config_files="$ac_config_files" 21276 config_headers="$ac_config_headers" 21277 config_commands="$ac_config_commands" 21278 21279 _ACEOF 21280 21281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21282 ac_cs_usage="\ 21283 \`$as_me' instantiates files and other configuration actions 21284 from templates according to the current configuration. Unless the files 21285 and actions are specified as TAGs, all are instantiated by default. 21286 21287 Usage: $0 [OPTION]... [TAG]... 21288 21289 -h, --help print this help, then exit 21290 -V, --version print version number and configuration settings, then exit 21291 --config print configuration, then exit 21292 -q, --quiet, --silent 21293 do not print progress messages 21294 -d, --debug don't remove temporary files 21295 --recheck update $as_me by reconfiguring in the same conditions 21296 --file=FILE[:TEMPLATE] 21297 instantiate the configuration file FILE 21298 --header=FILE[:TEMPLATE] 21299 instantiate the configuration header FILE 21300 21301 Configuration files: 21302 $config_files 21303 21304 Configuration headers: 21305 $config_headers 21306 21307 Configuration commands: 21308 $config_commands 21309 21310 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/issues>." 21311 21312 _ACEOF 21313 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21314 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21316 ac_cs_config='$ac_cs_config_escaped' 21317 ac_cs_version="\\ 21318 xf86-video-qxl config.status 0.1.6 21319 configured by $0, generated by GNU Autoconf 2.71, 21320 with options \\"\$ac_cs_config\\" 21321 21322 Copyright (C) 2021 Free Software Foundation, Inc. 21323 This config.status script is free software; the Free Software Foundation 21324 gives unlimited permission to copy, distribute and modify it." 21325 21326 ac_pwd='$ac_pwd' 21327 srcdir='$srcdir' 21328 INSTALL='$INSTALL' 21329 MKDIR_P='$MKDIR_P' 21330 AWK='$AWK' 21331 test -n "\$AWK" || AWK=awk 21332 _ACEOF 21333 21334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21335 # The default lists apply if the user does not specify any file. 21336 ac_need_defaults=: 21337 while test $# != 0 21338 do 21339 case $1 in 21340 --*=?*) 21341 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21342 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21343 ac_shift=: 21344 ;; 21345 --*=) 21346 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21347 ac_optarg= 21348 ac_shift=: 21349 ;; 21350 *) 21351 ac_option=$1 21352 ac_optarg=$2 21353 ac_shift=shift 21354 ;; 21355 esac 21356 21357 case $ac_option in 21358 # Handling of the options. 21359 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21360 ac_cs_recheck=: ;; 21361 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21362 printf "%s\n" "$ac_cs_version"; exit ;; 21363 --config | --confi | --conf | --con | --co | --c ) 21364 printf "%s\n" "$ac_cs_config"; exit ;; 21365 --debug | --debu | --deb | --de | --d | -d ) 21366 debug=: ;; 21367 --file | --fil | --fi | --f ) 21368 $ac_shift 21369 case $ac_optarg in 21370 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21371 '') as_fn_error $? "missing file argument" ;; 21372 esac 21373 as_fn_append CONFIG_FILES " '$ac_optarg'" 21374 ac_need_defaults=false;; 21375 --header | --heade | --head | --hea ) 21376 $ac_shift 21377 case $ac_optarg in 21378 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21379 esac 21380 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21381 ac_need_defaults=false;; 21382 --he | --h) 21383 # Conflict between --help and --header 21384 as_fn_error $? "ambiguous option: \`$1' 21385 Try \`$0 --help' for more information.";; 21386 --help | --hel | -h ) 21387 printf "%s\n" "$ac_cs_usage"; exit ;; 21388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21389 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21390 ac_cs_silent=: ;; 21391 21392 # This is an error. 21393 -*) as_fn_error $? "unrecognized option: \`$1' 21394 Try \`$0 --help' for more information." ;; 21395 21396 *) as_fn_append ac_config_targets " $1" 21397 ac_need_defaults=false ;; 21398 21399 esac 21400 shift 21401 done 21402 21403 ac_configure_extra_args= 21404 21405 if $ac_cs_silent; then 21406 exec 6>/dev/null 21407 ac_configure_extra_args="$ac_configure_extra_args --silent" 21408 fi 21409 21410 _ACEOF 21411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21412 if \$ac_cs_recheck; then 21413 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21414 shift 21415 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21416 CONFIG_SHELL='$SHELL' 21417 export CONFIG_SHELL 21418 exec "\$@" 21419 fi 21420 21421 _ACEOF 21422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21423 exec 5>>config.log 21424 { 21425 echo 21426 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21427 ## Running $as_me. ## 21428 _ASBOX 21429 printf "%s\n" "$ac_log" 21430 } >&5 21431 21432 _ACEOF 21433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21434 # 21435 # INIT-COMMANDS 21436 # 21437 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21438 21439 21440 # The HP-UX ksh and POSIX shell print the target directory to stdout 21441 # if CDPATH is set. 21442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21443 21444 sed_quote_subst='$sed_quote_subst' 21445 double_quote_subst='$double_quote_subst' 21446 delay_variable_subst='$delay_variable_subst' 21447 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21448 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21449 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21450 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21451 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21452 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21453 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21454 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21455 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21456 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21457 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21458 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21459 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21460 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21461 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21462 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21463 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21464 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21465 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21466 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21467 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21468 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21469 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21470 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21471 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21472 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21473 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21474 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21475 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21476 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21477 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21478 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21479 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21480 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21481 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21482 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21483 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21484 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21485 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21486 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21487 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21488 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21489 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21490 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21491 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21492 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21493 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21494 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21495 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21496 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21497 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21498 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21499 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21500 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21501 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21502 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21503 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21504 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21505 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21506 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21507 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"`' 21508 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21509 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21510 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21511 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21512 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21513 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21514 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21515 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21516 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21517 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21518 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21519 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21520 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21521 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21522 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21523 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21524 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21525 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21526 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21527 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21528 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21529 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21530 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21531 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21532 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21533 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21534 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21535 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21536 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21537 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21538 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21539 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21540 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21541 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21542 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21543 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21544 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21545 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21546 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21547 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21548 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21549 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21550 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21551 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21552 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21553 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21554 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21555 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21556 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21557 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21558 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21559 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21560 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21561 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21562 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21563 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21564 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21565 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21566 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21567 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21568 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21569 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21570 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21571 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21572 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21573 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21574 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21575 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21576 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21577 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21578 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21579 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21580 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21581 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21582 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21583 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21584 21585 LTCC='$LTCC' 21586 LTCFLAGS='$LTCFLAGS' 21587 compiler='$compiler_DEFAULT' 21588 21589 # A function that is used when there is no print builtin or printf. 21590 func_fallback_echo () 21591 { 21592 eval 'cat <<_LTECHO_EOF 21593 \$1 21594 _LTECHO_EOF' 21595 } 21596 21597 # Quote evaled strings. 21598 for var in SHELL \ 21599 ECHO \ 21600 PATH_SEPARATOR \ 21601 SED \ 21602 GREP \ 21603 EGREP \ 21604 FGREP \ 21605 LD \ 21606 NM \ 21607 LN_S \ 21608 lt_SP2NL \ 21609 lt_NL2SP \ 21610 reload_flag \ 21611 FILECMD \ 21612 OBJDUMP \ 21613 deplibs_check_method \ 21614 file_magic_cmd \ 21615 file_magic_glob \ 21616 want_nocaseglob \ 21617 DLLTOOL \ 21618 sharedlib_from_linklib_cmd \ 21619 AR \ 21620 archiver_list_spec \ 21621 STRIP \ 21622 RANLIB \ 21623 CC \ 21624 CFLAGS \ 21625 compiler \ 21626 lt_cv_sys_global_symbol_pipe \ 21627 lt_cv_sys_global_symbol_to_cdecl \ 21628 lt_cv_sys_global_symbol_to_import \ 21629 lt_cv_sys_global_symbol_to_c_name_address \ 21630 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21631 lt_cv_nm_interface \ 21632 nm_file_list_spec \ 21633 lt_cv_truncate_bin \ 21634 lt_prog_compiler_no_builtin_flag \ 21635 lt_prog_compiler_pic \ 21636 lt_prog_compiler_wl \ 21637 lt_prog_compiler_static \ 21638 lt_cv_prog_compiler_c_o \ 21639 need_locks \ 21640 MANIFEST_TOOL \ 21641 DSYMUTIL \ 21642 NMEDIT \ 21643 LIPO \ 21644 OTOOL \ 21645 OTOOL64 \ 21646 shrext_cmds \ 21647 export_dynamic_flag_spec \ 21648 whole_archive_flag_spec \ 21649 compiler_needs_object \ 21650 with_gnu_ld \ 21651 allow_undefined_flag \ 21652 no_undefined_flag \ 21653 hardcode_libdir_flag_spec \ 21654 hardcode_libdir_separator \ 21655 exclude_expsyms \ 21656 include_expsyms \ 21657 file_list_spec \ 21658 variables_saved_for_relink \ 21659 libname_spec \ 21660 library_names_spec \ 21661 soname_spec \ 21662 install_override_mode \ 21663 finish_eval \ 21664 old_striplib \ 21665 striplib; do 21666 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21667 *[\\\\\\\`\\"\\\$]*) 21668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21669 ;; 21670 *) 21671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21672 ;; 21673 esac 21674 done 21675 21676 # Double-quote double-evaled strings. 21677 for var in reload_cmds \ 21678 old_postinstall_cmds \ 21679 old_postuninstall_cmds \ 21680 old_archive_cmds \ 21681 extract_expsyms_cmds \ 21682 old_archive_from_new_cmds \ 21683 old_archive_from_expsyms_cmds \ 21684 archive_cmds \ 21685 archive_expsym_cmds \ 21686 module_cmds \ 21687 module_expsym_cmds \ 21688 export_symbols_cmds \ 21689 prelink_cmds \ 21690 postlink_cmds \ 21691 postinstall_cmds \ 21692 postuninstall_cmds \ 21693 finish_cmds \ 21694 sys_lib_search_path_spec \ 21695 configure_time_dlsearch_path \ 21696 configure_time_lt_sys_library_path; do 21697 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21698 *[\\\\\\\`\\"\\\$]*) 21699 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21700 ;; 21701 *) 21702 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21703 ;; 21704 esac 21705 done 21706 21707 ac_aux_dir='$ac_aux_dir' 21708 21709 # See if we are running on zsh, and set the options that allow our 21710 # commands through without removal of \ escapes INIT. 21711 if test -n "\${ZSH_VERSION+set}"; then 21712 setopt NO_GLOB_SUBST 21713 fi 21714 21715 21716 PACKAGE='$PACKAGE' 21717 VERSION='$VERSION' 21718 RM='$RM' 21719 ofile='$ofile' 21720 21721 21722 21723 21724 _ACEOF 21725 21726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21727 21728 # Handling of arguments. 21729 for ac_config_target in $ac_config_targets 21730 do 21731 case $ac_config_target in 21732 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21733 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21734 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21735 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21736 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21737 "src/spiceccid/Makefile") CONFIG_FILES="$CONFIG_FILES src/spiceccid/Makefile" ;; 21738 "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;; 21739 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 21740 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 21741 21742 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21743 esac 21744 done 21745 21746 21747 # If the user did not use the arguments to specify the items to instantiate, 21748 # then the envvar interface is used. Set only those that are not. 21749 # We use the long form for the default assignment because of an extremely 21750 # bizarre bug on SunOS 4.1.3. 21751 if $ac_need_defaults; then 21752 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21753 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21754 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21755 fi 21756 21757 # Have a temporary directory for convenience. Make it in the build tree 21758 # simply because there is no reason against having it here, and in addition, 21759 # creating and moving files from /tmp can sometimes cause problems. 21760 # Hook for its removal unless debugging. 21761 # Note that there is a small window in which the directory will not be cleaned: 21762 # after its creation but before its name has been assigned to `$tmp'. 21763 $debug || 21764 { 21765 tmp= ac_tmp= 21766 trap 'exit_status=$? 21767 : "${ac_tmp:=$tmp}" 21768 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21769 ' 0 21770 trap 'as_fn_exit 1' 1 2 13 15 21771 } 21772 # Create a (secure) tmp directory for tmp files. 21773 21774 { 21775 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21776 test -d "$tmp" 21777 } || 21778 { 21779 tmp=./conf$$-$RANDOM 21780 (umask 077 && mkdir "$tmp") 21781 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21782 ac_tmp=$tmp 21783 21784 # Set up the scripts for CONFIG_FILES section. 21785 # No need to generate them if there are no CONFIG_FILES. 21786 # This happens for instance with `./config.status config.h'. 21787 if test -n "$CONFIG_FILES"; then 21788 21789 21790 ac_cr=`echo X | tr X '\015'` 21791 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21792 # But we know of no other shell where ac_cr would be empty at this 21793 # point, so we can use a bashism as a fallback. 21794 if test "x$ac_cr" = x; then 21795 eval ac_cr=\$\'\\r\' 21796 fi 21797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21799 ac_cs_awk_cr='\\r' 21800 else 21801 ac_cs_awk_cr=$ac_cr 21802 fi 21803 21804 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21805 _ACEOF 21806 21807 21808 { 21809 echo "cat >conf$$subs.awk <<_ACEOF" && 21810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21811 echo "_ACEOF" 21812 } >conf$$subs.sh || 21813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21814 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21815 ac_delim='%!_!# ' 21816 for ac_last_try in false false false false false :; do 21817 . ./conf$$subs.sh || 21818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21819 21820 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21821 if test $ac_delim_n = $ac_delim_num; then 21822 break 21823 elif $ac_last_try; then 21824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21825 else 21826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21827 fi 21828 done 21829 rm -f conf$$subs.sh 21830 21831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21832 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21833 _ACEOF 21834 sed -n ' 21835 h 21836 s/^/S["/; s/!.*/"]=/ 21837 p 21838 g 21839 s/^[^!]*!// 21840 :repl 21841 t repl 21842 s/'"$ac_delim"'$// 21843 t delim 21844 :nl 21845 h 21846 s/\(.\{148\}\)..*/\1/ 21847 t more1 21848 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21849 p 21850 n 21851 b repl 21852 :more1 21853 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21854 p 21855 g 21856 s/.\{148\}// 21857 t nl 21858 :delim 21859 h 21860 s/\(.\{148\}\)..*/\1/ 21861 t more2 21862 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21863 p 21864 b 21865 :more2 21866 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21867 p 21868 g 21869 s/.\{148\}// 21870 t delim 21871 ' <conf$$subs.awk | sed ' 21872 /^[^""]/{ 21873 N 21874 s/\n// 21875 } 21876 ' >>$CONFIG_STATUS || ac_write_fail=1 21877 rm -f conf$$subs.awk 21878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21879 _ACAWK 21880 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21881 for (key in S) S_is_set[key] = 1 21882 FS = "" 21883 21884 } 21885 { 21886 line = $ 0 21887 nfields = split(line, field, "@") 21888 substed = 0 21889 len = length(field[1]) 21890 for (i = 2; i < nfields; i++) { 21891 key = field[i] 21892 keylen = length(key) 21893 if (S_is_set[key]) { 21894 value = S[key] 21895 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21896 len += length(value) + length(field[++i]) 21897 substed = 1 21898 } else 21899 len += 1 + keylen 21900 } 21901 21902 print line 21903 } 21904 21905 _ACAWK 21906 _ACEOF 21907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21908 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21909 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21910 else 21911 cat 21912 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21913 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21914 _ACEOF 21915 21916 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21917 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21918 # trailing colons and then remove the whole line if VPATH becomes empty 21919 # (actually we leave an empty line to preserve line numbers). 21920 if test "x$srcdir" = x.; then 21921 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21922 h 21923 s/// 21924 s/^/:/ 21925 s/[ ]*$/:/ 21926 s/:\$(srcdir):/:/g 21927 s/:\${srcdir}:/:/g 21928 s/:@srcdir@:/:/g 21929 s/^:*// 21930 s/:*$// 21931 x 21932 s/\(=[ ]*\).*/\1/ 21933 G 21934 s/\n// 21935 s/^[^=]*=[ ]*$// 21936 }' 21937 fi 21938 21939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21940 fi # test -n "$CONFIG_FILES" 21941 21942 # Set up the scripts for CONFIG_HEADERS section. 21943 # No need to generate them if there are no CONFIG_HEADERS. 21944 # This happens for instance with `./config.status Makefile'. 21945 if test -n "$CONFIG_HEADERS"; then 21946 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21947 BEGIN { 21948 _ACEOF 21949 21950 # Transform confdefs.h into an awk script `defines.awk', embedded as 21951 # here-document in config.status, that substitutes the proper values into 21952 # config.h.in to produce config.h. 21953 21954 # Create a delimiter string that does not exist in confdefs.h, to ease 21955 # handling of long lines. 21956 ac_delim='%!_!# ' 21957 for ac_last_try in false false :; do 21958 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21959 if test -z "$ac_tt"; then 21960 break 21961 elif $ac_last_try; then 21962 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21963 else 21964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21965 fi 21966 done 21967 21968 # For the awk script, D is an array of macro values keyed by name, 21969 # likewise P contains macro parameters if any. Preserve backslash 21970 # newline sequences. 21971 21972 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21973 sed -n ' 21974 s/.\{148\}/&'"$ac_delim"'/g 21975 t rset 21976 :rset 21977 s/^[ ]*#[ ]*define[ ][ ]*/ / 21978 t def 21979 d 21980 :def 21981 s/\\$// 21982 t bsnl 21983 s/["\\]/\\&/g 21984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21985 D["\1"]=" \3"/p 21986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21987 d 21988 :bsnl 21989 s/["\\]/\\&/g 21990 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21991 D["\1"]=" \3\\\\\\n"\\/p 21992 t cont 21993 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21994 t cont 21995 d 21996 :cont 21997 n 21998 s/.\{148\}/&'"$ac_delim"'/g 21999 t clear 22000 :clear 22001 s/\\$// 22002 t bsnlc 22003 s/["\\]/\\&/g; s/^/"/; s/$/"/p 22004 d 22005 :bsnlc 22006 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22007 b cont 22008 ' <confdefs.h | sed ' 22009 s/'"$ac_delim"'/"\\\ 22010 "/g' >>$CONFIG_STATUS || ac_write_fail=1 22011 22012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22013 for (key in D) D_is_set[key] = 1 22014 FS = "" 22015 } 22016 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22017 line = \$ 0 22018 split(line, arg, " ") 22019 if (arg[1] == "#") { 22020 defundef = arg[2] 22021 mac1 = arg[3] 22022 } else { 22023 defundef = substr(arg[1], 2) 22024 mac1 = arg[2] 22025 } 22026 split(mac1, mac2, "(") #) 22027 macro = mac2[1] 22028 prefix = substr(line, 1, index(line, defundef) - 1) 22029 if (D_is_set[macro]) { 22030 # Preserve the white space surrounding the "#". 22031 print prefix "define", macro P[macro] D[macro] 22032 next 22033 } else { 22034 # Replace #undef with comments. This is necessary, for example, 22035 # in the case of _POSIX_SOURCE, which is predefined and required 22036 # on some systems where configure will not decide to define it. 22037 if (defundef == "undef") { 22038 print "/*", prefix defundef, macro, "*/" 22039 next 22040 } 22041 } 22042 } 22043 { print } 22044 _ACAWK 22045 _ACEOF 22046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22047 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22048 fi # test -n "$CONFIG_HEADERS" 22049 22050 22051 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22052 shift 22053 for ac_tag 22054 do 22055 case $ac_tag in 22056 :[FHLC]) ac_mode=$ac_tag; continue;; 22057 esac 22058 case $ac_mode$ac_tag in 22059 :[FHL]*:*);; 22060 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22061 :[FH]-) ac_tag=-:-;; 22062 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22063 esac 22064 ac_save_IFS=$IFS 22065 IFS=: 22066 set x $ac_tag 22067 IFS=$ac_save_IFS 22068 shift 22069 ac_file=$1 22070 shift 22071 22072 case $ac_mode in 22073 :L) ac_source=$1;; 22074 :[FH]) 22075 ac_file_inputs= 22076 for ac_f 22077 do 22078 case $ac_f in 22079 -) ac_f="$ac_tmp/stdin";; 22080 *) # Look for the file first in the build tree, then in the source tree 22081 # (if the path is not absolute). The absolute path cannot be DOS-style, 22082 # because $ac_f cannot contain `:'. 22083 test -f "$ac_f" || 22084 case $ac_f in 22085 [\\/$]*) false;; 22086 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22087 esac || 22088 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22089 esac 22090 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22091 as_fn_append ac_file_inputs " '$ac_f'" 22092 done 22093 22094 # Let's still pretend it is `configure' which instantiates (i.e., don't 22095 # use $as_me), people would be surprised to read: 22096 # /* config.h. Generated by config.status. */ 22097 configure_input='Generated from '` 22098 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22099 `' by configure.' 22100 if test x"$ac_file" != x-; then 22101 configure_input="$ac_file. $configure_input" 22102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22103 printf "%s\n" "$as_me: creating $ac_file" >&6;} 22104 fi 22105 # Neutralize special characters interpreted by sed in replacement strings. 22106 case $configure_input in #( 22107 *\&* | *\|* | *\\* ) 22108 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22109 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22110 *) ac_sed_conf_input=$configure_input;; 22111 esac 22112 22113 case $ac_tag in 22114 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22116 esac 22117 ;; 22118 esac 22119 22120 ac_dir=`$as_dirname -- "$ac_file" || 22121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22122 X"$ac_file" : 'X\(//\)[^/]' \| \ 22123 X"$ac_file" : 'X\(//\)$' \| \ 22124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22125 printf "%s\n" X"$ac_file" | 22126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22127 s//\1/ 22128 q 22129 } 22130 /^X\(\/\/\)[^/].*/{ 22131 s//\1/ 22132 q 22133 } 22134 /^X\(\/\/\)$/{ 22135 s//\1/ 22136 q 22137 } 22138 /^X\(\/\).*/{ 22139 s//\1/ 22140 q 22141 } 22142 s/.*/./; q'` 22143 as_dir="$ac_dir"; as_fn_mkdir_p 22144 ac_builddir=. 22145 22146 case "$ac_dir" in 22147 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22148 *) 22149 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22150 # A ".." for each directory in $ac_dir_suffix. 22151 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22152 case $ac_top_builddir_sub in 22153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22155 esac ;; 22156 esac 22157 ac_abs_top_builddir=$ac_pwd 22158 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22159 # for backward compatibility: 22160 ac_top_builddir=$ac_top_build_prefix 22161 22162 case $srcdir in 22163 .) # We are building in place. 22164 ac_srcdir=. 22165 ac_top_srcdir=$ac_top_builddir_sub 22166 ac_abs_top_srcdir=$ac_pwd ;; 22167 [\\/]* | ?:[\\/]* ) # Absolute name. 22168 ac_srcdir=$srcdir$ac_dir_suffix; 22169 ac_top_srcdir=$srcdir 22170 ac_abs_top_srcdir=$srcdir ;; 22171 *) # Relative name. 22172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22173 ac_top_srcdir=$ac_top_build_prefix$srcdir 22174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22175 esac 22176 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22177 22178 22179 case $ac_mode in 22180 :F) 22181 # 22182 # CONFIG_FILE 22183 # 22184 22185 case $INSTALL in 22186 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22187 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22188 esac 22189 ac_MKDIR_P=$MKDIR_P 22190 case $MKDIR_P in 22191 [\\/$]* | ?:[\\/]* ) ;; 22192 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22193 esac 22194 _ACEOF 22195 22196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22197 # If the template does not know about datarootdir, expand it. 22198 # FIXME: This hack should be removed a few years after 2.60. 22199 ac_datarootdir_hack=; ac_datarootdir_seen= 22200 ac_sed_dataroot=' 22201 /datarootdir/ { 22202 p 22203 q 22204 } 22205 /@datadir@/p 22206 /@docdir@/p 22207 /@infodir@/p 22208 /@localedir@/p 22209 /@mandir@/p' 22210 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22211 *datarootdir*) ac_datarootdir_seen=yes;; 22212 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22214 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22215 _ACEOF 22216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22217 ac_datarootdir_hack=' 22218 s&@datadir@&$datadir&g 22219 s&@docdir@&$docdir&g 22220 s&@infodir@&$infodir&g 22221 s&@localedir@&$localedir&g 22222 s&@mandir@&$mandir&g 22223 s&\\\${datarootdir}&$datarootdir&g' ;; 22224 esac 22225 _ACEOF 22226 22227 # Neutralize VPATH when `$srcdir' = `.'. 22228 # Shell code in configure.ac might set extrasub. 22229 # FIXME: do we really want to maintain this feature? 22230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22231 ac_sed_extra="$ac_vpsub 22232 $extrasub 22233 _ACEOF 22234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22235 :t 22236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22237 s|@configure_input@|$ac_sed_conf_input|;t t 22238 s&@top_builddir@&$ac_top_builddir_sub&;t t 22239 s&@top_build_prefix@&$ac_top_build_prefix&;t t 22240 s&@srcdir@&$ac_srcdir&;t t 22241 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22242 s&@top_srcdir@&$ac_top_srcdir&;t t 22243 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22244 s&@builddir@&$ac_builddir&;t t 22245 s&@abs_builddir@&$ac_abs_builddir&;t t 22246 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22247 s&@INSTALL@&$ac_INSTALL&;t t 22248 s&@MKDIR_P@&$ac_MKDIR_P&;t t 22249 $ac_datarootdir_hack 22250 " 22251 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22252 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22253 22254 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22255 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22257 "$ac_tmp/out"`; test -z "$ac_out"; } && 22258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22259 which seems to be undefined. Please make sure it is defined" >&5 22260 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22261 which seems to be undefined. Please make sure it is defined" >&2;} 22262 22263 rm -f "$ac_tmp/stdin" 22264 case $ac_file in 22265 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22266 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22267 esac \ 22268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22269 ;; 22270 :H) 22271 # 22272 # CONFIG_HEADER 22273 # 22274 if test x"$ac_file" != x-; then 22275 { 22276 printf "%s\n" "/* $configure_input */" >&1 \ 22277 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22278 } >"$ac_tmp/config.h" \ 22279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22280 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22282 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22283 else 22284 rm -f "$ac_file" 22285 mv "$ac_tmp/config.h" "$ac_file" \ 22286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22287 fi 22288 else 22289 printf "%s\n" "/* $configure_input */" >&1 \ 22290 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22291 || as_fn_error $? "could not create -" "$LINENO" 5 22292 fi 22293 # Compute "$ac_file"'s index in $config_headers. 22294 _am_arg="$ac_file" 22295 _am_stamp_count=1 22296 for _am_header in $config_headers :; do 22297 case $_am_header in 22298 $_am_arg | $_am_arg:* ) 22299 break ;; 22300 * ) 22301 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22302 esac 22303 done 22304 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22305 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22306 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22307 X"$_am_arg" : 'X\(//\)$' \| \ 22308 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22309 printf "%s\n" X"$_am_arg" | 22310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22311 s//\1/ 22312 q 22313 } 22314 /^X\(\/\/\)[^/].*/{ 22315 s//\1/ 22316 q 22317 } 22318 /^X\(\/\/\)$/{ 22319 s//\1/ 22320 q 22321 } 22322 /^X\(\/\).*/{ 22323 s//\1/ 22324 q 22325 } 22326 s/.*/./; q'`/stamp-h$_am_stamp_count 22327 ;; 22328 22329 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22330 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22331 ;; 22332 esac 22333 22334 22335 case $ac_file$ac_mode in 22336 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22337 # Older Autoconf quotes --file arguments for eval, but not when files 22338 # are listed without --file. Let's play safe and only enable the eval 22339 # if we detect the quoting. 22340 # TODO: see whether this extra hack can be removed once we start 22341 # requiring Autoconf 2.70 or later. 22342 case $CONFIG_FILES in #( 22343 *\'*) : 22344 eval set x "$CONFIG_FILES" ;; #( 22345 *) : 22346 set x $CONFIG_FILES ;; #( 22347 *) : 22348 ;; 22349 esac 22350 shift 22351 # Used to flag and report bootstrapping failures. 22352 am_rc=0 22353 for am_mf 22354 do 22355 # Strip MF so we end up with the name of the file. 22356 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22357 # Check whether this is an Automake generated Makefile which includes 22358 # dependency-tracking related rules and includes. 22359 # Grep'ing the whole file directly is not great: AIX grep has a line 22360 # limit of 2048, but all sed's we know have understand at least 4000. 22361 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22362 || continue 22363 am_dirpart=`$as_dirname -- "$am_mf" || 22364 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22365 X"$am_mf" : 'X\(//\)[^/]' \| \ 22366 X"$am_mf" : 'X\(//\)$' \| \ 22367 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22368 printf "%s\n" X"$am_mf" | 22369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22370 s//\1/ 22371 q 22372 } 22373 /^X\(\/\/\)[^/].*/{ 22374 s//\1/ 22375 q 22376 } 22377 /^X\(\/\/\)$/{ 22378 s//\1/ 22379 q 22380 } 22381 /^X\(\/\).*/{ 22382 s//\1/ 22383 q 22384 } 22385 s/.*/./; q'` 22386 am_filepart=`$as_basename -- "$am_mf" || 22387 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22388 X"$am_mf" : 'X\(//\)$' \| \ 22389 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22390 printf "%s\n" X/"$am_mf" | 22391 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22392 s//\1/ 22393 q 22394 } 22395 /^X\/\(\/\/\)$/{ 22396 s//\1/ 22397 q 22398 } 22399 /^X\/\(\/\).*/{ 22400 s//\1/ 22401 q 22402 } 22403 s/.*/./; q'` 22404 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22405 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22406 | $MAKE -f - am--depfiles" >&5 22407 (cd "$am_dirpart" \ 22408 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22409 | $MAKE -f - am--depfiles) >&5 2>&5 22410 ac_status=$? 22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22412 (exit $ac_status); } || am_rc=$? 22413 done 22414 if test $am_rc -ne 0; then 22415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22417 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22418 for automatic dependency tracking. If GNU make was not used, consider 22419 re-running the configure script with MAKE=\"gmake\" (or whatever is 22420 necessary). You can also try re-running configure with the 22421 '--disable-dependency-tracking' option to at least be able to build 22422 the package (albeit without support for automatic dependency tracking). 22423 See \`config.log' for more details" "$LINENO" 5; } 22424 fi 22425 { am_dirpart=; unset am_dirpart;} 22426 { am_filepart=; unset am_filepart;} 22427 { am_mf=; unset am_mf;} 22428 { am_rc=; unset am_rc;} 22429 rm -f conftest-deps.mk 22430 } 22431 ;; 22432 "libtool":C) 22433 22434 # See if we are running on zsh, and set the options that allow our 22435 # commands through without removal of \ escapes. 22436 if test -n "${ZSH_VERSION+set}"; then 22437 setopt NO_GLOB_SUBST 22438 fi 22439 22440 cfgfile=${ofile}T 22441 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22442 $RM "$cfgfile" 22443 22444 cat <<_LT_EOF >> "$cfgfile" 22445 #! $SHELL 22446 # Generated automatically by $as_me ($PACKAGE) $VERSION 22447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22448 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22449 22450 # Provide generalized library-building support services. 22451 # Written by Gordon Matzigkeit, 1996 22452 22453 # Copyright (C) 2014 Free Software Foundation, Inc. 22454 # This is free software; see the source for copying conditions. There is NO 22455 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22456 22457 # GNU Libtool is free software; you can redistribute it and/or modify 22458 # it under the terms of the GNU General Public License as published by 22459 # the Free Software Foundation; either version 2 of of the License, or 22460 # (at your option) any later version. 22461 # 22462 # As a special exception to the GNU General Public License, if you 22463 # distribute this file as part of a program or library that is built 22464 # using GNU Libtool, you may include this file under the same 22465 # distribution terms that you use for the rest of that program. 22466 # 22467 # GNU Libtool is distributed in the hope that it will be useful, but 22468 # WITHOUT ANY WARRANTY; without even the implied warranty of 22469 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22470 # GNU General Public License for more details. 22471 # 22472 # You should have received a copy of the GNU General Public License 22473 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22474 22475 22476 # The names of the tagged configurations supported by this script. 22477 available_tags='' 22478 22479 # Configured defaults for sys_lib_dlsearch_path munging. 22480 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22481 22482 # ### BEGIN LIBTOOL CONFIG 22483 22484 # Whether or not to build static libraries. 22485 build_old_libs=$enable_static 22486 22487 # Which release of libtool.m4 was used? 22488 macro_version=$macro_version 22489 macro_revision=$macro_revision 22490 22491 # Whether or not to build shared libraries. 22492 build_libtool_libs=$enable_shared 22493 22494 # What type of objects to build. 22495 pic_mode=$pic_mode 22496 22497 # Whether or not to optimize for fast installation. 22498 fast_install=$enable_fast_install 22499 22500 # Shared archive member basename,for filename based shared library versioning on AIX. 22501 shared_archive_member_spec=$shared_archive_member_spec 22502 22503 # Shell to use when invoking shell scripts. 22504 SHELL=$lt_SHELL 22505 22506 # An echo program that protects backslashes. 22507 ECHO=$lt_ECHO 22508 22509 # The PATH separator for the build system. 22510 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22511 22512 # The host system. 22513 host_alias=$host_alias 22514 host=$host 22515 host_os=$host_os 22516 22517 # The build system. 22518 build_alias=$build_alias 22519 build=$build 22520 build_os=$build_os 22521 22522 # A sed program that does not truncate output. 22523 SED=$lt_SED 22524 22525 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22526 Xsed="\$SED -e 1s/^X//" 22527 22528 # A grep program that handles long lines. 22529 GREP=$lt_GREP 22530 22531 # An ERE matcher. 22532 EGREP=$lt_EGREP 22533 22534 # A literal string matcher. 22535 FGREP=$lt_FGREP 22536 22537 # A BSD- or MS-compatible name lister. 22538 NM=$lt_NM 22539 22540 # Whether we need soft or hard links. 22541 LN_S=$lt_LN_S 22542 22543 # What is the maximum length of a command? 22544 max_cmd_len=$max_cmd_len 22545 22546 # Object file suffix (normally "o"). 22547 objext=$ac_objext 22548 22549 # Executable file suffix (normally ""). 22550 exeext=$exeext 22551 22552 # whether the shell understands "unset". 22553 lt_unset=$lt_unset 22554 22555 # turn spaces into newlines. 22556 SP2NL=$lt_lt_SP2NL 22557 22558 # turn newlines into spaces. 22559 NL2SP=$lt_lt_NL2SP 22560 22561 # convert \$build file names to \$host format. 22562 to_host_file_cmd=$lt_cv_to_host_file_cmd 22563 22564 # convert \$build files to toolchain format. 22565 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22566 22567 # A file(cmd) program that detects file types. 22568 FILECMD=$lt_FILECMD 22569 22570 # An object symbol dumper. 22571 OBJDUMP=$lt_OBJDUMP 22572 22573 # Method to check whether dependent libraries are shared objects. 22574 deplibs_check_method=$lt_deplibs_check_method 22575 22576 # Command to use when deplibs_check_method = "file_magic". 22577 file_magic_cmd=$lt_file_magic_cmd 22578 22579 # How to find potential files when deplibs_check_method = "file_magic". 22580 file_magic_glob=$lt_file_magic_glob 22581 22582 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22583 want_nocaseglob=$lt_want_nocaseglob 22584 22585 # DLL creation program. 22586 DLLTOOL=$lt_DLLTOOL 22587 22588 # Command to associate shared and link libraries. 22589 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22590 22591 # The archiver. 22592 AR=$lt_AR 22593 22594 # Flags to create an archive (by configure). 22595 lt_ar_flags=$lt_ar_flags 22596 22597 # Flags to create an archive. 22598 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22599 22600 # How to feed a file listing to the archiver. 22601 archiver_list_spec=$lt_archiver_list_spec 22602 22603 # A symbol stripping program. 22604 STRIP=$lt_STRIP 22605 22606 # Commands used to install an old-style archive. 22607 RANLIB=$lt_RANLIB 22608 old_postinstall_cmds=$lt_old_postinstall_cmds 22609 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22610 22611 # Whether to use a lock for old archive extraction. 22612 lock_old_archive_extraction=$lock_old_archive_extraction 22613 22614 # A C compiler. 22615 LTCC=$lt_CC 22616 22617 # LTCC compiler flags. 22618 LTCFLAGS=$lt_CFLAGS 22619 22620 # Take the output of nm and produce a listing of raw symbols and C names. 22621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22622 22623 # Transform the output of nm in a proper C declaration. 22624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22625 22626 # Transform the output of nm into a list of symbols to manually relocate. 22627 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22628 22629 # Transform the output of nm in a C name address pair. 22630 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22631 22632 # Transform the output of nm in a C name address pair when lib prefix is needed. 22633 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22634 22635 # The name lister interface. 22636 nm_interface=$lt_lt_cv_nm_interface 22637 22638 # Specify filename containing input files for \$NM. 22639 nm_file_list_spec=$lt_nm_file_list_spec 22640 22641 # The root where to search for dependent libraries,and where our libraries should be installed. 22642 lt_sysroot=$lt_sysroot 22643 22644 # Command to truncate a binary pipe. 22645 lt_truncate_bin=$lt_lt_cv_truncate_bin 22646 22647 # The name of the directory that contains temporary libtool files. 22648 objdir=$objdir 22649 22650 # Used to examine libraries when file_magic_cmd begins with "file". 22651 MAGIC_CMD=$MAGIC_CMD 22652 22653 # Must we lock files when doing compilation? 22654 need_locks=$lt_need_locks 22655 22656 # Manifest tool. 22657 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22658 22659 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22660 DSYMUTIL=$lt_DSYMUTIL 22661 22662 # Tool to change global to local symbols on Mac OS X. 22663 NMEDIT=$lt_NMEDIT 22664 22665 # Tool to manipulate fat objects and archives on Mac OS X. 22666 LIPO=$lt_LIPO 22667 22668 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22669 OTOOL=$lt_OTOOL 22670 22671 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22672 OTOOL64=$lt_OTOOL64 22673 22674 # Old archive suffix (normally "a"). 22675 libext=$libext 22676 22677 # Shared library suffix (normally ".so"). 22678 shrext_cmds=$lt_shrext_cmds 22679 22680 # The commands to extract the exported symbol list from a shared archive. 22681 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22682 22683 # Variables whose values should be saved in libtool wrapper scripts and 22684 # restored at link time. 22685 variables_saved_for_relink=$lt_variables_saved_for_relink 22686 22687 # Do we need the "lib" prefix for modules? 22688 need_lib_prefix=$need_lib_prefix 22689 22690 # Do we need a version for libraries? 22691 need_version=$need_version 22692 22693 # Library versioning type. 22694 version_type=$version_type 22695 22696 # Shared library runtime path variable. 22697 runpath_var=$runpath_var 22698 22699 # Shared library path variable. 22700 shlibpath_var=$shlibpath_var 22701 22702 # Is shlibpath searched before the hard-coded library search path? 22703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22704 22705 # Format of library name prefix. 22706 libname_spec=$lt_libname_spec 22707 22708 # List of archive names. First name is the real one, the rest are links. 22709 # The last name is the one that the linker finds with -lNAME 22710 library_names_spec=$lt_library_names_spec 22711 22712 # The coded name of the library, if different from the real name. 22713 soname_spec=$lt_soname_spec 22714 22715 # Permission mode override for installation of shared libraries. 22716 install_override_mode=$lt_install_override_mode 22717 22718 # Command to use after installation of a shared archive. 22719 postinstall_cmds=$lt_postinstall_cmds 22720 22721 # Command to use after uninstallation of a shared archive. 22722 postuninstall_cmds=$lt_postuninstall_cmds 22723 22724 # Commands used to finish a libtool library installation in a directory. 22725 finish_cmds=$lt_finish_cmds 22726 22727 # As "finish_cmds", except a single script fragment to be evaled but 22728 # not shown. 22729 finish_eval=$lt_finish_eval 22730 22731 # Whether we should hardcode library paths into libraries. 22732 hardcode_into_libs=$hardcode_into_libs 22733 22734 # Compile-time system search path for libraries. 22735 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22736 22737 # Detected run-time system search path for libraries. 22738 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22739 22740 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22741 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22742 22743 # Whether dlopen is supported. 22744 dlopen_support=$enable_dlopen 22745 22746 # Whether dlopen of programs is supported. 22747 dlopen_self=$enable_dlopen_self 22748 22749 # Whether dlopen of statically linked programs is supported. 22750 dlopen_self_static=$enable_dlopen_self_static 22751 22752 # Commands to strip libraries. 22753 old_striplib=$lt_old_striplib 22754 striplib=$lt_striplib 22755 22756 22757 # The linker used to build libraries. 22758 LD=$lt_LD 22759 22760 # How to create reloadable object files. 22761 reload_flag=$lt_reload_flag 22762 reload_cmds=$lt_reload_cmds 22763 22764 # Commands used to build an old-style archive. 22765 old_archive_cmds=$lt_old_archive_cmds 22766 22767 # A language specific compiler. 22768 CC=$lt_compiler 22769 22770 # Is the compiler the GNU compiler? 22771 with_gcc=$GCC 22772 22773 # Compiler flag to turn off builtin functions. 22774 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22775 22776 # Additional compiler flags for building library objects. 22777 pic_flag=$lt_lt_prog_compiler_pic 22778 22779 # How to pass a linker flag through the compiler. 22780 wl=$lt_lt_prog_compiler_wl 22781 22782 # Compiler flag to prevent dynamic linking. 22783 link_static_flag=$lt_lt_prog_compiler_static 22784 22785 # Does compiler simultaneously support -c and -o options? 22786 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22787 22788 # Whether or not to add -lc for building shared libraries. 22789 build_libtool_need_lc=$archive_cmds_need_lc 22790 22791 # Whether or not to disallow shared libs when runtime libs are static. 22792 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22793 22794 # Compiler flag to allow reflexive dlopens. 22795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22796 22797 # Compiler flag to generate shared objects directly from archives. 22798 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22799 22800 # Whether the compiler copes with passing no objects directly. 22801 compiler_needs_object=$lt_compiler_needs_object 22802 22803 # Create an old-style archive from a shared archive. 22804 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22805 22806 # Create a temporary old-style archive to link instead of a shared archive. 22807 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22808 22809 # Commands used to build a shared archive. 22810 archive_cmds=$lt_archive_cmds 22811 archive_expsym_cmds=$lt_archive_expsym_cmds 22812 22813 # Commands used to build a loadable module if different from building 22814 # a shared archive. 22815 module_cmds=$lt_module_cmds 22816 module_expsym_cmds=$lt_module_expsym_cmds 22817 22818 # Whether we are building with GNU ld or not. 22819 with_gnu_ld=$lt_with_gnu_ld 22820 22821 # Flag that allows shared libraries with undefined symbols to be built. 22822 allow_undefined_flag=$lt_allow_undefined_flag 22823 22824 # Flag that enforces no undefined symbols. 22825 no_undefined_flag=$lt_no_undefined_flag 22826 22827 # Flag to hardcode \$libdir into a binary during linking. 22828 # This must work even if \$libdir does not exist 22829 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22830 22831 # Whether we need a single "-rpath" flag with a separated argument. 22832 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22833 22834 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22835 # DIR into the resulting binary. 22836 hardcode_direct=$hardcode_direct 22837 22838 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22839 # DIR into the resulting binary and the resulting library dependency is 22840 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22841 # library is relocated. 22842 hardcode_direct_absolute=$hardcode_direct_absolute 22843 22844 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22845 # into the resulting binary. 22846 hardcode_minus_L=$hardcode_minus_L 22847 22848 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22849 # into the resulting binary. 22850 hardcode_shlibpath_var=$hardcode_shlibpath_var 22851 22852 # Set to "yes" if building a shared library automatically hardcodes DIR 22853 # into the library and all subsequent libraries and executables linked 22854 # against it. 22855 hardcode_automatic=$hardcode_automatic 22856 22857 # Set to yes if linker adds runtime paths of dependent libraries 22858 # to runtime path list. 22859 inherit_rpath=$inherit_rpath 22860 22861 # Whether libtool must link a program against all its dependency libraries. 22862 link_all_deplibs=$link_all_deplibs 22863 22864 # Set to "yes" if exported symbols are required. 22865 always_export_symbols=$always_export_symbols 22866 22867 # The commands to list exported symbols. 22868 export_symbols_cmds=$lt_export_symbols_cmds 22869 22870 # Symbols that should not be listed in the preloaded symbols. 22871 exclude_expsyms=$lt_exclude_expsyms 22872 22873 # Symbols that must always be exported. 22874 include_expsyms=$lt_include_expsyms 22875 22876 # Commands necessary for linking programs (against libraries) with templates. 22877 prelink_cmds=$lt_prelink_cmds 22878 22879 # Commands necessary for finishing linking programs. 22880 postlink_cmds=$lt_postlink_cmds 22881 22882 # Specify filename containing input files. 22883 file_list_spec=$lt_file_list_spec 22884 22885 # How to hardcode a shared library path into an executable. 22886 hardcode_action=$hardcode_action 22887 22888 # ### END LIBTOOL CONFIG 22889 22890 _LT_EOF 22891 22892 cat <<'_LT_EOF' >> "$cfgfile" 22893 22894 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22895 22896 # func_munge_path_list VARIABLE PATH 22897 # ----------------------------------- 22898 # VARIABLE is name of variable containing _space_ separated list of 22899 # directories to be munged by the contents of PATH, which is string 22900 # having a format: 22901 # "DIR[:DIR]:" 22902 # string "DIR[ DIR]" will be prepended to VARIABLE 22903 # ":DIR[:DIR]" 22904 # string "DIR[ DIR]" will be appended to VARIABLE 22905 # "DIRP[:DIRP]::[DIRA:]DIRA" 22906 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22907 # "DIRA[ DIRA]" will be appended to VARIABLE 22908 # "DIR[:DIR]" 22909 # VARIABLE will be replaced by "DIR[ DIR]" 22910 func_munge_path_list () 22911 { 22912 case x$2 in 22913 x) 22914 ;; 22915 *:) 22916 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22917 ;; 22918 x:*) 22919 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22920 ;; 22921 *::*) 22922 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22923 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22924 ;; 22925 *) 22926 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22927 ;; 22928 esac 22929 } 22930 22931 22932 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22933 func_cc_basename () 22934 { 22935 for cc_temp in $*""; do 22936 case $cc_temp in 22937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22939 \-*) ;; 22940 *) break;; 22941 esac 22942 done 22943 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22944 } 22945 22946 22947 # ### END FUNCTIONS SHARED WITH CONFIGURE 22948 22949 _LT_EOF 22950 22951 case $host_os in 22952 aix3*) 22953 cat <<\_LT_EOF >> "$cfgfile" 22954 # AIX sometimes has problems with the GCC collect2 program. For some 22955 # reason, if we set the COLLECT_NAMES environment variable, the problems 22956 # vanish in a puff of smoke. 22957 if test set != "${COLLECT_NAMES+set}"; then 22958 COLLECT_NAMES= 22959 export COLLECT_NAMES 22960 fi 22961 _LT_EOF 22962 ;; 22963 esac 22964 22965 22966 22967 ltmain=$ac_aux_dir/ltmain.sh 22968 22969 22970 # We use sed instead of cat because bash on DJGPP gets confused if 22971 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22972 # text mode, it properly converts lines to CR/LF. This bash problem 22973 # is reportedly fixed, but why not run on old versions too? 22974 $SED '$q' "$ltmain" >> "$cfgfile" \ 22975 || (rm -f "$cfgfile"; exit 1) 22976 22977 mv -f "$cfgfile" "$ofile" || 22978 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22979 chmod +x "$ofile" 22980 22981 ;; 22982 22983 esac 22984 done # for ac_tag 22985 22986 22987 as_fn_exit 0 22988 _ACEOF 22989 ac_clean_files=$ac_clean_files_save 22990 22991 test $ac_write_fail = 0 || 22992 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22993 22994 22995 # configure is writing to config.log, and then calls config.status. 22996 # config.status does its own redirection, appending to config.log. 22997 # Unfortunately, on DOS this fails, as config.log is still kept open 22998 # by configure, so config.status won't be able to write to it; its 22999 # output is simply discarded. So we exec the FD to /dev/null, 23000 # effectively closing config.log, so it can be properly (re)opened and 23001 # appended to by config.status. When coming back to configure, we 23002 # need to make the FD available again. 23003 if test "$no_create" != yes; then 23004 ac_cs_success=: 23005 ac_config_status_args= 23006 test "$silent" = yes && 23007 ac_config_status_args="$ac_config_status_args --quiet" 23008 exec 5>/dev/null 23009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23010 exec 5>>config.log 23011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23012 # would make configure fail if this is the last instruction. 23013 $ac_cs_success || as_fn_exit 1 23014 fi 23015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23017 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23018 fi 23019 23020 23021 echo " 23022 23023 xf86-video-qxl $VERSION 23024 ===================== 23025 23026 prefix: ${prefix} 23027 c compiler: ${CC} 23028 23029 drm: ${DRM_CFLAGS} 23030 KMS: ${DRM_MODE} 23031 Build qxl: ${enable_qxl} 23032 Build xspice: ${enable_xspice} 23033 Build spiceccid: ${enable_ccid} 23034 " 23035 23036